/* Laurel: soft editorial (Craft style), from the approved mock-ups.
   Tokens first (light, then both dark blocks: keep them in step), then the
   base components, then Laurel's screens. Components use only tokens. */

@font-face { font-family: "Hanken Grotesk"; src: url(/fonts/hanken-grotesk-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(/fonts/newsreader-latin-wght-normal.woff2) format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(/fonts/newsreader-latin-wght-italic.woff2) format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
/* Certificate fonts: the same files that go into the PDFs (assets/fonts), so previews match prints. */
@font-face { font-family: "Cert Cinzel"; src: url(/fonts/cert/cinzel-semibold.woff2) format("woff2"); font-display: block; }
@font-face { font-family: "Cert Script"; src: url(/fonts/cert/pinyon-script.woff2) format("woff2"); font-display: block; }
@font-face { font-family: "Cert Serif"; src: url(/fonts/cert/newsreader-regular.woff2) format("woff2"); font-display: block; }
@font-face { font-family: "Cert Serif SemiBold"; src: url(/fonts/cert/newsreader-semibold.woff2) format("woff2"); font-display: block; }
@font-face { font-family: "Cert Serif Bold"; src: url(/fonts/cert/newsreader-bold.woff2) format("woff2"); font-display: block; }
@font-face { font-family: "Cert Serif Italic"; src: url(/fonts/cert/newsreader-italic.woff2) format("woff2"); font-display: block; }
@font-face { font-family: "Cert Serif Medium Italic"; src: url(/fonts/cert/newsreader-medium-italic.woff2) format("woff2"); font-display: block; }
@font-face { font-family: "Cert Sans"; src: url(/fonts/cert/hanken-regular.woff2) format("woff2"); font-display: block; }
@font-face { font-family: "Cert Sans SemiBold"; src: url(/fonts/cert/hanken-semibold.woff2) format("woff2"); font-display: block; }

:root {
  color-scheme: light;
  --canvas: #eeedf2;
  --surface: #ffffff;
  --surface-2: #f1f0f5;
  --raised: #ffffff;
  --ink: #1d1c24;
  --ink-2: #3a3846;
  --muted: #5d5b69;
  --line: #dcdae3;
  --line-2: #e8e6ee;
  --accent: #245a47;
  --accent-ink: #ffffff;
  --accent-soft: #dcebe3;
  --on-ink: #ffffff;
  --danger: #a3261d;
  --danger-soft: #f8dedb;
  --warn: #7a4e0c;
  --warn-soft: #f8ecd2;
  --focus: #3c63d6;
  --scrim: rgba(20, 19, 25, .45);
  --shadow: 0 1px 2px rgba(29, 28, 36, .06), 0 10px 30px -12px rgba(41, 34, 78, .22);
  --shadow-sm: 0 1px 2px rgba(29, 28, 36, .06), 0 4px 12px -6px rgba(41, 34, 78, .18);
  --cert-shadow: 0 1px 1px rgba(40, 30, 20, .10), 0 10px 28px -12px rgba(40, 30, 60, .35);
  --t-rose: #f1d6d0; --t-sky: #d5e2f2; --t-sage: #d7e3d2; --t-butter: #f2e5c3; --t-lilac: #e3dcf0; --t-stone: #e2e0dc;
  --radius: 22px;
  --radius-sm: 14px;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: var(--serif);
  --tap: 44px;
}
/* Dark, when following the phone */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --canvas: #141319; --surface: #1f1e26; --surface-2: #272630; --raised: #42404e; --ink: #eeedf3; --ink-2: #d2d0dc; --muted: #a5a3b2;
    --line: #34323e; --line-2: #2b2a34; --accent: #8fd0b4; --accent-ink: #10231b; --accent-soft: #1f3a30; --on-ink: #17161c;
    --danger: #ff9b90; --danger-soft: #4a1f1b; --warn: #f0c977; --warn-soft: #3a2f1a; --focus: #9cb4ff; --scrim: rgba(0, 0, 0, .6);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .7);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 12px -6px rgba(0, 0, 0, .6); --cert-shadow: 0 1px 1px rgba(0, 0, 0, .3), 0 12px 28px -10px rgba(0, 0, 0, .7);
    --t-rose: #4a3430; --t-sky: #2c3a4d; --t-sage: #2f3d31; --t-butter: #4a3b29; --t-lilac: #3a3350; --t-stone: #393733;
  }
}
/* Dark, picked with the toggle (same values as above) */
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #141319; --surface: #1f1e26; --surface-2: #272630; --raised: #42404e; --ink: #eeedf3; --ink-2: #d2d0dc; --muted: #a5a3b2;
  --line: #34323e; --line-2: #2b2a34; --accent: #8fd0b4; --accent-ink: #10231b; --accent-soft: #1f3a30; --on-ink: #17161c;
  --danger: #ff9b90; --danger-soft: #4a1f1b; --warn: #f0c977; --warn-soft: #3a2f1a; --focus: #9cb4ff; --scrim: rgba(0, 0, 0, .6);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .7);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 12px -6px rgba(0, 0, 0, .6); --cert-shadow: 0 1px 1px rgba(0, 0, 0, .3), 0 12px 28px -10px rgba(0, 0, 0, .7);
  --t-rose: #4a3430; --t-sky: #2c3a4d; --t-sage: #2f3d31; --t-butter: #4a3b29; --t-lilac: #3a3350; --t-stone: #393733;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--canvas); color: var(--ink);
  font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
h1 { font: 500 34px/1.08 var(--serif); letter-spacing: -0.02em; }
h2 { font: 500 21px/1.2 var(--serif); letter-spacing: -0.01em; }
h3 { font: 650 17px/1.3 var(--sans); }
p { margin: 0 0 1em; overflow-wrap: anywhere; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--accent-soft); color: var(--ink); }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.sprite { display: none; }
.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 10px; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: var(--radius-sm); z-index: 50; }
.skip:focus { top: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---- shell ---- */
.top { max-width: 480px; margin: 0 auto; padding: 0 16px; }
.top.wide { max-width: 1120px; padding: 0 20px; }
.topbar { display: flex; align-items: center; gap: 8px; height: 64px; }
.topbar .title { flex: 1; font: 600 17px/1.2 var(--sans); text-align: center; }
.topbar .spacer { flex: 1; }
.app { max-width: 480px; margin: 0 auto; padding: 0 16px 48px; outline: none; }
.app.has-bar { padding-bottom: 150px; }
.app.wide { max-width: 1120px; padding: 0 20px 48px; }
.stack { display: grid; gap: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.offline-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--warn-soft); color: var(--warn); text-align: center; font-weight: 600; }
.noscript { padding: 16px; }
.offline-page { display: grid; place-items: center; min-height: 80dvh; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; font: italic 600 28px/1 var(--serif); letter-spacing: -0.02em; text-decoration: none; margin-right: auto; color: var(--ink); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 4px 0 22px; padding: 0; list-style: none; }
.steps li { font: 500 13px/1.2 var(--sans); color: var(--muted); }
.steps li::before { content: ""; display: block; height: 4px; border-radius: 4px; background: var(--line); margin-bottom: 7px; }
.steps li.done::before { background: var(--ink-2); }
.steps li.now { color: var(--ink); font-weight: 650; }
.steps li.now::before { background: var(--ink); }

.page-head h1 { margin: 0 0 8px; }
.page-head p { margin: 0 0 22px; color: var(--muted); max-width: 36ch; }
.group-title { font: 500 21px/1.2 var(--serif); margin: 30px 0 12px; letter-spacing: -0.01em; }
.surface { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, transparent, var(--canvas) 22px);
}
.bottom-bar .inner { max-width: 448px; margin: 0 auto; }
.bottom-bar .hint { text-align: center; font-size: 13px; color: var(--muted); margin: 8px 0 0; }

/* ---- button ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 16px; border: 0; cursor: pointer; text-align: center;
  font: 650 16px/1.2 var(--sans); text-decoration: none; letter-spacing: .005em;
  background: var(--surface-2); color: var(--ink);
}
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-secondary { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-danger { background: var(--danger); color: var(--surface); }
.btn-ghost, .btn-quiet { background: transparent; color: var(--ink); min-height: 48px; padding-inline: 10px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.btn-small { min-height: 44px; padding: 0 14px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn .size { font-weight: 500; opacity: .75; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn[aria-busy="true"]::after { content: ""; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.iconbtn {
  width: var(--tap); height: var(--tap); border-radius: 50%; border: 0; background: var(--surface); color: var(--ink);
  display: inline-grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); flex: none; text-decoration: none;
}
.iconbtn.flat { background: transparent; box-shadow: none; }
@media (prefers-reduced-motion: no-preference) {
  .btn, .chip, .iconbtn, .tpl { transition: transform .15s cubic-bezier(.2, .8, .2, 1); }
  .btn:active, .chip:active, .iconbtn:active, .tpl:active { transform: scale(.97); }
}

/* ---- input ---- */
.field { display: grid; gap: 6px; }
.field > label { font: 600 15px/1.3 var(--sans); }
.field .hint { color: var(--muted); font-size: 14px; margin: 0; }
.field .error { color: var(--danger); font-size: 14px; font-weight: 600; margin: 0; }
.input {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 14px;
  border: 0; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); color: var(--ink); font: 400 16px/1.35 var(--sans);
}
textarea.input { min-height: 96px; resize: vertical; font-family: var(--serif); font-size: 17px; }
.input.serif { font-family: var(--serif); font-size: 17px; }
.input:focus-visible { box-shadow: inset 0 0 0 2px var(--focus); outline: none; }
.input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--danger); }

/* ---- card ---- */
.card { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.card > :last-child { margin-bottom: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.card-head h2 { margin: 0; }
.badge, .pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); font: 600 13px/1.3 var(--sans); }
.badge .i, .pill .i { width: 16px; height: 16px; }

/* ---- sheet (a <dialog>: focus stays inside, Esc closes) ---- */
.sheet {
  border: 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); width: 100%; max-width: 520px;
  margin: auto auto 0; border-radius: 24px 24px 0 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
  max-height: 90dvh; overflow: auto;
}
.sheet::backdrop { background: var(--scrim); }
.sheet[open] { animation: rise .2s ease-out; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sheet-head h2 { margin: 0; font-size: 24px; }
.sheet .iconbtn { background: var(--surface-2); box-shadow: none; }
.sheet form, .sheet .stack { display: grid; gap: 14px; }
@media (min-width: 700px) { .sheet { margin: auto; border-radius: 24px; } }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }

/* ---- toast ---- */
.toasts { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 8px; width: min(92vw, 420px); z-index: 40; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: var(--ink); color: var(--canvas); box-shadow: var(--shadow); font-weight: 600; animation: rise .2s ease-out; }
.toast.error { background: var(--danger); color: var(--surface); }
.toast .btn-ghost { color: inherit; min-height: 32px; margin-left: auto; }

/* ---- notices, chips, choices ---- */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--warn-soft); color: var(--ink); font-size: 15px; }
.notice > .i { color: var(--warn); margin-top: 1px; }
.notice b { font-weight: 650; }
.notice p { margin: 0; }
.notice .link { color: var(--ink); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; margin: -6px 0 -12px; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.notice.ok { background: var(--accent-soft); }
.notice.ok > .i { color: var(--accent); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font: 550 15px/1 var(--sans); white-space: nowrap; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); margin-bottom: 14px; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 400 16px/1 var(--sans); height: 100%; outline: none; }
.search:focus-within { box-shadow: inset 0 0 0 2px var(--focus); }
.choice { display: flex; gap: 12px; align-items: center; min-height: 52px; padding: 10px 14px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.choice:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); }
.choice input { width: 20px; height: 20px; accent-color: var(--ink); margin: 0; flex: none; }
.choice span small { display: block; color: var(--muted); font-size: 14px; }

/* ---- certificates ---- */
.cert { position: relative; aspect-ratio: 11 / 8.5; border-radius: 2px; box-shadow: var(--cert-shadow); background: #fbf8f0; overflow: hidden; }
.cert.a4 { aspect-ratio: 297 / 210; }
.cert .cert-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cert-svg text { font-kerning: none; font-variant-ligatures: none; text-rendering: geometricPrecision; }
.cert.loading { background: color-mix(in srgb, var(--surface) 70%, var(--line)); }
@media (prefers-reduced-motion: no-preference) {
  .cert.loading::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .25) 50%, transparent 70%); animation: shimmer 1.2s linear infinite; }
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.frame { border-radius: 18px; padding: 14px; display: block; position: relative; }
.tint-rose { background: var(--t-rose); } .tint-sky { background: var(--t-sky); } .tint-sage { background: var(--t-sage); }
.tint-butter { background: var(--t-butter); } .tint-lilac { background: var(--t-lilac); } .tint-stone { background: var(--t-stone); }

/* ---- landing ---- */
.site-head { display: flex; align-items: center; gap: 8px; height: 68px; }
.site-head nav { display: none; gap: 4px; }
.site-head nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; text-decoration: none; font-weight: 550; color: var(--ink-2); }
.site-head .btn { min-height: 44px; padding: 0 18px; border-radius: 14px; font-size: 15px; }
.hero { padding: 18px 0 8px; }
.hero h1 { font: 450 44px/1.02 var(--serif); letter-spacing: -0.03em; margin: 0 0 16px; text-wrap: balance; }
.hero .lede { font-size: 18px; line-height: 1.5; color: var(--ink-2); margin: 0 0 24px; max-width: 34ch; }
.hero .ctas { display: grid; gap: 10px; }
.hero .fine { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.fan { position: relative; --w: 300px; --step: 104px; height: calc(var(--step) * 2 + var(--w) * 8.5 / 11); margin: 34px 0 0; }
.fan .cert { position: absolute; width: var(--w); left: 50%; }
.fan .c1 { top: 0; transform: translateX(-56%) rotate(-4deg); }
.fan .c2 { top: var(--step); transform: translateX(-44%) rotate(3deg); }
.fan .c3 { top: calc(var(--step) * 2); transform: translateX(-50%) rotate(-1deg); }
.fan-tag { display: flex; justify-content: center; margin-top: 18px; }
.fan-tag span { background: var(--surface); box-shadow: var(--shadow-sm); border-radius: 999px; padding: 9px 16px; font: 550 15px/1.2 var(--sans); white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.fan-tag .i { width: 18px; height: 18px; color: var(--accent); }
section.block { padding: 56px 0 8px; }
section.block > h2 { font: 450 32px/1.1 var(--serif); letter-spacing: -0.02em; margin: 0 0 8px; }
section.block > p.sub { color: var(--muted); margin: 0 0 24px; max-width: 40ch; }
.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.how li { counter-increment: s; display: grid; align-content: start; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px; background: var(--surface); border-radius: 20px; }
.how li::before { content: counter(s); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--canvas); font: 500 20px/1 var(--serif); }
.how h3 { margin: 2px 0 4px; }
.how p { margin: 0; color: var(--muted); font-size: 15px; }
.file-types { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.file-types span { font-size: 13px; font-weight: 550; padding: 3px 9px; border-radius: 8px; background: var(--canvas); color: var(--ink-2); }
.occasions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.occasion { text-decoration: none; color: inherit; }
.occasion .frame { padding: 12px; }
.occasion h3 { font: 600 16px/1.3 var(--sans); margin: 10px 2px 0; }
.occasion > p { font-size: 14px; color: var(--muted); margin: 2px 2px 0; }
.plans { display: grid; gap: 12px; }
.plan { background: var(--surface); border-radius: 22px; padding: 22px; box-shadow: var(--shadow-sm); }
.plan.pick { box-shadow: inset 0 0 0 2px var(--ink), var(--shadow-sm); }
.plan .price { font: 450 44px/1 var(--serif); letter-spacing: -0.02em; margin: 4px 0 2px; }
.plan .price small { font: 500 16px/1 var(--sans); color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.plan h3 { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plan ul { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 8px; font-size: 15px; }
.plan li { display: flex; gap: 10px; }
.plan li .i { width: 20px; height: 20px; color: var(--accent); margin-top: 1px; }
.free { text-wrap: balance; margin-top: 14px; text-align: center; color: var(--muted); font-size: 15px; }
footer.site { padding: 48px 0 40px; color: var(--muted); font-size: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
footer.site a { color: var(--muted); }
@media (min-width: 900px) {
  .site-head { height: 84px; }
  .site-head nav { display: flex; margin-right: 12px; }
  .site-head .account-icon { display: none; }
  .hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; padding: 40px 0 24px; min-height: 600px; }
  .hero h1 { font-size: 76px; }
  .hero .lede { font-size: 20px; }
  .hero .ctas { grid-template-columns: auto auto; justify-content: start; }
  .fan { --w: 420px; --step: 140px; margin: 0; }
  section.block { padding: 96px 0 8px; }
  section.block > h2 { font-size: 44px; }
  .how { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .how li { grid-template-columns: 1fr; padding: 24px; }
  .occasions { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .occasion .frame { padding: 18px; }
  .plans.landing { grid-template-columns: 1fr 1fr; max-width: 760px; }
}

/* ---- names ---- */
.drop { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 32px 20px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 2px var(--line); }
.drop.over { box-shadow: inset 0 0 0 2px var(--focus); background: var(--surface-2); }
.drop .ico { width: 56px; height: 56px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.drop p { margin: 0; color: var(--muted); }
.drop .btn { margin-top: 6px; }
.file { display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px; }
.file .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.file .meta { flex: 1; min-width: 0; }
.file .name { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file .sub { font-size: 14px; color: var(--muted); }
.cols { display: grid; gap: 10px; }
.col { padding: 16px; border-radius: var(--radius); }
[data-note] { margin-bottom: 12px; display: grid; gap: 10px; }
.col.off { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.col h3 { font: 650 16px/1.3 var(--sans); margin: 0; overflow-wrap: anywhere; }
.col .from { font-size: 13px; color: var(--muted); }
.samples { list-style: none; padding: 0; margin: 12px 0 14px; font: 400 17px/1.45 var(--serif); }
.samples li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.samples .more { font: 400 14px/1.6 var(--sans); color: var(--muted); }
.col.off .samples { color: var(--muted); }
.use { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 14px; border-radius: 14px; background: var(--surface-2); }
.use .k { font-size: 13px; color: var(--muted); display: block; line-height: 1.2; }
.use .v { font-weight: 650; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.use .v .i { width: 18px; height: 18px; color: var(--accent); }
.use > .i { color: var(--muted); }
.use select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.use:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.col.off .use { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.try-sample { display: flex; justify-content: center; margin-top: 8px; }

/* ---- design ---- */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.tpl { display: block; text-decoration: none; color: inherit; border-radius: 20px; border: 0; padding: 0; background: none; text-align: left; cursor: pointer; width: 100%; }
.tpl .frame { padding: 12px; }
.tpl .label { display: flex; justify-content: space-between; align-items: baseline; margin: 9px 4px 0; gap: 6px; }
.tpl .label b { font: 600 16px/1.3 var(--sans); }
.tpl .label span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.tpl[aria-pressed="true"] .frame { box-shadow: 0 0 0 2.5px var(--ink); }
.tpl .tick { position: absolute; top: -8px; right: -8px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: none; place-items: center; box-shadow: 0 0 0 3px var(--canvas); }
.tpl[aria-pressed="true"] .tick { display: grid; }
.tpl .tick .i { width: 18px; height: 18px; stroke-width: 2.4; }
.tpl.wide { grid-column: 1 / -1; }
.tpl.wide .frame { padding: 22px 34px; }
.shown-with { font-size: 14px; color: var(--muted); margin: -8px 0 14px; display: flex; align-items: center; gap: 8px; }
.shown-with .i { width: 18px; height: 18px; }
.empty-search { color: var(--muted); padding: 24px 0; text-align: center; }

/* ---- check ---- */
.stage { background: var(--t-lilac); border-radius: 24px; padding: 22px 16px 14px; }
.notes { margin-top: 14px; gap: 10px; }
.who { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.who .mid { flex: 1; text-align: center; min-width: 0; }
.who .nm { font: 500 19px/1.25 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who .of { font-size: 14px; color: var(--ink-2); }
.fields { overflow: hidden; }
.fields .row-btn { display: flex; gap: 12px; align-items: center; width: 100%; padding: 12px 16px 14px; border: 0; border-bottom: 1px solid var(--line-2); background: transparent; text-align: left; cursor: pointer; min-height: 64px; }
.fields .row-btn:last-child { border-bottom: 0; }
.fields .row-btn > span { flex: 1; min-width: 0; }
.fields .row-btn > .i { color: var(--muted); }
.lbl { display: block; font: 500 13px/1.3 var(--sans); color: var(--muted); margin-bottom: 4px; }
.val { display: block; font: 400 17px/1.35 var(--serif); color: var(--ink); min-height: 24px; overflow-wrap: anywhere; }
.val.empty { color: var(--muted); font-style: italic; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 16px 16px; }
.sw { width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; padding: 0; }
.sw[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.sw-gold { background: #b8914a; } .sw-navy { background: #1f2f55; } .sw-blue { background: #2f4ba8; }
.sw-sage { background: #5b7f62; } .sw-wine { background: #8a3b52; } .sw-graphite { background: #3d3a44; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: 12px; padding: 3px; min-width: 150px; }
.seg button { min-height: 44px; border: 0; border-radius: 10px; background: transparent; font-weight: 600; font-size: 15px; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--raised); color: var(--ink); box-shadow: var(--shadow-sm); }
.sec-label { font: 500 13px/1.3 var(--sans); color: var(--muted); padding: 14px 16px 0; }
.look-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 14px; border-top: 1px solid var(--line-2); font-weight: 600; }
.token-hint { font-size: 14px; color: var(--muted); margin: 0; }
.token-hint button { font: 600 14px/1 var(--sans); background: var(--surface-2); border: 0; border-radius: 8px; padding: 6px 8px; min-height: 32px; cursor: pointer; }
@media (min-width: 960px) {
  .top, .app { max-width: 1040px; padding-inline: 24px; }
  .bottom-bar .inner { max-width: 992px; display: grid; grid-template-columns: minmax(0, 420px); justify-content: end; }
  .bottom-bar .hint { text-align: right; }
  .app.has-bar { padding-bottom: 140px; }
  .cols { grid-template-columns: 1fr 1fr; align-items: start; }
  .file, .drop, .try-sample, [data-note] { max-width: 640px; }
  .ready, .actions, .files, .again, .kept { max-width: 560px; margin-inline: auto; }
  .check-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
  .check-layout .stage { position: sticky; top: 16px; }
  .check-layout .group-title:first-child { margin-top: 0; }
  .design-grid .grid { grid-template-columns: repeat(3, 1fr); }
  .design-grid .tpl.wide { grid-column: auto; }
  .design-grid .tpl.wide .frame { padding: 12px; }
}

/* ---- files ---- */
.ready { text-align: center; padding: 8px 4px 0; }
.pile { position: relative; width: 250px; height: 318px; margin: 8px auto 14px; }
.pile .cert { position: absolute; width: 224px; left: 13px; }
.pile .s1 { top: 0; transform: translateX(-14px) rotate(-7deg); }
.pile .s2 { top: 68px; transform: translateX(12px) rotate(4deg); }
.pile .s3 { top: 136px; transform: rotate(-1deg); }
.pile .done-badge { position: absolute; z-index: 3; right: -16px; bottom: -6px; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--canvas); display: grid; place-items: center; box-shadow: 0 0 0 5px var(--canvas); }
.pile .done-badge .i { width: 30px; height: 30px; stroke-width: 2.4; }
.ready h1 { font: 450 36px/1.08 var(--serif); margin: 0 0 8px; }
.ready > p { color: var(--muted); margin: 0 auto 24px; max-width: 32ch; }
.actions { display: grid; gap: 10px; }
.actions .btn { min-height: 56px; }
.email-note { text-wrap: balance; font-size: 14px; color: var(--muted); text-align: center; margin: 2px 0 0; }
.files { margin-top: 30px; }
.files-head { display: flex; align-items: baseline; justify-content: space-between; }
.files-head h2 { margin: 0 0 12px; }
.files-head button { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; background: none; border: 0; cursor: pointer; padding: 0; }
.file-list { list-style: none; margin: 0; padding: 4px 0; }
.file-list li { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; }
.file-list li + li { border-top: 1px solid var(--line-2); }
.file-list .ico { color: var(--muted); }
.file-list .meta { flex: 1; min-width: 0; }
.file-list .n { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-list .s { font-size: 13px; color: var(--muted); }
.again { display: flex; justify-content: center; margin-top: 22px; }
.kept { text-align: center; font-size: 14px; margin: 4px 0 0; }
.kept .btn-quiet { min-height: 44px; font-size: 14px; color: var(--muted); }
.batch-list a { color: inherit; text-decoration: none; }

/* ---- kit (base) ---- */
.kit-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.kit-swatch { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); }
.sw-canvas { background: var(--canvas); } .sw-surface { background: var(--surface); } .sw-accent { background: var(--accent); }
.sw-accent-soft { background: var(--accent-soft); } .sw-danger { background: var(--danger); } .sw-warn { background: var(--warn); }
