/* Base reset + landing styles.
   Locked from FRONTEND_SPEC.md §1 (type + buttons) and §2 (landing sections). */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ─── buttons ────────────────────────────────────────────────────── */
.btn-primary {
  /* ⚠️ was `color: var(--gold)` over `background: var(--cta-bg)`. On the public
     pages that put the label and the fill in the same green family: measured
     1.14:1 in light mode, against a 4.5:1 floor, on the SIGN UP button. The
     app's copy of this rule has always said --on-gold; the marketing copy
     drifted. Pre-existing, not caused by the palette change. */
  background: var(--cta-bg);
  color: var(--on-gold);
  font-family: inherit;            /* buttons get a UA font by default — force the site stack */
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .3px;
  border: 0;
  border-radius: 6px;              /* Button-42 corners */
  height: 44px;                    /* fixed shape — 40px Button-42 + a touch for the 15% intent */
  line-height: 44px;
  padding: 0 24px;
  display: inline-block;
  vertical-align: top;
  text-align: center;              /* center text when the element is given an explicit width */
  text-decoration: none;           /* anchors styled as buttons need this explicit */
  cursor: pointer;
  outline: 0;
  box-shadow: var(--cta-rest-shadow);
  transition: box-shadow .2s ease;
  -webkit-user-select: none;
  user-select: none;
}
.btn-primary:hover  { box-shadow: var(--cta-glow); }
.btn-primary:disabled {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-primary.compact {
  min-height: 44px;
  height: auto;
  line-height: 36px;
  padding: 0 18px;
  font-size: 14px;
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  font-family: inherit;
  font-weight: 600;
  border: 1px solid var(--border-dashed);
  border-radius: var(--radius-button);
  padding: 11px 21px;
  font-size: 14px;
  display: inline-block;
  vertical-align: top;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s ease;
}
.btn-ghost:hover { border-color: var(--gold); }

.nav-link {
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: .2px;
  transition: color .15s ease;
}
.nav-link:hover { color: var(--text-primary); }
.nav-link.is-cta { color: var(--gold); }

/* ─── layout shell ───────────────────────────────────────────────── */
nav.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 34px;
  background: rgba(32, 24, 37, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 0.5px solid var(--bg-inset);
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.brand .mark {
  font-size: 17px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .5px;
}
.brand .suffix {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.nav-center {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ─── sections ───────────────────────────────────────────────────── */
section { border-bottom: 0.5px solid var(--bg-inset); }
section.alt { background: var(--bg-raised); }
.section-pad { padding: 48px 34px; }
.section-pad-lg { padding: 64px 34px 56px; }
.section-pad-cta { padding: 60px 34px; }

/* ⛔ There was NO global heading rule on this site, which is why every heading
   rendered in the body face no matter what the token file said. Didot at 400
   only: the thin-to-thick contrast is its whole character and faux bold
   destroys it, so size carries emphasis instead. */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.01em;
}

h1.hero-headline {
  font-size: 44px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -.5px;
  line-height: 1.1;
  max-width: 560px;
  margin: 0 auto;
}
h1.hero-headline .accent { color: var(--gold); }

.section-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  letter-spacing: .2px;
  margin: 0 0 8px;
}
.section-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin: 0 auto 32px;
  max-width: 430px;
  line-height: 1.6;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  background: var(--bg-inset);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  letter-spacing: .5px;
}

.hero-section { text-align: center; }
.hero-sub {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 440px;
  margin: 18px auto 28px;
  line-height: 1.6;
}
.hero-sub em { color: var(--gold-text-soft); font-style: normal; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; }
.hero-micro {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 18px;
}

/* ─── cards ──────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px;
}
.card.featured { border-color: var(--gold); }
.card-grid {
  display: flex;
  gap: 16px;
}
.card-grid .card { flex: 1; }

.detect-icon { font-size: 22px; color: var(--gold); display: block; }
.card-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: .5px;
}
.card-eyebrow.is-featured { color: var(--gold); }
.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 8px 0 4px;
}
.card-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* pillars */
.pillars { display: flex; gap: 16px; }
.pillar { flex: 1; }
.pillar-icon { font-size: 24px; color: var(--gold); }
.pillar h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 12px 0 6px;
}
.pillar p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* result preview */
.result-preview {
  max-width: 440px;
  margin: 0 auto;
}
.result-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}
.result-head .pai {
  font-size: 30px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.result-head .sigma {
  font-size: 13px;
  color: var(--text-secondary);
}
.result-head .verdict {
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--verdict-ai);
}

.bar {
  height: 5px;
  border-radius: 4px;
  background: var(--bg-inset);
  overflow: hidden;
  margin-bottom: 5px;
}
.bar > i {
  display: block;
  height: 100%;
  background: var(--gold);
  border-radius: 4px;
}

.head-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.head-row .score {
  color: var(--gold);
  font-weight: 700;
}

/* pricing */
.pricing-reminder {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin: 0 auto 28px;
}
.pricing-grid {
  display: flex;
  gap: 14px;
  align-items: stretch;
}
.pricing-grid .card {
  display: flex;
  flex-direction: column;
}
.pricing-amount {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 6px 0;
}
.pricing-unit {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.pricing-cta {
  margin-top: auto;
  width: 100%;
}

/* developers */
.dev-section {
  padding: 48px 34px;
  display: flex;
  gap: 32px;
  align-items: center;
  border-bottom: 0.5px solid var(--bg-inset);
}
.dev-copy { flex: 1; }
.dev-copy h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px;
}
.dev-copy p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 18px;
}
.code-block {
  flex: 1;
  /* ⚠️ --bg-code deliberately stays dark in light mode ("code blocks stay dark
     for legibility"), but the ink inside followed the light palette and turned
     to dark ink on a dark block: measured 1.0:1, i.e. invisible. The block
     keeps its own light ink regardless of theme. */
  color: #C8DACE;
  background: var(--bg-code);
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.code-block .method { color: var(--gold); }
.code-block .label  { color: var(--text-faint); }
.code-block .real   { color: var(--verdict-real); }
.code-block .ai     { color: var(--verdict-ai); }

/* FAQ */
.faq-list { max-width: 560px; margin: 0 auto; }
.faq-item {
  border-bottom: 0.5px solid var(--bg-inset);
}
.faq-item > summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item .caret {
  color: var(--gold);
  transition: transform .15s ease;
  font-size: 18px;
  line-height: 1;
}
.faq-item[open] .caret { transform: rotate(180deg); }
.faq-item .answer {
  padding: 0 0 16px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* final CTA */
.cta-band {
  text-align: center;
  background: var(--bg-raised);
}
.cta-band .line {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -.3px;
}
.cta-band .btn-primary { margin-top: 24px; }

/* footer */
footer.site-foot {
  padding: 36px 34px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
}
.foot-brand .meta {
  font-size: 12px;
  color: var(--text-faint);
  max-width: 220px;
  line-height: 1.5;
  margin-top: 10px;
}
.foot-cols {
  display: flex;
  gap: 48px;
}
.foot-col h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: .5px;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.foot-col a {
  display: block;
  color: var(--text-faint);
  font-size: 13px;
  margin-top: 9px;
  transition: color .15s ease;
  cursor: pointer;
}
.foot-col a:hover { color: var(--gold); }

/* sr-only for accessibility */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* responsive — single breakpoint, narrow phones */
@media (max-width: 720px) {
  nav.site-nav { padding: 12px 18px; }
  .nav-center { display: none; }
  .section-pad, .dev-section { padding: 36px 18px; }
  .section-pad-lg { padding: 48px 18px 40px; }
  h1.hero-headline { font-size: 34px; }
  .card-grid, .pillars, .pricing-grid, .dev-section { flex-direction: column; }
  footer.site-foot { flex-direction: column; gap: 28px; }
  .foot-cols { gap: 28px; flex-wrap: wrap; }
}

/* a standing note on the legal pages. Was <em>, and the house rule is that
   emphasis is colour or weight, never a slant. */
.doc-note {
  color: var(--text-secondary);
  font-weight: 600;
  border-left: 2px solid var(--gold);
  padding-left: 12px;
}

/* ─── phone tap targets ───────────────────────────────────────────────────
   Footer and inline links measured 16 to 21px tall on a phone. A finger needs
   about 44px, so these were links you aim at rather than tap. The padding
   grows the hit area without moving the text, and the rows already wrap. */
@media (max-width: 720px) {
  .foot-links a,
  .foot a,
  .auth-alt a,
  .auth-back,
  footer a,
  .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    /* ⛔ ADDED 2026-08-25. This block only ever set a HEIGHT, because the
       checker only ever measured one. "home" was 33px wide, "about" 34,
       "pricing" 41. A target is 44 in both directions. */
    min-width: 44px;
  }
  .foot-links, .foot-row { row-gap: 0; }
}

/* The rest of the small targets: inline links inside body copy and the
   standalone auth/docs pages, which have no footer rule to inherit. Wordmarks
   are excluded: they are a link, but nobody taps a wordmark by accident and
   padding one distorts the bar. */
@media (max-width: 720px) {
  .bill-code a,
  .acct-strip a,
  .auth-card a:not(.auth-brand),
  main.docs a,
  .docs-back,
  a.back-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
