/* Layout: one oversized left-aligned line, Goobli answering beside it, then a dark quiet room, then Goobli peeking over the signup. Studio Calm tokens. */
:root {
  --paper: #FBF8F2; --surface: #FFFEFB; --hover: #F3EEE3; --rule: #EBE4D6;
  --ink: #2B2620; --muted: #6F665A;
  --accent: #3B4FB8; --accent-press: #2E3F95; --accent-soft: #ECEAF7; --on-accent: #FFFFFF;
  --room: #211E1A; --room-rule: #3A352D; --room-ink: #EFEAE0; --room-muted: #A89E8E; --room-accent: #9AA6E0;
  --rounded: ui-rounded, "SF Pro Rounded", Nunito, "Avenir Next", sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --shadow: 0 1px 2px rgba(43,38,32,.05), 0 12px 32px rgba(43,38,32,.08);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper: #211E1A; --surface: #2B2722; --hover: #342F29; --rule: #3A352D;
  --ink: #EFEAE0; --muted: #A89E8E;
  --accent: #9AA6E0; --accent-press: #B4BDEA; --accent-soft: #33324A; --on-accent: #1B1A2B;
  --room: #171512; --room-rule: #332E27;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px rgba(0,0,0,.3);
  color-scheme: dark } }
:root[data-theme="dark"] {
  --paper: #211E1A; --surface: #2B2722; --hover: #342F29; --rule: #3A352D;
  --ink: #EFEAE0; --muted: #A89E8E;
  --accent: #9AA6E0; --accent-press: #B4BDEA; --accent-soft: #33324A; --on-accent: #1B1A2B;
  --room: #171512; --room-rule: #332E27;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px rgba(0,0,0,.3);
  color-scheme: dark }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
img { max-width: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--sans); overflow-x: hidden; }
.wrap { max-width: 1120px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3, .logo, button { font-family: var(--rounded); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.logo { font-weight: 900; font-size: 22px; letter-spacing: -.01em; padding-block: 20px; }

.hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 32px; align-items: center; padding-block: 12px 72px; }
.hero > * { min-width: 0; }
h1 { font-weight: 900; font-size: clamp(52px, 8.6vw, 104px); line-height: .98; letter-spacing: -.03em; margin: 0; }
h1 span { color: var(--accent); display: block; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 30em; margin: 24px 0 28px; }
.jump { display: inline-block; background: var(--accent); color: var(--on-accent); font: 800 17px var(--rounded); text-decoration: none; border-radius: 999px; padding: 13px 24px; transition: background .18s ease-out, transform .18s ease-out; }
.jump:hover { background: var(--accent-press); }
.jump:active { transform: scale(.985); }

.stage { display: flex; flex-direction: column; align-items: center; }
.goobli { width: min(100%, 340px); height: auto; display: block; transform-origin: 50% 100%; animation: breathe 4.8s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scaleY(1.012) scaleX(.994); } }

.ask { padding-block: 0 88px; }
.ask-card { background: var(--surface); border: .5px solid var(--rule); border-radius: 16px; box-shadow: var(--shadow); padding: clamp(20px, 3.4vw, 36px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 48px); }
.ask-card > * { min-width: 0; }
h2 { font-weight: 800; font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 16px; text-wrap: balance; }
.qs { display: grid; gap: 8px; }
.q { text-align: left; background: transparent; color: var(--ink); border: .5px solid var(--rule); border-radius: 12px; padding: 11px 14px; font-weight: 700; font-size: 16px; line-height: 1.3; cursor: pointer; transition: background .18s ease-out; }
.q:hover { background: var(--hover); }
.q[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }
.answer { background: var(--hover); border-radius: 12px; padding: 20px; min-height: 176px; }
.who { font: 800 14px var(--rounded); color: var(--accent); margin: 0 0 6px; }
.answer p.said { margin: 0 0 14px; font-size: 18px; }
.cites { display: flex; flex-wrap: wrap; gap: 6px; }
.cite { font-size: 13px; color: var(--muted); background: var(--surface); border: .5px solid var(--rule); border-radius: 999px; padding: 3px 10px; }
.note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }

.room { background: var(--room); color: var(--room-ink); padding-block: clamp(64px, 9vw, 112px); }
.room h2 { font-size: clamp(40px, 6.6vw, 76px); font-weight: 900; line-height: 1; letter-spacing: -.03em; margin-bottom: clamp(36px, 5vw, 56px); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.facts h3 { font-weight: 800; font-size: 21px; color: var(--room-accent); margin: 0 0 8px; }
.facts p { margin: 0; color: var(--room-muted); }

.join { padding-top: clamp(72px, 9vw, 112px); overflow: hidden; text-align: center; }
.join h2 { font-size: clamp(36px, 5.4vw, 60px); font-weight: 900; margin-bottom: 12px; }
.join .sub { color: var(--muted); max-width: 30em; margin: 0 auto 26px; }
form { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
input { font: 400 17px var(--sans); color: var(--ink); background: var(--surface); border: .5px solid var(--muted); border-radius: 999px; padding: 12px 20px; flex: 1 1 240px; max-width: 340px; min-width: 0; }
input::placeholder { color: var(--muted); }
button.send { background: var(--accent); color: var(--on-accent); border: 0; border-radius: 999px; font-weight: 800; font-size: 17px; padding: 13px 24px; cursor: pointer; transition: background .18s ease-out, transform .18s ease-out; }
button.send:hover { background: var(--accent-press); }
button.send:active { transform: scale(.985); }
.fine { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.hp { position: absolute; left: -9999px; }
footer a { color: inherit; }
.status { min-height: 24px; margin: 14px 0 0; font-size: 15px; color: var(--muted); }
.peek { height: clamp(150px, 19vw, 210px); margin-top: 28px; overflow: hidden; position: relative; }
.peek img { width: clamp(260px, 32vw, 360px); height: auto; display: block; margin-inline: auto; transform: translateY(16%); transition: transform .4s ease-out; }
.peek.up img { transform: translateY(4%); }
footer { background: var(--room); color: var(--room-muted); font-size: 14px; }
footer .wrap { padding-block: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-bottom: 48px; }
  .goobli { width: min(70%, 260px); }
  .ask-card, .facts { grid-template-columns: minmax(0, 1fr); }
  .answer { min-height: 220px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
