/* Static font instances (one file per weight) from the variable fonts: WebKit builds without variable-font support
 * otherwise draw Inter at its thinnest weight (QA, October 28 2026). */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400; font-display: swap; src: url(/brand/fonts/fraunces-400.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap; src: url(/brand/fonts/fraunces-600.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 600; font-display: swap; src: url(/brand/fonts/fraunces-italic-600.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url(/brand/fonts/inter-400.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url(/brand/fonts/inter-500.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url(/brand/fonts/inter-600.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url(/brand/fonts/inter-700.woff2) format('woff2'); }

/* Care Daily Learn. Warm paper, violet and lilac, one warm accent (apricot gold for stars). Large type for older eyes,
 * WCAG 2.2 AA: text contrast 4.5:1 or better, focus always visible, targets 48 px, nothing timed, motion reduced on
 * request, text resizes to 200%. */


:root {
  --paper: #fbf8f4;
  --paper-2: #f4eee6;
  --card: #ffffff;
  --ink: #2b2340;
  --ink-2: #554c6b;
  --violet: #5b3fb5;
  --violet-deep: #3e2a86;
  --lilac: #efe9fb;
  --lilac-2: #ddd0f7;
  --lilac-3: #b9a5ec;
  --gold: #e8a33d;
  --gold-ink: #8a4b0c;
  --good: #24704f;
  --good-bg: #e6f4ec;
  --bad: #a8323f;
  --bad-bg: #fbe9eb;
  --line-soft: #e7dfd3;
  --radius: 22px;
  --shadow: 0 1px 1px rgba(43, 35, 64, .05), 0 6px 18px rgba(62, 42, 134, .08), 0 18px 40px rgba(62, 42, 134, .06);
  --shadow-lift: 0 2px 2px rgba(43, 35, 64, .06), 0 10px 26px rgba(62, 42, 134, .14);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
[tabindex="-1"]:focus { outline: none; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.1875rem/1.6 var(--sans); /* 19px */
  background-image: radial-gradient(1200px 600px at 110% -10%, #f1e9ff 0%, transparent 60%), radial-gradient(900px 500px at -20% 110%, #fdf0e4 0%, transparent 55%);
  background-attachment: fixed;
  min-height: 100vh;
}
img, video, svg { max-width: 100%; }
a { color: var(--violet-deep); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
strong { font-weight: 650; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--violet-deep); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 50; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 8px; }
.noscript { padding: 24px; }

/* ---------------------------------------------------------------- bar */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  background: rgba(251, 248, 244, .88); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line-soft); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); min-height: 48px; }
.brand img { height: 30px; width: auto; }
.brand-sub { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--violet); padding-left: 8px; border-left: 1px solid var(--lilac-3); }
.bar-right { display: flex; align-items: center; gap: 8px; position: relative; }
.stars-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; min-height: 44px; border-radius: 999px; background: var(--lilac);
  color: var(--violet-deep); font-weight: 650; text-decoration: none; font-size: 1rem; }
.stars-chip svg { width: 22px; height: 22px; }
.icon-btn { width: 48px; height: 48px; border-radius: 14px; border: 0; background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { background: var(--lilac); }
.menu { position: absolute; right: 0; top: 56px; background: var(--card); border-radius: 18px; box-shadow: var(--shadow-lift); padding: 8px; min-width: 230px; display: grid; }
.menu a, .menu button { display: block; text-align: left; padding: 12px 14px; min-height: 48px; border-radius: 12px; color: var(--ink); text-decoration: none; font: inherit; background: none; border: 0; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--lilac); }

main { max-width: 860px; margin: 0 auto; padding: 20px 16px 96px; outline: none; }
main.wide { max-width: 1180px; }

/* ---------------------------------------------------------------- buttons, fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 24px; border-radius: 999px;
  border: 2px solid transparent; font: 600 1.0625rem/1.2 var(--sans); cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s; }
.btn.primary { background: var(--violet); color: #fff; box-shadow: 0 6px 16px rgba(91, 63, 181, .28); }
.btn.primary:hover { background: var(--violet-deep); transform: translateY(-1px); }
.btn.ghost { background: var(--card); color: var(--violet-deep); border-color: var(--lilac-2); }
.btn.ghost:hover { border-color: var(--violet); }
.btn.quiet-link { background: none; color: var(--violet-deep); text-decoration: underline; padding: 8px 10px; min-height: 48px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; }
.btn-row.end { justify-content: flex-end; }
.btn-row.split { justify-content: space-between; }
label { display: block; font-weight: 600; margin: 16px 0 6px; }
.hint { color: var(--ink-2); font-size: 1rem; margin: 4px 0 0; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--lilac-2); border-radius: 14px; padding: 12px 14px; min-height: 52px; }
input:focus, select:focus, textarea:focus { border-color: var(--violet); outline: none; box-shadow: 0 0 0 4px rgba(91, 63, 181, .18); }
textarea { min-height: 110px; resize: vertical; }
.err { background: var(--bad-bg); color: var(--bad); border-radius: 14px; padding: 12px 16px; margin: 14px 0 0; font-weight: 550; }
.ok-note { background: var(--good-bg); color: var(--good); border-radius: 14px; padding: 12px 16px; margin: 14px 0 0; font-weight: 550; }
.choices { display: grid; gap: 10px; margin: 8px 0; }
.choice { display: flex; gap: 12px; align-items: center; padding: 12px 16px; min-height: 56px; border: 2px solid var(--lilac-2); border-radius: 16px; background: #fff; cursor: pointer; font-weight: 500; }
.choice:hover { border-color: var(--lilac-3); }
.choice input { width: 22px; height: 22px; accent-color: var(--violet); flex: none; }
.choice:has(input:checked) { border-color: var(--violet); background: var(--lilac); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { padding: 10px 16px; min-height: 48px; border-radius: 999px; border: 2px solid var(--lilac-2); background: #fff; font: inherit; font-weight: 550; cursor: pointer; color: var(--ink); }
.pill[aria-pressed=true] { background: var(--violet); color: #fff; border-color: var(--violet); }

/* ---------------------------------------------------------------- cards and paper */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; position: relative; }
.paper { background: linear-gradient(180deg, #fff 0%, #fffdfa 100%); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 24px; position: relative; }
.paper::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .3 0 0 0 0 .5 0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E"); }
.kicker { font: 650 1rem/1.3 var(--sans); letter-spacing: .01em; color: var(--violet); margin: 0 0 8px; }
.lede { font-size: 1.25rem; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.center { text-align: center; }
.stack > * + * { margin-top: 18px; }
.grid2 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ---------------------------------------------------------------- welcome / sign in */
.hero { display: grid; gap: 28px; align-items: center; padding-top: 12px; }
@media (min-width: 820px) { .hero { grid-template-columns: 1.1fr .9fr; } }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.2rem); }
.hero h1 em { font-style: italic; color: var(--violet); }
.hero-art { display: grid; place-items: center; }
.hero-art .xman { width: min(320px, 70vw); }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.facts li { background: #fff; border-radius: 999px; padding: 8px 14px; font-size: 1rem; box-shadow: var(--shadow); }
.signin { max-width: 520px; margin: 28px auto 0; }
.tabs { display: flex; gap: 6px; background: var(--lilac); padding: 6px; border-radius: 999px; margin-bottom: 8px; }
.tabs button { flex: 1; min-height: 48px; border-radius: 999px; border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--violet-deep); cursor: pointer; }
.tabs button[aria-selected=true] { background: #fff; box-shadow: var(--shadow); }

/* ---------------------------------------------------------------- X man */
.xman { display: block; }
.xman:not(.done) .body { fill: var(--lilac-2); }

.xman .star { fill: #fff; stroke: var(--lilac-3); stroke-width: 6; transition: fill .4s ease, transform .5s cubic-bezier(.2, 1.4, .4, 1); transform-box: fill-box; transform-origin: center; }
.xman .star.on { fill: var(--violet); stroke: #fff; stroke-width: 8; }
.xman.done .star.on { fill: #fff; stroke: var(--violet-deep); stroke-width: 6; }
.xman .star.gold { fill: var(--gold); stroke: var(--gold-ink); stroke-width: 6; }
.xman .star.new { animation: pop 1s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes pop { 0% { transform: scale(.2) rotate(-40deg); } 60% { transform: scale(1.35) rotate(8deg); } 100% { transform: scale(1) rotate(0); } }

/* ---------------------------------------------------------------- dashboard */
.dash-head { display: grid; gap: 18px; align-items: center; grid-template-columns: 1fr; margin-bottom: 22px; }
@media (min-width: 720px) { .dash-head { grid-template-columns: 1fr 210px; } }
.dash-head .xman { width: 190px; margin: 0 auto; }
.streak { display: inline-flex; gap: 8px; align-items: center; background: #fff3e2; color: var(--gold-ink); border-radius: 999px; padding: 6px 14px; font-weight: 650; font-size: 1rem; }
.act { margin: 30px 0 10px; display: flex; align-items: center; gap: 14px; }
.act h2 { margin: 0; font-size: 1.45rem; }
.ring { width: 54px; height: 54px; flex: none; }
.ring circle { fill: none; stroke-width: 6; }
.ring .track { stroke: var(--lilac-2); }
.ring .fill { stroke: var(--violet); stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; transition: stroke-dashoffset .8s ease; }
.ring text { font: 700 14px var(--sans); fill: var(--violet-deep); }
.mod-list { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
.mod { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; background: var(--card); border-radius: 20px; box-shadow: var(--shadow);
  padding: 16px 18px; text-decoration: none; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease; min-height: 88px; }
.mod:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.mod .num { width: 52px; height: 52px; border-radius: 16px; background: var(--lilac); color: var(--violet-deep); display: grid; place-items: center; font: 700 1.25rem var(--serif); }
.mod.done .num { background: var(--violet); color: #fff; }
.mod h3 { margin: 0 0 2px; font-size: 1.15rem; }
.mod p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.mod .state { font-size: .95rem; font-weight: 650; color: var(--violet-deep); white-space: nowrap; }
.mod .state.passed { color: var(--good); }
.mod.locked { opacity: .78; }
.gold-card { margin-top: 30px; background: linear-gradient(135deg, #fff8ec 0%, #fff 60%); border: 2px solid #f3d7a8; }
.gold-card h2 { display: flex; align-items: center; gap: 10px; }
.enroll-banner { background: var(--violet-deep); color: #fff; border-radius: var(--radius); padding: 22px; margin-bottom: 22px; display: grid; gap: 10px; }
.enroll-banner h2 { color: #fff; margin: 0; }
.enroll-banner .btn.primary { background: #fff; color: var(--violet-deep); }

/* ---------------------------------------------------------------- player */
.player { display: grid; gap: 14px; }
.progress { display: flex; gap: 6px; align-items: center; }
.progress .seg { flex: 1; height: 8px; border-radius: 99px; background: var(--lilac-2); overflow: hidden; }
.progress .seg.done { background: var(--violet); }
.progress .seg.here { background: linear-gradient(90deg, var(--violet) 50%, var(--lilac-2) 50%); }
.pl-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #6d6584; font-size: .95rem; margin-bottom: -6px; }
.pl-head a { color: #6d6584; }
.pl-head a { min-height: 48px; display: inline-flex; align-items: center; }
.screen { animation: lift .45s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes lift { from { opacity: 0; transform: translateY(14px) rotate(-.4deg); } to { opacity: 1; transform: none; } }
.screen h2 { margin-bottom: 14px; }
.screen .body p { font-size: 1.1875rem; }
.media { margin: 18px 0; border-radius: 18px; overflow: hidden; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line-soft); }
.media img { display: block; width: 100%; height: auto; }
.media img.cutout { max-height: 320px; width: auto; margin: 20px auto; object-fit: contain; }
.media video { display: block; width: 100%; height: auto; background: #000; }
.tip { display: flex; gap: 12px; background: #fff7ea; border-radius: 16px; padding: 14px 16px; margin-top: 16px; color: #5a3d16; }
.tip-ico { flex: none; width: 28px; height: 28px; }
.nav-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; position: sticky; bottom: 0; padding: 14px 0 max(14px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, var(--paper) 30%); }
.feedback { border-radius: 16px; padding: 14px 16px; margin-top: 12px; font-size: 1.05rem; }
.feedback.right { background: var(--good-bg); color: #164a33; }
.feedback.wrong { background: var(--bad-bg); color: #6b1f28; }
.feedback strong { display: block; margin-bottom: 2px; }

/* cards screen */
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 8px; }
.icard { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 18px; border-top: 6px solid var(--lilac-2); }
.icard:nth-child(3n+2) { border-top-color: var(--lilac-3); }
.icard:nth-child(3n) { border-top-color: #f2cf96; }
.icard h3 { font-size: 1.15rem; margin-bottom: 6px; }
.icard p { font-size: 1.05rem; margin-bottom: 8px; }
.icard ul { margin: 6px 0 0; padding-left: 20px; font-size: 1rem; }
.icard .lbl { font: 650 .9rem var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--violet); margin-top: 8px; }
.icard img { display: block; max-height: 140px; margin: 0 auto 10px; }

/* reveal */
.reveal-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin: 12px 0; }
.reveal-grid button { min-height: 64px; padding: 10px 12px; border-radius: 16px; border: 2px solid var(--lilac-2); background: #fff; font: 600 1rem/1.25 var(--sans); color: var(--ink); cursor: pointer; text-align: left; }
.reveal-grid button[aria-expanded=true] { border-color: var(--violet); background: var(--lilac); }
.reveal-grid button.seen::after { content: ' \2713'; color: var(--good); }
.reveal-panel { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 18px; display: grid; gap: 14px; }
@media (min-width: 720px) { .reveal-panel { grid-template-columns: 280px 1fr; align-items: start; } }
.anim { width: 100%; aspect-ratio: 4 / 3; background: linear-gradient(180deg, #fbf7ff, #f3edff); border-radius: 16px; overflow: hidden; }
.anim svg { width: 100%; height: 100%; display: block; }
.dl { display: grid; gap: 8px; margin: 0; }
.dl dt { font: 650 .9rem var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--violet); }
.dl dd { margin: 0 0 6px; }

/* drag tasks */
.task-items { display: flex; flex-wrap: wrap; gap: 10px; min-height: 64px; padding: 12px; background: var(--paper-2); border-radius: 18px; margin: 12px 0; }
.token { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; min-height: 52px; border-radius: 14px; background: #fff; border: 2px solid var(--lilac-2);
  box-shadow: 0 2px 4px rgba(43, 35, 64, .06); font: 550 1rem/1.3 var(--sans); color: var(--ink); cursor: grab; touch-action: none; user-select: none; text-align: left; max-width: 100%; }
.token[aria-pressed=true] { border-color: var(--violet); background: var(--lilac); box-shadow: 0 0 0 4px rgba(91, 63, 181, .2); }
.token.dragging { opacity: .9; box-shadow: var(--shadow-lift); cursor: grabbing; z-index: 30; position: relative; }
.token.right { border-color: var(--good); background: var(--good-bg); }
.token.wrong { border-color: var(--bad); background: var(--bad-bg); }
.token img { width: 34px; height: 34px; object-fit: contain; }
.buckets { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.bucket { border: 2px dashed var(--lilac-3); border-radius: 18px; padding: 12px; min-height: 120px; background: rgba(255, 255, 255, .7); display: flex; flex-direction: column; gap: 8px; }
.bucket.over, .bucket.target { border-color: var(--violet); background: var(--lilac); border-style: solid; }
.bucket > .bucket-btn { all: unset; font: 650 1.05rem var(--sans); color: var(--violet-deep); min-height: 44px; display: flex; align-items: center; cursor: pointer; border-radius: 10px; padding: 0 6px; }
.bucket > .bucket-btn:focus-visible { outline: 3px solid var(--violet); }
.why-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.why-list li { background: #fff; border-radius: 14px; padding: 10px 14px; border-left: 6px solid var(--good); font-size: 1.02rem; }
.why-list li.wrong { border-left-color: var(--bad); }

/* order */
.order-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; counter-reset: step; }
.order-list li { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; background: #fff; border: 2px solid var(--lilac-2); border-radius: 16px; padding: 8px 10px; min-height: 60px; touch-action: none; }
.order-list li::before { counter-increment: step; content: counter(step); width: 36px; height: 36px; border-radius: 50%; background: var(--lilac); display: grid; place-items: center; font-weight: 700; color: var(--violet-deep); }
.order-list li.right { border-color: var(--good); background: var(--good-bg); }
.order-list li.wrong { border-color: var(--bad); background: var(--bad-bg); }
.order-list li.dragging { box-shadow: var(--shadow-lift); }
.order-list .moves { display: flex; gap: 4px; }
.order-list .moves button { width: 48px; height: 48px; border-radius: 12px; border: 2px solid var(--lilac-2); background: #fff; cursor: pointer; color: var(--violet-deep); }
.order-list .grip { cursor: grab; }

/* floor plan */
.plan-wrap { position: relative; background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 10px; }
.plan-wrap svg { display: block; width: 100%; height: auto; }
.plan-zone rect, .plan-zone path { transition: fill .2s; }
.plan-zone:focus-visible { outline: none; }
.plan-zone:focus-visible .zone-hit { stroke: var(--violet); stroke-width: 6; }
.plan-zone.target .zone-hit { fill: rgba(91, 63, 181, .14); stroke: var(--violet); stroke-dasharray: 10 6; stroke-width: 4; }
.plan-zone .zone-hit { fill: transparent; stroke: transparent; cursor: pointer; }
.plan-chip { font: 600 26px var(--sans); }

/* spot */
.spot-img { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); margin: 12px 0; }
.spot-img img { display: block; width: 100%; height: auto; }

/* quiz */
.quiz-q { font: 600 1.35rem/1.35 var(--serif); margin: 6px 0 16px; }
.answer { display: block; width: 100%; text-align: left; padding: 14px 18px; min-height: 60px; margin: 0 0 10px; border-radius: 16px; border: 2px solid var(--lilac-2);
  background: #fff; font: 550 1.0625rem/1.4 var(--sans); color: var(--ink); cursor: pointer; }
.answer:hover:not([disabled]) { border-color: var(--violet); }
.answer.right { border-color: var(--good); background: var(--good-bg); }
.answer.wrong { border-color: var(--bad); background: var(--bad-bg); }
.answer[disabled] { cursor: default; }
.score-big { font: 700 3.2rem/1 var(--serif); color: var(--violet); }

/* celebration */
.celebrate { text-align: center; }
.celebrate .xman { width: 220px; margin: 0 auto 10px; }
.badge-medal { display: inline-grid; place-items: center; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0%, var(--lilac) 45%, var(--lilac-2) 100%);
  box-shadow: inset 0 0 0 6px #fff, 0 10px 24px rgba(62, 42, 134, .22); margin: 8px auto; }
.badge-medal svg { width: 60px; height: 60px; color: var(--violet-deep); }
.rate { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 8px 0; }
.rate button { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--lilac-2); background: #fff; font: 700 1.1rem var(--sans); color: var(--violet-deep); cursor: pointer; }
.rate button[aria-pressed=true] { background: var(--violet); color: #fff; border-color: var(--violet); }
.nps { display: grid; grid-template-columns: repeat(11, minmax(36px, 1fr)); gap: 6px; }
.nps button { min-height: 48px; border-radius: 12px; border: 2px solid var(--lilac-2); background: #fff; font-weight: 700; color: var(--violet-deep); cursor: pointer; }
.nps button[aria-pressed=true] { background: var(--violet); color: #fff; }
@media (max-width: 520px) { .nps { grid-template-columns: repeat(6, 1fr); } }

/* badges */
.badges { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); list-style: none; padding: 0; }
.badges li { text-align: center; background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 16px 10px; }
.badges li.off { opacity: .45; filter: grayscale(1); }
.badges .badge-medal { width: 84px; height: 84px; }
.badges .badge-medal svg { width: 40px; height: 40px; }
.badges b { display: block; margin-top: 6px; }

/* certificate */
.certificate { background: #fff; border-radius: 24px; padding: 34px 26px; box-shadow: var(--shadow-lift); text-align: center; border: 10px solid var(--lilac);
  outline: 2px solid var(--lilac-3); outline-offset: -18px; }
.certificate .name { font: 600 2.2rem/1.2 var(--serif); font-style: italic; color: var(--violet-deep); margin: 10px 0; }
.certificate .title { font: 600 1.3rem var(--serif); }
.certificate .meta { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; color: var(--ink-2); margin-top: 16px; font-size: 1rem; }
.home-pick { display: grid; gap: 10px; }
.check-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.check-list li { display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 12px; padding: 10px 12px; }
.dot { width: 14px; height: 14px; border-radius: 50%; flex: none; background: var(--bad); }
.dot.on { background: var(--good); }

/* admin */
.tbl-wrap { overflow-x: auto; background: #fff; border-radius: 18px; box-shadow: var(--shadow); margin: 12px 0 24px; }
table { border-collapse: collapse; width: 100%; font-size: .98rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { font-weight: 650; color: var(--ink-2); background: #fcfaf7; position: sticky; top: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 12px 0 24px; }
.kpi { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 16px; }
.kpi b { display: block; font: 700 2rem var(--serif); color: var(--violet-deep); }
.kpi span { color: var(--ink-2); font-size: .95rem; }
.bar-cell { display: flex; align-items: center; gap: 8px; }
.bar-cell i { display: block; height: 10px; border-radius: 99px; background: var(--violet); min-width: 2px; }
code.code { font: 600 1.05rem ui-monospace, Consolas, monospace; background: var(--lilac); padding: 4px 8px; border-radius: 8px; letter-spacing: .04em; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 99px; background: var(--lilac); color: var(--violet-deep); font-size: .9rem; font-weight: 650; }
.tag.off { background: var(--bad-bg); color: var(--bad); }
.tag.test { background: #fff3e2; color: var(--gold-ink); }

/* verify */
.verify { max-width: 640px; margin: 40px auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .token, .bucket, .answer, .choice, .mod { border: 2px solid CanvasText; }
}
@media print {
  .bar, .nav-row, .btn-row { display: none !important; }
  body { background: #fff; }
}

/* protomap */
.proto-dot { cursor: pointer; }
.proto-dot circle { fill: #fff; stroke: var(--violet); stroke-width: 4; transition: fill .2s; }
.proto-dot.on circle, .proto-dot:hover circle { fill: var(--violet); }
.proto-dot:focus-visible { outline: none; }
.proto-dot:focus-visible circle { stroke: var(--gold-ink); stroke-width: 6; }
.reveal-grid button[aria-pressed=true] { border-color: var(--violet); background: var(--lilac); }
.proto-panel { margin-top: 12px; }

.nav-row .btn-row { margin-top: 0; }
.m0 { margin: 0; }

/* review round 1: checklists, try this, quieter skip, bigger targets, capped photos */
.steps { counter-reset: st; list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; background: var(--lilac); border-radius: 16px; padding: 12px 14px; }
.steps li::before { content: counter(st); width: 34px; height: 34px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; font-weight: 700; }
.steps li p { margin: 4px 0 0; font-size: 1.1rem; }
.try-this { margin-top: 18px; background: #fff3e2; border-radius: 16px; padding: 14px 16px; color: #4a3210; }
.try-this strong { display: block; color: var(--gold-ink); margin-bottom: 2px; }
.try-this p { margin: 0; }
.skip-row { text-align: center; margin: 4px 0 0; }
.linkish { background: none; border: 0; color: #6d6584; text-decoration: underline; font: 500 .95rem var(--sans); min-height: 44px; padding: 8px 12px; cursor: pointer; }
.screen h2 { font-size: clamp(1.6rem, 5.2vw, 2.1rem); }
.token { min-height: 56px; padding: 12px 16px; }
.buckets { margin-bottom: 8px; }
.bucket { min-height: 132px; }
.media img:not(.cutout) { max-height: 46vh; object-fit: contain; background: var(--paper-2); }

.plan-wrap.sticky { position: sticky; top: 64px; z-index: 6; }
@media (min-width: 760px) {
  .plan-task { display: grid; grid-template-columns: 1fr 240px; gap: 16px; align-items: start; }
  .plan-task .plan-wrap.sticky { position: static; }
  .plan-task .task-items { margin: 0; flex-direction: column; flex-wrap: nowrap; }
}
.task-items .token img { width: 28px; height: 28px; }

/* review round 2: bigger body text, tighter chrome, column heading */
.screen .body p, .screen .steps li p { font-size: 1.25rem; line-height: 1.6; }
main { padding-top: 12px; }
.bar { padding-top: 6px; padding-bottom: 6px; }
.col-head { font-weight: 650; color: var(--violet-deep); margin: 14px 0 6px; }
.alert-name { font-weight: 600; color: var(--violet-deep); }
.badge-medal.gold { background: radial-gradient(circle at 35% 30%, #fff 0%, #fff3e2 45%, #f3d7a8 100%); }
.invite + .invite { border-top: 1px solid var(--line-soft); padding-top: 12px; }

/* ================================================================ landing (signed out) */
main.landing-main { max-width: none; padding: 0; }
.land { background: #fff; color: var(--ink); }
.land-inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.land-nav { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; padding: 10px max(20px, calc((100vw - 1120px) / 2 + 24px));
  background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid rgba(43, 35, 64, .06); }
.btn.small { min-height: 44px; padding: 8px 18px; font-size: 1rem; }
.btn.big { min-height: 60px; padding: 16px 34px; font-size: 1.15rem; }
.eyebrow { font: 650 1.05rem/1.3 var(--sans); color: var(--violet); margin: 0 0 14px; letter-spacing: .01em; }
.land h2 { font: 600 clamp(2.1rem, 5.4vw, 3.6rem)/1.08 var(--serif); letter-spacing: -.02em; margin: 0 0 18px; }
.sec-lede { font-size: clamp(1.2rem, 2.2vw, 1.45rem); line-height: 1.55; color: var(--ink-2); max-width: 40ch; }
.land-sec { padding: clamp(72px, 12vw, 140px) 0; }
.land-sec:nth-of-type(even) { background: #fbf8f4; }
.land-hero { padding: clamp(48px, 9vw, 120px) 0 clamp(56px, 9vw, 110px); background: radial-gradient(900px 520px at 85% 20%, #efe6ff 0%, rgba(239, 230, 255, 0) 70%), #fff; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.25fr .9fr; } }
.land-hero h1 { font: 600 clamp(3rem, 8.6vw, 6.2rem)/1.0 var(--serif); letter-spacing: -.03em; margin: 0 0 22px; }
.land-hero h1 em { color: var(--violet); font-style: italic; }
.hero-lede { font-size: clamp(1.2rem, 2.3vw, 1.5rem); line-height: 1.5; color: var(--ink-2); max-width: 34ch; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.land-hero .hero-art { display: grid; place-items: center; }
.land-hero .hero-art .xman { width: min(400px, 78vw); filter: drop-shadow(0 30px 50px rgba(91, 63, 181, .22)); }
.sec-devices { text-align: center; }
.sec-devices .sec-lede { margin: 0 auto; }
.device-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 3vw, 40px); margin-top: clamp(36px, 6vw, 70px); }
@media (min-width: 760px) { .device-row { grid-template-columns: repeat(4, 1fr); } }
.device { margin: 0; display: grid; justify-items: center; gap: 14px; }
.device img { height: clamp(110px, 16vw, 180px); width: auto; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(43, 35, 64, .14)); }
.device figcaption { font-weight: 600; color: var(--ink-2); font-size: 1.05rem; }
.split { display: grid; gap: clamp(36px, 6vw, 72px); align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; } .reverse .split .split-copy { order: 2; } }
.phones { display: flex; gap: 18px; justify-content: center; }
.land-phone { margin: 0; width: min(260px, 44vw); border-radius: 34px; overflow: hidden; background: #111; padding: 8px; box-shadow: 0 30px 60px rgba(43, 35, 64, .22), 0 6px 14px rgba(43, 35, 64, .12); }
.land-phone img { display: block; width: 100%; height: auto; border-radius: 27px; }
.phones .land-phone:nth-child(2) { transform: translateY(40px); }
.phones.single .land-phone { width: min(300px, 70vw); }
.sec-how { text-align: center; }
.sec-how h2 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.how-steps { list-style: none; padding: 0; margin: clamp(36px, 6vw, 64px) 0 0; display: grid; gap: 22px; text-align: left; }
@media (min-width: 820px) { .how-steps { grid-template-columns: repeat(3, 1fr); } }
.how-steps li { background: #fff; border-radius: 26px; padding: 28px; box-shadow: var(--shadow); }
.how-steps h3 { font: 600 1.5rem var(--serif); margin: 14px 0 8px; }
.how-steps p { color: var(--ink-2); margin: 0; font-size: 1.1rem; }
.how-n { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--violet); color: #fff; font: 700 1.25rem var(--sans); }
.how-n.gold { background: var(--gold); color: #3d2405; }
.sec-photo { padding-top: 0; padding-bottom: 0; background: #fff !important; }
.sec-photo .land-inner { max-width: none; padding: 0; position: relative; }
.wide-photo { margin: 0; height: clamp(360px, 62vw, 680px); overflow: hidden; }
.wide-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; display: block; }
.photo-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(28px, 6vw, 72px) max(24px, calc((100vw - 1120px) / 2 + 24px));
  background: linear-gradient(180deg, rgba(20, 14, 38, 0) 0%, rgba(20, 14, 38, .72) 70%); color: #fff; }
.photo-copy h2 { color: #fff; }
.photo-copy .sec-lede { color: rgba(255, 255, 255, .92); }
.cert-card { background: #fff; border-radius: 26px; padding: 34px 28px; text-align: center; box-shadow: 0 30px 60px rgba(62, 42, 134, .16); border: 10px solid var(--lilac); outline: 2px solid var(--lilac-3); outline-offset: -18px; }
.cert-small { font: 650 .95rem var(--sans); color: var(--violet); margin: 14px 0 4px; }
.cert-name { font: italic 600 2.2rem var(--serif); color: var(--violet-deep); margin: 0; }
.cert-title { font: 600 1.15rem var(--serif); margin: 6px 0 10px; }
.cert-stars .xman { width: 120px; margin: 0 auto; }
.sec-who { text-align: center; }
.sec-who h2 { max-width: 22ch; margin-left: auto; margin-right: auto; }
.who-list { list-style: none; padding: 0; margin: 34px auto 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 820px; }
.who-list li { padding: 12px 22px; border-radius: 999px; background: var(--lilac); color: var(--violet-deep); font-weight: 600; font-size: 1.1rem; }
.join-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 880px) { .join-grid { grid-template-columns: 1fr 1fr; } }
.sec-join .signin { margin: 0; }
.land-foot { padding: 40px 0 56px; background: #fff; border-top: 1px solid var(--line-soft); }
.land-foot p { color: var(--ink-2); font-size: .98rem; margin: 12px 0 0; max-width: 60ch; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
.land-hero h1 { font-size: clamp(3rem, 7.4vw, 5.4rem); }
.land .signin h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); letter-spacing: -.01em; }
.land .signin { width: 100%; max-width: 520px; justify-self: end; }

/* landing, design round 1 */
.land-sec { padding: clamp(56px, 9vw, 112px) 0; }
.eyebrow { font-size: .95rem; color: #6a54c4; }
.hero-note { color: var(--ink-2); font-size: 1.05rem; margin: -14px 0 26px; }
.code-bar { margin: 26px 0 0; display: inline-block; background: var(--lilac); color: var(--violet-deep); border-radius: 14px; padding: 12px 16px; font-weight: 600; font-size: 1.02rem; }
@media (max-width: 879px) { .land-hero .hero-art .xman { width: min(240px, 60vw); } .land-hero .hero-art { order: -1; } .hero-cta .btn.big { width: 100%; } }
.center-lede { margin: 0 auto; }
.device { background: #fff; border-radius: 24px; padding: 26px 16px 18px; box-shadow: 0 14px 40px rgba(26, 7, 60, .07); }
.sec-devices .device-row { margin-top: clamp(28px, 5vw, 52px); }
.wide-photo img { object-position: 30% 60%; }
.photo-copy { top: 0; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(90deg, rgba(14, 8, 34, .82) 0%, rgba(14, 8, 34, .45) 45%, rgba(14, 8, 34, 0) 75%); }
@media (max-width: 760px) { .photo-copy { background: linear-gradient(180deg, rgba(14, 8, 34, 0) 20%, rgba(14, 8, 34, .85) 75%); } }
.photo-copy h2, .photo-copy .sec-lede { max-width: 26ch; }

/* landing, design round 2 */
.pill-eyebrow { display: inline-block; background: var(--lilac); color: var(--violet-deep); padding: 8px 14px; border-radius: 999px; font-size: 1rem; }
.land-hero h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); line-height: 1.04; margin-bottom: 14px; }
.hero-tag { font: 600 clamp(1.5rem, 3vw, 2.1rem)/1.2 var(--serif); margin: 0 0 20px; color: var(--ink); }
.hero-tag em { color: var(--violet); }
.land-phone { width: min(290px, 44vw); }
.phones.single .land-phone { width: min(320px, 72vw); }
.cert-card { max-width: 460px; justify-self: center; width: 100%; }
.sec-join { background: linear-gradient(180deg, #f3edff 0%, #fbf8ff 100%) !important; }
.sec-join h2 { font-size: clamp(2.4rem, 6vw, 4rem); }
.land .signin { box-shadow: 0 30px 70px rgba(62, 42, 134, .16); }

/* landing, design round 3 */
.land .signin > h2 { display: none; }
@media (max-width: 879px) { .land-hero { padding-top: 32px; } .land-hero .hero-art .xman { width: min(200px, 52vw); } }
