/* ============================================================
   AUTO LOGIC LABS — Design System (Light-first)
   Warm off-white base · dark charcoal accents · green brand
   ============================================================ */

@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&f[]=general-sans@400,500,600&display=swap');

:root {
  /* Light surfaces */
  --bg:            #F4F7F1;   /* warm off-white page */
  --surface:       #FFFFFF;   /* cards */
  --surface-2:     #EFF3EA;   /* subtle band */
  --line:          rgba(20,34,26,0.10);
  --line-strong:   rgba(20,34,26,0.16);
  --shadow:        0 16px 44px -22px rgba(22,48,28,0.22);
  --shadow-sm:     0 8px 24px -16px rgba(22,48,28,0.18);

  /* Ink (text on light) */
  --ink:           #15211A;
  --ink-soft:      #51605A;
  --ink-faint:     #87938B;

  /* Dark surfaces (key areas) */
  --d-bg:          #0F1411;
  --d-bg-2:        #0B0F0C;
  --d-surface:     #161D18;
  --d-surface-2:   #1C2620;
  --d-line:        rgba(255,255,255,0.09);
  --d-line-strong: rgba(255,255,255,0.15);
  --d-text:        #F4F7F2;
  --d-muted:       #A2AEA6;
  --d-muted-2:     #7C887F;

  /* Brand greens */
  --green:         #4FAE3C;
  --green-light:   #84C341;
  --green-deep:    #2E9E48;
  --green-glow:    #9FE05A;
  --grad:          linear-gradient(135deg, #84C341 0%, #2E9E48 100%);
  --grad-soft:     linear-gradient(135deg, rgba(132,195,65,0.16), rgba(46,158,72,0.10));
  --grad-soft-d:   linear-gradient(135deg, rgba(132,195,65,0.16), rgba(46,158,72,0.16));

  --radius:        18px;
  --radius-sm:     12px;
  --radius-lg:     28px;
  --maxw:          1200px;

  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'General Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Clash Display', system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 28px; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'General Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-deep);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--green);
}
.eyebrow.center { justify-content: center; }
.dark .eyebrow { color: var(--green-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'General Sans', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  padding: 16px 26px;
  border-radius: 100px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--grad);
  color: #0B1308;
  box-shadow: 0 12px 30px -12px rgba(78,174,60,0.55);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 18px 44px -12px rgba(78,174,60,0.7);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--green-deep); color: var(--green-deep); transform: translateY(-2px); }

/* Ghost on dark backgrounds */
.dark .btn-ghost, .header .btn-ghost {
  color: var(--d-text); border-color: var(--d-line-strong);
}
.dark .btn-ghost:hover, .header .btn-ghost:hover {
  border-color: var(--green); color: var(--green-light);
}

.btn-lg { padding: 19px 32px; font-size: 17px; }

/* ============================================================
   HEADER (sits over dark hero — light text)
   ============================================================ */
.header {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px 0;
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  font-size: 15px; font-weight: 500; color: var(--d-muted);
  transition: color .25s;
}
.nav a:hover { color: var(--d-text); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.menu-btn { display: none; background: none; border: 0; color: var(--d-text); cursor: pointer; }

/* ============================================================
   HERO (dark — key area)
   ============================================================ */
.hero {
  position: relative;
  padding: 190px 0 110px;
  overflow: hidden;
  background: var(--d-bg);
  color: var(--d-text);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 520px at 78% 8%, rgba(132,195,65,0.18), transparent 60%),
    radial-gradient(700px 500px at 12% 90%, rgba(46,158,72,0.14), transparent 60%);
}
.grid-lines {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--d-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--d-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
  opacity: 0.6;
}
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero .wrap > * { min-width: 0; }
.diag-card, .brand img, .footer img { max-width: 100%; }

.hero h1, .hero h2 { color: var(--d-text); }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px;
  border: 1px solid var(--d-line-strong);
  border-radius: 100px;
  font-size: 13.5px; color: var(--d-muted);
  margin-bottom: 28px;
  background: rgba(255,255,255,0.02);
}
.hero-tag b { color: var(--d-text); font-weight: 600; }
.hero-tag .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green-glow);
  box-shadow: 0 0 0 4px rgba(132,195,65,0.18);
}
.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.3rem);
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero h1 .em {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-bottom: 0.08em;
}
.hero p.lead {
  font-size: 1.18rem; color: var(--d-muted); max-width: 540px; margin-bottom: 36px;
}
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-sub {
  margin-top: 26px; display: flex; align-items: center; gap: 14px;
  font-size: 14px; color: var(--d-muted-2);
}
.hero-sub .tick { color: var(--green-light); display: inline-flex; }
.hero-sub .tick svg { width: 16px; height: 16px; }

/* Hero diagnostic card (dark) */
.diag-card {
  position: relative;
  background: linear-gradient(180deg, var(--d-surface-2), var(--d-surface));
  border: 1px solid var(--d-line-strong);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6);
  color: var(--d-text);
}
.diag-card::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg);
  padding: 1px; background: linear-gradient(160deg, rgba(132,195,65,0.5), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.diag-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.diag-head .label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--d-muted-2); }
.diag-pill {
  font-size: 12px; font-weight: 600; color: var(--green-light);
  padding: 5px 12px; border-radius: 100px; background: var(--grad-soft-d);
  border: 1px solid rgba(132,195,65,0.3);
}
.diag-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-top: 1px solid var(--d-line);
}
.diag-row:first-of-type { border-top: 0; }
.diag-ico {
  flex: none; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; color: var(--green-light);
  background: rgba(132,195,65,0.1); border: 1px solid rgba(132,195,65,0.2);
}
.diag-ico svg { width: 19px; height: 19px; }
.diag-row .t { font-size: 14.5px; font-weight: 600; }
.diag-row .s { font-size: 12.5px; color: var(--d-muted-2); }
.diag-row .score { margin-left: auto; font-family: 'Clash Display'; font-weight: 600; font-size: 17px; }
.diag-row .score.hi { color: var(--green-light); }
.diag-row .score.mid { color: #E2C04B; }
.diag-foot {
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--d-line);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--d-muted);
}
.diag-foot b { color: var(--green-light); font-family: 'Clash Display'; font-size: 16px; }

/* ============================================================
   SECTIONS — generic (light)
   ============================================================ */
section { position: relative; }
.sec { padding: 110px 0; }
.sec.alt { background: var(--surface); }
.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 {
  font-size: clamp(2rem, 4vw, 3.05rem);
  margin: 18px 0 18px;
}
.sec-head p { font-size: 1.12rem; color: var(--ink-soft); }

/* Dark section modifier */
.dark { background: var(--d-bg); color: var(--d-text); }
.dark h2, .dark h3, .dark h4 { color: var(--d-text); }
.dark .sec-head p { color: var(--d-muted); }

/* Trust strip / marquee */
.trust {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 30px 0; overflow: hidden; background: var(--surface);
}
.trust .lab {
  text-align: center; font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 22px;
}
.marquee { display: flex; gap: 64px; width: max-content; animation: scroll 32s linear infinite; }
.marquee span {
  font-family: 'Clash Display'; font-weight: 500; font-size: 1.3rem;
  color: var(--ink-faint); white-space: nowrap; opacity: 0.85;
  display: inline-flex; align-items: center; gap: 12px;
}
.marquee span::before { content: "›"; color: var(--green); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============================================================
   PROBLEM (doctor analogy) — light section, dark feature card
   ============================================================ */
.problem .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.analogy {
  background: linear-gradient(180deg, var(--d-surface-2), var(--d-bg));
  border: 1px solid var(--d-line-strong);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  color: var(--d-text);
  box-shadow: var(--shadow);
}
.analogy .quote-mark {
  font-family: 'Clash Display'; font-size: 4rem; line-height: 0.6;
  color: var(--green-light); opacity: 0.5;
}
.analogy p { font-size: 1.32rem; line-height: 1.45; margin: 14px 0 26px; font-family: 'Clash Display'; font-weight: 400; letter-spacing: -0.01em; color: var(--d-text); }
.analogy .vs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px;
}
.vs-card { padding: 18px; border-radius: var(--radius-sm); border: 1px solid var(--d-line); }
.vs-card.bad { background: rgba(214,84,84,0.08); border-color: rgba(214,84,84,0.25); }
.vs-card.good { background: var(--grad-soft-d); border-color: rgba(132,195,65,0.3); }
.vs-card .vt { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.vs-card.bad .vt { color: #E08A8A; }
.vs-card.good .vt { color: var(--green-light); }
.vs-card .vd { font-size: 14.5px; color: var(--d-muted); }

.problem-list { display: flex; flex-direction: column; gap: 4px; }
.prob-item {
  display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line);
}
.prob-item .pico {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; color: var(--green-deep);
  background: rgba(132,195,65,0.12); border: 1px solid rgba(132,195,65,0.25);
}
.prob-item .pico svg { width: 22px; height: 22px; }
.prob-item h4 { font-size: 1.12rem; font-family: 'General Sans'; font-weight: 600; margin-bottom: 5px; letter-spacing: 0; }
.prob-item p { font-size: 15px; color: var(--ink-soft); }

/* ============================================================
   PROCESS / BLUEPRINT — step cards (light)
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), border-color .3s, box-shadow .3s;
}
.step:hover { transform: translateY(-5px); border-color: rgba(132,195,65,0.4); box-shadow: var(--shadow); }
.step .num {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; color: var(--green-deep);
  text-transform: uppercase; margin-bottom: 18px;
}
.step .sico {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 18px;
  display: grid; place-items: center; color: #0B1308; background: var(--grad);
}
.step .sico svg { width: 24px; height: 24px; }
.step h3 { font-size: 1.28rem; margin-bottom: 10px; font-family: 'Clash Display'; font-weight: 600; }
.step p { font-size: 14.5px; color: var(--ink-soft); }

.blueprint-out {
  margin-top: 26px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  background: var(--grad-soft);
  border: 1px solid rgba(132,195,65,0.3);
  border-radius: var(--radius);
  padding: 26px 32px;
}
.blueprint-out .bo-ico { color: var(--green-deep); flex: none; }
.blueprint-out .bo-ico svg { width: 30px; height: 30px; }
.blueprint-out h4 { font-family: 'General Sans'; font-weight: 600; font-size: 1.05rem; margin-bottom: 3px; }
.blueprint-out p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }
.blueprint-out .btn { margin-left: auto; }

/* ============================================================
   SERVICES — bento (light)
   ============================================================ */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 18px;
}
.bcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), border-color .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.bcard:hover { transform: translateY(-5px); border-color: rgba(132,195,65,0.4); box-shadow: var(--shadow); }
.bcard .bico {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 20px;
  display: grid; place-items: center; color: var(--green-deep);
  background: rgba(132,195,65,0.12); border: 1px solid rgba(132,195,65,0.22);
}
.bcard .bico svg { width: 23px; height: 23px; }
.bcard h3 { font-size: 1.22rem; margin-bottom: 9px; font-family: 'Clash Display'; font-weight: 600; }
.bcard p { font-size: 14.5px; color: var(--ink-soft); }
.bcard.feature {
  grid-column: span 1; grid-row: span 2;
  background: linear-gradient(170deg, rgba(132,195,65,0.16), var(--surface) 55%);
  border-color: rgba(132,195,65,0.32);
  justify-content: space-between;
}
.bcard.feature h3 { font-size: 1.6rem; }
.bcard.feature .big-ico { color: var(--green-deep); margin-top: 14px; opacity: 0.9; }
.bcard.feature .big-ico svg { width: 120px; height: 120px; }
.bcard.wide { grid-column: span 2; }
.bcard .tag-row { margin-top: auto; padding-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.bcard .tg { font-size: 12px; color: var(--ink-soft); padding: 4px 11px; border: 1px solid var(--line); border-radius: 100px; }

/* ============================================================
   STATS (dark — key area)
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: left; padding: 8px 0; }
.stat .n {
  font-family: 'Clash Display'; font-weight: 600; font-size: clamp(2.6rem, 5vw, 3.6rem);
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; line-height: 1.1; padding-bottom: 0.06em;
}
.stat .l { font-size: 14.5px; color: var(--ink-soft); margin-top: 6px; }
.dark .stat .l { color: var(--d-muted); }

/* ============================================================
   PRICING / TIERS (light, no prices)
   ============================================================ */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.tier {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), border-color .3s, box-shadow .3s;
}
.tier:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.tier.pop {
  background: linear-gradient(180deg, rgba(132,195,65,0.14), var(--surface) 60%);
  border-color: rgba(132,195,65,0.45);
  box-shadow: 0 30px 70px -34px rgba(78,174,60,0.45);
}
.tier .ttop { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.tier .tname { font-family: 'Clash Display'; font-weight: 600; font-size: 1.3rem; }
.tier .badge {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: #0B1308; background: var(--grad); padding: 5px 11px; border-radius: 100px; white-space: nowrap;
}
.tier .tdesc { font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; min-height: 42px; }
.tier .scope {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--green-deep);
  padding: 7px 14px; border-radius: 100px; background: rgba(132,195,65,0.1);
  border: 1px solid rgba(132,195,65,0.22); margin-bottom: 24px;
}
.tier .scope svg { width: 15px; height: 15px; }
.tier ul { list-style: none; display: flex; flex-direction: column; gap: 13px; margin-bottom: 28px; }
.tier li { display: flex; gap: 11px; font-size: 14.5px; color: var(--ink-soft); align-items: flex-start; }
.tier li svg { width: 17px; height: 17px; color: var(--green-deep); flex: none; margin-top: 2px; }
.tier .btn { margin-top: auto; width: 100%; justify-content: center; }
.price-note {
  text-align: center; margin-top: 28px; font-size: 14px; color: var(--ink-faint);
}
.price-note b { color: var(--green-deep); }

/* ============================================================
   LADDER (light, no prices)
   ============================================================ */
.ladder { display: flex; flex-direction: column; gap: 0; }
.rung {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 24px; align-items: center;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.rung:last-child { border-bottom: 1px solid var(--line); }
.rung .rn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font-family: 'Clash Display'; font-weight: 600; color: var(--green-deep);
  border: 1px solid rgba(132,195,65,0.35); background: rgba(132,195,65,0.1);
}
.rung h4 { font-family: 'General Sans'; font-weight: 600; font-size: 1.15rem; margin-bottom: 4px; }
.rung p { font-size: 14.5px; color: var(--ink-soft); }
.rung .rstage {
  font-family: 'General Sans'; font-weight: 600; font-size: 13px; color: var(--green-deep);
  white-space: nowrap; padding: 6px 13px; border-radius: 100px;
  background: rgba(132,195,65,0.1); border: 1px solid rgba(132,195,65,0.22);
}

/* ============================================================
   TEAM (light)
   ============================================================ */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.member {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), border-color .3s, box-shadow .3s;
}
.member:hover { transform: translateY(-5px); border-color: rgba(132,195,65,0.4); box-shadow: var(--shadow); }
.member .av {
  width: 64px; height: 64px; border-radius: 16px; margin-bottom: 18px;
  background: var(--grad-soft); border: 1px solid rgba(132,195,65,0.3);
  display: grid; place-items: center; color: var(--green-deep);
}
.member .av svg { width: 30px; height: 30px; }
.member h4 { font-family: 'General Sans'; font-weight: 600; font-size: 1.1rem; }
.member .role { font-size: 13px; color: var(--green-deep); margin-bottom: 12px; }
.member p { font-size: 14px; color: var(--ink-soft); }

/* ============================================================
   FAQ (light)
   ============================================================ */
.faq { max-width: 820px; margin: 0 auto; }
.qa { border-bottom: 1px solid var(--line); }
.qa button {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 26px 0; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; color: var(--ink);
  font-family: 'Clash Display'; font-weight: 500; font-size: 1.18rem; letter-spacing: -0.01em;
}
.qa .ic { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: transform .35s, background .3s, color .3s; color: var(--ink); }
.qa .ic svg { width: 15px; height: 15px; }
.qa.open .ic { background: var(--grad); color: #0B1308; transform: rotate(45deg); border-color: transparent; }
.qa .ans { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.qa .ans p { padding: 0 0 26px; color: var(--ink-soft); font-size: 15.5px; max-width: 680px; }

/* ============================================================
   FINAL CTA (dark — key area)
   ============================================================ */
.final-wrap { padding: 0 0 30px; }
.final {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  margin: 0 auto; max-width: var(--maxw);
  padding: 80px 56px;
  background: linear-gradient(160deg, #163019 0%, var(--d-bg) 60%);
  border: 1px solid rgba(132,195,65,0.3);
  text-align: center;
  color: var(--d-text);
}
.final-glow { position: absolute; inset: 0; z-index: 0; background: radial-gradient(600px 320px at 50% 0%, rgba(132,195,65,0.28), transparent 70%); }
.final > * { position: relative; z-index: 1; }
.final h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); margin: 18px auto 20px; max-width: 760px; color: var(--d-text); }
.final p { font-size: 1.15rem; color: var(--d-muted); max-width: 560px; margin: 0 auto 36px; }
.final .hero-actions { justify-content: center; }
.final-meta { margin-top: 28px; display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; font-size: 14px; color: var(--d-muted-2); }
.final-meta span { display: inline-flex; align-items: center; gap: 8px; }
.final-meta svg { width: 16px; height: 16px; color: var(--green-light); }

/* ============================================================
   FOOTER (dark — anchor)
   ============================================================ */
.footer { padding: 70px 0 40px; background: var(--d-bg-2); color: var(--d-muted); }
.footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer .fbrand img { height: 44px; margin-bottom: 18px; }
.footer .fbrand p { font-size: 14.5px; color: var(--d-muted); max-width: 280px; }
.footer h5 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--d-muted-2); margin-bottom: 18px; font-family: 'General Sans'; font-weight: 600; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer ul a { font-size: 14.5px; color: var(--d-muted); transition: color .25s; }
.footer ul a:hover { color: var(--green-light); }
.footer .bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; border-top: 1px solid var(--d-line); font-size: 13.5px; color: var(--d-muted-2); }
.footer .bottom .social { display: flex; gap: 16px; }
.footer .bottom .social a:hover { color: var(--green-light); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .nav { display: none; }
  .header-cta .btn-ghost { display: none; }
  .menu-btn { display: grid; }
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding: 150px 0 80px; }
  .problem .wrap { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bcard.feature { grid-row: span 1; }
  .bcard.wide { grid-column: span 2; }
  .stats { grid-template-columns: 1fr 1fr; gap: 30px 24px; }
  .tiers { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .team-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .footer .top { grid-template-columns: 1fr 1fr; gap: 34px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .sec { padding: 80px 0; }
  .wrap, .wrap-narrow { padding: 0 20px; }
  .hero h1 { font-size: clamp(2.05rem, 8.5vw, 2.6rem); }
  .hero { padding: 138px 0 70px; }
  .sec-head h2 br, .final h2 br { display: none; }
  .bento { grid-template-columns: 1fr; }
  .bcard.wide { grid-column: span 1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .final { padding: 56px 26px; border-radius: var(--radius); }
  .analogy { padding: 28px; }
  .blueprint-out { flex-direction: column; align-items: flex-start; }
  .blueprint-out .btn { margin-left: 0; }
  .rung { grid-template-columns: 44px 1fr; }
  .rung .rstage { grid-column: 2; justify-self: start; }
  .footer .top { grid-template-columns: 1fr; }
  .footer .bottom { flex-direction: column; gap: 14px; text-align: center; }
}

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.subhero {
  position: relative; overflow: hidden;
  background: var(--d-bg); color: var(--d-text);
  padding: 180px 0 96px; text-align: center;
}
.subhero .eyebrow { color: var(--green-light); }
.subhero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem); color: var(--d-text);
  max-width: 900px; margin: 18px auto 22px; letter-spacing: -0.03em;
}
.subhero h1 .em {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; padding-bottom: 0.08em;
}
.subhero p { color: var(--d-muted); font-size: 1.16rem; max-width: 640px; margin: 0 auto 34px; }
.subhero .hero-actions { justify-content: center; }

/* Principle band */
.principle { background: var(--surface); }
.principle .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.principle .big-quote {
  font-family: 'Clash Display'; font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  line-height: 1.3; letter-spacing: -0.01em;
}
.principle .big-quote .hl { color: var(--green-deep); }
.principle .pnote { color: var(--ink-soft); font-size: 1.05rem; }
.principle .pnote .btn { margin-top: 22px; }

/* Pillars */
.pillar { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 54px; align-items: start; }
.pillar-aside { position: sticky; top: 40px; }
.pillar-ico {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  color: #0B1308; background: var(--grad); margin-bottom: 22px;
}
.pillar-ico svg { width: 30px; height: 30px; }
.pillar-aside h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); margin-bottom: 14px; }
.pillar-aside > p { color: var(--ink-soft); margin-bottom: 22px; font-size: 1.02rem; }
.first-build {
  display: inline-flex; align-items: center; gap: 9px; flex-wrap: wrap;
  font-size: 13px; font-weight: 600; color: var(--green-deep);
  padding: 9px 15px; border-radius: 100px;
  background: rgba(132,195,65,0.1); border: 1px solid rgba(132,195,65,0.22);
}
.first-build svg { width: 15px; height: 15px; }
.first-build span { color: var(--ink-soft); font-weight: 500; }

.svc-list { display: grid; gap: 12px; }
.svc-row {
  display: flex; gap: 15px; align-items: flex-start;
  padding: 18px 20px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.svc-row:hover { transform: translateX(5px); border-color: rgba(132,195,65,0.4); box-shadow: var(--shadow); }
.svc-row .ci {
  flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
  color: var(--green-deep); background: rgba(132,195,65,0.12); border: 1px solid rgba(132,195,65,0.22);
  margin-top: 1px;
}
.svc-row .ci svg { width: 15px; height: 15px; }
.svc-row h4 { font-family: 'General Sans'; font-weight: 600; font-size: 1.02rem; margin-bottom: 3px; letter-spacing: 0; }
.svc-row p { font-size: 13.5px; color: var(--ink-soft); }

.sec.alt .svc-row { background: var(--bg); }

@media (max-width: 940px) {
  .principle .wrap { grid-template-columns: 1fr; gap: 30px; }
  .pillar { grid-template-columns: 1fr; gap: 30px; }
  .pillar-aside { position: static; }
}

/* ============================================================
   CALCULATOR
   ============================================================ */
.calc.dark { background: var(--d-bg); }
.calc .stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  max-width: 920px; margin: 40px auto 0; text-align: center;
}
.calc .stat-strip .n {
  font-family: 'Clash Display'; font-weight: 700; font-size: 2.5rem;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; line-height: 1;
}
.calc .stat-strip .l { font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--d-muted-2); margin-top: 10px; line-height: 1.4; }

/* Toggle */
.calc-toggle {
  display: inline-flex; padding: 5px; gap: 4px; margin-bottom: 26px;
  background: var(--d-surface); border: 1px solid var(--d-line); border-radius: 100px;
}
.ct-btn {
  font-family: 'General Sans'; font-weight: 600; font-size: 14px; letter-spacing: 0.04em;
  padding: 11px 30px; border-radius: 100px; border: 0; cursor: pointer;
  background: transparent; color: var(--d-muted); transition: all .3s var(--ease);
}
.ct-btn.active { background: var(--grad); color: #0B1308; }

/* Grid */
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.calc-card {
  background: var(--d-surface); border: 1px solid var(--d-line);
  border-radius: var(--radius-lg); padding: 36px;
}
.calc-output { position: sticky; top: 30px; }
.calc-inputs h3 { color: var(--d-text); font-size: 1.7rem; margin: 12px 0 6px; }

.calc-group {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-light);
  font-weight: 600; margin: 32px 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--d-line);
}
.field { margin-bottom: 26px; }
.field-top { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.field-top label { font-family: 'Clash Display'; font-weight: 600; font-size: 1.08rem; color: var(--d-text); }
.field-top label .muted { color: var(--d-muted-2); font-weight: 400; font-size: 0.85em; }
.field-top .fval { font-family: 'Clash Display'; font-weight: 600; font-size: 1.35rem; color: var(--green-light); white-space: nowrap; }
.field-sub { font-size: 13px; color: var(--d-muted-2); margin: 4px 0 16px; }

/* Range slider */
.slider {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 100px;
  background: linear-gradient(90deg, var(--green) 0 var(--p, 30%), rgba(255,255,255,0.12) var(--p, 30%) 100%);
  outline: none; cursor: pointer;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--grad); border: 3px solid var(--d-bg); cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5); transition: transform .15s;
}
.slider::-webkit-slider-thumb:hover { transform: scale(1.12); }
.slider::-moz-range-thumb {
  width: 19px; height: 19px; border-radius: 50%; background: #84C341;
  border: 3px solid var(--d-bg); cursor: pointer;
}
.marks { display: flex; justify-content: space-between; margin-top: 11px; }
.marks span { font-size: 11px; color: var(--d-muted-2); }

/* Output panel */
.live-pill {
  display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600;
  color: var(--green-light); padding: 7px 15px; border-radius: 100px;
  background: var(--grad-soft-d); border: 1px solid rgba(132,195,65,0.3); margin-bottom: 24px;
}
.live-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-glow); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100%{ opacity:1 } 50%{ opacity:0.35 } }
.out-label { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--d-muted); }
.out-total {
  font-family: 'Clash Display'; font-weight: 700; font-size: clamp(3rem, 6vw, 4.4rem); line-height: 1.05;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; padding: 8px 0 4px;
}
.out-sub { font-size: 14px; color: var(--d-muted); margin-bottom: 20px; }
.out-bar { height: 8px; border-radius: 100px; background: rgba(255,255,255,0.08); overflow: hidden; margin-bottom: 30px; }
.out-bar span { display: block; height: 100%; border-radius: 100px; background: var(--grad); width: 43%; transition: width .4s var(--ease); }

.break-label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--d-muted-2); margin-bottom: 8px; }
.brow {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--d-line);
}
.brow .bt { font-family: 'General Sans'; font-weight: 600; font-size: 15px; color: var(--d-text); }
.brow .bs { font-size: 12.5px; color: var(--d-muted-2); margin-top: 3px; }
.brow .bv { font-family: 'Clash Display'; font-weight: 600; font-size: 1.25rem; color: var(--green-light); white-space: nowrap; }
.brow.big { padding: 18px 0; }
.brow.big .bt { font-size: 1.05rem; }
.brow .bv.green { color: var(--green-glow); }
.brow.big:first-of-type { border-top: 1px solid var(--d-line-strong); margin-top: 8px; }

.disclaimer {
  font-size: 12.5px; line-height: 1.6; color: var(--d-muted-2);
  background: rgba(255,255,255,0.03); border: 1px solid var(--d-line);
  border-radius: var(--radius-sm); padding: 16px 18px; margin: 24px 0;
}
.calc-cta {
  text-align: center; padding: 28px 26px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(132,195,65,0.16), var(--d-surface) 70%);
  border: 1px solid rgba(132,195,65,0.3);
}
.calc-cta h4 { font-family: 'Clash Display'; font-weight: 600; font-size: 1.3rem; color: var(--d-text); margin-bottom: 8px; }
.calc-cta p { font-size: 14px; color: var(--d-muted); margin-bottom: 20px; }
.calc-cta .btn { width: 100%; justify-content: center; }

/* Broker mode hides service inputs/output */
.calc.broker #grp-service, .calc.broker #field-aro, .calc.broker #brow-service { display: none; }

@media (max-width: 940px) {
  .calc .stat-strip { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .calc-grid { grid-template-columns: 1fr; }
  .calc-output { position: static; }
  .calc-card { padding: 28px; }
}
@media (max-width: 560px) {
  .calc .stat-strip .n { font-size: 2rem; }
  .calc-card { padding: 22px; }
}
