/* Marketing landing page styles.
 * Translation of ~/.gstack/projects/dmitryax-ECG/designs/landing-page-20260503/variant-D-light-minimal.html
 * Tokens come from tokens.css; this file is page-specific only.
 */

/* Shell-unification (T-DR-002): the marketing landing renders inside
 * handler/templates/_base.html now. That base wraps {{block "header"}} in
 * <header class="site-header"> and {{block "footer"}} in <footer class=
 * "site-footer">, both of which base.css gives padding + border + bg-card.
 * Marketing has its own sticky-blur nav and a distinct footer layout, so
 * neutralize the wrapper styling under body.marketing — the inner
 * <div class="marketing"> scope provides everything visual. */
body.marketing > header.site-header,
body.marketing > footer.site-footer {
  padding: 0;
  border: 0;
  background: transparent;
  margin: 0;
}
/* The shared base also wraps {{block "main"}} in <main id="main">, which
 * base.css gives padding + max-width: 1200px. Marketing sections handle
 * their own padding + full-bleed backgrounds, so reset the main wrapper. */
body.marketing > main#main {
  padding: 0;
  max-width: none;
  margin: 0;
}

/* base.css sets text-decoration: underline on every <a>. The marketing
 * surface has three classes of anchor that should NOT render an underline:
 *   - nav links + the logo (anchors styled as nav items)
 *   - .nav-cta + .btn-* (anchors styled as buttons)
 *   - .hero-actions a (catch-all for the hero CTA pair)
 * Without this reset the underline leaks through to "Get an invite",
 * "See the pipeline", "How it works", and the logo wordmark. */
.marketing nav a,
.marketing .logo,
.marketing .nav-cta,
.marketing .btn-primary,
.marketing .btn-secondary,
.marketing .hero-actions a {
  text-decoration: none;
}

/* NAV */
.marketing nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  background: rgba(250, 250, 247, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-soft);
}
.marketing .logo {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 700;
  letter-spacing: -0.02em;
  display: inline-flex; align-items: center; gap: 7px;
}
.marketing .logo-dot {
  width: 8px; height: 8px;
  background: var(--blue);
  border-radius: 1px;
}
.marketing nav ul { list-style: none; display: flex; gap: 28px; align-items: center; }
.marketing nav ul a {
  color: var(--ink-soft);
  font-size: 14px; font-weight: 500;
  transition: color 0.15s;
}
.marketing nav ul a:hover { color: var(--ink); }
.marketing .nav-cta {
  background: var(--blue);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 4px;
  font-weight: 500 !important;
  transition: background 0.15s;
}
.marketing .nav-cta:hover { background: var(--blue-bright); }

/* HERO */
.marketing .hero {
  padding: 120px 32px 96px;
  text-align: center;
}
.marketing .hero-inner { max-width: 1080px; margin: 0 auto; }
.marketing .hero-text { max-width: 760px; margin: 0 auto; }

.marketing .hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--blue-faint);
  border: 1px solid var(--blue-soft);
  border-radius: 4px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--blue);
  margin-bottom: 32px;
  text-transform: uppercase;
  animation: fadeUp 0.6s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.marketing .eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 1px;
}

.marketing h1.hero-title {
  font-family: var(--font-display);
  /* Floor is 36px (not 44px) so "Snap the cover." stays on one line at
   * 375px viewport. At 44px the headline wrapped into 4 lines with two
   * orphan widows ("cover." and "minutes." on their own); the <br> in
   * the HTML wants a 2-line layout. */
  font-size: clamp(36px, 6.2vw, 84px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 28px;
  text-wrap: balance;
  animation: fadeUp 0.6s 0.1s ease both;
}
.marketing h1.hero-title .accent { color: var(--blue); }

.marketing .hero-sub {
  margin: 0 auto;
  font-size: 19px; font-weight: 400;
  color: var(--ink-soft);
  max-width: 560px;
  line-height: 1.55;
}
.marketing .hero-sub strong { color: var(--ink); font-weight: 600; }

.marketing .hero-actions {
  display: flex; gap: 12px; align-items: center; justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}
.marketing .btn-primary {
  background: var(--blue);
  color: #fff;
  padding: 14px 28px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 15px; font-weight: 500;
  border: none; cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: -0.005em;
  display: inline-flex; align-items: center; gap: 8px;
}
.marketing .btn-primary:hover { background: var(--blue-bright); }
.marketing .btn-secondary {
  background: transparent;
  color: var(--ink);
  padding: 14px 24px;
  border-radius: 4px;
  border: 1px solid var(--rule);
  font-family: var(--font-body);
  font-size: 15px; font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  display: inline-flex; align-items: center; gap: 8px;
}
.marketing .btn-secondary:hover { border-color: var(--ink); background: var(--bg-soft); }
.marketing .btn-secondary svg { transition: transform 0.15s; }
.marketing .btn-secondary:hover svg { transform: translateX(2px); }

.marketing .hero-trust {
  margin-top: 36px;
  display: flex; gap: 28px; align-items: center; justify-content: center;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px; color: var(--ink-muted); letter-spacing: 0.03em;
}
.marketing .hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.marketing .hero-trust strong { color: var(--ink); font-weight: 500; }
.marketing .hero-trust .dot { width: 3px; height: 3px; background: var(--ink-faint); border-radius: 50%; }

/* HERO PROOF — pipeline visualization */
.marketing .hero-proof {
  margin: 72px auto 0;
  max-width: 760px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 28px;
  text-align: left;
  box-shadow:
    0 1px 0 var(--rule-soft),
    0 12px 32px rgba(15, 20, 25, 0.04);
}
.marketing .proof-header {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--rule-soft);
}
.marketing .proof-label {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--ink-muted);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.marketing .proof-label strong { color: var(--ink); font-weight: 500; }
.marketing .proof-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--blue); font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.marketing .proof-status .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue);
  animation: pulse 1.6s ease infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.marketing .pipeline { display: flex; flex-direction: column; gap: 8px; }
.marketing .pipeline-step {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.marketing .pipeline-step:last-child { border-bottom: none; }
.marketing .step-num {
  width: 24px; height: 24px;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted);
}
.marketing .pipeline-step.done .step-num { background: var(--blue-faint); border-color: var(--blue-soft); color: var(--blue); }
.marketing .pipeline-step.active .step-num { background: var(--blue); border-color: var(--blue); color: #fff; }
.marketing .step-title { font-size: 14px; font-weight: 500; color: var(--ink); }
.marketing .step-meta { font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); margin-top: 2px; }
.marketing .step-result {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink); font-weight: 500;
  text-align: right;
}
.marketing .pipeline-step:not(.done):not(.active) .step-result { color: var(--ink-faint); }

.marketing .proof-result {
  margin-top: 20px;
  padding: 18px 20px;
  background: var(--blue-faint);
  border: 1px solid var(--blue-soft);
  border-radius: 4px;
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
}
.marketing .result-title { font-size: 13px; color: var(--ink-soft); }
.marketing .result-title strong { color: var(--ink); font-weight: 600; }
.marketing .result-price {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 700;
  color: var(--ink); letter-spacing: -0.02em;
  text-align: right;
}
.marketing .result-price small {
  display: block;
  font-size: 11px; color: var(--ink-muted); font-weight: 400;
  font-family: var(--font-mono);
  margin-top: 2px; letter-spacing: 0.02em;
}

/* SECTION SHARED */
.marketing .section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--blue);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 16px;
}
.marketing .section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700; letter-spacing: -0.025em;
  line-height: 1.05; max-width: 720px;
  margin-bottom: 18px;
}
.marketing .section-sub {
  color: var(--ink-soft); font-size: 18px;
  max-width: 580px; line-height: 1.55;
}

/* HOW SECTION */
.marketing section.how { padding: 120px 32px; border-top: 1px solid var(--rule-soft); }
.marketing .how-inner { max-width: 1080px; margin: 0 auto; }
.marketing .how-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin-top: 56px;
}
.marketing .how-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 32px;
  transition: border-color 0.15s, transform 0.15s;
}
.marketing .how-card:hover { border-color: var(--ink-faint); transform: translateY(-2px); }
.marketing .how-card-num {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--blue);
  letter-spacing: 0.04em; margin-bottom: 16px;
  text-transform: uppercase;
}
.marketing .how-card h3 {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700;
  margin-bottom: 12px; letter-spacing: -0.02em;
  line-height: 1.15;
}
.marketing .how-card p { color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.marketing .how-card .detail {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--font-mono);
  font-size: 12px; color: var(--ink-muted);
  letter-spacing: 0.02em;
}
.marketing .how-card .detail strong { color: var(--ink); font-weight: 500; }

/* MATH SECTION */
.marketing section.math {
  padding: 120px 32px;
  background: var(--bg-soft);
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}
.marketing .math-inner { max-width: 1080px; margin: 0 auto; }
.marketing .math-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.marketing .math-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
}
.marketing .math-table {
  width: 100%;
  border-collapse: separate; border-spacing: 0;
  font-size: 15px;
}
.marketing .math-table th {
  padding: 14px 20px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px; color: var(--ink-muted); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em;
  text-align: left;
}
.marketing .math-table th.num { text-align: right; }
.marketing .math-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink-soft);
}
.marketing .math-table tr:last-child td { border-bottom: none; }
.marketing .math-table td.num {
  text-align: right;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ink);
}
.marketing .math-table tr.us { background: var(--blue-faint); }
.marketing .math-table tr.us td { color: var(--ink); font-weight: 600; }
.marketing .math-table tr.us td:first-child { color: var(--blue); }
.marketing .math-table tr.us td.num { color: var(--green); font-size: 19px; }
.marketing .math-callout {
  margin-top: 18px;
  font-size: 13px; color: var(--ink-muted); line-height: 1.55;
}

/* TRUST SECTION */
.marketing section.trust { padding: 120px 32px; }
.marketing .trust-inner { max-width: 1080px; margin: 0 auto; }
.marketing .trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.marketing .trust-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 6px;
}
.marketing .trust-card h4 {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 600;
  margin-bottom: 10px; letter-spacing: -0.01em;
}
.marketing .trust-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

/* CTA */
.marketing section.cta {
  padding: 120px 32px;
  text-align: center;
  background: var(--ink);
  color: var(--bg);
}
.marketing .cta-inner { max-width: 720px; margin: 0 auto; }
.marketing .cta h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.05;
  margin-bottom: 20px;
}
.marketing .cta h2 .accent { color: var(--blue-bright); }
.marketing .cta p {
  color: rgba(250, 250, 247, 0.7);
  font-size: 17px; margin-bottom: 36px;
  max-width: 480px; margin-inline: auto;
  line-height: 1.55;
}
.marketing .waitlist {
  display: flex; gap: 8px; justify-content: center;
  max-width: 480px; margin: 0 auto;
  flex-wrap: wrap;
}
/* Visible label above the input — required to fix the placeholder-as-label
 * anti-pattern flagged by DESIGN.md line 197. flex-basis: 100% forces the
 * label onto its own row above the email field + submit button. Mono
 * eyebrow treatment matches the rest of the closed-beta surface. */
.marketing .waitlist-label {
  flex: 0 0 100%;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(250, 250, 247, 0.7);
  margin-bottom: 4px;
}
.marketing .waitlist input[type="email"] {
  flex: 1;
  min-width: 220px;
  background: rgba(250, 250, 247, 0.08);
  border: 1px solid rgba(250, 250, 247, 0.15);
  border-radius: 4px;
  padding: 14px 18px;
  color: var(--bg);
  font-family: var(--font-body); font-size: 15px;
  /* No outline: none — the global :focus-visible ring in base.css needs
   * to fire on the dark waitlist input so keyboard users can find it.
   * DESIGN.md line 196 binds 'never outline: none without replacement'. */
  transition: border-color 0.15s, background 0.15s;
}
.marketing .waitlist input[type="email"]::placeholder { color: rgba(250, 250, 247, 0.4); }
.marketing .waitlist input[type="email"]:focus-visible {
  border-color: var(--blue-bright);
  background: rgba(250, 250, 247, 0.12);
  /* Explicit ring (the global var(--blue-soft) is too faint on the dark
   * CTA section background). Brighter blue + offset for visibility. */
  outline: 3px solid var(--blue-bright);
  outline-offset: 2px;
}
.marketing .waitlist button {
  background: var(--blue);
  color: #fff;
  border: none; border-radius: 4px;
  padding: 14px 24px;
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.marketing .waitlist button:hover { background: var(--blue-bright); }
.marketing .waitlist-meta {
  margin-top: 16px;
  font-family: var(--font-mono); font-size: 11px;
  color: rgba(250, 250, 247, 0.45);
  letter-spacing: 0.03em;
}
.marketing .waitlist-error {
  margin-top: 16px;
  font-family: var(--font-mono); font-size: 12px;
  color: #FCA5A5;
  letter-spacing: 0.02em;
}
.marketing .waitlist-card {
  max-width: 480px;
  margin: 0 auto;
  padding: 36px 32px;
  background: rgba(4, 120, 87, 0.14);
  border: 1px solid rgba(209, 250, 229, 0.22);
  border-radius: 6px;
  text-align: center;
}
.marketing .waitlist-card-icon {
  width: 48px; height: 48px;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-soft);
  color: var(--green);
  border-radius: 999px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}
.marketing .waitlist-card-title {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--bg);
  margin: 0 0 10px;
}
.marketing .waitlist-card-body {
  color: rgba(250, 250, 247, 0.78);
  font-size: 15px; line-height: 1.55;
  max-width: 380px;
  margin: 0 auto;
}

/* FOOTER */
.marketing footer {
  padding: 32px 40px;
  border-top: 1px solid var(--rule-soft);
  display: flex; align-items: center; justify-content: space-between;
  color: var(--ink-muted); font-size: 13px;
  background: var(--bg);
}
.marketing .footer-links { display: flex; gap: 24px; }
.marketing .footer-links a:hover { color: var(--ink); }

@media (max-width: 720px) {
  .marketing nav { padding: 16px 20px; }
  .marketing nav ul { gap: 14px; }
  /* Hide all three section anchors (How it works / The math / Trust)
   * on mobile. They're #anchor scrolls into the same page, so a beta
   * visitor still reaches every section by scrolling. Keeps Log in +
   * Join waitlist (the actual CTAs) visible without horizontal
   * crowding or two-line wrapping inside the dark Join waitlist pill. */
  .marketing nav ul li:nth-child(1),
  .marketing nav ul li:nth-child(2),
  .marketing nav ul li:nth-child(3) { display: none; }
  .marketing .hero { padding: 80px 20px 60px; }
  .marketing .hero-proof { padding: 20px; margin-top: 48px; }
  .marketing section.how,
  .marketing section.math,
  .marketing section.trust,
  .marketing section.cta {
    padding-left: 20px; padding-right: 20px;
    padding-top: 80px; padding-bottom: 80px;
  }
  .marketing .how-grid { grid-template-columns: 1fr; gap: 16px; }
  .marketing .math-grid { grid-template-columns: 1fr; gap: 32px; }
  .marketing .trust-grid { grid-template-columns: 1fr; gap: 16px; }
  .marketing footer { padding: 24px 20px; flex-direction: column; gap: 14px; text-align: center; }
  .marketing .hero-trust { gap: 14px; font-size: 10px; }
  .marketing .hero-actions { flex-direction: column; align-items: stretch; max-width: 320px; margin-left: auto; margin-right: auto; }
  .marketing .btn-secondary { justify-content: center; }
  .marketing .waitlist { flex-direction: column; gap: 10px; }
}
