:root {
  color-scheme: light;
  --cream: #fffaf0;
  --paper: #fffdf8;
  --coffee: #4a2d24;
  --coffee-2: #704737;
  --gold: #d99b20;
  --gold-pale: #f6d98d;
  --teal: #176d68;
  --teal-pale: #d9efea;
  --ink: #2f241f;
  --muted: #6d5a50;
  --line: #d9c6aa;
  --error: #a8302d;
  --shadow: 0 18px 50px rgba(74, 45, 36, .14);
  font-family: ui-rounded, "Trebuchet MS", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--cream); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: radial-gradient(circle at 10% 15%, #f6d98d55 0 8%, transparent 8.2%), linear-gradient(135deg, #fffaf0, #f4e5cb); }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .22; background-image: linear-gradient(#70473712 1px, transparent 1px), linear-gradient(90deg, #70473712 1px, transparent 1px); background-size: 24px 24px; }
a { color: var(--coffee-2); text-underline-offset: .2em; }
button, input { font: inherit; }
button { cursor: pointer; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 10; padding: .75rem 1rem; background: var(--coffee); color: white; }
.skip-link:focus { top: 1rem; }
.site-header, footer { position: relative; z-index: 1; max-width: 1180px; margin: auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--coffee); font-weight: 900; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border: 2px solid var(--coffee); background: var(--gold-pale); box-shadow: 3px 3px 0 var(--coffee); }
nav { display: flex; gap: 1.25rem; }
nav a { font-weight: 700; }
main { position: relative; z-index: 1; min-height: calc(100vh - 160px); }
.shell { width: min(1100px, calc(100% - 2rem)); margin: 2.5rem auto; }
.panel { background: color-mix(in srgb, var(--paper) 94%, transparent); border: 2px solid var(--coffee); border-radius: 18px; box-shadow: 7px 7px 0 var(--gold-pale), var(--shadow); padding: clamp(1.25rem, 4vw, 3.5rem); }
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.eyebrow, .prototype-label { display: inline-flex; align-items: center; gap: .4rem; margin: 0 0 1rem; padding: .35rem .65rem; border-radius: 99px; background: var(--teal-pale); color: #0c5551; font-size: .82rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { color: var(--coffee); font-family: Georgia, serif; font-size: clamp(2.8rem, 8vw, 6.5rem); line-height: .9; letter-spacing: -.045em; }
h2 { color: var(--coffee); font-family: Georgia, serif; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.05; }
.tagline { color: var(--teal); font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 900; }
.support { max-width: 48rem; color: var(--muted); font-size: 1.1rem; line-height: 1.65; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 2px solid var(--coffee); border-radius: 9px; padding: .8rem 1.2rem; background: var(--gold); color: #25170f; box-shadow: 3px 3px 0 var(--coffee); font-weight: 900; text-decoration: none; }
.button:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--coffee); }
.button.secondary { background: var(--paper); }
.button.danger { background: #fff1ec; color: #7d211e; }
:focus-visible { outline: 4px solid #16847d; outline-offset: 4px; }
.hero-art { min-height: 420px; display: grid; place-items: center; position: relative; border: 2px dashed var(--line); border-radius: 50% 50% 44% 56%; background: linear-gradient(145deg, #f7d88a, #d8eee9); overflow: hidden; }
.hero-art img { width: min(90%, 430px); image-rendering: pixelated; mix-blend-mode: multiply; filter: saturate(.82) sepia(.12); }
.bubble { position: absolute; border: 2px solid var(--coffee); background: var(--paper); padding: .55rem .7rem; box-shadow: 3px 3px 0 var(--gold); font-weight: 900; }
.bubble.one { top: 12%; right: 7%; }.bubble.two { bottom: 12%; left: 5%; }
.feature-grid, .category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2rem; }
.feature, .category-card { border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem; background: #fffaf1; }
.feature strong, .category-card strong { display: block; color: var(--coffee); font-size: 1.05rem; margin-bottom: .35rem; }
.feature p, .category-card p { color: var(--muted); margin: 0; line-height: 1.5; }
.notice { margin: 1.5rem 0; padding: 1rem; border-left: 5px solid var(--teal); background: var(--teal-pale); line-height: 1.55; }
.check-list { display: grid; gap: .75rem; padding: 0; list-style: none; }
.check-list li::before { content: "✓"; color: var(--teal); font-weight: 900; margin-right: .65rem; }
.consent { margin: 1.4rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: 9px; }
.consent label { display: flex; gap: .8rem; align-items: flex-start; font-weight: 800; }
.consent input { width: 1.35rem; height: 1.35rem; accent-color: var(--teal); flex: 0 0 auto; }
.error { color: var(--error); font-weight: 800; margin: .7rem 0 0; }
.progress-wrap { margin-bottom: 1.25rem; }
.progress-meta { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .45rem; font-size: .88rem; font-weight: 800; color: var(--muted); }
.progress { height: 10px; border-radius: 99px; background: #eadcc7; overflow: hidden; border: 1px solid #b69a79; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--teal)); transition: width .3s ease; }
.question-card { max-width: 820px; margin-inline: auto; }
.question-card h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.08; letter-spacing: -.025em; }
.options { display: grid; gap: .8rem; margin: 1.5rem 0; border: 0; padding: 0; }
.option { width: 100%; min-height: 56px; display: flex; align-items: center; gap: 1rem; text-align: left; padding: .85rem 1rem; border: 2px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); }
.option:hover, .option.selected { border-color: var(--teal); background: var(--teal-pale); }
.key { display: grid; place-items: center; width: 2rem; height: 2rem; flex: 0 0 auto; border: 1px solid var(--coffee); border-radius: 5px; background: white; font-weight: 900; }
.hint { color: var(--muted); font-size: .9rem; }
.explanation { padding: 1rem; border-radius: 10px; background: #f8edcb; border: 1px solid #d8b750; line-height: 1.55; }
.break-icon { font-size: 4rem; margin-bottom: 1rem; }
.score-ring { display: grid; place-items: center; width: 190px; aspect-ratio: 1; border-radius: 50%; margin: 1rem auto 2rem; background: radial-gradient(circle, var(--paper) 58%, transparent 59%), conic-gradient(var(--teal) var(--score), #eadcc7 0); border: 2px solid var(--coffee); }
.score-ring strong { color: var(--coffee); font-size: 2.8rem; }
.score-ring span { display: block; text-align: center; color: var(--muted); }
.meter { height: 8px; margin: .8rem 0; background: #e7d8c1; border-radius: 9px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--teal); }
.prose { max-width: 760px; }
.prose h3 { margin-top: 2rem; color: var(--coffee); }
.prose p, .prose li { line-height: 1.7; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
footer { color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .site-header { align-items: flex-start; }.site-header nav { flex-direction: column; gap: .4rem; text-align: right; }
  .hero { grid-template-columns: 1fr; }.hero-art { min-height: 300px; grid-row: 1; }
  .feature-grid, .category-grid { grid-template-columns: repeat(2, 1fr); }
  .shell { margin-block: 1rem; }.panel { border-radius: 12px; }
  footer { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 430px) { .feature-grid, .category-grid { grid-template-columns: 1fr; } .actions { flex-direction: column; }.button { width: 100%; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; } .button:hover { transform: none; } }
