/*
 * landing-page/styles.css
 *
 * Hand-written, ~200 lines, no build step and no framework. That is the whole
 * point of splitting this out: a stranger reading the price should not be
 * downloading a routing engine.
 *
 * The palette is the app's, copied deliberately and marked as such. These four
 * values are brand identity that changes about once a year; the things that
 * change weekly — the price, the plan contents, the refund policy — are
 * IMPORTED at build time from src/lib/, never copied. See build.mts.
 */

:root {
  --ink:        #0F2233;
  --amber:      #F2A63B;
  --paper:      #F7F8F9;
  --border:     #DCE2E6;
  --muted:      #5A6B78;
  --card:       #FFFFFF;
  --band:       #EFF2F4;
  --radius:     12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:  #0F2233;
    --card:   #16293B;
    --band:   #132434;
    --border: #24405A;
    --ink:    #F2F5F7;
    --muted:  #9DB0BF;
  }
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap        { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 720px;  margin: 0 auto; padding: 0 24px; }
.centre      { text-align: center; }

h1 { font-size: clamp(2.1rem, 5vw, 3rem); line-height: 1.1; letter-spacing: -0.02em; margin: 16px 0 0; }
h2 { font-size: 1.35rem; letter-spacing: -0.01em; margin: 0 0 16px; }
h3 { font-size: 1.05rem; letter-spacing: -0.01em; margin: 0 0 8px; }

.eyebrow {
  margin: 0; font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted);
}
.eyebrow.accent { color: #C9821F; }         /* amber that still reads on white */
.lede { color: var(--muted); max-width: 34em; }
.fine { font-size: 0.82rem; color: var(--muted); }
.label { font-size: 0.8rem; font-weight: 600; margin: 0 0 6px; }

/* ── header ───────────────────────────────────────────────────────────── */
.bar {
  max-width: 1080px; margin: 0 auto; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; }
.brand img { border-radius: 8px; }
.quiet { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.quiet:hover { text-decoration: underline; }

/* ── hero ─────────────────────────────────────────────────────────────── */
.hero {
  max-width: 1140px; margin: 0 auto; padding: 32px 24px 64px;
  display: grid; gap: 48px; align-items: center;
}
@media (min-width: 900px) { .hero { grid-template-columns: 1fr 1fr; } }
.hero__media { display: flex; justify-content: center; }
@media (min-width: 900px) { .hero__media { justify-content: flex-end; } }

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

/*
 * Amber is the primary action and only that — the same rule the app follows.
 * Nothing else on this page gets an amber fill, so the one thing that is
 * filled is the one thing to press.
 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 28px; border-radius: var(--radius);
  background: var(--amber); color: #0F2233;
  font-weight: 500; text-decoration: none;
}
.btn:hover { filter: brightness(0.95); }
.btn--block { display: flex; width: 100%; margin-top: 24px; }

/* ── the phone frame ──────────────────────────────────────────────────── */
/* CSS, not a photograph of a handset: sharp at any density, no download, and
   it follows the reader's own light/dark preference. */
.phone {
  width: 100%; max-width: 280px;
  border: 6px solid var(--ink); border-radius: 32px;
  background: var(--ink); overflow: hidden;
  box-shadow: 0 24px 48px -12px rgba(15, 34, 51, 0.28);
}
.phone img { border-radius: 26px; }

.wide {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 12px 32px -12px rgba(15, 34, 51, 0.2);
}

/* ── bands and splits ─────────────────────────────────────────────────── */
.band { background: var(--band); padding: 56px 0; }
.band--edge { border-top: 1px solid var(--border); }
.band + .band { border-top: 1px solid var(--border); }

.splits { padding: 80px 24px; display: grid; gap: 80px; }
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: 2; }
}
.split__media { display: flex; justify-content: center; }
.split__text h3 { font-size: 1.5rem; }
.split__text p { color: var(--muted); }

.grid { display: grid; gap: 32px; }
@media (min-width: 700px) { .grid { grid-template-columns: 1fr 1fr; } }
.grid p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ── pricing ──────────────────────────────────────────────────────────── */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-top: 16px;
}
.card--founder { border: 2px solid var(--amber); }

.price { display: flex; align-items: baseline; gap: 10px; margin: 8px 0; }
.price strong { font-size: 2.4rem; letter-spacing: -0.02em; }
.price--sm strong { font-size: 1.6rem; }
.price span, .price s { color: var(--muted); font-size: 0.85rem; font-weight: 400; }

.ticks, .plain { list-style: none; padding: 0; margin: 20px 0 0; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 0.92rem; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: #C9821F; font-weight: 700;
}
.plain li { font-size: 0.82rem; color: var(--muted); margin-bottom: 4px; }

.two { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 640px) { .two { grid-template-columns: 1fr 1fr; } }

/* ── footer ───────────────────────────────────────────────────────────── */
.foot {
  border-top: 1px solid var(--border); margin-top: 64px; padding: 32px 0 48px;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* Outdoors, in sunlight, on a phone he is holding in a glove. */
@media (prefers-reduced-motion: no-preference) {
  a, .btn { transition: filter 120ms ease; }
}
