:root {
  --paper: #f5f1ea;
  --paper-edge: #ece5d8;
  --surface: #ffffff;
  --ink: #1a1714;
  --ink-soft: #5c544a;
  --ink-mute: #8e867b;
  --brand: #c8623a;
  --brand-deep: #a24e2c;
  --brand-wash: #fbeee2;
  --again: #d14b4b;
  --good: #3f8f6e;
  --easy: #d9a227;
  --hairline: #e6ded3;
  --hairline-strong: #cdc3b3;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;
  --shadow-soft: 0 1px 2px rgba(20, 15, 10, 0.06), 0 8px 24px rgba(20, 15, 10, 0.08);
  --shadow-card: 0 8px 32px rgba(20, 15, 10, 0.1);
  --shadow-lift: 0 14px 44px rgba(20, 15, 10, 0.16);
  --display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --ui: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
}

.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--ink);
}

.italic {
  font-style: italic;
}

.muted {
  color: var(--ink-soft);
}

.faint {
  color: var(--ink-mute);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 234, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--hairline);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: 1180px;
  margin: 0 auto;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark .mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
}

.brand-mark .mark svg {
  width: 36px;
  height: 36px;
  display: block;
}

.wordmark {
  font-family: var(--display);
  font-style: italic;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-top: -2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  color: var(--ink-soft);
}

.nav-links a:hover {
  color: var(--ink);
}

.btn-pill {
  background: var(--ink);
  color: var(--paper);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 13px;
}

.btn-pill:hover {
  background: var(--brand);
}

/* Hero */
.hero {
  background: var(--paper);
  padding: 120px 32px 60px;
}

.hero-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 28px 0 0;
  color: var(--ink);
  font-weight: 400;
}

.hero p.lede {
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 32px 0 0;
  max-width: 520px;
}

.hero-cta {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  font-size: 13px;
  color: var(--ink-mute);
  flex-wrap: wrap;
}

.hero-art {
  position: relative;
  height: 600px;
}

.phone-frame {
  position: absolute;
  width: 280px;
  border-radius: 36px;
  background: var(--paper);
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--hairline);
  padding: 18px 14px;
  overflow: hidden;
}

.phone-screen {
  border-radius: 24px;
  background: var(--paper);
  padding: 16px;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-screen.front {
  background: var(--surface);
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
}

.phone-screen.front .display-card {
  font-family: var(--display);
  font-size: 56px;
  line-height: 1;
  font-style: italic;
  color: var(--ink);
}

.phone-screen.front .hint {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
}

.phone-frame.front {
  z-index: 3;
  left: calc(50% - 140px);
  top: 24px;
}

.phone-frame.left {
  transform: translate(-160px, 64px) rotate(-8deg) scale(0.9);
  opacity: 0.6;
  z-index: 1;
  left: calc(50% - 140px);
  top: 24px;
}

.phone-frame.right {
  transform: translate(170px, -10px) rotate(8deg) scale(0.9);
  opacity: 0.6;
  z-index: 2;
  left: calc(50% - 140px);
  top: 24px;
}

.deck-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-wash);
  color: var(--brand);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 600;
}

.deck-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 14px 16px;
  border: 1px solid var(--hairline);
}

.deck-card .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.deck-card .top .badge {
  background: var(--brand);
  color: var(--surface);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  padding: 2px 8px;
}

.deck-card h3 {
  font-family: var(--ui);
  font-size: 17px;
  margin: 6px 0 4px;
  font-weight: 600;
}

.deck-card p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.metric {
  font-family: var(--display);
  font-size: 48px;
  line-height: 1;
}

.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stats-tile {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 12px;
  text-align: left;
}

.stats-tile .label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  margin-top: 6px;
}

/* Store badges */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  height: 56px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 12px;
  font-weight: 500;
  min-width: 168px;
}

.store-badge .icon {
  display: inline-flex;
  width: 24px;
  height: 30px;
  align-items: center;
  justify-content: center;
}

.store-badge .copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.store-badge .copy .small {
  font-size: 11px;
  letter-spacing: 0.04em;
}

.store-badge .copy .large {
  font-size: 18px;
  margin-top: 2px;
}

.store-badge:hover {
  background: var(--brand);
}

/* Section common */
section {
  padding: 96px 32px;
}

.section-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: center;
}

section h2 {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 16px 0 0;
}

section p.lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 24px 0 0;
}

.checkmarks {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 14px;
}

.checkmarks li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 15px;
  color: var(--ink-soft);
}

.checkmarks li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand);
  margin-top: 6px;
  flex-shrink: 0;
}

.checkmarks strong {
  color: var(--ink);
  font-weight: 600;
}

/* How it works */
#how {
  background: var(--paper-edge);
  padding: 128px 32px;
}

#how .container {
  text-align: center;
}

#how h2 {
  margin: 16px auto 20px;
}

#how p.lede {
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
}

.gestures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 80px;
}

.gesture-card {
  background: var(--surface);
  padding: 36px;
  border-radius: var(--r-xl);
  border: 1px solid var(--hairline);
  text-align: left;
}

.gesture-card .arrow {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 36px;
  font-style: italic;
}

.gesture-card.again .arrow {
  background: rgba(209, 75, 75, 0.13);
  color: var(--again);
}

.gesture-card.easy .arrow {
  background: rgba(217, 162, 39, 0.16);
  color: var(--easy);
}

.gesture-card.good .arrow {
  background: rgba(63, 143, 110, 0.14);
  color: var(--good);
}

.gesture-card .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  margin-top: 22px;
  font-weight: 600;
}

.gesture-card h3 {
  font-family: var(--display);
  font-size: 38px;
  font-weight: 400;
  margin: 8px 0 12px;
}

.gesture-card p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* AI section */
#ai {
  background: var(--paper);
}

.preview-card {
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: 36px;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.preview-card .prompt {
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 16px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  font-family: var(--ui);
}

.preview-card .pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.preview-pill {
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--ink-soft);
}

.preview-pill.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.preview-card .generate {
  background: var(--brand);
  color: var(--surface);
  border: none;
  font-family: var(--ui);
  font-size: 16px;
  font-weight: 600;
  height: 56px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Groups section */
#groups {
  background: var(--ink);
  color: var(--paper);
}

#groups h2 {
  color: var(--paper);
}

#groups p.lede {
  color: rgba(245, 241, 234, 0.7);
}

#groups .checkmarks {
  color: rgba(245, 241, 234, 0.7);
}

#groups .checkmarks strong {
  color: var(--paper);
}

#groups .leaderboard {
  background: rgba(245, 241, 234, 0.05);
  border: 1px solid rgba(245, 241, 234, 0.12);
  border-radius: var(--r-lg);
  padding: 24px;
}

#groups .leaderboard .row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(245, 241, 234, 0.08);
}

#groups .leaderboard .row:last-child {
  border-bottom: 0;
}

#groups .leaderboard .avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-style: italic;
  font-size: 13px;
  color: #fff;
}

#groups .leaderboard .name {
  flex: 1;
  font-weight: 600;
  font-size: 14px;
}

#groups .leaderboard .you {
  background: var(--brand);
  color: var(--paper);
  padding: 1px 8px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9px;
  margin-left: 6px;
}

#groups .leaderboard .count {
  font-family: var(--display);
  font-size: 18px;
}

#groups .leaderboard .streak {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(245, 241, 234, 0.55);
  margin-left: 8px;
}

/* Stats section */
#stats {
  background: var(--paper);
}

.stat-tile-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-tile {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
  padding: 24px;
}

.stat-tile .number {
  font-family: var(--display);
  font-size: 56px;
  line-height: 1;
}

.stat-tile .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  margin-top: 8px;
}

.heatmap {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 18px;
  margin-top: 16px;
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 4px;
}

.heatmap-grid .day {
  height: 28px;
  border-radius: 4px;
  background: var(--hairline);
}

.heatmap-grid .day.light {
  background: var(--brand-wash);
}

.heatmap-grid .day.medium {
  background: rgba(200, 98, 58, 0.5);
}

.heatmap-grid .day.dark {
  background: var(--brand);
}

/* Pricing */
#pricing {
  background: var(--paper-edge);
  padding: 128px 32px;
  text-align: center;
}

.price-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.price-card {
  background: var(--surface);
  padding: 40px;
  border-radius: var(--r-xl);
  border: 1px solid var(--hairline);
  text-align: left;
}

.price-card.dark {
  background: var(--ink);
  color: var(--paper);
  position: relative;
}

.price-card .tag {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--brand);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}

.price-card .name {
  font-family: var(--display);
  font-style: italic;
  font-size: 32px;
}

.price-card .amount {
  font-family: var(--display);
  font-size: 56px;
  margin-top: 8px;
  line-height: 1;
}

.price-card .amount .per {
  font-size: 28px;
  opacity: 0.6;
}

.price-card .desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 4px;
}

.price-card.dark .desc {
  color: rgba(245, 241, 234, 0.7);
}

.price-card .divider {
  height: 1px;
  background: var(--hairline);
  margin: 28px 0;
}

.price-card.dark .divider {
  background: rgba(245, 241, 234, 0.15);
}

.price-card ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-soft);
}

.price-card.dark ul {
  color: rgba(245, 241, 234, 0.85);
}

/* CTA */
#download {
  background: var(--paper);
  padding: 160px 32px 96px;
  text-align: center;
}

#download .mark-large {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

#download h2 {
  font-size: clamp(56px, 9vw, 88px);
  margin: 0 auto;
  max-width: 720px;
}

#download p {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 460px;
  margin: 20px auto 0;
}

#download .badges {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
footer {
  border-top: 1px solid var(--hairline);
  background: var(--paper);
  padding: 40px 32px;
}

.footer-row {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-mute);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-row nav {
  display: flex;
  gap: 24px;
}

.footer-row a:hover {
  color: var(--ink);
}

@media (max-width: 900px) {
  .nav-links a:not(.btn-pill) {
    display: none;
  }

  .hero {
    padding: 80px 24px 40px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-art {
    height: 480px;
  }

  .phone-frame {
    width: 240px;
  }

  .phone-frame.left,
  .phone-frame.right {
    display: none;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .gestures {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .price-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  section {
    padding: 64px 24px;
  }

  .container,
  .nav {
    padding-left: 20px;
    padding-right: 20px;
  }

  .stat-tile-row {
    grid-template-columns: 1fr;
  }
}

/* === v2 phone mockups (matches Diko in-app design) === */

.phone-frame {
  position: absolute;
  width: 280px;
  height: 580px;
  border-radius: 40px;
  background: var(--paper);
  box-shadow: 0 2px 6px rgba(20,15,10,0.10), 0 30px 70px rgba(20,15,10,0.18), inset 0 0 0 1px rgba(20,15,10,0.10);
  overflow: hidden;
  padding: 0;
  border: none;
}
.phone-frame.front {
  background: var(--paper);
}

.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 14px 26px 6px;
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.2px;
}
.phone-status.dark { color: var(--ink); }

.phone-content {
  height: calc(100% - 30px);
  display: flex;
  flex-direction: column;
}

/* --- deck list mockup --- */
.phone-decks { padding: 8px 0 16px; }
.phone-wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 24px 12px;
}
.wm-mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  overflow: hidden;
  display: inline-flex;
  box-shadow: 0 1px 2px rgba(20,15,10,0.06), 0 4px 10px rgba(20,15,10,0.06);
}
.wm-mark svg { width: 24px; height: 24px; display: block; }
.wm-text {
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.3px;
}

.phone-eyebrow {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1.6px;
  color: var(--ink-mute);
  padding: 0 24px 4px;
  text-transform: uppercase;
}
.phone-eyebrow.small { font-size: 8.5px; padding-top: 14px; }

.phone-hero {
  font-family: var(--display);
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.6px;
  color: var(--ink);
  padding: 0 24px;
  margin-top: 2px;
}
.phone-hero em { font-style: italic; color: var(--ink-soft); }
.phone-hero .num { font-feature-settings: 'tnum'; }

.phone-spread {
  font-family: var(--ui);
  font-size: 10px;
  color: var(--ink-soft);
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 24px 0;
}
.dot { width: 6px; height: 6px; border-radius: 999px; display: inline-block; margin-right: 4px; }
.dot.again { background: var(--again); }
.dot.good { background: var(--good); }
.dot.easy { background: var(--easy); }

.phone-deck-list-label {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 1.6px;
  color: var(--ink-mute);
  padding: 14px 24px 6px;
}

.phone-deck-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--hairline);
  margin: 4px 16px;
  padding: 9px 11px;
}
.phone-deck-row .thumb {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  position: relative;
}
.phone-deck-row .thumb::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 5px;
  background: rgba(255,255,255,0.18);
}
.phone-deck-row .deck-text { flex: 1; min-width: 0; }
.phone-deck-row .deck-title {
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}
.phone-deck-row .deck-sub {
  font-family: var(--ui);
  font-size: 10px;
  color: var(--ink-mute);
  margin-top: 1px;
}
.phone-deck-row .deck-due {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}
.phone-deck-row .deck-due .num {
  font-family: var(--display);
  font-size: 18px;
  line-height: 1;
  color: var(--ink-mute);
  font-feature-settings: 'tnum';
}
.phone-deck-row .deck-due .num.brand { color: var(--brand); }
.phone-deck-row .deck-due .lab {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.8px;
  color: var(--ink-mute);
}

/* --- review mockup --- */
.phone-review { padding: 0; }
.phone-review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 18px 8px;
}
.phone-review-header .x,
.phone-review-header .clock {
  font-size: 14px;
  color: var(--ink-soft);
  width: 18px;
  text-align: center;
}
.review-meta { text-align: center; }
.review-deck {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 1.6px;
  color: var(--ink-mute);
}
.review-progress {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 2px;
}
.review-progress .of { color: var(--ink-mute); font-weight: 400; }
.review-progress-track {
  height: 2px;
  background: var(--hairline);
  margin: 0 18px 10px;
  border-radius: 2px;
  overflow: hidden;
}
.review-progress-track > span {
  display: block;
  height: 100%;
  background: var(--ink);
}

.phone-review-card {
  background: var(--surface);
  border-radius: 22px;
  margin: 6px 18px;
  padding: 18px 18px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(20,15,10,0.05), 0 12px 32px rgba(20,15,10,0.10);
}
.phone-review-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.meta-eyebrow {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 1.4px;
  color: var(--ink-mute);
}
.meta-pill {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 7px;
  border-radius: 999px;
}
.meta-pill.new { background: var(--brand-wash); color: var(--brand); }

.phone-review-front {
  flex: 1;
  display: flex;
  align-items: center;
  font-family: var(--display);
  font-style: italic;
  font-size: 36px;
  letter-spacing: -0.7px;
  color: var(--ink);
  padding: 16px 0;
}
.phone-review-front em { font-style: italic; }

.phone-review-hint {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 1.4px;
  text-align: center;
  color: var(--ink-mute);
  padding-top: 4px;
}

.phone-review-buttons {
  display: flex;
  gap: 6px;
  padding: 10px 18px 14px;
}
.rb {
  flex: 1;
  height: 44px;
  border-radius: 14px;
  border: none;
  background: var(--surface);
  color: var(--ink-mute);
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  opacity: 0.5;
  cursor: default;
}
.rb-hint {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 500;
  opacity: 0.75;
}

/* --- stats mockup --- */
.phone-stats { padding: 8px 0 16px; }
.phone-stats .phone-eyebrow:first-child { padding-top: 6px; }
.stats-hero {
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.6px;
  color: var(--ink);
  padding: 2px 24px 0;
}
.stats-hero em { font-style: italic; }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding: 12px 24px 0;
}
.stats-tile-card {
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--hairline);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
}
.stats-tile-card .num {
  font-family: var(--display);
  font-size: 26px;
  line-height: 1;
  color: var(--ink);
  font-feature-settings: 'tnum';
}
.stats-tile-card .num.brand { color: var(--brand); }
.stats-tile-card .lab {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
  color: var(--ink);
}
.stats-tile-card .sub {
  font-family: var(--ui);
  font-size: 9px;
  color: var(--ink-mute);
  margin-top: 1px;
}

.phone-heatmap {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 60px;
  padding: 0 24px;
  margin-top: 4px;
}
.phone-heatmap span {
  flex: 1;
  background: var(--ink);
  border-radius: 1.5px;
  opacity: 0.7;
  min-height: 3px;
}

.spread-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 24px;
}
.spread-row .lab {
  width: 50px;
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
}
.spread-row .bar {
  flex: 1;
  height: 6px;
  background: var(--hairline);
  border-radius: 3px;
  overflow: hidden;
}
.spread-row .bar i {
  display: block;
  height: 100%;
}
.spread-row .bar i.again { background: var(--again); }
.spread-row .bar i.good { background: var(--good); }
.spread-row .bar i.easy { background: var(--easy); }
.spread-row .num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  width: 28px;
  text-align: right;
  font-feature-settings: 'tnum';
}

/* === Real-style App Store / Google Play badges === */
.badge-apple,
.badge-google {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 18px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  min-width: 168px;
  box-sizing: border-box;
}
.badge-apple {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.badge-google {
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.badge-apple .b-glyph,
.badge-google .b-glyph {
  width: 28px;
  height: 30px;
  fill: #fff;
}
.badge-google .b-glyph { width: 30px; height: 30px; }
.b-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
}
.b-small {
  font-size: 11px;
  font-weight: 400;
}
.badge-google .b-small {
  font-size: 9.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.b-large {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.3px;
}
.badge-apple:hover,
.badge-google:hover { opacity: 0.92; }

/* === Legal pages === */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 32px 96px;
}
.legal article > .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--brand);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.legal h1 {
  font-family: var(--display);
  font-size: 54px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0 0 14px;
  font-weight: 400;
}
.legal-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  margin: 0 0 32px;
}
.legal .lede {
  font-family: var(--ui);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 36px;
}
.legal h2 {
  font-family: var(--display);
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 40px 0 12px;
  font-weight: 400;
}
.legal h3 {
  font-family: var(--ui);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 24px 0 8px;
}
.legal p {
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.legal p strong { color: var(--ink); font-weight: 600; }
.legal ul {
  margin: 0 0 18px;
  padding-left: 22px;
  font-family: var(--ui);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.legal li { margin-bottom: 4px; }
.legal a {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.legal a:hover { color: var(--brand-deep); }
.legal code {
  font-family: var(--mono);
  font-size: 14px;
  background: rgba(26,23,20,0.05);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--ink);
}
.legal em { font-style: italic; color: var(--ink); }

@media (max-width: 600px) {
  .legal { padding: 56px 22px 72px; }
  .legal h1 { font-size: 40px; }
  .legal h2 { font-size: 24px; }
}
