/* credbl.ai — shared styles for the landing page and the audience and founders
   pages. Values follow Website redesign planning/Landing v3.dc.html. The
   landing page's own sections (hero, product mock-ups, Amy) stay inline in
   index.html. */

:root {
  --bg: #EFECE6;
  --ink: #22241F;
  --ink-2: #4A4C45;
  --muted: #6A6C63;
  --sage: #4C6B50;
  --sage-soft: #E2E6DC;
  --sage-light: #A9C2A9;
  --card: #FAF8F4;
  --forest: #2D3A2F;
  --on-forest: #EEF0E8;
  --on-sage: #F7F5F0;
  /* the product mock-ups use the app's own palette */
  --app-ink: #1F2421;
  --app-ink-2: #3E4441;
  --app-muted: #55544F;
  --app-faint: #6B6A66;
  --app-green: #24664B;
  --app-ochre: #8B5A12;
  --app-red: #B5412F;
  --app-paper: #F3F2EF;
  --app-panel: #E9E7E2;
  --app-row: #E6E4DF;
  --app-line: #DAD7D1;
  --app-line-2: #E3E1DC;
  --app-pill: #CFCBC4;
  --app-green-soft: #D5E0D8;
  --app-avatar: #CFDAD2;
  --frame: #DCD8CF;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --app-sans: 'Source Sans 3', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --gutter: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--sage); text-decoration: none; }
a:hover { color: var(--ink); }
img { display: block; max-width: 100%; }
button { font: inherit; }
input::placeholder { color: #9A9A90; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }
.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;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.mono { font-family: var(--mono); }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.eyebrow.on-dark { color: var(--sage-light); }
.h2 { font-weight: 600; font-size: clamp(32px, 3.8vw, 52px); line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
.h3 { font-weight: 600; font-size: clamp(28px, 3vw, 40px); line-height: 1.08; letter-spacing: -0.03em; }
.lead { margin-top: 18px; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.note { margin-top: 14px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage-light); flex-shrink: 0; }

.btn {
  display: inline-block; white-space: nowrap; border: none; cursor: pointer; border-radius: 999px;
  font-family: var(--sans); font-size: 16px; font-weight: 500; padding: 16px 28px;
  transition: background-color .15s, color .15s;
}
.btn-primary { background: var(--sage); color: var(--on-sage); }
.btn-primary:hover { background: var(--ink); color: var(--on-sage); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 12px; z-index: 50; padding: 0 clamp(12px, 3vw, 32px); }
.nav-bar {
  max-width: 1240px; margin: 0 auto; background: rgba(250, 248, 244, 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-radius: 999px;
  padding: 0 10px 0 20px; height: 60px; display: flex; align-items: center;
  justify-content: space-between; gap: 20px; box-shadow: 0 1px 0 rgba(34, 36, 31, 0.06);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 34px; height: 28px; object-fit: contain; }
.brand span { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.nav-right { display: flex; align-items: center; gap: 24px; min-width: 0; }
.nav-links { display: flex; gap: 24px; font-size: 15px; }
.nav-links a { color: var(--ink-2); white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { font-size: 15px; padding: 11px 20px; flex-shrink: 0; }


/* ---------- how / who / honest ---------- */
.block { padding-top: clamp(88px, 11vw, 144px); }
.block .h2 { margin-bottom: 40px; }
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; list-style: none; }
.step { background: var(--card); border-radius: 28px; padding: clamp(24px, 3vw, 36px); }
.step-n { width: 48px; height: 48px; border-radius: 50%; background: var(--sage-soft); color: var(--forest); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 600; }
.card-h { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.step .card-h { margin: 28px 0 10px; }
.card-p { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.audiences { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 16px; }
.audience { background: var(--card); border-radius: 32px; overflow: hidden; display: flex; flex-direction: column; }
.audience img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }  /* height:auto, or the height attribute wins over the ratio */
.audience div { padding: clamp(22px, 2.6vw, 32px); }
.audience .card-h { margin-bottom: 10px; }
.audience .card-p { line-height: 1.55; }
.card-link { display: inline-flex; gap: 6px; margin-top: 16px; font-weight: 500; }
.card-link span { transition: transform .15s; }
.card-link:hover span { transform: translateX(3px); }
.honest-head { margin-bottom: 36px; }
.trust { background: var(--forest); color: var(--on-forest); border-radius: 28px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 12px; }
.trust .card-h { display: flex; align-items: flex-start; gap: 12px; line-height: 1.2; }
.trust .dot { width: 10px; height: 10px; flex: none; margin-top: calc(0.6em - 5px); }  /* centred on the first line (line-height 1.2) */
.trust .card-p { color: #CDD5C8; }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; margin: 0 auto; padding: clamp(88px, 11vw, 144px) var(--gutter) clamp(64px, 8vw, 104px); }
.faq .h2 { margin-bottom: 32px; text-align: center; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--card); border-radius: 22px; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px;
  background: none; border: none; cursor: pointer; text-align: left; font-family: var(--sans); font-size: 18px;
  font-weight: 500; color: var(--ink); border-radius: 22px;
}
.faq-sign { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--sage); }
.faq-sign::before { content: "+"; }
.faq-q[aria-expanded="true"] .faq-sign::before { content: "\2212"; }
.faq-a { padding: 0 24px 22px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }

/* ---------- join ---------- */
.join { padding: 0 clamp(12px, 3vw, 32px) clamp(12px, 3vw, 32px); }
.join-panel {
  max-width: 1240px; margin: 0 auto; background: var(--sage); color: var(--on-sage); border-radius: 40px;
  padding: clamp(40px, 6vw, 88px) clamp(24px, 5vw, 72px); display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 40px 72px; align-items: center;
}
.join-panel h2 { font-weight: 600; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
.join-panel .join-text { margin-top: 22px; font-size: 18px; line-height: 1.55; color: #E2E9DE; max-width: 42ch; }
.join-card { background: var(--card); color: var(--ink); border-radius: 28px; padding: clamp(20px, 3vw, 32px); }
.join-form { display: flex; flex-direction: column; gap: 16px; }
/* a display rule outranks the hidden attribute, so restate it */
.join-form[hidden] { display: none; }
.kind { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--bg); border-radius: 999px; padding: 4px; }
.kind button { border: none; cursor: pointer; border-radius: 999px; padding: 11px 12px; font-family: var(--sans); font-size: 15px; font-weight: 500; background: transparent; color: var(--muted); }
.kind button[aria-pressed="true"] { background: var(--card); color: var(--ink); }
.field { font-family: var(--sans); font-size: 16px; padding: 15px 18px; border: none; border-radius: 16px; background: var(--bg); color: var(--ink); width: 100%; min-width: 0; }
.field:focus { outline: 2px solid var(--sage); }
.name-fields, .agency-fields, .individual-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.agency-fields[hidden], .individual-fields[hidden] { display: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.consent input { margin-top: 3px; accent-color: var(--sage); flex-shrink: 0; }
.consent a { color: var(--sage); text-decoration: underline; }
.join-submit { padding: 16px 24px; }
.join-submit:disabled { opacity: 0.7; cursor: progress; }
.join-fine { font-size: 13px; line-height: 1.5; color: var(--muted); text-align: center; }
.join-fine a { color: var(--muted); text-decoration: underline; }
/* hidden until it has something to say; never set style.display on it,
   an inline "none" would outrank these classes */
.status { display: none; font-size: 14px; line-height: 1.45; border-radius: 12px; padding: 10px 14px; }
.status.error { display: block; background: #F4E1DC; color: #8E2F21; }
.done { padding: 20px 4px; display: flex; flex-direction: column; gap: 10px; }
.done[hidden] { display: none; }
.done h3 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.done p { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.done button { align-self: flex-start; border: none; background: none; padding: 0; cursor: pointer; font-family: var(--sans); font-size: 14px; color: var(--sage); text-decoration: underline; }

/* ---------- footer ---------- */
.footer { max-width: 1240px; margin: 0 auto; padding: 28px var(--gutter) 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; color: var(--muted); }
.footer > span { font-weight: 600; font-size: 16px; color: var(--ink); }
.footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer nav a { color: var(--muted); }
.footer nav a:hover { color: var(--ink); }

/* the invisible reCAPTCHA badge is replaced by the notice under the form */
.grecaptcha-badge { visibility: hidden; }

/* ==========================================================
   Mobile
   ========================================================== */
@media (max-width: 600px) {
  .nav-bar { padding: 0 8px 0 14px; height: 56px; }
  .nav-cta { padding: 10px 16px; font-size: 14px; }
  .join-panel { border-radius: 28px; }
  .faq-q { padding: 18px 18px; font-size: 17px; }
  .faq-a { padding: 0 18px 20px; }
  .footer { justify-content: center; text-align: center; }
  .footer nav { justify-content: center; gap: 14px 20px; }
}

/* ---------- nav: "I am…" menu and, below 820px, the menu button ---------- */
.nav-menu { position: relative; }
.nav-menu-btn {
  border: none; background: none; cursor: pointer; padding: 0; font-family: var(--sans);
  font-size: 15px; color: var(--ink-2); display: flex; align-items: center; gap: 7px; white-space: nowrap;
}
.nav-menu-btn:hover { color: var(--ink); }
.nav-menu-btn::after {
  content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg);
}
.nav-menu-btn[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }
.nav-menu-list {
  position: absolute; top: calc(100% + 20px); left: -16px; min-width: 200px; display: flex;
  flex-direction: column; background: var(--card); border-radius: 18px; padding: 8px;
  box-shadow: 0 24px 48px -24px rgba(34, 36, 31, 0.35), 0 1px 0 rgba(34, 36, 31, 0.06);
}
.nav-menu-list[hidden] { display: none; }
.nav-menu-list a { padding: 10px 14px; border-radius: 12px; color: var(--ink); font-size: 15px; white-space: nowrap; }
.nav-menu-list a:hover { background: var(--sage-soft); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--sage); font-weight: 600; }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  /* the design clipped the links mid-word; below 820px they live in a menu */
  .nav-bar { position: relative; }
  .nav-right { gap: 8px; }
  .nav-toggle {
    display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    flex-shrink: 0; border: none; border-radius: 50%; background: var(--bg); cursor: pointer;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); position: relative;
  }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
  .nav-toggle span::before { top: -6px; }
  .nav-toggle span::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] span { background: transparent; }
  .nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
  .nav-links {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--card); border-radius: 24px; padding: 10px;
    box-shadow: 0 24px 48px -24px rgba(34, 36, 31, 0.35), 0 1px 0 rgba(34, 36, 31, 0.06);
  }
  .nav-links[hidden] { display: none; }
  .nav-links > a { padding: 12px 14px; font-size: 16px; border-radius: 12px; }
  /* in the menu, "I am…" is a heading over its two links, always open */
  .nav-menu-btn {
    pointer-events: none; padding: 14px 14px 4px; font-size: 12px; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
  }
  .nav-menu-btn::after { display: none; }
  .nav-menu-list, .nav-menu-list[hidden] {
    display: flex; position: static; min-width: 0; padding: 0; background: none; box-shadow: none;
  }
  .nav-menu-list a { font-size: 16px; padding: 12px 14px; }
}

/* ---------- audience and founders pages ---------- */
/* same left edge as the sections below; the text itself stays narrow */
.sub-hero { padding-top: clamp(40px, 6vw, 80px); }
.sub-hero h1 { max-width: 20ch; font-weight: 600; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.sub-hero .hero-sub { margin-top: 22px; font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.tag {
  display: inline-flex; align-items: center; gap: 8px; background: var(--sage-soft); color: #3E5A42;
  font-size: 14px; font-weight: 500; padding: 7px 14px; border-radius: 999px; margin-bottom: 24px;
}
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
/* a card without a number circle starts with its heading */
.step > .card-h:first-child { margin-top: 0; }
.wide-card {
  background: var(--card); border-radius: 28px; padding: clamp(24px, 3vw, 36px); display: flex;
  flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px;
}
.wide-card p { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
.block-intro { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 60ch; margin: -24px 0 36px; }
.panel {
  max-width: 1240px; margin: 0 auto; background: var(--forest); color: var(--on-forest); border-radius: 40px;
  padding: clamp(36px, 5vw, 72px) clamp(24px, 5vw, 72px); display: flex; flex-wrap: wrap;
  gap: 28px clamp(28px, 4vw, 56px); align-items: center;
}
.panel-copy { flex: 1 1 320px; min-width: 0; }
.panel-copy h2 { font-weight: 600; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -0.03em; }
.panel-copy p { margin-top: 18px; font-size: 18px; line-height: 1.6; color: #CDD5C8; max-width: 44ch; }
.panel-note { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.panel-note .bubble-light {
  position: relative; background: #F3F2EF; color: #1F2421; border-radius: 20px; padding: 16px 18px;
  font-family: 'Source Sans 3', system-ui, sans-serif; font-size: 16px; line-height: 1.5;
}
.panel-note .bubble-light::after { content: ""; position: absolute; left: 28px; bottom: -8px; width: 16px; height: 16px; background: #F3F2EF; transform: rotate(45deg); border-radius: 2px; }
.panel-note .who { display: flex; align-items: center; gap: 12px; margin-left: 12px; }
.panel-note .who img { width: 56px; height: 56px; object-fit: contain; }
.panel-note .who b { display: block; font-size: 15px; }
.panel-note .who small { font-size: 13px; color: #A9B3A5; }
.band { padding: clamp(88px, 11vw, 144px) clamp(12px, 3vw, 32px) 0; }

.founders-section { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(56px, 7vw, 96px); }
.founders-photo { margin: 0 0 16px; }
.founders-photo img, .photo-slot { width: 100%; aspect-ratio: 16 / 9; border-radius: 32px; object-fit: cover; }
.photo-slot {
  display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center;
  background: repeating-linear-gradient(135deg, #E3DFD6 0 12px, #DCD7CD 12px 24px);
  font-family: var(--mono, ui-monospace, monospace); font-size: 14px; color: #7F7D73;
}
.founders-photo figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }
.cvs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.cv { background: var(--card); border-radius: 32px; padding: clamp(24px, 3vw, 40px); }
.cv h2 { font-size: clamp(26px, 2.6vw, 32px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.cv .role { margin-top: 6px; font-size: 16px; font-weight: 500; color: var(--sage); }
.cv-intro { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.cv h3 {
  margin: 28px 0 4px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
}
.cv-list { list-style: none; }
.cv-list li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid #E3DFD6; }
.cv-list li:first-child { border-top: none; }
.cv-when { font-size: 14px; color: var(--muted); padding-top: 2px; }
.cv-list b { display: block; font-size: 16px; font-weight: 600; }
.cv-list small { display: block; font-size: 15px; color: var(--ink-2); margin-top: 2px; }
@media (max-width: 600px) {
  .founders-photo img, .photo-slot { border-radius: 24px; }
  .cv-list li { grid-template-columns: 1fr; gap: 2px; }
}
.contact-line { margin-top: 28px; font-size: 16px; color: var(--ink-2); }

@media (max-width: 600px) {
  .ctas .btn { flex: 1 1 100%; text-align: center; }
  .panel { border-radius: 28px; }
  .block-intro { font-size: 17px; }
}
