/* ══════════════════════════════════════════════════════════════════════
   Reveil — web design system.
   Palette and type ported straight from the iOS app (Color+Reveil.swift,
   AppFont.swift) so the site and the app read as one product.
   ══════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Euclid Circular B';
  src: url('/fonts/EuclidCircularB-Light.otf') format('opentype');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Euclid Circular B';
  src: url('/fonts/EuclidCircularB-Regular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Euclid Circular B';
  src: url('/fonts/EuclidCircularB-RegularItalic.otf') format('opentype');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Euclid Circular B';
  src: url('/fonts/EuclidCircularB-Medium.otf') format('opentype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Euclid Circular B';
  src: url('/fonts/EuclidCircularB-Semibold.otf') format('opentype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Euclid Circular B';
  src: url('/fonts/EuclidCircularB-Bold.otf') format('opentype');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  /* Surfaces */
  --rv-background: #f1f1f3;
  --rv-surface: #ffffff;
  --rv-surface-sunken: #e8e8eb;

  /* Accent */
  --rv-accent: #16a34a;
  --rv-accent-deep: #0f7a37;
  --rv-accent-soft: #e3f5e9;

  /* Text */
  --rv-text-primary: #0a0a0a;
  --rv-text-secondary: #6c6c72;
  --rv-text-tertiary: #a2a2a9;

  /* Streak — the one warm ramp in the product */
  --rv-streak: #f07a3c;
  --rv-streak-deep: #d95e28;
  --rv-streak-soft: #fde9db;
  --rv-streak-glow: #ffd9bc;

  --rv-separator: #e2e2e6;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(10, 10, 10, .05), 0 4px 14px rgba(10, 10, 10, .04);
  --shadow-md: 0 2px 6px rgba(10, 10, 10, .06), 0 18px 44px rgba(10, 10, 10, .07);
  --shadow-lg: 0 8px 24px rgba(10, 10, 10, .08), 0 40px 90px rgba(10, 10, 10, .12);

  --wrap: 1120px;
  --pad: clamp(20px, 5vw, 40px);
}

/* ── Reset ─────────────────────────────────────────────────────────── */

*, *::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;
  background: var(--rv-background);
  color: var(--rv-text-primary);
  font-family: 'Euclid Circular B', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--rv-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.wrap--narrow { max-width: 780px; }

/* ── Reveal on scroll ──────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s cubic-bezier(.2, .7, .3, 1) var(--d, 0ms),
              transform .7s cubic-bezier(.2, .7, .3, 1) var(--d, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Buttons ───────────────────────────────────────────────────────── */

/* Black, not green — same call the app makes in `RVPrimaryButtonStyle`, so the
   accent stays a highlight colour rather than becoming the button colour. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--rv-text-primary);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(10, 10, 10, .18);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(10, 10, 10, .26);
}
.btn:active { transform: translateY(0); }

.btn--sm { padding: 9px 17px; font-size: 14px; }
.btn--lg { padding: 15px 27px; font-size: 16.5px; }

.btn--invert {
  background: var(--rv-surface);
  color: var(--rv-text-primary);
  box-shadow: var(--shadow-md);
}
.btn--invert:hover { background: #fff; box-shadow: var(--shadow-lg); }

/* ── Nav ───────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241, 241, 243, .72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.is-stuck {
  border-bottom-color: var(--rv-separator);
  background: rgba(241, 241, 243, .88);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 66px;
}

.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
/* The icon carries its own dark squircle, so no plate behind it. */
.brand__mark {
  display: block;
  width: 34px; height: 34px;
  flex: none;
}
.brand__mark img { width: 100%; height: 100%; border-radius: 9px; }
.brand__name { font-weight: 600; font-size: 18px; letter-spacing: -.01em; }

.nav__links { display: flex; gap: 26px; }
.nav__links a {
  font-size: 15px;
  color: var(--rv-text-secondary);
  transition: color .18s ease;
}
.nav__links a:hover { color: var(--rv-text-primary); }

@media (max-width: 860px) { .nav__links { display: none; } }

/* ── Eyebrow ───────────────────────────────────────────────────────── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--rv-accent-deep);
  background: var(--rv-accent-soft);
  padding: 6px 13px;
  border-radius: var(--r-pill);
}
.eyebrow--muted {
  background: transparent;
  color: var(--rv-text-tertiary);
  padding: 0;
}
.eyebrow--streak { background: var(--rv-streak-soft); color: var(--rv-streak-deep); }

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--rv-accent);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .18);
  animation: pulse 2.4s ease-in-out infinite;
}
.dot--streak { background: var(--rv-streak); box-shadow: 0 0 0 3px rgba(240, 122, 60, .2); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* ── Hero ──────────────────────────────────────────────────────────── */

.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 92px) 0 clamp(60px, 9vw, 110px); }

.hero__glow {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 620px;
  background:
    radial-gradient(45% 55% at 18% 30%, rgba(22, 163, 74, .13), transparent 70%),
    radial-gradient(40% 50% at 82% 18%, rgba(240, 122, 60, .12), transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero__title {
  margin: 20px 0 0;
  font-size: clamp(42px, 6.6vw, 72px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -.035em;
}
.hero__title .mark {
  position: relative;
  color: var(--rv-accent);
  white-space: nowrap;
}
.hero__title .mark::after {
  content: '';
  position: absolute;
  left: -4px; right: -4px; bottom: .05em;
  height: .2em;
  border-radius: var(--r-pill);
  background: var(--rv-accent-soft);
  z-index: -1;
}

.hero__sub {
  margin-top: 20px;
  max-width: 33em;
  font-size: clamp(16.5px, 1.5vw, 18.5px);
  color: var(--rv-text-secondary);
}

.hero__cta { margin-top: 32px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.hero__art { display: grid; place-items: center; }

/* Stacked: the headline earns the first screen, the phone follows it. */
@media (max-width: 940px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { margin-top: 14px; }
}

/* ── Phone mock ────────────────────────────────────────────────────── */

.phone { position: relative; width: min(300px, 78vw); }

.phone__frame {
  position: relative;
  border-radius: 46px;
  padding: 11px;
  background: linear-gradient(160deg, #2a2a2e, #131316 55%, #232327);
  box-shadow: var(--shadow-lg);
  animation: float 7s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .phone__frame { animation: none; } }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.phone__screen {
  border-radius: 36px;
  overflow: hidden;
  background: var(--rv-background);
  aspect-ratio: 9 / 19.5;
}

.scr {
  height: 100%;
  padding: 14px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
}

.scr__status {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-weight: 600;
  padding: 0 4px 6px;
}
.scr__status-icons { display: flex; gap: 4px; align-items: center; }
.scr__status-icons i {
  display: block;
  background: var(--rv-text-primary);
  border-radius: 1.5px;
  opacity: .85;
}
.ic-sig { width: 13px; height: 9px; clip-path: polygon(0 70%,20% 70%,20% 100%,0 100%,25% 45%,45% 45%,45% 100%,25% 100%,50% 22%,70% 22%,70% 100%,50% 100%,75% 0,95% 0,95% 100%,75% 100%); }
.ic-wifi { width: 12px; height: 9px; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.ic-bat { width: 18px; height: 9px; border-radius: 2.5px; }

.scr__label {
  margin-top: 10px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--rv-accent-deep);
  background: var(--rv-accent-soft);
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

.scr__time {
  margin-top: 8px;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.05;
}

.scr__dots { display: flex; gap: 6px; margin-top: 8px; }
.scr__dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--rv-surface-sunken);
}
.scr__dots .is-done { background: var(--rv-accent); }

.scr__problem {
  width: 100%;
  margin-top: 14px;
  background: var(--rv-surface);
  border-radius: var(--r-md);
  padding: 14px 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.scr__eq { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.scr__answer {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 600;
  color: var(--rv-accent);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
}
.scr__caret {
  width: 2px; height: 19px;
  background: var(--rv-accent);
  border-radius: 1px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.scr__pad {
  width: 100%;
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.scr__key {
  display: grid;
  place-items: center;
  height: 34px;
  border-radius: 11px;
  background: var(--rv-surface);
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(10, 10, 10, .05);
}
.scr__key.is-go { background: var(--rv-accent); color: #fff; }

.scr__hint {
  margin-top: auto;
  padding-top: 10px;
  font-size: 10.5px;
  color: var(--rv-text-tertiary);
  text-align: center;
}

.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--rv-surface);
  border-radius: var(--r-pill);
  padding: 9px 15px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  animation: float 7s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .chip { animation: none; } }

.chip--streak {
  top: 14%;
  right: -14%;
  color: var(--rv-streak-deep);
  animation-delay: -2.2s;
}
.chip--nosnooze {
  bottom: 15%;
  left: -13%;
  color: var(--rv-accent-deep);
  animation-delay: -4.4s;
}

/* The floating chips need room outside the frame; below that they would sit
   on top of the screen itself, so they go away. */
@media (max-width: 560px) {
  .phone { width: min(268px, 74vw); }
  .chip { display: none; }
}

/* ── Sections ──────────────────────────────────────────────────────── */

.section { padding: clamp(64px, 9vw, 118px) 0; }
.section--sunken { background: var(--rv-surface-sunken); }

.section__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }

.section__title {
  margin-top: 14px;
  font-size: clamp(30px, 4.2vw, 47px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.section__lede {
  margin-top: 18px;
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--rv-text-secondary);
  max-width: 36em;
}

@media (max-width: 700px) { .br-md { display: none; } }

/* ── Problem cards ─────────────────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 18px;
}

.card {
  background: var(--rv-surface);
  border-radius: var(--r-lg);
  padding: 30px 26px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.card__stat {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1;
  color: var(--rv-streak);
}
.card__title { margin-top: 16px; font-size: 19.5px; font-weight: 600; letter-spacing: -.015em; }
.card__body { margin-top: 10px; font-size: 15.5px; color: var(--rv-text-secondary); }

.pull {
  margin-top: clamp(38px, 5vw, 58px);
  padding-left: 22px;
  border-left: 3px solid var(--rv-accent);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.35;
  max-width: 22em;
}

/* ── Steps ─────────────────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2px;
  background: var(--rv-separator);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.step {
  background: var(--rv-surface);
  padding: 32px 26px 36px;
  transition: background .25s ease;
}
.step:hover { background: #fff; }

.step__n {
  display: inline-grid;
  place-items: center;
  min-width: 34px; height: 34px;
  border-radius: var(--r-pill);
  background: var(--rv-accent-soft);
  color: var(--rv-accent-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}
.step__title { margin-top: 18px; font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.step__body { margin-top: 8px; font-size: 15.5px; color: var(--rv-text-secondary); }

/* ── Missions ──────────────────────────────────────────────────────── */

.missions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: 18px;
}

.mission {
  position: relative;
  background: var(--rv-surface);
  border-radius: var(--r-lg);
  padding: 28px 24px 30px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.mission::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--rv-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.2, .7, .3, 1);
}
.mission:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.mission:hover::after { transform: scaleX(1); }

.mission__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--rv-accent-soft);
  color: var(--rv-accent-deep);
}
.micon { width: 24px; height: 24px; }

.mission__title { margin-top: 18px; font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.mission__blurb { margin-top: 6px; font-size: 15px; font-weight: 500; color: var(--rv-accent-deep); }
.mission__detail { margin-top: 10px; font-size: 15px; color: var(--rv-text-secondary); }

/* ── Coming soon ───────────────────────────────────────────────────── */

.soon {
  margin-top: 22px;
  background: var(--rv-surface);
  border: 1px dashed var(--rv-separator);
  border-radius: var(--r-lg);
  padding: 24px 26px 26px;
  box-shadow: none;
}
.soon__label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--rv-text-tertiary);
}
.soon__list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.soon__item { display: flex; align-items: center; gap: 13px; font-size: 15.5px; }
.soon__icon {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  flex: none;
  border-radius: 12px;
  background: var(--rv-surface-sunken);
  color: var(--rv-text-tertiary);
}
.soon__icon .micon { width: 20px; height: 20px; }
.soon__blurb { display: block; font-size: 14.5px; color: var(--rv-text-secondary); }

/* ── Streak ────────────────────────────────────────────────────────── */

.streak-sec__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}
.section__lede--left { margin-left: 0; }

@media (max-width: 860px) { .streak-sec__inner { grid-template-columns: 1fr; } }

.streak-card {
  position: relative;
  background: var(--rv-surface);
  border-radius: var(--r-xl);
  padding: 34px 30px 32px;
  text-align: center;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.streak-card::before {
  content: '';
  position: absolute;
  inset: -55% -20% auto -20%;
  height: 280px;
  background: radial-gradient(50% 60% at 50% 50%, var(--rv-streak-glow), transparent 70%);
  opacity: .75;
  pointer-events: none;
}

.streak-card__flame {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px; height: 62px;
  margin: 0 auto;
  border-radius: var(--r-pill);
  background: var(--rv-streak-soft);
  color: var(--rv-streak);
}
.streak-card__num {
  position: relative;
  margin-top: 16px;
  font-size: 68px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.045em;
  color: var(--rv-streak-deep);
}
.streak-card__label {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--rv-text-secondary);
  margin-top: 6px;
}

.streak-card__week {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 24px;
}
.streak-card__day {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--rv-surface-sunken);
  color: var(--rv-text-tertiary);
  font-size: 12.5px;
  font-weight: 600;
}
.streak-card__day.is-on {
  background: var(--rv-streak);
  color: #fff;
}

/* ── FAQ ───────────────────────────────────────────────────────────── */

.faq { display: grid; gap: 12px; }

.faq__item {
  background: var(--rv-surface);
  border-radius: var(--r-md);
  padding: 4px 22px;
  box-shadow: var(--shadow-sm);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.012em;
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }

.faq__chev {
  flex: none;
  width: 11px; height: 11px;
  border-right: 2px solid var(--rv-text-tertiary);
  border-bottom: 2px solid var(--rv-text-tertiary);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .25s ease;
}
.faq__item[open] .faq__chev { transform: rotate(-135deg) translate(-2px, -2px); }

.faq__a {
  padding: 0 0 20px;
  font-size: 15.5px;
  color: var(--rv-text-secondary);
  max-width: 52em;
}

/* ── Final CTA ─────────────────────────────────────────────────────── */

.cta {
  background: linear-gradient(150deg, var(--rv-accent-deep), var(--rv-accent) 62%, #1cb455);
  color: #fff;
  padding: clamp(64px, 8vw, 104px) 0;
}
.cta__inner { text-align: center; display: grid; justify-items: center; gap: 14px; }
.cta__title {
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 700;
  letter-spacing: -.032em;
  line-height: 1.1;
}
.cta__sub { font-size: 17px; color: rgba(255, 255, 255, .88); max-width: 30em; }
.cta .btn { margin-top: 12px; }

/* ── Footer ────────────────────────────────────────────────────────── */

.footer { background: var(--rv-background); padding-top: 52px; }

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 34px;
}
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__name { font-weight: 600; font-size: 17px; }
.footer__tag { font-size: 14.5px; color: var(--rv-text-secondary); }

.footer__links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 15px; color: var(--rv-text-secondary); }
.footer__links a { transition: color .18s ease; }
.footer__links a:hover { color: var(--rv-accent-deep); }

.footer__legal {
  border-top: 1px solid var(--rv-separator);
  padding-block: 22px 34px;
  font-size: 13.5px;
  color: var(--rv-text-tertiary);
}

/* ── Simple pages (privacy, 404) ───────────────────────────────────── */

.page { padding: clamp(50px, 7vw, 90px) 0 clamp(60px, 8vw, 100px); }
.page h1 { font-size: clamp(32px, 4.4vw, 46px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.page h2 { margin-top: 34px; font-size: 21px; font-weight: 600; letter-spacing: -.015em; }
.page p { margin-top: 12px; color: var(--rv-text-secondary); }
.page .updated { margin-top: 10px; font-size: 14px; color: var(--rv-text-tertiary); }
.page .btn { margin-top: 28px; }

/* ── Legal document ────────────────────────────────────────────────── */

.doc__lede {
  margin-top: 18px;
  font-size: 17px;
  color: var(--rv-text-secondary);
}

.doc__section {
  margin-top: 42px;
  padding-top: 34px;
  border-top: 1px solid var(--rv-separator);
}
.doc__section:first-of-type { margin-top: 46px; }

.doc h2 {
  margin-top: 0;
  font-size: clamp(21px, 2.4vw, 25px);
  font-weight: 700;
  letter-spacing: -.022em;
}

.doc h3 {
  margin-top: 28px;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--rv-text-primary);
}
.doc h3:first-of-type { margin-top: 20px; }

.doc ul {
  margin-top: 10px;
  display: grid;
  gap: 9px;
}
.doc li {
  position: relative;
  padding-left: 20px;
  font-size: 15.5px;
  color: var(--rv-text-secondary);
}
.doc li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: .62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rv-accent);
  opacity: .55;
}
.doc li strong, .doc p strong { color: var(--rv-text-primary); font-weight: 600; }

.doc p { font-size: 15.5px; }
.doc a { color: var(--rv-accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.doc a:hover { color: var(--rv-accent); }
/* Third-party policy URLs are long — let them break rather than overflow. */
.doc li a { overflow-wrap: anywhere; }

/* All-caps legal blocks: smaller and looser so a wall of capitals stays
   readable, and never the body's near-black. */
.doc__caps {
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: .005em;
}
.doc__caps strong { color: var(--rv-text-secondary); font-weight: 600; }

.doc__updated {
  margin-top: 42px;
  padding: 16px 20px;
  background: var(--rv-surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  font-size: 14.5px;
  color: var(--rv-text-secondary);
}
