/* ───────────────────────────────────────────────────────────────────────────
   onbaseiq.com
   Editorial direction: Instrument Serif display over Archivo, asymmetric
   grid, hairline rules, square buttons, full bleed dark bands.
   Every colour is lifted from the app's own Design/Theme.swift.
   ⚠️ The lime #ACFB24 is a DARK GROUND colour only. On white it measures
   1.14:1, so light ground uses #4C7209, exactly as the app does.
   ─────────────────────────────────────────────────────────────────────────── */

:root {
  --bg:        #FFFFFF;
  --bg-soft:   #EFF3F9;
  --navy:      #0E2440;
  --ink:       #0B1220;
  --text:      #0B1220;
  --muted:     #475569;
  --sub:       #5F6E85;
  --faint:     #94A3B8;
  --line:      #DCE4EF;
  --green:     #237A4C;
  --green-dk:  #1C6440;
  --olive:     #4C7209;   /* the lime, walked down for light ground */
  --lime:      #ACFB24;   /* dark ground only */
  --red:       #C4403F;
  --on-navy:   #C6D3E2;
  --wrap:      1248px;
  --pad:       96px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dk); text-decoration: underline; }

.serif {
  font-family: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  font-weight: 400;
}
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

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

/* ── Rule + eyebrow ──────────────────────────────────────────────────── */

.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.eyebrow i { display: block; width: 26px; height: 2px; background: var(--olive); flex: none; }
.eyebrow span {
  font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--olive);
}
.dark .eyebrow i { background: var(--lime); }
.dark .eyebrow span { color: var(--lime); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 32px; border-radius: 4px;
  background: var(--ink); color: #fff; font-size: 17px; font-weight: 600;
}
.btn:hover { color: #fff; text-decoration: none; opacity: .9; }
.btn.lime { background: var(--lime); color: var(--ink); font-weight: 700; min-height: 52px; }
.btn.lime:hover { color: var(--ink); }
.btn.sm { min-height: 36px; padding: 0 18px; font-size: 13px; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.cta-note b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.cta-note span { display: block; font-size: 13px; color: var(--sub); }
.dark .cta-note b { color: #fff; }
.dark .cta-note span { color: var(--on-navy); }

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

.nav { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.nav .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.nav img { width: 24px; height: 24px; border-radius: 6px; }
.nav .mark { font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.nav .mark:hover { text-decoration: none; }
.nav .links { display: flex; gap: 30px; margin-left: 52px; font-size: 13px; }
.nav .links a { color: var(--sub); }
.nav .links a:hover { color: var(--ink); text-decoration: none; }
.nav .right { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav .free { font-size: 13px; color: var(--sub); white-space: nowrap; }

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

section { padding: 100px 0; }
.dark { background: var(--navy); color: #fff; }
.dark h2, .dark .serif { color: #fff; }
.dark p { color: var(--on-navy); }
.ink { background: var(--ink); color: #fff; }

h1, h2 { margin: 0; font-weight: 400; }
h1 { font-size: clamp(46px, 7.2vw, 104px); line-height: .94; letter-spacing: -.025em; max-width: 17ch; }
h2 { font-size: clamp(36px, 4.4vw, 62px); line-height: 1.0; letter-spacing: -.02em; }
h2.sm { font-size: clamp(34px, 3.8vw, 52px); line-height: 1.04; }
em { font-style: italic; }
h1 em { color: var(--green-dk); }
.dark h1 em, .dark h2 em { color: #fff; }

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

.hero { padding: 84px 0 0; }
.hero .under {
  display: grid; grid-template-columns: 1fr auto; gap: 72px;
  align-items: end; margin-top: 40px;
}
.hero .under p { font-size: 22px; line-height: 1.45; color: var(--muted); max-width: 54ch; margin: 0; }

/* ── Pipeline ────────────────────────────────────────────────────────── */

.pipeline { background: var(--bg-soft); padding: 64px 0; margin-top: 64px; }
.pipeline .rail { display: grid; grid-template-columns: 1fr auto 1fr; gap: 56px; align-items: center; }
.pipe-col { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.pipe-col .cap { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.pipe-col .kicker { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sub); }
.pipe-col .kicker.on { color: var(--olive); }
.pipe-col .name { font-size: 30px; letter-spacing: -.015em; }
.pipe-mid { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.pipe-mid .kicker { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--olive); white-space: nowrap; }
.pipe-mid small { font-size: 13px; color: var(--sub); max-width: 15ch; }
.pipe-mid .down { display: none; }

/* ── Phones ──────────────────────────────────────────────────────────── */

.phone { width: 262px; border-radius: 28px; border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(11,18,32,.06), 0 20px 50px rgba(11,18,32,.10); }
.phone.lg { width: 300px; border-radius: 32px; }
.dark .phone { border-color: rgba(255,255,255,.14); box-shadow: 0 30px 70px rgba(0,0,0,.5); }

/* ── Split rows ──────────────────────────────────────────────────────── */

.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 88px; align-items: start; }
.split.mid { align-items: center; }
.split.narrow { grid-template-columns: .95fr 1.05fr; }
.split p { font-size: 19px; line-height: 1.55; color: var(--muted); margin: 0 0 18px; }
.split p.strong { color: var(--ink); font-weight: 500; margin-bottom: 0; }
.dark .split p.strong { color: #fff; }

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

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; margin-top: 64px; align-items: start; }
.step { display: flex; flex-direction: column; gap: 20px; }
.step img { border-radius: 26px; border: 1px solid var(--line); }
.step .n { font-size: 13px; font-weight: 600; color: var(--olive); letter-spacing: .08em; }
.step h3 { font-size: 21px; font-weight: 600; letter-spacing: -.01em; margin: 10px 0 0; }
.step p { font-size: 16px; line-height: 1.5; color: var(--muted); margin: 10px 0 0; }

/* ── Report cards ────────────────────────────────────────────────────── */

.reports { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 72px; }
.report img { border-radius: 24px; border: 1px solid var(--line); }
.report .meta { border-top: 2px solid var(--ink); padding-top: 14px; margin-top: 18px; }
.report h3 { font-size: 18px; font-weight: 600; margin: 0; }
.report p { font-size: 15px; line-height: 1.5; color: var(--muted); margin: 6px 0 0; }

/* ── Proof strip ─────────────────────────────────────────────────────── */

.proof { margin-top: 76px; padding: 40px 48px; background: var(--bg-soft); border-left: 3px solid var(--olive); }
.proof .rail { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 56px; align-items: center; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat b { font-size: 58px; line-height: 1; font-weight: 400; }
.stat span { font-size: 13px; color: var(--sub); }
.stat.down b { color: var(--red); }
.proof .say { font-size: 18px; line-height: 1.5; max-width: 46ch; margin: 0; }
.proof .say span { color: var(--sub); }

/* ── Privacy zeros ───────────────────────────────────────────────────── */

.zeros { display: flex; gap: 52px; }
.zeros .stat b { font-size: 62px; color: var(--lime); }
.zeros .stat span { color: var(--on-navy); font-size: 14px; max-width: 12ch; }

/* ── Pricing ─────────────────────────────────────────────────────────── */

.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 56px; border-top: 2px solid var(--ink); }
.tier { display: flex; flex-direction: column; gap: 8px; padding: 34px 36px; border-right: 1px solid var(--line); }
.tier:first-child { padding-left: 0; }
.tier:last-child { padding-right: 0; border-right: none; }
.tier.best { background: var(--bg-soft); }
.tier .label { font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--sub); }
.tier .amount { font-size: 52px; line-height: 1.05; letter-spacing: -.02em; }
.tier .per { font-size: 15px; color: var(--sub); }
.tier .flag {
  align-self: flex-start; padding: 5px 11px; border-radius: 3px;
  background: var(--olive); color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; margin-top: 14px;
}
.tier .note { font-size: 13px; line-height: 1.5; color: var(--sub); margin-top: 18px; }
.tier .badge { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--olive); }
.fineprint { font-size: 13px; line-height: 1.6; color: var(--sub); margin-top: 26px; max-width: 84ch; }

.price-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 56px; flex-wrap: wrap; }
.price-head p { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 44ch; margin: 20px 0 0; }

/* ── Apps + footer ───────────────────────────────────────────────────── */

.apps-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.apps-head .t { font-size: 34px; letter-spacing: -.015em; }
.apps-head small { font-size: 14px; color: var(--faint); }
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 72px; margin-top: 28px; }
.apps a {
  display: flex; justify-content: space-between; gap: 20px; padding: 15px 0;
  border-top: 1px solid rgba(255,255,255,.12); font-size: 15px; color: #fff;
}
.apps a:last-child, .apps a:nth-last-child(2) { border-bottom: 1px solid rgba(255,255,255,.12); }
.apps a:hover { text-decoration: none; color: var(--lime); }
.apps b { font-weight: 500; }
.apps span { color: var(--faint); font-size: 13px; text-align: right; }
.apps a:hover span { color: var(--on-navy); }

.foot { display: flex; flex-wrap: wrap; gap: 26px; font-size: 13px; color: var(--faint); margin-top: 52px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); }
.foot a { color: var(--faint); }
.foot a:hover { color: #fff; }
.foot .legal { margin-left: auto; max-width: 62ch; }

/* ── Legal + support pages ───────────────────────────────────────────── */

.doc { max-width: 800px; margin: 0 auto; padding: 76px 24px 104px; }
.doc h1 { font-size: clamp(40px, 6vw, 62px); max-width: none; margin-bottom: 10px; }
.doc .updated { color: var(--sub); font-size: 14px; margin: 0 0 40px; }
.doc h2 { font-size: 24px; line-height: 1.25; margin: 46px 0 12px; font-weight: 400; }
.doc h3 { font-size: 18px; margin: 32px 0 8px; font-weight: 600; }
.doc p, .doc li { font-size: 17px; line-height: 1.62; color: var(--text); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 9px; }
.doc .callout { background: var(--bg-soft); border-left: 3px solid var(--olive); padding: 24px 28px; margin: 30px 0; }
.doc .callout p { margin: 0; }

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  :root { --pad: 56px; }
  .split, .split.narrow { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; gap: 44px; }
  .reports { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero .under { grid-template-columns: 1fr; gap: 32px; align-items: start; }
}

@media (max-width: 860px) {
  .nav .links { display: none; }
  .nav .free { display: none; }
  .pipeline .rail { grid-template-columns: 1fr; gap: 24px; }
  .pipe-mid .across { display: none; }
  .pipe-mid .down { display: block; }
  .proof .rail { grid-template-columns: repeat(2, auto); gap: 32px; }
  .proof .say { grid-column: 1 / -1; }
  .tiers { grid-template-columns: 1fr; }
  .tier { padding: 26px 0; border-right: none; border-bottom: 1px solid var(--line); }
  .tier.best { background: transparent; }
  .apps { grid-template-columns: 1fr; gap: 0; }
  .apps a:nth-last-child(2) { border-bottom: none; }
  .zeros { gap: 34px; }
  .zeros .stat b { font-size: 44px; }
}

@media (max-width: 640px) {
  :root { --pad: 20px; }
  body { font-size: 16px; }
  section { padding: 56px 0; }
  .hero { padding: 40px 0 0; }
  .hero .under p { font-size: 18px; }
  .pipeline { margin-top: 40px; padding: 44px 0; }
  .proof { margin-top: 44px; padding: 26px 22px; }
  .proof .rail { grid-template-columns: repeat(2, auto); gap: 28px; }
  .stat b { font-size: 44px; }
  .split p { font-size: 17px; }
  .reports { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .report h3 { font-size: 16px; }
  .report p { font-size: 14px; }
  .btn { width: 100%; }
  .cta-row { flex-direction: column; align-items: stretch; text-align: center; }
  .foot .legal { margin-left: 0; }
  .phone, .phone.lg { width: 100%; max-width: 290px; }
  .pipe-col .name { font-size: 26px; }
}
