/* Marketing page. Shares the app's colour tokens from styles.css so the site and
   the product read as one thing, but sets its own typographic scale. */

body.landing {
  font: 16px/1.6 var(--font);
  background:
    radial-gradient(1100px 520px at 50% -8%, rgba(52, 211, 153, 0.09), transparent 65%),
    radial-gradient(900px 460px at 88% 12%, rgba(96, 165, 250, 0.07), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

.landing main { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
.lp-nav {
  position: sticky; top: 0; z-index: var(--z-sticky);
  display: flex; align-items: center; gap: 28px;
  max-width: 1120px; margin: 0 auto; padding: 16px 24px;
  backdrop-filter: blur(10px);
}
.lp-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); font-weight: 650; font-size: 17px; }
.lp-brand svg { width: 28px; height: 28px; }
.lp-nav-links { display: flex; gap: 24px; flex: 1; }
.lp-nav-links a, .lp-link { color: var(--muted); text-decoration: none; font-size: 14px; }
.lp-nav-links a:hover, .lp-link:hover { color: var(--text); }
.lp-nav-cta { display: flex; align-items: center; gap: 16px; }

.lp-btn {
  display: inline-block; padding: 10px 18px; border-radius: 9px;
  font-size: 14px; font-weight: 560; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: transform 0.12s ease, background 0.15s ease;
}
.lp-btn:hover { transform: translateY(-1px); }
.lp-btn-primary { background: var(--up); color: #06231a; }
.lp-btn-primary:hover { background: #4ade9f; }
.lp-btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.lp-btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.lp-btn-lg { padding: 14px 26px; font-size: 15px; }

/* ---------- sections ---------- */
.lp-section { padding: 78px 0; }
.lp-section h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; letter-spacing: -0.8px; margin: 0 0 18px; font-weight: 660; }
.lp-center { text-align: center; }
.lp-narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.lp-narrow-block { max-width: 640px; margin-left: auto; margin-right: auto; }
.lp-lead { font-size: 16.5px; line-height: 1.68; color: var(--muted); margin: 0 0 18px; }

/* ---------- scan cards ---------- */
.lp-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 38px; }
/* An odd number of scans leaves the last one alone on a row, which reads as a
   mistake. Let it take the full width instead. */
.lp-cards > .lp-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.lp-card { background: var(--panel); border: 1px solid var(--line); border-radius: 13px; padding: 24px; }
.lp-card-featured { border-color: rgba(52, 211, 153, 0.4); background: linear-gradient(180deg, rgba(52, 211, 153, 0.05), var(--panel) 55%); }
/* Whose setup this is, in the same voice as the rest of the page. Six of these
   set as tracked-out caps in a pill read as chrome; the attribution is the one
   thing worth knowing about a scan before the criteria, so it is set as a line
   of text and left to say itself. */
.lp-card-src {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  margin: 0; font-size: 12.5px; color: var(--dim);
}
/* The only badge on the page. Status earns one; provenance does not. */
.lp-card-live {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: auto; color: var(--up); font-size: 11.5px;
}
.lp-card-live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--up); flex: none;
}
.lp-card h3 { margin: 6px 0 10px; font-size: 20px; font-weight: 650; letter-spacing: -0.3px; }
.lp-card p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.lp-card-detail { font-size: 13px !important; color: var(--dim) !important; padding-top: 12px; border-top: 1px solid var(--line); }

/* ---------- steps ---------- */
.lp-steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 16px; }
.lp-steps li {
  display: grid; grid-template-columns: 62px 1fr; gap: 22px; align-items: start;
  background: var(--panel); border: 1px solid var(--line); border-radius: 13px; padding: 26px 28px;
}
.lp-step-num {
  grid-column: 1; grid-row: 1;
  font-family: var(--mono); font-size: 22px; font-weight: 650; color: var(--up); opacity: 0.55;
}
/* Both text rows belong in the second column. Left to auto-placement the
   paragraph fell into column one and wrapped to a 62px ribbon one word wide. */
.lp-steps h3, .lp-steps p { grid-column: 2; }
.lp-steps h3 { margin: 0 0 8px; font-size: 18px; font-weight: 620; }
.lp-steps p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.62; max-width: 74ch; }

/* ---------- feature grid ---------- */
.lp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 26px; margin-top: 40px; }
.lp-grid h4 { margin: 0 0 7px; font-size: 14.5px; font-weight: 620; }
.lp-grid p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--dim); }

/* ---------- pricing ---------- */
/* Stretch, not start: equal-height cards are what lets the pinned CTAs land on
   one line across all three plans. */
.lp-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; align-items: stretch; }
/* A column, so the CTA can be pinned to the bottom of every plan and the three
   buttons land on one line whatever the card above them contains. */
.lp-plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: 13px; padding: 28px 26px;
}
.lp-plan-featured { border-color: rgba(52, 211, 153, 0.45); background: linear-gradient(180deg, rgba(52, 211, 153, 0.06), var(--panel) 55%); }
.lp-plan-flag {
  position: absolute; top: -11px; left: 26px; padding: 3px 10px; border-radius: 999px;
  background: var(--up); color: #06231a; font-size: 11px; font-weight: 650;
}
.lp-plan h3 { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--muted); }
.lp-price { font-size: 40px; font-weight: 680; font-family: var(--mono); letter-spacing: -1.4px; }
.lp-price span { font-size: 15px; font-weight: 400; color: var(--muted); font-family: inherit; letter-spacing: normal; }
.lp-plan-note { margin: 6px 0 0; font-size: 12.5px; color: var(--dim); }
/* Reserves the same height whether or not a plan has a note under its price, so
   all three feature lists start on one line. */
.lp-plan-price { min-height: 90px; }
.lp-plan ul { list-style: none; margin: 14px 0 22px; padding: 0; }
.lp-plan li { position: relative; padding: 7px 0 7px 24px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.lp-plan li::before { content: "✓"; position: absolute; left: 0; color: var(--up); font-weight: 700; }
.lp-plan .lp-btn { display: block; text-align: center; margin-top: auto; }

/* ---------- faq ---------- */
.lp-section details {
  border-bottom: 1px solid var(--line); padding: 17px 0;
}
.lp-section summary { cursor: pointer; font-size: 15.5px; font-weight: 560; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.lp-section summary::-webkit-details-marker { display: none; }
.lp-section summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; flex: none; }
.lp-section details[open] summary::after { content: "−"; }
.lp-section details p { margin: 12px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.65; max-width: 62ch; }

/* ---------- final cta ---------- */
.lp-final {
  text-align: center; margin: 40px 0 70px; padding: 62px 28px;
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.07), var(--panel));
  border: 1px solid rgba(52, 211, 153, 0.25); border-radius: 16px;
}
.lp-final h2 { font-size: clamp(25px, 3.2vw, 34px); margin: 0 0 12px; letter-spacing: -0.7px; }
.lp-final p { margin: 0 0 26px; color: var(--muted); }

/* ---------- footer ---------- */
.lp-footer { border-top: 1px solid var(--line); padding: 40px 24px 48px; }
.lp-footer-inner { max-width: 1120px; margin: 0 auto; display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.lp-brand-sm { font-size: 15px; }
.lp-brand-sm svg { width: 22px; height: 22px; }
.lp-footer-tag { margin: 10px 0 0; font-size: 13px; color: var(--dim); }
.lp-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.lp-footer nav a { color: var(--muted); text-decoration: none; font-size: 13.5px; }
.lp-footer nav a:hover { color: var(--text); }
.lp-disclaimer {
  max-width: 1120px; margin: 30px auto 0; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 11.5px; line-height: 1.6; color: var(--dim);
}

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .lp-cards, .lp-pricing { grid-template-columns: 1fr; }
  .lp-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-nav-links { display: none; }
}
/* The brand plus the theme toggle, the sign-in link and the CTA do not fit one
   line on a phone, so the controls take a row of their own. */
@media (max-width: 720px) {
  .lp-nav { flex-wrap: wrap; gap: 12px 16px; }
  .lp-nav-cta { width: 100%; justify-content: space-between; gap: 12px; }
}
@media (max-width: 600px) {
  .lp-grid { grid-template-columns: 1fr; }
  .lp-steps li { grid-template-columns: 1fr; gap: 10px; }
  /* Back to one column: the desktop rule parks the text in column two, which
     would open an implicit second column here. */
  .lp-steps h3, .lp-steps p { grid-column: 1; }
}

/* ---------- method / inspirations ---------- */
.lp-method { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.lp-method-card {
  position: relative; padding: 30px 28px; border-radius: 14px;
  background: linear-gradient(160deg, rgba(96, 165, 250, 0.06), var(--panel) 42%);
  border: 1px solid var(--line);
}
/* The shape each method hunts, drawn rather than initialled. A monogram tile
   says nothing about a method; this is the thing the screen is actually looking
   for, in the same visual language as the chart in the hero. */
.lp-shape { display: block; width: 160px; height: 76px; }
.lp-shape .px {
  fill: none; stroke: var(--up); stroke-width: 2.2;
  stroke-linejoin: round; stroke-linecap: round;
}
.lp-shape .guide { fill: none; stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0.65; }
.lp-shape .zone {
  fill: rgba(52, 211, 153, 0.1); stroke: var(--up); stroke-width: 1;
  stroke-dasharray: 3 3; opacity: 0.75;
}
.lp-method-card h3 { margin: 14px 0 3px; font-size: 20px; font-weight: 650; letter-spacing: -0.3px; }
.lp-method-role { margin: 0 0 14px; font-size: 12.5px; color: var(--up); opacity: 0.8; }
.lp-method-card p { font-size: 14.5px; line-height: 1.62; color: var(--muted); margin: 0 0 14px; }
.lp-method-list { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); }
.lp-method-list li { position: relative; padding: 5px 0 5px 18px; font-size: 13px; color: var(--dim); }
/* A short rule rather than an arrow: these are notes on a method, not links,
   and nothing about them points anywhere. */
.lp-method-list li::before {
  content: ''; position: absolute; left: 0; top: 0.95em;
  width: 9px; border-top: 1.5px solid var(--up); opacity: 0.55;
}
.lp-affiliation {
  max-width: 760px; margin: 26px auto 0; text-align: center;
  font-size: 12px; line-height: 1.6; color: var(--dim);
  padding: 14px 18px; border: 1px dashed var(--line); border-radius: 10px;
}

/* ---------- polish ---------- */
.lp-card, .lp-plan, .lp-steps li, .lp-method-card {
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.lp-card:hover, .lp-method-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.lp-plan:hover { border-color: var(--line-strong); }
.lp-lead { text-wrap: pretty; }
.lp-brand svg { width: 30px; height: 30px; }
.lp-brand-sm svg { width: 24px; height: 24px; }
.lp-nav { border-bottom: 1px solid transparent; }
/* Three cards, so it goes straight to one column: a two-column fallback would
   leave the third method sitting alone on a row of its own. */
@media (max-width: 940px) { .lp-method { grid-template-columns: 1fr; } }


/* Pressed feedback on the marketing surfaces too. */
.lp-btn:active { transform: translateY(1px); }
.lp-plan:active, .lp-card:active { transform: translateY(-1px); }

/* Display type wants tighter tracking at large sizes; Geist is drawn loose. */
.lp-section h2 { letter-spacing: -1px; }
.lp-price { letter-spacing: -1.6px; }

/* Body copy held near 65 characters stays readable without the eye losing the line. */
.lp-lead { max-width: 66ch; }
/* .lp-lead's own margin shorthand lands after .lp-narrow-block's auto margins,
   so a centred lead was setting centred text inside a box still pinned left. */
.lp-lead.lp-center { margin-left: auto; margin-right: auto; }

/* Legal placeholders */
.legal-todo {
  padding: 16px 18px; margin-bottom: 28px; border-radius: 10px;
  background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.35);
  color: var(--warn); font-size: 13.5px; line-height: 1.6;
}
.legal-todo strong { display: block; margin-bottom: 5px; }
.legal-list { list-style: none; margin: 22px 0 0; padding: 0; }
.legal-list li {
  padding: 13px 0; border-bottom: 1px solid var(--line);
  font-size: 14.5px; line-height: 1.65; color: var(--muted);
}
.legal-list li:last-child { border-bottom: 0; }
.legal-list strong { color: var(--text); font-weight: 600; }
.legal-list code { font-family: var(--mono); font-size: 12.5px; color: var(--accent); }

/* =======================================================================
   HERO
   One artifact: the argument on the left, the evidence on the right. The
   chart panel and the score card overlap so they read as a single marked-up
   candidate rather than two stacked widgets.
   ======================================================================= */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 64px;
  align-items: center;
  padding: 74px 0 22px;
}

/* Display type is the monospace, large and tight. The product's whole claim is
   that the numbers are exact, and this audience reads charts and terminals --
   a mono headline belongs to that world in a way a serif display would not. */
.hero h1 {
  font-family: var(--mono);
  font-size: clamp(30px, 3.5vw, 47px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 0 22px;
  text-wrap: balance;
}
.hero-sub {
  margin: 0 0 30px;
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--muted);
  max-width: 48ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-fine { margin: 14px 0 0; font-size: 12.5px; color: var(--dim); }

/* ---- the evidence ---- */
.hero-show { margin: 0; position: relative; }

/* The single dark surface on the page. A chart is the one thing that reads
   better on ink than on paper, and reserving the treatment for it keeps it
   meaningful instead of decorative. */
.hero-panel {
  background: linear-gradient(168deg, #1b2129 0%, #14181d 62%);
  border: 1px solid #2a3038;
  border-radius: 14px;
  /* The score card rides 26px up over this edge, so the bottom padding is the
     clearance the chart legend needs to stay out from under it. */
  padding: 16px 16px 40px;
  box-shadow: 0 24px 60px -22px rgba(20, 24, 29, 0.5), 0 2px 6px rgba(20, 24, 29, 0.12);
}
.hero-panel-head {
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 10px;
}
.hero-ticker {
  font-family: var(--mono); font-size: 15px; font-weight: 650;
  color: #f0f2f4; letter-spacing: 0.02em;
}
.hero-co { font-size: 12px; color: #8fa0ae; flex: 1; }
.hero-verdict {
  font-family: var(--mono); font-size: 27px; font-weight: 650;
  color: #4fbe8c; letter-spacing: -0.03em; line-height: 1;
}
.hero-verdict-of { font-size: 13px; color: #6f8492; font-weight: 400; letter-spacing: 0; }

.hero-chart { display: block; width: 100%; height: auto; }

/* On paper the ink panel separates on its own. On the dark theme the page is
   already near-black, so an ink panel reads as a hole rather than a raised
   surface -- 1.08:1 against the page before this.
 
   The fill lifts to 1.24-1.38:1, but the edge does the real work at 2.11:1,
   plus a 1px inner highlight along the top. That is deliberate and it is the
   app's own language: every panel in the product separates by its --line
   border, not by fill, and the hero should not look like a different product
   from the one it is selling. */
:root:not([data-theme="light"]) .hero-panel {
  background: linear-gradient(168deg, #242c37 0%, #1e242d 62%);
  border-color: #3d4957;
  box-shadow:
    0 24px 60px -22px rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

/* The card overlaps the panel, so it has to sit above it in tone as well as in
   stacking order -- on --panel it was darker than the surface it covers, which
   reads as a dent. Lifting it puts --dim at 3.3:1 on the new fill, so the two
   quiet greys are raised with it rather than left behind. */
:root:not([data-theme="light"]) .hero-card {
  --muted: #9aa6ba;
  --dim: #9aa6ba;
  background: #2e3743;
  border-color: #4a5665;
  box-shadow: 0 18px 38px -16px rgba(0, 0, 0, 0.6);
}

.hero-legend {
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  margin-top: 8px; font-size: 11px; color: #8fa0ae;
}
.hero-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 13px; height: 2.5px; border-radius: 2px; display: inline-block; }
.sw-base { height: 9px; border: 1px dashed #5a7a93; background: rgba(61, 84, 104, 0.25); border-radius: 2px; }
.sw-e10 { background: #c2a14a; }
.sw-e20 { background: #6d7f92; }

/* ---- the score card, overlapping the panel ---- */
.hero-card {
  position: relative;
  margin: -26px 0 0 auto;
  width: min(340px, 88%);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 13px 15px 14px;
  box-shadow: 0 14px 34px -14px rgba(40, 36, 28, 0.26);
}
.hero-card-top {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 11px; font-size: 12px; color: var(--muted);
}
.hero-tier {
  font-family: var(--mono); font-size: 10.5px; font-weight: 650;
  color: var(--up); border: 1px solid var(--up);
  padding: 1px 7px; border-radius: 999px;
}

.hero-rubric { width: 100%; border-collapse: collapse; }
.hero-rubric th {
  text-align: left; font-weight: 400; font-size: 12px;
  color: var(--text); padding: 3px 10px 3px 0; white-space: nowrap;
  text-transform: none; letter-spacing: 0; position: static;
  cursor: default; background: none; border: 0;
}
/* The bar is the point: four unequal lengths make "30 of 35" legible at a
   glance, which a column of numbers alone does not. */
.hero-rubric .bar { width: 100%; padding: 3px 10px 3px 0; }
.hero-rubric .bar span {
  display: block; height: 5px; border-radius: 3px;
  background: var(--up); opacity: 0.8;
}
.hero-rubric .val {
  text-align: right; font-family: var(--mono); font-size: 12px;
  color: var(--text); white-space: nowrap; padding: 3px 0;
  font-variant-numeric: tabular-nums;
}
.hero-rubric .val em { font-style: normal; color: var(--dim); font-size: 11px; }
.hero-card-note {
  margin: 11px 0 0; font-size: 11.5px; line-height: 1.55; color: var(--dim);
}

/* =======================================================================
   PROOF LINE
   A sentence, not a row of big numbers. The figures carry the weight inside
   the prose, which is how somebody would actually say it out loud.
   ======================================================================= */
.proof {
  margin: 40px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}
.proof p {
  margin: 0; max-width: 76ch;
  font-size: 15px; line-height: 1.68; color: var(--muted);
}
.proof strong {
  color: var(--text); font-weight: 600;
  font-family: var(--mono); font-size: 14.5px;
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 38px; padding-top: 46px; }
  .hero-sub { max-width: none; }
  .hero-card { width: min(340px, 100%); margin-right: 0; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: clamp(25px, 8vw, 32px); }
  .hero-card { margin-top: -14px; }
  /* Stacked, the two calls to action should be the same width -- two buttons of
     different lengths sitting one above the other read as a mistake. */
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .lp-btn { text-align: center; }
}
