/* ============================================================
   Brenna — design tokens
   Palette is the client's fixed brand: blue / sky / gold / mauve.
   Everything else (type, layout, spacing) built around it.
   ============================================================ */

:root {
  /* fixed brand colours */
  --blue: #5A70B3;
  --blue-light: #8EB7DD;
  --gold: #ECD891;
  --mauve: #C894C0;

  /* derived neutrals */
  --ink: #1E2438;
  --ink-soft: #4A5169;
  --ink-faint: #7B84A0;
  --paper: #FBFAF6;
  --paper-blue: #F2F6FB;
  --line: #E3E0D6;
  --line-blue: #D8E3F1;
  --white: #FFFFFF;

  /* type */
  --serif: "Fraunces", Georgia, serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* scale (Elements of Typographic Style-ish, ~1.25 ratio) */
  --step-1: clamp(0.85rem, 0.8rem + 0.2vw, 0.95rem);
  --step0: 1.0625rem;
  --step1: 1.3125rem;
  --step2: 1.65rem;
  --step3: clamp(2rem, 1.6rem + 1.8vw, 2.75rem);
  --step4: clamp(2.6rem, 2rem + 2.8vw, 4rem);

  --measure: 62ch;
  --radius: 4px;
}

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--step0);
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: var(--step4); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: var(--step3); font-weight: 500; letter-spacing: -0.01em; }
h3 { font-size: var(--step2); font-weight: 600; }
h4 { font-size: var(--step1); font-weight: 600; }

p { margin: 0 0 1.1em; max-width: var(--measure); }
a { color: var(--blue); }
strong { color: var(--ink); font-weight: 600; }

.measure { max-width: var(--measure); }

/* ---------- layout shell ---------- */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
}

section { padding: 88px 0; }
@media (max-width: 640px) {
  section { padding: 56px 0; }
}

.section--tint { background: var(--paper-blue); }
.section--ink {
  background: var(--ink);
  color: #C7CCE2;
}
.section--ink h2, .section--ink h3, .section--ink h4 { color: var(--white); }
.section--ink a { color: var(--gold); }

hr.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.logo-img { height: 30px; width: auto; display: block; }
footer .logo-img { height: 34px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: var(--step-1);
}
.nav-links a:hover { color: var(--blue); }
.nav-links a.current { color: var(--ink); font-weight: 600; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 32px; width: 100%; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
  }
  .nav-toggle svg { width: 18px; height: 18px; }
  .nav-cta-desktop { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: var(--step-1);
  font-weight: 600;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: #4C61A0; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--on-ink { background: var(--gold); color: var(--ink); }
.btn--on-ink:hover { background: #E3CB78; }
.btn--family { background: transparent; color: var(--mauve); border-color: var(--mauve); }
.btn--family:hover { background: var(--mauve); color: var(--white); }
.btn--family.is-current { background: var(--mauve); color: var(--white); }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- hero ---------- */
.hero { padding: 76px 0 96px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 { margin-bottom: 22px; }
.hero .lede { font-size: var(--step1); color: var(--ink-soft); max-width: 46ch; }

/* broadcast motif — the one recurring visual device */
.motif { width: 100%; max-width: 380px; }

/* ---------- eyebrow-free section labels ---------- */
.kicker {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--step1);
  color: var(--blue);
  margin: 0 0 10px;
}

/* ---------- numbered mechanism list (only where content is a true sequence) ---------- */
.mechanism { display: grid; gap: 36px; margin-top: 40px; }
@media (min-width: 780px) {
  .mechanism { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}
.mechanism-item .num {
  font-family: var(--serif);
  font-size: var(--step2);
  color: var(--blue-light);
  display: block;
  margin-bottom: 10px;
}
.mechanism-item h3 { font-size: var(--step1); margin-bottom: 10px; }
.mechanism-item p { font-size: var(--step-1); color: var(--ink-soft); }

/* ---------- path cards (parallel choices, not a sequence, so no numbering) ---------- */
.path-grid { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 780px) {
  .path-grid { grid-template-columns: repeat(3, 1fr); }
}
.path-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 28px;
  text-decoration: none;
  display: block;
}
.path-card:nth-child(2) { border-top-color: var(--gold); }
.path-card:nth-child(3) { border-top-color: var(--mauve); }
.path-card h3 { font-size: var(--step1); margin-bottom: 8px; }
.path-card p { font-size: var(--step-1); color: var(--ink-soft); margin-bottom: 0; }
.path-card .go { display: inline-block; margin-top: 14px; font-size: var(--step-1); font-weight: 600; color: var(--blue); }

/* ---------- support list ---------- */
.help-item { padding: 28px 0; border-top: 1px solid var(--line); }
.help-item h4 { margin-bottom: 8px; }
.faq dt { font-family: var(--serif); font-weight: 600; color: var(--ink); margin-top: 20px; font-size: var(--step0); }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 6px 0 0; color: var(--ink-soft); font-size: var(--step-1); }

/* ---------- forms ---------- */
.form { max-width: 560px; margin-top: 32px; }
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.field .hint { font-size: var(--step-1); color: var(--ink-faint); margin-top: 4px; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: var(--step0);
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-blue);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.field textarea { resize: vertical; min-height: 110px; }

fieldset { border: none; padding: 0; margin: 0 0 22px; }
fieldset legend {
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--ink);
  padding: 0;
  margin-bottom: 10px;
}
.radio-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line-blue);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  background: var(--white);
}
.radio-option input { margin-top: 3px; }
.radio-option .opt-label { font-weight: 600; color: var(--ink); font-size: var(--step-1); display: block; }
.radio-option .opt-desc { font-size: var(--step-1); color: var(--ink-faint); }

/* ---------- before / after comparison ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 36px 0;
}
@media (max-width: 700px) {
  .compare { grid-template-columns: 1fr; }
}
.compare > div { padding: 32px; }
.compare .without { background: var(--white); }
.compare .with { background: var(--paper-blue); border-left: 1px solid var(--line-blue); }
@media (max-width: 700px) {
  .compare .with { border-left: none; border-top: 1px solid var(--line-blue); }
}
.compare h4 { font-size: var(--step-1); text-transform: none; color: var(--ink-faint); margin-bottom: 14px; }
.compare .big { font-family: var(--serif); font-size: var(--step2); color: var(--ink); display: block; margin-bottom: 4px; }
.compare ul { margin: 14px 0 0; padding-left: 20px; font-size: var(--step-1); }
.compare li { margin-bottom: 6px; }

/* ---------- outcome / standard blocks ---------- */
.standard {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
}
@media (max-width: 760px) {
  .standard { grid-template-columns: 1fr; gap: 10px; }
}
.standard h3 { font-size: var(--step1); margin: 0; }
.standard .obligation { font-size: var(--step-1); color: var(--ink-faint); margin-top: 6px; }
.standard .support p:last-child { margin-bottom: 0; }

/* ---------- feature rows (product page) ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 36px;
  padding: 44px 0;
  border-top: 1px solid var(--line);
}
@media (max-width: 760px) {
  .feature-row { grid-template-columns: 1fr; gap: 12px; }
}
.feature-row .tag {
  font-family: var(--serif);
  font-style: italic;
  color: var(--mauve);
  font-size: var(--step1);
}

/* ---------- stat strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  margin-top: 36px;
}
.stat .n {
  font-family: var(--serif);
  font-size: var(--step3);
  color: var(--blue);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.stat .label { font-size: var(--step-1); color: var(--ink-soft); }

/* ---------- integrations list ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pill {
  border: 1px solid var(--line-blue);
  background: var(--white);
  color: var(--ink-soft);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: var(--step-1);
}

/* ---------- proof / example cards (kept plain — not the SaaS-card look) ---------- */
.example {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.example h4 { margin-bottom: 6px; }
.example .meta { color: var(--ink-faint); font-size: var(--step-1); margin-bottom: 10px; }

/* ---------- pricing ---------- */
.price-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px;
  margin-top: 32px;
}
@media (max-width: 640px) { .price-panel { padding: 30px; } }
.price-panel .range {
  font-family: var(--serif);
  font-size: var(--step3);
  color: var(--blue);
  display: block;
  margin-bottom: 6px;
}

/* ---------- security detail list ---------- */
.detail { padding: 30px 0; border-top: 1px solid var(--line); }
.detail h3 { font-size: var(--step1); margin-bottom: 10px; }

/* ---------- brand reference page ---------- */
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.swatch-color { height: 88px; border-radius: var(--radius); border: 1px solid var(--line); }
.swatch-name { font-weight: 600; color: var(--ink); margin-top: 10px; font-size: var(--step-1); }
.swatch-hex { font-size: var(--step-1); color: var(--ink-faint); }
.swatch-use { font-size: var(--step-1); color: var(--ink-soft); margin-top: 4px; }
.type-sample { padding: 24px 0; border-top: 1px solid var(--line); }
.type-sample:first-child { border-top: none; }
.type-label { font-size: var(--step-1); color: var(--ink-faint); margin: 0; }
.logo-showcase { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 32px; }
.logo-tile {
  flex: 1 1 260px;
  border-radius: var(--radius);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.logo-tile--light { background: var(--paper-blue); border: 1px solid var(--line-blue); }
.logo-tile--dark { background: var(--ink); }
.logo-tile-label { font-size: var(--step-1); color: var(--ink-faint); }
.logo-tile--dark .logo-tile-label { color: #8890AD; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  font-size: var(--step-1);
  color: var(--ink-faint);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 28px;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.footer-links a { color: var(--ink-faint); text-decoration: none; }
.footer-links a:hover { color: var(--blue); }

/* ---------- misc ---------- */
.note {
  font-size: var(--step-1);
  color: var(--ink-faint);
  border-left: 2px solid var(--blue-light);
  padding-left: 14px;
  margin: 20px 0;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
