/* Solo Side Quests, the website. Palette, type, spacing and radii from the app's
   docs/design.md and src/theme/tokens.ts. Light only, like the app. Everything sits on
   beige or cream; teal is for text, buttons and outlines, never a background, because
   Coco's dark teal leaves disappear on teal. */

@font-face { font-family: 'Nunito'; font-weight: 400; font-style: normal; font-display: swap;
  src: url('../fonts/nunito-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 600; font-style: normal; font-display: swap;
  src: url('../fonts/nunito-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 700; font-style: normal; font-display: swap;
  src: url('../fonts/nunito-latin-700-normal.woff2') format('woff2'); }

:root {
  color-scheme: light;
  --bg: #F5F0E8;
  --surface: #FBF8F3;
  --border: #DDD5CA;
  --text: #2E2B28;
  --text-2: #6E6760;
  --teal: #1F5A5A;
  --teal-soft: rgba(31, 90, 90, 0.12);
  --terracotta: #B85C38;
  --terracotta-text: #A64F2E;
  --water: #BFE3E0;
  --r-card: 16px;
  --r-button: 12px;
  --font: 'Nunito', -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.5; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); }
h1, h2, h3, p { margin: 0; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header: the icon and the wordmark, nothing else. */
header { position: sticky; top: 0; z-index: 10; background: rgba(245, 240, 232, 0.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
header .wrap { display: flex; align-items: center; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 18px; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }

/* Hero: tagline and headline across the full width, then the pitch and the form on
   the left with Coco's compass and her three suggestions on the right. */
.hero { padding-top: 48px; padding-bottom: 24px; }
.hero-top { margin-bottom: 20px; }
.tagline { display: block; font-size: 18px; font-weight: 700; color: var(--teal); margin-bottom: 14px; }
.hero h1 { font-size: clamp(38px, 5.6vw, 60px); font-weight: 700; line-height: 1.02; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero-cols { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-areas: "pitch art" "cta art"; column-gap: 32px; row-gap: 0; align-items: center; }
.hero-pitch { grid-area: pitch; align-self: end; }
.hero-cta { grid-area: cta; align-self: start; }
.hero-art { grid-area: art; }
.hero p { font-size: 19px; color: var(--text-2); max-width: 46ch; margin-bottom: 24px; }
.soon { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--terracotta-text); margin-bottom: 14px; }

.hero-art { display: grid; grid-template-columns: 250px 1fr; gap: 0; align-items: center; padding: 16px 0; }
.hero-art > img { width: 250px; }
.bubbles { display: grid; gap: 12px; margin-left: -18px; }
.bubble { position: relative; background: var(--surface); border: 2px solid var(--teal); border-radius: 16px; padding: 8px 13px; font-size: 13px; font-weight: 600; line-height: 1.3; width: fit-content; max-width: 100%; }
.bubble::before, .bubble::after { content: ""; position: absolute; top: 12px; width: 0; height: 0; border-style: solid; }
.bubble::before { left: -14px; border-width: 8px 14px 8px 0; border-color: transparent var(--teal) transparent transparent; }
.bubble::after { left: -10px; border-width: 6px 11px 6px 0; border-color: transparent var(--surface) transparent transparent; }
.bubble.b2 { margin-left: 22px; }
.bubble.b3 { margin-left: 8px; }

/* The waitlist form. The script in js/waitlist.js posts it to Kit. */
.signup { display: flex; gap: 8px; max-width: 480px; }
.signup input[type="email"] { flex: 1; min-width: 0; height: 50px; padding: 0 16px; border: 1.5px solid var(--teal); border-radius: var(--r-button); background: var(--surface); color: var(--text); }
.signup button { height: 50px; padding: 0 20px; border: 0; border-radius: var(--r-button); background: var(--teal); color: #fff; font-weight: 700; white-space: nowrap; cursor: pointer; }
.signup button[disabled] { opacity: 0.7; cursor: default; }
.signup[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.hero p.fine { font-size: 12px; line-height: 1.4; color: var(--text-2); margin-top: 10px; max-width: none; white-space: nowrap; }
.form-note { font-size: 15px; margin-top: 10px; max-width: 480px; }
.form-note.ok { color: var(--teal); font-weight: 600; }
.form-note.err { color: var(--terracotta-text); }

/* Meet Coco: she waves and blinks beside a speech bubble. */
.coco-wrap { padding-top: 40px; padding-bottom: 16px; }
.coco { display: grid; grid-template-columns: 200px 1fr; gap: 36px; align-items: center; }
.coco .fig { position: relative; width: 200px; margin: 0 auto; }
.coco img { width: 200px; }
/* The blink: two eyelids in her own brown (#A45F34, measured from the image) sit over
   her eyes with a thin closed-eye line, and show for about 140ms every 4.6 seconds.
   The boxes are percentages of the image, so they stay on her eyes at any size. */
.lid { position: absolute; background: #A45F34; border-radius: 50%; opacity: 0; animation: blink 4.6s linear infinite; }
.lid.l { left: 31.2%; top: 40.7%; width: 11.8%; height: 13.1%; }
.lid.r { left: 54.1%; top: 40.6%; width: 13.4%; height: 13.2%; }
.lid::after { content: ""; position: absolute; left: 18%; right: 18%; top: 34%; height: 34%; border-bottom: 3px solid #2B1A10; border-radius: 0 0 50% 50% / 0 0 100% 100%; }
@keyframes blink { 0%, 95.5% { opacity: 0; } 96%, 98.5% { opacity: 1; } 99%, 100% { opacity: 0; } }
.note { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 24px 28px; }
.note::before, .note::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; border-style: solid; }
.note::before { left: -17px; margin-top: -17px; border-width: 17px 17px 17px 0; border-color: transparent var(--border) transparent transparent; }
.note::after { left: -15px; margin-top: -16px; border-width: 16px 16px 16px 0; border-color: transparent var(--surface) transparent transparent; }
.note h2 { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.note p { color: var(--text-2); }
.note .warn { display: block; margin-top: 14px; color: var(--text-2); font-size: 13px; }

/* The fork: two ways to a solo side quest, joined by "or". */
.fork { padding-top: 24px; padding-bottom: 48px; }
.fork h2 { font-size: 15px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); text-align: center; margin-bottom: 18px; }
.fork .two { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; }
.way { background: var(--surface); border: 1.5px solid var(--teal); border-radius: 20px; padding: 22px; display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; }
.way img { width: 96px; }
.way b { display: block; font-size: 22px; font-weight: 700; color: var(--teal); margin-bottom: 4px; }
.way span { color: var(--text-2); font-size: 15px; }
.or { width: 44px; height: 44px; border-radius: 50%; background: var(--terracotta); color: #fff; font-weight: 700; display: grid; place-items: center; }

/* The library. */
.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 56px 0; }
.band h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; margin-bottom: 6px; }
.band .sub { color: var(--text-2); margin-bottom: 28px; max-width: 54ch; }
.band .tags { margin: 0 0 28px; }
.lvls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lvl { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.lvl img { width: 64px; height: 64px; margin-bottom: 12px; }
.lvl b { display: block; font-size: 20px; margin-bottom: 4px; }
.lvl span { color: var(--text-2); font-size: 15px; }
.lvl:nth-child(1) b { color: #4A7E7E; } .lvl:nth-child(2) b { color: var(--teal); } .lvl:nth-child(3) b { color: var(--terracotta-text); }
.band .drop { color: var(--text-2); font-size: 15px; margin-top: 24px; }

/* The extras, down a dotted trail. */
.more-h { text-align: center; padding-top: 48px; }
.more-h h2 { font-size: clamp(26px, 3.5vw, 34px); font-weight: 700; }
.more-h p { color: var(--text-2); }
.trail { position: relative; padding-top: 24px; }
.trail::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 2px dashed var(--border); }
.step { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 40px 0; position: relative; }
.step .n { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; display: grid; place-items: center; border: 4px solid var(--bg); }
.step:nth-child(even) .txt { order: 2; }
.step .txt h3 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.step .txt p { color: var(--text-2); font-size: 17px; max-width: 40ch; }
.step .art { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 24px; display: grid; place-items: center; }
.step .art img { width: 200px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.tag { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--teal-soft); color: var(--teal); }
.tag.t { background: rgba(184, 92, 56, 0.14); color: var(--terracotta-text); }

.never { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 48px; padding-bottom: 56px; }
.never div { border-top: 3px solid var(--terracotta); padding-top: 14px; }
.never b { display: block; font-size: 18px; margin-bottom: 4px; }
.never span { color: var(--text-2); font-size: 15px; }

footer { background: var(--surface); border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--text-2); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
footer .links { display: flex; gap: 18px; }

/* Plain pages: Privacy, Terms, the thank-you page and the 404. */
.page { padding-top: 48px; padding-bottom: 72px; max-width: 720px; }
.page h1 { font-size: clamp(32px, 4.5vw, 44px); font-weight: 700; line-height: 1.1; margin-bottom: 8px; }
.page .updated { color: var(--text-2); font-size: 14px; margin-bottom: 32px; }
.page h2 { font-size: 24px; font-weight: 600; margin: 36px 0 10px; }
.page p, .page li { color: var(--text); margin-bottom: 14px; }
.page ul { padding-left: 22px; margin: 0 0 14px; }
.page .holding { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 20px 24px; margin: 24px 0; }
.page .holding p { margin: 0; color: var(--text-2); }
.centered { text-align: center; margin: 0 auto; }
.centered img { width: 220px; margin: 0 auto 20px; }
.centered p { color: var(--text-2); }
.btn { display: inline-flex; align-items: center; height: 48px; padding: 0 22px; border-radius: var(--r-button); background: var(--teal); color: #fff; font-weight: 700; text-decoration: none; margin-top: 12px; }
.btn-outline { background: transparent; color: var(--teal); border: 1.5px solid var(--teal); }
/* The home page's "Get on the list" link lands here, clear of the sticky header. */
#waitlist { scroll-margin-top: 132px; }

/* The dare card, /d/<quest id>, filled by js/dare.js. The same shapes as the quest
   page in the app: a surface card, pill tags, the courage badge with its name in the
   level's text color, and the tip in a soft teal callout. */
.dare { max-width: 600px; }
.centered.dare > img { width: 150px; margin-bottom: 12px; }
.page.dare h1 { margin-bottom: 24px; }
.dare-card { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 20px; text-align: left; }
.dare-card[hidden], .dare-tip[hidden] { display: none; }
.dare-card h2 { font-size: 24px; font-weight: 700; line-height: 1.25; margin: 0; }
.dare-card p { color: var(--text); margin: 0; }
.dare-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dare-tags:empty { display: none; }
.courage { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; }
.dare-card .courage img { width: 20px; height: 20px; margin: 0; }
.courage.dip_a_toe { color: #4A7E7E; } .courage.wade_in { color: var(--teal); } .courage.cannonball { color: var(--terracotta-text); }
.pill { font-size: 13px; line-height: 1.5; padding: 2px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); color: var(--text-2); }
.dare-tip { background: var(--teal-soft); border-radius: var(--r-button); padding: 12px 14px; }
.dare-tip h3 { font-size: 17px; font-weight: 600; color: var(--teal); margin: 0 0 4px; }
.dare-card .dare-tip p { font-size: 15px; }
.page .dare-status { margin: 16px 0 0; }
.page .dare-status:empty { margin: 0; }
.dare-actions { display: grid; justify-items: center; gap: 24px; margin-top: 28px; }
.dare-actions .btn { justify-content: center; min-width: 240px; margin-top: 0; }
.page .dare-get p { margin-bottom: 12px; }

@media (max-width: 900px) { .hero-cols { grid-template-columns: 1fr; grid-template-areas: "pitch" "art" "cta"; } .hero-art { justify-self: start; margin-bottom: 8px; } }
@media (max-width: 760px) {
  .fork .two { grid-template-columns: 1fr; } .or { margin: 0 auto; }
  .trail::before { left: 22px; }
  .step { grid-template-columns: 1fr; gap: 16px; padding: 28px 0 28px 56px; }
  .step:nth-child(even) .txt { order: 0; }
  .step .n { left: 22px; top: 32px; transform: translate(-50%, 0); }
  .step .art img { width: 160px; }
}
@media (max-width: 680px) { .lvls { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .coco { grid-template-columns: 1fr; gap: 20px; } .coco .fig, .coco img { width: 160px; }
  .note::before { top: -17px; left: 50%; margin: 0 0 0 -17px; border-width: 0 17px 17px 17px; border-color: transparent transparent var(--border) transparent; }
  .note::after { top: -15px; left: 50%; margin: 0 0 0 -16px; border-width: 0 16px 16px 16px; border-color: transparent transparent var(--surface) transparent; }
  .never { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-art { grid-template-columns: 150px 1fr; } .hero-art > img { width: 150px; }
  .bubble br { display: none; }
  .bubbles { margin-left: -8px; } .bubble { font-size: 12px; padding: 7px 11px; } .bubble.b2 { margin-left: 12px; } .bubble.b3 { margin-left: 4px; }
  .hero p.fine { white-space: normal; }
  .signup { flex-direction: column; }
  .page.dare { padding-top: 28px; } .centered.dare > img { width: 120px; }
  .dare-card { padding: 16px; }
  .dare-actions .btn { width: 100%; }
  .dare-get { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
