/* Space Grotesk Medium (500), SIL OFL 1.1 — subset to numerals only.
   See fonts/OFL-SpaceGrotesk.txt. Same face the app bundles (ADR-016). */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/space-grotesk-500-numerals.woff2") format("woff2");
}

/* RawRep — rawrep.app
   Palette and type follow the app's own rules (PRD §6.2, ADR-014, ADR-017, ADR-023):
   dark-only, off-black/off-white, one accent (lime) reserved for ✓ / timer / CTA.
   Space Grotesk 500 is used for NUMERALS ONLY. Every word is SF Pro. */

:root {
  --ink:      #0B0B0D;
  --panel:    #16161A;
  --panel-2:  #1B1B21;
  --chalk:    #F2F2F0;
  --ash:      #8A8A93;
  --ghost:    rgba(242, 242, 240, 0.30);
  --volt:     #C6FF00;
  --line:     rgba(242, 242, 240, 0.09);
  --line-2:   rgba(242, 242, 240, 0.16);

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  --num:  "Space Grotesk", "Helvetica Neue", Arial, sans-serif;

  --max: 1120px;
  --gut: 24px;
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 20px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--chalk);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--chalk); text-decoration: none; }
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible + .tick { outline: 2px solid var(--volt); outline-offset: 3px; border-radius: 4px; }

/* Numerals — the one place Space Grotesk is allowed. */
.n {
  font-family: var(--num);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.n-lg { letter-spacing: -0.02em; }

/* ---------- layout ---------- */

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

.section { padding: 140px 0; border-top: 1px solid var(--line); }

.eyebrow {
  display: block;
  margin: 0 0 22px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ash);
}

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }

h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.06; max-width: 15ch; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }

.lede {
  margin: 24px 0 0;
  max-width: 46ch;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ash);
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 11, 13, 0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav-in {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand .mark { width: 24px; height: 24px; fill: var(--chalk); }
.brand .word { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }

.nav-links { margin-left: auto; display: flex; gap: 28px; font-size: 15px; }
.nav-links a { color: var(--ash); transition: color 0.2s; }
.nav-links a:hover { color: var(--chalk); }

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; padding: 96px 0 132px; }

/* depth only — no glow */
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 620px;
  background: radial-gradient(60% 100% at 62% 0%, rgba(242, 242, 240, 0.055), transparent 70%);
  pointer-events: none;
}

.hero-in { position: relative; display: grid; grid-template-columns: 1fr; gap: 64px; align-items: center; }

h1 {
  font-size: clamp(40px, 6.6vw, 72px);
  line-height: 1.02;
  max-width: 11ch;
}

.hero .lede { font-size: 20px; max-width: 40ch; }

.badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 40px; }

.store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 56px;
  padding: 9px 26px;
  border-radius: 14px;
  background: var(--volt);
  color: var(--ink);
  cursor: default;
}
.store .k {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.3;
  opacity: 0.72;
}
.store .v { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }

.badge-note { font-size: 15px; color: var(--ash); }

.spec {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--ash);
}
.spec li { display: flex; align-items: center; gap: 8px; }
.spec li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-2);
}

/* ---------- device frame ---------- */

.phone {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding: 11px;
  border-radius: 55px;
  background: linear-gradient(158deg, #43434c 0%, #1d1d24 26%, #121218 62%, #35353d 100%);
  box-shadow:
    0 2px 1px rgba(255, 255, 255, 0.10) inset,
    0 44px 90px -28px rgba(0, 0, 0, 0.95),
    0 12px 34px -14px rgba(0, 0, 0, 0.8);
}

.phone-screen {
  position: relative;
  border-radius: 44px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.9);
}

.phone-screen img { width: 100%; height: auto; }

.island {
  position: absolute;
  top: 1.15%;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 3.1%;
  border-radius: 99px;
  background: #000;
}

.phone--sm { max-width: 268px; border-radius: 48px; padding: 9px; }
.phone--sm .phone-screen { border-radius: 39px; }

.caption { margin: 22px auto 0; max-width: 42ch; text-align: center; font-size: 14px; color: var(--ash); }

/* ---------- lock screen mock ---------- */

.lock {
  position: relative;
  aspect-ratio: 402 / 874;
  padding: 13% 20px 26px;
  border-radius: 44px;
  overflow: hidden;
  background:
    radial-gradient(120% 60% at 50% 0%, #23232b 0%, #131318 46%, #0b0b0d 100%);
  display: flex;
  flex-direction: column;
}

.lock-date {
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: rgba(242, 242, 240, 0.72);
}

.lock-time {
  margin-top: 2px;
  text-align: center;
  font-size: clamp(56px, 20vw, 78px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--chalk);
}

/* the Live Activity card */
.la {
  margin-top: auto;
  padding: 16px 18px 18px;
  border-radius: 22px;
  background: rgba(22, 22, 26, 0.92);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07) inset, 0 18px 40px -18px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.la-head { display: flex; align-items: center; gap: 8px; }
.la-head .mark { width: 15px; height: 15px; fill: var(--chalk); flex: none; }
.la-app {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ash);
}
.la-set {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ash);
}
.la-name {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.la-row { display: flex; align-items: flex-end; gap: 12px; margin-top: 2px; }
.la-time {
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--volt);
}
.la-btns { margin-left: auto; display: flex; gap: 8px; padding-bottom: 10px; }
.la-btns span {
  padding: 7px 13px;
  border-radius: 99px;
  background: rgba(242, 242, 240, 0.10);
  font-size: 13px;
  font-weight: 600;
  color: var(--chalk);
}
.la-bar {
  margin-top: 12px;
  height: 5px;
  border-radius: 99px;
  background: rgba(242, 242, 240, 0.14);
  overflow: hidden;
}
.la-bar i { display: block; height: 100%; width: 68%; border-radius: 99px; background: var(--volt); }

/* ---------- the set-row demo (signature) ---------- */

.demo { max-width: 520px; margin-top: 44px; }

.demo-head {
  display: grid;
  grid-template-columns: 62px 84px 1fr 76px 60px;
  gap: 8px;
  padding: 0 18px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ash);
}
.demo-head span:nth-child(3),
.demo-head span:nth-child(4) { text-align: right; }
.demo-head span:last-child { text-align: center; }

.demo-card {
  border-radius: var(--r-l);
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  overflow: hidden;
}

.row {
  display: grid;
  grid-template-columns: 62px 84px 1fr 76px 60px;
  gap: 8px;
  align-items: center;
  height: 84px;
  padding: 0 18px;
  border-top: 1px solid var(--line);
}
.row:first-child { border-top: 0; }

.row-set { line-height: 1.15; }
.row-set .i { font-size: 17px; }
.row-set .t { display: block; font-size: 11px; color: var(--ash); }

.row-prev { font-size: 14px; color: var(--ash); }
.row-kg   { font-size: 30px; text-align: right; letter-spacing: -0.02em; }
.row-reps { font-size: 30px; text-align: right; letter-spacing: -0.02em; }

.tick {
  justify-self: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--chalk);
  background: var(--chalk);
  display: grid;
  place-items: center;
}
.tick svg { width: 20px; height: 20px; stroke: var(--ink); stroke-width: 2.6; fill: none; }

/* pending row — ghosted autofill, the app's own AC-04.3 behaviour */
.row--pending .row-kg,
.row--pending .row-reps { color: var(--ghost); transition: color 0.45s ease 0.06s; }
.row--pending .tick { border-color: var(--line-2); background: transparent; transition: background 0.3s, border-color 0.3s, transform 0.3s; }
.row--pending .tick svg { opacity: 0; transform: scale(0.5); transition: opacity 0.3s 0.06s, transform 0.3s 0.06s; }

.tick-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tick-label { justify-self: center; cursor: pointer; }

.tick-input:checked ~ .demo-card .row--pending .row-kg,
.tick-input:checked ~ .demo-card .row--pending .row-reps { color: var(--chalk); }
.tick-input:checked ~ .demo-card .row--pending .tick { background: var(--volt); border-color: var(--volt); }
.tick-input:checked ~ .demo-card .row--pending .tick svg { opacity: 1; transform: scale(1); }

.demo-hint {
  margin: 16px 0 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ash);
}
.demo-hint b { color: var(--chalk); font-weight: 600; }
.demo-hint .n { color: var(--chalk); }
.hint-b { display: none; }
.tick-input:checked ~ .demo-hint .hint-a { display: none; }
.tick-input:checked ~ .demo-hint .hint-b { display: inline; }

/* ---------- benefit list ---------- */

.benefits { margin: 40px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.benefits li { padding: 20px 0; border-top: 1px solid var(--line); }
.benefits p { margin: 6px 0 0; font-size: 16px; color: var(--ash); max-width: 44ch; }

/* ---------- pricing ---------- */

.tiers { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 64px; }

.tier {
  padding: 34px 30px 32px;
  border-radius: var(--r-l);
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  display: flex;
  flex-direction: column;
}
.tier--pro { background: linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 100%); }

.tier-name {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ash);
}
.tier-price { margin-top: 14px; font-size: 44px; line-height: 1; letter-spacing: -0.02em; }
.tier-price .u { font-family: var(--sans); font-size: 17px; font-weight: 400; color: var(--ash); letter-spacing: 0; }
.tier-sub { margin: 10px 0 0; font-size: 15px; color: var(--ash); }

.checks { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 13px; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: 16px; }
.checks svg { width: 16px; height: 16px; margin-top: 5px; stroke: var(--volt); stroke-width: 2.4; fill: none; }

.plans { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.plan { display: flex; align-items: baseline; gap: 12px; font-size: 15px; color: var(--ash); }
.plan b { color: var(--chalk); font-weight: 600; }
.plan .amt { margin-left: auto; color: var(--chalk); }

/* ---------- privacy cards ---------- */

.cards { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 64px; }
.card {
  padding: 30px 28px 32px;
  border-radius: var(--r-l);
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}
.card .n-big { font-size: 15px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ash); }
.card h3 { margin-top: 16px; }
.card p { margin: 10px 0 0; font-size: 16px; color: var(--ash); }

.fineprint { margin: 60px 0 0; font-size: 15px; color: var(--ash); max-width: 62ch; }
.fineprint a { color: var(--chalk); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.fineprint a:hover { text-decoration-color: var(--chalk); }

/* ---------- FAQ ---------- */

.faq { margin-top: 56px; max-width: 880px; }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }

.faq summary {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  margin-left: auto;
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 1.5px solid var(--ash);
  border-bottom: 1.5px solid var(--ash);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }

.faq p { margin: 0 0 28px; padding-right: 40px; font-size: 17px; color: var(--ash); max-width: 62ch; }
.faq a { color: var(--chalk); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }

/* ---------- prose pages ---------- */

.prose { padding: 76px 0 120px; }
.prose-in { max-width: 680px; margin: 0 auto; }

.prose h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.06; max-width: none; }
.prose h2 { font-size: 23px; line-height: 1.25; max-width: none; margin: 56px 0 0; }
.prose h2 + p { margin-top: 14px; }
.prose p { margin: 20px 0 0; font-size: 18px; line-height: 1.65; color: rgba(242, 242, 240, 0.86); }
.prose ul { margin: 20px 0 0; padding-left: 22px; }
.prose li { margin: 0 0 10px; font-size: 18px; line-height: 1.6; color: rgba(242, 242, 240, 0.86); }
.prose a { color: var(--chalk); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.prose a:hover { text-decoration-color: var(--chalk); }
.prose .meta { margin-top: 14px; font-size: 15px; color: var(--ash); }
.prose .secondary { color: var(--ash); font-size: 16px; }

.prose dl { margin: 44px 0 0; }
.prose dt {
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.prose dd { margin: 12px 0 28px; font-size: 17px; line-height: 1.65; color: var(--ash); }

.kicker {
  display: inline-block;
  margin-bottom: 26px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ash);
}

/* ---------- footer ---------- */

.foot { border-top: 1px solid var(--line); padding: 56px 0 64px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; font-size: 15px; color: var(--ash); }
.foot-links { display: flex; flex-wrap: wrap; gap: 28px; margin-left: auto; }
.foot a { color: var(--ash); transition: color 0.2s; }
.foot a:hover { color: var(--chalk); }
.foot .brand .mark { width: 18px; height: 18px; fill: var(--ash); }
.foot .brand .word { font-size: 15px; color: var(--ash); }

/* ---------- reveal ---------- */

.rv { opacity: 0; transform: translateY(16px); }
.rv-on { transition: opacity 0.75s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.75s cubic-bezier(0.2, 0.7, 0.3, 1); }
.rv-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (min-width: 768px) {
  .tiers { grid-template-columns: 1fr 1fr; gap: 24px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .benefits { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

@media (min-width: 1024px) {
  .hero { padding: 112px 0 156px; }
  .hero-in { grid-template-columns: 1.06fr 0.94fr; gap: 72px; }
  .split { grid-template-columns: 1fr 1fr; gap: 88px; }
  .split--flip .split-media { order: -1; }
  .phone { max-width: 340px; }
  .phone--sm { max-width: 300px; }
  .lock { border-radius: 44px; }
}

@media (max-width: 767px) {
  .section { padding: 88px 0; }
  .hero { padding: 56px 0 84px; }
  .row, .demo-head { grid-template-columns: 52px 70px 1fr 62px 52px; }
  .row { height: 76px; padding: 0 14px; }
  .demo-head { padding: 0 14px 10px; font-size: 10px; }
  .row-kg, .row-reps { font-size: 26px; }
  .tick { width: 40px; height: 40px; }
  .foot-links { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv, .rv-on, .rv-in { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}

.tick-input:focus-visible ~ .demo-card .tick-label { outline: 2px solid var(--volt); outline-offset: 3px; }

/* Guide screenshots */
.shot { margin: 1.25rem 0 1.75rem; }
.shot img { display:block; width:min(300px, 80%); height:auto; margin:0 auto; border-radius:22px; box-shadow:0 12px 40px rgba(0,0,0,.55); border:1px solid rgba(255,255,255,.06); }
.shot figcaption { text-align:center; font-size:.85rem; opacity:.7; margin-top:.6rem; }
