/* ==================================================================
   PrimeStack · marketing site - "fable" take
   Editorial serif + mono chart-labels, light mint bookends, warm paper.
   No framework, no build step.
   ================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --paper:    #faf9f6;   /* warm off-white body */
  --card:     #ffffff;
  --tint:     #f1efe9;   /* tinted sections */
  --wash:     #eef6f1;   /* very light mint - replaces the old dark bookends */
  --wash-2:   #e4f1ea;   /* deeper mint for gradient stops */
  --wash-line:#d7ebe0;   /* soft hairline on the mint washes */

  /* Ink */
  --ink:      #14231d;
  --muted:    #5b6a62;
  --mist:     #8fbfaa;   /* muted text on dark */
  --mint:     #b7f0dc;   /* bright accents on dark */

  /* Accent */
  --emerald:      #10b981;
  --emerald-deep: #0c8a66;
  --amber:        #b45309;
  --amber-bg:     #fdf1e3;
  --ok-bg:        #e8f7f0;

  --hairline:      #e7e4dc;
  --hairline-dark: rgba(255, 255, 255, .12);

  /* Type */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  --container: 1120px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 9px;

  /* Shadows */
  --sh-card: 0 1px 2px rgba(20, 35, 29, .04), 0 8px 24px -10px rgba(20, 35, 29, .08);
  --sh-deep: 0 30px 80px -24px rgba(2, 20, 14, .55), 0 6px 18px -6px rgba(2, 20, 14, .28);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; }
p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--mint); color: var(--ink); }

:focus-visible { outline: 3px solid var(--emerald); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--emerald-deep); color: #fff; padding: 10px 16px;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

/* Anchor jumps land below the sticky nav */
[id] { scroll-margin-top: 82px; }

/* ---------- Shared type pieces ---------- */
.kicker, .seclabel {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.kicker { color: var(--emerald-deep); margin: 0 0 18px; }
.seclabel { color: var(--emerald-deep); margin: 0 0 16px; }
.seclabel--dark { color: var(--emerald-deep); }

.sechead { max-width: 700px; margin: 0 0 56px; }
.sechead h2 { font-size: clamp(30px, 4.4vw, 46px); }
.lead { margin-top: 16px; font-size: clamp(16px, 1.9vw, 18.5px); line-height: 1.55; color: var(--muted); max-width: 620px; }

.section { padding: 104px 0; }
.section--tint { background: var(--tint); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px;
  border: 0;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15.5px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.btn--primary {
  background: linear-gradient(180deg, #17c98d 0%, var(--emerald) 40%, var(--emerald-deep) 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 26px -8px rgba(16, 185, 129, .55);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 16px 32px -10px rgba(16, 185, 129, .6); }
.btn--primary:active { transform: translateY(0); box-shadow: inset 0 2px 4px rgba(2, 20, 14, .25); }
.btn--ghostdark {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
}
.btn--ghostdark:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--mint); color: var(--mint); }
.btn--ghost {
  background: var(--card);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px #d5e8de, var(--sh-card);
}
.btn--ghost:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px #b3d9c6, var(--sh-card); }
.btn--sm { padding: 10px 18px; font-size: 14px; border-radius: 10px; }
.btn--block { width: 100%; }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: linear-gradient(160deg, #17c98d, var(--emerald-deep));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
/* Wordmark set in Inter (the always-loaded UI sans), not the webfont serif -
   on machines where Source Serif 4 hasn't loaded the serif fell back to
   Georgia/Times and looked "not rendered" (Rohan's report). */
.brand__name { font-family: var(--sans); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; color: var(--ink); }
.brand__by { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); margin-top: 3px; }

/* ---------- Nav (dark, sticky) ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(238, 246, 241, .82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.is-scrolled { border-bottom-color: var(--hairline); background: rgba(238, 246, 241, .95); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links > a:not(.nav__cta) {
  font-size: 14.5px; font-weight: 500; color: var(--muted);
  transition: color .15s ease;
}
.nav__links > a:not(.nav__cta):hover { color: var(--emerald-deep); }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--hairline); border-radius: 10px; cursor: pointer;
}
.nav__toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(52% 46% at 78% 22%, rgba(16, 185, 129, .14) 0%, transparent 70%),
    radial-gradient(38% 40% at 12% 88%, rgba(16, 185, 129, .10) 0%, transparent 70%),
    linear-gradient(175deg, #f3faf6 0%, var(--wash-2) 120%);
  padding: 92px 0 116px;
}
.hero::before {
  /* faint chart-paper dot grid */
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(12, 138, 102, .10) 1px, transparent 1.4px);
  background-size: 26px 26px;
  mask-image: radial-gradient(75% 70% at 60% 30%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(75% 70% at 60% 30%, #000 30%, transparent 100%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 980px) { .hero__grid { grid-template-columns: 1.02fr .98fr; } }

.hero__title {
  font-size: clamp(42px, 6.6vw, 78px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.02;
}
.hero__title em { font-style: italic; font-weight: 500; color: var(--emerald-deep); }
.hero__sub {
  margin-top: 22px;
  max-width: 520px;
  font-size: clamp(16px, 2vw, 18.5px);
  line-height: 1.6;
  color: var(--muted);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.trust {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 34px;
}
.trust li {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--emerald-deep);
  border: 1px solid var(--wash-line);
  background: rgba(255, 255, 255, .7);
  padding: 7px 13px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- Consult / voice-fill demo card ---------- */
.hero__demo { position: relative; }
.hero__glow {
  position: absolute; inset: -8% -12%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(16, 185, 129, .22), transparent 70%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}
.consult {
  position: relative; z-index: 1;
  background: var(--card);
  color: var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-deep), inset 0 0 0 1px rgba(183, 240, 220, .35);
  padding: 22px 24px 18px;
  max-width: 560px;
  margin-inline: auto;
}
.consult__top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}
.consult__title { display: block; font-family: var(--serif); font-weight: 600; font-size: 20px; }
.consult__meta { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; color: var(--muted); margin-top: 5px; }

.mic {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: #b42318;
  background: #fdf0ef;
  border: 1px solid #f6d5d2;
  padding: 6px 12px;
  border-radius: 999px;
  transition: color .3s ease, background .3s ease, border-color .3s ease;
}
.mic i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #e0443a; flex: none; }
.mic i::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid rgba(224, 68, 58, .45);
  animation: ping 1.5s ease-out infinite;
}
@keyframes ping { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }
.mic.done { color: var(--emerald-deep); background: var(--ok-bg); border-color: #cdeadd; }
.mic.done i { background: var(--emerald); }
.mic.done i::after { animation: none; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .mic i::after { animation: none; } }

.consult__transcript {
  min-height: 52px;
  padding: 13px 2px 11px;
  font-size: 14.5px;
  line-height: 1.5;
  font-style: italic;
  color: var(--muted);
}
.caret {
  display: inline-block; width: 2px; height: 1em;
  background: var(--emerald);
  margin-left: 2px;
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.consult__fields { display: flex; flex-direction: column; }
.cf {
  display: flex; align-items: baseline; gap: 12px;
  padding: 10px 2px;
  border-top: 1px solid #f1efe9;
  opacity: .32;
  transition: opacity .45s ease;
}
.cf__label {
  flex: none; width: 118px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.cf__val { flex: 1; font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.cf__val small { font-weight: 500; color: var(--muted); font-size: 11.5px; }
.cf.filled { opacity: 1; }
.cf.filled .cf__val { animation: landed .9s ease; }
@keyframes landed {
  0% { background: rgba(183, 240, 220, .8); box-shadow: 0 0 0 4px rgba(183, 240, 220, .8); border-radius: 4px; }
  100% { background: transparent; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cf { opacity: 1; transition: none; }
  .cf.filled .cf__val { animation: none; }
  .caret { display: none; }
}

.pill {
  flex: none;
  font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .05em;
  padding: 2px 9px; border-radius: 999px; white-space: nowrap;
}
.pill--hi { background: var(--amber-bg); color: var(--amber); }
.pill--ok { background: var(--ok-bg); color: var(--emerald-deep); }

.chip {
  display: inline-block;
  font-family: var(--mono); font-size: 11.5px;
  background: var(--ok-bg); color: var(--emerald-deep);
  border: 1px solid #cdeadd;
  padding: 2px 10px; border-radius: 7px;
  margin-right: 4px;
}

.consult__foot {
  margin-top: 6px; padding-top: 12px;
  border-top: 1px solid var(--hairline);
  font-size: 12.5px; color: var(--muted);
}

/* ---------- Stat strip ---------- */
.strip { background: var(--paper); border-bottom: 1px solid var(--hairline); }
.strip__inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; padding: 34px 0;
  text-align: center;
}
.stat b { display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -0.02em; }
.stat span { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- 01 · Intelligence ---------- */
.aigrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.ai {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 30px 30px 28px;
  box-shadow: var(--sh-card);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ai:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(20, 35, 29, .04), 0 20px 44px -16px rgba(20, 35, 29, .14); }
.ai__glyph {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(155deg, #eafaf2, #d5f0e3);
  box-shadow: inset 0 0 0 1px rgba(12, 138, 102, .12);
  color: var(--emerald-deep);
  margin-bottom: 18px;
}
.ai__glyph svg { width: 23px; height: 23px; }
.ai h3 { font-size: 23px; margin-bottom: 10px; }
.ai p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.ai__mono {
  margin-top: 16px;
  font-family: var(--mono); font-size: 12.5px;
  color: var(--ink);
  background: var(--tint);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  padding: 9px 13px;
  display: inline-block;
}
.ai__mono span { color: var(--emerald-deep); }

/* Reflex mini-demo */
.reflex { margin-top: 18px; border: 1px solid var(--hairline); border-radius: var(--r-md); overflow: hidden; }
.reflex__row {
  display: flex; align-items: baseline; gap: 12px;
  padding: 12px 15px;
  background: #fffdf8;
}
.reflex__test { flex: 1; font-size: 13.5px; font-weight: 600; }
.reflex__val { font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--amber); }
.reflex__val small { font-size: 11px; }
.reflex__sugg {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  padding: 11px 15px;
  border-top: 1px dashed var(--hairline);
  background: var(--ok-bg);
  font-size: 13px;
  color: var(--ink);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .5s ease, transform .5s ease;
}
.reflex__sugg b { font-weight: 600; }
.reflex__spark { color: var(--emerald-deep); }
.reflex__note {
  margin-left: auto;
  font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--emerald-deep);
}
#reflex-demo.fire .reflex__sugg { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reflex__sugg { opacity: 1; transform: none; } }

/* ---------- 02 · Proof tabs ---------- */
.tabs {
  display: flex; gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 0 20px;
  padding-bottom: 4px;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 9px 17px;
  cursor: pointer;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.tab:hover { color: var(--ink); border-color: #cfd8cf; }
.tab.is-active {
  color: #fff;
  background: var(--emerald-deep);
  border-color: var(--emerald-deep);
}
.shotwrap {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--sh-card), inset 0 0 0 1px var(--hairline);
}
.shot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  opacity: 0;
  transition: opacity .35s ease;
}
.shot--left { object-position: left top; }
.shot.is-active { opacity: 1; }
.shotnote {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- 03 · Modules ---------- */
.mods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.mod {
  display: flex; gap: 22px; align-items: baseline;
  padding: 26px 4px;
  border-top: 1px solid var(--hairline);
}
.mod__no {
  flex: none;
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  color: var(--emerald-deep);
  width: 34px;
}
.mod h3 { font-size: 22px; margin-bottom: 6px; }
.mod p { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.mod--cta {
  border-radius: var(--r-md);
  border: 1px solid var(--wash-line);
  margin-top: 26px;
  padding: 26px 22px;
  background:
    radial-gradient(90% 130% at 12% 0%, rgba(16, 185, 129, .16), transparent 55%),
    linear-gradient(140deg, var(--wash) 0%, var(--wash-2) 90%);
  color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease;
}
.mod--cta:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -16px rgba(20, 35, 29, .16); }
.mod--cta .mod__no { color: var(--emerald-deep); }
.mod--cta p { color: var(--muted); }

/* ---------- 04 · Configure chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; max-width: 840px; }
.chips li {
  font-size: 14.5px; font-weight: 500;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 11px 20px;
  box-shadow: var(--sh-card);
}

/* ---------- 05 · India split ---------- */
.split { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: start; }
.featlist li {
  padding: 17px 2px;
  border-bottom: 1px solid var(--hairline);
  font-size: 15.5px; line-height: 1.55;
  color: var(--muted);
}
.featlist li:first-child { border-top: 1px solid var(--hairline); }
.featlist b { color: var(--ink); font-weight: 600; }

/* ---------- 06 · Packaging paths ---------- */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.path {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 34px;
  box-shadow: var(--sh-card);
  display: flex; flex-direction: column; align-items: flex-start;
}
.path h3 { font-size: 26px; }
.path > p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
.path ul { margin: 22px 0 28px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.path li {
  position: relative; padding-left: 26px;
  font-size: 15px; font-weight: 500;
}
.path li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--emerald-deep); font-weight: 700;
}

/* ---------- 07 · CTA + form ---------- */
.cta {
  position: relative;
  overflow: hidden;
  color: var(--ink);
  padding: 104px 0;
  background:
    radial-gradient(48% 60% at 85% 10%, rgba(16, 185, 129, .14), transparent 70%),
    linear-gradient(180deg, #f3faf6 0%, var(--wash-2) 100%);
}
.cta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.cta h2 { font-size: clamp(32px, 4.6vw, 50px); color: var(--ink); }
.cta__sub { margin-top: 18px; font-size: 17.5px; line-height: 1.6; color: var(--muted); max-width: 440px; }
.cta__points { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.cta__points li { position: relative; padding-left: 26px; color: var(--ink); font-size: 15px; }
.cta__points li::before { content: "✓"; position: absolute; left: 0; color: var(--emerald); font-weight: 700; }

.demoform {
  background: var(--card);
  color: var(--ink);
  border-radius: var(--r-lg);
  padding: 30px;
  box-shadow: var(--sh-card), inset 0 0 0 1px var(--hairline);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; grid-column: 1 / -1; }
.field--half { grid-column: span 1; }
.field label { font-size: 13.5px; font-weight: 600; }
.field__opt { color: var(--muted); font-weight: 500; }
.field input, .field textarea {
  font-family: inherit; font-size: 15px; color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--paper);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: #a3ac9f; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--emerald);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .18);
}
.field textarea { resize: vertical; min-height: 76px; }
.demoform .btn { grid-column: 1 / -1; }
.demoform__note { grid-column: 1 / -1; font-size: 13.5px; min-height: 4px; }
.demoform__note.is-success { color: var(--emerald-deep); font-weight: 600; }

/* ---------- Footer ---------- */
.footer {
  background: var(--wash);
  color: var(--muted);
  padding: 64px 0 32px;
  border-top: 1px solid var(--wash-line);
}
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(2, 1fr); gap: 40px; }
.footer__blurb { margin-top: 16px; font-size: 14px; line-height: 1.6; max-width: 320px; }
.footer__col h4 {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--emerald-deep);
  margin: 0 0 16px;
}
.footer__col a { display: block; font-size: 14.5px; color: var(--muted); padding: 5px 0; transition: color .15s ease; cursor: pointer; }
.footer__col a:hover { color: var(--ink); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--wash-line);
  font-size: 12.5px; color: var(--muted);
}

/* ---------- Legal pages (privacy / terms) ---------- */
.page-hero {
  background:
    radial-gradient(52% 60% at 88% 10%, rgba(16, 185, 129, .12) 0%, transparent 70%),
    linear-gradient(175deg, #f3faf6 0%, var(--wash-2) 120%);
  border-bottom: 1px solid var(--wash-line);
  padding: 66px 0 46px;
}
.page-hero h1 { font-size: clamp(32px, 5vw, 50px); letter-spacing: -0.02em; }
.page-hero .updated { margin-top: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.legal { padding: 52px 0 88px; }
.legal__inner { max-width: 760px; }
.legal__intro { font-size: 16.5px; line-height: 1.7; color: var(--muted); margin: 0 0 10px; }
.legal__toc { margin: 24px 0 8px; padding: 18px 22px; background: var(--tint); border: 1px solid var(--hairline); border-radius: var(--r-md); }
.legal__toc h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.legal__toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 34px; font-size: 14px; line-height: 1.9; }
.legal__toc a { color: var(--ink); font-weight: 500; }
.legal__toc a:hover { color: var(--emerald-deep); }
.legal h2 { font-size: 21px; margin: 42px 0 12px; scroll-margin-top: 90px; }
.legal h2 .n { font-family: var(--mono); font-size: 14px; color: var(--emerald-deep); margin-right: 10px; font-weight: 500; }
.legal h3 { font-size: 15.5px; margin: 20px 0 8px; font-family: var(--sans); font-weight: 700; }
.legal p { font-size: 15.5px; line-height: 1.72; color: var(--ink); margin: 0 0 12px; }
.legal ul.bul { margin: 0 0 12px; padding-left: 0; display: flex; flex-direction: column; gap: 8px; }
.legal ul.bul li { position: relative; padding-left: 22px; font-size: 15.5px; line-height: 1.65; color: var(--ink); }
.legal ul.bul li::before { content: "-"; position: absolute; left: 0; color: var(--emerald-deep); }
.legal a { color: var(--emerald-deep); font-weight: 600; }
.legal .callout {
  margin: 8px 0 4px; padding: 14px 18px;
  background: var(--ok-bg); border: 1px solid #cdeadd; border-radius: var(--r-md);
  font-size: 14.5px; line-height: 1.6; color: var(--ink);
}
@media (max-width: 620px) { .legal__toc ol { columns: 1; } }

/* ---------- Contact modal ---------- */
.modal {
  width: min(92vw, 440px);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 30px 30px 26px;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--sh-deep);
}
.modal::backdrop { background: rgba(18, 26, 22, .42); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.modal[open] { animation: modalin .22s ease; }
@keyframes modalin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .modal[open] { animation: none; } }
.modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--tint); border: 1px solid var(--hairline);
  color: var(--muted); font-size: 14px; cursor: pointer; line-height: 1;
  transition: background .15s ease, color .15s ease;
}
.modal__close:hover { background: #e9e5dc; color: var(--ink); }
.modal .seclabel { margin-bottom: 10px; }
.modal__title { font-size: 27px; margin-bottom: 8px; }
.modal__sub { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin-bottom: 20px; }
.modal__sub a { color: var(--emerald-deep); font-weight: 600; }
.contactform { display: flex; flex-direction: column; gap: 14px; }
.contactform .btn { margin-top: 4px; }
.contactform__note { font-size: 13.5px; min-height: 4px; color: var(--muted); }
.contactform__note.is-success { color: var(--emerald-deep); font-weight: 600; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s cubic-bezier(.16, .8, .3, 1), transform .6s cubic-bezier(.16, .8, .3, 1);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ==================================================================
   RESPONSIVE
   ================================================================== */
@media (max-width: 1020px) {
  .aigrid { grid-template-columns: 1fr; }
  .mods { grid-template-columns: 1fr; gap: 0; }
  .mod--cta { margin-top: 26px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .cta__grid { grid-template-columns: 1fr; gap: 44px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  .section { padding: 76px 0; }
  .hero { padding: 60px 0 84px; }

  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 66px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper);
    padding: 14px 24px 26px;
    border-bottom: 1px solid var(--wash-line);
    box-shadow: 0 18px 40px -24px rgba(20, 35, 29, .25);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links > a:not(.nav__cta) { padding: 13px 4px; font-size: 16px; border-bottom: 1px solid var(--hairline); }
  .nav__cta { margin-top: 14px; width: 100%; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .sechead { margin-bottom: 38px; }

  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; }

  .consult { padding: 18px 18px 14px; }
  .cf__label { width: 96px; }

  .strip__inner { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; }

  .ai { padding: 24px 22px; }
  .paths { grid-template-columns: 1fr; }
  .path { padding: 26px 22px; }

  .demoform { grid-template-columns: 1fr; padding: 22px; }
  .field--half { grid-column: 1 / -1; }

  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
