/* Layout: a well-kept recipe binder. White pages, a warm "kitchen" band for the program's
   standout feature, real screenshots set like photographs, one ember color for every action. */
:root {
  --paper: #f4ece2;
  --band: #e9ddcf;
  --card: #fffbf6;
  --ink: #2c1f18;
  --head: #3d1f14;
  --muted: #5f5148;
  --line: #d9c9b7;
  --ember: #b9502a;
  --ember-ink: #ffffff;
  --sage: #4b6a4e;
  --hearth: #2a1a13;
  --hearth-ink: #f3e9df;
  --shadow: 0 1px 2px rgba(42, 26, 19, .06), 0 12px 32px rgba(42, 26, 19, .12);
  --display: "Literata", Georgia, "Times New Roman", serif;
  --body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --step--1: .875rem; --step-0: 1.0625rem; --step-1: 1.25rem; --step-2: 1.6rem; --step-3: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem); --step-4: clamp(2.3rem, 1.6rem + 3vw, 3.6rem);
  --wrap: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1a1411; --band: #231b16; --card: #221a16; --ink: #efe5dc; --head: #f6ebe0; --muted: #b7a79b; --line: #3a2e27;
    --ember: #e07447; --ember-ink: #1a1411; --sage: #8fb592; --hearth: #120d0b; --hearth-ink: #f3e9df;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.45); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1a1411; --band: #231b16; --card: #221a16; --ink: #efe5dc; --head: #f6ebe0; --muted: #b7a79b; --line: #3a2e27;
  --ember: #e07447; --ember-ink: #1a1411; --sage: #8fb592; --hearth: #120d0b; --hearth-ink: #f3e9df;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.45); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--paper); color: var(--ink); font-family: var(--body); font-size: var(--step-0); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); color: var(--head); line-height: 1.15; margin: 0; text-wrap: balance; font-weight: 600; }
h1 { font-size: var(--step-4); letter-spacing: -.01em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0; }
a { color: var(--ember); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 6px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-size: var(--step--1); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ember); }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 40ch; }
.muted { color: var(--muted); }
section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { display: grid; gap: 14px; align-content: start; max-width: 64ch; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--muted); font-size: var(--step-1); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 10px; font: 600 1rem/1.2 var(--body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn-primary { background: var(--ember); color: var(--ember-ink); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-quiet { border-color: var(--line); color: var(--head); background: transparent; }
.btn-quiet:hover { border-color: var(--head); }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--head); margin-right: auto; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand b { font-family: var(--display); font-size: 1.2rem; font-weight: 600; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--ember); }
.top .btn { min-height: 42px; padding: 9px 16px; white-space: nowrap; }
.brand b { white-space: nowrap; }
@media (max-width: 440px) { .brand b { font-size: 1rem; } .brand img { width: 34px; height: 34px; } .top .wrap { gap: 12px; } }
@media (max-width: 900px) { .nav { display: none; } }

/* hero */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(48px, 7vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.hero-copy .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: var(--step--1); color: var(--muted); list-style: none; padding: 0; margin: 0; }
.facts li { display: flex; align-items: center; gap: 7px; }
.facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* a program window around screenshots */
.window { border-radius: 12px; overflow: hidden; background: #fbf7f1; box-shadow: var(--shadow); border: 1px solid var(--line); }
.window .bar { display: flex; align-items: center; justify-content: space-between; height: 30px; padding: 0 0 0 12px; background: #efe7dd; color: #5a4a40; font-size: 12px; font-weight: 500; }
.window .bar span:last-child { display: flex; height: 100%; }
.window .bar i { width: 40px; display: grid; place-items: center; font-style: normal; font-size: 12px; color: #7a6a5f; }
.window img { width: 100%; }

/* trust band */
.trust { border-block: 1px solid var(--line); padding-block: 28px; }
.trust ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.trust b { display: block; font-family: var(--display); font-size: 1.1rem; color: var(--head); font-weight: 600; margin-bottom: 4px; }
.trust span { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .trust ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .trust ul { grid-template-columns: 1fr; } }

/* photo spotlight */
.spot { background: var(--band); }
.spot-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.pages { position: relative; aspect-ratio: 5 / 4; max-width: 460px; width: 100%; justify-self: center; }
.pages img { position: absolute; width: 56%; border-radius: 6px; box-shadow: var(--shadow); }
.pages img:first-child { left: 2%; top: 0; transform: rotate(-5deg); }
.pages img:last-child { right: 2%; bottom: 0; transform: rotate(4deg); }
.rc-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.receipt-pic { position: relative; max-width: 300px; width: 100%; justify-self: center; }
.receipt-pic img { width: 100%; height: auto; display: block; border-radius: 6px; box-shadow: var(--shadow); transform: rotate(2deg); }
.receipt-pic .tag, .pages .tag { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); background: var(--paper); color: var(--head); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .85rem; font-weight: 600; box-shadow: var(--shadow); white-space: nowrap; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; padding: 0; margin: clamp(28px, 4vw, 44px) 0 0; counter-reset: step; }
.steps li { display: grid; gap: 6px; padding-top: 16px; border-top: 2px solid var(--head); counter-increment: step; }
.steps li::before { content: "Step " counter(step); font-size: var(--step--1); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ember); }
.steps b { font-family: var(--display); font-size: 1.15rem; color: var(--head); font-weight: 600; }
.steps span { color: var(--muted); font-size: .97rem; }
.handwritten { margin-top: 28px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; max-width: 760px; }
.handwritten svg { width: 30px; height: 30px; color: var(--ember); }
@media (max-width: 860px) { .spot-grid, .rc-grid { grid-template-columns: 1fr; } .receipt-pic { max-width: 220px; } .steps { grid-template-columns: 1fr; } }

/* features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); }
.feature { display: grid; gap: 12px; align-content: start; }
.feature .shot { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #fbf7f1; aspect-ratio: 16 / 10; }
.feature .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.feature .shot.fit img { object-fit: contain; object-position: center; padding: 6%; }
.feature p { color: var(--muted); font-size: .98rem; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.also { margin-top: clamp(36px, 5vw, 56px); padding-top: 28px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 24px; }
.also ul { columns: 3 220px; column-gap: 28px; margin: 0; padding: 0; list-style: none; }
.also li { break-inside: avoid; padding: 0 0 12px; color: var(--muted); font-size: .97rem; }
.also li b { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .also { grid-template-columns: 1fr; } }

/* state rules */
.rules-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.states { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; padding: 0; list-style: none; }
.states li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .95rem; color: var(--head); }
.states-all { gap: 6px; }
.states-all li { padding: 3px 10px; font-size: .8rem; font-weight: 600; }
.fine { font-size: var(--step--1); color: var(--muted); max-width: 60ch; }
@media (max-width: 860px) { .rules-grid { grid-template-columns: 1fr; } }

/* privacy */
.hearth { background: var(--hearth); color: var(--hearth-ink); }
.hearth h2 { color: var(--hearth-ink); }
.hearth .eyebrow { color: #f0a27c; }
.hearth-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); }
.hearth-grid > div:first-child { display: grid; gap: 16px; align-content: start; }
.hearth-grid p { color: color-mix(in srgb, var(--hearth-ink) 78%, transparent); font-size: var(--step-1); }
.promises { display: grid; gap: 0; list-style: none; padding: 0; margin: 0; }
.promises li { padding: 16px 0; border-bottom: 1px solid color-mix(in srgb, var(--hearth-ink) 18%, transparent); display: grid; gap: 4px; }
.promises li:first-child { padding-top: 0; }
.promises b { font-family: var(--display); font-size: 1.15rem; font-weight: 600; }
.promises span { color: color-mix(in srgb, var(--hearth-ink) 72%, transparent); }
@media (max-width: 860px) { .hearth-grid { grid-template-columns: 1fr; } }

/* book */
.book-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.cover { width: min(300px, 100%); aspect-ratio: 6 / 9; justify-self: center; border-radius: 3px 8px 8px 3px; background: linear-gradient(90deg, #2f1a12 0 4%, #4a2a1c 4% 5%, #3d1f14 5%); color: #f6ead8; display: grid; grid-template-rows: auto 1fr auto; padding: 14% 12% 10% 16%; box-shadow: var(--shadow), inset -6px 0 12px rgba(0,0,0,.25); }
.cover small { font: 600 .7rem/1.3 var(--body); letter-spacing: .16em; text-transform: uppercase; color: #e9b48e; }
.cover strong { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 1rem + 2vw, 2.1rem); line-height: 1.1; align-self: center; }
.cover span { font: 500 .78rem/1.4 var(--body); color: #e3cdb5; border-top: 1px solid rgba(233,180,142,.5); padding-top: 10px; }
.book-copy { display: grid; gap: 16px; }
.book-copy ul { margin: 0; padding-left: 1.1em; color: var(--muted); display: grid; gap: 6px; }
.note-soon { display: inline-block; font-size: var(--step--1); font-weight: 600; color: var(--sage); }
@media (max-width: 760px) { .book-grid { grid-template-columns: 1fr; } }

/* pricing */
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.price { border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px; display: grid; gap: 16px; grid-template-rows: auto auto 1fr auto; background: var(--paper); }
.price.best { border: 2px solid var(--ember); box-shadow: var(--shadow); position: relative; }
.price.best::before { content: "Best value"; position: absolute; top: -13px; left: 24px; background: var(--ember); color: var(--ember-ink); font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.price .amt { font-family: var(--display); font-size: 2.6rem; font-weight: 700; color: var(--head); line-height: 1; font-variant-numeric: tabular-nums; }
.price .amt small { font: 500 .95rem var(--body); color: var(--muted); margin-left: 6px; }
.price ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; align-content: start; font-size: .97rem; }
.price li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; }
.price li::before { content: "✓"; color: var(--sage); font-weight: 700; }
.price .btn { width: 100%; }
.trial-line { margin-top: 22px; text-align: center; color: var(--muted); }
@media (max-width: 900px) { .prices { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } .price.best { order: -1; } }

/* faq */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--head); list-style: none; display: flex; justify-content: space-between; gap: 16px; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ember); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--muted); max-width: 65ch; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* footer */
footer { border-top: 1px solid var(--line); padding-block: 36px 48px; font-size: .92rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--muted); }
.receipt-pic .tag { top: auto; bottom: -14px; transform: translateX(-50%); }
/* The 1-minute tour video */
.tour-box { position: relative; aspect-ratio: 16 / 9; background: #3a2418; }
.tour-box video { display: block; width: 100%; height: 100%; object-fit: cover; }
.tour-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; padding-bottom: 9%; border: 0; background: linear-gradient(to top, rgba(40,24,16,.55), rgba(40,24,16,0) 55%); color: #fff; cursor: pointer; font: inherit; }
.tour-play[hidden] { display: none; }
.tour-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--ember, #c2552a); box-shadow: 0 8px 26px rgba(0,0,0,.35); position: relative; transition: transform .15s; }
.tour-icon::after { content: ""; position: absolute; left: 29px; top: 22px; border-left: 21px solid #fff; border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.tour-play:hover .tour-icon, .tour-play:focus-visible .tour-icon { transform: scale(1.07); }
.tour-play:focus-visible { outline: 3px solid var(--ember, #c2552a); outline-offset: -3px; }
.tour-label { font-weight: 600; font-size: 1.05rem; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.tour-wide { max-width: 980px; margin: 0 auto clamp(36px, 5vw, 64px); }
@media (max-width: 600px) { .tour-icon { width: 48px; height: 48px; } .tour-icon::after { left: 19px; top: 14px; border-left-width: 15px; border-top-width: 10px; border-bottom-width: 10px; } .tour-label { font-size: .9rem; } .tour-play { padding-bottom: 4%; gap: 6px; } }

.glance { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--ember); border-radius: 12px; padding: clamp(18px, 3vw, 26px); }
.glance h2 { font-size: var(--step-1); margin: 0 0 12px; }
.glance dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 24px; margin: 0; }
.glance dt { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ember); margin-bottom: 4px; }
.glance dd { margin: 0; }
.qa h3 { font-size: 1.1rem; margin: 18px 0 6px; }
.qa p { margin: 0; max-width: 75ch; }
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.compare { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .95rem; }
.compare th, .compare td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--band); font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; }
.compare tbody tr:hover { background: var(--band); }
.near { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 0; list-style: none; }

.tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 40px); align-items: start; }
.tool .panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: clamp(18px, 3vw, 26px); display: grid; gap: 14px; }
.tool label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.tool label span.hint { font-weight: 400; color: var(--muted); font-size: .88rem; }
.tool input, .tool select { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: inherit; width: 100%; box-sizing: border-box; }
.tool .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.result { display: grid; gap: 10px; }
.result .big { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3rem); color: var(--ember); line-height: 1; }
.result dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin: 0; }
.result dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.checks input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.stmt { background: var(--band); border-left: 4px solid var(--ember); padding: 12px 14px; border-radius: 6px; font-weight: 600; }
@media (max-width: 820px) { .tool { grid-template-columns: 1fr; } }
@media print { header.top, footer, .no-print, .cta { display: none !important; } .tool { grid-template-columns: 1fr; } }


.buy-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0 0 clamp(28px, 4vw, 44px); counter-reset: bstep; }
.buy-steps li { counter-increment: bstep; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 2px; }
.buy-steps li::before { content: counter(bstep); width: 28px; height: 28px; border-radius: 50%; background: var(--ember); color: var(--ember-ink); display: grid; place-items: center; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.buy-steps b { color: var(--head); }
.buy-steps span { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .buy-steps { grid-template-columns: 1fr 1fr; } }

.look-btn { margin-top: 4px; }
.look { position: fixed; inset: 0; z-index: 100; background: rgba(26, 18, 14, .97); display: none; grid-template-rows: auto 1fr auto; color: #f3e9df; }
.look.on { display: grid; }
.look-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; gap: 12px; }
.look-top b { font-family: var(--display); font-size: 1.05rem; }
.look-top small { opacity: .7; font-size: .85rem; }
@media (max-width: 600px) { .look-top small { display: none; } }
.look-top button, .look-nav button { min-width: 48px; min-height: 48px; border-radius: 10px; border: 1px solid rgba(243,233,223,.35); background: transparent; color: inherit; font: 600 1.1rem var(--body); cursor: pointer; }
.look-stage { display: grid; place-items: center; overflow: hidden; padding: 0 12px; }
.look-book { margin: 0 auto; }
.look-book .stf__item { background: #fff; }
.look-nav { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 12px 16px 18px; }
.look-nav span { min-width: 12ch; text-align: center; font-size: .95rem; opacity: .85; }

.join { padding: clamp(28px, 5vw, 48px) 0; }
.join-box { background: var(--band); border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 4vw, 36px); display: grid; gap: 18px 32px; grid-template-columns: 1.2fr 1fr; align-items: center; }
.join-box h2 { font-size: var(--step-2); margin: 0 0 6px; }
.join-box p { margin: 0; color: var(--muted); max-width: 52ch; }
.join-form { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 10px; }
.join-form input { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); min-width: 0; }
.join-box .join-done { color: var(--head); font-weight: 600; }
.join-form select { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); min-width: 0; }
.join-form-big { grid-template-columns: 1fr; }
.join-page { display: grid; gap: 28px; grid-template-columns: 1.5fr 1fr; align-items: start; }
.join-cards { display: grid; gap: 14px; margin: 14px 0 18px; }
.join-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.join-card h3 { font-size: var(--step-1); margin: 0 0 6px; }
.join-card p { margin: 0; color: var(--muted); }
.join-box-page { grid-template-columns: 1fr; position: sticky; top: 24px; }
@media (max-width: 860px) { .join-page { grid-template-columns: 1fr; } .join-box-page { position: static; order: -1; } }
.trial-box { background: var(--band); border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 4vw, 32px); display: grid; gap: 10px; max-width: 760px; }
.trial-box h2 { font-size: var(--step-2); margin: 0; }
.trial-box p { margin: 0; color: var(--muted); }
.trial-form { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 10px; margin-top: 6px; }
.trial-form input { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); min-width: 0; }
.trial-box .trial-skip { font-size: 0.95rem; }
.trial-box .trial-done { color: var(--head); font-weight: 600; }
@media (max-width: 760px) { .trial-form { grid-template-columns: 1fr; } }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: clamp(24px, 4vw, 36px); }
.about-stats div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: grid; gap: 4px; }
.about-stats b { font-family: 'Literata', Georgia, serif; font-size: 2.2rem; line-height: 1; color: var(--ember); }
.about-stats span { color: var(--muted); }
@media (max-width: 640px) { .about-stats { grid-template-columns: 1fr; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 760px) { .join-box { grid-template-columns: 1fr; } .join-form { grid-template-columns: 1fr; } }
.top .wrap { min-height: 112px; }
.brand img { width: 96px; height: 96px; }
.brand b { font-size: 1.35rem; }
@media (max-width: 440px) { .top .wrap { min-height: 84px; } .brand img { width: 66px; height: 66px; } .brand b { font-size: 1.05rem; } }
/* multi-page additions */
body { margin: 0; }
.page-head p.eyebrow { color: var(--ember); font-size: var(--step--1); }
.page-head p.crumb { font-size: var(--step--1); }
.prices.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; }
@media (max-width: 900px) { .prices.two-up { grid-template-columns: 1fr; } }
.contact-card a, .prose a { overflow-wrap: anywhere; }
.price { min-width: 0; }
.nav a[aria-current="page"] { color: var(--ember); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; min-height: 44px; min-width: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--head); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 22px; height: 22px; }
.menu nav { position: absolute; right: 0; top: calc(100% + 8px); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; display: grid; min-width: 220px; z-index: 40; }
.menu nav a { padding: 12px 14px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.menu nav a:hover { background: var(--band); }
@media (max-width: 1240px) { .menu { display: block; } .top .nav { display: none; } }
.nav a { white-space: nowrap; }
@media (max-width: 520px) { .top .btn-primary { display: none; } }

.page-head { padding-block: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.page-head .wrap { display: grid; gap: 14px; }
.page-head p { color: var(--muted); font-size: var(--step-1); max-width: 62ch; }
.crumb { font-size: var(--step--1); color: var(--muted); }
.crumb a { color: var(--muted); }
.prose { max-width: 72ch; display: grid; gap: 14px; }
.prose h2 { font-size: var(--step-2); margin-top: 18px; }
.prose h3 { margin-top: 8px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.prose p, .prose li { color: var(--ink); }
.prose .muted { color: var(--muted); }
.updated { font-size: var(--step--1); color: var(--muted); }

.picker { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.picker select { min-height: 48px; padding: 10px 40px 10px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: 500 1rem var(--body); min-width: min(320px, 100%); appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.picker label { font-weight: 600; color: var(--head); }
.state-links { columns: 4 180px; column-gap: 24px; list-style: none; padding: 0; margin: 28px 0 0; }
.state-links li { break-inside: avoid; padding: 5px 0; }
.state-links a { color: var(--ink); text-decoration: none; }
.state-links a:hover { color: var(--ember); text-decoration: underline; }

.route { border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 20px; background: var(--paper); }
.route + .route { margin-top: 24px; }
.route-head { display: grid; gap: 6px; }
.route-head .cite { font-size: var(--step--1); color: var(--muted); }
.kv { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); border-top: 1px solid var(--line); }
.kv > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv > div:nth-child(odd) { font-weight: 600; color: var(--head); padding-right: 16px; }
@media (max-width: 640px) { .kv { grid-template-columns: 1fr; } .kv > div:nth-child(odd) { border-bottom: 0; padding-bottom: 0; } }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.two h3 { font-size: 1.05rem; margin-bottom: 8px; }
.two ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; color: var(--ink); }
@media (max-width: 700px) { .two { grid-template-columns: 1fr; } }
.statement { border-left: 4px solid var(--ember); background: var(--band); padding: 14px 18px; border-radius: 0 10px 10px 0; font-family: var(--display); font-size: 1.08rem; color: var(--head); }
.notice { border: 1px solid var(--line); background: var(--band); border-radius: 12px; padding: 16px 18px; font-size: .95rem; color: var(--muted); }
.cta { background: var(--hearth); color: var(--hearth-ink); border-radius: 16px; padding: clamp(24px, 4vw, 40px); display: grid; gap: 14px; }
.cta h2 { color: var(--hearth-ink); font-size: var(--step-2); }
.cta p { color: color-mix(in srgb, var(--hearth-ink) 80%, transparent); max-width: 60ch; }
.cta .btn-quiet { color: var(--hearth-ink); border-color: color-mix(in srgb, var(--hearth-ink) 40%, transparent); }
.sources { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: .95rem; }
.sources a { word-break: break-word; }
.soon { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 22px; border-radius: 10px; border: 1.5px dashed var(--line); color: var(--muted); font-weight: 600; }
.book3d { width: min(300px, 82%); justify-self: center; perspective: 1200px; padding-left: 9%; }
.book3d-inner { position: relative; transform-style: preserve-3d; transform: rotateY(28deg); transition: transform .6s ease; }
.book3d:hover .book3d-inner { transform: rotateY(16deg); }
@media (prefers-reduced-motion: reduce) { .book3d-inner { transition: none; } }
.book3d .b-front { display: block; width: 100%; height: auto; border-radius: 0 4px 4px 0; box-shadow: inset 4px 0 8px rgba(0,0,0,.25), 18px 22px 40px rgba(42,26,19,.28); }
.book3d .b-spine { position: absolute; top: 0; left: -10.78%; width: 10.78%; height: 100%; transform-origin: right center; transform: rotateY(-90deg); filter: brightness(.82); }
.book-side { display: grid; gap: 28px; justify-items: center; min-width: 0; }
.book-side .toc { width: 100%; }
.toc { display: grid; gap: 10px; }
.toc h2 { font-size: var(--step-1) !important; }
.toc-facts { font-size: .95rem; }
.toc summary { padding: 12px 16px; }
.toc summary b { font-size: 1rem !important; }
.toc ol { padding: 0 16px 14px 38px; font-size: .95rem; }
.toc-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); }
.toc-facts b { color: var(--head); }
.toc details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.toc summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; min-height: 44px; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; color: var(--ember); font-size: 1.4rem; line-height: 1; }
.toc details[open] summary::after { content: "\2013"; }
.toc summary b { font-family: var(--display); font-size: 1.1rem; color: var(--head); font-weight: 600; }
.toc summary span { color: var(--muted); font-size: .92rem; margin-left: 10px; }
.toc ol { margin: 0; padding: 0 20px 18px 44px; display: grid; gap: 6px; }

.faq-group { margin-top: 36px; }
.faq-group:first-of-type { margin-top: 0; }
.faq-group h2 { font-size: var(--step-1); margin-bottom: 8px; }
.faq details p + p { margin-top: 8px; }
.pp-form { display: grid; gap: 8px; justify-items: start; margin: 0; }
.pp-form .btn { min-width: 220px; }
.pp-note { font-size: .85rem; color: var(--muted); }
.pp-buttons { display: grid; gap: 14px; width: 100%; max-width: 440px; }
.pp-buttons paypal-add-to-cart-button, .pp-buttons paypal-cart-button { display: block; width: 100%; min-width: 0; }
.book-copy > div { min-width: 0; }
.route, .price, .contact-card, .handwritten, .menu nav, .picker select, .faq details { background-color: var(--card); }
.faq details { padding-left: 16px; padding-right: 16px; }
.contact-card { border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: grid; gap: 6px; max-width: 520px; }

/* ---- Food safety course ---- */
.c-hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.c-hero h1 { font-size: var(--step-4); }
.c-hero .lede { max-width: 34ch; }
.c-buy { display: grid; gap: 10px; justify-items: start; }
.c-price { font-family: var(--display); font-size: 2.6rem; font-weight: 700; color: var(--head); line-height: 1; }
.c-price small { font: 500 .95rem var(--body); color: var(--muted); margin-left: 6px; }
@media (max-width: 900px) { .c-hero .wrap { grid-template-columns: 1fr; } }
.c-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.c-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; display: grid; gap: 6px; align-content: start; }
.c-card h3 { font-size: var(--step-1); }
.c-card p { color: var(--muted); }
@media (max-width: 860px) { .c-cols { grid-template-columns: 1fr; } }
.c-secs { display: grid; gap: 10px; }
.c-secs details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.c-secs summary { cursor: pointer; list-style: none; display: flex; gap: 14px; align-items: center; padding: 14px 18px; min-height: 48px; }
.c-secs summary::-webkit-details-marker { display: none; }
.c-secs summary::after { content: "+"; color: var(--ember); font-size: 1.4rem; margin-left: auto; }
.c-secs details[open] summary::after { content: "\2013"; }
.c-secs .num { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--ember); color: var(--ember-ink); display: grid; place-items: center; font-weight: 700; }
.c-secs summary b { font-family: var(--display); color: var(--head); font-size: 1.08rem; font-weight: 600; }
.c-secs summary span.t { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.c-secs ol { margin: 0; padding: 0 18px 16px 64px; display: grid; gap: 4px; color: var(--ink); }
.c-secs ol li span { color: var(--muted); font-size: .9rem; }
@media (max-width: 560px) { .c-secs summary span.t { display: none; } .c-secs ol { padding-left: 40px; } }
.ct-box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: clamp(18px, 3vw, 30px); display: grid; gap: 18px; }
.ct-state { display: grid; gap: 12px; }
.ct-state[hidden], .ct-empty[hidden] { display: none; }
.ct-state h3 { font-size: var(--step-2); }
.ct-route { border-left: 4px solid var(--line); padding: 4px 0 4px 14px; display: grid; gap: 4px; }
.ct-rname { font-weight: 700; color: var(--head); }
.ct-tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 9px; border-radius: 999px; margin-right: 4px; vertical-align: 1px; }
.ct-req { background: #f6dcd2; color: #8a2f12; } .ct-some { background: #f8e7c5; color: #6b4a07; } .ct-no { background: #dde9d9; color: #2f4d31; }
.ct-why { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 8px; }
.ct-why ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.c-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; counter-reset: cs; }
.c-steps li { counter-increment: cs; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 2px; }
.c-steps li::before { content: counter(cs); width: 28px; height: 28px; border-radius: 50%; background: var(--ember); color: var(--ember-ink); display: grid; place-items: center; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.c-steps b { color: var(--head); } .c-steps span { color: var(--muted); font-size: .93rem; }
@media (max-width: 860px) { .c-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .c-steps { grid-template-columns: 1fr; } }

/* animations */
.anim { margin: 0; display: grid; gap: 8px; }
.anim-stage { position: relative; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fffbf6; justify-self: center; width: 100%; }
.anim-wide .anim-stage { max-width: 760px; } .anim-square .anim-stage { max-width: 480px; } .anim-tall .anim-stage { max-width: 380px; }
.anim svg { display: block; width: 100%; height: auto; font-family: var(--body); }
.anim-btn { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid #d9c9b7; background: rgba(255,251,246,.92); color: #3d1f14; font: 600 .85rem var(--body); cursor: pointer; }
.anim-btn i { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; box-sizing: border-box; }
.anim-btn.is-paused i { border: 0; width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
@media (max-width: 560px) { .anim-btn { right: 6px; bottom: 6px; min-height: 30px; min-width: 30px; padding: 4px 9px; justify-content: center; } .anim-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }  /* phones: icon only, so it hides less of the picture */
.anim figcaption { font-size: .92rem; color: var(--muted); display: grid; gap: 4px; justify-self: center; width: 100%; }
.anim-wide figcaption { max-width: 760px; } .anim-square figcaption { max-width: 480px; } .anim-tall figcaption { max-width: 380px; }
.anim figcaption b { color: var(--head); }
.anim details summary { cursor: pointer; color: var(--ember); }
.anim details ol { margin: 6px 0 0; padding-left: 1.2em; display: grid; gap: 4px; }
/* lesson beats: the pictures change with the narration (anim-stage.js) */
.anim-stage svg.anim-layer { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .45s ease; }
.anim-stage svg.anim-layer.on { opacity: 1; }
.anim-stage svg.anim-layer[hidden] { display: none; }
.anim-stage.no-fade svg.anim-layer { transition: none; }
.anim-stage > svg:first-child.anim-off { opacity: 0; transition: opacity .45s ease; }
.anim-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; margin-top: -2px; }
.anim-dots[hidden] { display: none; }
.anim-dots button { width: 30px; height: 30px; padding: 0; border: 0; background: none; display: grid; place-items: center; cursor: pointer; border-radius: 50%; }
.anim-dots button i { width: 10px; height: 10px; border-radius: 5px; background: #d9c9b7; transition: width .3s, background .3s; }
.anim-dots button[aria-current="step"] i { width: 22px; background: var(--ember); }
.anim-dots button:disabled { cursor: default; }
.anim-dots button:disabled i { background: transparent; border: 1.5px dashed #c9b8a6; }
.anim-dots button:not(:disabled):hover i { background: #c9a98e; }
.anim-dots button[aria-current="step"]:hover i { background: var(--ember); }
.anim-dots button:focus-visible { outline: 2px solid var(--ember); outline-offset: 1px; }
.anim-beats li[aria-current="step"] { color: var(--ink); }
.anim-beats li[aria-current="step"] > b::before { content: "Now: "; color: var(--ember); }

/* course player */
.lx { padding-block: clamp(20px, 3vw, 36px) clamp(40px, 6vw, 72px); }
.lx-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.lx-side { position: sticky; top: 128px; max-height: calc(100vh - 150px); overflow: auto; }
.lx-toc { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.lx-toc > summary { cursor: pointer; list-style: none; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; color: var(--head); min-height: 48px; }
.lx-toc > summary::-webkit-details-marker { display: none; }
.lx-bar { height: 6px; border-radius: 3px; background: var(--band); margin: 0 16px 10px; overflow: hidden; }
.lx-bar i { display: block; height: 100%; width: 0; background: var(--sage); }
.lx-toc nav { padding: 0 8px 12px; display: grid; gap: 8px; }
.lx-sec-h { font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ember); padding: 6px 8px 0; }
.lx-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.lx-toc a { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; align-items: start; padding: 7px 8px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .93rem; line-height: 1.35; }
.lx-toc a:hover { background: var(--band); }
.lx-toc a[aria-current="page"] { background: var(--band); font-weight: 700; color: var(--head); }
.tick { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); margin-top: 1px; display: grid; place-items: center; }
.done > .tick { background: var(--sage); border-color: var(--sage); }
.done > .tick::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.locked { color: var(--muted) !important; }
.locked > .tick { border-style: dashed; }
.lx-main { min-width: 0; display: grid; gap: 22px; }
.lx-main > * { min-width: 0; }
.lx-content { min-width: 0; display: grid; gap: 22px; align-content: start; }
.lx-content > * { min-width: 0; }
.lx-crumb + h1 { margin-top: -14px; }
.lx-crumb { font-size: var(--step--1); color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.lx-main h1 { font-size: var(--step-3); }
.lx-text { display: grid; gap: 14px; max-width: 70ch; }
.lx-text ul, .lx-text ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.lx-keys { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--sage); border-radius: 12px; padding: 16px 20px; max-width: 70ch; }
.lx-keys h2, .lx-tip h2 { font-size: var(--step-1); margin-bottom: 8px; }
.lx-keys ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.lx-tip { background: var(--band); border-radius: 12px; padding: 16px 20px; max-width: 70ch; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; }
.lx-tip svg { width: 30px; height: 30px; color: var(--ember); }
.lx-tip h2 { margin-bottom: 4px; }
.lx-objs { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; max-width: 70ch; }
.lx-objs summary { cursor: pointer; font-weight: 600; color: var(--head); }
.lx-objs ul { margin: 8px 0 0; padding-left: 1.2em; display: grid; gap: 4px; }
.lx-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 20px; max-width: 70ch; }
.lx-lock { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: grid; gap: 12px; justify-items: start; }
.lx-lock[hidden], .lx-content[hidden] { display: none; }
.lx-audio { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; max-width: 70ch; }
.lx-audio[hidden] { display: none; }
.lx-audio .ap-play { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ember); color: var(--ember-ink); cursor: pointer; display: grid; place-items: center; flex: none; }
.lx-audio .ap-play i { width: 0; height: 0; border-left: 13px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.lx-audio .ap-play.on i { width: 12px; height: 14px; border: solid currentColor; border-width: 0 4px; margin: 0; }
.lx-audio .ap-label { display: grid; line-height: 1.25; min-width: 0; }
.lx-audio .ap-label b { color: var(--head); font-size: .95rem; }
.lx-audio .ap-label small { color: var(--muted); font-size: .8rem; }
.lx-audio .ap-track { flex: 1 1 160px; display: flex; align-items: center; gap: 8px; min-width: 140px; }
.lx-audio input[type=range] { flex: 1; accent-color: var(--ember); min-width: 0; height: 28px; }
.lx-audio .ap-time { font-variant-numeric: tabular-nums; font-size: .85rem; color: var(--muted); white-space: nowrap; }
.lx-audio select { font: 600 .9rem var(--body); padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); min-height: 36px; }
.lx-audio .ap-back { min-width: 44px; min-height: 36px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: 600 .85rem var(--body); cursor: pointer; flex: none; }
.lx-gate { display: grid; gap: 8px; background: var(--card); border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; max-width: 70ch; }
.lx-gate[hidden], .lx-gate-note[hidden], .lx-gate-time[hidden] { display: none; }
.lx-gate p { margin: 0; }
.lx-gate-row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.lx-gate-time, .lx-gate-note b { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--head); }
.lx-gate-fine { font-size: .85rem; color: var(--muted); }
.lx-gate-note { margin: 0; max-width: 70ch; color: var(--muted); font-size: .95rem; }
.lx-gate-note.ok { color: var(--sage); font-weight: 600; }
.lx-nav .btn.is-off { opacity: .5; cursor: not-allowed; }
.qz { display: grid; gap: 18px; max-width: 70ch; }
.qz-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: clamp(16px, 3vw, 26px); display: grid; gap: 14px; }
.qz-count { font-size: var(--step--1); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ember); }
.qz-q { font-family: var(--display); font-size: var(--step-1); color: var(--head); font-weight: 600; margin: 0; }
.qz-opts { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.qz-opt { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--paper); }
.qz-opt input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ember); }
.qz-opt:has(input:checked) { border-color: var(--ember); }
.qz-opt.right { border-color: var(--sage); background: color-mix(in srgb, var(--sage) 12%, var(--paper)); }
.qz-opt.wrong { border-color: #c0392b; background: color-mix(in srgb, #c0392b 10%, var(--paper)); }
.qz-fb { border-radius: 10px; padding: 12px 14px; background: var(--band); }
.qz-fb b { display: block; margin-bottom: 2px; }
.qz-fb.ok b { color: var(--sage); } .qz-fb.no b { color: #b03a2e; }
.qz-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.qz-dots { display: flex; flex-wrap: wrap; gap: 6px; }
.qz-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--band); border: 1px solid var(--line); }
.qz-dots i.ok { background: var(--sage); border-color: var(--sage); } .qz-dots i.no { background: #c0392b; border-color: #c0392b; } .qz-dots i.cur { outline: 2px solid var(--ember); outline-offset: 1px; }
.qz-result { text-align: left; }
.qz-score { font-family: var(--display); font-size: 3rem; font-weight: 700; line-height: 1; }
.qz-score.pass { color: var(--sage); } .qz-score.fail { color: #b03a2e; }
.ex-list { display: grid; gap: 16px; counter-reset: exq; }
.ex-bar { position: sticky; top: 118px; z-index: 5; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.ex-sec { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; margin: 0; }
.ex-sec dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.c-form { display: grid; gap: 14px; max-width: 520px; }
.c-form label { display: grid; gap: 6px; font-weight: 600; color: var(--head); }
.c-form label small { font-weight: 400; color: var(--muted); }
.c-form input { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); min-width: 0; }
.c-msg { border-radius: 12px; padding: 14px 16px; background: var(--band); }
.c-msg.err { background: color-mix(in srgb, #c0392b 12%, var(--card)); color: var(--ink); border: 1px solid #c0392b; }
.c-link { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.c-link input { flex: 1 1 280px; font: 600 .95rem var(--body); padding: 12px 14px; border: 1.5px solid var(--ember); border-radius: 10px; background: var(--card); color: var(--ink); min-width: 0; }
.c-ok { background: var(--card); border: 2px solid var(--sage); border-radius: 16px; padding: clamp(18px, 3vw, 28px); display: grid; gap: 14px; max-width: 720px; }
.c-ok[hidden], .c-form[hidden] { display: none; }

/* certificate */
.cert-wrap { overflow-x: auto; min-width: 0; }
.cert { width: 100%; max-width: 1000px; aspect-ratio: 11 / 8.5; margin: 0 auto; background: #fffdf8; color: #2c1f18; position: relative; box-shadow: var(--shadow); border-radius: 4px; font-family: "Public Sans", sans-serif; container-type: inline-size; }
.cert-in { position: absolute; inset: 2.4cqw; border: .45cqw solid #7A4E2D; outline: .15cqw solid #b9502a; outline-offset: -1.2cqw; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 3cqw 6cqw; gap: 1.1cqw; }
.cert img { width: 11cqw; height: 11cqw; }
.cert .c1 { font-family: "Literata", Georgia, serif; font-size: 5.2cqw; font-weight: 700; color: #3d1f14; line-height: 1.05; margin: 0; }
.cert .c2 { font-family: "Literata", Georgia, serif; font-size: 2.5cqw; color: #b9502a; font-weight: 600; margin: 0; }
.cert .c3 { font-size: 1.5cqw; color: #5f5148; letter-spacing: .12em; text-transform: uppercase; margin-top: 1cqw; }
.cert .c4 { font-family: "Literata", Georgia, serif; font-size: 4.4cqw; font-weight: 600; color: #2c1f18; border-bottom: .15cqw solid #d9c9b7; padding: 0 3cqw .6cqw; min-width: 50%; line-height: 1.2; }
.cert .c5 { font-size: 1.65cqw; color: #3d1f14; max-width: 70cqw; line-height: 1.5; }
.cert .c6 { display: flex; justify-content: space-between; gap: 3cqw; width: 100%; margin-top: 1.6cqw; font-size: 1.3cqw; color: #5f5148; text-align: left; line-height: 1.45; }
.cert .c6 b { color: #3d1f14; }
.cert .c7 { font-size: 1.05cqw; color: #7a6a5f; max-width: 78cqw; }
@media print {
  @page { size: letter landscape; margin: 0; }
  body.cert-page { background: #fff !important; }
  body.cert-page > *:not(main), body.cert-page .lx-side, body.cert-page .no-print, body.cert-page .join { display: none !important; }
  body.cert-page main, body.cert-page .lx, body.cert-page .wrap, body.cert-page .lx-grid, body.cert-page .lx-main { display: block !important; padding: 0 !important; margin: 0 !important; max-width: none !important; }
  body.cert-page .cert { width: 11in; height: 8.5in; max-width: none; aspect-ratio: auto; box-shadow: none; border-radius: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.cert-page .cert-wrap { overflow: visible; }
}
@media (max-width: 900px) {
  .lx-grid { grid-template-columns: 1fr; }
  .lx-side { position: static; max-height: none; }
  .ex-bar { top: 92px; }
}
@media (max-width: 440px) { .ex-bar { top: 86px; } }
