/* AuditProof marketing page — "The Architectural Ledger" (docs/design.md, light mode).
   Tokens mirror packages/client/src/index.css :root values. Static page: plain CSS,
   mobile-first, no build step. */

:root {
  --surface: 250 249 245;
  --surface-container: 255 255 255;
  --surface-container-c1: 243 241 236;
  --surface-container-c2: 236 234 228;
  --input-background: 255 255 255;
  --primary: 0 108 77;
  --primary-container: 62 180 137;
  --on-primary: 255 255 255;
  --on-surface: 27 28 26;
  --success-container: 236 253 245;
  --on-success-container: 5 150 105;
  --error: 186 26 26;

  --lift-border: rgba(60, 40, 20, 0.06);
  --lift-border-hover: rgba(60, 40, 20, 0.12);
  --lift-shadow-rest: 0 1px 2px rgba(60, 40, 20, 0.04);
  --lift-shadow-hover: 0 4px 8px rgba(60, 40, 20, 0.10), 0 10px 18px rgba(60, 40, 20, 0.14);

  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --gradient-primary: linear-gradient(135deg, rgb(var(--primary)), rgb(var(--primary-container)));
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgb(var(--on-surface));
  background: rgb(var(--surface));
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}

img { max-width: 100%; display: block; }

/* ---------- Shared bits ---------- */

.kicker {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(var(--primary));
  margin-bottom: 1.1rem;
}

.lede {
  font-size: 1.05rem;
  color: rgb(var(--on-surface) / 0.65);
  max-width: 34rem;
}

/* Lifted-surface triplet (design.md §5/§6): hairline + base shadow at rest,
   hover-up + dual-layer shadow, squish only on press. No shrink-on-hover. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--lift-border);
  border-radius: 0.375rem;
  cursor: pointer;
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  box-shadow: var(--lift-shadow-rest);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.btn:hover {
  border-color: var(--lift-border-hover);
  transform: translateY(-2px);
  box-shadow: var(--lift-shadow-hover);
}

.btn:active {
  transform: translateY(0) scale(0.97);
}

.btn-primary {
  background: var(--gradient-primary);
  color: rgb(var(--on-primary));
}

.btn-sm { padding: 0.55rem 1rem; font-size: 0.8rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem clamp(1.25rem, 5vw, 3.5rem);
  background: rgb(var(--surface-container-c2) / 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: rgb(var(--on-surface));
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  gap: 2.5rem;
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.25rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5rem);
  max-width: 72rem;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.hero .lede { margin-bottom: 2.25rem; }

/* ---------- Waitlist form ---------- */

.waitlist-form .field-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 30rem;
}

.waitlist-form input[type='email'] {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgb(var(--on-surface));
  background: rgb(var(--input-background));
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0.375rem 0.375rem 0 0;
  padding: 0.85rem 1rem;
  outline: none;
  box-shadow: var(--lift-shadow-rest);
}

.waitlist-form input[type='email']:focus {
  border-bottom-color: rgb(var(--primary));
}

.waitlist-form.has-error input[type='email'] {
  border: 2px solid rgb(var(--error));
  border-radius: 0.375rem;
}

.field-error {
  color: rgb(var(--error));
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.microcopy {
  font-size: 0.78rem;
  color: rgb(var(--on-surface) / 0.5);
  margin-top: 0.75rem;
}

.waitlist-success {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgb(var(--success-container));
  color: rgb(var(--on-success-container));
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  max-width: 30rem;
}

.waitlist-success[hidden] { display: none; }
.waitlist-success svg { width: 22px; height: 22px; flex-shrink: 0; }
.waitlist-success strong { display: block; font-size: 0.9rem; }
.waitlist-success span { font-size: 0.8rem; opacity: 0.85; }

/* ---------- Photo frames (placeholders until real imagery lands) ---------- */

.photo-frame {
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(150deg, rgb(var(--surface-container-c1)), rgb(var(--surface-container-c2)));
  box-shadow: var(--lift-shadow-rest);
}

.photo-frame img:not(.watermark) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo { aspect-ratio: 4 / 5; }
.spotlight-photo { aspect-ratio: 3 / 2; }

.photo-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-placeholder .watermark {
  width: 28%;
  opacity: 0.12;
}

.ph-label {
  position: absolute;
  bottom: 1rem;
  right: 1.25rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(var(--on-surface) / 0.35);
}

/* ---------- Audience strip ---------- */

.audience {
  background: rgb(var(--surface-container-c1));
  padding: 2.25rem clamp(1.25rem, 5vw, 3.5rem);
  text-align: center;
}

.audience .kicker { margin-bottom: 0.9rem; }

.audience-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.6rem;
  max-width: 56rem;
  margin: 0 auto;
}

.audience-chips li {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgb(var(--on-success-container));
  background: rgb(var(--success-container));
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
}

/* ---------- How it works ---------- */

.steps {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 5vw, 3.5rem);
}

.steps h2 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 700;
  margin-bottom: 2.25rem;
}

.step-grid {
  display: grid;
  gap: 1rem;
}

.card {
  background: rgb(var(--surface-container));
  border: 1px solid var(--lift-border);
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: var(--lift-shadow-rest);
}

.icon-box {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  background: rgb(var(--surface-container-c2));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.icon-box svg {
  width: 20px;
  height: 20px;
  color: rgb(var(--primary));
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card p { color: rgb(var(--on-surface) / 0.65); font-size: 0.875rem; }

/* ---------- Scores (the fear killer) ---------- */

/* Card crops are captured on the app's `surface` canvas (#faf9f5 — same token
   as this page's background), so they sit here with no visible seam. */
.scores {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 5vw, 3.5rem);
}

.scores-intro { max-width: 40rem; }

.scores-intro h2 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.scores-intro p {
  color: rgb(var(--on-surface) / 0.65);
  margin-bottom: 1rem;
}

.scores-intro em { font-style: italic; color: rgb(var(--on-surface)); }

.score-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2.25rem;
}

.score-card { margin: 0; }
.score-card img { width: 100%; max-width: 26rem; }

.score-card figcaption {
  font-size: 0.85rem;
  color: rgb(var(--on-surface) / 0.65);
  margin-top: 0.75rem;
  max-width: 26rem;
}

.score-card figcaption strong {
  display: block;
  color: rgb(var(--on-surface));
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.score-note {
  font-size: 0.72rem;
  color: rgb(var(--on-surface) / 0.4);
  margin-top: 1.5rem;
}

/* ---------- Spotlight ---------- */

.spotlight {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5rem);
}

.spotlight-copy h2 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.spotlight-copy p {
  color: rgb(var(--on-surface) / 0.65);
  margin-bottom: 1rem;
  max-width: 30rem;
}

/* ---------- Trust band ---------- */

.trust {
  background: rgb(var(--surface-container-c1));
  padding: clamp(3rem, 7vw, 4.5rem) clamp(1.25rem, 5vw, 3.5rem);
  display: grid;
  gap: 1rem;
}

.trust-card {
  background: rgb(var(--surface-container));
  border-radius: 1rem;
  padding: 1.75rem;
  max-width: 34rem;
  width: 100%;
  margin: 0 auto;
}

.trust-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.trust-card p { color: rgb(var(--on-surface) / 0.65); font-size: 0.875rem; }

/* ---------- Closing CTA ---------- */

.closing {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 5vw, 3.5rem);
  text-align: center;
}

.closing h2 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.closing .lede { margin: 0 auto 2rem; }

.closing-form .field-row { margin: 0 auto; }
.closing .waitlist-success { margin: 0 auto; text-align: left; }
.closing .field-error { text-align: center; }

/* ---------- Footer ---------- */

.site-footer {
  background: rgb(var(--surface-container-c2));
  padding: 1.75rem clamp(1.25rem, 5vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgb(var(--on-surface) / 0.6);
}

.footer-brand { display: inline-flex; align-items: center; gap: 0.6rem; }

.footer-link {
  color: rgb(var(--primary));
  font-weight: 500;
  text-decoration: none;
}
.footer-link:hover { text-decoration: underline; }

/* ---------- Desktop ---------- */

@media (min-width: 800px) {
  .hero {
    grid-template-columns: 7fr 5fr;
    align-items: center;
    gap: clamp(2.5rem, 6vw, 5.5rem);
  }

  .waitlist-form .field-row { flex-direction: row; }
  .waitlist-form .field-row input { flex: 1; }

  .step-grid { grid-template-columns: repeat(3, 1fr); }

  .score-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

  .spotlight { grid-template-columns: 6fr 6fr; }

  .trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
  .trust-card { margin: 0; }

  .closing-form .field-row { justify-content: center; }
  .closing .waitlist-success { max-width: 26rem; }
}
