/* =========================================================
   Indifeed — OnePager
   Design tokens + responsive layout
   Light theme = default, dark theme via prefers-color-scheme
   ========================================================= */

/* ---------- Self-hosted fonts (no request to Google) ---------- */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/montserrat-v31-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/montserrat-v31-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/montserrat-v31-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/montserrat-v31-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/montserrat-v31-latin-800.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-v23-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-v23-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-v23-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/instrument-sans-v4-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/instrument-sans-v4-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/instrument-sans-v4-latin-600italic.woff2') format('woff2');
}

:root {
  --bg: #F5F5F1;
  --ink: #1B1F1D;
  --muted: #626A65;
  --line: #D5D9D2;
  --surface: #E9EBE6;
  --card: #FFFFFF;
  --band-bg: #1A221F;
  --band-ink: #ECEFEC;
  --band-muted: #9FA9A3;
  --band-line: #2E3833;
  --band-accent: #55C597;
  --button-green: #30845F;
  --button-text: #FFFFFF;
  --accent-green: #40B886;
  --danger: #B3402E;

  /* indivet CI — fixed, brand-owned, never theme-switched */
  --indivet-sand: #F2EDE3;
  --indivet-petrol: #103C46;
  --indivet-orange: #DD7A28;

  --font-sans: 'Montserrat', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-display: 'Instrument Sans', sans-serif;

  --max: 1200px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121614;
    --ink: #ECEFEC;
    --muted: #9FA9A3;
    --line: #2E3833;
    --surface: #1B211E;
    --card: #1B211E;
    --band-bg: #0B0F0D;
    --button-green: #40B886;
    --button-text: #0F1D17;
    --accent-green: #55C597;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--ink); }

img { max-width: 100%; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--button-green);
  color: var(--button-text);
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img { width: 36px; height: 36px; display: block; flex-shrink: 0; }
.brand span { font-weight: 500; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.main-nav .nav-link { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
}
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-primary { background: var(--button-green); color: var(--button-text); }
.btn-outline { background: transparent; border: 1px solid var(--ink); color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.hero h1 {
  font-size: 40px;
  line-height: 1.08;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.hero h1 .accent { color: var(--button-green); }
.hero-sub {
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 24px;
  max-width: 480px;
}
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}

/* Batch card */
.batch-card-outer {
  background: var(--surface);
  border-radius: 4px;
  padding: 20px;
}
.batch-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.batch-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.batch-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.batch-value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}
.batch-card-top img { width: 32px; height: 32px; display: block; flex-shrink: 0; }
.batch-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.batch-meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.batch-meta-item .batch-value { font-size: 13px; }

.batch-comp { display: flex; flex-direction: column; gap: 10px; }
.batch-comp-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 12px;
}
.batch-comp-row span.label { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.bar-track { height: 6px; background: var(--surface); border-radius: 3px; }
.bar-fill { height: 6px; border-radius: 3px; background: var(--ink); }
.bar-fill.accent { background: var(--accent-green); }

.batch-progress { position: relative; padding-top: 4px; }
.batch-progress .track-bg {
  position: absolute; top: 9px; left: 10%; right: 10%; height: 2px; background: var(--line);
}
.batch-progress .track-fill {
  position: absolute; top: 9px; left: 10%; width: 40%; height: 2px; background: var(--accent-green);
}
.batch-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.batch-step {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  position: relative; z-index: 1;
}
.batch-step .dot {
  width: 12px; height: 12px; border-radius: 50%; box-sizing: border-box;
}
.batch-step .dot.done { background: var(--accent-green); border: 2px solid var(--accent-green); }
.batch-step .dot.current { background: var(--card); border: 2px solid var(--accent-green); box-shadow: 0 0 0 4px var(--surface); }
.batch-step .dot.todo { background: var(--card); border: 2px solid var(--line); }
.batch-step .step-label { font-family: var(--font-mono); font-size: 10px; color: var(--ink); }
.batch-step .step-label.muted { color: var(--muted); }

/* ---------- Fact bar ---------- */
.fact-bar { background: var(--band-bg); }
.fact-bar .wrap {
  padding: 48px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.fact-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--band-muted);
  margin-bottom: 8px;
}
.fact-value { font-size: 24px; font-weight: 600; color: var(--band-ink); }

/* ---------- Sections (shared) ---------- */
.section { padding: 72px 0; }
.section-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 16px;
}
.section-chip.on-band { color: var(--band-muted); }
.section h2 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 28px;
}
.section h2.on-band { color: var(--band-ink); }
.section-intro {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 28px;
}

/* Service cards */
.cards-col { display: flex; flex-direction: column; gap: 16px; }
.card {
  background: var(--surface);
  border-radius: 4px;
  padding: 28px;
}
.card h3 { font-size: 19px; font-weight: 600; margin: 20px 0 10px; color: var(--ink); }
.card p { font-size: 16px; line-height: 1.55; margin: 0; color: var(--ink); }

/* Process (dark band, always dark styling) */
.process-band { background: var(--band-bg); }
.process-list { position: relative; display: flex; flex-direction: column; gap: 28px; }
.process-rail {
  position: absolute; top: 4px; bottom: 4px; left: 19px; width: 1px; background: var(--band-line);
}
.process-item { position: relative; display: flex; gap: 16px; }
.process-num {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--band-accent);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 600; font-size: 14px; color: #0F1D17;
}
.process-item .step-title {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--band-muted); margin-bottom: 6px;
}
.process-item p { font-size: 15px; line-height: 1.5; margin: 0; color: var(--band-ink); }

/* Partnerships */
.partner-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.partner-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--ink); }
.partner-card li .bullet { width: 6px; height: 6px; background: var(--accent-green); margin-top: 7px; flex-shrink: 0; }
.partner-kicker {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin: 14px 0 8px;
}

/* Brands */
.brand-card {
  background: var(--indivet-sand);
  border-radius: 14px;
  padding: 32px;
}
.brand-wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 40px;
  color: var(--indivet-petrol);
  line-height: 1;
  margin-bottom: 24px;
}
.brand-wordmark .dot-i { font-style: italic; color: var(--indivet-orange); }
.brand-card p { font-size: 16px; line-height: 1.55; color: var(--indivet-petrol); margin: 0 0 20px; }
.brand-card .btn-indivet {
  display: inline-flex; align-items: center; height: 44px; padding: 0 22px;
  background: var(--indivet-petrol); color: var(--indivet-sand);
  border-radius: 14px; text-decoration: none; font-weight: 600; font-size: 15px;
}

/* Contact */
.contact-section { background: var(--surface); }
.contact-intro p { font-size: 16px; line-height: 1.6; margin: 0 0 24px; }
.contact-email {
  display: inline-block; font-size: 19px; font-weight: 600; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--accent-green); text-underline-offset: 4px;
  margin-bottom: 16px; word-break: break-all;
}
.contact-address { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0 0 40px; }

.form-card { background: var(--bg); border-radius: 4px; padding: 28px; }
.form-card fieldset { border: none; padding: 0; margin: 0 0 24px; }
.form-card legend {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); padding: 0; margin: 0 0 10px;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 44px; padding: 0 14px; border-radius: 4px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink);
  font-family: var(--font-sans); font-size: 13px; font-weight: 500; cursor: pointer;
}
.chip[aria-pressed="true"] {
  border-color: var(--button-green); background: var(--button-green); color: var(--button-text);
}
.chip.has-error { border-color: var(--danger); }
.field-error {
  font-size: 12px; color: var(--danger); margin-top: 8px; display: none;
}
.field-error.show { display: block; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%; height: 48px; padding: 0 16px; border-radius: 4px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font-size: 16px; font-family: var(--font-sans); box-sizing: border-box;
}
.field textarea { height: auto; padding: 12px 16px; resize: vertical; }
.field-check {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px;
}
.field-check input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.field-check label { font-size: 13px; line-height: 1.5; color: var(--ink); margin: 0; }
.field-check a { text-decoration: underline; text-decoration-color: var(--accent-green); }

.submit-btn {
  width: 100%; height: 48px; border-radius: 4px; border: none;
  background: var(--button-green); color: var(--button-text);
  font-family: var(--font-sans); font-size: 16px; font-weight: 600; cursor: pointer;
}
.submit-btn[disabled] { opacity: 0.6; cursor: not-allowed; }

.form-success { display: none; padding: 8px 0; }
.form-success.show { display: block; }
.form-success h3 { font-size: 20px; font-weight: 700; margin: 0 0 12px; color: var(--ink); }
.form-success p { font-size: 16px; line-height: 1.55; margin: 0 0 28px; color: var(--ink); }
.form-success .btn-outline { background: transparent; }
.form-error-banner {
  display: none; margin-bottom: 20px; padding: 14px 16px; border-radius: 4px;
  background: rgba(179,64,46,0.08); border: 1px solid var(--danger); color: var(--danger); font-size: 14px;
}
.form-error-banner.show { display: block; }

/* Honeypot — hidden from sighted users and real users, left for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--band-bg); }
.site-footer .wrap {
  padding: 48px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand img { width: 28px; height: 28px; display: block; flex-shrink: 0; }
.footer-brand span { font-weight: 500; font-size: 15px; color: var(--band-ink); }
.footer-address { font-family: var(--font-mono); font-size: 12px; color: var(--band-muted); }
.footer-links { display: flex; gap: 20px; font-size: 13px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--band-ink); text-decoration: underline; text-decoration-color: var(--accent-green); }

/* ---------- Legal pages ---------- */
.legal-main { max-width: 760px; margin: 0 auto; padding: 72px 24px 96px; box-sizing: border-box; }
.legal-kicker {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px;
}
.legal-main h1 { font-size: 40px; line-height: 1.1; font-weight: 700; margin: 0 0 40px; }
.legal-table { border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.legal-row {
  display: grid; grid-template-columns: 1fr; gap: 6px;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.legal-row .legal-term {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
}
.legal-row .legal-desc { font-size: 16px; line-height: 1.6; }
.legal-main section { padding: 24px 0; border-top: 1px solid var(--line); }
.legal-main h2 { font-size: 20px; font-weight: 600; margin: 0 0 14px; }
.legal-main p { font-size: 16px; line-height: 1.7; margin: 0 0 14px; }
.legal-main p.legal-lead { font-size: 16px; line-height: 1.7; color: var(--muted); margin: 0 0 32px; }
.legal-main p.legal-stand { font-size: 14px; color: var(--muted); margin: 32px 0 0; }
.legal-back {
  display: inline-flex; align-items: center; height: 44px; font-size: 15px; font-weight: 500;
  text-decoration: underline; text-decoration-color: var(--accent-green); text-underline-offset: 4px;
  color: var(--ink);
}

mark.todo {
  background: #FDE68A;
  color: #78350F;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.92em;
  font-weight: 600;
}
@media (prefers-color-scheme: dark) {
  mark.todo { background: #92400E; color: #FEF3C7; }
}

/* =========================================================
   Breakpoint: tablet / small desktop and up (>= 768px)
   ========================================================= */
@media (min-width: 768px) {
  .main-nav .nav-link { display: inline-flex; }

  .hero { padding: 100px 0; }
  .hero-grid {
    grid-template-columns: repeat(12, 1fr);
    column-gap: 24px;
    align-items: end;
  }
  .hero-grid > .hero-copy { grid-column: 1 / 7; }
  .hero-grid > .hero-visual { grid-column: 7 / 13; }
  .hero h1 { font-size: 56px; }
  .hero-ctas { flex-direction: row; gap: 16px; }
  .btn { width: auto; }

  .fact-bar .wrap { flex-direction: row; justify-content: space-between; gap: 40px; }

  .section { padding: 96px 0; }
  .section h2 { font-size: 40px; }

  .cards-col { flex-direction: row; gap: 24px; }
  .cards-col .card { flex: 1; }

  .process-list { flex-direction: row; gap: 24px; }
  .process-rail { top: 20px; left: 0; right: 0; bottom: auto; width: auto; height: 1px; }
  .process-item { flex-direction: column; flex: 1; }

  .partner-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .cards-col.partner-cards { flex-direction: row; }

  .brand-card { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 56px; }
  .brand-wordmark { font-size: 56px; margin-bottom: 0; }

  .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

  .legal-row { grid-template-columns: 200px 1fr; gap: 24px; }
}

/* =========================================================
   Breakpoint: desktop (>= 1024px)
   ========================================================= */
@media (min-width: 1024px) {
  .hero h1 { font-size: 84px; line-height: 1.04; }
  .hero-sub { font-size: 20px; }
  .section h2 { font-size: 48px; }
}
