/* measured — shared styles. Same palette as the app: warm paper, near-black ink, oxblood accent. */
:root {
  --bg: #F6F1EA;
  --surface: #FFFFFF;
  --ink: #16130F;
  --ink-soft: #3A342D;
  --muted: #7A7168;
  --line: #E4DCD1;
  --accent: #7B1E2C;
  --gold: #B08440;
  --measure: 34rem;
}

* { box-sizing: border-box; }

/* display:flex on .fields would otherwise beat the hidden attribute, which is how the consented
   questions ended up visible before anyone had consented. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0 1.25rem;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.wrap { max-width: var(--measure); margin: 0 auto; padding: 3.5rem 0 4rem; }

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: normal; line-height: 1.2; }
h1 { font-size: clamp(2.1rem, 8vw, 2.75rem); margin: 0 0 0.75rem; letter-spacing: -0.01em; }
h2 { font-size: 1.5rem; margin: 2.5rem 0 0.5rem; }
h3 { font-size: 1.15rem; margin: 1.75rem 0 0.35rem; }

p, li { color: var(--ink-soft); overflow-wrap: break-word; }
li { margin-bottom: 0.4rem; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }

.lede { font-size: 1.2rem; line-height: 1.55; color: var(--ink-soft); margin: 0 0 2rem; }
.meta { color: var(--muted); font-size: 0.9rem; }

/* Landing */
/* The lockup: the app's icon beside the wordmark. Everything scales from --plate, so one class
   serves the hero, the page headers and anywhere else it's needed. */
.lockup {
  --plate: 34px;
  display: inline-flex; align-items: center; gap: 0.55em;
  text-decoration: none;
}
.lockup .plate {
  width: var(--plate); flex: none; aspect-ratio: 1;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--ink); border-radius: 22%;
}
.lockup .plate b {
  font-family: Georgia, serif; font-weight: normal; line-height: 0.82;
  font-size: calc(var(--plate) * 0.53); color: var(--bg);
}
.lockup .ticks {
  display: flex; align-items: flex-start; justify-content: space-between;
  width: calc(var(--plate) * 0.44); height: calc(var(--plate) * 0.10);
  margin-top: calc(var(--plate) * 0.06);
  border-top: max(1px, calc(var(--plate) * 0.028)) solid var(--gold);
}
.lockup .ticks i { display: block; width: max(1px, calc(var(--plate) * 0.028)); background: var(--gold); }
.lockup .word {
  font-family: Georgia, serif; line-height: 1;
  font-size: calc(var(--plate) * 0.70); color: var(--ink);
}
.hero .lockup { --plate: 60px; margin-bottom: 1.75rem; }
.doc .lockup { margin-bottom: 2rem; }
.points { list-style: none; padding: 0; margin: 2rem 0; }
.points li {
  padding: 1rem 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr; gap: 0.15rem;
}
.points b { font-family: Georgia, serif; font-weight: normal; font-size: 1.15rem; color: var(--ink); }
.points span { color: var(--muted); font-size: 0.95rem; }

.cta {
  display: inline-block; background: var(--ink); color: var(--bg);
  padding: 0.85rem 1.5rem; border-radius: 999px; text-decoration: none; font-weight: 600;
}
.cta:hover { background: var(--accent); }
/* Secondary action beside the waitlist button. Outlined so it never competes with it. */
.cta.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.cta.ghost:hover { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.note { color: var(--muted); font-size: 0.9rem; margin-top: 1rem; }

footer {
  margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.9rem;
}
footer a { color: var(--muted); margin-right: 1.25rem; display: inline-block; }

/* Long-form legal pages */
.doc h2 { border-top: 1px solid var(--line); padding-top: 1.75rem; }
.doc .scroll { overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.95rem; }
.doc th, .doc td { text-align: left; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--ink); font-weight: 600; }
.doc td { color: var(--ink-soft); }
.back { display: inline-block; margin-bottom: 2rem; color: var(--muted); text-decoration: none; }

@media (prefers-color-scheme: dark) {
  :root { --bg: #14110E; --surface: #1C1815; --ink: #F4EFE8; --ink-soft: #D6CEC3; --muted: #9A9188; --line: #2E2822; --accent: #D98A96; --gold: #8A6630; }
  .cta { background: var(--ink); color: var(--bg); }
}

/* ---------------------------------------------------------------------------
   Landing page: hero with a device mockup. The mockup is plain CSS rather than
   a screenshot so it can't go stale while the app is still changing.
   --------------------------------------------------------------------------- */

.wrap.wide { max-width: 60rem; }

.hero { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 880px) {
  .hero { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; }
  .hero h1 { font-size: 3.25rem; }
}

.phone {
  width: 258px; margin: 0 auto;
  background: var(--ink); border-radius: 2.4rem; padding: 0.55rem;
  box-shadow: 0 32px 64px -24px rgba(22, 19, 15, 0.5), 0 0 0 1px rgba(22, 19, 15, 0.08);
}
/* The app has no dark mode -- it is warm paper in every screen -- so the mockup redefines the
   palette tokens locally and stays light even when the site around it goes dark. Everything
   inside inherits these, so no child needs a dark-mode override of its own. */
.screen {
  --bg: #F6F1EA; --surface: #FFFFFF; --ink: #16130F; --ink-soft: #3A342D;
  --muted: #7A7168; --line: #E4DCD1; --accent: #7B1E2C;
  background: var(--bg); border-radius: 1.95rem; overflow: hidden; padding: 0.85rem 0.85rem 0.5rem;
}

/* The app's own header: wordmark left, filters right. The full stop is accented in the app, and
   it is the detail people recognise the product by, so it is a separate element rather than text. */
.shot-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.35rem; }
.shot-mark { font-family: Georgia, serif; font-size: 0.92rem; color: var(--ink); }
.shot-mark i { font-style: normal; color: var(--accent); }
.shot-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.45rem; height: 1.45rem; border-radius: 999px; background: var(--surface);
}
.shot-icon svg { width: 11px; height: 11px; stroke: var(--ink); fill: none; stroke-width: 1.5; stroke-linecap: round; }

/* Name only -- age lives in the vitals row below, the same way the app does it. */
.shot-name { font-family: Georgia, serif; font-size: 1.5rem; color: var(--ink); margin: 0 0 0.5rem; }

.shot-frame { position: relative; }
.shot-photo {
  /* height:auto is load-bearing: the img carries width/height attributes to stop layout shift,
     and without this the attribute height wins and aspect-ratio is ignored. */
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5;
  border-radius: 0.85rem; object-fit: cover;
  background: linear-gradient(150deg, #3B2A24 0%, #9C6B52 100%);
}
.shot-like {
  position: absolute; right: 0.5rem; bottom: 0.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.85rem; height: 1.85rem; border-radius: 999px; background: var(--surface);
  box-shadow: 0 2px 8px rgba(22, 19, 15, 0.22);
}
.shot-like svg { width: 14px; height: 14px; stroke: var(--accent); fill: none; stroke-width: 1.5; stroke-linejoin: round; }

/* Tab bar. Only the shapes matter at this size, so the glyphs are simplified. */
.shot-tabs {
  display: flex; align-items: center; justify-content: space-around;
  margin-top: 0.7rem; padding-top: 0.5rem; border-top: 1px solid var(--line);
}
.shot-tabs span { position: relative; display: inline-flex; }
.shot-tabs svg { width: 15px; height: 15px; stroke: var(--muted); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.shot-tabs .on svg { stroke: var(--ink); }
.shot-tabs .badge svg { stroke: var(--accent); fill: var(--accent); }
.shot-tabs .badge i {
  position: absolute; top: -0.3rem; right: -0.35rem;
  min-width: 0.85rem; height: 0.85rem; padding: 0 0.15rem; border-radius: 999px;
  background: var(--accent); color: #fff;
  font: 600 0.52rem/0.85rem -apple-system, sans-serif; font-style: normal; text-align: center;
}
.shot-vitals {
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border-radius: 0.7rem; padding: 0.5rem 0.3rem; margin-top: 0.6rem;
  font-size: 0.64rem; color: var(--ink-soft);
}
.shot-vitals span { display: inline-flex; align-items: center; gap: 0.2rem; padding: 0 0.38rem; white-space: nowrap; }
.shot-vitals span + span { border-left: 1px solid var(--line); }
.shot-vitals svg { width: 11px; height: 11px; flex: none; stroke: var(--muted); fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* The locked variant of the stats card, matching the app's "matches only" state. */
.shot-stats.locked { display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 66px; }
.shot-stats.locked p { margin: 0; color: #B9AFA4; font-size: 0.68rem; }
.shot-stats.locked svg { width: 12px; height: 12px; stroke: #B9AFA4; fill: none; stroke-width: 1.6; }

.shot-stats {
  background: var(--ink); border-radius: 0.85rem; padding: 0.8rem 0.9rem 0.9rem; margin-top: 0.6rem;
}
.shot-stats h4 {
  margin: 0 0 0.6rem; font: 600 0.62rem/1 -apple-system, sans-serif;
  letter-spacing: 0.09em; text-transform: uppercase; color: #B9AFA4;
}
.shot-figures { display: flex; }
.shot-figures div { flex: 1; text-align: center; }
.shot-figures div + div { border-left: 1px solid rgba(255, 255, 255, 0.14); }
.shot-figures b { display: block; font-family: Georgia, serif; font-weight: normal; font-size: 1.5rem; color: #F6F1EA; }
.shot-figures span { font-size: 0.62rem; color: #B9AFA4; letter-spacing: 0.06em; text-transform: uppercase; }

@media (prefers-color-scheme: dark) {
  /* Only the bezel follows the site. The screen keeps its own light palette, set on .screen. */
  .phone { box-shadow: 0 32px 64px -24px rgba(0, 0, 0, 0.7); background: #2E2822; }
}

/* ---------------------------------------------------------------------------
   Waitlist form
   --------------------------------------------------------------------------- */

.join { margin: 1.75rem 0 0; }
.join .fields { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.join input[type="email"] { flex: 1 1 15rem; min-width: 0; }
.join select { flex: 0 1 8.5rem; }
.join input, .join select {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 0.6rem; padding: 0.8rem 0.9rem;
  appearance: none;
}
.join select { background-image: none; }
.join input:focus, .join select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.join button {
  font: inherit; font-weight: 600; cursor: pointer;
  background: var(--ink); color: var(--bg); border: 0;
  border-radius: 999px; padding: 0.85rem 1.5rem; margin-top: 0.6rem;
}
.join button:hover:not(:disabled) { background: var(--accent); }
.join button:disabled { opacity: 0.55; cursor: default; }
.join .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.join .said { margin-top: 0.75rem; font-size: 0.92rem; }
.join .said.bad { color: var(--accent); }
.join .small { color: var(--muted); font-size: 0.85rem; margin: 0.75rem 0 0; }
.done { background: var(--surface); border-radius: var(--r, 0.9rem); padding: 1.25rem 1.4rem; margin: 1.75rem 0 0; }
.done b { font-family: Georgia, serif; font-weight: normal; font-size: 1.25rem; display: block; margin-bottom: 0.25rem; }
.done p { margin: 0; font-size: 0.95rem; }
.join .tick { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 0.85rem; cursor: pointer; }
.join .tick input { margin: 0.15rem 0 0; accent-color: var(--accent); flex: none; width: auto; }
.join .tick span { font-size: 0.85rem; color: var(--muted); line-height: 1.45; }

/* Waitlist page: stacked labelled fields rather than the inline row used in the hero. */
.join .field { display: block; margin-bottom: 1rem; }
.join .field .lab { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 0.35rem; }
.join .field input, .join .field select { width: 100%; }
#seekRow { border-left: 2px solid var(--line); padding-left: 1rem; margin: 0.25rem 0 0.5rem; }

/* ---------------------------------------------------------------------------
   Demo page: the screen recording, in the same device frame as the landing page.
   The video is taller than most viewports, so it is capped by height as well as
   width — otherwise the controls sit below the fold on a laptop.
   --------------------------------------------------------------------------- */

.phone.player {
  width: min(300px, 76vw);
  padding: 0.5rem;
  margin-bottom: 1rem;
}
/* The height cap is desktop-only. On a phone the viewport is short enough that it would win
   over the width and shrink the video to about 220px, and scrolling down a phone page is
   cheap anyway -- it is only on a laptop that the controls would land below the fold. */
@media (min-width: 880px) {
  .phone.player { max-width: calc((100svh - 16rem) * 720 / 1560); }
}
.phone.player video {
  /* Same note as .shot-photo: the width/height attributes are there to reserve
     space, and without height:auto they beat aspect-ratio. */
  display: block; width: 100%; height: auto;
  aspect-ratio: 720 / 1560;
  border-radius: 1.95rem;
  background: var(--ink);
}
