:root {
  --room: #0c0806;        /* the dark room the desk sits in */
  --walnut: #2a170d;      /* wood, in shadow */
  --glow: #f4fdff;        /* Classic Glow line white */
  --cyan: #40d9ff;        /* the app's accent: taps, highlights */
  --paper: #ffffff;
  --mist: #f5f5f7;
  --ink: #1d1d1f;
  --slate: #6e6e73;
  --hairline: #d2d2d7;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: max(16px, env(safe-area-inset-left));
  --measure: 34rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--glow); color: var(--room); padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---- top bar -------------------------------------------------------------------------------- */
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top)) var(--gutter) 14px;
  max-width: 1200px; margin: 0 auto;
  color: var(--glow);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand img { border-radius: 50%; }
.topbar-cta {
  text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(244, 253, 255, 0.35);
  transition: border-color .2s, background-color .2s;
}
.topbar-cta:hover { border-color: var(--glow); background: rgba(244, 253, 255, 0.08); }

/* ---- hero ----------------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--room);
  color: var(--glow);
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-canvas { width: 100%; height: 100%; touch-action: manipulation; cursor: pointer; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero[data-hero="video"] .hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(12, 8, 6, .75), rgba(12, 8, 6, 0) 35%, rgba(12, 8, 6, 0) 60%, rgba(12, 8, 6, .85));
}
.hero-inner {
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100svh;
  padding: 0 var(--gutter);
  pointer-events: none;
}
.hero-copy, .hero-join { pointer-events: auto; }
.hero-copy { text-align: center; padding-top: clamp(88px, 12vh, 140px); }
.hero h1 {
  margin: 0 auto;
  font-size: clamp(2.6rem, 7.4vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.042em;
  font-weight: 650;
  max-width: 13ch;
  text-wrap: balance;
  text-shadow: 0 0 28px rgba(64, 217, 255, 0.18);
}
.lead {
  margin: clamp(14px, 2.2vh, 22px) auto 0;
  max-width: 31ch;
  font-size: clamp(1.125rem, 1.9vw, 1.5rem);
  line-height: 1.35;
  letter-spacing: -0.012em;
  color: rgba(244, 253, 255, 0.74);
  text-wrap: balance;
}
.hero-stage { flex: 1 1 auto; min-height: clamp(150px, min(34vw, 33vh), 440px); }
.hero-join {
  width: 100%; max-width: 34rem; margin: 0 auto;
  padding-bottom: max(40px, env(safe-area-inset-bottom));
  text-align: center;
}
.join-line { margin: 0 0 14px; text-wrap: balance; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--glow); }

/* ---- signup form (always on dark) ----------------------------------------------------------- */
.signup { text-align: left; }
.field-row {
  display: flex; gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(244, 253, 255, 0.08);
  border: 1px solid rgba(244, 253, 255, 0.24);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: border-color .2s, box-shadow .2s;
}
.field-row:focus-within { border-color: rgba(64, 217, 255, 0.8); box-shadow: 0 0 0 4px rgba(64, 217, 255, 0.15), 0 0 30px rgba(64, 217, 255, 0.15); }
.field-row input {
  flex: 1 1 auto; min-width: 0;
  font: inherit; font-size: 17px;
  color: var(--glow);
  background: transparent; border: 0;
  padding: 10px 6px 10px 16px;
}
.field-row input::placeholder { color: rgba(244, 253, 255, 0.45); }
.field-row input:focus { outline: none; }
.field-row button {
  flex: 0 0 auto;
  font: inherit; font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--room); background: var(--glow);
  border: 0; border-radius: 999px;
  padding: 11px 20px;
  cursor: pointer;
  transition: background-color .2s, box-shadow .2s, transform .1s;
}
.field-row button:hover { box-shadow: 0 0 22px rgba(64, 217, 255, 0.45); }
.field-row button:active { transform: scale(0.97); }
.field-row button:disabled { opacity: .7; cursor: progress; }

.extras {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 22px;
  margin-top: 14px;
  font-size: 14px; color: rgba(244, 253, 255, 0.72);
}
.seg { border: 0; margin: 0; padding: 0; display: flex; align-items: center; gap: 10px; min-width: 0; }
.seg legend { float: left; padding: 0; margin-right: 10px; }
.seg-options { display: inline-flex; padding: 2px; border-radius: 999px; background: rgba(244, 253, 255, 0.08); border: 1px solid rgba(244, 253, 255, 0.16); }
.seg-options label { position: relative; cursor: pointer; }
.seg-options input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg-options span { display: block; padding: 5px 12px; border-radius: 999px; transition: background-color .15s, color .15s; }
.seg-options input:checked + span { background: var(--glow); color: var(--room); font-weight: 600; }
.seg-options input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 1px; }
.select-wrap { display: inline-flex; align-items: center; gap: 10px; }
.select-wrap select {
  font: inherit; font-size: 14px;
  color: var(--glow);
  background: rgba(244, 253, 255, 0.08);
  border: 1px solid rgba(244, 253, 255, 0.16);
  border-radius: 999px;
  padding: 5px 30px 5px 12px;
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  max-width: 100%;
}
.select-wrap select option { color: var(--ink); background: var(--paper); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; margin: 10px 0 0; font-size: 14px; text-align: center; color: #ffd27a; }
.form-status:empty { min-height: 0; margin: 0; }
.signup-done { text-align: center; padding: 10px 0 4px; }
.done-title { margin: 0; font-size: clamp(1.375rem, 3vw, 1.75rem); font-weight: 650; letter-spacing: -0.025em; color: var(--glow); text-shadow: 0 0 24px rgba(64, 217, 255, 0.35); }
.done-detail { margin: 6px 0 0; color: rgba(244, 253, 255, 0.7); }
.signup-count { margin: 12px 0 0; font-size: 14px; color: rgba(244, 253, 255, 0.6); text-align: center; }

/* ---- features (bright) ---------------------------------------------------------------------- */
.feature {
  max-width: 1200px; margin: 0 auto;
  padding: clamp(72px, 12vw, 148px) var(--gutter) 0;
}
.feature-text { max-width: var(--measure); }
.feature h2, .faq h2, .closing h2 {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 650;
  text-wrap: balance;
}
.feature-text p { margin: 18px 0 0; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.5; color: var(--slate); letter-spacing: -0.008em; }
.feature-text p + p { margin-top: 12px; }

.shot {
  position: relative;
  margin: clamp(32px, 5vw, 56px) 0 0;
  border-radius: clamp(18px, 2.4vw, 28px);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--mist);
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot.has-photo .placeholder { display: none; }
.shot.optional:not(.has-photo) { display: none; }
.placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background:
    radial-gradient(120% 90% at 50% 110%, #ebebef 0%, rgba(235, 235, 239, 0) 60%),
    var(--mist);
}
.placeholder svg { width: min(78%, 900px); height: auto; opacity: .9; }

.demo {
  margin-top: clamp(28px, 4vw, 48px);
  display: grid; gap: 22px;
}
.preview {
  border-radius: clamp(18px, 2.4vw, 28px);
  padding: clamp(22px, 5vw, 64px) clamp(14px, 4vw, 56px);
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(255, 190, 130, 0.16), rgba(0, 0, 0, 0) 60%),
    repeating-linear-gradient(178deg, rgba(0, 0, 0, 0) 0 7px, rgba(0, 0, 0, 0.12) 7px 8px, rgba(0, 0, 0, 0) 8px 19px, rgba(255, 220, 180, 0.04) 19px 20px),
    linear-gradient(180deg, #3a2213, var(--walnut));
}
.preview svg { width: 100%; height: auto; overflow: visible; }
.preview text { font-family: var(--font); font-weight: 500; }
.preview[data-theme="ghost"] .ghost-key { opacity: 0; transition: opacity .25s; }
.preview[data-theme="ghost"] .k:hover .ghost-key { opacity: .8; }
.preview-caption { margin: clamp(14px, 3vw, 26px) 0 0; text-align: center; font-size: 14px; color: rgba(244, 253, 255, 0.62); }
.preview.light { background: var(--mist); }

.control-group { display: grid; gap: 10px; }
.control-label { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.control-label .hint { font-weight: 400; color: var(--slate); margin-left: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-size: 15px;
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: border-color .15s, background-color .15s, color .15s;
}
.chip:hover { border-color: #a1a1a6; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.swatch {
  width: 16px; height: 16px; border-radius: 5px;
  background: var(--sw-a);
  box-shadow: inset 0 0 0 1.5px var(--sw-b);
}

/* ---- FAQ ------------------------------------------------------------------------------------ */
.faq {
  max-width: 1200px; margin: 0 auto;
  padding: clamp(88px, 12vw, 148px) var(--gutter) clamp(88px, 12vw, 148px);
}
.faq h2 { margin-bottom: clamp(20px, 3vw, 36px); }
.faq details { max-width: 46rem; border-top: 1px solid var(--hairline); }
.faq details:last-of-type { border-bottom: 1px solid var(--hairline); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem); font-weight: 600; letter-spacing: -0.012em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 auto; width: 10px; height: 10px;
  border-right: 2px solid var(--slate); border-bottom: 2px solid var(--slate);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { margin: -6px 0 22px; max-width: 40rem; color: var(--slate); font-size: 17px; }

/* ---- closing signup (dark again) ------------------------------------------------------------ */
.closing {
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(255, 180, 120, 0.14), rgba(0, 0, 0, 0) 70%),
    repeating-linear-gradient(179deg, rgba(0, 0, 0, 0) 0 9px, rgba(0, 0, 0, 0.14) 9px 10px, rgba(0, 0, 0, 0) 10px 23px, rgba(255, 220, 180, 0.035) 23px 24px),
    linear-gradient(180deg, var(--room), #2b180d 55%, var(--room));
  color: var(--glow);
  text-align: center;
  padding: clamp(88px, 13vw, 156px) var(--gutter);
}
.closing h2 { max-width: 16ch; margin: 0 auto 14px; text-shadow: 0 0 28px rgba(64, 217, 255, 0.18); }
.closing .join-line { font-weight: 400; color: rgba(244, 253, 255, 0.74); margin-bottom: 26px; }
.closing-form { max-width: 34rem; margin: 0 auto; }

/* ---- footer --------------------------------------------------------------------------------- */
.footer {
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center;
  max-width: 1200px; margin: 0 auto;
  padding: 28px var(--gutter) max(28px, env(safe-area-inset-bottom));
  font-size: 13px; color: var(--slate);
}
.footer span:first-child { color: var(--ink); font-weight: 600; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .fine { margin-left: auto; }
.noscript { text-align: center; padding: 12px; background: #fff3cd; margin: 0; }

/* ---- wider screens -------------------------------------------------------------------------- */
@media (min-width: 900px) {
  .demo { grid-template-columns: 1fr 1fr; align-items: start; }
  .demo .preview { grid-column: 1 / -1; }
}

/* ---- phones --------------------------------------------------------------------------------- */
@media (max-width: 560px) {
  .field-row { flex-direction: column; border-radius: 22px; padding: 6px; }
  .field-row input { padding: 12px 12px; text-align: center; }
  .field-row button { padding: 13px 20px; }
  .extras { flex-direction: column; gap: 12px; }
  .seg { flex-direction: column; gap: 8px; }
  .seg legend { float: none; margin: 0 0 8px; text-align: center; width: 100%; }
  .select-wrap { flex-direction: column; gap: 8px; }
  .footer .fine { margin-left: 0; width: 100%; }
  .chip { font-size: 14px; padding: 7px 12px; }
}

/* ---- privacy page --------------------------------------------------------------------------- */
.doc { max-width: 40rem; margin: 0 auto; padding: clamp(40px, 8vw, 96px) var(--gutter) 64px; }
.doc .back { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; margin-bottom: clamp(32px, 6vw, 64px); }
.doc .back img { border-radius: 50%; }
.doc h1 { text-wrap: balance; font-size: clamp(2.2rem, 5vw, 3.25rem); line-height: 1.06; letter-spacing: -0.035em; font-weight: 650; margin: 0 0 12px; }
.doc h2 { font-size: 1.25rem; letter-spacing: -0.015em; margin: 36px 0 8px; }
.doc p, .doc li { color: #424245; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 6px; }
.doc .updated { color: var(--slate); font-size: 15px; margin: 0; }
