/* Landing page + /switch migration pages. Reuses the Linear token layer + Inter from styles.css.

   IMPORTANT — shared with switch/*.html:
   The base classes below (.lp-nav, .lp-section, .lp-footer, .lp-final, .lp-trust,
   .btn-*, .compare-table, .lp-steps, .lp-bullets, .lp-microline, .lp-lead, .switch-hero…)
   are reused verbatim by the four /switch/*.html pages, which put content DIRECTLY inside
   .lp-nav / .lp-section / .lp-footer (no inner wrapper). Their definitions are kept exactly
   as before so those pages are unaffected.

   The S4-1 landing redesign (two-tier width, full-bleed bands, embedded screenshots) is
   layered on top and scoped to `.landing:not(.switch-page)` so it NEVER touches switch pages.
   Width unification is achieved with NEW container classes .lp-wrap (820) / .lp-wrap-wide (1080),
   not by changing the shared base classes. */

:root {
  --lp-max: 820px; /* reading tier */
  --lp-max-wide: 1080px; /* wide tier */
  --lp-gutter: 24px; /* left/right gutter, all sections */
  --lp-pad-y: 64px; /* landing section vertical rhythm (desktop) */
}

/* ── S5 dual-mode tokens (bold). Scoped to the landing page only — the four
   /switch pages (.switch-page) keep the app's Linear light tokens untouched.
   Base = dark (bold). @media(prefers-color-scheme: light) follows the system
   when no explicit data-theme; the nav toggle sets data-theme + localStorage.
   Reuses the existing var(--accent/--bg/--text…) references so all landing
   styles switch automatically; --on-accent is the button label colour and is
   written straight into .btn-primary so no link rule can override it. ─────── */
.landing:not(.switch-page) {
  /* S6-7: neutral near-black base (was the #081310 dark-green tint). Green is
     accent-only now — text/icons/buttons/numbers/ring/glow keep it. */
  --bg: #0a0a0b;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-soft: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f7f8f8;
  --muted: #9294a0;
  --text-3: #82848e;
  --accent: #2fd08a;
  --blue-dark: #26b477;
  --accent-soft: rgba(34, 198, 127, 0.14);
  --on-accent: #04140d;
  --chip: rgba(255, 255, 255, 0.06);
  --track: rgba(255, 255, 255, 0.1);
  --glow: 0 0 26px rgba(47, 208, 138, 0.5);
  --btn-glow: 0 0 28px rgba(34, 198, 127, 0.4);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --eb-bg: rgba(34, 198, 127, 0.14);
  --eb-fg: #5fe3a6;
  --eb-bd: rgba(34, 198, 127, 0.3);
  --blob1: radial-gradient(circle, rgba(34, 198, 127, 0.22), rgba(34, 198, 127, 0) 70%);
  --blob2: radial-gradient(circle, rgba(29, 158, 117, 0.12), rgba(29, 158, 117, 0) 70%);
  /* S6-7: local-first section is a neutral elevation band now (was green) */
  --band-bg: #111113;
  --band-bd: rgba(255, 255, 255, 0.08);
  --band-chip: rgba(255, 255, 255, 0.08);
  --danger: #ff6f61;
}

/* Light values, shared by an explicit data-theme="light" and the system pref. */
.landing:not(.switch-page)[data-theme="light"] {
  /* S6-7: neutral light base (was the #f3f7f5 green tint); green accent-only */
  --bg: #f8f8f9;
  --surface: #ffffff;
  --surface-soft: #f1f1f3;
  --line: rgba(18, 19, 23, 0.1);
  --text: #14151a;
  --muted: #55575f;
  --text-3: #696b73;
  --accent: #0b8659;
  --blue-dark: #097a52;
  --accent-soft: #dff3ea;
  --on-accent: #ffffff;
  --chip: #ffffff;
  --track: #e7e7ea;
  --glow: none;
  --btn-glow: 0 6px 18px rgba(11, 148, 99, 0.28);
  --shadow: 0 16px 40px rgba(15, 16, 22, 0.1);
  --eb-bg: #dff3ea;
  --eb-fg: #0b7a52;
  --eb-bd: rgba(11, 148, 99, 0.22);
  --blob1: radial-gradient(circle, rgba(11, 148, 99, 0.12), rgba(11, 148, 99, 0) 70%);
  --blob2: radial-gradient(circle, rgba(47, 180, 120, 0.08), rgba(47, 180, 120, 0) 70%);
  --band-bg: #f0f0f2;
  --band-bd: rgba(18, 19, 23, 0.09);
  --band-chip: #ffffff;
  --danger: #c53d2e;
}

@media (prefers-color-scheme: light) {
  .landing:not(.switch-page):not([data-theme="dark"]) {
    --bg: #f8f8f9;
    --surface: #ffffff;
    --surface-soft: #f1f1f3;
    --line: rgba(18, 19, 23, 0.1);
    --text: #14151a;
    --muted: #55575f;
    --text-3: #696b73;
    --accent: #0b8659;
    --blue-dark: #097a52;
    --accent-soft: #dff3ea;
    --on-accent: #ffffff;
    --chip: #ffffff;
    --track: #e7e7ea;
    --glow: none;
    --btn-glow: 0 6px 18px rgba(11, 148, 99, 0.28);
    --shadow: 0 16px 40px rgba(15, 16, 22, 0.1);
    --eb-bg: #dff3ea;
    --eb-fg: #0b7a52;
    --eb-bd: rgba(11, 148, 99, 0.22);
    --blob1: radial-gradient(circle, rgba(11, 148, 99, 0.12), rgba(11, 148, 99, 0) 70%);
    --blob2: radial-gradient(circle, rgba(47, 180, 120, 0.08), rgba(47, 180, 120, 0) 70%);
    --band-bg: #f0f0f2;
    --band-bd: rgba(18, 19, 23, 0.09);
    --band-chip: #ffffff;
    --danger: #c53d2e;
  }
}

body.landing {
  height: auto;
  overflow: auto;
  background: var(--bg);
  color: var(--text);
  transition: background 0.4s, color 0.4s;
}

/* Link colour applies to text links only — NOT to .btn-primary, whose white
   label must win over the accent (green-on-green was invisible otherwise). */
.landing a:not(.btn-primary) {
  color: var(--accent);
}

/* ── Nav (base — switch pages put content directly in .lp-nav) ────── */
.lp-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 24px;
}

.lp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-title);
  font-weight: var(--w-semibold);
  color: var(--text);
  text-decoration: none;
}

.lp-logo {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-control);
  color: #fff;
  font-weight: var(--w-semibold);
  background: linear-gradient(135deg, var(--accent), var(--green));
}

.lp-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lp-nav-links a:not(.btn-primary) {
  color: var(--muted);
  text-decoration: none;
  font-size: var(--text-body);
}

.lp-theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--chip);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.lp-theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── Buttons (shared) ────────────────────────────────────────────── */
.btn-primary,
.btn-soft {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--r-control);
  font-size: var(--text-body);
  font-weight: var(--w-semibold);
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  border: 0;
  background: var(--accent);
  /* Label colour is written straight from the token (dark: near-black on
     bright green; light: white on green) — never overridden by a link rule. */
  color: var(--on-accent, #fff);
  box-shadow: var(--btn-glow, none);
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-soft {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.btn-lg {
  padding: 14px 26px;
  font-size: var(--text-emph);
}

.btn-sm {
  padding: 7px 14px;
}

/* ── Hero (landing only; content width comes from the inner .lp-wrap-wide,
   and .landing:not(.switch-page) overrides this to full-bleed) ─────── */
.lp-hero {
  max-width: none;
  margin: 0 auto;
  padding: 64px 24px 40px;
  text-align: center;
}

.lp-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lp-lead {
  margin: 0 0 28px;
  font-size: var(--text-page);
  line-height: 1.5;
  color: var(--muted);
}

.lp-cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.lp-microline {
  margin-top: 16px;
  font-size: var(--text-small);
  color: var(--text-3);
}

/* ── Positioning strip (base; unified to the wide tier, inner .lp-wrap
   holds the reading-width text) ──────────────────────────────────── */
.lp-strip {
  max-width: var(--lp-max-wide);
  margin: 0 auto;
  padding: 22px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-size: var(--text-emph);
  color: var(--muted);
}

/* ── Sections (base — switch pages put content directly here) ────── */
.lp-section {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 24px;
}

.lp-section h2 {
  margin: 0 0 24px;
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: -0.01em;
}

.lp-section p {
  margin: 0 0 16px;
  font-size: var(--text-emph);
  line-height: 1.65;
}

.lp-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 12px;
}

.lp-bullets li {
  position: relative;
  padding-left: 24px;
  font-size: var(--text-emph);
  line-height: 1.55;
}

.lp-bullets li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* How it works (shared) */
.lp-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 24px;
}

.lp-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 52px;
}

.lp-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: var(--w-semibold);
}

.lp-steps h3 {
  margin: 0 0 6px;
  font-size: var(--text-title);
}

/* Feature blocks (landing) */
.lp-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.lp-features article h3 {
  margin: 0 0 8px;
  font-size: var(--text-title);
  color: var(--accent);
}

.lp-features article p {
  font-size: var(--text-body);
  color: var(--muted);
}

/* Pricing (landing) */
.lp-pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.lp-plan {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
}

.lp-plan-founding {
  border-color: var(--accent);
}

.lp-plan h3 {
  margin: 0 0 6px;
  font-size: var(--text-title);
}

.lp-plan-note {
  margin: 0 0 16px;
  font-size: var(--text-small);
  font-style: italic;
  color: var(--muted);
}

.lp-plan ul {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 10px;
}

.lp-plan li {
  position: relative;
  padding-left: 18px;
  font-size: var(--text-body);
  line-height: 1.45;
}

.lp-plan li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--muted);
}

.lp-reassure {
  max-width: 680px;
  margin: 0 auto 40px;
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}

/* Waitlist (landing) */
.lp-waitlist {
  max-width: 480px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface-soft);
}

.lp-waitlist h3 {
  margin: 0 0 18px;
  font-size: var(--text-title);
  text-align: center;
}

.wl-form {
  display: grid;
  gap: 14px;
}

.wl-form label {
  display: grid;
  gap: 6px;
  font-size: var(--text-small);
  font-weight: var(--w-semibold);
  color: var(--muted);
}

.wl-form input,
.wl-form select {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  background: var(--surface);
  color: var(--text);
  font-weight: var(--w-regular);
  outline: none;
}

.wl-form input:focus,
.wl-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.wl-note {
  margin: 0;
  font-size: var(--text-micro);
  line-height: 1.5;
  color: var(--text-3);
}

.wl-success {
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--accent);
  text-align: center;
}

/* FAQ (landing) */
.lp-faq {
  display: grid;
  gap: 8px;
}

.lp-faq details {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-control);
}

.lp-faq summary {
  font-size: var(--text-emph);
  font-weight: var(--w-semibold);
  cursor: pointer;
}

.lp-faq p {
  margin: 12px 0 0;
  font-size: var(--text-body);
  color: var(--muted);
}

.lp-callout {
  padding: 14px 18px;
  border-radius: var(--r-control);
  background: var(--accent-soft);
  font-size: var(--text-body);
}

/* Final CTA (shared: switch pages use .lp-final) */
.lp-final {
  text-align: center;
}

.lp-final .lp-waitlist {
  margin-top: 40px;
  text-align: left;
}

/* Footer (base — switch pages put content directly in .lp-footer) */
.lp-footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--text-small);
}

/* ── /switch migration pages (base) ──────────────────────────────── */
.switch-hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 32px;
  text-align: center;
}

.lp-enemy {
  margin: 0 0 16px;
  font-size: var(--text-title);
  line-height: 1.4;
  color: var(--muted);
}

.switch-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(28px, 5vw, 42px);
  letter-spacing: -0.02em;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: var(--text-body);
}

.compare-table th,
.compare-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare-table th {
  color: var(--muted);
  font-weight: var(--w-semibold);
}

.compare-table .col-us,
.compare-table td.mark-us {
  color: var(--accent);
  font-weight: var(--w-semibold);
}

/* base responsive (shared with switch pages) */
@media (max-width: 720px) {
  .lp-features,
  .lp-pricing {
    grid-template-columns: 1fr;
  }

  .lp-nav-links a:not(.btn-primary) {
    display: none;
  }

  .compare-table {
    font-size: var(--text-small);
  }

  .compare-table th,
  .compare-table td {
    padding: 9px 8px;
  }
}

/* ════════════════════════════════════════════════════════════════════
   S4-1 LANDING REDESIGN — scoped to the marketing page only.
   `.landing:not(.switch-page)` guarantees none of this reaches switch pages.
   Two width tiers via new containers; full-bleed bands; embedded screenshots.
   ════════════════════════════════════════════════════════════════════ */
.landing:not(.switch-page) .lp-wrap,
.landing:not(.switch-page) .lp-wrap-wide {
  width: 100%;
  margin: 0 auto;
  padding-left: var(--lp-gutter);
  padding-right: var(--lp-gutter);
}

.landing:not(.switch-page) .lp-wrap {
  /* S6-1: unified to the wide tier so every section's container edge lines up
     into one vertical line down the page (long copy is re-narrowed per block). */
  max-width: var(--lp-max-wide);
}

.landing:not(.switch-page) .lp-wrap-wide {
  max-width: var(--lp-max-wide);
}

/* Neutralize the base .lp-* width/padding on the landing page: sections go
   full-bleed and the inner .lp-wrap / .lp-wrap-wide owns width + gutter. */
.landing:not(.switch-page) .lp-nav,
.landing:not(.switch-page) .lp-section,
.landing:not(.switch-page) .lp-footer,
.landing:not(.switch-page) .lp-strip {
  max-width: none;
  display: block;
}

.landing:not(.switch-page) .lp-nav {
  padding: 20px 0;
}

.landing:not(.switch-page) .lp-section {
  padding: var(--lp-pad-y) 0;
}

.landing:not(.switch-page) .lp-strip {
  padding: 0;
  background: var(--surface-soft);
}

.landing:not(.switch-page) .lp-strip .lp-wrap {
  padding-top: 22px;
  padding-bottom: 22px;
  text-align: center;
  font-size: var(--text-emph);
  color: var(--muted);
}

.landing:not(.switch-page) .lp-footer {
  padding: 32px 0;
  display: block;
}

.lp-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lp-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

/* ════ S6-7: native, theme-aware product mockups (replaced raster shots) ════
   These share the live demo card's token / radius / border language, so every
   visual on the page renders in one system and follows light + dark. ─────── */
.landing:not(.switch-page) .lp-mock {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.landing:not(.switch-page) .lp-mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}
.landing:not(.switch-page) .lp-mock-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-emph);
  font-weight: var(--w-semibold);
  color: var(--text);
}
.landing:not(.switch-page) .lp-mock-chip {
  font-size: var(--text-small);
  font-weight: var(--w-semibold);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.landing:not(.switch-page) .lp-mock-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.landing:not(.switch-page) .lp-mock-dot-b {
  background: #8b83f0;
}
.landing:not(.switch-page) .lp-mock-dot-c {
  background: #f0b45e;
}

/* Focus mockup — a finished session dropping one billable entry */
.landing:not(.switch-page) .lp-mock-focus-body {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 26px 24px;
}
.landing:not(.switch-page) .lp-mock-ring {
  position: relative;
  width: 132px;
  height: 132px;
  flex: none;
}
.landing:not(.switch-page) .lp-mock-ring svg {
  width: 100%;
  height: 100%;
}
.landing:not(.switch-page) .lp-mock-ring-c {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.landing:not(.switch-page) .lp-mock-ring-c .lp-num {
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
}
.landing:not(.switch-page) .lp-mock-ring-l {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
}
.landing:not(.switch-page) .lp-mock-money {
  font-size: 48px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--accent);
  text-shadow: var(--glow);
}
.landing:not(.switch-page) .lp-mock-sub {
  margin-top: 6px;
  font-size: var(--text-small);
  color: var(--text-3);
}
.landing:not(.switch-page) .lp-mock-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
  font-size: var(--text-small);
}
.landing:not(.switch-page) .lp-mock-entry-l {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.landing:not(.switch-page) .lp-mock-entry-l svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}
.landing:not(.switch-page) .lp-mock-entry-amt {
  color: var(--text);
  font-weight: 500;
}

/* Table shared by the timesheet + invoice mockups (Harvest-style) */
.landing:not(.switch-page) .lp-sheet {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-small);
}
.landing:not(.switch-page) .lp-sheet th,
.landing:not(.switch-page) .lp-sheet td {
  padding: 10px 20px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.landing:not(.switch-page) .lp-sheet th:first-child,
.landing:not(.switch-page) .lp-sheet td:first-child {
  text-align: left;
  white-space: normal;
}
.landing:not(.switch-page) .lp-sheet thead th {
  color: var(--text-3);
  font-weight: var(--w-medium);
  border-bottom: 1px solid var(--line);
}
.landing:not(.switch-page) .lp-sheet tbody td {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.landing:not(.switch-page) .lp-sheet tbody td:first-child {
  color: var(--text);
}
.landing:not(.switch-page) .lp-sheet tbody td:last-child {
  color: var(--text);
  font-weight: 500;
}
.landing:not(.switch-page) .lp-sheet tbody td:first-child .lp-mock-dot {
  margin-right: 8px;
  vertical-align: middle;
}
.landing:not(.switch-page) .lp-sheet tfoot td {
  padding-top: 12px;
  padding-bottom: 14px;
  font-weight: var(--w-semibold);
  color: var(--text);
}
.landing:not(.switch-page) .lp-sheet tfoot td:last-child {
  color: var(--accent);
}

/* Invoice mockup extras */
.landing:not(.switch-page) .lp-inv-meta {
  display: flex;
  gap: 40px;
  padding: 16px 20px 4px;
}
.landing:not(.switch-page) .lp-inv-meta > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: var(--text-body);
  color: var(--text);
}
.landing:not(.switch-page) .lp-inv-lbl {
  font-size: var(--text-micro);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
}
.landing:not(.switch-page) .lp-inv-totals {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line);
  font-size: var(--text-small);
}
.landing:not(.switch-page) .lp-inv-totals > div {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}
.landing:not(.switch-page) .lp-inv-totals .lp-num {
  color: var(--text);
}
.landing:not(.switch-page) .lp-inv-total {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-weight: var(--w-semibold);
}
.landing:not(.switch-page) .lp-inv-total .lp-num {
  color: var(--accent);
}

@media (max-width: 720px) {
  .landing:not(.switch-page) .lp-mock-focus-body {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .landing:not(.switch-page) .lp-mock-money {
    font-size: 40px;
  }
  .landing:not(.switch-page) .lp-sheet th,
  .landing:not(.switch-page) .lp-sheet td {
    padding: 9px 14px;
  }
  .landing:not(.switch-page) .lp-inv-meta {
    gap: 28px;
  }
}

/* Hero — copy + big shot, both inside .lp-wrap-wide */
.landing:not(.switch-page) .lp-hero {
  max-width: none;
  padding: 0;
  text-align: left;
  /* The ambient blobs bleed sideways past the viewport; clip that horizontal
     bleed so it never yields a horizontal scrollbar (S2-7). overflow-y stays
     visible so the blobs' vertical glow still softens into neighbouring bands. */
  overflow-x: clip;
}

/* ── S5-1 Hero (bold, two columns: copy + live time→money demo) ──────── */
.landing:not(.switch-page) .lp-hero .lp-wrap-wide {
  position: relative;
  padding-top: var(--lp-pad-y);
  padding-bottom: 56px;
  /* S6-5: stacked hero — centred copy on top, a full-width live card below
     (replaces the S6-4 side-by-side 5fr/6fr layout). */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* Ambient accent blobs sit behind the hero content */
.lp-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.lp-blob-a {
  top: -110px;
  right: -60px;
  width: 360px;
  height: 360px;
  background: var(--blob1);
}
.lp-blob-b {
  bottom: -140px;
  left: -80px;
  width: 320px;
  height: 320px;
  background: var(--blob2);
}
.landing:not(.switch-page) .lp-hero-copy,
.lp-demo {
  position: relative;
  z-index: 1;
}

.landing:not(.switch-page) .lp-hero-copy {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  padding: 5px 13px;
  border: 1px solid var(--eb-bd);
  border-radius: 999px;
  background: var(--eb-bg);
  color: var(--eb-fg);
  font-size: var(--text-micro);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.landing:not(.switch-page) .lp-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 6.4vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.lp-hl {
  color: var(--accent);
  text-shadow: var(--glow);
}
.lp-em {
  color: var(--accent);
  font-weight: 500;
  font-style: normal;
}

.landing:not(.switch-page) .lp-hero .lp-lead {
  margin: 0 auto 22px;
  max-width: 460px;
}

.landing:not(.switch-page) .lp-hero .lp-badges {
  justify-content: center;
}

.landing:not(.switch-page) .lp-hero .lp-cta-row {
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}
.lp-cta-aside {
  font-size: var(--text-small);
  color: var(--text-3);
}

.lp-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.lp-badges li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: var(--text-small);
  font-weight: var(--w-medium);
  color: var(--muted);
}

.lp-badge-ic {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--accent);
}

/* ── Live demo card: the focus timer IS the invoice ──────────────────── */
.lp-num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.lp-demo {
  /* S6-5: full-width wide card (was the narrow right-hand column). Deep
     padding/radius + a second mode-aware glow layer for real presence. */
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 28px;
  box-shadow: var(--shadow), var(--btn-glow);
}
.lp-demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.lp-demo-task {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--text-small);
  color: var(--muted);
}
.lp-demo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.lp-demo-rate {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--eb-bg);
  color: var(--eb-fg);
  font-size: var(--text-micro);
  font-weight: 500;
}
/* S6-5: three zones in one wide row — ring | earned | this-week invoice */
.lp-demo-body {
  display: grid;
  grid-template-columns: auto 1fr 1.3fr;
  align-items: center;
  gap: 34px;
  margin-top: 18px;
}
.lp-demo-timer {
  display: grid;
  place-items: center;
}
.lp-demo-earned {
  min-width: 0;
}
.lp-ring-wrap {
  /* S6-4: ring blown up from 112 → 150; the SVG fills the wrap via width:100%
     so its 0 0 112 112 viewBox (and the JS dash math) is untouched. */
  position: relative;
  width: 150px;
  height: 150px;
  flex: none;
}
.lp-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.lp-ring-track {
  fill: none;
  stroke: var(--track);
  stroke-width: 6;
}
.lp-ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.2s linear;
}
.lp-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.lp-timer {
  font-size: 27px;
  font-weight: 500;
  color: var(--text);
}
.lp-ring-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
}
.lp-money {
  font-size: 56px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--accent);
  text-shadow: var(--glow);
}
.lp-demo-sub {
  margin-top: 4px;
  font-size: var(--text-small);
  color: var(--text-3);
}
.lp-demo-week {
  padding-left: 34px;
  border-left: 1px solid var(--line);
}
.lp-demo-week-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.lp-demo-week-label {
  font-size: var(--text-small);
  color: var(--text-3);
}
.lp-demo-week-total {
  font-size: 23px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.4s;
}
.lp-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: var(--text-small);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s, transform 0.5s;
}
.lp-line.in {
  opacity: 1;
  transform: none;
}
.lp-line-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}
.lp-line-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.lp-line-amt {
  font-weight: 500;
  color: var(--text);
}

/* S6-2/S6-7: stacked feature block — short copy centred on top, the native
   full-width mockup (.lp-mock) below. */
.lp-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.lp-stack-copy {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.lp-stack-copy h2 {
  margin-bottom: 12px;
}

.lp-stack-copy p {
  margin: 0;
  font-size: var(--text-emph);
  line-height: 1.6;
  color: var(--muted);
}

.landing:not(.switch-page) .lp-steps p {
  margin: 0;
  color: var(--muted);
}

.landing:not(.switch-page) .lp-trust {
  /* S6-3: the local-first section is the page's saturated green band. */
  background: var(--band-bg);
  border-top: 1px solid var(--band-bd);
  border-bottom: 1px solid var(--band-bd);
}

/* switching compare table gets a horizontal-scroll guard on the landing page */
.lp-table-scroll {
  overflow-x: auto;
  margin: 4px 0 20px;
}

.lp-table-scroll .compare-table {
  margin: 0;
}

.compare-table tbody th {
  font-weight: var(--w-medium);
  color: var(--text);
}

/* Landing responsive */
/* S6-5: on narrow screens the wide card's three zones stack; the week zone
   swaps its left divider for a top one. */
@media (max-width: 820px) {
  .lp-demo-body {
    grid-template-columns: 1fr;
    gap: 22px;
    text-align: center;
  }
  .lp-demo-timer {
    justify-items: center;
  }
  .lp-demo-week {
    padding-left: 0;
    padding-top: 22px;
    border-left: 0;
    border-top: 1px solid var(--line);
    text-align: left;
  }
}

@media (max-width: 720px) {
  :root {
    --lp-pad-y: 40px;
  }
  /* S6-4: rein the enlarged demo back in on phones so nothing overflows. */
  .lp-ring-wrap {
    width: 128px;
    height: 128px;
  }
  .lp-money {
    font-size: 44px;
  }
  .lp-timer {
    font-size: 24px;
  }
  .lp-demo {
    padding: 20px;
  }
}

/* Reduced-motion users get the static finished snapshot the JS paints — with
   no fade transitions on the invoice lines or the week total. */
@media (prefers-reduced-motion: reduce) {
  .lp-line {
    transition: none;
  }
  .lp-ring-fill {
    transition: none;
  }
  body.landing {
    transition: none;
  }
}

/* ── Scroll reveal: sections fade + rise as they enter. JS adds `.reveal`
   (so a no-JS visitor sees everything), then `.in` when in view. ──────── */
.landing:not(.switch-page) .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.landing:not(.switch-page) .reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .landing:not(.switch-page) .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ════════════════════════════════════════════════════════════════════
   S6-3: icons + colour rhythm (去枯燥). Lucide-style inline SVGs
   (currentColor, 1.75 stroke); accent-soft chips mark every block. All
   scoped to `.landing:not(.switch-page)` so the four /switch pages — which
   share .lp-steps / .lp-bullets / .lp-trust — are never touched.
   ════════════════════════════════════════════════════════════════════ */

/* Accent-soft rounded-square badge on section / feature / plan headings */
.landing:not(.switch-page) .lp-ico-chip {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-card);
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 14px;
}
.landing:not(.switch-page) .lp-ico-chip svg {
  width: 20px;
  height: 20px;
}

/* How it works — S6-5: three icon-forward columns, one short line each
   (image leads, text follows). Own class so switch pages' numbered
   .lp-steps stays untouched. */
.landing:not(.switch-page) .lp-steps-flow {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.landing:not(.switch-page) .lp-steps-flow li {
  counter-increment: step;
  text-align: center;
}
.landing:not(.switch-page) .lp-flow-ic {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}
.landing:not(.switch-page) .lp-flow-ic svg {
  width: 26px;
  height: 26px;
}
.landing:not(.switch-page) .lp-flow-ic::after {
  content: counter(step);
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: var(--text-micro);
  font-weight: var(--w-semibold);
}
.landing:not(.switch-page) .lp-steps-flow h3 {
  margin: 0 0 4px;
  font-size: var(--text-title);
}
.landing:not(.switch-page) .lp-steps-flow p {
  margin: 0;
  font-size: var(--text-body);
  color: var(--muted);
}

/* Trust bullets — a Lucide icon replaces the dot (landing only) */
.landing:not(.switch-page) .lp-bullets-ico {
  gap: 16px;
}
.landing:not(.switch-page) .lp-bullets-ico li {
  padding-left: 34px;
}
.landing:not(.switch-page) .lp-bullets-ico li::before {
  display: none;
}
.landing:not(.switch-page) .lp-bi {
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  color: var(--accent);
}

/* On the green band, the chip needs a contrasting fill so it doesn't melt in */
.landing:not(.switch-page) .lp-trust .lp-ico-chip {
  background: var(--band-chip);
}

/* Pricing — the plan icon carries the colour; accent the price figure */
.landing:not(.switch-page) .lp-plan .lp-ico-chip {
  margin-bottom: 12px;
}
.lp-plan-price {
  color: var(--accent);
  font-weight: var(--w-semibold);
}

/* ── S6-5 Problem diagram: three disconnected tools, one leak ──────────── */
.landing:not(.switch-page) .lp-leak {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-top: 8px;
}
.landing:not(.switch-page) .lp-leak-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}
.landing:not(.switch-page) .lp-leak-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: var(--text-body);
  font-weight: var(--w-medium);
  color: var(--muted);
}
.landing:not(.switch-page) .lp-leak-ic {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-3);
}
.landing:not(.switch-page) .lp-leak-ic svg {
  width: 24px;
  height: 24px;
}
.landing:not(.switch-page) .lp-leak-cap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: var(--text-emph);
  color: var(--muted);
}
.landing:not(.switch-page) .lp-leak-drop {
  display: inline-grid;
  place-items: center;
  flex: none;
  color: var(--danger);
}
.landing:not(.switch-page) .lp-leak-drop svg {
  width: 20px;
  height: 20px;
}

/* How it works flow — phones: single column */
@media (max-width: 720px) {
  .landing:not(.switch-page) .lp-steps-flow {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
