/* ════════════════════════════════════════════════════════
   HingaSmart — presentation site (v2)
   Palette matches the app: constants/tokens.ts + palette.ts
   Dark sections use the app's real dark theme so the
   dark-mode screenshots sit in the page, not on it.
   ════════════════════════════════════════════════════════ */
:root {
  /* brand */
  --g600: #2e7d32;   /* primary */
  --g700: #1e5f26;
  --g800: #175020;
  --g500: #3a9440;
  --g400: #4caf50;   /* app dark-mode brand */
  --g300: #8fd694;
  --g100: #eaf6eb;
  --g150: #c4e5c7;

  /* app dark theme */
  --d900: #080f0a;
  --d800: #0b1710;
  --d700: #0f1411;
  --d600: #161d17;
  --d500: #1e2a20;

  /* light */
  --bg: #f7f9f4;
  --bg2: #eef3ea;
  --card: #fff;
  --line: #e4ebdf;
  --ink: #16241a;
  --ink2: #47564b;
  --mut: #798575;

  --amber: #f0a02a;
  --radius: 16px;
  --sh-sm: 0 1px 2px rgba(16, 30, 20, .05), 0 8px 24px -12px rgba(16, 30, 20, .12);
  --sh: 0 2px 6px rgba(16, 30, 20, .05), 0 20px 48px -20px rgba(16, 30, 20, .2);
  --sh-dev: 0 40px 90px -32px rgba(6, 18, 10, .58), 0 8px 24px -10px rgba(6, 18, 10, .3);
  --fd: "Plus Jakarta Sans", system-ui, sans-serif;
  --fb: Inter, system-ui, sans-serif;
  --ease: cubic-bezier(.22, .8, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--fb); font-size: 16px; line-height: 1.62;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--g600); text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--fd); line-height: 1.14; letter-spacing: -.025em; font-weight: 800; }
h1 { font-size: clamp(2.15rem, 4.6vw, 3.55rem); }
h2 { font-size: clamp(1.72rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.16rem; font-weight: 700; letter-spacing: -.015em; }
h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.015em; }
b, strong { font-weight: 700; }

.wrap { width: min(1180px, 91vw); margin-inline: auto; }
.wrap--narrow { width: min(820px, 91vw); }
.hide { display: none !important; }
.mid { text-align: center; margin-top: 40px; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--g600); color: #fff; padding: 12px 20px; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--g500); outline-offset: 3px; border-radius: 4px; }

/* ── kicker / heads ─────────────────────────── */
.kicker {
  font-family: var(--fd); font-weight: 700; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--g600);
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.kicker--on-dark { color: var(--g300); }
.head { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.head .kicker { justify-content: center; }
.head .sub { color: var(--mut); font-size: 1.06rem; margin-top: 16px; }
.head--dark .sub { color: rgba(255, 255, 255, .72); }
.head--dark .sub b { color: #fff; }
.sub--left { color: var(--ink2); margin-top: 16px; font-size: 1.04rem; }

/* ── buttons ────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--fd); font-weight: 700; font-size: .96rem; letter-spacing: -.01em;
  padding: 13px 26px; border-radius: 999px; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn--lg { padding: 16px 32px; font-size: 1rem; }
.btn--sm { padding: 10px 19px; font-size: .89rem; }
.btn--primary { background: var(--g600); color: #fff; box-shadow: 0 10px 26px -12px rgba(46, 125, 50, .8); }
.btn--primary:hover { background: var(--g700); transform: translateY(-2px); box-shadow: 0 16px 32px -14px rgba(46, 125, 50, .9); }
.btn--glass { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgba(255, 255, 255, .18); transform: translateY(-2px); }
.play { width: 0; height: 0; border-left: 9px solid currentColor; border-block: 6px solid transparent; }
.row-btn { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

/* ── device frame ───────────────────────────── */
.device {
  --w: 268px;
  width: var(--w); flex: none;
  padding: 8px; border-radius: 38px;
  background: linear-gradient(155deg, #33403a, #10171200 42%) , #1b241e;
  box-shadow: var(--sh-dev), inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.device img { width: 100%; height: auto; border-radius: 31px; background: #0b0f0c; }

/* ── nav ──────────────────────────────────────
   Two independent states, set by JS:
   • `stuck`   — you have left the top, so the bar takes a background
   • `on-dark` / `on-light` — follows the section currently behind the bar,
     so it stays readable over the dark showcase *and* the light sections.
   on-dark is the markup default because the hero is dark (no flash on load). */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: 72px;
  background: transparent;
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.nav.stuck.on-light {
  background: rgba(247, 249, 244, .88); backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 10px 30px -22px rgba(16, 30, 20, .5);
}
.nav.stuck.on-dark {
  background: rgba(9, 18, 12, .8); backdrop-filter: saturate(1.4) blur(16px);
  box-shadow: 0 12px 34px -24px #000;
}
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand span {
  font-family: var(--fd); font-weight: 800; font-size: 1.2rem; letter-spacing: -.03em;
  color: #fff; transition: color .35s var(--ease);
}
.brand em { font-style: normal; color: var(--g300); transition: color .35s var(--ease); }
.nav.on-light .brand span { color: var(--ink); }
.nav.on-light .brand em { color: var(--g600); }
.nav__menu { display: flex; align-items: center; gap: 28px; }
.nav__menu a:not(.btn) {
  position: relative; color: rgba(255, 255, 255, .82);
  font-weight: 500; font-size: .93rem; transition: color .25s var(--ease);
}
.nav.on-light .nav__menu a:not(.btn) { color: var(--ink2); }
.nav__menu a:not(.btn):hover { color: #fff; }
.nav.on-light .nav__menu a:not(.btn):hover { color: var(--g600); }

/* the section you're currently in */
.nav__menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px;
  height: 2px; border-radius: 2px; background: currentColor;
  transform: scaleX(0); transition: transform .3s var(--ease);
}
.nav__menu a.is-here { color: var(--g300); }
.nav.on-light .nav__menu a.is-here { color: var(--g600); }
.nav__menu a.is-here::after { transform: scaleX(1); }

/* Nav CTA. The page-level .btn--primary carries a wide green glow that reads
   as a blob at this size and inside a bar, so here it's flat: a crisp pill
   with a hairline ring, and colour-only hover (no lift inside a fixed bar).
   Green stays --g600 in both nav themes — the brighter --g500 would drop
   white label text under 4.5:1. */
.nav__menu .btn--primary {
  padding: 9px 18px; font-size: .88rem; letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.nav__menu .btn--primary:hover {
  background: var(--g700); transform: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
}
.nav.on-light .nav__menu .btn--primary { box-shadow: none; }
.nav.on-light .nav__menu .btn--primary:hover { box-shadow: none; }

.burger { display: none; padding: 9px; }
.burger span { display: block; width: 22px; height: 2px; border-radius: 2px; background: #fff; transition: .25s var(--ease); }
.burger span + span { margin-top: 5px; }
.nav.on-light .burger span { background: var(--ink); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── hero ───────────────────────────────────── */
/* Full-screen hero. min-height (not height) so a short or landscape screen
   grows the section instead of clipping the phone. svh ignores the mobile
   URL bar collapsing, which would otherwise resize the hero mid-scroll. */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: grid; align-items: center;
  padding: 116px 0 84px;
  background: var(--d800); color: #fff;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 520px at 78% 6%, rgba(76, 175, 80, .22), transparent 70%),
    linear-gradient(180deg, rgba(8, 15, 10, .82) 0%, rgba(8, 15, 10, .88) 45%, rgba(8, 15, 10, .97) 100%),
    url("assets/bg-field.webp") center 28% / cover no-repeat;
}
.hero__in { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: 48px; align-items: center; }
.grad {
  background: linear-gradient(96deg, var(--g300), #ffe08a 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin-top: 22px; font-size: 1.14rem; color: rgba(255, 255, 255, .8); max-width: 33em; }
.hero__art { position: relative; display: flex; justify-content: center; }
/* scales with viewport height so the phone still fits a full-screen hero on a
   short laptop screen, without shrinking on a tall one */
.device--hero { --w: clamp(240px, 32vh, 310px); transform: perspective(1400px) rotateY(-11deg) rotateX(2deg) rotateZ(1.2deg); }
.pin {
  position: absolute; display: flex; gap: 10px; align-items: flex-start; width: 216px;
  background: rgba(18, 30, 22, .78); backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(143, 214, 148, .3); border-radius: 14px; padding: 12px 14px;
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .7);
  animation: bob 6s var(--ease) infinite;
}
.pin span { font-size: .78rem; color: rgba(255, 255, 255, .72); line-height: 1.4; }
.pin b { display: block; font-family: var(--fd); font-size: .84rem; color: var(--g300); margin-bottom: 2px; }
.pin__tick { flex: none; width: 22px; height: 22px; border-radius: 7px; background: var(--g600); position: relative; }
.pin__tick::after {
  content: ""; position: absolute; left: 7px; top: 5px; width: 6px; height: 10px;
  border: 2px solid #fff; border-top: 0; border-left: 0; transform: rotate(42deg);
}
.pin--a { top: 7%; left: -14%; }
.pin--b { bottom: 8%; right: -12%; animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }

/* ── sections ───────────────────────────────── */
.sec { padding: 104px 0; }
.sec--tint { background: var(--bg2); }
.sec--dark { background: var(--d800); color: #fff; position: relative; }
.sec--dark h2, .sec--dark h3, .sec--dark h4 { color: #fff; }
#engine { background: linear-gradient(180deg, var(--d800), var(--d900)); }

/* ── challenge ──────────────────────────────── */
.probs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.prob { background: var(--card); padding: 34px 30px 36px; transition: background .2s; }
.prob:hover { background: #fdfefc; }
.prob__n { font-family: var(--fd); font-weight: 800; font-size: .95rem; color: var(--g150); letter-spacing: 0; }
.prob h3 { margin: 14px 0 10px; }
.prob p { color: var(--ink2); font-size: .95rem; }

/* ── solution ───────────────────────────────── */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.pills { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.pills li {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 17px; font-size: .89rem; font-weight: 600; box-shadow: var(--sh-sm);
}
.pills em {
  font-style: normal; font-size: .64rem; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: var(--amber); background: #fff6e6;
  border-radius: 99px; padding: 2px 8px;
}
.pills .is-soon { color: var(--mut); }
.pull {
  margin-top: 32px; padding: 24px 0 4px 26px; border-left: 3px solid var(--g500);
  font-family: var(--fd); font-weight: 600; font-size: 1.06rem; line-height: 1.5;
  letter-spacing: -.015em; color: var(--ink);
}

.fan { position: relative; height: 560px; display: flex; align-items: center; justify-content: center; }
/* Position is driven by custom properties so :hover can reuse it and only
   add the lift — otherwise hover would reset the phone to the centre. */
.device--fan {
  --w: 182px; --rot: 0deg; --tx: 0px; --ty: 0px; --z: 1;
  position: absolute; z-index: var(--z);
  transform: rotate(var(--rot)) translate(var(--tx), var(--ty));
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.fan .f1 { --rot: -15deg; --tx: -206px; --ty: 44px; --z: 1; }
.fan .f2 { --rot: -7.5deg; --tx: -104px; --ty: 8px; --z: 2; }
.fan .f3 { --ty: -22px; --z: 4; --w: 196px; }
.fan .f4 { --rot: 7.5deg; --tx: 104px; --ty: 8px; --z: 3; }
.fan .f5 { --rot: 15deg; --tx: 206px; --ty: 44px; --z: 1; }

@media (hover: hover) {
  .device--fan:hover {
    z-index: 10;
    transform: rotate(var(--rot)) translate(var(--tx), calc(var(--ty) - 26px)) scale(1.07);
    box-shadow: 0 54px 100px -34px rgba(6, 18, 10, .72), 0 10px 28px -10px rgba(6, 18, 10, .4),
                inset 0 0 0 1px rgba(255, 255, 255, .16);
  }
}

/* ── demo (tabs) ────────────────────────────── */
.live {
  display: inline-flex; align-items: center; gap: 7px; text-transform: none; letter-spacing: 0;
  font-size: .72rem; color: #fff; background: rgba(76, 175, 80, .18);
  border: 1px solid rgba(143, 214, 148, .4); border-radius: 99px; padding: 3px 11px;
}
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--g400); box-shadow: 0 0 0 0 rgba(76, 175, 80, .7); animation: ping 2s infinite; }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 7px rgba(76, 175, 80, 0); } }

/* The section is taller than the viewport and the stage inside is sticky, so
   the phones stay pinned while the page scrolls; chapters crossfade as you go.
   Falls back to a plain stacked sequence on small screens / reduced motion
   (see the override at the end of this file) — no scroll hijacking there. */
.showcase { padding-bottom: 0; }
.sc-track { position: relative; }
.sc-stage {
  position: sticky; top: 0; height: 100svh;
  display: grid; align-items: center; padding: 96px 0 40px;
}
.sc-inner { width: min(1180px, 91vw); }

/* chapter rail — where you are, how many are left, and a shortcut */
.sc-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 44px; }
.sc-rail button {
  --fill: 0;
  display: block; width: 100%; text-align: left; padding: 0 0 13px;
  color: rgba(255, 255, 255, .46); position: relative; transition: color .35s var(--ease);
}
.sc-rail button::before,
.sc-rail button::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; border-radius: 2px; }
.sc-rail button::before { background: rgba(255, 255, 255, .13); }
.sc-rail button::after {
  background: var(--g400); transform: scaleX(var(--fill)); transform-origin: left;
  transition: transform .18s linear;
}
.sc-rail button:hover { color: rgba(255, 255, 255, .8); }
.sc-rail button.is-on { color: #fff; }
.sc-rail__n { display: block; font-family: var(--fd); font-weight: 800; font-size: .7rem; letter-spacing: .14em; color: var(--g300); }
.sc-rail__t { display: block; font-family: var(--fd); font-weight: 700; font-size: .96rem; letter-spacing: -.02em; margin-top: 5px; }

/* all chapters share one grid cell, so the stack is as tall as the tallest
   and nothing jumps as they crossfade */
.sc-caps { display: grid; }
.sc-cap {
  grid-area: 1 / 1;
  display: grid; grid-template-columns: .92fr 1.08fr; gap: 56px; align-items: center;
  opacity: 0; transform: translateY(18px); pointer-events: none;
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.sc-cap.is-on { opacity: 1; transform: none; pointer-events: auto; }
.sc-cap__text h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 14px; }
.sc-cap__text > p { color: rgba(255, 255, 255, .74); font-size: 1.04rem; }

.ticks { margin-top: 24px; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 30px; font-size: .93rem; color: rgba(255, 255, 255, .8); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 17px; height: 17px;
  border-radius: 50%; background: rgba(76, 175, 80, .22); box-shadow: inset 0 0 0 1px rgba(143, 214, 148, .5);
}
.ticks li::after {
  content: ""; position: absolute; left: 5.5px; top: 9.5px; width: 4px; height: 8px;
  border: 1.8px solid var(--g300); border-top: 0; border-left: 0; transform: rotate(42deg);
}
.ticks--light li { color: var(--ink2); }
.ticks--light li::before { background: var(--g100); box-shadow: inset 0 0 0 1px var(--g150); }
.ticks--light li::after { border-color: var(--g600); }

/* devices: sized off viewport height so the pair always fits the pinned stage */
.sc-cap__shots { display: flex; align-items: center; justify-content: center; }
.dev-screen { position: relative; aspect-ratio: 640 / 1385; border-radius: 31px; overflow: hidden; background: #0b0f0c; }
.dev-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.device--lead { --w: min(270px, 27vh); z-index: 2; transform: perspective(1500px) rotateY(-9deg); }
.device--trail { --w: min(240px, 24vh); margin-left: -48px; opacity: .88; transform: perspective(1500px) rotateY(-9deg) translateY(32px) scale(.97); }

.sc-hint {
  display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 40px;
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255, 255, 255, .42); transition: opacity .4s var(--ease);
}
.sc-track.is-past .sc-hint { opacity: 0; }
.sc-hint__arrow {
  width: 8px; height: 8px; border: 2px solid currentColor; border-top: 0; border-left: 0;
  transform: rotate(45deg); animation: nudge 1.8s var(--ease) infinite;
}
@keyframes nudge { 0%, 100% { transform: rotate(45deg) translate(0, 0); } 50% { transform: rotate(45deg) translate(3px, 3px); } }

/* ── download cta ───────────────────────────── */
.cta {
  padding: 96px 0; text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--g600) 0%, var(--g800) 62%, #0f3d17 100%);
  position: relative; overflow: hidden;
}
/* blueprint grid, masked to an ellipse so the lines dissolve at the edges
   instead of stopping against the section border */
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .062) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .062) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 72% 74% at 50% 42%, #000 28%, transparent 78%);
  mask-image: radial-gradient(ellipse 72% 74% at 50% 42%, #000 28%, transparent 78%);
}
.cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 340px at 82% 12%, rgba(255, 224, 138, .2), transparent 70%);
}
.cta__in { position: relative; z-index: 1; }
.cta > .wrap > p { color: rgba(255, 255, 255, .84); max-width: 40em; margin: 18px auto 36px; font-size: 1.07rem; }
.stores { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.store {
  display: flex; align-items: center; gap: 13px; text-align: left; color: #fff;
  background: rgba(8, 15, 10, .82); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px; padding: 11px 24px;
  transition: transform .2s var(--ease), background .2s;
}
.store:hover { transform: translateY(-2px); background: #080f0a; }
.store svg { width: 25px; height: 25px; flex: none; }
.store small { display: block; font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.store span:last-child { font-family: var(--fd); font-weight: 700; font-size: 1.04rem; line-height: 1.25; }
.cta__alt { margin-top: 28px; font-size: .95rem; display: flex; gap: 14px; justify-content: center; }
.cta__alt a { color: #ffe08a; font-weight: 600; border-bottom: 1px solid rgba(255, 224, 138, .35); }
.cta__alt span { opacity: .45; }

/* ── features ───────────────────────────────── */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feats--soon { grid-template-columns: repeat(4, 1fr); }
.subhead {
  display: flex; align-items: center; gap: 16px; margin: 56px 0 24px;
  font-family: var(--fd); font-weight: 700; font-size: .78rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--mut);
}
.subhead::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.feat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px 30px; box-shadow: var(--sh-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s;
}
.feat:hover { transform: translateY(-4px); border-color: var(--g150); box-shadow: var(--sh); }
.feat__tag {
  display: inline-block; font-size: .63rem; font-weight: 800; letter-spacing: .13em;
  text-transform: uppercase; color: var(--g700); background: var(--g100);
  border-radius: 99px; padding: 4px 11px; margin-bottom: 16px;
}
.feat__tag--soon { color: var(--amber); background: #fff6e6; }
.feat h3 { margin-bottom: 9px; }
.feat p { color: var(--ink2); font-size: .93rem; }
.feat--soon { background: #fcfdfb; }

/* ── pillars ────────────────────────────────── */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--sh-sm); display: flex; flex-direction: column;
}
.pillar h3 { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.pillar dl { flex: 1; }
.pillar dt { font-family: var(--fd); font-weight: 700; font-size: .89rem; margin-top: 15px; }
.pillar dt:first-child { margin-top: 0; }
.pillar dd { font-size: .87rem; color: var(--ink2); margin-top: 3px; }
.pillar dd::before { content: "— "; color: var(--g500); }
.stamp {
  align-self: flex-start; margin-top: 22px; font-size: .69rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: var(--g700);
  background: var(--g100); border: 1px solid var(--g150); border-radius: 99px; padding: 5px 13px;
}
.stamp--dark { color: var(--g300); background: rgba(76, 175, 80, .13); border-color: rgba(143, 214, 148, .32); }

/* ── engine ─────────────────────────────────── */
.engine { display: grid; grid-template-columns: 1fr auto 1.25fr auto 1fr; gap: 0; align-items: center; }
.engine__col { display: grid; gap: 14px; }
.node {
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 15px; padding: 22px 22px 24px;
}
.node h4 { margin-bottom: 8px; }
.node p { font-size: .88rem; color: rgba(255, 255, 255, .68); }
.node--core {
  background: linear-gradient(165deg, rgba(46, 125, 50, .28), rgba(11, 23, 16, .5));
  border-color: rgba(143, 214, 148, .38); padding: 30px 28px 32px;
  box-shadow: 0 30px 70px -30px rgba(76, 175, 80, .4);
}
.node__eyebrow {
  font-family: var(--fd); font-weight: 800; font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--g300); margin-bottom: 8px;
}
.node--core h4 { font-size: 1.3rem; letter-spacing: -.02em; }
.core__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.core__grid li { background: rgba(8, 15, 10, .4); border: 1px solid rgba(255, 255, 255, .09); border-radius: 11px; padding: 13px 14px; }
.core__grid b { display: block; font-family: var(--fd); font-size: .84rem; margin-bottom: 4px; }
.core__grid span { font-size: .77rem; color: rgba(255, 255, 255, .62); line-height: 1.45; }
.node--out { background: rgba(76, 175, 80, .1); border-color: rgba(143, 214, 148, .3); }
.node__note {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(143, 214, 148, .22);
  font-size: .74rem; font-weight: 600; letter-spacing: .02em; color: var(--g300);
}
.engine__ticker {
  font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-align: center;
  color: rgba(143, 214, 148, .8); padding-top: 4px;
}
.engine__arrow { display: flex; align-items: center; justify-content: center; width: 62px; }
.engine__arrow span {
  display: block; width: 100%; height: 2px; position: relative;
  background: linear-gradient(90deg, rgba(143, 214, 148, .15), rgba(143, 214, 148, .7));
}
.engine__arrow span::after {
  content: ""; position: absolute; right: 0; top: -4px; width: 9px; height: 9px;
  border: 2px solid var(--g300); border-bottom: 0; border-left: 0; transform: rotate(45deg);
}

/* ── steps ──────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--sh-sm); overflow: hidden; display: flex; flex-direction: column;
  padding-bottom: 30px;
}
.step__body { padding: 34px 30px 22px; flex: 1; }
.step__n {
  display: flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border-radius: 50%; background: var(--g600); color: #fff;
  font-family: var(--fd); font-weight: 800; font-size: 1.06rem; margin-bottom: 20px;
  box-shadow: 0 10px 22px -10px rgba(46, 125, 50, .8);
}
.step h3 { margin-bottom: 9px; }
.step__body > p { color: var(--ink2); font-size: .94rem; margin-bottom: 18px; }
/* whole screenshot, not a cropped peek */
.device--step {
  --w: 226px; margin: 14px auto 0;
  box-shadow: 0 26px 52px -24px rgba(6, 18, 10, .5), inset 0 0 0 1px rgba(255, 255, 255, .1);
}

/* ── benefits ───────────────────────────────── */
.bens { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
/* icon sits on the title's line, so it costs no extra vertical space;
   the copy spans the full width underneath */
.ben {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 18px 22px; box-shadow: var(--sh-sm); position: relative; overflow: hidden;
  transition: transform .22s var(--ease);
  display: grid; grid-template-columns: auto 1fr; align-items: center;
  column-gap: 11px; row-gap: 11px;
}
.ben::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--g500); }
.ben:hover { transform: translateY(-4px); }
.ben__i {
  grid-area: 1 / 1; display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--g100); color: var(--g700);
  transition: background .22s var(--ease), color .22s var(--ease);
}
.ben__i svg { width: 17px; height: 17px; }
.ben:hover .ben__i { background: var(--g600); color: #fff; }
.ben h3 { grid-area: 1 / 2; font-size: .94rem; letter-spacing: -.02em; }
.ben p { grid-column: 1 / -1; font-size: .86rem; color: var(--mut); }

/* ════════ about page ════════ */
/* compact dark page hero — same treatment as the home hero, less height */
.phero { position: relative; overflow: hidden; padding: 148px 0 84px; }
.phero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 460px at 82% 0%, rgba(76, 175, 80, .2), transparent 70%),
    linear-gradient(180deg, rgba(8, 15, 10, .84) 0%, rgba(8, 15, 10, .9) 50%, rgba(8, 15, 10, .97) 100%),
    url("assets/bg-field.webp") center 32% / cover no-repeat;
}
.phero__in { position: relative; max-width: 44rem; }
.phero h1 { font-size: clamp(1.95rem, 4vw, 3.05rem); }
.phero .lede b { color: #fff; }
.lede--sub { font-size: 1.02rem; color: rgba(255, 255, 255, .68); margin-top: 16px; }

/* icon tile — shared by the benefit cards and the about page */
.itile {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--g100); color: var(--g700); margin-bottom: 20px;
}
.itile svg { width: 23px; height: 23px; }

.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.vm__card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 32px 36px; box-shadow: var(--sh-sm);
}
.vm__card h2 { font-size: 1.4rem; margin-bottom: 12px; }
.vm__card p { color: var(--ink2); font-size: 1rem; }

.founders { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.founder {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px 34px; box-shadow: var(--sh-sm);
}
.founder__top { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.founder__av {
  flex: none; width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, var(--g500), var(--g800));
  color: #fff; font-family: var(--fd); font-weight: 800; font-size: 1.05rem; letter-spacing: .02em;
  box-shadow: 0 10px 22px -10px rgba(46, 125, 50, .7);
}
.founder__role {
  font-family: var(--fd); font-weight: 700; font-size: .78rem;
  color: var(--g700); margin-top: 3px;
}
.founder > p { color: var(--ink2); font-size: .95rem; }
.founders__note {
  max-width: 62rem; margin: 34px auto 0; text-align: center;
  color: var(--ink2); font-size: 1rem;
}
.pull--center {
  border-left: 0; border-top: 3px solid var(--g500);
  max-width: 44rem; margin: 48px auto 0; padding: 26px 0 0;
  text-align: center; font-size: 1.12rem;
}

/* ── about ──────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 880px; margin: 0 auto 44px; }
.stat {
  text-align: center; padding: 34px 22px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
}
.stat b {
  display: block; font-family: var(--fd); font-weight: 800; font-size: clamp(2.3rem, 4vw, 3rem);
  line-height: 1.05; letter-spacing: -.03em;
  background: linear-gradient(180deg, #fff, var(--g300));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { font-size: .86rem; color: rgba(255, 255, 255, .7); }
.then-now { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 900px; margin-inline: auto; }
.tn { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .11); border-radius: var(--radius); padding: 30px 28px; }
.tn--now { background: rgba(46, 125, 50, .17); border-color: rgba(143, 214, 148, .38); }
.tn__when {
  font-family: var(--fd); font-weight: 800; font-size: .72rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--g300);
}
.tn h3 { margin: 12px 0 10px; }
.tn p { font-size: .9rem; color: rgba(255, 255, 255, .72); }
.fineprint { max-width: 780px; margin: 40px auto 0; text-align: center; font-size: .76rem; line-height: 1.6; color: rgba(255, 255, 255, .45); }

/* ── partners ───────────────────────────────── */
.plogos { display: flex; justify-content: center; align-items: center; gap: 26px; flex-wrap: wrap; margin-bottom: 34px; }
.plogos li {
  display: flex; align-items: center; justify-content: center; min-width: 210px; height: 118px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 34px; box-shadow: var(--sh-sm); transition: transform .22s var(--ease);
}
.plogos li:hover { transform: translateY(-3px); }
.plogos img { max-height: 100%; width: auto; object-fit: contain; }
.ptypes { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.ptypes li {
  background: var(--g100); border: 1px solid var(--g150); color: var(--g700);
  font-weight: 600; font-size: .88rem; border-radius: 99px; padding: 8px 18px;
}

/* ── faq ────────────────────────────────────── */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--sh-sm); }
.faq details[open] { border-color: var(--g150); }
.faq summary {
  list-style: none; cursor: pointer; padding: 19px 22px;
  font-family: var(--fd); font-weight: 700; font-size: 1rem; letter-spacing: -.015em;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--g100); position: relative; transition: transform .25s var(--ease), background .2s;
  background-image: linear-gradient(var(--g700), var(--g700)), linear-gradient(var(--g700), var(--g700));
  background-size: 10px 2px, 2px 10px; background-position: center, center; background-repeat: no-repeat;
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details > div { padding: 0 22px 22px; }
.faq p { color: var(--ink2); font-size: .95rem; }

/* ── contact ────────────────────────────────── */
.contact { display: grid; grid-template-columns: .78fr 1.22fr; gap: 26px; align-items: start; }
.contact__side {
  background: linear-gradient(160deg, var(--g600), var(--g800) 75%); color: #fff;
  border-radius: var(--radius); padding: 38px 32px; box-shadow: var(--sh);
}
.contact__side h3 { color: #fff; margin-bottom: 12px; }
.contact__mail { color: #ffe08a; font-weight: 600; font-size: 1.02rem; word-break: break-all; }
.contact__where { margin-top: 18px; color: rgba(255, 255, 255, .84); font-size: .94rem; }
.contact__eta { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: .84rem; color: rgba(255, 255, 255, .68); }
.form {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--sh-sm); display: grid; gap: 17px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.form label { display: grid; gap: 7px; font-family: var(--fd); font-weight: 600; font-size: .84rem; }
.form input, .form select, .form textarea {
  font-family: var(--fb); font-size: .95rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; background: #fff; border-color: var(--g500); box-shadow: 0 0 0 3px var(--g100);
}
.form button { justify-self: start; margin-top: 4px; }

/* ── footer ─────────────────────────────────── */
.foot { background: var(--d900); color: rgba(255, 255, 255, .66); padding: 74px 0 28px; }
.foot__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 42px; padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.brand--light span { color: #fff; }
.foot__blurb { margin-top: 16px; font-size: .89rem; max-width: 27em; }
.foot__col { display: grid; gap: 11px; align-content: start; }
.foot__col b { font-family: var(--fd); color: #fff; font-size: .95rem; margin-bottom: 4px; }
.foot__col a { color: rgba(255, 255, 255, .62); font-size: .9rem; transition: color .15s; }
.foot__col a:hover { color: var(--g300); }
.foot__bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 26px; font-size: .81rem; color: rgba(255, 255, 255, .45); }

/* ── reveal (JS-gated so content is never hidden without JS) ── */
html.js [data-rv] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js [data-rv].shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-rv] { opacity: 1; transform: none; transition: none; }
  .pin, .live i, .sc-hint__arrow { animation: none; }
  .sc-cap { transition: none; }
}

/* ════════ responsive ════════ */
@media (max-width: 1080px) {
  .hero__in { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { display: flex; flex-direction: column; align-items: center; }
  .kicker { justify-content: center; }
  .row-btn { justify-content: center; }
  .hero__art { margin-top: 46px; }
  .device--hero { transform: none; }
  .pin--a { left: -2%; }
  .pin--b { right: -2%; }
  .probs { grid-template-columns: repeat(2, 1fr); }
  .two { grid-template-columns: 1fr; gap: 48px; }
  .sub--left, .pull { text-align: left; }
  .ticks { text-align: left; max-width: 26em; margin-inline: auto; }
  .feats, .feats--soon { grid-template-columns: repeat(2, 1fr); }
  .vm, .founders { grid-template-columns: 1fr; }
  .pillars, .steps { grid-template-columns: 1fr; }
  .engine { grid-template-columns: 1fr; gap: 18px; }
  .engine__arrow { width: auto; height: 46px; justify-self: center; }
  .engine__arrow span { width: 2px; height: 100%; background: linear-gradient(180deg, rgba(143, 214, 148, .15), rgba(143, 214, 148, .7)); }
  .engine__arrow span::after { right: -4px; bottom: 0; top: auto; transform: rotate(135deg); }
  /* five cards can't divide evenly here, so flex-wrap centres the short
     last row instead of leaving it hanging to the left */
  .bens { display: flex; flex-wrap: wrap; justify-content: center; }
  .ben { flex: 1 1 210px; max-width: 300px; }
  .stats, .then-now { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .sec { padding: 68px 0; }
  .head { margin-bottom: 40px; }
  .hero { padding: 120px 0 84px; }
  .probs { grid-template-columns: 1fr; }
  .fan { height: 400px; }
  .device--fan { --w: 150px; }
  .fan .f1, .fan .f5 { display: none; }
  .fan .f2 { --rot: -9deg; --tx: -84px; --ty: 10px; }
  .fan .f3 { --w: 162px; }
  .fan .f4 { --rot: 9deg; --tx: 84px; --ty: 10px; }
  .core__grid { grid-template-columns: 1fr; }
  .feats, .feats--soon { grid-template-columns: 1fr; }
  .ben { flex-basis: 100%; max-width: none; }
  .form__row { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; gap: 30px; }
  .plogos li { min-width: 150px; height: 96px; padding: 18px 24px; }
}

/* ════════ nav ════════
   Six links plus the CTA button stop fitting beside the wordmark well above
   760px — they used to collide with it around 800 — so the drawer takes over
   at 900, matching the showcase fallback. */
@media (max-width: 900px) {
  .burger { display: block; }
  /* fully opaque, not a high-alpha tint — a translucent drawer lets the
     section behind it show through and the links get hard to read */
  .nav__menu {
    position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 18px;
    background: var(--d800);
    padding: 22px 4.5vw 30px; transform: translateY(-135%);
    transition: transform .35s var(--ease);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 24px 40px -26px rgba(0, 0, 0, .7);
  }
  .nav__menu.open { transform: none; }
  .nav.on-light .nav__menu { background: var(--bg); border-bottom-color: var(--line); }
  .nav__menu a:not(.btn) { font-size: 1rem; padding: 4px 0; }
  .nav__menu .btn { justify-content: center; margin-top: 6px; }
  /* an underline under a stacked drawer link reads as a divider — colour alone
     carries the active state here */
  .nav__menu a:not(.btn)::after { display: none; }
}

/* ════════ showcase fallback ════════
   Below 900px — and whenever reduced motion is asked for — the pinned,
   scroll-scrubbed stage is dropped for a plain stacked sequence. Pinning the
   stage on a phone hijacks the scroll and fights the collapsing URL bar,
   and every chapter is worth reading anyway. JS clears the inline track
   height to match (see scrubbing() in v2.js). */
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .showcase { padding-bottom: 68px; }
  .sc-track { height: auto !important; }
  .sc-stage { position: static; height: auto; padding: 0; display: block; }
  .sc-rail, .sc-hint { display: none; }
  .sc-caps { display: block; }
  .sc-cap {
    grid-area: auto; grid-template-columns: 1fr; gap: 34px; text-align: center;
    opacity: 1; transform: none; pointer-events: auto; padding-bottom: 76px;
  }
  .sc-cap:last-child { padding-bottom: 0; }
  .sc-cap .kicker { justify-content: center; }
  .device--lead { --w: min(262px, 64vw); transform: none; }
  .device--trail { display: none; }
}
