/* CrewBrief public pages — tokens from native CBTheme / CBType / CBRadius.
   Porcelain (light). Inter for text and headlines. JetBrains Mono only for
   labels at 11px. Primary actions are ink, not green. */

@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/jetbrains-mono-500.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/jetbrains-mono-600.woff2") format("woff2"); }

:root {
  --bg: #F5F4F0;
  --card: #FFFFFF;
  --elev: #FBFAF7;
  --graphite: #17181B;
  --ink: #111214;
  --ink-2: #474A4F;
  --ink-3: #6E7277;
  --muted: #8C8F94;
  --hairline: rgba(17, 18, 20, 0.08);
  --hairline-strong: rgba(17, 18, 20, 0.14);
  --green: #2F7D57;
  --green-dim: rgba(47, 125, 87, 0.12);
  --amber: #A2742B;
  --red: #B2463E;
  --info: #44709C;
  --rest: #6A66A3;
  --chip: #EFEEE9;
  --on-dark: #F2F2F0;
  --on-dark-2: #B9BCC1;
  --green-dark: #62B58A;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r-card: 13px;
  --r-inner: 10px;
  --r-chip: 8px;
  --r-btn: 10px;
  --r-symbol: 9px;
  --shadow: 0 1px 1px rgba(17, 18, 20, 0.05);
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip {
  position: absolute; left: 12px; top: -40px; background: var(--ink); color: var(--on-dark);
  padding: 8px 12px; border-radius: var(--r-btn); z-index: 20;
}
.skip:focus { top: 12px; }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 12px;
}
h1, h2, h3 { color: var(--ink); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.04em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.035em; }
h3 { font-size: 20px; letter-spacing: -0.02em; }
.lede { font-size: 17px; line-height: 1.55; max-width: 38rem; margin: 16px 0 0; color: var(--ink-2); }

.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(245, 244, 240, 0.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; letter-spacing: -0.02em; }
.brand img { width: 28px; height: 28px; border-radius: var(--r-symbol); display: block; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav a { text-decoration: none; font-size: 15px; color: var(--ink-2); padding: 10px 2px; }
.nav a:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; border: 0; cursor: pointer;
  background: var(--ink); color: var(--on-dark);
  border-radius: var(--r-btn); padding: 12px 18px; min-height: 44px;
  box-shadow: var(--shadow);
}
.btn:hover { background: #000; }
.btn-line { background: var(--card); color: var(--ink); border: 1px solid var(--hairline-strong); box-shadow: none; }
.btn-line:hover { background: var(--elev); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.hero { padding: 48px 0 24px; display: grid; gap: 36px; align-items: center; }
.beta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px;
  background: var(--card); color: var(--green);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-chip); padding: 6px 10px;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.cta-block { margin-top: 22px; display: grid; gap: 14px; }
.cta-store, .cta-android, .cta-qr { display: none; }
html.is-ios .cta-store,
html.is-android .cta-android,
html.is-desktop .cta-store,
html.is-desktop .cta-android,
html.is-desktop .cta-qr,
html:not(.is-ios):not(.is-android):not(.is-desktop) .cta-store,
html:not(.is-ios):not(.is-android):not(.is-desktop) .cta-android { display: block; }
.badge { display: inline-block; line-height: 0; }
.badge img { width: 160px; height: 54px; }
.store-note { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); }
.store-note a { color: var(--ink); }
.qr-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-card);
  box-shadow: var(--shadow); padding: 12px; max-width: 360px;
}
.qr-card img { width: 96px; height: 96px; }
.qr-card p { margin: 0; font-size: 14px; color: var(--ink-2); }

form.waitlist {
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-card);
  box-shadow: var(--shadow); padding: 16px; display: grid; gap: 10px; max-width: 440px;
}
form.waitlist p { margin: 0; font-size: 14px; color: var(--ink-2); }
label.field { display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--elev);
  border: 1px solid var(--hairline-strong); border-radius: var(--r-inner);
  padding: 12px; width: 100%;
}
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-2); }
.check input { width: 18px; height: 18px; margin-top: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.2em; font-size: 14px; color: var(--green); }
.form-msg.err { color: var(--red); }
.row2 { display: grid; gap: 10px; }
@media (min-width: 640px) {
  .hero { grid-template-columns: 1.1fr 0.9fr; padding: 72px 0 40px; }
  .row2 { grid-template-columns: 1fr 1fr; }
  .nav .hide-sm { display: inline; }
}
@media (max-width: 639px) { .nav .hide-sm { display: none; } }

.device {
  width: min(280px, 72vw);
  margin-inline: auto;
  background: var(--graphite);
  border-radius: 36px;
  padding: 8px;
  box-shadow: var(--shadow), 0 24px 48px rgba(17, 18, 20, 0.12);
}
.device img { display: block; width: 100%; height: auto; border-radius: 28px; background: #000; }

section { padding: 64px 0; }
.band { background: var(--card); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.grid { display: grid; gap: 12px; }
@media (min-width: 800px) { .grid.cols-2 { grid-template-columns: 1fr 1fr; } .grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-card);
  box-shadow: var(--shadow); padding: 16px;
}
.band .card { background: var(--elev); }
.card p { margin: 8px 0 0; font-size: 15px; }
.symbol {
  width: 32px; height: 32px; border-radius: var(--r-symbol);
  display: grid; place-items: center; margin-bottom: 12px;
  background: var(--green-dim); color: var(--green);
}
.symbol svg { width: 18px; height: 18px; }
.shot { margin-top: 14px; }
.shot img { border-radius: var(--r-inner); border: 1px solid var(--hairline); }

.steps { display: grid; gap: 12px; counter-reset: step; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 16px; box-shadow: var(--shadow); }
.step .n { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-2); text-transform: uppercase; }

.graphite {
  background: var(--graphite); color: var(--on-dark-2);
  border-radius: 20px; padding: 28px 22px;
}
.graphite h2, .graphite h3 { color: var(--on-dark); }
.graphite .eyebrow { color: var(--green-dark); }

details { border-top: 1px solid var(--hairline); }
details:last-of-type { border-bottom: 1px solid var(--hairline); }
summary { cursor: pointer; padding: 16px 0; color: var(--ink); font-weight: 600; letter-spacing: -0.01em; }
summary::-webkit-details-marker { display: none; }
details p { margin: 0 0 16px; font-size: 15px; }

.site-footer { padding: 28px 0 48px; color: var(--ink-2); font-size: 13px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

.reveal { }
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(12px); animation: rise 0.6s ease forwards; }
  .reveal.d2 { animation-delay: 0.08s; }
  .reveal.d3 { animation-delay: 0.16s; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

.sheet-back { position: fixed; inset: 0; background: rgba(17, 18, 20, 0.4); display: none; z-index: 30; }
.sheet-back.open { display: block; }
.sheet {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(560px, 100%); max-height: 92dvh; overflow: auto;
  background: var(--card); border-radius: 20px 20px 0 0;
  padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  z-index: 31; display: none;
}
.sheet.open { display: block; }
@media (min-width: 720px) {
  .sheet { top: 8vh; bottom: auto; border-radius: 20px; box-shadow: 0 24px 64px rgba(17,18,20,.18); }
}
.sheet h2 { font-size: 24px; }
.sheet form { display: grid; gap: 10px; margin-top: 14px; }
.fine { font-size: 13px; color: var(--ink-2); }
