/* ==========================================================================
   Quantro AI — Marketing Website
   Warm & confident. Forest + gold. Long-scroll single page.
   ========================================================================== */

/* ---------- Typography: Instrument Serif (display) + Inter (body) + Geist Mono (data) ---------- */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital,wght@0,400;1,400&family=Inter:wght@300;400;500;600;700;800&family=Geist+Mono:wght@400;500;600&display=swap');

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-display: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* ============ Ink / Neutrals (warm, gold-undertone) ============ */
  --ink-0:   #FFFFFF;
  --ink-50:  #F7F3EA;
  --ink-100: #ECE3CF;
  --ink-200: #D4C29A;
  --ink-300: #A87F28;
  --ink-400: #7C5D1B;
  --ink-500: #4A4226;
  --ink-600: #2A3324;
  --ink-700: #17231C;
  --ink-800: #0B1511;
  --ink-900: #050B07;
  --ink-950: #020603;

  /* ============ Brand — Regal Gold ============ */
  --amber-50:  #FBF3DC;
  --amber-100: #F2E1A5;
  --amber-200: #E3C868;
  --amber-300: #C9A63E;
  --amber-400: #B28C30;
  --amber-500: #A37E2C;
  --amber-600: #846524;
  --amber-700: #664E1B;
  --amber-800: #443413;
  --amber-900: #241B09;

  /* ============ Accent — Forest Emerald ============ */
  --teal-50:  #E6F1EB;
  --teal-100: #B3D8C2;
  --teal-200: #7CBE99;
  --teal-300: #3A9E6B;
  --teal-400: #108149;
  --teal-500: #006039;
  --teal-600: #004D2D;
  --teal-700: #003B23;
  --teal-800: #002819;
  --teal-900: #00150D;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: 'ss01', 'cv11';
  letter-spacing: -0.005em;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: 1360px; margin: 0 auto; padding: 0 32px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--amber-500);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--amber-500);
}
.eyebrow.on-dark { color: var(--amber-200); }
.eyebrow.on-dark::before { background: var(--amber-200); }

/* Display/serif class — Instrument Serif. Tuned weights + spacing. */
.serif {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.02;
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 10px; font-weight: 500; font-size: 15px; transition: all 160ms; line-height: 1; }
.btn-primary { background: linear-gradient(180deg, #B8912F, #A37E2C); color: #FFFFFF; box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 1px 2px rgba(68,52,19,0.3), 0 8px 20px -8px rgba(163,126,44,0.5); }
.btn-primary:hover { background: linear-gradient(180deg, #A37E2C, #846524); transform: translateY(-1px); }
.btn-forest { background: linear-gradient(180deg, #00703F, #006039); color: #FFFFFF; box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 8px 20px -8px rgba(0,96,57,0.5); }
.btn-forest:hover { background: linear-gradient(180deg, #006039, #004D2D); transform: translateY(-1px); }
.btn-ghost-dark { background: transparent; color: #FFFFFF; border: 1px solid rgba(255,255,255,0.25); }
.btn-ghost-dark:hover { background: rgba(255,255,255,0.08); border-color: rgba(227,200,104,0.5); color: var(--amber-200); }
.btn-ghost-light { background: transparent; color: var(--ink-900); border: 1px solid var(--ink-200); }
.btn-ghost-light:hover { background: var(--ink-50); border-color: var(--amber-500); }

/* ============ Nav ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(236,227,207,0.7);
}
.nav-inner { display: flex; align-items: center; gap: 40px; padding: 16px 32px; max-width: 1360px; margin: 0 auto; }
.nav-brand { display: flex; align-items: center; }
.nav-brand img { height: 32px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-600); }
.nav-links a { position: relative; padding: 4px 0; transition: color 140ms; }
.nav-links a:hover { color: var(--amber-500); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-cta .link { font-size: 14px; color: var(--ink-600); }
.nav-cta .link:hover { color: var(--ink-900); }
.nav-btn { padding: 9px 18px; font-size: 14px; border-radius: 8px; background: var(--ink-900); color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.nav-btn:hover { background: var(--teal-700); }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 100px 0 120px;
  background:
    radial-gradient(ellipse 80% 60% at 80% 0%, rgba(163,126,44,0.12), transparent 60%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(0,96,57,0.08), transparent 60%),
    #FCFAF4;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(74,66,38,0.04) 1px, transparent 1px);
  background-size: 80px 100%;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 0%, transparent 70%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 80px; align-items: center; }
.hero h1 {
  font-family: var(--font-display);
  font-size: 92px;
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.022em;
  color: var(--ink-900);
  margin: 22px 0 26px;
}
.hero h1 em { font-style: italic; color: var(--teal-500); font-weight: 400; }
.hero h1 .gold { color: var(--amber-500); font-style: italic; font-weight: 400; }

.hero p.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-600);
  max-width: 540px;
  margin: 0 0 34px;
}
.hero-ctas { display: flex; gap: 12px; align-items: center; }
.hero-meta { margin-top: 44px; display: flex; gap: 32px; padding-top: 24px; border-top: 1px solid var(--ink-100); }
.hero-meta .stat { }
.hero-meta .stat .num { font-family: var(--font-display); font-size: 42px; font-weight: 400; color: var(--teal-500); line-height: 1; letter-spacing: -0.02em; }
.hero-meta .stat .lbl { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-400); margin-top: 6px; }

/* Hero visual — a stylized automation diagram */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.05;
  background: linear-gradient(135deg, #003B23 0%, #002819 100%);
  border-radius: 20px;
  padding: 28px;
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0,40,25,0.4), 0 0 0 1px rgba(163,126,44,0.2);
}
.hero-visual::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(227,200,104,0.18), transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(0,112,63,0.35), transparent 50%);
  pointer-events: none;
}
.hero-visual > * { position: relative; }

/* ============ Section base ============ */
section.block { padding: 110px 0; }
section.block.tight { padding: 88px 0; }
.sec-head { max-width: 820px; margin-bottom: 64px; }
.sec-head h2 {
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.018em;
  color: var(--ink-900);
  margin: 18px 0 20px;
}
.sec-head h2 em { font-style: italic; color: var(--teal-500); font-weight: 400; }
.sec-head p { font-size: 18px; color: var(--ink-600); line-height: 1.55; max-width: 640px; }

/* ============ Logo marquee (animated, infinite) ============ */
.logos {
  padding: 40px 0 44px;
  border-top: 1px solid var(--ink-100);
  border-bottom: 1px solid var(--ink-100);
  background: #FCFAF4;
  overflow: hidden;
}
.logos-label-wrap { margin-bottom: 24px; }
.logos .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-400);
  white-space: nowrap;
  text-align: center;
}

/* Marquee container — masked at edges for elegant fade */
.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 96px,
    #000 calc(100% - 96px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 96px,
    #000 calc(100% - 96px),
    transparent 100%
  );
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-set {
  display: flex;
  align-items: center;
  gap: 72px;
  padding: 0 36px;
  flex-shrink: 0;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  color: var(--ink-500);
  opacity: 0.72;
  transition: opacity 180ms ease, color 180ms ease;
  flex-shrink: 0;
}
.logo-item:hover {
  opacity: 1;
  color: var(--ink-900);
}
.logo-item svg {
  height: 28px;
  width: auto;
  display: block;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
  }
  .marquee-set:nth-child(2) { display: none; }
  .marquee-set { flex-wrap: wrap; justify-content: center; row-gap: 24px; }
}

/* ============ Value props (Our Value) ============ */
.block.value { background: #FCFAF4; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.v-card {
  background: #FFFFFF;
  border: 1px solid var(--ink-100);
  border-radius: 16px;
  padding: 30px 28px 28px;
  transition: all 200ms;
}
.v-card:hover { border-color: var(--amber-300); transform: translateY(-3px); box-shadow: 0 20px 40px -16px rgba(74,66,38,0.15); }
.v-card .ico { width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, #FBF3DC, #E3C868); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; color: var(--amber-700); }
.v-card h3 { font-family: var(--font-display); font-size: 30px; font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink-900); margin: 0 0 12px; }
.v-card p { font-size: 15px; color: var(--ink-600); line-height: 1.55; margin: 0; }
.v-card .metric { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-500); margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--ink-100); font-weight: 500; }

/* Feature card (big forest) */
.v-card.featured { background: linear-gradient(135deg, #006039, #003B23); color: #fff; border: none; position: relative; overflow: hidden; }
.v-card.featured::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 0%, rgba(227,200,104,0.22), transparent 50%); pointer-events: none; }
.v-card.featured > * { position: relative; }
.v-card.featured .ico { background: rgba(227,200,104,0.2); color: var(--amber-200); }
.v-card.featured h3 { color: #fff; }
.v-card.featured p { color: rgba(255,255,255,0.78); }
.v-card.featured .metric { color: var(--amber-200); border-top-color: rgba(227,200,104,0.25); }

/* ============ Our Work (case studies) ============ */
.work-list { display: flex; flex-direction: column; gap: 18px; }
.case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--ink-100);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  transition: all 200ms;
}
.case:hover { border-color: var(--amber-300); box-shadow: 0 24px 48px -20px rgba(74,66,38,0.18); }
.case.reverse .c-body { order: 2; }
.case.reverse .c-visual { order: 1; }
.c-body { padding: 44px 48px; display: flex; flex-direction: column; justify-content: center; }
.c-industry { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber-500); margin-bottom: 14px; }
.c-body h3 { font-family: var(--font-display); font-size: 40px; font-weight: 400; line-height: 1.08; letter-spacing: -0.015em; color: var(--ink-900); margin: 0 0 14px; }
.c-body p { font-size: 15.5px; color: var(--ink-600); line-height: 1.55; margin: 0 0 22px; max-width: 480px; }
.c-results { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; padding-top: 22px; border-top: 1px solid var(--ink-100); }
.c-results .r .num { font-family: var(--font-display); font-size: 36px; font-weight: 400; color: var(--teal-500); line-height: 1; letter-spacing: -0.02em; }
.c-results .r .num .plus { color: var(--amber-500); font-style: italic; }
.c-results .r .lbl { font-size: 11px; color: var(--ink-400); margin-top: 6px; line-height: 1.4; }
.c-visual {
  background: linear-gradient(135deg, #006039, #002819);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 340px;
}
.c-visual::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, rgba(227,200,104,0.2), transparent 55%); }
.c-visual > * { position: relative; }

/* ============ Industries ============ */
.block.industries { background: #050B07; color: #fff; position: relative; overflow: hidden; }
.block.industries::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(163,126,44,0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(0,96,57,0.3), transparent 60%);
  pointer-events: none;
}
.block.industries > * { position: relative; }
.block.industries .sec-head h2 { color: #FFFFFF; }
.block.industries .sec-head h2 em { color: var(--amber-300); }
.block.industries .sec-head p { color: rgba(255,255,255,0.7); }

.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ind {
  border: 1px solid rgba(163,126,44,0.2);
  border-radius: 16px;
  padding: 30px 26px;
  background: rgba(255,255,255,0.02);
  transition: all 220ms;
  position: relative;
  overflow: hidden;
}
.ind:hover { border-color: var(--amber-400); background: rgba(163,126,44,0.06); transform: translateY(-3px); }
.ind .num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--amber-300); margin-bottom: 18px; }
.ind h4 { font-family: var(--font-display); font-size: 28px; font-weight: 400; color: #FFFFFF; margin: 0 0 12px; letter-spacing: -0.01em; line-height: 1.15; }
.ind p { font-size: 14.5px; color: rgba(255,255,255,0.7); line-height: 1.55; margin: 0 0 22px; }
.ind ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; font-size: 13px; color: rgba(255,255,255,0.85); }
.ind ul li { display: flex; gap: 10px; align-items: flex-start; }
.ind ul li::before { content: ''; flex-shrink: 0; width: 5px; height: 5px; border-radius: 999px; background: var(--amber-400); margin-top: 8px; }

/* ============ Testimonials ============ */
.block.testimonials { background: #FCFAF4; }
.test-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.test-grid > .t:nth-child(1) { grid-row: 1 / 3; }
.t { border-radius: 16px; padding: 32px 30px; background: #FFFFFF; border: 1px solid var(--ink-100); display: flex; flex-direction: column; }
.t .quote { font-family: var(--font-display); font-size: 24px; line-height: 1.32; letter-spacing: -0.01em; color: var(--ink-900); font-weight: 400; flex: 1; }
.t .quote::before { content: '"'; font-family: var(--font-display); font-size: 54px; color: var(--amber-400); line-height: 0.5; position: relative; top: 18px; margin-right: 4px; }
.t .author { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--ink-100); display: flex; align-items: center; gap: 12px; }
.t .avatar { width: 38px; height: 38px; border-radius: 999px; background: linear-gradient(135deg, var(--amber-300), var(--amber-600)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.t .author .n { font-size: 14px; font-weight: 600; color: var(--ink-900); }
.t .author .r { font-size: 12px; color: var(--ink-400); font-family: var(--font-mono); letter-spacing: 0.04em; }

.t.featured { background: linear-gradient(160deg, #006039 0%, #002819 100%); color: #fff; border: none; position: relative; overflow: hidden; }
.t.featured::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 90% 10%, rgba(227,200,104,0.28), transparent 50%); }
.t.featured > * { position: relative; }
.t.featured .quote { font-size: 30px; color: #fff; }
.t.featured .quote::before { color: var(--amber-300); }
.t.featured .author { border-top-color: rgba(227,200,104,0.3); }
.t.featured .author .n { color: #fff; }
.t.featured .author .r { color: var(--amber-200); }

/* ============ Book a Call ============ */
.block.book { background: linear-gradient(180deg, #FCFAF4 0%, #F7F3EA 100%); }
.book-wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: flex-start; }
.book-left h2 {
  font-family: var(--font-display);
  font-size: 62px;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.018em;
  color: var(--ink-900);
  margin: 18px 0 24px;
}
.book-left h2 em { font-style: italic; color: var(--amber-500); font-weight: 400; }
.book-left .lead { font-size: 17px; color: var(--ink-600); line-height: 1.55; max-width: 460px; margin: 0 0 36px; }
.book-list { display: flex; flex-direction: column; gap: 20px; margin: 0 0 36px; padding: 0; list-style: none; }
.book-list li { display: flex; gap: 16px; align-items: flex-start; }
.book-list .check { flex-shrink: 0; width: 28px; height: 28px; border-radius: 999px; background: var(--teal-500); color: #fff; display: flex; align-items: center; justify-content: center; }
.book-list .txt { font-size: 15px; color: var(--ink-700); line-height: 1.5; padding-top: 4px; }
.book-list .txt b { color: var(--ink-900); font-weight: 600; }

.book-host { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid var(--ink-100); border-radius: 14px; background: #fff; }
.book-host .avatar { width: 48px; height: 48px; border-radius: 999px; background: linear-gradient(135deg, #006039, #003B23); color: var(--amber-200); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 16px; }
.book-host .h-name { font-weight: 600; font-size: 15px; }
.book-host .h-role { font-size: 12.5px; color: var(--ink-400); font-family: var(--font-mono); letter-spacing: 0.04em; margin-top: 2px; }
.book-host .h-meta { margin-left: auto; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--teal-500); text-transform: uppercase; }

/* Calendar */
.book-right { background: #fff; border: 1px solid var(--ink-100); border-radius: 20px; padding: 28px; box-shadow: 0 32px 64px -24px rgba(74,66,38,0.18); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cal-title { font-weight: 600; font-size: 16px; color: var(--ink-900); }
.cal-nav { display: flex; gap: 4px; }
.cal-nav button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--ink-100); color: var(--ink-600); display: flex; align-items: center; justify-content: center; background: #fff; }
.cal-nav button:hover { border-color: var(--amber-500); color: var(--amber-500); }
.cal-sub { font-size: 13px; color: var(--ink-400); font-family: var(--font-mono); letter-spacing: 0.04em; margin-bottom: 18px; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 20px; }
.cal-dow { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-400); text-align: center; padding: 8px 0 6px; }
.cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 14px; border-radius: 8px; color: var(--ink-600); cursor: pointer; position: relative; transition: all 120ms; font-variant-numeric: tabular-nums; }
.cal-day:hover { background: var(--ink-50); }
.cal-day.muted { color: var(--ink-200); pointer-events: none; }
.cal-day.available { color: var(--ink-900); font-weight: 500; }
.cal-day.available::after { content: ''; position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 999px; background: var(--teal-400); }
.cal-day.selected { background: var(--ink-900); color: #fff; font-weight: 600; }
.cal-day.selected::after { background: var(--amber-300); }
.cal-day.today { box-shadow: inset 0 0 0 1px var(--amber-500); }

.slot-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-400); margin: 8px 0 12px; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot { padding: 11px 10px; border: 1px solid var(--ink-100); border-radius: 9px; text-align: center; font-size: 13.5px; color: var(--ink-700); background: #fff; font-variant-numeric: tabular-nums; transition: all 120ms; }
.slot:hover { border-color: var(--amber-500); color: var(--amber-600); }
.slot.active { background: linear-gradient(180deg, #B8912F, #A37E2C); color: #fff; border-color: transparent; box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 8px 16px -6px rgba(163,126,44,0.5); }

.book-cta { margin-top: 22px; display: flex; align-items: center; gap: 12px; }
.book-cta .btn { flex: 1; justify-content: center; padding: 14px 20px; }
.book-cta .secondary { flex: 0; }

/* ============ Footer ============ */
footer.foot { background: #050B07; color: rgba(255,255,255,0.7); padding: 80px 0 32px; border-top: 1px solid rgba(163,126,44,0.2); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.foot-brand img { height: 32px; margin-bottom: 18px; }
.foot-brand p { font-size: 14px; line-height: 1.55; max-width: 320px; color: rgba(255,255,255,0.55); }
.foot-col h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber-300); margin: 0 0 18px; font-weight: 500; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 14px; color: rgba(255,255,255,0.7); }
.foot-col a:hover { color: var(--amber-200); }
.foot-bottom { padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,0.5); }
.foot-bottom .dots { display: flex; gap: 20px; }

/* Flow visual pieces */
.flow-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(163,126,44,0.25); border-radius: 12px; padding: 14px 16px; backdrop-filter: blur(8px); }
.flow-card .l { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber-300); margin-bottom: 6px; }
.flow-card .v { font-size: 15px; color: #fff; font-weight: 500; }
.flow-card.primary { background: rgba(163,126,44,0.15); border-color: var(--amber-400); }
.flow-card.primary .v { color: var(--amber-200); }
.flow-line { stroke: rgba(227,200,104,0.35); stroke-width: 1.5; fill: none; }
.flow-dot { fill: var(--amber-300); }

/* ============ Calendly embed polish ============ */
.calendly-inline-widget { background: #1a2a21; }
.calendly-inline-widget iframe { border: 0; border-radius: 12px; }


/* ============================================================
   RESPONSIVE STYLES
   Breakpoints:
     ≤ 1024px  tablet
     ≤ 768px   mobile
     ≤ 480px   small mobile

   Type scale on mobile (readable):
     h1     42px / 1.08
     h2     32px / 1.15
     h3     22px / 1.25
     lead   17px / 1.55
     body   16px / 1.6
     meta   13px / 1.5

   Spacing rhythm: 8 · 12 · 16 · 20 · 24 · 32 · 48 · 64 · 80
   ============================================================ */

/* Prevent any accidental horizontal overflow site-wide */
html, body { overflow-x: hidden; }

/* ==================== TABLET (≤ 1024px) ==================== */
@media (max-width: 1024px) {
  .container, .container-wide { padding-left: 32px; padding-right: 32px; }

  /* Nav: hide inline links, keep brand + primary CTA */
  .nav-inner { gap: 20px; padding: 16px 24px; }
  .nav-links, .nav-cta .link { display: none; }

  /* Hero stacks */
  .hero { padding: 80px 0 96px; }
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero h1 { font-size: 60px; line-height: 1.02; }
  .hero-visual { min-height: 440px; }

  /* Section rhythm */
  section.block { padding: 88px 0; }
  .sec-head { margin-bottom: 48px; }
  .sec-head h2 { font-size: 42px; line-height: 1.06; }
  .sec-head p { font-size: 17px; }

  /* Grids: three-up → two-up */
  .value-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .ind-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .test-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .t.featured { grid-column: 1 / -1; }

  /* Case studies stack */
  .c-card { grid-template-columns: 1fr !important; }
  .c-body { padding: 36px 32px; }

  /* Book-a-call stacks */
  .book-wrap { grid-template-columns: 1fr; gap: 48px; }

  /* Footer: 1 wide + 2 cols */
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .foot-brand { grid-column: 1 / -1; }
}

/* ==================== MOBILE (≤ 768px) ==================== */
@media (max-width: 768px) {

  /* ---------- Base typography ---------- */
  body { font-size: 16px; line-height: 1.6; }

  /* ---------- Containers ---------- */
  .container, .container-wide { padding-left: 20px; padding-right: 20px; }

  /* ---------- Navigation ---------- */
  .nav-inner { gap: 16px; padding: 14px 20px; }
  .nav-brand img { height: 28px !important; }
  .nav-btn {
    padding: 10px 16px;
    font-size: 13px;
    border-radius: 8px;
    min-height: 40px;
  }

  /* ---------- Hero ---------- */
  .hero { padding: 56px 0 64px; }
  .hero-inner { gap: 44px; }
  .eyebrow { font-size: 10.5px; letter-spacing: 0.18em; }

  .hero h1 {
    font-size: 42px;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 14px 0 20px;
  }
  .hero p.lead, p.lead {
    font-size: 17px;
    line-height: 1.6;
    margin: 0 0 32px;
  }

  /* Hero CTAs stack cleanly, full width */
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 40px;
  }
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
    padding: 15px 22px;
    font-size: 15px;
    min-height: 48px;
  }

  /* Hero meta stats: 2-up grid, not cramped flex */
  .hero-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
    margin-top: 32px;
    padding-top: 24px;
  }
  .hero-meta .stat .num { font-size: 30px; }
  .hero-meta .stat .lbl { font-size: 10px; margin-top: 8px; }

  /* Hero visual: breathing room, readable cards */
  .hero-visual {
    min-height: 380px;
    padding: 20px;
    border-radius: 16px;
  }
  .hero-visual .flow-card {
    padding: 12px 14px;
    border-radius: 10px;
  }
  .hero-visual .flow-card .l { font-size: 10px; letter-spacing: 0.14em; }
  .hero-visual .flow-card .v { font-size: 13.5px; line-height: 1.35; }

  /* ---------- Section blocks: generous rhythm ---------- */
  section.block { padding: 72px 0; }
  .sec-head { margin-bottom: 40px; }
  .sec-head h2 {
    font-size: 32px;
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin-bottom: 16px;
  }
  .sec-head p {
    font-size: 16px;
    line-height: 1.6;
  }

  /* ---------- Logo marquee ---------- */
  .logos { padding: 28px 0 32px; }
  .logos-label-wrap { margin-bottom: 18px; }
  .logos .lbl { font-size: 10px; letter-spacing: 0.2em; }
  .marquee-set { gap: 48px; padding: 0 24px; }
  .logo-item { height: 26px; }
  .logo-item svg { height: 22px; }
  .marquee-track { animation-duration: 26s; }
  .marquee {
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0,
      #000 48px,
      #000 calc(100% - 48px),
      transparent 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0,
      #000 48px,
      #000 calc(100% - 48px),
      transparent 100%
    );
  }

  /* ---------- Value cards ---------- */
  .value-grid { grid-template-columns: 1fr; gap: 16px; }
  .v-card { padding: 28px 24px 26px; }
  .v-card .ico { margin-bottom: 18px; }
  .v-card h3 {
    font-size: 22px;
    line-height: 1.2;
    margin-bottom: 10px;
  }
  .v-card p {
    font-size: 15.5px;
    line-height: 1.6;
  }
  .v-card .metric { font-size: 12px; margin-top: 18px; }

  /* ---------- Case study cards ---------- */
  .c-body { padding: 32px 24px; }
  .c-body h3 {
    font-size: 26px;
    line-height: 1.15;
    margin-bottom: 12px;
  }
  .c-body p {
    font-size: 15.5px;
    line-height: 1.6;
    margin-bottom: 22px;
  }
  .c-results {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
    padding-top: 20px;
  }
  .c-results .r .num { font-size: 22px; }
  .c-results .r .lbl { font-size: 10.5px; margin-top: 6px; }

  /* ---------- Industries (dark section) ---------- */
  .ind-grid { grid-template-columns: 1fr; gap: 16px; }
  .ind { padding: 28px 24px; }
  .ind .num { font-size: 11px; margin-bottom: 14px; }
  .ind h4 {
    font-size: 22px;
    line-height: 1.2;
    margin-bottom: 10px;
  }
  .ind p {
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 16px;
  }
  .ind ul { font-size: 13.5px; gap: 10px; }

  /* ---------- Testimonials ---------- */
  .test-grid { grid-template-columns: 1fr; gap: 14px; }
  .t.featured { grid-column: auto; }
  .t { padding: 28px 24px; }
  .t .quote {
    font-size: 16.5px;
    line-height: 1.55;
  }
  .t.featured .quote { font-size: 19px; line-height: 1.45; }
  .t .author { margin-top: 22px; padding-top: 18px; gap: 12px; }
  .t .avatar { width: 40px; height: 40px; font-size: 14px; }
  .t .n { font-size: 14.5px; }
  .t .r { font-size: 12.5px; margin-top: 2px; }

  /* ---------- Book a call ---------- */
  section.book { padding: 72px 0; }
  .book-wrap { gap: 40px; }
  .book-left h2 {
    font-size: 30px;
    line-height: 1.15;
    margin-bottom: 18px;
  }
  .book-left p.lead {
    font-size: 16.5px;
    line-height: 1.6;
    margin-bottom: 28px;
  }
  .book-list { gap: 18px; margin-bottom: 32px; }
  .book-list li { gap: 14px; }
  .book-list .txt { font-size: 14.5px; line-height: 1.55; }

  .book-host {
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
  }
  .book-host .avatar { width: 44px; height: 44px; font-size: 15px; }
  .book-host .h-name { font-size: 14.5px; }
  .book-host .h-role { font-size: 12.5px; }
  .book-host .h-meta {
    margin-left: auto;
    font-size: 11.5px;
  }

  .book-right { padding: 24px 20px; border-radius: 16px; }
  .cal-title { font-size: 16px; }
  .cal-sub { font-size: 12.5px; margin-top: 4px; }

  /* Give Calendly enough vertical space on mobile */
  .calendly-inline-widget {
    height: 760px !important;
    min-width: 0 !important;
  }

  /* ---------- Footer ---------- */
  footer.foot { padding: 64px 0 28px; }
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
  }
  .foot-brand img { height: 28px; margin-bottom: 16px; }
  .foot-brand p {
    font-size: 14.5px;
    line-height: 1.6;
    max-width: none;
  }
  .foot-col h5 { margin-bottom: 14px; }
  .foot-col ul { gap: 12px; }
  .foot-col a { font-size: 14.5px; }
  .foot-bottom {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
    font-size: 13px;
    padding-top: 24px;
  }
  .foot-bottom .dots { gap: 18px; flex-wrap: wrap; }
}

/* ==================== SMALL MOBILE (≤ 480px) ==================== */
@media (max-width: 480px) {
  .container, .container-wide { padding-left: 18px; padding-right: 18px; }

  /* Tighten hero slightly on the smallest phones */
  .hero { padding: 48px 0 56px; }
  .hero h1 { font-size: 34px; line-height: 1.1; }
  .hero p.lead { font-size: 16px; }

  /* Section heads scale down one step */
  .sec-head h2 { font-size: 28px; }
  .book-left h2 { font-size: 26px; }

  /* Case study results: 2-up, third centered below */
  .c-results { grid-template-columns: 1fr 1fr; gap: 12px; }
  .c-results .r:nth-child(3) { grid-column: 1 / -1; text-align: left; }

  /* Hero meta: stack to 1 column if 2-up feels cramped */
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 18px 16px; }
  .hero-meta .stat .num { font-size: 26px; }

  /* Testimonial featured size */
  .t.featured .quote { font-size: 17.5px; }
}

/* ============ ROI Calculator ============ */
.calc-section { background: var(--ink-50); }
.calc-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: flex-start;
}

/* Sliders */
.calc-inputs { display: flex; flex-direction: column; gap: 28px; }
.calc-slider-row { display: flex; flex-direction: column; gap: 8px; }
.calc-slider-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2px; }
.calc-slider-name { font-size: 14px; font-weight: 600; color: var(--ink-700); }
.calc-slider-val {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--teal-500);
  min-width: 80px;
  text-align: right;
  line-height: 1;
}
.calc-range {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--ink-100);
  border-radius: 99px;
  outline: none;
  cursor: pointer;
}
.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--teal-500);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1.5px var(--teal-500);
  cursor: pointer;
  transition: transform 120ms;
}
.calc-range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.calc-range::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--teal-500);
  border: 3px solid #fff;
  cursor: pointer;
}
.calc-slider-sub { font-size: 12.5px; color: var(--ink-400); line-height: 1.5; }
.calc-disclaimer { font-size: 11.5px; color: var(--ink-300); line-height: 1.6; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--ink-100); }

/* Results panel */
.calc-results {
  background: var(--ink-900);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.calc-results-header {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 4px;
}
.calc-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-stat {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px 14px;
}
.calc-stat.gold {
  background: rgba(227,200,104,0.08);
  border-color: rgba(227,200,104,0.2);
}
.calc-stat-label { font-size: 11.5px; color: rgba(255,255,255,0.45); margin-bottom: 8px; line-height: 1.4; }
.calc-stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  line-height: 1;
  letter-spacing: -0.02em;
}
.calc-stat-num.danger { color: #f87171; }
.calc-stat-num.gold-num { color: var(--amber-300); }
.calc-divider { height: 1px; background: rgba(255,255,255,0.08); }
.calc-highlight-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-300);
  margin-bottom: -4px;
}
.calc-assumption {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.calc-cta {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

/* Mobile */
@media (max-width: 768px) {
  .calc-wrap { grid-template-columns: 1fr; gap: 32px; }
  .calc-stat-num { font-size: 22px; }
  .calc-slider-val { font-size: 18px; }
}


/* ============ Lead Diagnostic Quiz ============ */
.quiz-section { background: #0B1410; }
.quiz-section .eyebrow { color: #F2E1A5; }
.quiz-section .eyebrow::before { background: #F2E1A5; }
.quiz-section h2 { color: #FFFFFF; }
.quiz-section h2 em { color: #E3C868; }
.quiz-section .lead { color: rgba(255,255,255,0.65); }

.quiz-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.quiz-left { padding-top: 8px; }
.quiz-promises {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.quiz-promises li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: rgba(255,255,255,0.6);
}
.quiz-promises .check {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #245033;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

/* White card — hardcoded so it always renders white regardless of parent */
.quiz-card {
  background: #FFFFFF !important;
  border-radius: 20px;
  padding: 32px 28px;
}

/* Progress */
.qz-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.qz-bar-bg {
  flex: 1;
  height: 3px;
  background: #ECE3CF;
  border-radius: 99px;
  overflow: hidden;
}
.qz-bar-fill {
  height: 100%;
  background: #3A9E6B;
  border-radius: 99px;
  transition: width 0.35s ease;
}
.qz-step-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #A87F28;
  white-space: nowrap;
}

/* Question text */
.qz-q {
  font-size: 18px;
  font-weight: 700;
  color: #050B07 !important;
  line-height: 1.35;
  margin-bottom: 8px;
}
.qz-sub {
  font-size: 13.5px;
  color: #7C5D1B;
  line-height: 1.6;
  margin-bottom: 22px;
}

/* Options */
.qz-opts {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 28px;
}
.qz-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1.5px solid #D4C29A;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 140ms, background 140ms;
  background: #FFFFFF;
}
.qz-opt:hover {
  border-color: #3A9E6B;
  background: #E6F1EB;
}
.qz-opt.selected {
  border-color: #108149;
  background: #E6F1EB;
}
.qz-opt.selected .qz-check-ring {
  background: #108149;
  border-color: #108149;
}
.qz-opt.selected .qz-check-ring::after { display: block; }
.qz-check-ring {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid #A87F28;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 140ms;
  background: transparent;
}
.qz-check-ring::after {
  content: '';
  display: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #FFFFFF;
}
.qz-opt-label {
  font-size: 14.5px;
  color: #17231C !important;
  line-height: 1.4;
}
.qz-opt.selected .qz-opt-label {
  color: #003B23 !important;
  font-weight: 600;
}

/* Nav buttons */
.qz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.qz-back {
  font-size: 13px;
  color: #7C5D1B;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px 0;
  font-family: var(--font-sans);
}
.qz-back:hover { color: #17231C; }

/* Next button — always clearly visible and styled */
.qz-btn {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 10px;
  border: none;
  background: #D4C29A;
  color: #4A4226;
  cursor: not-allowed;
  transition: background 180ms, color 140ms, transform 120ms;
  letter-spacing: 0.01em;
}
.qz-btn.active {
  background: #108149;
  color: #FFFFFF;
  cursor: pointer;
  pointer-events: all;
}
.qz-btn.active:hover {
  background: #006039;
  transform: translateY(-1px);
}

/* Results */
.res-score-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 16px;
}
.res-ring { position: relative; width: 80px; height: 80px; flex-shrink: 0; }
.res-ring-num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: #050B07;
}
.res-title {
  font-size: 17px;
  font-weight: 700;
  color: #050B07 !important;
  line-height: 1.35;
  margin-top: 4px;
}
.res-desc {
  font-size: 14px;
  color: #4A4226;
  line-height: 1.65;
  margin-bottom: 20px;
}
.res-findings {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  padding-top: 16px;
  border-top: 1px solid #ECE3CF;
}
.res-finding {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: #2A3324;
  line-height: 1.55;
  background: #F7F3EA;
  padding: 10px 12px;
  border-radius: 8px;
}
.res-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.res-cta {
  width: 100%;
  justify-content: center;
  margin-bottom: 12px;
}
.res-restart {
  text-align: center;
  font-size: 12px;
  color: #A87F28;
  cursor: pointer;
  transition: color 140ms;
}
.res-restart:hover { color: #4A4226; }

/* Tags */
.quiz-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 8px;
}
.quiz-tag-green { background: #B3D8C2; color: #003B23; }
.quiz-tag-amber { background: #F2E1A5; color: #4A4226; }

/* Mobile */
@media (max-width: 768px) {
  .quiz-wrap { grid-template-columns: 1fr; gap: 36px; }
  .quiz-card { padding: 24px 20px; }
  .qz-q { font-size: 16px; }
}
