/* ==========================================================================
   ID Photo Maker - "photo template" design system
   Idea: the page looks like the official measuring template a passport
   photo is checked against. Ink on photo paper, millimetre rulers, and red
   used ONLY for measurements. Type: Barlow (a DIN-style face, the kind on
   forms and technical drawings), condensed for headings and numbers.
   ========================================================================== */
:root {
  --font-text: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Barlow Condensed", "Barlow", "Arial Narrow", system-ui, sans-serif;

  /* type scale (17px base, ~1.25 steps) */
  --fs-xs: .8125rem;
  --fs-sm: .9rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: 1.6rem;
  --fs-xl: clamp(1.9rem, 4.4vw, 2.6rem);
  --fs-2xl: clamp(2.7rem, 7.6vw, 4.6rem);

  /* palette */
  --paper: #f4f6f8;      /* photo paper, cool */
  --sheet: #ffffff;
  --ink: #14213d;        /* passport ink */
  --ink-2: #3a475d;      /* body text */
  --muted: #66738a;
  --rule: #cdd5de;
  --rule-soft: #e3e8ee;
  --red: #d2283c;        /* measurements only */
  --ok: #0b7a55;
  --ok-soft: #e4f2ec;
  --warn: #9a5600;
  --warn-soft: #fbf1e2;
  --err: #b42318;
  --err-soft: #fbeae8;

  --on-ink: #ffffff;      /* text/icons on an ink-filled surface */
  --ink-hover: #0b1427;
  --toggle-on: #14213d;
  --ruler: #7d8a9a;
  --grid: rgba(20, 33, 61, .055);

  /* names the tool's inline SVG still uses */
  --surface: var(--sheet);
  --brand: var(--ink);
  --line-2: var(--rule);

  --r-sm: 6px;
  --r: 10px;
  --ring: 0 0 0 3px rgba(20, 33, 61, .22);
  --ease: cubic-bezier(.2, .8, .2, 1);

  --logo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='7' fill='%2314213d'/%3E%3Cpath d='M8 12V8h4M20 8h4v4M24 20v4h-4M12 24H8v-4' fill='none' stroke='%23d2283c' stroke-width='2'/%3E%3Ccircle cx='16' cy='14' r='3.2' fill='white'/%3E%3Cpath d='M10.8 22.5c.9-2.8 2.9-4.3 5.2-4.3s4.3 1.5 5.2 4.3z' fill='white'/%3E%3C/svg%3E");
  --i-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10.5' width='16' height='10' rx='2'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
  --i-tag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12V4.5A1.5 1.5 0 0 1 4.5 3H12l9 9-9 9z'/%3E%3Ccircle cx='8' cy='8' r='1.5'/%3E%3C/svg%3E");
  --i-ruler: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='8' width='19' height='8' rx='1'/%3E%3Cpath d='M6.5 8v3M10.5 8v4M14.5 8v3M18.5 8v4'/%3E%3C/svg%3E");
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --select-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314213d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  color-scheme: light;
}

/* ---------------------------------------------------------------- dark: the lightbox at night */
:root[data-theme="dark"] {
  --paper: #0f1828; --sheet: #162236; --ink: #e8edf4; --ink-2: #b6c1cf; --muted: #8492a7;
  --rule: #2b3a52; --rule-soft: #1f2c42; --red: #ff5d6c;
  --ok: #43d197; --ok-soft: #10302a; --warn: #f2b25c; --warn-soft: #33260f; --err: #ff8073; --err-soft: #3a1b1b;
  --on-ink: #0f1828; --ink-hover: #ffffff; --toggle-on: #4f72b8; --ruler: #6f7f96; --grid: rgba(232, 237, 244, .045);
  --ring: 0 0 0 3px rgba(232, 237, 244, .28);
  --select-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8edf4' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1828; --sheet: #162236; --ink: #e8edf4; --ink-2: #b6c1cf; --muted: #8492a7;
    --rule: #2b3a52; --rule-soft: #1f2c42; --red: #ff5d6c;
    --ok: #43d197; --ok-soft: #10302a; --warn: #f2b25c; --warn-soft: #33260f; --err: #ff8073; --err-soft: #3a1b1b;
    --on-ink: #0f1828; --ink-hover: #ffffff; --toggle-on: #4f72b8; --ruler: #6f7f96; --grid: rgba(232, 237, 244, .045);
    --ring: 0 0 0 3px rgba(232, 237, 244, .28);
    --select-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8edf4' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    color-scheme: dark;
  }
}
/* smooth cross-fade only while the toggle is used */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after { transition: background-color .4s ease, color .4s ease, border-color .4s ease, fill .4s ease, stroke .4s ease !important; }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink-2); overflow-x: clip; min-height: 100vh;
  font: 400 var(--fs-base)/1.55 var(--font-text);
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.1; margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.005em; }
h3, h4 { font-family: var(--font-text); font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ink) 40%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-color: var(--ink); }
img, canvas, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
::selection { background: rgba(20, 33, 61, .16); }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.small { font-size: var(--fs-sm); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-weight: 600; color: var(--muted); margin: 0 0 8px; }

/* ---------------------------------------------------------------- header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 4px 24px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 700 1.3rem/1 var(--font-display); letter-spacing: .005em; }
.logo .mark { width: 30px; height: 30px; flex: none; font-size: 0; color: transparent; background: var(--logo) center / cover no-repeat; border-radius: 7px; }
.site-header nav { order: 2; margin-left: auto; display: flex; gap: 20px; font-size: var(--fs-sm); font-weight: 500; overflow-x: auto; white-space: nowrap; max-width: 100%; scrollbar-width: none; padding: 4px 0; }
.site-header nav::-webkit-scrollbar { display: none; }
.site-header nav a { color: var(--ink-2); text-decoration: none; padding: 4px 0; border-bottom: 1.5px solid transparent; }
.site-header nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.theme-toggle { order: 3; width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--rule); background: var(--sheet); color: var(--ink); cursor: pointer; padding: 0; transition: border-color .15s, transform .4s var(--ease); }
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; grid-area: 1 / 1; transition: transform .45s var(--ease), opacity .3s; }
.theme-toggle .i-moon { fill: currentColor; stroke: none; }
.theme-toggle[aria-pressed="true"] .i-moon, .theme-toggle[aria-pressed="false"] .i-sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
@media (max-width: 719px) {
  .theme-toggle { order: 1; margin-left: auto; }
  .site-header nav { margin-left: 0; width: 100%; gap: 18px; mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
}

/* ---------------------------------------------------------------- buttons & links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1.2 var(--font-text); padding: 12px 20px; min-height: 48px; border-radius: var(--r-sm);
  border: 1.5px solid var(--ink); background: var(--sheet); color: var(--ink);
  cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent; user-select: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { background: var(--paper); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .btn:focus-within:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.btn.primary { background: var(--ink); color: var(--on-ink); }
.btn.primary:hover { background: var(--ink-hover); color: var(--on-ink); }
.btn.big { min-height: 52px; font-size: 1.05rem; width: 100%; }
.btn:disabled { opacity: .55; cursor: progress; transform: none; }
.btns { display: grid; gap: 10px; }
.text-link { font-weight: 600; color: var(--ink); }

/* ---------------------------------------------------------------- landing hero */
.hero { padding: 48px 0 8px; max-width: 760px; }
.hero h1 { font-size: clamp(2.3rem, 6.4vw, 3.6rem); line-height: 1.02; margin: 0 0 16px; text-wrap: balance; }
.hero p.lead { font-size: var(--fs-md); line-height: 1.5; margin: 0 0 22px; max-width: 58ch; text-wrap: pretty; }

.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: var(--fs-sm); color: var(--ink-2); }
.facts li { display: flex; gap: 10px; align-items: center; }
.facts li::before { content: ""; width: 18px; height: 18px; flex: none; background: var(--ink); -webkit-mask: var(--i-check) center / 16px no-repeat; mask: var(--i-check) center / 16px no-repeat; }
.facts .f-lock::before { -webkit-mask-image: var(--i-lock); mask-image: var(--i-lock); }
.facts .f-price::before { -webkit-mask-image: var(--i-tag); mask-image: var(--i-tag); }
.facts .f-spec::before { -webkit-mask-image: var(--i-ruler); mask-image: var(--i-ruler); }

/* ---------------------------------------------------------------- homepage hero */
.home-hero { display: grid; gap: 36px; padding: 44px 0 20px; align-items: center; }
.home-hero h1 { font-size: clamp(2.7rem, 7vw, 4.1rem); line-height: .98; margin: 0 0 20px; max-width: 15ch; text-wrap: balance; }
.home-hero .lead { font-size: var(--fs-md); line-height: 1.5; max-width: 46ch; margin: 0 0 26px; text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 0 0 30px; }
.hero-cta .btn { min-height: 54px; padding: 14px 28px; font-size: 1.08rem; }

.home-hero { position: relative; }
/* faint millimetre grid behind the hero, like a cutting mat; fades out to the edges */
.home-hero::before {
  content: ""; position: absolute; inset: -20px -40px 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px), linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 72% 45%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 72% 45%, #000 30%, transparent 75%);
}
.home-hero > * { position: relative; }

.specimen { margin: 0 auto; width: 100%; max-width: 440px; }
.specimen svg { display: block; width: 100%; height: auto; overflow: visible; }
.specimen text { font-family: var(--font-display); }
.sp-ruler { stroke: var(--ruler); stroke-width: 1; fill: none; }
.sp-nums { fill: var(--muted); font-size: 10px; }
.sp-photo { fill: #ffffff; }
.sp-border { fill: none; stroke: rgba(20, 33, 61, .2); }
.sp-dim path { stroke: var(--red); stroke-width: 1.4; fill: none; }
.sp-dim .d-guide { stroke-dasharray: 3 3; opacity: .75; }
.dim-label { fill: var(--red); }
.dim-label text { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dim-label text.sm { font-size: 12px; font-weight: 500; }
.sp-mask { fill: var(--paper); }
.sp-hbox { fill: var(--sheet); stroke: var(--red); stroke-width: 1.2; }
.sp-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0 40px; }
.sp-tabs button {
  font: 500 var(--fs-sm)/1 var(--font-text); color: var(--ink-2); background: transparent; cursor: pointer;
  border: 1px solid var(--rule); border-radius: 999px; padding: 7px 12px; transition: border-color .15s, background-color .15s, color .15s;
}
.sp-tabs button:hover { border-color: var(--ink); color: var(--ink); }
.sp-tabs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.specimen figcaption { margin: 12px 0 0 40px; font-size: var(--fs-sm); color: var(--muted); max-width: 44ch; min-height: 3em; }
.specimen figcaption a { color: var(--ink); font-weight: 600; white-space: nowrap; }
/* first paint: the measurements draw in once */
@media (prefers-reduced-motion: no-preference) {
  .specimen .d-line { stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 1.2s var(--ease) .25s forwards; }
  .specimen .d-head { animation-delay: .8s; }
  .specimen .d-guide { opacity: 0; animation: fade-guide .6s ease 1.4s forwards; }
  .specimen .dim-label { opacity: 0; animation: fade .5s ease 1.6s forwards; }
}
@keyframes fade-guide { to { opacity: .75; } }

/* print sheet in "How it works": photos drop onto the sheet when it scrolls in */
.print-sheet { margin: 28px 0 0; max-width: 340px; }
.print-sheet svg { display: block; width: 100%; height: auto; }
.ps-paper { fill: var(--sheet); stroke: var(--rule); }
.ps-photo { fill: #ffffff; stroke: rgba(20, 33, 61, .18); }
.ps-cut { stroke: var(--ruler); stroke-width: .6; stroke-dasharray: 2 3; fill: none; opacity: 0; transition: opacity .6s ease 1s; }
.print-sheet.is-in .ps-cut { opacity: .8; }
.ps-tile { transform-box: fill-box; transform-origin: 50% 0; }
@media (prefers-reduced-motion: no-preference) {
  .ps-tile { opacity: 0; transform: translateY(-22px) rotate(-6deg); transition: transform .55s cubic-bezier(.2, .9, .3, 1.25), opacity .25s ease; transition-delay: calc(var(--i) * 120ms); }
  .print-sheet.is-in .ps-tile { opacity: 1; transform: none; }
}
.print-sheet figcaption { margin: 10px 0 0; font-size: var(--fs-sm); color: var(--muted); }

/* ---------------------------------------------------------------- homepage sections */
.section { padding: 80px 0 0; }
.section-head { max-width: 640px; margin: 0 0 28px; }
.section-head h2 { font-size: var(--fs-xl); margin: 0 0 10px; }
.section-head p { margin: 0; font-size: var(--fs-md); line-height: 1.5; }
.section-head.split { max-width: none; }

/* how it works: heading beside a vertical sequence, not three equal columns */
#how { display: grid; gap: 8px 64px; }
#how .section-head { margin: 0 0 12px; }
.how { list-style: none; padding: 0; margin: 0; counter-reset: how; border-top: 2px solid var(--ink); }
.how li { counter-increment: how; display: grid; grid-template-columns: 52px 1fr; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.how li::before { content: counter(how); font: 600 2.4rem/1 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.how h3 { font-size: 1.1rem; margin: 2px 0 4px; }
.how p { margin: 0; max-width: 52ch; }

/* uneven section rhythm on purpose */
#how { padding-top: 56px; }
#countries { padding-top: 104px; }
#pricing { padding-top: 88px; margin-top: 88px; border-top: 1px solid var(--rule); }
#faq { padding-top: 120px; }

.doc-list { list-style: none; margin: 0; padding: 0; display: grid; column-gap: 40px; border-top: 1px solid var(--rule); }
.doc-list li { border-bottom: 1px solid var(--rule); }
.doc-list a { display: grid; grid-template-columns: 30px 1fr auto; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 14px 6px; text-decoration: none; color: var(--ink); }
.doc-list a:hover { background: var(--sheet); }
.doc-list .flag { grid-row: 1 / 3; width: 30px; height: 20px; border-radius: 3px; overflow: hidden; display: block; box-shadow: 0 0 0 1px rgba(20, 33, 61, .14); }
.doc-list .flag svg { width: 100%; height: 100%; display: block; }
.doc-list .cn { font-weight: 600; line-height: 1.25; }
.doc-list .cd { grid-column: 2; font-size: var(--fs-sm); color: var(--muted); line-height: 1.3; }
.doc-list .sz { grid-column: 3; grid-row: 1 / 3; display: flex; align-items: center; justify-content: flex-end; gap: 12px; font: 600 1.1rem/1 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ratio { display: block; height: 22px; width: calc(22px * var(--rw) / var(--rh)); border: 1.5px solid var(--ink); border-radius: 1.5px; flex: none; position: relative; transition: transform .3s var(--ease), border-color .2s; }
.ratio::after { content: ""; position: absolute; left: 50%; top: 28%; width: 34%; height: 44%; translate: -50% 0; border-radius: 50% 50% 45% 45%; border: 1px solid currentColor; opacity: .55; }
.doc-list a:hover .ratio { transform: scale(1.35) rotate(-4deg); border-color: var(--red); color: var(--red); }
.more { margin: 18px 0 0; }

.pay { display: grid; gap: 48px; }
.pay h2 { font-size: var(--fs-xl); margin: 0 0 14px; }
.price { display: flex; align-items: baseline; gap: 12px; margin: 0 0 6px; }
.price b { font: 600 clamp(3.6rem, 11vw, 5rem)/.9 var(--font-display); color: var(--ink); letter-spacing: -.01em; }
.price span { color: var(--muted); font-weight: 500; }
.compare { color: var(--muted); max-width: 42ch; }
.ticks { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; background: var(--ok); -webkit-mask: var(--i-check) center / 15px no-repeat; mask: var(--i-check) center / 15px no-repeat; }
.pay-privacy p { max-width: 52ch; }
.launch-note { margin: 14px 0 0; font-size: var(--fs-sm); color: var(--ok); font-weight: 600; }
.launch-note[hidden] { display: none; }

.faq-list { max-width: 760px; border-top: 1px solid var(--rule); }
.honest { margin-top: 72px; }

/* ---------------------------------------------------------------- tool shell */
#tool { position: relative; margin: 28px auto 8px; max-width: 1060px; }
#tool > noscript .card { text-align: center; }
.card { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r); padding: 22px 18px; margin: 16px 0; }

.stepper { position: sticky; top: 0; z-index: 15; margin: 0 0 14px; padding: 10px 0 0; background: var(--paper); --progress: 0; }
.stepper ol { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; }
.stepper a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 2px 10px; text-decoration: none; color: var(--muted); font-size: var(--fs-sm); font-weight: 500; }
.stepper .dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 600 .9rem/1 var(--font-display); border: 1.5px solid var(--rule); color: var(--muted); background: var(--sheet); transition: background-color .25s, border-color .25s, color .25s; }
.stepper li.current a { color: var(--ink); font-weight: 600; }
.stepper li.current .dot { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.stepper li.done a { color: var(--ink-2); }
.stepper li.done .dot { border-color: var(--ok); background: var(--ok); color: transparent; position: relative; }
.stepper li.done .dot::after { content: ""; position: absolute; inset: 0; background: #fff; -webkit-mask: var(--i-check) center / 13px no-repeat; mask: var(--i-check) center / 13px no-repeat; }
.stepper-bar { position: relative; height: 2px; background: var(--rule); }
.stepper-bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--progress)); transition: transform .6s var(--ease); }
@media (max-width: 480px) { .stepper .lbl { font-size: var(--fs-xs); } .stepper a { flex-direction: column; gap: 4px; } }

.step { position: relative; scroll-margin-top: 80px; padding: 22px 18px 24px; margin: 0 0 14px; }
.step-head { display: flex; align-items: flex-start; gap: 14px; margin: 0 0 18px; }
.step-head h2 { font-size: var(--fs-lg); line-height: 1.1; margin: 1px 0 0; }
.step-sub { margin: 4px 0 0; color: var(--muted); font-size: var(--fs-sm); }
.step h3 { font-size: 1rem; margin: 0 0 10px; }
.num { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--on-ink); font: 600 1.15rem/1 var(--font-display); }
.step.disabled { background: transparent; border-style: dashed; }
.step.disabled .num { background: transparent; color: var(--muted); border: 1.5px solid var(--rule); }
.step.disabled .step-head { margin: 0; }
.step.disabled .step-head h2 { color: var(--muted); }
.step.disabled .step-body { display: none; }
.locked-hint { display: none; margin: 10px 0 0 48px; font-size: var(--fs-sm); color: var(--muted); }
.step.disabled .locked-hint { display: block; }

.row2 { display: grid; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.field > span { display: flex; justify-content: space-between; align-items: baseline; }
.field output { font: 600 1rem/1 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
select, input[type=text] {
  font: 500 1rem/1.3 var(--font-text); padding: 12px 14px; width: 100%; min-height: 48px;
  border: 1px solid var(--rule); border-radius: var(--r-sm); background-color: var(--sheet); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
select { -webkit-appearance: none; appearance: none; padding-right: 42px; background-image: var(--select-chev); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; cursor: pointer; text-overflow: ellipsis; }
select:hover, input[type=text]:hover { border-color: #9aa6b4; }
select:focus, input[type=text]:focus { outline: none; border-color: var(--ink); box-shadow: var(--ring); }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; --p: 50%; }
input[type=range]:focus { outline: none; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--ink) 0 var(--p), var(--rule) var(--p) 100%); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: var(--sheet); border: 2px solid var(--ink); }
input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: var(--ring); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--rule); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--ink); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--sheet); border: 2px solid var(--ink); }

.toggle { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--rule-soft); font-size: 1rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.toggle > span { order: -1; }
.toggle small { display: block; font-weight: 400; font-size: var(--fs-xs); margin-top: 1px; }
.toggle input { -webkit-appearance: none; appearance: none; position: relative; flex: none; margin: 0; width: 44px; height: 26px; border-radius: 13px; background: var(--rule); cursor: pointer; transition: background-color .2s; }
.toggle input::before { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(20, 33, 61, .3); transition: transform .2s var(--ease); }
.toggle input:checked { background: var(--toggle-on); }
.toggle input:checked::before { transform: translateX(18px); }
.toggle input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* step 1 */
.spec-info { display: grid; gap: 12px; }
.spec-grid { display: grid; grid-template-columns: max-content 1fr; margin: 0; font-size: var(--fs-sm); border-top: 1px solid var(--rule); }
.spec-grid dt, .spec-grid dd { padding: 9px 0; border-bottom: 1px solid var(--rule-soft); }
.spec-grid dt { color: var(--muted); padding-right: 18px; }
.spec-grid dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }
.spec-info > p { margin: 0; }
.notice { border-left: 3px solid; border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 10px 14px; font-size: var(--fs-sm); margin: 0; line-height: 1.5; }
.notice.warn { background: var(--err-soft); color: var(--err); border-color: var(--err); }
.notice.check { background: var(--warn-soft); color: var(--warn); border-color: var(--warn); }

/* step 2 */
.drop { position: relative; text-align: center; padding: 28px 18px 20px; border-radius: var(--r); border: 1.5px dashed #9aa6b4; background: var(--paper); transition: border-color .15s, background-color .15s; }
.drop:hover { border-color: var(--ink); }
.drop.over { border-style: solid; border-color: var(--ink); background: var(--sheet); }
.drop-art { width: 84px; height: 84px; margin: 0 auto 10px; }
.drop-art svg { width: 100%; height: 100%; display: block; }
.drop-title { font: 600 1.45rem/1.15 var(--font-display); margin: 0 0 4px; color: var(--ink); }
.drop-sub { margin: 0 auto 18px; color: var(--muted); font-size: var(--fs-sm); max-width: 38ch; }
.drop .btns { max-width: 480px; margin: 0 auto; }
.drop > p.small { margin: 14px 0 0; }
.tips { margin-top: 16px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.tips summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; padding: 12px 0; display: flex; justify-content: space-between; gap: 8px; }
.tips summary::-webkit-details-marker { display: none; }
.tips summary::after { content: "+"; font: 500 1.4rem/1 var(--font-text); color: var(--ink); }
.tips[open] summary::after { content: "\2212"; }
.tips ul { margin: 0; padding: 0 0 14px 20px; }
.tips li { margin: 4px 0; }
.privacy-note { display: flex; gap: 10px; align-items: center; color: var(--ok); font-weight: 500; font-size: var(--fs-sm); margin: 14px 0 0; }
.privacy-note::before { content: ""; width: 18px; height: 18px; flex: none; background: currentColor; -webkit-mask: var(--i-lock) center / 18px no-repeat; mask: var(--i-lock) center / 18px no-repeat; }
.status { margin-top: 12px; font-weight: 500; display: flex; gap: 10px; align-items: flex-start; }
.status:empty { display: none; }
.status::before { content: ""; width: 9px; height: 9px; margin-top: .5em; border-radius: 50%; flex: none; background: var(--ink); animation: pulse 1.2s ease-in-out infinite; }
.status.ok { color: var(--ok); } .status.ok::before { background: var(--ok); animation: none; }
.status.warn { color: var(--warn); } .status.warn::before { background: var(--warn); animation: none; }
.status.err { color: var(--err); } .status.err::before { background: var(--err); animation: none; }

/* step 3 */
.adjust { display: grid; gap: 22px; }
.preview-wrap { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.preview-stage {
  position: relative; width: 100%; display: flex; justify-content: center; padding: 24px 14px;
  border-radius: var(--r); border: 1px solid var(--rule);
  /* cutting-mat grid: 5 mm squares */
  background-color: var(--paper);
  background-image: linear-gradient(var(--rule-soft) 1px, transparent 1px), linear-gradient(90deg, var(--rule-soft) 1px, transparent 1px);
  background-size: 18px 18px; background-position: -1px -1px;
}
.preview-frame { position: relative; width: 100%; display: flex; justify-content: center; }
#preview { display: block; touch-action: none; cursor: grab; background: #fff; box-shadow: 0 0 0 1px rgba(20, 33, 61, .18), 0 10px 24px -12px rgba(20, 33, 61, .35); }
#preview:active { cursor: grabbing; }
.ready-badge { position: absolute; left: 50%; top: 8px; z-index: 2; translate: -50% 0; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--sheet); color: var(--ink); font-weight: 600; font-size: var(--fs-sm); border: 1px solid var(--rule); opacity: 0; pointer-events: none; }
.ready-badge i { width: 18px; height: 18px; border-radius: 50%; background: var(--ok); position: relative; flex: none; }
.ready-badge i::after { content: ""; position: absolute; inset: 0; background: #fff; -webkit-mask: var(--i-check) center / 11px no-repeat; mask: var(--i-check) center / 11px no-repeat; }
.preview-stage.is-ready .ready-badge { animation: badge 3s ease both; }
.legend { display: flex; gap: 6px 16px; flex-wrap: wrap; justify-content: center; margin: 12px 0 0; font-size: var(--fs-xs); color: var(--ink-2); }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 16px; height: 10px; border-radius: 2px; vertical-align: middle; }
.sw.band { background: rgba(22, 163, 74, .3); border: 1.5px dashed #16a34a; }
.sw.chin { background: #2563eb; height: 3px; }
.sw.eye { background: rgba(147, 51, 234, .25); border: 1.5px dashed #9333ea; }
.preview-wrap > p.small { margin: 8px 0 0; text-align: center; }
.controls { min-width: 0; }
.ctrl-group { padding: 4px 0 6px; margin: 0 0 8px; }
.ctrl-group > h3 { font-size: 1rem; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.measure { display: grid; gap: 6px; margin: 0 0 18px; }
.measure .m { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; padding: 9px 12px; border-left: 3px solid; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: var(--fs-sm); }
.measure .m b { font: 600 1.05rem/1 var(--font-display); }
.measure .m.ok { background: var(--ok-soft); color: var(--ok); }
.measure .m.bad { background: var(--warn-soft); color: var(--warn); }
.measure .m .muted { color: inherit; opacity: .8; }
.measure p.small { margin: 2px 0 0; }
#resetBtn { width: 100%; margin-top: 6px; }
.checks { display: grid; gap: 22px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--rule); }
.checklist { list-style: none; padding: 0; margin: 0; font-size: var(--fs-sm); }
.checklist li { padding: 8px 0; border-top: 1px solid var(--rule-soft); display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.checklist li:first-child { border-top: 0; }
.checklist .ci { width: 18px; height: 18px; flex: none; position: relative; margin-top: 2px; }
.checklist li.ok .ci::after { content: ""; position: absolute; inset: 0; background: var(--ok); -webkit-mask: var(--i-check) center / 15px no-repeat; mask: var(--i-check) center / 15px no-repeat; }
.checklist li.bad .ci { border-radius: 50%; background: var(--warn); color: #fff; font: 700 12px/18px var(--font-text); text-align: center; }
.checklist li.bad .ci::after { content: "!"; }
.checklist.auto li.bad { color: var(--warn); font-weight: 500; }
.checklist.manual label { cursor: pointer; }
.checklist.manual input { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; flex: none; margin: 2px 0 0; cursor: pointer; border: 1.5px solid #9aa6b4; border-radius: 4px; background: var(--sheet); position: relative; }
.checklist.manual input::after { content: ""; position: absolute; inset: 0; background: #fff; -webkit-mask: var(--i-check) center / 12px no-repeat; mask: var(--i-check) center / 12px no-repeat; opacity: 0; }
.checklist.manual input:checked { background: var(--ok); border-color: var(--ok); }
.checklist.manual input:checked::after { opacity: 1; }
.checklist.manual input:checked + label { color: var(--muted); }

/* step 4 */
.price-box { border: 1px solid var(--rule); border-radius: var(--r); padding: 16px 18px; margin-bottom: 16px; display: grid; gap: 12px; color: var(--ink-2); background: var(--paper); }
.price-box p { margin: 0; }
.price-box strong { color: var(--ink); }
.price-box.launch { display: block; background: var(--ok-soft); border-color: transparent; }
.price-box.launch strong { color: var(--ok); }
.price-box.unlocked { display: block; background: var(--ok-soft); border-color: transparent; }
.price-box.unlocked strong { color: var(--ok); }
.price-box .btn.primary { justify-self: start; }
.pb-top { display: flex; gap: 12px 20px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.pb-top strong { font-size: 1.05rem; }
.pb-anchor { display: flex; flex-direction: column; align-items: flex-end; flex: none; line-height: 1.1; }
.pb-anchor .was { font-size: var(--fs-xs); color: var(--muted); }
.pb-anchor .now { font: 600 2rem/1 var(--font-display); color: var(--ink); }
.pb-incl { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pb-incl li { position: relative; padding-left: 24px; }
.pb-incl li::before { content: ""; position: absolute; left: 0; top: .2em; width: 16px; height: 16px; background: var(--ok); -webkit-mask: var(--i-check) center / 14px no-repeat; mask: var(--i-check) center / 14px no-repeat; }
.key-row { display: flex; gap: 8px; }
.key-row input { flex: 1; min-width: 0; }
.key-hint { font-weight: 600; color: var(--ok); }
.key-msg { min-height: 1.2em; }
.key-msg:empty { display: none; }
.key-msg.err { color: var(--err); font-weight: 500; }
.downloads { display: grid; gap: 14px; }
.dl { display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: var(--r); padding: 18px; background: var(--sheet); transition: border-color .2s; }
.dl-head { display: flex; gap: 12px; align-items: center; margin: 0 0 8px; }
.dl-ico { width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center; flex: none; background: var(--paper); color: var(--ink); }
.dl-ico svg { width: 22px; height: 22px; }
.dl h3 { margin: 0; font: 600 1.3rem/1.1 var(--font-display); }
.dl-tag { display: block; font: 400 var(--fs-xs)/1.3 var(--font-text); color: var(--muted); margin-top: 2px; }
.dl > p.small.muted { margin: 4px 0 14px; }
.dl .field { margin-bottom: 10px; }
.dl .btn.big { margin-top: auto; }
.dl .dl-unlock { margin-top: 8px; width: 100%; }
.dl .dl-unlock[hidden] { display: none; }
.dl p.small:last-child { margin: 10px 0 0; font-weight: 500; color: var(--ok); }
.dl p.small:last-child:empty { display: none; }
.dl.done { border-color: var(--ok); }
.step4-foot { margin: 16px 0 0; }

/* ad slot: collapses while empty (comments don't count as content) */
.ad-slot:empty { display: none; }
.ad-slot { margin: 24px 0; min-height: 90px; text-align: center; }

/* ---------------------------------------------------------------- long-form content */
.content { padding: 16px 0 32px; max-width: 720px; }
.content > h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); margin: 40px 0 10px; }
.content h2 { font-size: var(--fs-xl); margin: 52px 0 14px; }
.content h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.content p { margin: 0 0 14px; }
.content strong { color: var(--ink); }
.content ul, .content ol { padding-left: 0; list-style: none; margin: 0 0 20px; }
.content > ul:not(.grid-links) > li { position: relative; padding: 5px 0 5px 28px; }
.content > ul:not(.grid-links) > li::before { content: ""; position: absolute; left: 0; top: .55em; width: 16px; height: 16px; background: var(--ink); -webkit-mask: var(--i-check) center / 14px no-repeat; mask: var(--i-check) center / 14px no-repeat; }
.content > ol { counter-reset: s; border-top: 1px solid var(--rule); }
.content > ol > li { counter-increment: s; position: relative; padding: 14px 0 14px 48px; border-bottom: 1px solid var(--rule); }
.content > ol > li::before { content: counter(s); position: absolute; left: 0; top: 10px; font: 600 1.9rem/1 var(--font-display); color: var(--ink); }
.content > ol > li strong { display: block; margin-bottom: 2px; }
.content > p.card { padding: 14px 16px; border: 0; border-left: 3px solid var(--warn); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: var(--warn-soft); color: var(--ink); }
.content.legal { max-width: 720px; }
.legal-summary { margin: 24px 0 8px; padding: 18px 20px; border-radius: var(--r); background: var(--ok-soft); color: var(--ink); }
.legal-summary h2 { margin-top: 0; }
.grid-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); column-gap: 32px; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.grid-links li { border-bottom: 1px solid var(--rule); }
.grid-links a { display: block; padding: 11px 0; text-decoration: none; font-weight: 500; }
.grid-links a:hover { text-decoration: underline; }

.guide-cta { margin: 30px 0; padding: 18px 20px; border-radius: var(--r); background: var(--sheet); border: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; color: var(--ink); }
.guide-cta p { margin: 0; font-weight: 600; max-width: 46ch; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); border-radius: var(--r); background: var(--sheet); margin: 0 0 20px; }
.size-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 560px; }
.size-table th, .size-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.size-table th { position: sticky; top: 0; background: var(--paper); color: var(--ink); font-weight: 600; border-bottom-color: var(--rule); }
.size-table tr:last-child td { border-bottom: 0; }
.size-table td:first-child { font-weight: 600; }
.size-table a { text-decoration: none; }
.size-table a:hover { text-decoration: underline; }

/* FAQ (homepage .faq-list and landing-page section.faq) */
.faq-list details, .faq details { border-bottom: 1px solid var(--rule); }
.faq h2 + details { border-top: 1px solid var(--rule); }
.faq-list summary, .faq summary { cursor: pointer; list-style: none; padding: 16px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.faq-list summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.faq-list summary::after, .faq summary::after { content: "+"; font: 400 1.5rem/1 var(--font-text); color: var(--ink); flex: none; }
.faq-list details[open] summary::after, .faq details[open] summary::after { content: "\2212"; }
.faq-list details p, .faq details p { margin: 0; padding: 0 0 18px; max-width: 64ch; }

/* ---------------------------------------------------------------- countries index */
.country-tools { margin: 0 0 22px; position: sticky; top: 0; z-index: 5; padding: 10px 0; background: var(--paper); }
.country-tools input[type=search] {
  font: 500 1rem/1.3 var(--font-text); width: 100%; min-height: 50px; padding: 12px 16px 12px 44px; border-radius: var(--r-sm);
  border: 1px solid var(--rule); background: var(--sheet); color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314213d' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 14px center; background-size: 19px;
}
.country-tools input[type=search]:focus { outline: none; border-color: var(--ink); box-shadow: var(--ring); }
.country-index { display: grid; gap: 28px 40px; grid-template-columns: 1fr; align-items: start; padding: 0 0 32px; }
.country-card { break-inside: avoid; }
.country-card h2 { font-size: 1.5rem; margin: 0 0 6px; display: flex; align-items: baseline; gap: 10px; }
.country-card h2 .initial { display: none; }
.country-card ul { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.country-card li { border-bottom: 1px solid var(--rule); }
.country-card li a { display: block; padding: 9px 0; text-decoration: none; color: var(--ink); font-weight: 500; }
.country-card li a > span { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.country-card li a:hover { background: var(--sheet); }
.country-card .sz { font: 600 1rem/1.2 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.country-card .chk { flex-basis: 100%; font-size: var(--fs-xs); font-weight: 500; color: var(--warn); }
.no-results { color: var(--muted); padding: 30px 0; }

/* ---------------------------------------------------------------- footer */
.site-footer { margin-top: 80px; padding: 32px 0 28px; font-size: var(--fs-sm); color: var(--muted); border-top: 1px solid var(--rule); background: var(--sheet); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 20px; }
.site-footer nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.site-footer nav a:hover { color: var(--ink); text-decoration: underline; }
.site-footer nav a:first-child { color: var(--ink); font-weight: 600; }
.site-footer p { margin: 0 0 10px; max-width: 76ch; }
.site-footer p strong { color: var(--ink-2); font-weight: 600; }

/* ---------------------------------------------------------------- keyframes */
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes badge { 0% { opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }

/* ---------------------------------------------------------------- responsive */
@media (min-width: 640px) {
  .row2 { grid-template-columns: 1fr 1fr; }
  .btns { grid-template-columns: 1fr 1fr; }
  .card, .step { padding: 26px 28px; }
  .step.disabled { padding: 20px 28px; }
  .country-index { grid-template-columns: 1fr 1fr; }
  .doc-list { grid-template-columns: 1fr 1fr; }
  .drop { padding: 36px 28px 24px; }
}
@media (min-width: 860px) {
  .adjust { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; gap: 32px; }
  .preview-wrap { position: sticky; top: 76px; }
  .checks, .downloads { grid-template-columns: 1fr 1fr; gap: 32px; }
  .country-index { grid-template-columns: repeat(3, 1fr); }
  .pay { grid-template-columns: 1fr 1fr; gap: 64px; }
  .pay-privacy { border-left: 1px solid var(--rule); padding-left: 64px; }
  #how { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }
  .section-head.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
  .section-head.split h2 { margin: 0; }
}
@media (min-width: 980px) {
  .home-hero { grid-template-columns: 1.1fr .9fr; gap: 56px; padding: 64px 0 40px; }
  .hero { padding: 64px 0 12px; }
}
@media (max-width: 420px) {
  .hero-cta .btn { flex: 1 1 100%; }
  .specimen figcaption { margin-left: 0; }
}

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .preview-stage.is-ready .ready-badge { animation: none; opacity: 1; }
}

/* restore purchase (Stripe) + launch sale line */
.restore summary { cursor: pointer; font-size: var(--fs-sm); color: var(--ink-2); font-weight: 500; }
.restore summary:hover { color: var(--ink); }
.restore[open] summary { margin-bottom: 10px; }
.sale-line { margin: 4px 0 0; font-weight: 600; color: var(--warn); }
.pay .sale-line { margin: 0 0 6px; font-size: var(--fs-sm); }
.sale-line[hidden] { display: none; }
