/* Parkchive — site styles */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-italic.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
}

:root {
  --black: #000;
  --ink: #141412;
  --ink-2: #44443f;
  --ink-3: #6a6a63;
  --paper: #fff;
  --sheet: #f0f1f1;
  --rule: #d9d5ca;
  --land: #efe9d8;
  --land-line: #fff;
  --water: #d3e3ea;

  /* Category colors, taken from the app's own map markers */
  --np: #575c3c;
  --nb: #d4891f;
  --nm: #725ca3;
  --nh: #b4674f;
  --se: #2b73b8;

  --gutter: 24px;
  --margin: clamp(20px, 4vw, 48px);
  --max: 1360px;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--ink-3) var(--sheet); }
body {
  margin: 0;
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
::selection { background: #f1c56b; color: var(--black); }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--se); outline-offset: 3px; border-radius: 2px; }
.band :focus-visible, .site-foot :focus-visible { outline-color: #f1c56b; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--s4); top: -60px; background: #f1c56b; color: var(--black); padding: var(--s2) var(--s4); font-weight: 700; z-index: 10; }
.skip:focus { top: var(--s4); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }

/* ---------- Title band (the brochure's black band) ---------- */
.band { background: var(--black); color: #fff; }
.band__top {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s5);
  padding-top: var(--s4); padding-bottom: var(--s4);
  border-bottom: 1px solid #2a2a2a;
}
.brand { display: flex; align-items: center; gap: var(--s3); text-decoration: none; font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.01em; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; align-items: center; gap: var(--s5); }
.nav ul { list-style: none; display: flex; gap: var(--s5); margin: 0; padding: 0; }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.9375rem; color: #d8d8d2; padding: var(--s2) 0; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; }
.badge-link { display: inline-block; line-height: 0; border-radius: 8px; }
.badge-link img { height: 44px; width: auto; }
.band .badge-link img { height: 40px; }

.band__title { padding-top: var(--s7); padding-bottom: var(--s6); align-items: end; }
.band__title h1, .band__title .h1 {
  grid-column: 1 / span 8;
  font-size: clamp(3.25rem, 9.5vw, 6rem);
  font-weight: 800;
  font-stretch: 100%;
  letter-spacing: -0.035em;
  line-height: 0.88;
}
.band__sub { grid-column: 9 / span 4; font-weight: 700; font-size: 1.0625rem; line-height: 1.3; padding-bottom: 0.4rem; }
.band__sub span { display: block; font-weight: 500; color: #b9b9b2; font-size: 0.9375rem; margin-top: var(--s1); }
.band--page .band__title h1 { font-size: clamp(2.75rem, 7vw, 4.5rem); }

/* Section strip: small black header over a panel */
.strip {
  background: var(--black); color: #fff;
  padding: var(--s3) var(--s4);
  font-weight: 700; font-size: 1.0625rem; letter-spacing: 0.005em;
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4);
}
.strip small { font-weight: 500; font-size: 0.8125rem; color: #b9b9b2; }

.section { padding-top: var(--s9); }
.section:last-of-type { padding-bottom: var(--s9); }
.section-head { margin-bottom: var(--s6); }
.section-head h2 {
  font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 800; letter-spacing: -0.03em; line-height: 0.98;
  border-top: 10px solid var(--black); padding-top: var(--s4);
}
.lede { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.35; font-weight: 500; letter-spacing: -0.01em; }
.muted { color: var(--ink-2); }
.caption { font-size: 0.8125rem; line-height: 1.4; color: var(--ink-3); }
.caption b { color: var(--ink); }
.more { font-weight: 700; text-decoration: none; display: inline-flex; gap: 0.35em; align-items: center; }
.more::after { content: ""; width: 0.55em; height: 0.55em; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transition: transform .3s var(--ease-out); }
.more:hover::after { transform: translateX(3px) rotate(45deg); }

/* ---------- Home: front panel ---------- */
.front { padding-top: var(--s7); row-gap: var(--s6); }
.front__copy { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: var(--s5); }
.front__rule { border-top: 3px solid var(--black); padding-top: var(--s3); font-weight: 700; font-size: 1rem; line-height: 1.4; }
.front__rule span { display: block; font-weight: 500; color: var(--ink-2); }
.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s5); border-top: 1px solid var(--rule); padding-top: var(--s4); }
.facts b { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.facts span { font-size: 0.875rem; color: var(--ink-2); }
.front__map { grid-column: 5 / span 8; }

/* Map panel */
.map { background: var(--water); position: relative; }
.map__legend { display: flex; flex-wrap: wrap; gap: var(--s2); padding: var(--s3) var(--s4) 0; }
.chip {
  font: inherit; font-size: 0.8125rem; font-weight: 700; color: var(--ink);
  display: inline-flex; align-items: center; gap: var(--s2);
  background: var(--paper); border: 0; border-radius: 999px; padding: 6px 12px 6px 6px; cursor: pointer;
  transition: opacity .2s, background-color .2s;
}
.chip i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--c); margin-left: 4px; }
.chip[aria-pressed="false"] { background: transparent; opacity: .55; }
.chip[aria-pressed="false"] i { background: transparent; }
.chip:hover { opacity: 1; }
.map__svg { position: relative; padding: var(--s2) var(--s3) var(--s3); }
.map svg { width: 100%; height: auto; display: block; overflow: visible; }
.map .nation { fill: var(--land); }
.map .states { fill: none; stroke: var(--land-line); stroke-width: 1.2; stroke-linejoin: round; }
.site { stroke: var(--paper); stroke-width: 1.6; transition: opacity .35s var(--ease-out), r .2s var(--ease-out); cursor: default; }
.site[data-cat="np"] { fill: var(--np); }
.site[data-cat="nb"] { fill: var(--nb); }
.site[data-cat="nm"] { fill: var(--nm); }
.site[data-cat="nh"] { fill: var(--nh); }
.site.is-off { opacity: .08; }
.site:hover { r: 8; }
.map__pin line { stroke: var(--black); stroke-width: 1.5; }
.map__pin circle { fill: var(--black); }
.map__stamp {
  position: absolute; width: 17%; min-width: 92px; max-width: 150px;
  filter: drop-shadow(0 6px 10px rgb(20 20 18 / .28));
}
.map__stampcap {
  position: absolute; background: var(--black); color: #fff; font-size: 0.75rem; font-weight: 700; line-height: 1.25;
  padding: 6px 9px; white-space: nowrap;
}
.map__stampcap span { display: block; font-weight: 500; color: #c9c9c2; }
.map__foot { padding: 0 var(--s4) var(--s3); color: var(--ink-2); }
.map__tip {
  position: absolute; pointer-events: none; background: var(--black); color: #fff; font-size: 0.8125rem; font-weight: 600;
  padding: 4px 8px; transform: translate(-50%, calc(-100% - 12px)); white-space: nowrap; opacity: 0; transition: opacity .15s;
}
.map__tip.is-on { opacity: 1; }

/* Load moment: dots set down by category, then the stamp presses in */
@media (prefers-reduced-motion: no-preference) {
  .site { animation: drop .6s var(--ease-out) backwards; transform-box: fill-box; transform-origin: center; }
  .site[data-cat="np"] { animation-delay: .15s; }
  .site[data-cat="nb"] { animation-delay: .45s; }
  .site[data-cat="nm"] { animation-delay: .65s; }
  .site[data-cat="nh"] { animation-delay: .85s; }
  .map__stamp-img { animation: press .7s var(--ease-out) 1.2s backwards; transform-box: fill-box; transform-origin: center; }
  .map__cap, .map__pin { animation: fade .5s ease-out 1.7s backwards; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-14px) scale(.4); } }
@keyframes press { from { opacity: 0; transform: scale(1.35) rotate(-8deg); filter: drop-shadow(0 24px 28px rgb(20 20 18 / .25)); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- How it works ---------- */
.how { row-gap: var(--s6); align-items: start; }
.how__device { grid-column: 1 / span 4; background: var(--sheet); padding: var(--s6) var(--s5) 0; display: flex; justify-content: center; align-self: stretch; }
.how__device img { width: min(100%, 300px); align-self: end; }
.how__steps { grid-column: 5 / span 8; list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.step { display: grid; grid-template-columns: 64px 1fr 168px; gap: var(--s5); align-items: center; padding: var(--s5) 0; border-top: 1px solid var(--rule); counter-increment: step; }
.step:first-child { border-top: 3px solid var(--black); }
.step::before { content: counter(step); font-weight: 800; font-size: 3rem; line-height: 1; letter-spacing: -0.04em; align-self: start; }
.step h3 { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.015em; margin-bottom: var(--s2); }
.step p { color: var(--ink-2); max-width: 44ch; }
.state { text-align: center; font-size: 0.75rem; font-weight: 700; line-height: 1.3; }
.state img { width: 112px; margin: 0 auto var(--s2); }
.state span { display: block; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.state--far img { filter: grayscale(1) contrast(.6) brightness(1.25); opacity: .45; }
.state--near img { filter: grayscale(.85) brightness(1.1); opacity: .8; outline: 2px dashed var(--ink); outline-offset: 5px; border-radius: 50%; }
.state--got img { filter: drop-shadow(0 4px 8px rgb(20 20 18 / .25)); }
.state--got b { color: var(--np); }
.synthetic { margin-top: var(--s3); }

/* ---------- Stamps ---------- */
.packs { display: grid; gap: var(--s7); }
.pack { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s4); }
.pack__meta { grid-column: 1 / span 3; border-top: 6px solid var(--c); padding-top: var(--s3); }
.pack__meta h3 { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.015em; margin-bottom: var(--s2); }
.pack__meta dl { margin: var(--s3) 0 0; display: grid; grid-template-columns: auto 1fr; gap: 2px var(--s3); font-size: 0.9375rem; }
.pack__meta dt { color: var(--ink-3); }
.pack__meta dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.pack__meta p { font-size: 0.9375rem; color: var(--ink-2); margin-top: var(--s3); }
.pack__stamps { grid-column: 4 / span 9; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s4); align-content: start; }
.pack__stamps li { aspect-ratio: 1; }
.pack__stamps img { width: 100%; transition: transform .45s var(--ease-out), filter .45s var(--ease-out); }
.pack__stamps img:hover { transform: rotate(-4deg) scale(1.06); filter: drop-shadow(0 8px 12px rgb(20 20 18 / .22)); }
.pack__stamps .more-tile { display: grid; place-items: center; text-align: center; border-radius: 50%; border: 2px dashed var(--rule); color: var(--ink-3); font-size: 0.8125rem; font-weight: 700; line-height: 1.25; padding: var(--s3); }
.pack__stamps .more-tile b { display: block; font-size: 1.5rem; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* ---------- Fees ---------- */
.fees { row-gap: var(--s6); }
.fee { grid-column: span 4; border-top: 3px solid var(--black); padding-top: var(--s4); display: flex; flex-direction: column; gap: var(--s3); }
.fee h3 { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.015em; }
.price { font-size: 2.75rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.price small { font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
.fee ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s2); }
.fee li { padding-left: 22px; position: relative; color: var(--ink-2); }
.fee li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 9px; height: 5px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.fee--ranger { background: var(--sheet); border-top-color: var(--np); padding: var(--s4) var(--s5) var(--s5); position: relative; }
.fee--ranger img { position: absolute; right: var(--s5); top: calc(-1 * var(--s5)); width: 64px; }
table.packtable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.9375rem; }
.packtable th, .packtable td { text-align: left; padding: var(--s2) 0; border-bottom: 1px solid var(--rule); }
.packtable thead th { font-size: 0.75rem; font-weight: 700; color: var(--ink-3); border-bottom: 2px solid var(--ink); }
.packtable td:last-child, .packtable th:last-child { text-align: right; font-weight: 700; }
.packtable tr.total td { border-bottom: 0; padding-top: var(--s3); }
.packtable i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-right: var(--s2); }

/* ---------- Watch panel ---------- */
.watch { background: var(--black); color: #fff; margin-top: var(--s9); }
.watch .grid { align-items: center; padding-top: var(--s8); padding-bottom: var(--s8); row-gap: var(--s6); }
.watch__img { grid-column: 2 / span 4; }
.watch__img img { width: min(100%, 340px); margin: 0 auto; }
.watch__copy { grid-column: 7 / span 5; display: grid; gap: var(--s4); }
.watch__copy h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 800; letter-spacing: -0.03em; line-height: 0.98; }
.watch__copy p { color: #c9c9c2; }
.watch__copy ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s3); border-top: 1px solid #333; padding-top: var(--s4); }
.watch__copy li b { display: block; color: #fff; }
.watch__copy li { color: #b9b9b2; font-size: 0.9375rem; }

/* ---------- Good to know ---------- */
.know { row-gap: var(--s6); }
.know > div { grid-column: span 4; border-top: 3px solid var(--black); padding-top: var(--s4); display: grid; gap: var(--s3); align-content: start; }
.know h3 { font-size: 1.25rem; font-weight: 800; }
.know dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: var(--s1) var(--s4); font-size: 0.9375rem; }
.know dt { font-weight: 700; }
.know dd { margin: 0; color: var(--ink-2); }
.know p { color: var(--ink-2); font-size: 0.9375rem; }

/* ---------- Closing band ---------- */
.close { background: var(--sheet); margin-top: var(--s9); }
.close .grid { padding-top: var(--s8); padding-bottom: var(--s8); align-items: center; row-gap: var(--s5); }
.close h2 { grid-column: 1 / span 7; font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.close__act { grid-column: 9 / span 4; display: grid; gap: var(--s3); justify-items: start; }
.close__stamps { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s4); }
.close__stamps img { width: clamp(44px, 6vw, 72px); }

/* ---------- Footer ---------- */
.site-foot { background: var(--black); color: #c9c9c2; font-size: 0.9375rem; }
.site-foot .grid { padding-top: var(--s7); padding-bottom: var(--s6); row-gap: var(--s6); }
.foot__about { grid-column: 1 / span 5; display: grid; gap: var(--s4); align-content: start; }
.foot__about .brand { color: #fff; font-size: 1.25rem; font-weight: 800; }
.foot__about .brand img { width: 40px; height: 40px; }
.foot__col { grid-column: span 2; }
.foot__col:first-of-type { grid-column: 7 / span 2; }
.foot__col h2 { font-size: 0.8125rem; font-weight: 700; color: #fff; margin-bottom: var(--s3); }
.foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.foot__col a { text-decoration: none; }
.foot__col a:hover { color: #fff; text-decoration: underline; }
.foot__legal { grid-column: 1 / -1; border-top: 1px solid #2a2a2a; padding-top: var(--s4); display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; font-size: 0.8125rem; color: #9a9a93; }

/* ---------- Read pages (support, privacy) ---------- */
.read { padding-top: var(--s7); padding-bottom: var(--s9); row-gap: var(--s6); }
.read__aside { grid-column: 1 / span 3; }
.read__aside nav { position: sticky; top: var(--s5); border-top: 3px solid var(--black); padding-top: var(--s3); }
.read__aside h2 { font-size: 0.8125rem; font-weight: 700; color: var(--ink-3); margin-bottom: var(--s2); }
.read__aside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s1); font-size: 0.9375rem; }
.read__aside a { text-decoration: none; display: block; padding: 3px 0; }
.read__aside a:hover { text-decoration: underline; }
.read__body { grid-column: 4 / span 7; }
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; margin: var(--s8) 0 var(--s4); padding-top: var(--s4); border-top: 3px solid var(--black); scroll-margin-top: var(--s5); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.125rem; font-weight: 800; margin: var(--s6) 0 var(--s2); }
.prose p, .prose ul { margin: 0 0 var(--s4); color: var(--ink-2); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: var(--s2); }
.prose li::marker { color: var(--ink-3); }
.prose strong { color: var(--ink); }
.prose code, .path { font-family: inherit; font-weight: 700; color: var(--ink); background: var(--sheet); padding: 1px 6px; border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.meta { display: flex; gap: var(--s5); flex-wrap: wrap; font-size: 0.875rem; color: var(--ink-3); margin-bottom: var(--s6); }
.meta b { color: var(--ink); }

/* FAQ */
.faq { border-top: 3px solid var(--black); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; padding: var(--s4) 40px var(--s4) 0; position: relative;
  font-weight: 700; font-size: 1.125rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: calc(var(--s4) + 0.35em); width: 10px; height: 10px;
  border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); transition: transform .3s var(--ease-out);
}
.faq details[open] summary::after { transform: translate(0, 4px) rotate(-135deg); }
.faq summary:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.faq .answer { padding: 0 0 var(--s5); color: var(--ink-2); max-width: 64ch; display: grid; gap: var(--s3); }
.faq-group { margin-bottom: var(--s7); }
.faq-group > h2 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: var(--s4); scroll-margin-top: var(--s5); }

/* Form */
.form { display: grid; gap: var(--s5); max-width: 640px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 0.9375rem; }
.field label span { font-weight: 500; color: var(--ink-3); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 2px solid var(--ink); border-radius: 0; padding: 10px 12px; width: 100%;
  caret-color: var(--se); transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #75756e; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--se); box-shadow: 0 0 0 3px rgb(43 115 184 / .25); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field .err { font-size: 0.875rem; font-weight: 600; color: #b3261e; min-height: 0; }
.field .err:empty { display: none; }
.btn {
  font: inherit; font-weight: 700; font-size: 1rem; color: #fff; background: var(--black); border: 0; padding: 14px 24px; cursor: pointer;
  justify-self: start; display: inline-flex; align-items: center; gap: var(--s2); transition: background-color .2s;
}
.btn:hover { background: #333; }
.btn[disabled] { background: #77776f; cursor: progress; }
.btn .spin { width: 14px; height: 14px; border: 2px solid rgb(255 255 255 / .4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; display: none; }
.btn[disabled] .spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice { padding: var(--s4) var(--s5); font-weight: 600; background: var(--sheet); border-top: 3px solid var(--np); }
.notice--err { border-top-color: #b3261e; }
.notice[hidden] { display: none; }
.hp { position: absolute; left: -9999px; }

/* ---------- Stamps page ---------- */
.catalog { padding-top: var(--s7); padding-bottom: var(--s9); display: grid; gap: var(--s8); }
.catalog .pack__stamps { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.intro { row-gap: var(--s5); padding-top: var(--s7); }
.intro .lede { grid-column: 1 / span 7; }
.intro aside { grid-column: 9 / span 4; display: grid; gap: var(--s3); align-content: start; }
.special { display: grid; grid-template-columns: 72px 1fr; gap: var(--s4); align-items: start; background: var(--sheet); padding: var(--s5); border-top: 6px solid var(--se); }
.special img { width: 56px; }
.special h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: var(--s2); }
.special p { color: var(--ink-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .front__copy { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gutter); }
  .front__copy .lede { grid-column: 1 / -1; }
  .front__map { grid-column: 1 / -1; }
  .how__device { grid-column: 1 / span 5; }
  .how__steps { grid-column: 6 / span 7; }
  .step { grid-template-columns: 48px 1fr; }
  .step .state { grid-column: 2; justify-self: start; display: grid; grid-template-columns: 64px auto; grid-template-rows: auto auto; column-gap: var(--s3); align-items: center; text-align: left; font-size: 0.875rem; }
  .step .state img { width: 64px; margin: 0; grid-row: 1 / span 2; }
  .step .state b, .step .state span { align-self: end; }
  .step .state span { align-self: start; grid-column: 2; }
  .fee { grid-column: span 6; }
  .fee--packs { grid-column: 1 / -1; }
  .know > div { grid-column: span 6; }
  .pack__meta { grid-column: 1 / -1; }
  .pack__stamps { grid-column: 1 / -1; }
  .read__aside { display: none; }
  .read__body { grid-column: 1 / span 10; }
  .foot__about { grid-column: 1 / -1; }
  .foot__col, .foot__col:first-of-type { grid-column: span 4; }
}
@media (max-width: 720px) {
  body { font-size: 1rem; }
  :root { --gutter: 16px; }
  .nav ul { display: none; }
  .band__top { padding-top: var(--s3); padding-bottom: var(--s3); }
  .band__title { padding-top: var(--s6); }
  .band__title h1, .band__title .h1 { grid-column: 1 / -1; }
  .band__sub { grid-column: 1 / -1; margin-top: var(--s4); }
  .mnav { display: flex !important; }
  .front__copy { display: flex; }
  .map__cap, .map__pin { display: none; }
  .strip { flex-direction: column; gap: 2px; }
  .how__device { grid-column: 1 / -1; max-height: 340px; overflow: hidden; padding-top: var(--s5); }
  .how__device img { width: 220px; }
  .how__steps { grid-column: 1 / -1; }
  .step::before { font-size: 2.25rem; }
  .fee, .know > div { grid-column: 1 / -1; }
  .pack__stamps, .catalog .pack__stamps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .watch__img, .watch__copy { grid-column: 1 / -1; }
  .watch__img img { width: 220px; }
  .close h2, .close__act { grid-column: 1 / -1; }
  .intro .lede, .intro aside { grid-column: 1 / -1; }
  .read__body { grid-column: 1 / -1; }
  .form__row { grid-template-columns: 1fr; }
  .foot__col, .foot__col:first-of-type { grid-column: span 6; }
  .section { padding-top: var(--s8); }
}
.mnav { display: none; background: var(--black); border-top: 1px solid #2a2a2a; overflow-x: auto; scrollbar-width: none; }
.mnav ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin: 0; padding: var(--s3) var(--margin); }
.mnav a { color: #d8d8d2; text-decoration: none; font-weight: 600; font-size: 0.9375rem; white-space: nowrap; }
.mnav a[aria-current="page"] { color: #fff; text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
@media print {
  .band, .site-foot, .watch { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Stamps are collected, not displayed: ghosted until their row comes into view */
@media (prefers-reduced-motion: no-preference) {
  .js .pack__stamps img { filter: grayscale(1) contrast(.7) brightness(1.2); opacity: .4; transform: scale(.92); transition: filter .5s var(--ease-out), opacity .5s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms); }
  .js .pack.is-collected .pack__stamps img { filter: none; opacity: 1; transform: none; }
  .js .pack.is-collected .pack__stamps img:hover { transform: rotate(-4deg) scale(1.06); filter: drop-shadow(0 8px 12px rgb(20 20 18 / .22)); transition-delay: 0s; }
  /* The map panel unfolds once, like the brochure opening */
  .map { animation: unfold .9s var(--ease-out) .05s backwards; }
}
@keyframes unfold { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
