/* Landing page: components shared by both designs. Each design file (landing.css, landing-b.css) sets the --l-*
   variables and the page layout; this file only draws the pieces. */

body.landing {
  background: var(--l-bg); background-image: none; color: var(--l-ink);
  font-size: 17px; line-height: 1.55;
}
body.landing main { z-index: auto; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- nav ---------- */
.lnav { position: sticky; top: 0; z-index: 30; background: var(--l-nav-bg); color: var(--l-nav-ink); }
.lnav-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1200px; margin: 0 auto; padding: 14px 20px; }
.logo { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font: 700 17px/1 var(--sans); letter-spacing: -.01em; }
.logo-mark { width: 30px; height: 30px; flex: none; }
.lm-bg { fill: var(--l-logo-bg); }
.lm-fg { fill: var(--l-logo-fg); }
.lm-line { stroke: var(--l-logo-fg); }
.lnav-links { display: flex; gap: 8px; align-items: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px;
  padding: 9px 16px; border-radius: var(--l-btn-r); border: 1.5px solid transparent;
  font: 600 15px/1.2 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, background-color .12s ease, box-shadow .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.solid { background: var(--l-btn-bg); color: var(--l-btn-ink); }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.lnav .btn.solid { background: var(--l-nav-btn-bg, var(--l-btn-bg)); color: var(--l-nav-btn-ink, var(--l-btn-ink)); }
.btn.big { min-height: 52px; padding: 14px 26px; font-size: 17px; }
.btn.pref { box-shadow: 0 0 0 3px var(--l-hi); }
@media (max-width: 420px) {
  .lnav-in { padding: 12px 16px; }
  .logo span { font-size: 14.5px; }
  .lnav .btn { padding: 8px 11px; font-size: 13.5px; min-height: 36px; }
}
@media (max-width: 400px) { .logo span { display: none; } }

.land-banner { max-width: 1160px; margin: 16px auto 0; width: calc(100% - 32px); }

/* ---------- hero ---------- */
.hero h1 { font-family: var(--l-display); margin: 0; text-wrap: balance; overflow-wrap: normal; }
.hero .lede { max-width: 34ch; margin: 0; text-wrap: pretty; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.kicker { margin: 0; font: 600 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; }

/* ---------- demo ---------- */
.demo {
  position: relative; width: 100%; max-width: 440px; overflow: hidden;
  background: var(--l-demo-bg); color: var(--l-demo-ink); border: 1px solid var(--l-demo-line);
  border-radius: var(--l-demo-r); box-shadow: var(--l-demo-shadow); text-align: left;
  font: 15px/1.5 var(--sans);
}
.d-chrome { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--l-demo-line); font: 500 11.5px/1 var(--mono); color: var(--l-demo-ink2); }
.d-dots { display: inline-flex; gap: 5px; }
.d-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--l-demo-line); }
.d-play { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; letter-spacing: .08em; text-transform: uppercase; }
.d-play::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rec); opacity: .35; }
.demo.run .d-play::before { opacity: 1; animation: d-blink 1.2s steps(2, jump-none) infinite; }
.d-body { padding: 20px 22px 18px; }
.d-from { margin: 0 0 6px; font: 600 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--l-demo-ink2); }
.d-q { margin: 0 0 16px; font: 600 25px/1.15 var(--serif); letter-spacing: -.015em; }
.d-rec { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--l-demo-line); border-radius: var(--l-demo-inner-r); transition: opacity .3s; }
.d-mic { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--rec); }
.d-mic::after { content: ""; position: absolute; inset: 10px; border-radius: 2px; background: #fff; }
.d-wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 30px; overflow: hidden; }
.d-wave i { flex: 1; max-width: 4px; height: 100%; border-radius: 2px; background: var(--l-demo-wave); transform: scaleY(.14); transform-origin: center; }
.d-time { flex: none; font: 500 13px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--l-demo-ink2); }
.d-tx { margin: 14px 0 0; min-height: 6.2em; font-size: 15px; line-height: 1.55; color: var(--l-demo-ink); }
.d-tx .w { opacity: 0; transition: opacity .25s ease; }
.d-tx .w.on { opacity: 1; }
.d-result { position: relative; height: 34px; margin-top: 8px; border-top: 1px solid var(--l-demo-line); padding-top: 12px; font-size: 14px; }
.d-result > span { position: absolute; left: 0; top: 12px; display: inline-flex; align-items: center; gap: 8px; opacity: 0; transition: opacity .25s ease; }
.d-result b { font-weight: 700; }
.d-result .lv { width: 14px; height: 14px; }
.d-spin { width: 13px; height: 13px; border: 2px solid var(--l-demo-line); border-top-color: var(--l-demo-ink); border-radius: 50%; animation: d-spin .7s linear infinite; }
.demo[data-stage=check] .d-checking, .demo[data-stage=done] .d-done { opacity: 1; }
.demo[data-stage=ask] .d-rec { opacity: .45; }
.demo[data-stage=rec] .d-mic { box-shadow: 0 0 0 0 color-mix(in srgb, var(--rec) 45%, transparent); animation: d-ring 1.3s ease-out infinite; }
.demo[data-stage=rec] .d-wave i { animation: d-bar .9s ease-in-out infinite alternate; }
.d-wave .b0 { animation-delay: -.1s !important; } .d-wave .b1 { animation-delay: -.5s !important; }
.d-wave .b2 { animation-delay: -.25s !important; } .d-wave .b3 { animation-delay: -.7s !important; }
.d-wave .b4 { animation-delay: -.35s !important; } .d-wave .b5 { animation-delay: -.8s !important; }
.d-wave .b6 { animation-delay: -.05s !important; }
.d-progress { height: 3px; background: color-mix(in srgb, var(--l-demo-line) 60%, transparent); }
.d-progress i { display: block; height: 100%; width: 100%; background: var(--l-demo-wave); transform-origin: left; transform: scaleX(1); }
.demo.run .d-progress i { animation: d-prog 11s linear both; }
@keyframes d-bar { 0% { transform: scaleY(.15); } 50% { transform: scaleY(.85); } 100% { transform: scaleY(.35); } }
@keyframes d-ring { to { box-shadow: 0 0 0 10px transparent; } }
@keyframes d-spin { to { transform: rotate(360deg); } }
@keyframes d-blink { 50% { opacity: .2; } }
@keyframes d-prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .demo *, .demo *::before, .demo *::after { animation: none !important; }
  .d-wave i { transform: scaleY(.5); }
}

/* ---------- section art ---------- */
.s h2 { font-family: var(--l-display); margin: 0 0 14px; text-wrap: balance; overflow-wrap: normal; }
.s-copy p { margin: 0 0 12px; max-width: 46ch; text-wrap: pretty; }
.s-copy a { color: inherit; }
.s-num { margin: 0 0 18px; }
.s-art { min-width: 0; }

.card-ish, .ticket, .step, .subj, .mgrid-wrap, .grid-fig, .locks li, .assign {
  background: var(--l-card); color: var(--l-card-ink); border: 1px solid var(--l-card-line); border-radius: var(--l-r);
}

/* 01 ticket */
.ticket { position: relative; max-width: 420px; padding: 22px 26px 18px; }
.t-head { margin: 0 0 8px; padding-right: 90px; font: 600 12px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--l-card-ink2); min-height: 44px; }
.t-row, .t-foot { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1.5px dashed var(--l-card-line); }
.t-row span, .t-foot span { font: 600 12px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--l-card-ink2); }
.t-row b { font: 600 40px/1 var(--serif); letter-spacing: -.03em; }
.t-foot { border-bottom: 0; padding-bottom: 0; }
.t-foot b { font: 700 15px/1 var(--sans); }
.stamp { position: absolute; right: -26px; top: -30px; width: 116px; height: 116px; transform: rotate(-14deg); stroke: var(--l-stamp); color: var(--l-stamp); }
.stamp path { stroke: var(--l-stamp); }
.stamp-t { font: 700 9.6px var(--mono); letter-spacing: .16em; fill: var(--l-stamp); }
@media (max-width: 520px) { .stamp { right: -6px; top: -44px; width: 96px; height: 96px; } }

/* 02 steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.step { padding: 16px 18px; }
.step-n { display: block; margin-bottom: 6px; font: 600 11.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--l-card-ink2); }
.step-q { margin: 0; font: 600 21px/1.25 var(--serif); }
.step-t { margin: 8px 0 0; font-size: 15px; color: var(--l-card-ink2); }
.mini-wave { display: flex; align-items: center; gap: 3px; height: 22px; }
.mini-wave i { width: 3px; border-radius: 2px; background: var(--l-hi-strong); height: 40%; }
.mini-wave i:nth-child(3n) { height: 85%; } .mini-wave i:nth-child(4n+1) { height: 60%; } .mini-wave i:nth-child(5n+2) { height: 100%; } .mini-wave i:nth-child(7n) { height: 25%; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15.5px; font-weight: 600; }
.ticks li { display: flex; align-items: center; gap: 10px; }
.ticks li::before { content: ""; flex: none; width: 19px; height: 19px; border-radius: 50%; background: var(--good) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3l2.2 2.2 4.8-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* 03 subjects */
.subjects { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.subj { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 16px 18px; align-items: start; }
.subj svg { grid-row: span 2; width: 40px; height: 40px; stroke: var(--l-hi-strong); }
.subj svg path, .subj svg rect { stroke: var(--l-hi-strong); }
.subj b { font: 700 16px/1.3 var(--sans); }
.subj span { font: italic 17px/1.35 var(--serif); color: var(--l-card-ink2); }

/* 04 progress grid */
.grid-fig { margin: 0; padding: 18px 20px 16px; max-width: 460px; }
.mgrid { width: 100%; border-collapse: collapse; font-size: 14px; }
.mgrid th { font-weight: 600; text-align: left; padding: 6px 4px; }
.mgrid thead th { font: 600 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--l-card-ink2); text-align: center; }
.mgrid td { text-align: center; padding: 9px 4px; border-top: 1px solid var(--l-card-line); }
.mgrid tbody th { border-top: 1px solid var(--l-card-line); }
.mgrid .lv { width: 15px; height: 15px; }
.mgrid .lv-unclear::before, .mgrid .lv-unclear::after { height: 17px; top: -1px; width: 3px; margin-left: -1.5px; }
.mgrid .lv-none { border-width: 2px; }
.mgrid td:nth-child(4) { background: color-mix(in srgb, var(--bad) 9%, transparent); }
.support { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14.5px; }
.support .lv { width: 12px; height: 12px; }

/* 05 privacy */
.locks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.locks li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; font-size: 18px; }
.locks svg { width: 32px; height: 32px; flex: none; }
.locks svg * { stroke: var(--l-hi-strong); }

/* 06 assignment card */
.assign { max-width: 440px; padding: 20px 22px; }
.a-top { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 600 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--l-card-ink2); }
.a-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--l-hi-strong); }
.a-title { margin: 0; font: 600 22px/1.25 var(--serif); }
.a-body { margin: 6px 0 14px; font-size: 15px; color: var(--l-card-ink2); }
.a-attach { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--l-card-line); border-radius: calc(var(--l-r) * .6); font-size: 14.5px; line-height: 1.35; }
.a-attach svg { width: 36px; height: 36px; flex: none; }

/* ---------- closer, dev, footer ---------- */
.closer { text-align: center; }
.closer h2 { font-family: var(--l-display); margin: 0 0 22px; text-wrap: balance; }
body.landing .dev { max-width: 680px; margin: 0 auto 40px; width: calc(100% - 32px); }
.land-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; padding: 22px 20px 40px; font-size: 14px; color: var(--l-ink2); }
.land-foot a { color: inherit; }

/* ---------- Get started dialog ---------- */
dialog.start {
  width: min(900px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; overflow: auto;
  background: var(--l-dlg-bg); color: var(--l-ink); border-radius: var(--l-dlg-r); box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
dialog.start::backdrop { background: rgba(12, 16, 14, .58); backdrop-filter: blur(3px); }
dialog.start[open] { animation: dlg-in .22s ease-out both; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }
@media (prefers-reduced-motion: reduce) { dialog.start[open] { animation: none; } }
.start-in { display: grid; grid-template-columns: 1fr 1.05fr; min-height: 440px; }
.start-copy { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 48px 40px; }
.start-copy h2 { margin: 0; font-family: var(--l-display); text-wrap: balance; }
.start-art { display: grid; place-items: center; padding: 36px 32px; background: var(--l-dlg-art); }
.x {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: color-mix(in srgb, var(--l-ink) 8%, transparent); color: var(--l-ink); font: 400 24px/1 var(--sans); cursor: pointer;
}
.x:hover { background: color-mix(in srgb, var(--l-ink) 14%, transparent); }
.gbtn.btn.solid { align-self: flex-start; background: #fff; color: #1f1f1f; border: 1px solid #747775; font-weight: 600; }
.gbtn svg { width: 20px; height: 20px; }
.fine { margin: 0; font-size: 13.5px; color: var(--l-ink2); max-width: 36ch; }
.fine a { color: inherit; }
@media (max-width: 720px) {
  .start-in { grid-template-columns: 1fr; min-height: 0; }
  .start-copy { padding: 44px 22px 24px; gap: 18px; }
  .gbtn.btn.solid { align-self: stretch; }
  .start-art { padding: 20px 16px 22px; }
}

/* ---------- design switch (dev servers only) ---------- */
.look-toggle {
  position: fixed; left: 12px; bottom: 12px; z-index: 40; display: flex; align-items: center; gap: 4px;
  padding: 5px; border-radius: 999px; background: #1b1915; color: #f1ece4; font: 600 12px/1 var(--mono); box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.look-toggle span { padding: 0 6px 0 8px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.look-toggle a { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: inherit; text-decoration: none; }
.look-toggle a[aria-current] { background: #f1ece4; color: #1b1915; }

/* undo the app's small-caps section heading for the landing page */
:where(body.landing) h2 { display: block; font-variant-caps: normal; letter-spacing: normal; color: inherit; }
:where(body.landing) h2::after { content: none; }
