/* =========================================================================
   ApostilleMA order — built on the CIVIL CONSTABLE design system
   (same tokens, type, radii, components and motion), with ApostilleMA's own accent:
   ribbon blue for primary actions and focus, seal gold for decoration only.
   Contrast (WCAG 2.2): ink/ivory 17.0:1 · ink-2/ivory 6.15:1 · white/ribbon 9.6:1 ·
   ribbon/ivory 8.9:1 · dark: ink/surface 17.0:1 · ink-2 8.97:1 · white/ribbon-dark 6.3:1.
   ========================================================================= */

@font-face { font-family: "Libre Caslon Display"; src: url("../fonts/libre-caslon-display-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("../fonts/libre-caslon-text-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("../fonts/libre-caslon-text-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("../fonts/libre-caslon-text-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light dark;
  --charcoal: #111214;
  --ivory: #f6f4ed;
  --white: #ffffff;
  --ribbon: #24467e;
  --ribbon-press: #1b3762;

  --surface: var(--ivory);
  --surface-raised: var(--white);
  --surface-sunken: #efece3;
  --ink: #111214;
  --ink-2: #5e5b55;
  --ink-3: #6b675f;
  --line: #ddd8cc;
  --line-strong: #c9c2b3;
  --accent: var(--ribbon);
  --accent-press: var(--ribbon-press);
  --accent-soft: rgba(36, 70, 126, .1);
  --on-accent: #ffffff;
  --link: var(--ribbon);
  --focus: var(--ribbon);
  --ring: rgba(36, 70, 126, .25);
  --success: #2f6b45; --success-bg: #e8f1ea;
  --warning: #8a5a00; --warning-bg: #fbf1dc;
  --info: #2b5a8c; --info-bg: #e7eef6;
  --danger: #a33d33; --danger-bg: #f8e7e4;
  --seal-hi: #f3e2ad; --seal: #c9a24e; --seal-deep: #8a6727;
  --shadow-1: 0 1px 2px rgba(17,18,20,.06), 0 1px 1px rgba(17,18,20,.04);
  --shadow-2: 0 10px 30px -12px rgba(17,18,20,.18), 0 2px 6px rgba(17,18,20,.05);
  --shadow-3: 0 24px 60px -20px rgba(17,18,20,.30);

  --font-display: "Libre Caslon Display", "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --font-serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --fs-h1: clamp(2.25rem, 1.65rem + 2.4vw, 3.6rem);
  --fs-lede: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-caption: .8125rem;

  --gutter: clamp(16px, 4.2vw, 44px);
  --max: 1320px;
  --radius-s: 10px; --radius: 14px; --radius-l: 22px; --radius-xl: 28px;
  --header-h: 64px;
  --bar-h: 64px;
  --dur: 220ms;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #111214;
    --surface-raised: #1a1b1e;
    --surface-sunken: #0b0c0d;
    --ink: #f6f4ed; --ink-2: #b8b3a8; --ink-3: #a39e94;
    --line: #2e2f33; --line-strong: #44454a;
    --accent: #2f5aa0; --accent-press: #3a68b4; --accent-soft: rgba(143, 179, 238, .12);
    --link: #9dbcf0; --focus: #8fb3ee; --ring: rgba(143, 179, 238, .3);
    --success: #8fcaa0; --success-bg: #16261b;
    --warning: #e7bf6a; --warning-bg: #2a2110;
    --info: #9cc0e8; --info-bg: #142131;
    --danger: #ef9a8f; --danger-bg: #2c1714;
    --seal-hi: #f0dca2; --seal: #c39a45; --seal-deep: #7d5c20;
    --shadow-1: 0 1px 2px rgba(0,0,0,.4);
    --shadow-2: 0 12px 30px -12px rgba(0,0,0,.6);
    --shadow-3: 0 24px 60px -20px rgba(0,0,0,.7);
  }
}
@media (prefers-contrast: more) {
  :root { --ink-2: #3f3d39; --ink-3: #46433e; --line: #a69f90; --line-strong: #6e695f; }
  @media (prefers-color-scheme: dark) { :root { --ink-2: #dcd8cf; --ink-3: #cfcac0; --line: #6a6b70; } }
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-sans); font-size: var(--fs-body); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
svg.icon { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -0.2em; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-soft); }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.12; font-weight: 400; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-family: var(--font-display); font-size: var(--fs-h1); letter-spacing: -0.02em; }
h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 1.35rem + 1vw, 2.1rem); }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.muted { color: var(--ink-2); }
.small { font-size: .9375rem; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 32px; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--surface); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 50; padding-top: env(safe-area-inset-top); background: rgba(17, 18, 20, .9); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid rgba(255, 255, 255, .07); color: var(--ivory); }
@media (prefers-reduced-transparency: reduce) { .top { background: var(--charcoal); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.top__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; border-radius: 8px; }
.brand img { height: 44px; width: auto; filter: invert(1) hue-rotate(180deg) brightness(1.02); }
.brand__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.top__end { display: flex; align-items: center; gap: 14px; }
.top__secure { display: none; align-items: center; gap: 8px; color: #b8b3a8; font-size: .9375rem; font-weight: 500; }
@media (min-width: 720px) { .top__secure { display: inline-flex; } }
.top__call { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(246, 244, 237, .3); color: var(--ivory); font-weight: 600; font-size: .9375rem; text-decoration: none; transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.top__call:hover { border-color: var(--ivory); background: rgba(246, 244, 237, .06); }
.top :focus-visible { outline-color: #8fb3ee; }
@media (max-width: 420px) { .top__call span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .top__call { width: 44px; padding: 0; justify-content: center; } }

/* ----------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--charcoal); color: var(--ivory); padding-block: clamp(44px, 7vw, 104px) calc(clamp(44px, 7vw, 104px) + var(--overlap)); }
:root { --overlap: clamp(56px, 9vw, 128px); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(209, 195, 175, .25), transparent); }
.hero__pattern { position: absolute; z-index: -1; width: 640%; max-width: none; height: auto; left: 50%; top: 46%; transform: translate(-50%, -50%); opacity: .2; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .hero__pattern { animation: engrave 1800ms var(--ease-out) both; } }
@keyframes engrave { from { opacity: 0; transform: translate(-50%, -50%) rotate(-12deg) scale(.94); } }
.hero__grid { display: grid; gap: 40px; align-items: center; }

@media (min-width: 1024px) { .hero__grid { grid-template-columns: minmax(0, 1fr) auto; gap: 64px; } }
.hero h1 { font-size: clamp(2.6rem, 1.55rem + 3.9vw, 4.9rem); line-height: 1.02; letter-spacing: -0.025em; margin: 0 0 22px; color: var(--ivory); }
.hero h1 em { font-family: var(--font-serif); font-style: italic; font-size: .82em; letter-spacing: -0.01em; color: #d1c3af; }
.hero .eyebrow { color: #d1c3af; }
.hero .lede { color: #c9c4b9; max-width: 56ch; margin: 0 0 36px; }
.assure { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 720px) { .assure { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 760px; } }
.assure li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; margin: 0; font-size: .9063rem; color: #a39e94; line-height: 1.45; }
.assure .icon { width: 20px; height: 20px; color: #d1c3af; margin-top: 2px; }
.assure strong { display: block; color: var(--ivory); font-weight: 600; font-size: .9688rem; }
.hero__seal { display: none; position: relative; isolation: isolate; width: clamp(150px, 15vw, 210px); margin-right: clamp(0px, 4vw, 72px); }
@media (min-width: 1024px) { .hero__seal { display: block; } }
@media (prefers-reduced-motion: no-preference) {
  .hero__text > * { animation: step-in 700ms var(--ease-out) both; }
  .hero__text > :nth-child(2) { animation-delay: 70ms; } .hero__text > :nth-child(3) { animation-delay: 140ms; } .hero__text > :nth-child(4) { animation-delay: 210ms; }
  .hero__seal .seal__face { animation: press 1100ms var(--ease-spring) 260ms both; }
  .hero__seal .seal__tails { animation: tails 800ms var(--ease-out) 700ms both; }
}
.hero__seal .seal { position: relative; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); }

/* --------------------------------------------------------------- layout */
.order { position: relative; z-index: 2; margin-top: calc(-1 * var(--overlap)); display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: calc(var(--bar-h) + 56px + env(safe-area-inset-bottom)); }
.order > * { min-width: 0; }
@media (min-width: 1024px) { .order { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; padding-bottom: 112px; } }
@media (min-width: 1280px) { .order { grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; } }

/* ------------------------------------------------------------ form card */
.form-card { position: relative; min-width: 0; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(22px, 4.4vw, 60px); box-shadow: 0 1px 2px rgba(17,18,20,.04), 0 30px 80px -40px rgba(17,18,20,.35); }
@media (prefers-color-scheme: dark) { .form-card { box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); border-color: #2a2b2f; } }
@media (max-width: 519px) { .form-card { border-radius: var(--radius-l); } }

/* -------------------------------------------------------- step progress */
.steps { margin: 0 0 clamp(28px, 4vw, 44px); }
.steps__now { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.steps__count { font-size: var(--fs-caption); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.steps__count b { color: var(--ink); font-weight: 700; }
.steps__label { font-size: .9375rem; font-weight: 600; color: var(--ink); }
@media (min-width: 1400px) { .steps__label { display: none; } }
.stepper { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.stepper li { margin: 0; flex: 1 1 0; min-width: 0; }
.stepper li.is-skipped { display: none; }
.stepper button { display: grid; gap: 10px; width: 100%; min-height: 28px; padding: 10px 0 0; border: 0; background: none; color: var(--ink-3); font: inherit; text-align: left; cursor: pointer; }
.stepper button:disabled { cursor: default; }
.stepper__bar { position: relative; display: block; height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.stepper__bar::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 520ms var(--ease-out), background-color var(--dur) var(--ease); }
.stepper .is-done .stepper__bar::after { transform: scaleX(1); }
.stepper [aria-current="step"] .stepper__bar::after { transform: scaleX(1); background: var(--accent); }
@media (prefers-color-scheme: dark) { .stepper [aria-current="step"] .stepper__bar::after { background: #8fb3ee; } }
.stepper__txt { display: none; align-items: center; gap: 8px; font-size: .875rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color var(--dur) var(--ease); }
.stepper .n { font-family: var(--font-mono); font-size: .75rem; color: var(--ink-3); }
@media (min-width: 1400px) { .stepper__txt { display: flex; } }
.stepper .is-done, .stepper .is-done .n { color: var(--ink-2); }
.stepper [aria-current="step"], .stepper [aria-current="step"] .n { color: var(--ink); font-weight: 600; }
.stepper button:not(:disabled):hover .stepper__txt { color: var(--ink); }
.stepper button:not(:disabled):hover .stepper__bar { background: var(--line-strong); }

/* ------------------------------------------------------------ form steps */
.form-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-step > legend { padding: 0; margin-bottom: 10px; font-family: var(--font-display); font-size: clamp(1.85rem, 1.45rem + 1.3vw, 2.6rem); line-height: 1.1; letter-spacing: -0.015em; }
.form-step__intro { color: var(--ink-2); font-size: 1.0625rem; margin-bottom: clamp(24px, 3vw, 36px); max-width: 60ch; }
.form-step__intro:empty { display: none; }
.sub { font-family: var(--font-sans); font-size: 1.0625rem; font-weight: 600; margin: 0 0 14px; letter-spacing: 0; }
.aside-note { display: grid; grid-template-columns: 20px 1fr; gap: 10px; margin: 28px 0 0; color: var(--ink-2); font-size: .9375rem; line-height: 1.5; }
.aside-note .icon { margin-top: 2px; color: var(--ink-3); }
@media (prefers-reduced-motion: no-preference) {
  .form-step.is-entering { animation: step-in 420ms var(--ease-out) both; }
  .form-step.is-entering.is-back { animation-name: step-in-back; }
  .form-step.is-leaving { animation: step-out 160ms var(--ease) both; }
}
@keyframes step-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes step-in-back { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes step-out { to { opacity: 0; transform: translateY(-6px); } }

.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: var(--fs-caption); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--seal); border-radius: 2px; }
.lede { font-size: var(--fs-lede); line-height: 1.55; color: var(--ink-2); max-width: 60ch; }

/* included-with-every-order block (extras step) */
.included { margin-top: 8px; padding: 20px 22px; border-radius: var(--radius); background: var(--surface-sunken); }
.included__title { margin: 0 0 12px; font-size: var(--fs-caption); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.included ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 720px) { .included ul { grid-template-columns: 1fr 1fr; gap: 24px; } }
.included li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; margin: 0; color: var(--ink-2); font-size: .9375rem; line-height: 1.45; }
.included li .icon { width: 20px; height: 20px; color: var(--success); margin-top: 1px; }
.included strong { display: block; color: var(--ink); font-weight: 600; }

/* help card under the summary */
.help-card { display: none; margin-top: 16px; padding: 20px 22px; border-radius: var(--radius-l); background: var(--surface-sunken); font-size: .9375rem; color: var(--ink-2); line-height: 1.5; }
.help-card p { margin: 0 0 12px; }
.help-card strong { display: block; color: var(--ink); }
.help-card__links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.help-card__links a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: var(--ink); font-weight: 600; text-decoration: none; }
.help-card__links a:hover { text-decoration: underline; }
@media (min-width: 1024px) { .help-card { display: block; } }

/* --------------------------------------------------------------- fields */
.fields { display: grid; gap: 22px 20px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.field { grid-column: span 6; min-width: 0; }
@media (min-width: 640px) { .field--half { grid-column: span 3; } .field--third { grid-column: span 2; } }
.field > label, .field__label { display: block; font-weight: 600; font-size: .9875rem; margin-bottom: 8px; }
.field__opt { font-weight: 400; color: var(--ink-2); }
.field__hint { display: block; margin-top: 6px; color: var(--ink-2); font-size: .875rem; line-height: 1.5; }
.field__error { display: flex; gap: 6px; align-items: flex-start; margin-top: 8px; color: var(--danger); font-size: .9rem; font-weight: 500; }
.field__error .icon { width: 18px; height: 18px; margin-top: 1px; }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-s); background: var(--surface); color: var(--ink); font: inherit; font-size: 1.0625rem; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); appearance: none; -webkit-appearance: none; }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
.select { padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235e5b55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-2); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--ring); }
.input[type="date"] { min-height: 48px; }
.input--sign { font-family: var(--font-serif); font-style: italic; font-size: 1.375rem; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }

.choices { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.choices legend { padding: 0; font-weight: 600; font-size: .9875rem; margin-bottom: 10px; }
.choice { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); cursor: pointer; transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.choice:hover { border-color: var(--line-strong); }
.choice:has(input:checked) { border-color: var(--ink); background: var(--surface-raised); box-shadow: var(--shadow-1); }
.choice input, .extra__head input, .path input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 1px 0 0; border: 1.5px solid var(--ink-2); background: var(--surface-raised); display: grid; place-content: center; cursor: pointer; transition: background-color 160ms var(--ease), border-color 160ms var(--ease); }
.choice input[type="radio"] { border-radius: 50%; }
.choice input[type="checkbox"], .extra__head input { border-radius: 6px; }
.choice input:checked, .extra__head input:checked { border-color: var(--ink); background: var(--ink); }
.choice input[type="radio"]:checked::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--surface); }
.choice input[type="checkbox"]:checked::before, .extra__head input:checked::before { content: ""; width: 12px; height: 12px; background: var(--surface); clip-path: polygon(14% 52%, 0 66%, 40% 100%, 100% 22%, 86% 8%, 40% 70%); }
@media (prefers-reduced-motion: no-preference) {
  .choice input:checked::before, .extra__head input:checked::before { animation: pop 260ms var(--ease-spring); }
}
@keyframes pop { from { transform: scale(.4); } to { transform: scale(1); } }
.choice input:focus-visible, .extra__head input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice__text { font-size: 1rem; line-height: 1.45; min-width: 0; }
.choice__text strong { font-weight: 600; }
.choice__text .muted { display: block; font-size: .9rem; }
.choice--price { grid-template-columns: 24px 1fr auto; }
.choice__price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.choice__price small, .extra__price small { font-weight: 400; color: var(--ink-2); font-size: .8125rem; margin-left: 1px; }
.choices--inline { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.choice.is-disabled { opacity: .5; cursor: not-allowed; }

/* --------------------------------------------------------- service paths */
.paths { display: grid; gap: 16px; }
@media (min-width: 720px) { .paths { grid-template-columns: 1fr 1fr; } }
.path { position: relative; display: grid; grid-template-columns: 1fr; align-content: start; gap: 18px; padding: clamp(22px, 2.6vw, 30px); min-height: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.path input { position: absolute; opacity: 0; pointer-events: none; }
.path:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); }
@media (prefers-reduced-motion: no-preference) { .path:hover { transform: translateY(-2px); } }
.path:has(input:checked) { border-color: var(--ink); background: var(--surface-raised); box-shadow: var(--shadow-2); }
.path:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.path__art { width: 72px; height: 74px; }
.path__art--doc { display: grid; place-items: center; width: 64px; height: 64px; margin: 4px 0 6px; border-radius: 16px; background: var(--surface-sunken); color: var(--ink); }
.path__art--doc .icon { width: 28px; height: 28px; }
.path__body { display: grid; gap: 6px; }
.path__title { font-family: var(--font-serif); font-size: clamp(1.375rem, 1.25rem + .4vw, 1.625rem); line-height: 1.2; }
.path__text { color: var(--ink-2); font-size: .9688rem; line-height: 1.5; }
.path__price { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 600; font-size: .9375rem; }
.path__check { position: absolute; top: 18px; right: 18px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-strong); color: transparent; transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.path__check .icon { width: 16px; height: 16px; }
.path:has(input:checked) .path__check { background: var(--ink); border-color: var(--ink); color: var(--surface); }
@media (prefers-reduced-motion: no-preference) { .path:has(input:checked) .path__check { animation: pop 300ms var(--ease-spring); } }

/* ------------------------------------------------------------- doc cards */
.doc-list { display: grid; gap: 16px; }
.doc { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); padding: clamp(18px, 2.8vw, 30px); }
@media (prefers-reduced-motion: no-preference) {
  .doc.is-new { animation: doc-in 420ms var(--ease-out) both; }
  .doc.is-removing { animation: doc-out 220ms var(--ease) both; }
}
@keyframes doc-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes doc-out { to { opacity: 0; transform: scale(.97); } }
.doc__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.doc__title { font-family: var(--font-sans); font-size: 1.0625rem; font-weight: 600; margin: 0; display: flex; align-items: center; gap: 10px; min-width: 0; }
.doc__num { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--surface-sunken); font-family: var(--font-mono); font-size: .8125rem; color: var(--ink-2); }
.doc__price { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: .9375rem; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 999px; border: 0; background: none; color: var(--ink-2); cursor: pointer; flex: none; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.icon-btn:hover { background: var(--surface-sunken); color: var(--ink); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
@media (max-width: 639px) {
  .quick { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * clamp(16px, 2.5vw, 24px)); padding-inline: clamp(16px, 2.5vw, 24px); scroll-padding-inline: clamp(16px, 2.5vw, 24px); }
  .quick::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-raised); color: var(--ink); font: inherit; font-size: .9375rem; font-weight: 500; cursor: pointer; transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.doc__body { display: grid; gap: 18px; margin-top: 4px; }
.doc__note { margin: 0; }
.doc .choices--inline .choice { background: var(--surface-raised); }
.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.qty-row .field__label { margin: 0; }
.qty { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-raised); }
.qty__b { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; transition: background-color var(--dur) var(--ease); }
.qty__b:hover:not(:disabled) { background: var(--surface-sunken); }
.qty__b:disabled { color: var(--ink-3); opacity: .5; cursor: not-allowed; }
.qty__b .icon { width: 18px; height: 18px; }
.qty output { min-width: 28px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.add-doc { margin-top: 14px; }
.nudge { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 12px 16px; border-radius: var(--radius-s); background: var(--success-bg); color: var(--ink); font-size: .9375rem; }
.nudge .icon { color: var(--success); }
.btn--quiet.add-doc { padding-inline: 14px; }

/* reveal: conditional sections open with a height transition (grid 0fr → 1fr) */
.reveal { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 360ms var(--ease-out); }
.reveal[data-open="true"] { grid-template-rows: 1fr; }
.reveal__inner { min-height: 0; overflow: hidden; opacity: 0; transition: opacity 240ms var(--ease); }
.reveal[data-open="true"] > .reveal__inner { opacity: 1; overflow: visible; }
.reveal[data-open="false"] > .reveal__inner { visibility: hidden; transition: opacity 160ms var(--ease), visibility 0s linear 360ms; }
#speed-block > .reveal__inner > .speed { margin-top: 32px; }

/* --------------------------------------------------------------- verdict */
.verdict:empty { display: none; }
.verdict { margin-top: 22px; }
.verdict__card { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.verdict__card--ok { background: var(--success-bg); border-color: transparent; }
.verdict__card--warn { background: var(--warning-bg); border-color: transparent; }
.verdict__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-raised); }
.verdict__card--ok .verdict__icon { color: var(--success); }
.verdict__card--warn .verdict__icon { color: var(--warning); }
.verdict__card strong { display: block; font-size: 1.0625rem; margin-bottom: 2px; }
.verdict__card p { margin: 0; color: var(--ink-2); font-size: .9688rem; }
@media (prefers-reduced-motion: no-preference) { .verdict__card { animation: doc-in 360ms var(--ease-out) both; } }

/* ---------------------------------------------------------------- extras */
.extras { display: grid; gap: 12px; }
.extra { border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.extra:has(.extra__head input:checked) { border-color: var(--ink); background: var(--surface-raised); box-shadow: var(--shadow-1); }
.extra__head { display: grid; grid-template-columns: 24px 1fr auto; gap: 16px; align-items: start; padding: 20px 22px; cursor: pointer; }
.extra__body { display: grid; gap: 2px; min-width: 0; }
.extra__title { font-weight: 600; }
.extra__text { color: var(--ink-2); font-size: .9375rem; line-height: 1.45; }
.extra__price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.extra--free .extra__price { color: var(--success); }
.extra__more { padding: 0 22px 22px 62px; }
@media (max-width: 520px) { .extra__more { padding-left: 18px; } }
@media (prefers-reduced-motion: no-preference) { .extra.is-new { animation: doc-in 380ms var(--ease-out) both; } }

/* -------------------------------------------------------------- uploads */
.dropzone { position: relative; display: grid; place-items: center; gap: 8px; padding: 24px 20px; text-align: center; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.dropzone.is-over { border-color: var(--ink); background: var(--surface-sunken); }
.dropzone > .icon { width: 30px; height: 30px; color: var(--ink-2); }
.dropzone p { margin: 0; color: var(--ink-2); font-size: .9375rem; }
.dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone .btn:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.file-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.file-list:empty { display: none; }
.file-list li { margin: 0; display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 8px 8px 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface-raised); }
.file-list .icon { width: 22px; height: 22px; color: var(--ink-2); }
.file-list .name { font-weight: 500; overflow-wrap: anywhere; line-height: 1.35; }
.file-list .meta { display: block; color: var(--ink-2); font-size: .8125rem; }
.file-list .bad { border-color: var(--danger); }
.file-list .bad .meta { color: var(--danger); }

/* ---------------------------------------------------------------- notice */
.notice { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 14px 16px; border-radius: var(--radius-s); background: var(--info-bg); color: var(--ink); font-size: .9688rem; line-height: 1.5; }
.notice > .icon { color: var(--info); width: 22px; height: 22px; margin-top: 1px; }
.notice p { margin: 0; }
.notice strong:first-child { display: block; margin-bottom: 2px; }
.notice--warning { background: var(--warning-bg); } .notice--warning > .icon { color: var(--warning); }
.notice--success { background: var(--success-bg); } .notice--success > .icon { color: var(--success); }
.notice--danger { background: var(--danger-bg); } .notice--danger > .icon { color: var(--danger); }
.notice--quiet { background: var(--surface-sunken); } .notice--quiet > .icon { color: var(--ink-2); }
.error-summary { margin-bottom: 24px; }
.error-summary ul { margin: 6px 0 0; padding-left: 18px; }
.error-summary a { color: var(--ink); }

/* --------------------------------------------------------------- buttons */
.btn { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--btn-bd); background: var(--btn-bg); color: var(--btn-fg); font-family: var(--font-sans); font-size: 1rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.005em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform 120ms var(--ease); -webkit-tap-highlight-color: transparent; }
.btn:hover { --btn-bd: var(--ink); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn--primary { --btn-bg: var(--accent); --btn-fg: var(--on-accent); --btn-bd: var(--accent); }
.btn--primary:hover { --btn-bg: var(--accent-press); --btn-bd: var(--accent-press); }
.btn--quiet { --btn-bd: transparent; padding-inline: 12px; }
.btn--quiet:hover { --btn-bd: transparent; --btn-bg: var(--surface-sunken); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn .spinner { display: none; }
.btn.is-busy .spinner { display: inline-block; }
.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: no-preference) { .btn .icon:last-child:not(:first-child) { transition: transform var(--dur) var(--ease); } .btn:hover .icon:last-child:not(:first-child) { transform: translateX(3px); } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--link); font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.link-btn:hover { text-decoration-thickness: 2px; }

.form-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-nav__end { display: flex; gap: 12px; margin-left: auto; }
.save-status { font-size: .875rem; color: var(--ink-2); }
@media (max-width: 520px) { .form-nav__end { width: 100%; } .form-nav__end .btn { flex: 1; } .form-nav #back { order: 3; } .save-status { order: 4; width: 100%; text-align: center; } }
.pay-note { display: flex; gap: 10px; align-items: flex-start; margin: 22px 0 0; color: var(--ink-2); font-size: .9375rem; }
.pay-note .icon { margin-top: 2px; }

/* ---------------------------------------------------------------- review */
.review { display: grid; gap: 16px; margin-bottom: 28px; }
.review section { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.review header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; background: var(--surface-sunken); }
.review header h3 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; margin: 0; }
.review dl { margin: 0; display: grid; }
.review dl > div { display: grid; gap: 2px; padding: 12px 16px; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .review dl > div { grid-template-columns: 200px 1fr; gap: 16px; } }
.review dt { color: var(--ink-2); font-size: .9375rem; }
.review dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }

/* --------------------------------------------------------------- summary */
.summary { min-width: 0; }
.summary__bar { display: none; }
.summary__card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 26px; box-shadow: 0 1px 2px rgba(17,18,20,.04), 0 30px 80px -40px rgba(17,18,20,.35); }
@media (prefers-color-scheme: dark) { .summary__card { border-color: #2a2b2f; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); } }
@media (min-width: 1024px) { .summary { position: sticky; top: calc(var(--header-h) + 24px); } }
.summary__head { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.summary__seal { width: 64px; }
.summary__kicker { margin: 0; font-size: var(--fs-caption); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.summary__title { margin: 2px 0 0; font-family: var(--font-serif); font-size: 1.1875rem; line-height: 1.3; }
.lines { list-style: none; margin: 0; padding: 6px 0; display: grid; }
.lines:empty::before { content: "Your price builds here as you choose."; display: block; padding: 14px 0; color: var(--ink-2); font-size: .9375rem; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: .9375rem; line-height: 1.4; }
.line:last-child { border-bottom: 0; }
.line__label { font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.line__qty { color: var(--ink-2); font-weight: 400; }
.line__sub { grid-column: 1; color: var(--ink-2); font-size: .8125rem; }
.line__amt { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }
.line--discount .line__amt { color: var(--success); }
.line--quote .line__amt { color: var(--ink-2); font-weight: 500; }
@media (prefers-reduced-motion: no-preference) {
  .line.is-new { animation: line-in 420ms var(--ease-out) both; }
  .line.is-changed .line__amt { animation: flash 700ms var(--ease); }
}
@keyframes line-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@keyframes flash { 0% { color: var(--accent); } 100% { } }
.summary__total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.summary__total span { font-weight: 600; }
.summary__total strong { font-family: var(--font-display); font-weight: 400; font-size: 2.125rem; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.summary__quote { margin: 8px 0 0; color: var(--ink-2); font-size: .875rem; text-align: right; }
.summary__included { list-style: none; display: grid; gap: 6px; margin: 18px 0 0; padding: 12px 14px; border-radius: var(--radius-s); background: var(--surface-sunken); font-size: .875rem; color: var(--ink-2); }
.summary__included li { display: flex; align-items: center; gap: 8px; margin: 0; }
.summary__included .icon { color: var(--success); width: 17px; height: 17px; }
#email-quote { margin-top: 6px; }

/* the seal */
.seal { width: 100%; height: auto; overflow: visible; }
.seal__s1 { stop-color: var(--seal-hi); } .seal__s2 { stop-color: var(--seal); } .seal__s3 { stop-color: var(--seal-deep); }
.seal__ribbon { fill: var(--ribbon); } .seal__ribbon--b { fill: #1b3561; }
@media (prefers-color-scheme: dark) { .seal__ribbon { fill: #2f5aa0; } .seal__ribbon--b { fill: #24467e; } }
.seal__rim { fill: none; stroke: var(--seal-hi); stroke-opacity: .75; stroke-width: 1.2; }
.seal__dash { fill: none; stroke: var(--seal-deep); stroke-opacity: .45; stroke-width: 1; stroke-dasharray: 1.5 2.5; }
.seal__ma, .seal__count { font-family: var(--font-display); fill: #4a3712; }
.seal__ma { font-size: 26px; letter-spacing: .02em; }
.seal__count { font-family: var(--font-mono); font-size: 17px; font-weight: 600; transition: opacity 200ms var(--ease); }
.seal__track { fill: none; stroke: #4a3712; stroke-opacity: .16; stroke-width: 4; }
.seal__ring { fill: none; stroke: #4a3712; stroke-opacity: .7; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 600ms var(--ease-out); }
.seal__tick { fill: none; stroke: #4a3712; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; opacity: 0; }
.seal.is-complete .seal__count { opacity: 0; }
.seal.is-complete .seal__tick { opacity: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 520ms var(--ease-out) 120ms, opacity 1ms; }
.seal__face { transform-origin: 60px 56px; transform-box: view-box; }
@media (prefers-reduced-motion: no-preference) {
  .seal.is-bump .seal__face { animation: seal-bump 520ms var(--ease-spring); }
  .path:hover .seal--sm .seal__face { animation: seal-turn 900ms var(--ease-out); }
}
@keyframes seal-bump { 0% { transform: scale(1); } 40% { transform: scale(1.08) rotate(6deg); } 100% { transform: none; } }
@keyframes seal-turn { from { transform: rotate(-14deg); } to { transform: none; } }

/* mobile: summary becomes a bottom bar that opens into a sheet */
@media (max-width: 1023px) {
  .summary { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; max-width: 760px; margin-inline: auto; padding: 0 max(12px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-right)); pointer-events: none; }
  .summary > * { pointer-events: auto; }
  .summary__bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: 100%; min-height: var(--bar-h); padding: 0 18px; border: 1px solid var(--line); border-radius: 20px; background: color-mix(in srgb, var(--surface-raised) 90%, transparent); -webkit-backdrop-filter: saturate(160%) blur(20px); backdrop-filter: saturate(160%) blur(20px); box-shadow: var(--shadow-3); color: var(--ink); font: inherit; cursor: pointer; position: relative; z-index: 2; }
  @media (prefers-reduced-transparency: reduce) { .summary__bar { background: var(--surface-raised); -webkit-backdrop-filter: none; backdrop-filter: none; } }
  .summary__bar-l { font-weight: 600; color: var(--ink-2); font-size: .9375rem; }
  .summary__bar-total { justify-self: end; font-family: var(--font-display); font-size: 1.625rem; line-height: 1; font-variant-numeric: tabular-nums; }
  .summary__bar-chev .icon { transition: transform var(--dur) var(--ease); }
  .summary[data-open="true"] .summary__bar-chev .icon { transform: rotate(180deg); }
  .summary__card { position: absolute; left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: calc(var(--bar-h) + 18px + env(safe-area-inset-bottom)); max-height: min(70vh, 560px); overflow: auto; overscroll-behavior: contain; box-shadow: var(--shadow-3); opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity 220ms var(--ease), transform 320ms var(--ease-out), visibility 0s linear 320ms; }
  .summary[data-open="true"] .summary__card { opacity: 1; visibility: visible; transform: none; transition: opacity 220ms var(--ease), transform 320ms var(--ease-out), visibility 0s; }
  .summary__total strong { font-size: 1.75rem; }
}

/* ----------------------------------------------------------------- modal */
.modal { width: min(520px, calc(100vw - 24px)); padding: 0; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface-raised); color: var(--ink); box-shadow: var(--shadow-3); }
.modal::backdrop { background: rgba(17, 18, 20, .45); }
.modal__body { padding: clamp(20px, 4vw, 32px); }
.modal h2 { font-size: 1.75rem; }
@media (prefers-reduced-motion: no-preference) { .modal[open] { animation: doc-in 260ms var(--ease-out); } }

/* ---------------------------------------------------------- confirmation */
.confirm { max-width: 680px; margin-inline: auto; padding-block: clamp(40px, 7vw, 96px) 96px; text-align: center; }
.confirm__seal { width: 132px; margin: 0 auto 28px; }
@media (prefers-reduced-motion: no-preference) {
  .confirm__seal .seal__face { animation: press 900ms var(--ease-spring) 120ms both; }
  .confirm__seal .seal__tails { animation: tails 700ms var(--ease-out) 520ms both; }
  .confirm__seal::after { animation: ripple 900ms var(--ease-out) 420ms both; }
  .confirm .reveal-up { animation: step-in 600ms var(--ease-out) both; }
  .confirm .reveal-up:nth-child(3) { animation-delay: 380ms; } .confirm .reveal-up:nth-child(4) { animation-delay: 450ms; } .confirm .reveal-up:nth-child(5) { animation-delay: 520ms; } .confirm .reveal-up:nth-child(6) { animation-delay: 590ms; }
}
.confirm__seal { position: relative; }
.confirm__seal::after { content: ""; position: absolute; left: 50%; top: 45%; width: 100%; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--seal); transform: translate(-50%, -50%) scale(.6); opacity: 0; pointer-events: none; }
@keyframes press { 0% { opacity: 0; transform: scale(1.7) rotate(-18deg); } 55% { opacity: 1; transform: scale(.94) rotate(2deg); } 100% { opacity: 1; transform: none; } }
@keyframes tails { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes ripple { 0% { opacity: .7; transform: translate(-50%, -50%) scale(.7); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); } }
.ref { display: inline-block; font-family: var(--font-mono); font-size: clamp(1.25rem, 1.05rem + 1vw, 1.6rem); letter-spacing: .04em; padding: 10px 18px; border-radius: 12px; background: var(--surface-raised); border: 1px solid var(--line); margin: 6px 0 24px; user-select: all; }
.next-steps { text-align: left; list-style: none; margin: 28px 0 32px; padding: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-raised); }
.next-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; padding: 16px 18px; margin: 0; border-top: 1px solid var(--line); }
.next-steps li:first-child { border-top: 0; }
.next-steps .n { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-sunken); font-family: var(--font-mono); font-size: .8125rem; color: var(--ink-2); }
.next-steps strong { display: block; }
.next-steps span { color: var(--ink-2); font-size: .9688rem; }
.next-steps .addr { display: block; margin: 6px 0; color: var(--ink); font-weight: 600; font-family: var(--font-sans); line-height: 1.45; }
.confirm .actions { justify-content: center; }

/* ---------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--line); padding-block: 32px calc(32px + var(--bar-h) + env(safe-area-inset-bottom)); color: var(--ink-2); font-size: .875rem; }
@media (min-width: 1024px) { .foot { padding-bottom: 40px; } }
.foot__grid { display: grid; gap: 14px; }
.foot__legal { margin: 0; max-width: 80ch; }
.foot__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot__links a { color: var(--ink-2); display: inline-flex; min-height: 32px; align-items: center; }
.foot__copy { margin: 0; }

/* phones: a compact hero so the form starts on the first screen */
@media (max-width: 719px) {
  .hero { padding-top: 28px; }
  .hero h1 { margin-bottom: 16px; }
  .hero .lede { margin-bottom: 20px; font-size: 1.0625rem; }
  .hero .assure { display: flex; flex-wrap: wrap; gap: 8px 18px; }
  .hero .assure li { display: flex; align-items: center; gap: 7px; }
  .hero .assure li > span { font-size: 0; line-height: 1.3; }
  .hero .assure li strong { font-size: .8438rem; font-weight: 600; color: #d6d1c6; }
  .hero .assure .icon { width: 16px; height: 16px; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
