/* LedgerOS marketing site.
 *
 * Hand-written rather than Tailwind, and deliberately not React. A landing page
 * has one job — load fast enough that a sole trader on 4G outside a hardware
 * store doesn't bounce before the headline paints. Shipping a React bundle to
 * render static text works against that, and this whole file is smaller than
 * the framework's runtime.
 *
 * Colours are lifted from the Android theme so the site, the app and the phone
 * app read as one product.
 */

:root {
  --sky-600: #2F80ED;
  --sky-700: #1D63C7;
  --sky-100: #DCEBFF;
  --sky-50:  #EFF6FF;
  --teal-500:#009175;
  --teal-100:#BCF0E3;
  --gold-100:#FFEDBE;
  --gold-700:#7A5B00;
  --ink:     #1E2245;
  --ink-soft:#4A5070;
  --page:    #F7F9FC;
  --line:    #E3E7F2;
  --radius:  16px;
  --radius-lg: 22px;
}

* { 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: #fff;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; margin: 0 auto; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 12px; }
h1 { font-size: clamp(30px, 5.2vw, 52px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
p  { margin: 0 0 14px; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }

section { padding: 72px 0; }
section.tint { background: var(--page); }

/* ── Header ───────────────────────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--sky-600), var(--teal-500)); display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav-links .hide-sm { display: none; } }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: var(--radius);
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .15s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn { background: var(--sky-600); color: #fff; }
.btn:hover { background: var(--sky-700); }
.btn:active { transform: scale(.985); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--page); }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding: 64px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }
.eyebrow {
  display: inline-block; background: var(--teal-100); color: #00513F;
  font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.trust-line { margin-top: 18px; font-size: 14px; color: var(--ink-soft); }

/* ── Phone mock-up ────────────────────────────────────────────────────── */
.phone {
  width: 290px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
  border-radius: 30px; padding: 10px; box-shadow: 0 24px 60px -24px rgba(15,62,122,.4);
}
.phone-inner { background: var(--page); border-radius: 22px; overflow: hidden; }
.phone-bar { background: #fff; border-bottom: 1px solid var(--line); padding: 9px 11px; display: flex; align-items: center; gap: 6px; }
.pill-pro { background: var(--teal-500); color: #fff; font-size: 9px; font-weight: 800; padding: 2px 5px; border-radius: 4px; letter-spacing: .04em; }
.phone-body { padding: 11px; }
.hero-card {
  background: linear-gradient(135deg, var(--sky-600) 0%, var(--sky-600) 45%, var(--teal-500) 100%);
  border-radius: 18px; padding: 14px; color: #fff; margin-bottom: 10px;
}
.hero-card .amt { font-size: 29px; font-weight: 800; letter-spacing: -.02em; }
.mini-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 11px; margin-bottom: 10px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.tile-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 14px; }

/* ── Cards / grids ────────────────────────────────────────────────────── */
.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .g3, .g2 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.icon-tile { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 12px; font-size: 19px; }
.t-sky  { background: var(--sky-100);  color: var(--sky-700); }
.t-teal { background: var(--teal-100); color: #00513F; }
.t-gold { background: var(--gold-100); color: var(--gold-700); }

/* ── Steps ────────────────────────────────────────────────────────────── */
.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 46px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--sky-600); color: #fff; font-weight: 800;
  display: grid; place-items: center;
}

/* ── Pricing ──────────────────────────────────────────────────────────── */
.toggle { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; }
.toggle button {
  border: 0; background: transparent; color: var(--ink-soft); font-weight: 700; font-size: 15px;
  padding: 9px 20px; border-radius: 999px; cursor: pointer;
}
.toggle button[aria-pressed="true"] { background: var(--sky-600); color: #fff; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 800px; margin: 30px auto 0; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--sky-600); }
.plan .badge { display: inline-block; background: var(--sky-100); color: var(--sky-700); font-size: 12px; font-weight: 800; padding: 4px 11px; border-radius: 999px; margin-bottom: 10px; }
.price { font-size: 40px; font-weight: 800; letter-spacing: -.03em; }
.per { font-size: 15px; color: var(--ink-soft); font-weight: 600; }
.feat { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 9px; flex: 1; }
.feat li { display: flex; gap: 9px; font-size: 15px; align-items: flex-start; }
.feat .tick { color: var(--teal-500); font-weight: 800; flex-shrink: 0; }
.feat .cross { color: var(--ink-soft); flex-shrink: 0; }
.feat li.off { color: var(--ink-soft); }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 12px; }
details summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; font-size: 22px; color: var(--ink-soft); line-height: 1; }
details[open] summary::after { content: '\2212'; }
details p { margin: 12px 0 0; color: var(--ink-soft); }

/* ── Final CTA ────────────────────────────────────────────────────────── */
.final {
  background: linear-gradient(135deg, var(--sky-600) 0%, var(--sky-600) 45%, var(--teal-500) 100%);
  color: #fff; border-radius: var(--radius-lg); padding: 52px 30px; text-align: center;
}
.final .btn { background: #fff; color: var(--sky-700); }
.final .btn:hover { background: var(--sky-50); }

/* ── Footer ───────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: 34px 0; font-size: 14px; color: var(--ink-soft); }
footer a { color: var(--ink-soft); text-decoration: none; margin-right: 18px; }
footer a:hover { color: var(--ink); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
