/* Clueful web — design tokens mirror the app (docs/DESIGN.md) and Coco's sticker art:
   thick ink outline, flat fills, one hard offset shadow. Boldness is spent on the hero demo only. */
:root {
  --ink: #1d2748;          /* Coco's outline */
  --teal: #0e6b73;         /* icon background */
  --teal-deep: #0a4f57;
  --coral: #ff6b55;        /* Coco's body */
  --coral-soft: #ffe1da;
  --butter: #ffe9a8;       /* Coco's beak */
  --paper: #eef7f5;        /* page */
  --white: #ffffff;
  --green: #1f9d57;
  --orange: #e8890c;
  --muted: #4b5675;
  --radius-sticker: 28px;
  --stroke: 2.5px;
  --lift: 0 5px 0 var(--ink);
  --font-display: "Bricolage Grotesque", "Pretendard Variable", system-ui, sans-serif;
  --font-body: "Pretendard Variable", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
:lang(ko) { --font-display: "Pretendard Variable", system-ui, sans-serif; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal-deep); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--coral); outline-offset: 3px;
}
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 24px/1 var(--font-display); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.langs { display: flex; gap: 6px; }
.langs a { padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--muted); }
.langs a[aria-current="true"] { background: var(--ink); color: var(--white); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 40px 0 72px; }
.hero h1 {
  font: 800 clamp(44px, 7vw, 84px)/0.98 var(--font-display); letter-spacing: -0.035em; margin: 0 0 22px;
  text-wrap: balance;
}
:lang(ko) .hero h1 { font-weight: 800; letter-spacing: -0.04em; line-height: 1.12; font-size: clamp(38px, 5.6vw, 66px); word-break: keep-all; }
.lede { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 34ch; margin: 0 0 28px; }
:lang(ko) .lede, :lang(ko) p { word-break: keep-all; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: var(--white); font-weight: 700; font-size: 16px;
}
.badge svg { width: 18px; height: 18px; }

/* The one bold thing: the sticker demo */
.demo {
  position: relative; background: var(--white); border: var(--stroke) solid var(--ink);
  border-radius: var(--radius-sticker); box-shadow: var(--lift); padding: 26px;
}
.demo .secret { text-align: center; padding-bottom: 18px; border-bottom: 2px dashed #d6e3e1; }
.demo .eyebrow { font-size: 13px; font-weight: 700; color: var(--muted); }
.demo .word { font: 800 44px/1.1 var(--font-display); letter-spacing: -0.02em; margin: 4px 0 2px; }
.demo .gloss { font-size: 14px; color: var(--muted); }
.taboo { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.taboo span { background: var(--coral-soft); color: #b3261e; font-weight: 700; font-size: 14px; padding: 5px 11px; border-radius: 999px; }
.taboo-label { font-size: 12px; font-weight: 700; color: #b3261e; margin-top: 12px; }
.listen { display: grid; grid-template-columns: 104px 1fr; gap: 16px; align-items: center; margin-top: 20px; }
.coco { width: 104px; height: 104px; position: relative; }
.coco img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 120ms ease; }
.coco img.on { opacity: 1; }
.coco.hop { animation: hop 620ms cubic-bezier(.3,1.6,.5,1); }
@keyframes hop { 0% { transform: scale(1,1); } 15% { transform: scale(1.12,.84) translateY(0); } 45% { transform: scale(.94,1.1) translateY(-22px); } 75% { transform: scale(1.04,.96) translateY(0); } 100% { transform: none; } }
.meter-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 700; font-size: 19px; }
.meter-head .pct { font-variant-numeric: tabular-nums; }
.bar { height: 14px; border-radius: 999px; background: #e3eceb; margin-top: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 3%; border-radius: inherit; background: var(--muted); transition: width 600ms cubic-bezier(.2,.9,.3,1.1), background-color 300ms; }
.clue {
  margin-top: 20px; min-height: 58px; padding: 15px 18px; border-radius: 18px;
  background: var(--paper); border: 2px solid #cfe1de; font-size: 19px;
}
.clue .caret { display: inline-block; width: 2px; height: 1.1em; background: var(--teal); vertical-align: -3px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.demo-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.demo-foot button {
  font: 700 14px/1 var(--font-body); color: var(--ink); background: var(--butter); border: 2px solid var(--ink);
  border-radius: 999px; padding: 9px 14px; cursor: pointer; box-shadow: 0 3px 0 var(--ink); white-space: nowrap; flex: none;
}
.demo-foot button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.spark { position: absolute; width: 10px; height: 10px; border-radius: 3px; pointer-events: none; }

/* Sections: quiet on purpose */
section { padding: 64px 0; }
h2 { font: 800 clamp(30px, 4vw, 44px)/1.1 var(--font-display); letter-spacing: -0.025em; margin: 0 0 16px; text-wrap: balance; }
:lang(ko) h2 { word-break: keep-all; letter-spacing: -0.035em; }
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li { border-top: var(--stroke) solid var(--ink); padding-top: 18px; }
.steps .n { font: 800 15px/1 var(--font-display); color: var(--coral); }
.steps h3 { font-size: 21px; margin: 10px 0 6px; }
.steps p { margin: 0; color: var(--muted); }
.band { background: var(--teal); color: var(--white); }
.band .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.band p { color: #d5ecea; font-size: 18px; margin: 0; }
.band h2 { color: var(--white); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.pair p { color: var(--muted); font-size: 18px; margin: 0; }

footer { padding: 40px 0 56px; color: var(--muted); font-size: 15px; }
footer nav { display: flex; gap: 20px; margin-bottom: 10px; }

/* Plain pages (privacy, support, challenge) */
.page { max-width: 680px; margin: 0 auto; padding: 24px 0 64px; }
.page h1 { font: 800 clamp(34px, 5vw, 52px)/1.08 var(--font-display); letter-spacing: -0.03em; margin: 8px 0 18px; text-wrap: balance; }
:lang(ko) .page h1 { word-break: keep-all; }
.page h2 { font-size: 24px; margin: 36px 0 8px; }
.page p, .page li { color: var(--muted); }
.card { background: var(--white); border: var(--stroke) solid var(--ink); border-radius: var(--radius-sticker); box-shadow: var(--lift); padding: 28px; }
.challenge .coco-big { width: 150px; height: 150px; display: block; margin: 0 auto 10px; }
.challenge .chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 16px 0 22px; }
.challenge .chips span { background: var(--paper); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 14px; }
.actions { display: grid; gap: 12px; }
.btn {
  display: block; text-align: center; font: 700 18px/1 var(--font-body); padding: 17px 20px; border-radius: 999px;
  border: 2px solid var(--ink); text-decoration: none; cursor: pointer;
}
.btn.primary { background: var(--coral); color: var(--white); box-shadow: var(--lift); }
.btn.primary:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.btn.quiet { background: var(--white); color: var(--ink); }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; }
form label { display: block; font-weight: 700; margin: 16px 0 6px; }
form input, form textarea, form select {
  width: 100%; font: 400 17px/1.4 var(--font-body); padding: 12px 14px; border: 2px solid #b9cfcc; border-radius: 14px; background: var(--white); color: var(--ink);
}
form textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.status { margin-top: 14px; font-weight: 700; }

@media (max-width: 860px) {
  .hero, .band .wrap, .pair { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* v1.1: nav, FAQ, word lists, business footer */
.topnav { display: flex; align-items: center; gap: 14px; }
.navlink { font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none; }
.faq details { border-top: 2px solid #d6e3e1; padding: 16px 0; max-width: 760px; }
.faq details:last-of-type { border-bottom: 2px solid #d6e3e1; }
.faq summary { font-weight: 700; font-size: 19px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-weight: 800; color: var(--coral); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }
:lang(ko) .faq p, :lang(ko) .faq summary { word-break: keep-all; }
.biz { font-size: 13px; line-height: 1.6; margin: 6px 0 0; }
footer nav { flex-wrap: wrap; }
.page.wide { max-width: 860px; }
.crumb { margin: 0; font-weight: 700; font-size: 14px; }
.catlist { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.catlist li { display: flex; justify-content: space-between; align-items: center; background: var(--white); border: 2px solid var(--ink); border-radius: 16px; padding: 14px 16px; box-shadow: 0 3px 0 var(--ink); }
.catlist a { font-weight: 700; text-decoration: none; color: var(--ink); }
.catlist span { color: var(--muted); font-variant-numeric: tabular-nums; }
.wordtable { width: 100%; border-collapse: collapse; margin: 20px 0 28px; }
.wordtable th, .wordtable td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #d6e3e1; vertical-align: top; }
.wordtable thead th { font-size: 14px; color: var(--muted); }
.wordtable tbody th { font-size: 18px; white-space: nowrap; padding-right: 16px; }
.wordtable td span { display: inline-block; background: var(--coral-soft); color: #b3261e; font-weight: 700; font-size: 14px; padding: 3px 10px; border-radius: 999px; margin: 2px 4px 2px 0; }
.btn.inline { display: inline-block; }
.othercats { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 24px; }
