/* repbook.ai — public site styles.
   Tokens mirror frontend/src/styles.css :root (skills/branding.md is the source
   of truth — never introduce hex values outside this block). */
:root {
  --deep-navy:    #14243f;
  --navy:         #0f1f2e;
  --navy-light:   #1c3045;
  --growth-teal:  #1fc8a6;
  --teal-dim:     #14a88c;
  --teal-pale:    rgba(31, 200, 166, 0.10);
  --rep-blue:     #2d6cdf;
  --cloud:        #f5f7fa;
  --dark-text:    #1a2b3c;
  --body-text:    #334455;
  --slate:        #8a94a6;
  --border:       #e4e9f0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cloud);
  color: var(--body-text);
  font-family: "DM Sans", Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

a { color: var(--rep-blue); }

/* ── Header ── */
.site-header {
  background: var(--deep-navy);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img { height: 32px; width: auto; }
.brand span {
  font-size: 18px;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: -0.4px;
}
.header-link {
  color: var(--growth-teal);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.header-link:hover { color: #f1f5f9; }

/* ── Hero (landing) ── */
.hero {
  background: var(--deep-navy);
  color: #f1f5f9;
  padding: 88px 24px 96px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0 auto 16px;
  max-width: 720px;
  color: #f1f5f9;
}
.hero h1 em {
  font-style: normal;
  color: var(--growth-teal);
}
.hero p {
  font-size: 17px;
  color: #b7c3d4;
  max-width: 620px;
  margin: 0 auto 36px;
}
.cta {
  display: inline-block;
  background: var(--growth-teal);
  color: var(--deep-navy);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: 8px;
  text-decoration: none;
}
.cta:hover { background: var(--teal-dim); color: var(--deep-navy); }
.cta:disabled { opacity: 0.6; cursor: default; }

/* ── Early-access form (in hero, dark background) ── */
.access-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
}
.access-form input {
  flex: 1 1 180px;
  min-width: 0;
  background: var(--navy-light);
  border: 1px solid rgba(241, 245, 249, 0.15);
  border-radius: 8px;
  color: #f1f5f9;
  font: inherit;
  font-size: 14px;
  padding: 12px 14px;
}
.access-form input::placeholder { color: var(--slate); }
.access-form input:focus {
  outline: none;
  border-color: var(--growth-teal);
}
.access-form .cta { border: 0; cursor: pointer; flex: 0 0 auto; }
.access-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.form-note {
  flex-basis: 100%;
  font-size: 14px;
  color: var(--slate);
  margin: 6px 0 0;
  min-height: 20px;
}
.form-note.ok { color: var(--growth-teal); font-weight: 500; }

/* Light variant: form on cloud background (access section) */
.access-form.light input {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--dark-text);
}
.access-form.light input::placeholder { color: var(--slate); }
.access-form.light .form-note { text-align: center; }

.eyebrow, .hero p.eyebrow {
  color: var(--growth-teal);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
  margin: 0 auto 18px;
}
.header-nav { display: flex; gap: 22px; }

/* ── Sections ── */
.section {
  max-width: 1020px;
  margin: 0 auto;
  padding: 72px 24px;
}
.section h2 {
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--dark-text);
  text-align: center;
  margin: 0 0 36px;
}
.section h2 em { font-style: normal; color: var(--teal-dim); }
.section.alt {
  max-width: none;
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section.alt > * { max-width: 1020px; margin-left: auto; margin-right: auto; }
.section.alt h2 { margin-bottom: 36px; }
.section-note {
  text-align: center;
  font-size: 14px;
  color: var(--slate);
  max-width: 640px;
  margin: 28px auto 0;
}
.center-note { margin: -20px auto 32px; }

/* Dark manifesto / data bands */
.belief, .data-band {
  max-width: none;
  background: var(--navy);
  color: #d7dfea;
}
.belief-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.belief h2, .data-band h2 { color: #f1f5f9; }
.belief p, .data-band p { font-size: 15px; line-height: 1.8; }
.belief-line {
  font-size: 20px !important;
  font-weight: 700;
  color: #f1f5f9;
  margin-top: 28px;
}
.belief-line em { font-style: normal; color: var(--growth-teal); }
.data-band a { color: var(--growth-teal); }

/* ── Feature cards ── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.features.four { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card .num {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--growth-teal);
  margin-bottom: 10px;
}

/* ── Steps ── */
.steps {
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 22px 56px;
  font-size: 15px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal-pale);
  color: var(--teal-dim);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps li strong { color: var(--dark-text); }

/* ── Legacy landing grid (privacy page unaffected) ── */
.features-hero {
  max-width: 960px;
  margin: -48px auto 0;
  padding: 0 24px 72px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 6px 24px rgba(20, 36, 63, 0.06);
}
.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--dark-text);
}
.card p { margin: 0; font-size: 14px; }
.card .tag {
  display: inline-block;
  background: var(--teal-pale);
  color: var(--teal-dim);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 12px;
}

/* ── Prose pages (privacy) ── */
.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.prose h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark-text);
  margin: 0 0 8px;
}
.updated {
  font-size: 13px;
  color: var(--slate);
  margin: 0 0 40px;
}
.prose h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark-text);
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.prose h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-text);
  margin: 16px 0 6px;
}
.prose p, .prose li { font-size: 14px; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 12px 0;
}
.prose th {
  text-align: left;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border);
}
.prose td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.prose td:first-child {
  font-weight: 500;
  color: var(--dark-text);
  white-space: nowrap;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 32px;
  text-align: center;
  font-size: 12px;
  color: var(--slate);
}
.site-footer a { color: var(--slate); }
