/*
 * Shared page chrome for the public pages, typography, layout, buttons, the
 * header and footer, the FAQ list.
 *
 * Lifted verbatim out of home.html's inline <style>, where it had been the
 * only copy. The pricing page needed the same chrome and had two options:
 * duplicate six hundred lines, or share them. Duplicated CSS drifts the first
 * time a button changes, and the version nobody remembered to update is the
 * one a customer sees.
 *
 * theme.css is a different thing and stays separate: it holds the design
 * tokens and the signed-in app's navigation, which the marketing pages do not
 * use. This file depends on those tokens.
 *
 * Some rules here style elements only the homepage has, the hero visual, the
 * feature grid. They cost nothing on a page without those elements, and
 * splitting further would mean deciding which page owns each rule, which is
 * how two stylesheets become three.
 */

:root {
  /* Aliases onto theme.css's shared tokens (loaded above), the single
 source of truth every other page also draws from, so this page's
 colors/fonts/radius can never quietly drift out of sync with them. */
  --bg: var(--color-bg);
  --bg-soft: #100f1c; /* marketing-only shade, no shared equivalent */
  --surface: var(--color-surface);
  --surface-strong: var(--color-surface-strong);
  --line: var(--color-line);
  --ink: var(--color-ink);
  --muted: var(--color-muted);
  --violet: #7c3aed;
  --pink: #ec4899;
  --cyan: #06b6d4;
  --grad: var(--color-accent-grad);
  --grad-soft: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.18),
    rgba(236, 72, 153, 0.18) 55%,
    rgba(6, 182, 212, 0.18)
  );
  --font: var(--font-body);
  --max: 1160px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

/* background glow */
.glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(
      600px 400px at 15% 10%,
      rgba(124, 58, 237, 0.35),
      transparent 60%
    ),
    radial-gradient(
      700px 500px at 85% 20%,
      rgba(236, 72, 153, 0.28),
      transparent 60%
    ),
    radial-gradient(
      600px 500px at 50% 90%,
      rgba(6, 182, 212, 0.22),
      transparent 60%
    ),
    var(--bg);
}

/* header */
header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 10, 20, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-height);
  box-sizing: border-box;
  padding: 0.9rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
}
.brand svg {
  width: 30px;
  height: 30px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.logged-out-cta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
#mobile-logged-out,
#mobile-logged-in {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(236, 72, 153, 0.55);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -8px rgba(236, 72, 153, 0.7);
}
.btn-ghost {
  color: var(--ink);
  border-color: var(--line);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--surface);
}
.btn-lg {
  padding: 0.85rem 1.7rem;
  font-size: 1rem;
}

.nav-toggle {
  display: none;
}
.nav-burger {
  display: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-burger span,
.nav-burger::before,
.nav-burger::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
}

/* hero */
.hero {
  /* Asymmetric on purpose. The hero's own 3.5rem bottom padding stacked
     on the next section's 4.5rem top padding read as a 128px hole,
     exaggerated because the visual column is centred and ends higher
     than the text column. 1.5rem brings the pair to a normal 96px
     section rhythm without crowding the badge that overhangs the card. */
  padding: 4.5rem 0 1.5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--pink);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  line-height: 1.12;
  margin: 0 0 1.1rem;
  letter-spacing: -0.02em;
}
h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 1.9rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1rem;
}
.reassure {
  font-size: 0.8rem;
  color: var(--muted);
}
.reassure b {
  color: var(--ink);
  font-weight: 600;
}

/* hero visual card */
.hero-visual {
  position: relative;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(6px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.stat-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.stat-card__head span {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.score-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.16);
  color: #5ce1e6;
}
.stat-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0.9rem 0;
}
.stat-row .big {
  font-size: 1.9rem;
  font-weight: 700;
}
.stat-row .lbl {
  font-size: 0.8rem;
  color: var(--muted);
}
.mini-tag {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  margin: 0.15rem 0.25rem 0 0;
}
.mini-tag.good {
  color: #6ee7b7;
  border-color: rgba(110, 231, 183, 0.35);
}
.float-badge {
  position: absolute;
  /* The stat card sets backdrop-filter, which gives it its own stacking
     context painted in the same step as these positioned badges, so
     without an explicit z-index, DOM order decided, and .b1 (written
     before the card) was painted underneath it while .b2 (written after)
     sat on top. Both are meant to straddle the card's edge. */
  z-index: 2;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.6rem 0.85rem;
  font-size: 0.78rem;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.float-badge.b1 {
  top: -18px;
  right: -10px;
}
.float-badge.b2 {
  bottom: -20px;
  left: -18px;
}

/* sections */
section {
  padding: 4.5rem 0;
}
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.section-head .eyebrow {
  margin-bottom: 1rem;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
  /* Evens the lines out instead of dropping a single orphaned word onto
     its own line ("...before you hit / publish"). */
  text-wrap: balance;
}
.section-head p {
  color: var(--muted);
  margin: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(236, 72, 153, 0.4);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-soft);
  margin-bottom: 1rem;
}
.feature-icon svg {
  width: 22px;
  height: 22px;
}
.feature-card h3 {
  font-size: 1.02rem;
  margin: 0 0 0.5rem;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step-num {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.banner {
  background: var(--grad);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.banner h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.banner p {
  margin: 0 0 1.6rem;
  color: rgba(255, 255, 255, 0.9);
}
.banner .btn-primary {
  background: #0a0a14;
  box-shadow: none;
}
.banner .btn-primary:hover {
  background: #16162a;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
details.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.3rem;
}
details.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
details.faq-item summary::-webkit-details-marker {
  display: none;
}
details.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--muted);
  margin-left: 1rem;
}
details.faq-item[open] summary::after {
  content: "\2212";
}
details.faq-item p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.8rem 0 0;
}

footer.site {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2.5rem;
}
.foot-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}
.foot-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.foot-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.85rem;
}
.foot-links a:hover {
  color: var(--ink);
}
.foot-note {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.6rem;
  max-width: 42ch;
}

[hidden] {
  display: none !important;
}

@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: -1;
    max-width: 420px;
    margin: 0 auto;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .nav-links,
  .nav-cta .btn-ghost,
  .nav-cta .whoami {
    display: none;
  }
  .nav-burger {
    display: block;
  }
  .nav-toggle:checked ~ .mobile-panel {
    display: flex;
  }
}
@media (max-width: 560px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .float-badge {
    display: none;
  }
}
.mobile-panel {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 0 1rem;
}
.mobile-panel a {
  padding: 0.6rem 0;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
