prop/* ============================================================================
   RobinX — landing and legal pages

   One stylesheet, no JavaScript, no build step. The palette is lifted from the
   app itself (src/theme/colors.ts) so the site and the product look like the
   same thing: the same accent, the same four section hues, the same true-black
   dark mode.

   Every colour pairing here was checked against the app's own contrast test.
   The accent is #2575A9 rather than the logo blue, for the reason the app gives:
   the logo blue reaches only ~2.5:1 on white, which is fine for a mark and
   fails for text.
   ========================================================================= */

:root {
  --bg: #f4f8fc;
  --surface: #ffffff;
  --surface-2: #eef4fa;
  --band: #e7f1f9;
  --border: #e1eaf2;

  --text: #17303f;
  --text-2: #5a6b78;
  --text-3: #808f9b;

  --accent: #2575a9;
  --accent-deep: #1c6b9e;
  --accent-soft: #e8f3fa;
  --brand: #4ba2d6;

  --income: #199e70;
  --bills: #2a7fb8;
  --spending: #c2541f;
  --debt: #4a3aa7;
  --success: #207a52;

  /* The ink that sits ON a filled accent surface. It is NOT always white:
     white on the dark theme's #58AEE4 is 2.44:1, which is unreadable. */
  --on-accent: #ffffff;

  --shadow-sm: 0 1px 3px rgb(23 48 63 / 6%);
  --shadow-lg: 0 24px 60px rgb(23 48 63 / 12%), 0 4px 14px rgb(23 48 63 / 6%);

  --page: 1120px;
  --radius: 18px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #000000;
    --surface: #16191d;
    --surface-2: #101316;
    --band: #122029;
    --border: #2e353d;

    --text: #f2f5f7;
    --text-2: #9aa6b0;
    --text-3: #828d97;

    --accent: #58aee4;
    --accent-deep: #7bc2ee;
    --accent-soft: #14222c;
    --brand: #4ba2d6;

    --income: #199e70;
    --bills: #3987e5;
    --spending: #d95926;
    --debt: #9085e9;
    --success: #3fb37d;
    --on-accent: #06121a;

    --shadow-sm: none;
    --shadow-lg: 0 24px 60px rgb(0 0 0 / 60%);
  }
}

:root[data-theme='dark'] {
  --bg: #000000;
  --surface: #16191d;
  --surface-2: #101316;
  --band: #122029;
  --border: #2e353d;
  --text: #f2f5f7;
  --text-2: #9aa6b0;
  --text-3: #828d97;
  --accent: #58aee4;
  --accent-deep: #7bc2ee;
  --accent-soft: #14222c;
  --bills: #3987e5;
  --spending: #d95926;
  --debt: #9085e9;
  --success: #3fb37d;
  --on-accent: #06121a;
  --shadow-sm: none;
  --shadow-lg: 0 24px 60px rgb(0 0 0 / 60%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto,
    'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 760px;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Visible focus everywhere. Keyboard users get the same affordance a mouse
   user gets from hover, which is the whole point. */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--on-accent);
  padding: 12px 18px;
  z-index: 10;
  border-radius: 0 0 10px 0;
}
.skip-link:focus {
  left: 0;
}

/* ─────────────────────────────────────────────────────────────── nav ──── */

.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  /* Fallback first: a browser without color-mix gets an opaque bar rather
     than a transparent one with text sliding under it. */
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.4px;
  font-size: 19px;
  color: var(--text);
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  width: 30px;
  height: 30px;
  display: block;
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  font-weight: 600;
}
.nav-links a {
  color: var(--text-2);
}
.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

@media (max-width: 640px) {
  .nav-links .hide-sm {
    display: none;
  }
}

/* ────────────────────────────────────────────────────────────── hero ──── */

.hero {
  padding: 78px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .hero {
    padding: 48px 0 40px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.06;
  letter-spacing: -1.8px;
  font-weight: 850;
  margin: 22px 0 0;
}

.lede {
  font-size: clamp(17px, 2.1vw, 20px);
  line-height: 1.55;
  color: var(--text-2);
  margin: 20px 0 0;
  max-width: 34em;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 56px;
  padding: 0 28px;
  border-radius: 15px;
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
  border: 1.5px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover {
  background: var(--accent-deep);
  text-decoration: none;
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.cta-note {
  font-size: 13.5px;
  color: var(--text-3);
  margin: 14px 0 0;
}

/* ──────────────────────────────────────────────── the phone mockup ──── */

/* Drawn in CSS rather than shipped as a screenshot: it stays sharp at any
   density, follows the dark-mode tokens, and cannot go stale when the app's
   colours change. */

.phone {
  width: 300px;
  margin: 0 auto;
  border-radius: 42px;
  padding: 11px;
  background: linear-gradient(170deg, var(--border), var(--surface-2));
  box-shadow: var(--shadow-lg);
}

.phone-screen {
  background: var(--bg);
  border-radius: 32px;
  padding: 20px 16px 16px;
  border: 1px solid var(--border);
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sheet-kicker {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-2);
}
.left-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--band);
  border-radius: 999px;
  padding: 5px 10px;
}
.left-chip span:first-child {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--accent-deep);
}
.left-chip span:last-child {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--success);
  font-variant-numeric: tabular-nums;
}

.sheet-month {
  text-align: center;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.4px;
  margin: 12px 0 14px;
}

.chips {
  display: flex;
  gap: 6px;
  overflow: hidden;
  margin-bottom: 14px;
  /* The row holds five sections and the phone shows four. Fading the last one
     out says "this scrolls"; a hard clip mid-word just looks broken. */
  -webkit-mask-image: linear-gradient(to right, #000 82%, transparent 99%);
  mask-image: linear-gradient(to right, #000 82%, transparent 99%);
}
.chip {
  flex: 0 0 auto;
  font-size: 11.5px;
  font-weight: 650;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  white-space: nowrap;
}
.chip.on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 750;
}

.line {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 13px;
  margin-bottom: 9px;
}
.line-name {
  font-size: 14px;
  font-weight: 650;
}
.line-cols {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: 9px;
}
.line-col {
  flex: 1;
}
.line-lab {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--text-3);
}
.line-val {
  font-size: 15.5px;
  font-weight: 750;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.line-val.actual {
  color: var(--accent);
}
.line-val.pending {
  color: var(--text-3);
}
.line-rule {
  width: 1px;
  align-self: stretch;
  background: var(--border);
}
.track {
  height: 5px;
  border-radius: 999px;
  background: var(--band);
  margin-top: 10px;
  overflow: hidden;
}
.fill {
  height: 100%;
  border-radius: 999px;
  background: var(--bills);
}

/* ─────────────────────────────────────────────────────────── sections ── */

section {
  padding: 76px 0;
}

@media (max-width: 720px) {
  section {
    padding: 52px 0;
  }
}

.band {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.14;
  letter-spacing: -1.1px;
  font-weight: 820;
  margin: 14px 0 0;
  max-width: 20em;
}

.section-lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 16px 0 0;
  max-width: 36em;
}

h3 {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.4px;
  font-weight: 760;
  margin: 0;
}

/* ───────────────────────────────────────────────── planned vs actual ── */

.compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  margin-top: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.compare-cell {
  padding: 30px 28px;
}

.compare-divider {
  width: 1px;
  background: var(--border);
}

.compare-lab {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.compare-num {
  font-size: clamp(34px, 5vw, 46px);
  font-weight: 830;
  letter-spacing: -1.4px;
  margin: 8px 0 0;
  font-variant-numeric: tabular-nums;
}

.compare-note {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-2);
  margin: 10px 0 0;
}

.gap-line {
  margin-top: 26px;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.3px;
  text-align: center;
}

@media (max-width: 680px) {
  .compare {
    grid-template-columns: 1fr;
  }
  .compare-divider {
    width: auto;
    height: 1px;
  }
}

/* ───────────────────────────────────────────────────────────── steps ── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
  counter-reset: step;
}

@media (max-width: 820px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}

.step-n {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 10px 0 0;
}

.step-time {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 14px;
  font-weight: 600;
}

/* ──────────────────────────────────────────────────────────── features ─ */

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 44px;
}

@media (max-width: 760px) {
  .features {
    grid-template-columns: 1fr;
  }
}

.feature {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.feature-dot {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  flex: none;
  margin-top: 7px;
}

.feature p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 8px 0 0;
}

/* ──────────────────────────────────────────────────────────── pricing ── */

.price-card {
  max-width: 480px;
  margin: 40px auto 0;
  background: var(--surface);
  border: 1.5px solid var(--accent);
  border-radius: 22px;
  padding: 34px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.price-amount {
  font-size: 52px;
  font-weight: 840;
  letter-spacing: -2px;
  line-height: 1;
  margin: 18px 0 0;
  font-variant-numeric: tabular-nums;
}
.price-period {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-2);
}

.price-alt {
  font-size: 15px;
  color: var(--text-2);
  margin: 12px 0 0;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  text-align: left;
}
.price-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 8px 0;
  font-size: 15.5px;
  line-height: 1.5;
}
.price-list li::before {
  content: '✓';
  color: var(--success);
  font-weight: 800;
  flex: none;
}

.price-fine {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-3);
  margin: 22px 0 0;
}

/* ───────────────────────────────────────────────────────────── trust ─── */

.trust {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 40px 34px;
  margin-top: 36px;
}

.trust h2 {
  margin-top: 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 32px;
  margin-top: 26px;
}

@media (max-width: 700px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

.trust-item strong {
  display: block;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.2px;
}
.trust-item span {
  display: block;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-2);
  margin-top: 5px;
}

/* ──────────────────────────────────────────────────────────── footer ─── */

footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 56px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 36px;
  align-items: center;
}

.footer-links {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 15px;
  font-weight: 600;
}
.footer-links a {
  color: var(--text-2);
}

.footer-note {
  font-size: 13.5px;
  color: var(--text-3);
  margin: 22px 0 0;
  width: 100%;
}

/* ════════════════════════════════════════════════════ legal pages ════ */

.legal {
  padding: 56px 0 80px;
}

.legal h1 {
  font-size: clamp(32px, 5vw, 44px);
  letter-spacing: -1.4px;
  margin: 0;
}

.legal .updated {
  font-size: 14.5px;
  color: var(--text-3);
  margin: 12px 0 0;
}

.legal h2 {
  font-size: 24px;
  letter-spacing: -0.6px;
  margin: 48px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  max-width: none;
}

.legal h3 {
  font-size: 18px;
  margin: 30px 0 0;
}

.legal p,
.legal li {
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--text-2);
}

.legal p {
  margin: 14px 0 0;
}

.legal strong {
  color: var(--text);
}

.legal ul {
  margin: 14px 0 0;
  padding-left: 22px;
}
.legal li {
  margin: 7px 0;
}

/* A nested bullet in the drafts is a sub-point of the bullet above it. */
.legal li.sub {
  margin-left: 20px;
}

/* The summary box at the top. A policy nobody reads is a policy that failed,
   so the plain-English version comes first and is given the most weight. */
.legal-summary {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin: 34px 0 0;
}
.legal-summary h2 {
  border: 0;
  padding: 0;
  margin: 0 0 6px;
  font-size: 20px;
}
.legal-summary p,
.legal-summary li {
  color: var(--text);
}

.legal-toc {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 32px;
}
.legal-toc li {
  margin: 6px 0;
  break-inside: avoid;
}
@media (max-width: 600px) {
  .legal-toc {
    columns: 1;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 0;
  font-size: 15.5px;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  line-height: 1.55;
}
th {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1.5px solid var(--border);
}
td {
  color: var(--text-2);
}
td:first-child {
  color: var(--text);
  font-weight: 650;
  white-space: nowrap;
}

@media (max-width: 680px) {
  td:first-child {
    white-space: normal;
  }
  th,
  td {
    padding: 10px 8px;
    font-size: 14.5px;
  }
}

/* A placeholder nobody has filled in yet. Loud on purpose: this document is a
   draft, and the one failure mode that matters is publishing it with these
   still in it. */
.todo {
  background: #ffe9c7;
  color: #6b4100;
  border: 1px solid #e0b870;
  border-radius: 6px;
  padding: 1px 7px;
  font-weight: 700;
  font-size: 0.92em;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .todo {
    background: #3a2c10;
    color: #f0c76a;
    border-color: #6b5420;
  }
}

.draft-banner {
  background: #ffe9c7;
  color: #6b4100;
  border: 1px solid #e0b870;
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 26px 0 0;
  font-size: 15.5px;
  line-height: 1.6;
}
.draft-banner strong {
  color: inherit;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .draft-banner {
    background: #3a2c10;
    color: #f0c76a;
    border-color: #6b5420;
  }
}
