/* Goose Greetings site styles. All values come from tokens.css. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--t-base)/1.55 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 700; line-height: 1.04; letter-spacing: -0.022em; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--pond); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--pond); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 48px, var(--page)); margin-inline: auto; }
.skip { position: absolute; left: var(--s-4); top: -80px; background: var(--ink); color: var(--paper); padding: var(--s-3) var(--s-4); border-radius: var(--r-input); z-index: 50; }
.skip:focus { top: var(--s-4); color: var(--paper); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mono { font-family: var(--mono); letter-spacing: 0; }

/* ---------- buttons and chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 48px; padding: 0 var(--s-5); border-radius: var(--r-pill); border: 2px solid var(--ink); background: transparent; color: var(--ink); font-weight: 600; font-size: var(--t-base); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease); }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--beak); border-color: var(--beak); color: var(--ink); }
.btn--primary:hover { background: var(--beak-press); border-color: var(--beak-press); color: var(--ink); }
.btn--quiet { border-color: transparent; padding-inline: var(--s-3); }
.btn--quiet:hover { background: var(--sky); color: var(--ink); }
.btn--lg { min-height: 56px; padding-inline: var(--s-6); font-size: var(--t-lg); }
.btn--sm { min-height: 44px; padding-inline: var(--s-4); font-size: var(--t-sm); }
.btn--on-dark { border-color: var(--paper); color: var(--paper); }
.btn--on-dark:hover { background: var(--paper); color: var(--ink); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-4); border-radius: var(--r-pill); border: 1.5px solid var(--line-strong); background: var(--card); font-weight: 500; font-size: var(--t-sm); cursor: pointer; transition: background var(--ease), border-color var(--ease), color var(--ease); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- preview bar and header ---------- */
.preview { background: var(--ink); color: var(--paper); font-size: var(--t-xs); text-align: center; padding: var(--s-2) var(--s-4); }
.nav { position: sticky; top: 0; z-index: 20; background: oklch(98.4% 0.006 250 / 0.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color var(--ease); }
.nav.is-stuck { border-bottom-color: var(--line); }
.nav__in { display: flex; align-items: center; gap: var(--s-5); min-height: 72px; }
.nav__logo { display: block; flex: none; }
.nav__logo img { height: 36px; width: auto; }
.nav__links { display: flex; gap: var(--s-1); margin-left: auto; }
.nav__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3); border-radius: var(--r-pill); color: var(--ink); text-decoration: none; font-weight: 500; font-size: var(--t-sm); transition: background var(--ease); }
.nav__links a:hover { background: var(--sky); }
.nav__cta { display: flex; align-items: center; gap: var(--s-2); }
.nav__toggle { display: none; }
@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; margin-left: auto; width: 48px; padding: 0; }
  .nav__links { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; padding: var(--s-3) 24px var(--s-5); margin: 0; }
  .nav__links a { min-height: 52px; font-size: var(--t-lg); padding: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__links { display: flex; }
  .nav__cta .btn--quiet { display: none; }
}
@media (max-width: 480px) { .nav__logo img { height: 27px; } .nav__in { gap: var(--s-1); } .nav__cta .btn { padding-inline: var(--s-3); font-size: var(--t-xs); } .nav__toggle { width: 44px; margin-right: -8px; } }

/* ---------- postcards ---------- */
.pc { position: relative; display: block; aspect-ratio: 3 / 2; border-radius: var(--r-card); overflow: hidden; background: var(--card); box-shadow: var(--shadow-mail); container-type: inline-size; color: oklch(99% 0 0); --panel: var(--ink); --panel-ink: oklch(99% 0 0); --face: var(--font); isolation: isolate; }
.pc > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.pc__text { z-index: 1; }
.pc__greet { font-family: var(--face); font-weight: 700; line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }
.pc__from { font-family: var(--font); font-weight: 600; font-size: 2.7cqw; letter-spacing: 0.14em; text-transform: uppercase; }
.pc[data-face="serif"] { --face: "Young Serif", Georgia, serif; }
.pc[data-face="serif"] .pc__greet, .pc[data-face="fat"] .pc__greet { font-weight: 400; letter-spacing: -0.01em; }
.pc[data-face="fat"] { --face: "Caprasimo", "Cooper Black", serif; }
.pc[data-panel="beak"] { --panel: var(--beak); --panel-ink: var(--ink); }
.pc[data-panel="sky"] { --panel: var(--sky); --panel-ink: var(--ink); }
.pc[data-panel="paper"] { --panel: var(--card); --panel-ink: var(--ink); }
.pc[data-panel="pond"] { --panel: var(--pond); }

/* full photo, words along the bottom */
.pc--bleed::after { content: ""; position: absolute; inset: 45% 0 0 0; background: linear-gradient(to bottom, oklch(20% 0.03 265 / 0), oklch(20% 0.03 265 / 0.72)); z-index: 0; }
.pc--bleed .pc__text { position: absolute; left: 6cqw; right: 6cqw; bottom: 6cqw; display: grid; gap: 2cqw; }
.pc--bleed .pc__greet { font-size: 9.5cqw; }
/* white border, photo inset, words below */
.pc--frame { background: var(--card); color: var(--ink); }
.pc--frame > img { inset: 4.5cqw 4.5cqw auto 4.5cqw; width: calc(100% - 9cqw); height: 64%; border-radius: 2px; }
.pc--frame .pc__text { position: absolute; left: 5cqw; right: 5cqw; bottom: 4.4cqw; height: 14cqw; display: flex; align-items: center; justify-content: space-between; gap: 4cqw; }
.pc--frame .pc__greet { font-size: 5.8cqw; line-height: 1.04; }
.pc--frame .pc__from { font-size: 2.2cqw; text-align: right; color: var(--ink-soft); flex: none; max-width: 34%; line-height: 1.5; }
/* photo on the left, color panel on the right */
.pc--split > img { width: 58%; }
.pc--split .pc__text { position: absolute; inset: 0 0 0 58%; background: var(--panel); color: var(--panel-ink); display: flex; flex-direction: column; justify-content: center; gap: 3.2cqw; padding: 5cqw; }
.pc--split .pc__greet { font-size: 8.4cqw; }
.pc--split .pc__from { font-size: 2.2cqw; }
/* full photo with a solid band */
.pc--band .pc__text { position: absolute; left: 0; right: 0; bottom: 0; background: var(--panel); color: var(--panel-ink); padding: 4cqw 5.5cqw 4.4cqw; display: grid; gap: 1.6cqw; }
.pc--band .pc__greet { font-size: 7.2cqw; }
.pc--band .pc__from { font-size: 2.3cqw; }
/* full photo with a round seal */
.pc--seal .pc__text { position: absolute; inset: 0; }
.pc--seal .pc__greet { position: absolute; right: 6cqw; top: 6cqw; width: 34cqw; aspect-ratio: 1; border-radius: 50%; background: var(--panel); color: var(--panel-ink); display: grid; place-items: center; text-align: center; padding: 3.5cqw; font-size: 6cqw; line-height: 1.02; rotate: 7deg; }
.pc--seal .pc__from { position: absolute; left: 5cqw; bottom: 5cqw; background: var(--card); color: var(--ink); padding: 1.6cqw 3cqw; border-radius: var(--r-pill); font-size: 2.3cqw; }
/* big words across the photo */
.pc--loud > img { filter: brightness(0.74); }
.pc--loud .pc__text { position: absolute; inset: 6cqw; display: flex; flex-direction: column; justify-content: space-between; }
.pc--loud .pc__greet { font-size: 13.5cqw; line-height: 0.95; }

/* the back of a card */
.pc--back { background: var(--card); color: var(--ink); display: grid; grid-template-columns: 43% 1fr; }
.pcb__msg { padding: 6cqw 4cqw 6cqw 6cqw; font-size: 3.5cqw; line-height: 1.42; border-right: 1px solid var(--line-strong); margin: 5cqw 0; padding-block: 1cqw; white-space: pre-line; overflow: hidden; }
.pcb__right { position: relative; padding: 6cqw 5cqw; font-family: var(--mono); font-size: 2.1cqw; line-height: 1.5; text-transform: uppercase; }
.pcb__return { position: absolute; left: 5cqw; top: 38%; max-width: 46%; color: var(--ink-soft); }
.pcb__indicia { position: absolute; right: 5cqw; top: 36%; border: 1px solid var(--ink); padding: 1.6cqw 2cqw; text-align: center; font-size: 1.8cqw; line-height: 1.35; }
.pcb__bars { position: absolute; left: 5cqw; right: 5cqw; top: 62%; height: 2.6cqw; background: repeating-linear-gradient(to right, var(--ink) 0 0.4cqw, transparent 0.4cqw 1.2cqw); }
.pcb__to { position: absolute; left: 5cqw; right: 5cqw; top: 71%; font-size: 2.7cqw; font-weight: 500; }

/* ---------- hero ---------- */
.hero { padding: var(--s-8) 0 var(--s-9); overflow: clip; }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: var(--s-8); align-items: center; }
.hero h1 { font-size: clamp(2.75rem, 6.2vw, var(--t-5xl)); font-weight: 800; letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--pond); }
.hero__lead { margin-top: var(--s-5); font-size: var(--t-lg); line-height: 1.5; color: var(--ink-soft); max-width: 31em; }
.hero__actions { margin-top: var(--s-6); display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero__facts { margin-top: var(--s-6); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); color: var(--ink-soft); font-size: var(--t-sm); }
.hero__facts li { display: flex; align-items: center; gap: var(--s-2); }
.hero__facts .icon { width: 18px; height: 18px; color: var(--ok); stroke-width: 2.6; }
.stack { position: relative; aspect-ratio: 1 / 0.96; }
.stack .pc { position: absolute; transition: transform 300ms ease, box-shadow 300ms ease; }
.stack .pc:nth-child(1) { right: 3%; top: 0; width: 58%; rotate: 8deg; }
.stack .pc:nth-child(2) { left: 0; top: 9%; width: 70%; rotate: -4deg; }
.stack .pc:nth-child(3) { right: 0; bottom: 0; width: 68%; rotate: 3deg; }
.stack .pc:hover { transform: translateY(-8px); box-shadow: var(--shadow-mail-lift); z-index: 3; }
.stack__goose { position: absolute; left: 1%; bottom: -7%; width: 27%; z-index: 4; pointer-events: none; }
@media (max-width: 900px) {
  .hero { padding-top: var(--s-6); }
  .hero__in { grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }
  .stack { max-width: 560px; margin-inline: auto; width: 100%; }
}

/* ---------- section scaffolding ---------- */
.section { padding: var(--s-9) 0; }
.section--sky { background: var(--sky); }
.section--ink { background: var(--ink); color: var(--paper); }
.section__head { display: grid; gap: var(--s-4); max-width: 44rem; margin-bottom: var(--s-8); }
.section__head h2 { font-size: clamp(2rem, 4.4vw, var(--t-4xl)); font-weight: 800; }
.section__head p { font-size: var(--t-lg); color: var(--ink-soft); line-height: 1.5; }
.section--ink .section__head p { color: oklch(84% 0.02 250); }
@media (max-width: 700px) { .section { padding: var(--s-8) 0; } .section__head { margin-bottom: var(--s-7); } }

/* ---------- how it works ---------- */
.steps { display: grid; gap: var(--s-9); }
.step { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--s-8); align-items: center; }
.step:nth-child(even) .step__copy { order: 2; }
.step__n { font-size: var(--t-5xl); font-weight: 800; line-height: 0.9; letter-spacing: -0.04em; color: var(--pond); }
.step h3 { font-size: var(--t-2xl); margin-top: var(--s-4); }
.step__copy > p { margin-top: var(--s-4); color: var(--ink-soft); max-width: 30em; }
.ticks { margin-top: var(--s-5); display: grid; gap: var(--s-3); }
.ticks li { display: flex; gap: var(--s-3); align-items: flex-start; }
.ticks .icon { margin-top: 3px; color: var(--pond); stroke-width: 2.6; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-panel); padding: var(--s-5); }
.section--sky .panel { border-color: var(--sky-deep); }
@media (max-width: 900px) { .step { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); } .step:nth-child(even) .step__copy { order: 0; } .steps { gap: var(--s-8); } }

/* vignette: editor */
.v-edit { display: grid; gap: var(--s-4); }
.v-edit__bar { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tool { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 36px; padding: 0 var(--s-3); border-radius: var(--r-pill); background: var(--paper); border: 1px solid var(--line); font-size: var(--t-xs); font-weight: 500; }
.tool .icon { width: 16px; height: 16px; }
.v-edit .pc { box-shadow: var(--shadow-mail); }
/* vignette: address link */
.v-link { display: grid; gap: var(--s-4); }
.linkbox { display: flex; align-items: center; gap: var(--s-3); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-input); padding: var(--s-2) var(--s-2) var(--s-2) var(--s-4); font-family: var(--mono); font-size: var(--t-sm); }
.linkbox > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linkbox .btn { font-family: var(--font); flex: none; }
.rows { display: grid; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-1) var(--s-4); align-items: center; padding: var(--s-3) 0; border-top: 1px solid var(--line); }
.row b { font-weight: 600; }
.row small { color: var(--ink-soft); font-size: var(--t-xs); grid-column: 1; }
.row .status { grid-row: 1 / span 2; grid-column: 2; }
.status { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 var(--s-3); border-radius: var(--r-pill); font-size: var(--t-xs); font-weight: 600; background: var(--sky); color: var(--ink); white-space: nowrap; }
.status .icon { width: 14px; height: 14px; stroke-width: 2.8; }
.status--ok { background: var(--ok-wash); color: var(--ok); }
.status--warn { background: var(--warn-wash); color: var(--warn); }
.status--new { background: var(--beak-wash); color: oklch(42% 0.12 50); }
/* vignette: tracking */
.track { display: grid; gap: var(--s-5); }
.track__line { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; font-size: var(--t-xs); font-weight: 600; text-align: center; }
.track__line::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 11px; height: 2px; background: var(--line-strong); }
.track__line::after { content: ""; position: absolute; left: 12.5%; width: 50%; top: 11px; height: 2px; background: var(--pond); }
.track__line li { display: grid; justify-items: center; gap: var(--s-2); position: relative; z-index: 1; color: var(--ink-faint); }
.track__line li::before { content: ""; width: 24px; height: 24px; border-radius: 50%; background: var(--card); border: 2px solid var(--line-strong); }
.track__line li.done { color: var(--ink); }
.track__line li.done::before { background: var(--pond); border-color: var(--pond); }
.track__line li.now::before { background: var(--card); border-color: var(--pond); box-shadow: 0 0 0 4px var(--sky); }
.track__line li.now { color: var(--pond); }

/* ---------- designs gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); }
.gallery__item { display: grid; gap: var(--s-3); }
.gallery__item button { all: unset; display: block; cursor: pointer; border-radius: var(--r-card); transition: transform var(--ease); }
.gallery__item button:hover { transform: translateY(-6px) rotate(-0.6deg); }
.gallery__item button:hover .pc { box-shadow: var(--shadow-mail-lift); }
.gallery__item button:focus-visible { outline: 3px solid var(--pond); outline-offset: 4px; }
.gallery__meta { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); font-size: var(--t-sm); }
.gallery__meta b { font-weight: 600; }
.gallery__meta span { color: var(--ink-soft); }
.gallery__note { margin-top: var(--s-7); color: var(--ink-soft); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gallery { gap: var(--s-5) var(--s-3); } .gallery__meta span { display: none; } .gallery__meta { font-size: var(--t-xs); } }

/* ---------- try it: the builder ---------- */
.builder { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s-7); align-items: start; }
.builder__stage { position: sticky; top: 96px; display: grid; gap: var(--s-4); }
.seg { display: inline-flex; padding: 4px; background: var(--card); border: 1px solid var(--sky-deep); border-radius: var(--r-pill); justify-self: start; }
.seg button { min-height: 44px; padding: 0 var(--s-5); border: 0; background: none; border-radius: var(--r-pill); font-weight: 600; font-size: var(--t-sm); cursor: pointer; transition: background var(--ease), color var(--ease); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.flip { perspective: 1600px; }
.flip__in { position: relative; aspect-ratio: 3 / 2; transition: transform 500ms ease; transform-style: preserve-3d; }
.flip__in > .pc { position: absolute; inset: 0; backface-visibility: hidden; }
.flip__in > .pc--back { transform: rotateY(180deg); }
.flip.is-back .flip__in { transform: rotateY(180deg); }
.builder__hint { font-size: var(--t-sm); color: var(--ink-soft); }
.form { display: grid; gap: var(--s-5); }
.field { display: grid; gap: var(--s-2); }
.field > label, .field > .label { font-weight: 600; font-size: var(--t-sm); }
.field small { color: var(--ink-soft); font-size: var(--t-xs); }
.input { width: 100%; min-height: 48px; padding: var(--s-3) var(--s-4); border: 1.5px solid var(--line-strong); border-radius: var(--r-input); background: var(--card); transition: border-color var(--ease), box-shadow var(--ease); }
textarea.input { resize: vertical; min-height: 112px; line-height: 1.45; }
.input:hover { border-color: var(--ink-faint); }
.input:focus { outline: none; border-color: var(--pond); box-shadow: 0 0 0 3px var(--sky-deep); }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.swatch { all: unset; cursor: pointer; border-radius: var(--r-card); outline: 2px solid transparent; outline-offset: 3px; transition: outline-color var(--ease), transform var(--ease); }
.swatch:hover { transform: translateY(-2px); }
.swatch[aria-pressed="true"] { outline-color: var(--ink); }
.swatch:focus-visible { outline: 3px solid var(--pond); }
.swatch .pc { box-shadow: 0 1px 3px oklch(22.5% 0.035 265 / 0.2); pointer-events: none; }
.upload { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.upload input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upload input:focus-visible + .btn { outline: 3px solid var(--pond); outline-offset: 3px; }
.count { justify-self: end; font-size: var(--t-xs); color: var(--ink-faint); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .builder { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); } .builder__stage { position: static; } }

/* ---------- address book ---------- */
.book { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--s-8); align-items: center; }
.book__table { padding: 0; overflow: hidden; }
.book__top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); }
.book__top .tag { min-height: 32px; display: inline-flex; align-items: center; padding: 0 var(--s-3); border-radius: var(--r-pill); font-size: var(--t-xs); font-weight: 600; border: 1px solid var(--line-strong); }
.book__top .tag.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.book__top .count-pill { margin-left: auto; font-size: var(--t-xs); color: var(--ink-soft); }
.book__table .row { padding: var(--s-3) var(--s-5); }
.book__table .row:first-of-type { border-top: 0; }
.book__foot { padding: var(--s-4) var(--s-5); background: var(--beak-wash); border-top: 1px solid var(--line); font-size: var(--t-sm); display: flex; gap: var(--s-3); align-items: center; }
.book__foot .icon { color: oklch(48% 0.14 50); }
@media (max-width: 900px) { .book { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); } }

/* ---------- pricing ---------- */
.price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); align-items: start; }
.calc { padding: var(--s-6); display: grid; gap: var(--s-5); }
.calc__q { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.calc__q label { font-weight: 600; font-size: var(--t-lg); white-space: nowrap; }
.calc__q input { width: 112px; text-align: center; font-weight: 700; font-size: var(--t-xl); font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; height: 44px; accent-color: var(--pond); cursor: pointer; background: transparent; }
.calc__out { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.calc__out div { display: grid; gap: var(--s-1); }
.calc__out span { font-size: var(--t-sm); color: var(--ink-soft); }
.calc__out b { font-size: var(--t-3xl); font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.tiers { display: grid; gap: 0; }
.tier { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); border: 1.5px solid var(--line); margin-top: -1.5px; transition: background var(--ease), border-color var(--ease); }
.tier:first-child { border-radius: var(--r-panel) var(--r-panel) 0 0; margin-top: 0; }
.tier:last-child { border-radius: 0 0 var(--r-panel) var(--r-panel); }
.tier.on { background: var(--sky); border-color: var(--pond); position: relative; z-index: 1; }
.tier b { font-size: var(--t-xl); font-weight: 700; font-variant-numeric: tabular-nums; }
.tier small { color: var(--ink-soft); font-size: var(--t-sm); font-weight: 500; }
.included { margin-top: var(--s-6); }
.included h3 { font-size: var(--t-lg); margin-bottom: var(--s-4); letter-spacing: -0.01em; }
@media (max-width: 900px) { .price { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); } }

/* ---------- before you pay (dark band) ---------- */
.proofs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7); }
.proof { display: grid; gap: var(--s-3); align-content: start; padding-top: var(--s-5); border-top: 2px solid var(--beak); }
.proof h3 { font-size: var(--t-xl); letter-spacing: -0.015em; line-height: 1.15; }
.proof p { color: oklch(84% 0.02 250); }
@media (max-width: 800px) { .proofs { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); } }

/* ---------- questions ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: var(--s-8); }
.faq .section__head { margin: 0; align-content: start; }
.qa { border-top: 1px solid var(--line-strong); }
.qa:last-child { border-bottom: 1px solid var(--line-strong); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); min-height: 68px; padding: var(--s-4) 0; cursor: pointer; font-weight: 600; font-size: var(--t-lg); list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .icon { transition: transform var(--ease); color: var(--pond); }
.qa[open] summary .icon { transform: rotate(45deg); }
.qa summary:hover { color: var(--pond); }
.qa p { padding: 0 var(--s-7) var(--s-5) 0; color: var(--ink-soft); max-width: 40em; }
@media (max-width: 900px) { .faq { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); } }

/* ---------- closing call ---------- */
.closing { background: var(--beak); overflow: clip; }
.closing__in { position: relative; padding-top: var(--s-9); }
.closing h2 { font-size: clamp(2.25rem, 5.4vw, var(--t-5xl)); font-weight: 800; letter-spacing: -0.03em; max-width: 12em; }
.closing p { margin-top: var(--s-4); font-size: var(--t-lg); max-width: 30em; }
.closing__copy { padding-bottom: var(--s-9); }
.closing .btn { margin-top: var(--s-6); background: var(--ink); border-color: var(--ink); color: var(--paper); }
.closing .btn:hover { background: var(--card); border-color: var(--card); color: var(--ink); }
.closing img { position: absolute; right: 2%; bottom: -5%; width: clamp(150px, 25vw, 330px); }
@media (max-width: 800px) { .closing__in { padding-top: var(--s-8); } .closing__copy { padding-bottom: 150px; } .closing img { width: 150px; right: 4%; } }

/* ---------- footer ---------- */
.foot { padding: var(--s-8) 0 var(--s-7); background: var(--ink); color: oklch(84% 0.02 250); font-size: var(--t-sm); }
.foot__in { display: flex; flex-wrap: wrap; gap: var(--s-6) var(--s-8); justify-content: space-between; align-items: flex-start; }
.foot img { height: 36px; width: auto; }
.foot__in p { margin-top: var(--s-4); max-width: 26em; }
.foot nav { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); }
.foot a { color: var(--paper); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.foot a:hover { text-decoration: underline; }
.foot__legal { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid oklch(36% 0.03 265); color: oklch(70% 0.02 255); font-size: var(--t-xs); }

/* ---------- dialog and toast ---------- */
dialog { border: 0; border-radius: var(--r-panel); padding: var(--s-6); width: min(92vw, 480px); background: var(--card); color: var(--ink); }
dialog::backdrop { background: oklch(22.5% 0.035 265 / 0.55); }
dialog h2 { font-size: var(--t-2xl); }
dialog p { margin-top: var(--s-4); color: var(--ink-soft); }
dialog .btn { margin-top: var(--s-5); }
.toast { position: fixed; left: 50%; bottom: var(--s-5); translate: -50% 0; background: var(--ink); color: var(--paper); padding: var(--s-3) var(--s-5); border-radius: var(--r-pill); font-size: var(--t-sm); font-weight: 500; z-index: 40; opacity: 0; pointer-events: none; transition: opacity var(--ease), translate var(--ease); }
.toast.is-on { opacity: 1; translate: -50% -8px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .flip__in { transition: none; }
}

/* single-column grids must be allowed to shrink below their content's natural width */
.rows, .v-link, .v-edit, .track, .form, .calc, .steps, .tiers, .ticks, .field { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 520px) {
  .row { grid-template-columns: minmax(0, 1fr); }
  .row .status { grid-row: auto; grid-column: 1; justify-self: start; margin-top: var(--s-1); }
  .track__line { font-size: 0.75rem; }
  .calc { padding: var(--s-5); }
  .calc__out b { font-size: var(--t-2xl); }
  .hero__actions .btn { flex: 1 1 100%; }
  .swatches { gap: var(--s-2); }
}
