/* Couchy website. Tokens = Design System v2, same values as src/ui/theme.ts (d181). */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url(/fonts/bricolage-grotesque-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url(/fonts/bricolage-grotesque-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(/fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url(/fonts/inter-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; font-display: swap; src: url(/fonts/inter-latin-800-normal.woff2) format("woff2"); }

:root {
  --surface0: #F4F2ED; --surface1: #FFFFFF; --surface2: #EDEAE3; --line: #D6D0C3; --border: #8C877D;
  --ink: #1B1B1F; --ink-muted: #5E5B55; --on-ink: #FFFFFF;
  --couch: #FF7A52; --couch-deep: #D45A36; --couch-tint: #FFE3D8;
  --grape: #6A4BF0; --grape-deep: #4A31C2; --cushion: #FFC94D;
  --success: #1F7A44; --warning: #9A5B00; --danger: #B83228; --press-ink: #000000;
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 22px; --r-card: 24px; --r-sheet: 28px;
  --display: "Bricolage Grotesque", ui-rounded, system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface0: #141416; --surface1: #1F1F23; --surface2: #2C2C32; --line: #36363D; --border: #7A756C;
    --ink: #F2EFE8; --ink-muted: #B4AFA6; --on-ink: #141416;
    --couch: #FF8A66; --couch-deep: #C9542F; --couch-tint: #3A2620;
    --grape: #A795FF; --grape-deep: #6F5BD6; --cushion: #FFD166;
    --success: #5BD08C; --warning: #F0B04A; --danger: #FF8A80;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--surface0); color: var(--ink); font: 400 17px/1.5 var(--body); }
img, svg { max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--grape); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; margin: 0 0 .4em; }
h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.05; letter-spacing: -0.025em; }
h3 { font-size: 20px; line-height: 1.1; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.muted { color: var(--ink-muted); }
.label { font: 800 12px/16px var(--body); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px; }
.lead { font-size: 19px; line-height: 1.5; color: var(--ink-muted); max-width: 36em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--ink); color: var(--on-ink); padding: 10px 14px; z-index: 10; }
mark.todo { background: var(--cushion); color: #1B1B1F; padding: 0 4px; border-radius: 4px; font-weight: 700; }

/* Mascot parts drawn outside the couch follow the background (Mascot.tsx tone="auto"). */
.m-legs { fill: var(--ink); }
.m-out { stroke: var(--ink); }
.band-ink .m-legs { fill: #F2EFE8; } .band-ink .m-out { stroke: #F2EFE8; }

/* Buttons: DS press style, hard shadow that the button sinks into. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 22px;
  border: 0; border-radius: var(--r-lg); font: 800 17px/20px var(--body); text-decoration: none; cursor: pointer;
  transition: transform 80ms ease-out, box-shadow 80ms ease-out; }
.btn:active { transform: translateY(4px); box-shadow: none !important; }
.btn-ink { background: var(--ink); color: var(--on-ink); box-shadow: 0 4px 0 var(--press-ink); }
.btn-couch { background: #FF7A52; color: #1B1B1F; box-shadow: 0 4px 0 #D45A36; }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 15px; box-shadow: 0 3px 0 var(--press-ink); }
@media (prefers-color-scheme: dark) { .btn-ink { box-shadow: 0 4px 0 #8C877D; } .btn-small { box-shadow: 0 3px 0 #8C877D; } }

/* Header and footer */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--surface0) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 800 22px/26px var(--display); letter-spacing: -0.4px; }
.site-header nav { display: flex; align-items: center; gap: 20px; font-weight: 600; font-size: 15px; }
.site-header nav a:not(.btn) { text-decoration: none; }
@media (max-width: 640px) { .site-header nav a:not(.btn) { display: none; } }
.site-footer { margin-top: 96px; padding: 48px 0 32px; border-top: 1px solid var(--line); background: var(--surface2); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid nav { display: flex; flex-direction: column; gap: 10px; }
.footer-grid .muted { margin-top: 12px; max-width: 28em; }
.legal-line { margin-top: 32px; font-size: 13px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; }
.hero-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 40px; background: var(--cushion); }
.hero-art .m-legs { fill: #1B1B1F; }
.hero-mascot { width: 62%; height: auto; overflow: visible; }
.bubble { position: absolute; top: 9%; left: 8%; max-width: 62%; background: #FFFFFF; color: #1B1B1F; border: 2px solid #1B1B1F;
  border-radius: 18px 18px 18px 4px; padding: 10px 14px; font: 700 15px/1.3 var(--body); }
@media (max-width: 860px) {
  .hero { padding-top: 28px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; aspect-ratio: auto; padding: 64px 0 28px; border-radius: 28px; }
  .hero-mascot { width: 46%; }
  .bubble { top: 14px; left: 14px; font-size: 14px; }
}

/* Waitlist form */
.waitlist { margin-top: 28px; max-width: 560px; }
.form-label { display: block; font-weight: 700; margin-bottom: 8px; }
.field-row { display: flex; gap: 10px; }
.field-row input { flex: 1; min-width: 0; min-height: 56px; padding: 0 16px; border-radius: var(--r-lg); border: 2px solid var(--border);
  background: var(--surface1); color: var(--ink); font: 500 17px var(--body); }
.field-row input:focus-visible { outline-offset: 1px; border-color: var(--ink); }
.field-row input[aria-invalid="true"] { border-color: var(--danger); }
@media (max-width: 520px) { .field-row { flex-direction: column; } }
.platform { border: 0; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 15px; }
.platform legend { padding: 0; margin-bottom: 6px; font-weight: 600; width: 100%; }
.platform .opts { display: flex; gap: 20px; }
.platform label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; min-height: 32px; }
.platform input { accent-color: var(--ink); width: 18px; height: 18px; }
.form-note { margin-top: 12px; font-size: 13px; line-height: 1.45; color: var(--ink-muted); }
.form-error { margin: 10px 0 0; color: var(--danger); font-weight: 700; font-size: 15px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.joined { display: flex; gap: 16px; align-items: center; margin-top: 28px; padding: 20px; border-radius: var(--r-card); background: var(--couch-tint); max-width: 560px; }
.joined h2 { font-size: 26px; }
.joined p { margin: 0; }
.joined svg { flex: none; width: 96px; height: auto; }

/* Sections */
section.wrap, .band { margin-top: 88px; }
.band { padding: 64px 0; background: var(--surface1); }
.band-ink { background: #1B1B1F; color: #F2EFE8; }
.band-ink .section-lead { color: #CFCBC2; }
.section-title { margin-bottom: 12px; }
.section-lead { color: var(--ink-muted); font-size: 18px; max-width: 40em; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--surface0); border-radius: var(--r-card); padding: 24px; }
.steps p { margin: 0; color: var(--ink-muted); }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--couch); color: #1B1B1F; font: 800 20px var(--display); margin-bottom: 14px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.moves { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.move-card { border-radius: var(--r-card); padding: 24px; background: var(--surface1); border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.move-card h3 { margin-top: 16px; font-size: 22px; }
.move-card p { margin: 0; color: var(--ink-muted); }
.chip { display: inline-flex; border-radius: 999px; padding: 6px 11px; font: 700 13px/16px var(--body); color: #1B1B1F; }
.move-home .chip { background: var(--couch-tint); } .move-work .chip { background: #E5DEFF; } .move-out .chip { background: #FFEFC2; }
@media (prefers-color-scheme: dark) { .move-home .chip { background: #FFB59C; } .move-work .chip { background: #C9BDFF; } .move-out .chip { background: #FFD166; } }
@media (max-width: 860px) { .moves { grid-template-columns: 1fr; } }

.season-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.season-head svg { flex: none; }
@media (max-width: 640px) { .season-head svg { display: none; } }
.seasons { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.season { display: grid; gap: 4px; padding: 18px 20px; border-radius: var(--r-xl); background: #2A2A30; }
.season strong { font: 800 20px/1.15 var(--display); }
.season span:last-child { color: #CFCBC2; font-size: 15px; }
.season-n { font: 800 12px/16px var(--body); letter-spacing: 1px; color: #1B1B1F; background: #FFC94D; border-radius: 999px; padding: 3px 9px; justify-self: start; }
.season-1 { --acc: #FFC94D; } .season-2 { --acc: #7CCBF5; } .season-3 { --acc: #8FD694; }
.season-4 { --acc: #74D3C4; } .season-5 { --acc: #CDD3DF; } .season-6 { --acc: #FFA8C5; }
.season .season-n { background: var(--acc); }
@media (max-width: 860px) { .seasons { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .seasons { grid-template-columns: 1fr; } }

.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promise { display: flex; gap: 16px; align-items: flex-start; padding: 24px; border-radius: var(--r-card); background: var(--surface1); }
.promise svg { flex: none; width: 64px; height: auto; }
.promise-icon { width: 56px !important; }
.promise p { margin: 0; color: var(--ink-muted); }
@media (max-width: 860px) { .promises { grid-template-columns: 1fr; } }

.faq { max-width: 760px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font: 700 18px/1.3 var(--body); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 800 28px var(--display); }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-muted); }

.final-cta { text-align: center; display: grid; justify-items: center; gap: 8px; padding: 56px 20px; border-radius: 40px; background: var(--couch); color: #1B1B1F; }
.final-cta .m-legs { fill: #1B1B1F; }
.final-cta h2 { max-width: 16em; }
.final-cta .btn { background: #1B1B1F; color: #FFFFFF; box-shadow: 0 4px 0 #000; }

/* Legal and support */
.legal { max-width: 760px; padding-top: 48px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); }
.legal h2 { font-size: 26px; margin-top: 40px; }
.legal h3 { font-size: 18px; margin-top: 24px; font-family: var(--body); font-weight: 800; letter-spacing: 0; }
.legal p, .legal li { color: var(--ink); }
.legal li { margin-bottom: 6px; }
.legal .summary { background: var(--surface1); border-radius: var(--r-card); padding: 20px 24px 8px; margin-top: 24px; }
.legal .summary h2 { margin-top: 0; font-size: 20px; }
.draft-note { background: #FFEFC2; color: #1B1B1F; border: 2px solid #9A5B00; border-radius: var(--r-md); padding: 12px 16px; font-size: 15px; }
.updated { color: var(--ink-muted); font-size: 15px; }
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0; }
.card { background: var(--surface1); border-radius: var(--r-card); padding: 24px; }
.card h2 { margin-top: 0; font-size: 22px; }
.card p:last-child { margin-bottom: 0; }
@media (max-width: 720px) { .cards-2 { grid-template-columns: 1fr; } }
.support-head { display: flex; gap: 24px; align-items: center; justify-content: space-between; }
@media (max-width: 640px) { .support-head svg { display: none; } }
.center-page { text-align: center; display: grid; justify-items: center; padding-top: 72px; }
.center-page .lead { margin-inline: auto; }

/* ---- Motion (Toplantı #43, d185–d189). Motion system v1 (d99): anything awaited < 600 ms,
   celebrations never block, nothing moves with "reduce motion". Only transform and opacity. ---- */
.mascot .m-body, .mascot .m-eyes, .mascot .acc, .mascot .m-face { transform-box: fill-box; }

/* Hero: the couch does the pilot move. Stand up, sit down, every 4.8 s. Eyes blink. */
.hero-mascot .m-body { transform-origin: 50% 100%; animation: standup 4.8s cubic-bezier(.3,.7,.4,1) infinite; }
.hero-mascot .m-eyes { transform-origin: 50% 50%; animation: blink 4.8s infinite; }
@keyframes standup {
  0%, 52%, 100% { transform: none; }
  58% { transform: scale(1.06, .9); }
  66% { transform: translateY(-12%) scale(.96, 1.08); }
  76% { transform: translateY(-12%) scale(.98, 1.04); }
  84% { transform: scale(1.05, .93); }
  90% { transform: none; }
}
@keyframes blink { 0%, 30%, 34%, 100% { transform: none; } 32% { transform: scaleY(.1); } }
.bubble span { display: inline-block; transform-origin: 0% 100%; }
.bubble.pop span { animation: pop 320ms cubic-bezier(.3,1.6,.5,1); }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.hero-art.paused .m-body, .hero-art.paused .m-eyes { animation-play-state: paused; }

/* Scroll reveal: added by JS only, so content is never hidden without it. The hero (and the H1) never fades. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 420ms ease-out, transform 420ms cubic-bezier(.2,.8,.3,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal .steps > li, .js .reveal .moves > li, .js .reveal .seasons > li, .js .reveal .promise {
  opacity: 0; transform: translateY(14px); transition: opacity 420ms ease-out, transform 420ms cubic-bezier(.2,.8,.3,1); }
.js .reveal.in .steps > li, .js .reveal.in .moves > li, .js .reveal.in .seasons > li, .js .reveal.in .promise { opacity: 1; transform: none; }
.js .reveal.in :is(.steps, .moves, .seasons) > li:nth-child(2), .js .reveal.in .promise:nth-child(2) { transition-delay: 110ms; }
.js .reveal.in :is(.steps, .moves, .seasons) > li:nth-child(3), .js .reveal.in .promise:nth-child(3) { transition-delay: 220ms; }
.js .reveal.in .seasons > li:nth-child(4) { transition-delay: 330ms; }
.js .reveal.in .seasons > li:nth-child(5) { transition-delay: 440ms; }
.js .reveal.in .seasons > li:nth-child(6) { transition-delay: 550ms; }
.js .reveal.in .step-n { animation: pop 420ms cubic-bezier(.3,1.6,.5,1) both; }

/* Move cards: the DS press. */
.move-card { transition: transform 120ms ease-out, box-shadow 120ms ease-out; }
.move-card:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.move-card:active { transform: translateY(4px); box-shadow: none; }

/* Seasons: the mascot changes into each season's costume (d104); the matching season lights up. */
.costume-wrap { display: grid; justify-items: center; gap: 6px; flex: none; }
.costume-label { margin: 0; font: 800 12px/16px var(--body); letter-spacing: 1px; text-transform: uppercase; color: #CFCBC2; }
.costume .acc { display: none; }
.costume[data-s="1"] .acc-1, .costume[data-s="2"] .acc-2, .costume[data-s="3"] .acc-3,
.costume[data-s="4"] .acc-4, .costume[data-s="5"] .acc-5, .costume[data-s="6"] .acc-6 { display: inline; }
.costume[data-s="6"] .m-face { display: none; }
.costume .m-body { transform-origin: 50% 100%; }
.costume.swap .m-body { animation: swap 360ms cubic-bezier(.3,1.5,.5,1); }
@keyframes swap { 0% { transform: scale(1.08, .88); } 60% { transform: translateY(-6%) scale(.97, 1.05); } 100% { transform: none; } }
.season { cursor: default; transition: transform 200ms ease-out, background-color 200ms ease-out, box-shadow 200ms ease-out; }
.season.on { background: #34343B; box-shadow: inset 0 0 0 2px var(--acc); transform: translateY(-3px); }
.season:focus-visible { outline-color: var(--acc); }
@media (max-width: 640px) { .season-head { flex-direction: column; align-items: start; } .season-head svg { display: block; } .costume-wrap { justify-self: center; align-self: center; } }

/* Waitlist done: the app's COUNTS stamp, here "YOU'RE IN" (d88 drop: 600 ms, back easing). */
.stamp { flex: none; display: grid; place-items: center; width: 108px; height: 108px; border-radius: 50%; border: 5px solid #1B1B1F;
  background: #F4F2ED; color: #1B1B1F; font: 800 19px/1 var(--display); letter-spacing: -0.4px; text-align: center;
  transform: rotate(-10deg); box-shadow: 0 4px 0 #1B1B1F; }
.joined:not([hidden]) .stamp { animation: stampdrop 600ms cubic-bezier(.3,1.8,.5,1) both; }
.joined:not([hidden]) .joined-text { animation: fadein 300ms 500ms ease-out both; }
@keyframes stampdrop { 0% { opacity: 0; transform: scale(1.6) rotate(-24deg); } 20% { opacity: 1; } 100% { opacity: 1; transform: scale(1) rotate(-10deg); } }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.joined { background: var(--couch); color: #1B1B1F; }
.joined p { color: #1B1B1F; }

/* Final call: the couch peeks up from the bottom, then the "z" of the 404 couch drifts. */
.final-cta { overflow: hidden; }
.js .final-cta.reveal .mascot { transform: translateY(40%); opacity: 0; transition: transform 600ms cubic-bezier(.3,1.5,.5,1) 150ms, opacity 200ms 150ms; }
.js .final-cta.reveal.in .mascot { transform: none; opacity: 1; }
.m-z { animation: zz 2.4s ease-in-out infinite; transform-box: fill-box; }
@keyframes zz { 0%, 100% { transform: none; opacity: 1; } 50% { transform: translate(8%, -18%); opacity: .5; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .reveal * { opacity: 1 !important; transform: none !important; }
  .stamp { transform: rotate(-10deg) !important; }
}
