/* Mystery Lab Learning — shared styles.
   Look: a case file on a lab bench. Manila paper, ink, evidence-tag red, lab teal, highlighter yellow. */

:root {
  --paper: #f7f2e7;
  --paper-2: #efe5cf;
  --card: #fffdf8;
  --ink: #15202a;
  --ink-2: #44505b;
  --muted: #6b7480;
  --line: #e0d5bd;
  --line-2: #cfc2a4;
  --accent: #c8402a;
  --accent-ink: #a5311c;
  --accent-wash: #f8e1da;
  --teal: #0f7f7a;
  --teal-ink: #0a6460;
  --teal-wash: #dcefec;
  --hl: #ffd84a;
  --hl-wash: #fff3c2;
  --good: #1f8a3b;
  --good-wash: #e0f2e4;
  --on-accent: #fff;
  --night: #15202a;
  --night-ink: #f7f2e7;
  --shadow: 0 1px 2px rgba(21, 32, 42, .06), 0 14px 32px -18px rgba(21, 32, 42, .35);
  --r: 14px;
  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f151b; --paper-2: #16202a; --card: #18222d; --ink: #eef1f3; --ink-2: #b8c2cb; --muted: #8b96a1;
    --line: #273340; --line-2: #34424f; --accent: #ef6a50; --accent-ink: #f59a86; --accent-wash: #3a1e18;
    --teal: #36bdb3; --teal-ink: #7fd8d0; --teal-wash: #12302e; --hl: #ffd84a; --hl-wash: #3a3214;
    --good: #4cc46b; --good-wash: #15301d; --on-accent: #10161c; --night: #070b0f; --night-ink: #eef1f3;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 34px -18px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f151b; --paper-2: #16202a; --card: #18222d; --ink: #eef1f3; --ink-2: #b8c2cb; --muted: #8b96a1;
  --line: #273340; --line-2: #34424f; --accent: #ef6a50; --accent-ink: #f59a86; --accent-wash: #3a1e18;
  --teal: #36bdb3; --teal-ink: #7fd8d0; --teal-wash: #12302e; --hl: #ffd84a; --hl-wash: #3a3214;
  --good: #4cc46b; --good-wash: #15301d; --on-accent: #10161c; --night: #070b0f; --night-ink: #eef1f3;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 34px -18px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.6 var(--f-body);
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.08; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.4vw, 76px); font-weight: 800; font-stretch: 112%; }
h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 780; font-stretch: 110%; }
h3 { font-size: 21px; font-weight: 720; font-stretch: 105%; }
p { margin: 0; }
.wrap { width: min(1180px, 100%); margin-inline: auto; padding-inline: 24px; }
@media (max-width: 560px) { .wrap { padding-inline: 16px; } }
.mono { font-family: var(--f-mono); }
.eyebrow { font: 600 13px/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); max-width: 60ch; }
.hl { background: linear-gradient(transparent 58%, var(--hl) 58%, var(--hl) 92%, transparent 92%); padding-inline: 2px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hl { background: var(--hl); color: #15202a; border-radius: 6px; padding-inline: 8px; -webkit-box-decoration-break: clone; box-decoration-break: clone; } }
:root[data-theme="dark"] .hl { background: var(--hl); color: #15202a; border-radius: 6px; padding-inline: 8px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 16px/1 var(--f-body); padding: 15px 22px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--card); color: var(--ink); text-decoration: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 6px 0 -1px var(--ink); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { color: var(--on-accent); box-shadow: 0 6px 0 -1px var(--accent-ink); }
.btn.teal { background: var(--teal); border-color: var(--teal); color: var(--on-accent); }
.btn.teal:hover { color: var(--on-accent); box-shadow: 0 6px 0 -1px var(--teal-ink); }
.btn.small { padding: 10px 16px; font-size: 14.5px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* Header */
.site-head { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 18px; min-height: 70px; }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); flex: none; }
.logo:hover { color: var(--ink); }
.logo svg { width: 40px; height: 40px; }
.logo b { font: 800 18px/1 var(--f-display); font-stretch: 115%; letter-spacing: -.01em; display: block; }
.logo small { font: 500 11px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 15.5px; padding: 9px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
.nav .btn { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; appearance: none; background: none; border: 2px solid var(--ink); border-radius: 999px; padding: 8px 14px; font-weight: 700; cursor: pointer; }
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 16px 18px; gap: 2px; }
  .nav.open { display: flex; }
  .nav a { padding: 13px 12px; font-size: 17px; }
  .nav .btn { margin: 8px 0 0; }
}

/* Sections */
section { padding-block: clamp(64px, 9vw, 112px); }
.sec-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 760px; }
.band { background: var(--paper-2); border-block: 1px solid var(--line); }
.ink-band { background: var(--night); color: var(--night-ink); }
.ink-band .lede { color: color-mix(in srgb, var(--night-ink) 78%, transparent); }
.ink-band .eyebrow { color: var(--hl); }

/* Hero */
.hero { padding-block: clamp(48px, 7vw, 92px) clamp(64px, 8vw, 104px); position: relative; overflow: hidden; }
.hero::before { /* graph-paper bench */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px; mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hero h1 { margin: 18px 0 22px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--muted); font-size: 14.5px; }
.hero .proof span { display: inline-flex; gap: 8px; align-items: center; }
.hero .proof span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--teal); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } }

/* The case file illustration */
.casefile { position: relative; aspect-ratio: 5 / 4.3; max-width: 560px; margin-inline: auto; width: 100%; }
.casefile .folder {
  position: absolute; inset: 9% 3% 0 6%; background: #e9c98a; border-radius: 6px 18px 14px 14px; transform: rotate(-3deg);
  box-shadow: var(--shadow); border: 1px solid #c9a35e;
}
.casefile .folder::before { content: ""; position: absolute; left: 0; top: -9%; width: 38%; height: 12%; background: #e9c98a; border: 1px solid #c9a35e; border-bottom: 0; border-radius: 10px 14px 0 0; }
.casefile .sheet {
  position: absolute; inset: 4% 9% 8% 10%; background: #fffdf6; color: #15202a; border-radius: 6px; transform: rotate(2deg);
  box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .45); padding: 7% 8%; display: grid; align-content: start; gap: 4%;
  background-image: repeating-linear-gradient(transparent 0 27px, #e6edf3 27px 28px);
}
.casefile .sheet .tag { font: 600 clamp(9px, 1.4vw, 12px)/1 var(--f-mono); letter-spacing: .14em; color: #a5311c; }
.casefile .sheet h4 { font: 800 clamp(18px, 2.8vw, 30px)/1.05 var(--f-display); font-stretch: 112%; }
.casefile .sheet .line { height: 9px; border-radius: 5px; background: #dfe5ea; }
.casefile .sheet .line.s { width: 62%; } .casefile .sheet .line.m { width: 84%; }
.casefile .stamp {
  position: absolute; right: 8%; top: 26%; transform: rotate(-12deg); border: 4px solid #c8402a; color: #c8402a; border-radius: 10px;
  font: 800 clamp(16px, 2.8vw, 30px)/1 var(--f-display); font-stretch: 118%; padding: 8px 14px; letter-spacing: .06em; mix-blend-mode: multiply; opacity: .9;
  animation: stamp 1.1s .5s cubic-bezier(.2, 1.6, .4, 1) both;
}
@keyframes stamp { from { transform: rotate(-12deg) scale(2.2); opacity: 0; } to { transform: rotate(-12deg) scale(1); opacity: .9; } }
.casefile .photo { position: absolute; left: 0; bottom: 6%; width: 38%; aspect-ratio: 1; background: #fff; padding: 3% 3% 9%; transform: rotate(-8deg); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .55); }
.casefile .photo .img { width: 100%; height: 100%; background: radial-gradient(circle at 50% 70%, #9fe0d8 0 28%, transparent 29%), linear-gradient(#cdeae6, #f2f7f6); position: relative; overflow: hidden; }
.casefile .photo .img::before { /* beaker */ content: ""; position: absolute; left: 30%; right: 30%; top: 24%; bottom: 14%; border: 3px solid #15202a; border-top: 0; border-radius: 0 0 10px 10px; background: linear-gradient(transparent 45%, #36bdb3 45%); }
.casefile .photo .img::after { content: ""; position: absolute; left: 44%; top: 34%; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 10px 14px 0 -1px #fff, -6px 22px 0 -2px #fff; animation: fizz 2.4s infinite ease-in; }
@keyframes fizz { from { transform: translateY(18px); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(-14px); opacity: 0; } }
.casefile .evtag { position: absolute; right: 2%; bottom: 3%; background: var(--hl); color: #15202a; font: 700 clamp(11px, 1.6vw, 14px)/1.25 var(--f-mono); padding: 10px 14px 10px 26px; border-radius: 4px 12px 12px 4px; transform: rotate(6deg); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .5); }
.casefile .evtag::before { content: ""; position: absolute; left: 9px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px #15202a; }
.casefile .lens { position: absolute; right: 22%; bottom: 20%; width: 26%; aspect-ratio: 1; border-radius: 50%; border: 8px solid #15202a; background: rgba(255, 255, 255, .25); backdrop-filter: blur(1px) saturate(1.4); animation: hover 6s infinite ease-in-out; }
.casefile .lens::after { content: ""; position: absolute; width: 14%; height: 70%; background: #15202a; border-radius: 6px; left: 88%; top: 82%; transform: rotate(-45deg); transform-origin: top; }
@keyframes hover { 50% { transform: translate(-10px, -8px) rotate(-4deg); } }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.stats div { padding: 26px 22px; border-left: 1px solid var(--line); display: grid; gap: 4px; }
.stats div:first-child { border-left: 0; }
.stats b { font: 800 clamp(30px, 4vw, 44px)/1 var(--f-display); font-stretch: 112%; }
.stats span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats div:nth-child(3) { border-left: 0; } .stats div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: grid; gap: 10px; align-content: start; position: relative; }
.step::before { counter-increment: s; content: "0" counter(s); font: 600 13px/1 var(--f-mono); color: var(--accent-ink); letter-spacing: .1em; }
.step p { color: var(--ink-2); font-size: 15.5px; }
.step .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--teal-wash); color: var(--teal-ink); display: grid; place-items: center; }
.step .ico svg { width: 24px; height: 24px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Product lines */
.lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { .lines { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .lines { grid-template-columns: 1fr; } }
.line-card {
  appearance: none; text-align: left; cursor: pointer; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px;
  display: grid; gap: 12px; align-content: start; position: relative; overflow: hidden; transition: transform .18s, box-shadow .18s, border-color .18s; color: var(--ink);
}
.line-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.line-card .chip { justify-self: start; }
.line-card p { color: var(--ink-2); font-size: 15.5px; }
.line-card .foot { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; color: var(--muted); margin-top: 4px; }
.line-card .foot b { color: var(--accent-ink); font-weight: 700; }
.line-card.feature { grid-column: span 2; background: var(--night); color: var(--night-ink); border-color: var(--night); }
.line-card.feature p { color: color-mix(in srgb, var(--night-ink) 80%, transparent); }
.line-card.feature .foot { color: color-mix(in srgb, var(--night-ink) 70%, transparent); }
.line-card.feature .foot b { color: var(--hl); }
.line-card.feature h3 { font-size: 30px; }
@media (max-width: 600px) { .line-card.feature { grid-column: auto; } }
.line-card .art { position: absolute; right: -18px; top: -18px; width: 120px; height: 120px; opacity: .14; color: currentColor; }

.chip { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 6px; background: var(--paper-2); color: var(--ink-2); }
.chip.red { background: var(--accent-wash); color: var(--accent-ink); }
.chip.teal { background: var(--teal-wash); color: var(--teal-ink); }
.chip.yellow { background: var(--hl); color: #15202a; }
.chip.good { background: var(--good-wash); color: var(--good); }

/* Shop explorer */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { appearance: none; border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink-2); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 14.5px; cursor: pointer; }
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filter .n { font: 500 12px var(--f-mono); opacity: .7; margin-left: 4px; }
.search { flex: 1 1 240px; display: flex; align-items: center; gap: 8px; background: var(--card); border: 1.5px solid var(--line-2); border-radius: 999px; padding: 0 16px; min-width: 0; max-width: 380px; margin-left: auto; }
.search:focus-within { border-color: var(--teal); }
.search input { border: 0; background: transparent; padding: 10px 0; width: 100%; outline: none; min-width: 0; }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
@media (max-width: 700px) { .search { max-width: none; margin-left: 0; } }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 14px; }
.product { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: grid; grid-template-rows: auto 1fr auto; gap: 10px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.product:hover { color: var(--ink); border-color: var(--accent); transform: translateY(-2px); }
.product .t { font-weight: 700; line-height: 1.35; font-size: 16px; }
.product .sub { color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.product .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.product .price { font: 800 19px/1 var(--f-display); }
.product .price.free { color: var(--good); }
.product .go { font-weight: 700; font-size: 14px; color: var(--accent-ink); display: inline-flex; gap: 6px; align-items: center; }
.empty { padding: 32px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line-2); border-radius: 12px; }
.more-row { display: flex; justify-content: center; margin-top: 24px; }

/* Phenomenon finder */
.finder { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .finder { grid-template-columns: 1fr; } }
.finder aside { position: sticky; top: 92px; display: grid; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
@media (max-width: 900px) { .finder aside { position: static; } }
.finder aside h3 { font-size: 14px; font: 600 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.finder .count { font: 800 46px/1 var(--f-display); font-stretch: 112%; }
.phen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.phen { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 8px; align-content: start; border-top: 4px solid var(--c, var(--teal)); }
.phen[data-disc="PS"] { --c: #c8402a; } .phen[data-disc="LS"] { --c: #1f8a3b; } .phen[data-disc="ESS"] { --c: #2a6fc9; } .phen[data-disc="ETS"] { --c: #b8860b; }
.phen .code { font: 600 12px/1 var(--f-mono); color: var(--muted); letter-spacing: .04em; }
.phen .t { font: 750 18px/1.15 var(--f-display); font-stretch: 105%; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13.5px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* Signup */
.signup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
@media (max-width: 900px) { .signup { grid-template-columns: 1fr; gap: 32px; } }
.signup ul.gets { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.signup ul.gets li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.signup ul.gets li svg { width: 24px; height: 24px; color: var(--hl); margin-top: 1px; }
.form-card { background: var(--card); color: var(--ink); border-radius: 20px; padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); display: grid; gap: 16px; position: relative; border: 1px solid var(--line); }
.form-card h3 { font-size: 26px; }
.form-card .fine { font-size: 13.5px; color: var(--muted); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 14.5px; }
.field input, .field select { width: 100%; border: 1.5px solid var(--line-2); background: var(--paper); border-radius: 12px; padding: 14px 14px; font-size: 16.5px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-wash); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 460px) { .form-row { grid-template-columns: 1fr; } }
.form-msg { font-size: 14.5px; border-radius: 10px; padding: 12px 14px; }
.form-msg.err { background: var(--accent-wash); color: var(--accent-ink); }
.form-msg.ok { background: var(--good-wash); color: var(--good); }
.inline-signup { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-signup input { flex: 1 1 220px; min-width: 0; border: 1.5px solid var(--line-2); background: var(--card); border-radius: 999px; padding: 13px 18px; font-size: 16px; }
.inline-signup input:focus { outline: none; border-color: var(--teal); }

/* Play teaser */
.play-teaser { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
@media (max-width: 900px) { .play-teaser { grid-template-columns: 1fr; } }
.cups { display: flex; gap: 14px; justify-content: center; align-items: flex-end; padding: 34px 16px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; flex-wrap: wrap; }
.cup { width: 74px; display: grid; justify-items: center; gap: 8px; font: 700 13px/1 var(--f-mono); color: var(--ink-2); }
.cup .glass { width: 62px; height: 84px; border: 3px solid var(--ink); border-top: 0; border-radius: 0 0 12px 12px; position: relative; overflow: hidden; background: color-mix(in srgb, var(--card) 60%, transparent); }
.cup .glass i { position: absolute; inset: auto 0 0 0; height: var(--h, 60%); background: var(--liq, #9fd9f0); }

/* About + FAQ */
.about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }
.portrait { aspect-ratio: 4 / 5; border-radius: 22px; background: var(--paper-2); border: 1px solid var(--line); display: grid; place-items: center; position: relative; overflow: hidden; max-width: 420px; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .ph { text-align: center; color: var(--muted); font-size: 14px; padding: 20px; }
.portrait .ph svg { width: 64px; height: 64px; margin: 0 auto 12px; color: var(--line-2); }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.values div { border-top: 3px solid var(--accent); padding-top: 12px; display: grid; gap: 4px; }
.values b { font-family: var(--f-display); font-size: 17px; }
.values span { font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 600px) { .values { grid-template-columns: 1fr; } }
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 600 22px/1 var(--f-mono); color: var(--accent-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; color: var(--ink-2); }

/* Footer */
.site-foot { background: var(--night); color: color-mix(in srgb, var(--night-ink) 82%, transparent); padding-block: 56px 32px; font-size: 15px; }
.site-foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .site-foot .cols { grid-template-columns: 1fr; } }
.site-foot h4 { color: var(--night-ink); font-size: 14px; font-family: var(--f-mono); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.site-foot a { color: var(--night-ink); text-decoration: none; }
.site-foot a:hover { color: var(--hl); }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-foot .logo { color: var(--night-ink); }
.site-foot .logo small { color: color-mix(in srgb, var(--night-ink) 60%, transparent); }
.site-foot .base { border-top: 1px solid color-mix(in srgb, var(--night-ink) 16%, transparent); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.site-foot .inline-signup input { background: color-mix(in srgb, var(--night-ink) 8%, transparent); border-color: color-mix(in srgb, var(--night-ink) 25%, transparent); color: var(--night-ink); }
.theme-btn { appearance: none; background: none; border: 1px solid color-mix(in srgb, var(--night-ink) 30%, transparent); color: inherit; border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 13px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 12px; z-index: 80; box-shadow: var(--shadow); font-weight: 700; max-width: calc(100% - 32px); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
