/**
 * Marketing pages — same visual system as the report.
 *
 * Token values are copied verbatim from src/ui/app.css, which remains the
 * source of truth (see docs/marketing-site-brief.md). The marketing pages are
 * static HTML outside the React build, so they cannot import it; if app.css
 * changes a value, change it here too.
 */

:root {
  color-scheme: light;

  --room: #e3e8ec;
  --room-2: #edf1f4;
  --sheet: #fbfcfd;
  --panel: #eff3f7;
  --panel-2: #e4ebf1;

  --deep: #0c2338;
  --deep-2: #133753;
  --deep-ink: #c9d9e6;

  --rule: #d9dfe4;
  --rule-strong: #aebcc8;

  --ink: #14202b;
  --ink-2: #44586a;
  --ink-3: #6c7d8d;

  --brand: #1d4568;
  --brass: #c47b4a;
  --brass-tint: #f9efe6;

  --serious: #a5322f;
  --serious-tint: #fbeae9;
  --good: #1b7a55;
  --good-tint: #e7f4ee;

  --display: "Newsreader", ui-serif, Georgia, serif;
  --text: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --r: 10px;
  --measure: 62ch;
}

* { box-sizing: border-box; }

html { background: var(--room); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
}

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

a { color: var(--brand); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

/* ------------------------------------------------------------------ header */

.top {
  background: var(--deep);
  color: var(--deep-ink);
}
/*
  Fixed height, not content-driven. The app shares this header, and its right
  side holds different things in different states (nothing, or Download PDF /
  New address). Letting content set the height made the bar visibly shorter on
  /app than on the landing page — same brand, different-sized hat.
*/
.top__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.top a { color: inherit; text-decoration: none; }
.top__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 500;
  /* Pinned so the app's .brand can match it exactly — see app.css. */
  line-height: 1.6;
  color: #fff;
  margin-right: auto;
}
.top__nav { display: flex; gap: 1.4rem; font-size: 0.95rem; flex-wrap: wrap; }
.top__nav a:hover { color: #fff; text-decoration: underline; }

/* ------------------------------------------------------------------- hero */

.hero { background: var(--deep); color: var(--deep-ink); }
.hero__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 4.5rem;
  display: grid;
  grid-template-columns: minmax(0, 30rem) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.5vw, 3.1rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 1rem;
  text-wrap: balance;
}
.hero__sub { font-size: 1.15rem; margin: 0 0 1.8rem; max-width: 34rem; }
.hero__cta { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; }
.hero__fig { margin: 0; }
.hero__fig img {
  border-radius: var(--r);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.hero__fig figcaption { font-size: 0.85rem; color: var(--deep-ink); opacity: 0.8; margin-top: 0.7rem; }

.btn {
  display: inline-block;
  font-family: var(--text);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.7rem 1.3rem;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
}
.btn--primary { background: var(--brass); color: #2a1305; }
.btn--primary:hover { background: #cd8654; }
.btn--ghost { border-color: var(--rule-strong); color: var(--ink-2); background: transparent; }
.hero .btn--ghost, .top .btn--ghost { color: var(--deep-ink); border-color: rgba(201, 217, 230, 0.45); }
.btn--ghost:hover { border-color: var(--brass); }

/* ---------------------------------------------------------------- sections */

.band { padding: 4rem 1.5rem; }
.band--paper { background: var(--sheet); }
.band--room { background: var(--room-2); }
.band__inner { max-width: 72rem; margin: 0 auto; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 0.6rem;
}
h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 1rem;
  text-wrap: balance;
}
h3 { font-size: 1.1rem; margin: 1.6rem 0 0.5rem; }
p { margin: 0.8rem 0; max-width: var(--measure); }
ul, ol { max-width: var(--measure); padding-left: 1.3rem; }
li { margin: 0.4rem 0; }

.cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}
.cols img { border-radius: var(--r); border: 1px solid var(--rule); }

/* The one number that carries the Prosper story. */
.pull {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.3;
  border-left: 3px solid var(--brass);
  padding-left: 1.1rem;
  margin: 1.6rem 0;
  max-width: 30rem;
}

.factrow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  overflow: hidden;
  margin: 2rem 0;
}
.fact { background: var(--sheet); padding: 1.1rem 1.2rem; }
.fact b {
  display: block;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.fact.fact--bad b { color: var(--serious); }
.fact span { font-size: 0.85rem; color: var(--ink-2); }

/* --------------------------------------------------------------- contents */

.speclist {
  columns: 2;
  column-gap: 3rem;
  max-width: none;
  list-style: none;
  padding: 0;
}
.speclist li {
  break-inside: avoid;
  border-top: 1px solid var(--rule);
  padding: 0.7rem 0;
  margin: 0;
}
.speclist b { font-weight: 600; }
.speclist small { display: block; color: var(--ink-2); font-size: 0.9rem; }

/* ---------------------------------------------------------------- pricing */

.price-card {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 2rem;
  max-width: 26rem;
}
.price-card .amount {
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 500;
  line-height: 1;
}
.price-card .amount small { font-size: 1rem; font-family: var(--text); color: var(--ink-2); }
.price-card ul { list-style: none; padding: 0; margin: 1.2rem 0; }
.price-card li { padding-left: 1.4rem; position: relative; }
.price-card li::before { content: "—"; position: absolute; left: 0; color: var(--brass); }
.guarantee { font-size: 0.92rem; color: var(--ink-2); border-top: 1px solid var(--rule); padding-top: 1rem; margin-top: 1.4rem; }

/* ------------------------------------------------------------------- faq */

.faq { max-width: 46rem; }
.faq details { border-top: 1px solid var(--rule); padding: 0.4rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  font-weight: 600;
  padding: 0.6rem 0;
  cursor: pointer;
  list-style-position: outside;
}

/* ---------------------------------------------------------------- founder */

.founder {
  border-left: 3px solid var(--brand);
  padding-left: 1.4rem;
  max-width: 46rem;
}
.founder .sig { font-family: var(--display); font-size: 1.05rem; color: var(--ink-2); }

/* ----------------------------------------------------------------- footer */

.foot {
  background: var(--deep);
  color: var(--deep-ink);
  font-size: 0.9rem;
}
.foot__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.foot a { color: inherit; }
.foot__legal { margin: 0; opacity: 0.75; line-height: 1.6; max-width: none; }

/* ------------------------------------------------------------ methodology */

.doc { max-width: 46rem; margin: 0 auto; padding: 3.5rem 1.5rem 5rem; }
.doc h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 0.4rem 0 0.8rem;
}
.doc .standfirst { font-size: 1.15rem; color: var(--ink-2); }
/*
  Document pages set their section heads at document scale, not landing scale.
  The landing h2 is a display size for bands with imagery; over a two-sentence
  legal clause it towered, and with no top margin each heading crowded the
  paragraph above it instead of opening its own section.
*/
.doc h2 {
  font-size: 1.3rem;
  margin: 2.4rem 0 0.5rem;
}
.doc hr { margin: 2rem 0; }
.doc table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.92rem;
  margin: 1.2rem 0;
}
.doc th {
  text-align: left;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-bottom: 2px solid var(--ink);
  padding: 0.4rem 0.8rem 0.4rem 0;
}
.doc td { border-bottom: 1px solid var(--rule); padding: 0.5rem 0.8rem 0.5rem 0; vertical-align: top; }
.doc .tablewrap { overflow-x: auto; }
.doc hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

/* --------------------------------------------------------------- mobile */

@media (max-width: 56rem) {
  .hero__inner, .cols { grid-template-columns: 1fr; gap: 2rem; }
  .speclist { columns: 1; }
  .band { padding: 3rem 1.25rem; }
}
