/* ==========================================================================
   Mint Investing homepage
   Tokens mirror the Figma "mint" variable collection (dark + light modes).
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-var.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dmsans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --font: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-alt: "Manrope", var(--font);
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --container: 1200px;
  --gutter: 20px;
  --pad-in: 32px;
  --section-y: 120px;
  --nav-h: 82px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  /* fixed (theme independent) */
  --gain: #35d977;
  --gold: #e8c877;
  --on-dark: #f1f2f2;
  --on-dark-2: #a5aba7;
  --on-dark-3: #979f9a;
  --band-top: #9c9991;
  --band-bottom: #50584b;
  --grid-light: rgba(241, 242, 242, .42);
}

/* Dark mode (Figma frame 2200:45219) */
:root,
[data-theme="dark"] {
  color-scheme: dark;
  --page: #141a16;
  --text: #f1f2f2;
  --text-2: #a5aba7;
  --text-3: #979f9a;
  --text-hero-sub: #a5aba7;
  --text-hero-body: #979f9a;
  --accent: #35d977;
  --icon: #35d977;
  --loss: #ef6a5e;
  --cta-bg: #35d977;
  --cta-fg: #0b0d0c;
  --outline-btn: #a5aba7;
  --card-bg: #1a211c;
  --card-border: #242b26;
  --item-bg: #0e120f;
  --item-border: rgba(255, 255, 255, .14);
  --tab-bg: #1a211c;
  --tab-border: #242b26;
  --icon-box: #242b26;
  --why-bg: #141a16;
  --why-border: #5b625d;
  --closer-bg: #141a16;
  --step-media: #242b26;
  --grid: rgba(128, 137, 131, .55);
  --hero-g1: #18201a;
  --hero-g2: #18241c;
  --dots: #454a47;
  --shadow-phone: 0 40px 80px -30px rgba(0, 0, 0, .65);
}

/* Light mode (Figma frame 2170:11051) */
[data-theme="light"] {
  color-scheme: light;
  --page: #ededed;
  --text: #0b0d0c;
  --text-2: #454a47;
  --text-3: #575e59;
  --text-hero-sub: #131313;
  --text-hero-body: #5c5c58;
  --accent: #0b7539;
  --icon: #1f7a43;
  --loss: #ef6a5e;
  --cta-bg: #0b7539;
  --cta-fg: #f1f2f2;
  --outline-btn: #131313;
  --card-bg: rgba(255, 255, 255, .55);
  --card-border: #d6d5d3;
  --item-bg: #f8f9f8;
  --item-border: rgba(11, 13, 12, .12);
  --tab-bg: #ffffff;
  --tab-border: #dee5ee;
  --icon-box: #e4e5e4;
  --why-bg: #efefee;
  --why-border: #808983;
  --closer-bg: #ffffff;
  --step-media: #e4e5e4;
  --grid: rgba(128, 137, 131, .55);
  --hero-g1: #cad4d8;
  --hero-g2: #e1ddd0;
  --shadow-phone: 0 40px 80px -34px rgba(20, 26, 22, .35);
}

/* Sections that stay dark in both themes */
.on-dark {
  --text: var(--on-dark);
  --text-2: var(--on-dark-2);
  --text-3: var(--on-dark-3);
  --accent: var(--gain);
  --cta-bg: var(--gain);
  --cta-fg: #0b0d0c;
  color: var(--text);
}

@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color .5s var(--ease-io), color .5s var(--ease-io);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
em { font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--page); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--container), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.accent { color: var(--accent); }
.loss { color: var(--loss); }
.mono { font-family: var(--font-mono); }

/* Theme switch: circular reveal (View Transitions) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }

/* Theme-specific imagery */
.t-light { display: none !important; }
[data-theme="light"] .t-light { display: block !important; }
[data-theme="light"] .t-dark { display: none !important; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--gain); color: #0b0d0c; padding: 10px 16px; border-radius: 8px; font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* Scroll progress */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 120; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--gain); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Type ---------- */
.eyebrow { font-size: 11px; letter-spacing: 1.6px; color: var(--text-2); line-height: 1.4; text-transform: uppercase; }
.eyebrow--bold { font-family: var(--font); font-weight: 700; font-size: 12px; letter-spacing: .66px; color: var(--text); }
.label { font-size: 10px; letter-spacing: 1.6px; color: var(--accent); text-transform: uppercase; }
.h2 {
  font-weight: 500;
  font-size: clamp(36px, 3.9vw, 56px);
  line-height: 1.02;
  letter-spacing: -.03em;
  color: var(--text);
}
.h2-sm {
  font-weight: 500;
  font-size: clamp(34px, 3.06vw, 44px);
  line-height: 1.09;
  letter-spacing: -.01em;
}
.h3 { font-weight: 500; font-size: clamp(24px, 2.1vw, 30px); letter-spacing: -.024em; line-height: 1.35; color: var(--text); }

/* Grid lines (dashed, from the Figma vector strokes) */
.gl { position: absolute; pointer-events: none; transform-origin: 50% 0; }
.gl--v {
  top: 0; bottom: 0; left: var(--x); width: 1px;
  background: repeating-linear-gradient(to bottom, var(--grid) 0 4px, transparent 4px 8px);
}
.gl--h {
  left: 0; right: 0; height: 1px; transform-origin: 0 50%;
  background: repeating-linear-gradient(to right, var(--grid) 0 4px, transparent 4px 8px);
}
.gl--light.gl--v { background: repeating-linear-gradient(to bottom, var(--grid-light) 0 4px, transparent 4px 8px); }
.gl--light.gl--h { background: repeating-linear-gradient(to right, var(--grid-light) 0 4px, transparent 4px 8px); }

.section-grid { position: relative; }
.section-grid::before {
  content: ""; position: absolute; top: 0; bottom: 0;
  left: 50%; width: min(var(--container), calc(100% - 2 * var(--gutter)));
  transform: translateX(-50%) scaleY(var(--draw, 1)); transform-origin: 50% 0;
  pointer-events: none;
  /* Only the two outer frame lines: inner columns cut through copy and cards */
  background-image:
    repeating-linear-gradient(to bottom, var(--grid) 0 4px, transparent 4px 8px),
    repeating-linear-gradient(to bottom, var(--grid) 0 4px, transparent 4px 8px);
  background-size: 1px 100%;
  background-repeat: no-repeat;
  background-position: 0 0, 100% 0;
}

/* ---------- Buttons ---------- */
.btn {
  --tx: 0px; --ty: 0px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 8px;
  font-weight: 500; font-size: 14px; letter-spacing: .2px; line-height: 1.35;
  border: 1px solid transparent;
  position: relative; isolation: isolate; overflow: hidden;
  transform: translate(var(--tx), var(--ty));
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .35s, color .35s, border-color .35s;
  will-change: transform;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120px 120px at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.35), transparent 70%);
  opacity: 0; transition: opacity .3s;
}
.btn:hover::after { opacity: 1; }
.btn__arrow { transition: transform .35s var(--ease-out); flex: none; }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn:active { transform: translate(var(--tx), calc(var(--ty) + 1px)) scale(.98); }
.btn--primary { background: var(--cta-bg); color: var(--cta-fg); }
.btn--primary:hover { box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--cta-bg) 75%, transparent); }
.btn--fixed { background: var(--gain); color: #0b0d0c; }
.btn--hero {
  background: var(--gain); color: #06170f;
  font-family: var(--font-alt); font-weight: 700; letter-spacing: -.04em;
}
.btn--hero:hover { box-shadow: 0 12px 34px -10px rgba(53, 217, 119, .6); }
.btn--outline {
  border-color: var(--outline-btn); color: var(--outline-btn);
  font-family: var(--font-alt); font-weight: 700; letter-spacing: -.04em;
}
.btn--outline:hover { background: color-mix(in srgb, var(--outline-btn) 10%, transparent); }
.btn--pill { border-radius: 100px; font-family: var(--font-alt); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  padding-top: 9px;
  transition: transform .5s var(--ease-out), padding .4s var(--ease-out);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 20px;
  border-bottom: .6px solid transparent;
  transition: background-color .4s, border-color .4s, border-radius .4s, padding .4s var(--ease-out), backdrop-filter .4s;
}
.nav.is-scrolled .nav__inner {
  background: color-mix(in srgb, var(--page) 72%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-color: transparent;
  border-radius: 16px;
  padding-block: 6px;
}
.nav__logo img { width: 64px; height: 64px; transition: transform .6s var(--ease-out), width .4s, height .4s; }
.nav.is-scrolled .nav__logo img { width: 52px; height: 52px; }
.nav__logo:hover img { transform: rotate(-18deg) scale(1.04); }
.nav__pill {
  display: flex; align-items: center; gap: 4px; padding: 5px;
  background: rgba(255, 255, 255, .5);
  border: 1px solid #f5f5f5; border-radius: 12px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, .05);
  -webkit-backdrop-filter: blur(1.25px); backdrop-filter: blur(1.25px);
}
.nav__download {
  display: inline-flex; align-items: center; align-self: stretch;
  padding: 0 16px; min-height: 40px; border-radius: 8px;
  background: var(--gain); color: #0b0d0c;
  font-weight: 700; font-size: 13px; letter-spacing: .78px; line-height: 13px; text-transform: uppercase;
  transition: transform .35s var(--ease-out), box-shadow .35s;
}
.nav__download:hover { box-shadow: 0 8px 22px -8px rgba(53, 217, 119, .8); }
.nav__icon-btn {
  width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; color: #131313;
  transition: background-color .25s;
}
.nav__icon-btn:hover { background: rgba(19, 19, 19, .08); }
.theme-toggle svg { grid-area: 1 / 1; transition: transform .6s var(--ease-out), opacity .4s; }
[data-theme="dark"] .theme-toggle .ico-moon,
[data-theme="light"] .theme-toggle .ico-sun { opacity: 0; transform: rotate(-90deg) scale(.4); }
.burger { width: 16px; height: 12px; position: relative; display: block; }
.burger span { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .45s var(--ease-out), opacity .3s; }
.burger span:nth-child(1) { top: .25px; }
.burger span:nth-child(2) { top: 5.25px; }
.burger span:nth-child(3) { top: 10.25px; }
.nav__menu-btn[aria-expanded="true"] .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav__menu-btn[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__menu-btn[aria-expanded="true"] .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Menu overlay */
.menu {
  position: fixed; inset: 0; z-index: 90;
  background: color-mix(in srgb, var(--page) 94%, transparent);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  display: flex; align-items: center;
  clip-path: circle(0 at calc(100% - 60px) 50px);
  transition: clip-path .8s var(--ease-io);
}
.menu.is-open { clip-path: circle(150% at calc(100% - 60px) 50px); }
.menu[hidden] { display: none; }
.menu__inner { padding-top: 80px; }
.menu__list li { overflow: hidden; }
.menu__list a {
  display: inline-block;
  font-size: clamp(34px, 6vw, 72px); font-weight: 500; letter-spacing: -.035em; line-height: 1.15;
  color: var(--text);
  transform: translateY(105%);
  transition: transform .8s var(--ease-out), color .3s;
}
.menu.is-open .menu__list a { transform: none; }
.menu.is-open .menu__list li:nth-child(2) a { transition-delay: .05s; }
.menu.is-open .menu__list li:nth-child(3) a { transition-delay: .1s; }
.menu.is-open .menu__list li:nth-child(4) a { transition-delay: .15s; }
.menu.is-open .menu__list li:nth-child(5) a { transition-delay: .2s; }
.menu.is-open .menu__list li:nth-child(6) a { transition-delay: .25s; }
.menu__list a:hover { color: var(--accent); }
.menu__foot { margin-top: 40px; font-size: 11px; letter-spacing: 1.6px; color: var(--text-3); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; z-index: 2; overflow-x: clip; --sw: max(105vw, 760px); padding-top: clamp(130px, 11vw, 158px); }
.hero__bg {
  position: absolute; left: 0; right: 0; top: 0; height: calc(100% + 230px); z-index: -1;
  background: linear-gradient(to bottom, var(--hero-g1) 12.3%, var(--hero-g2) 66.8%, var(--page) 100%);
  transition: background .6s;
}
.hero__grid { position: absolute; inset: 0 0 auto; height: min(900px, 100%); left: 0; right: 0; }
.hero__grid .gl--h { top: clamp(170px, 17vw, 245px); left: -105px; right: -105px; }
.hero__copy { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__title {
  font-weight: 500; font-size: clamp(44px, 5.14vw, 74px); line-height: 1.081; letter-spacing: -.05em; color: var(--text);
}
.hero__line { display: block; }
.hero__line--muted { color: var(--text-3); }
[data-theme="light"] .hero__line--muted { color: #979f9a; }
.hero__sub {
  margin-top: clamp(20px, 2.15vw, 31px);
  font-weight: 500; font-size: clamp(18px, 1.53vw, 22px); line-height: 1.317; letter-spacing: -.0115em; color: var(--text-hero-sub);
}
.hero__body { margin-top: 12px; max-width: 480px; font-size: 16px; line-height: normal; letter-spacing: .32px; color: var(--text-hero-body); }
.hero__ctas { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.hero__scene {
  position: relative; width: var(--sw); left: 50%; transform: translateX(-50%);
  height: calc(var(--sw) * .327);
  margin-top: clamp(40px, 6.8vw, 99px);
  pointer-events: none;
}
/* Trees layer runs on below the grass line (hidden behind the ground), so the two
   parallax layers can drift apart on scroll without opening a seam */
.hero__trees { position: absolute; left: 0; right: 0; top: calc(var(--sw) * .0172); height: calc(var(--sw) * .308); overflow: hidden; }
.hero__trees img { width: 100%; margin-top: calc(var(--sw) * .006); }
.hero__ground { position: absolute; left: 0; right: 0; bottom: calc(var(--sw) * -.0172); height: calc(var(--sw) * .219); overflow: hidden; }
.hero__ground img { width: 100%; margin-top: calc(var(--sw) * -.0313); }
.hero__phone {
  position: absolute; left: 50%; top: 0; width: clamp(200px, calc(var(--sw) * .196), 296px);
  transform: translateX(-50%);
}
.hero__phone img { width: 100%; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
.hero__fog {
  position: absolute; left: 0; right: 0; bottom: -12.5vw; height: 39vw; z-index: 3; pointer-events: none;
}
.hero__fog img { width: 100%; height: 100%; object-fit: cover; }
[data-theme="light"] .hero__fog img { opacity: .9; }

/* ==========================================================================
   THE GAP
   ========================================================================== */
.gap { padding: calc(var(--section-y) + clamp(40px, 8.8vw, 127px)) 0 var(--section-y); z-index: 3; }
.gap__inner { display: grid; grid-template-columns: minmax(0, 471px) minmax(0, 539px); justify-content: space-between; gap: 64px; padding-inline: var(--pad-in); }
.gap__left .h2 { margin-top: 0; }
.gap__left .eyebrow + .h2 { margin-top: 0; }
.gap__lead { margin-top: 16px; max-width: 362px; font-size: 16.5px; line-height: 1.6; letter-spacing: .32px; color: var(--text-2); }
.gap__visual {
  --u: calc(100cqw / 395);
  position: relative; margin-top: 18px; width: min(395px, 100%); aspect-ratio: 395 / 315;
  container-type: inline-size;
  --pill-bg: #1a211c; --pill-border: #242b26; --pill-fg: #979f9a;
}
[data-theme="light"] .gap__visual { --pill-bg: #fff; --pill-border: #e4e5e4; --pill-fg: #575e59; }
.gap__chart { position: absolute; left: 20.58%; top: 17.46%; width: 61.42%; }
.gap__chart img { width: 100%; }
/* Tags rebuilt from the Figma layers (centre point, rotation, scale) so each one is interactive */
.gap__pills { position: absolute; inset: 0; }
.gpill {
  --k: calc(var(--u) * var(--s));
  position: absolute; left: var(--cx); top: var(--cy);
  display: inline-flex; align-items: center; gap: calc(var(--k) * 4);
  height: calc(var(--k) * 34); padding: 0 calc(var(--k) * 14);
  border-radius: 999px; background: var(--pill-bg); border: calc(var(--k) * 1) solid var(--pill-border);
  color: var(--pill-fg); white-space: nowrap; cursor: default;
  font-family: var(--font); font-weight: 500; font-size: calc(var(--k) * 13); letter-spacing: calc(var(--k) * -.08);
  transform: translate(-50%, -50%) rotate(var(--r));
  transition: transform .5s var(--ease-out), background-color .3s, border-color .3s, color .3s, box-shadow .5s var(--ease-out);
}
.gpill svg { width: calc(var(--k) * 16); height: calc(var(--k) * 16); flex: none; transition: transform .5s var(--ease-out); }
.gpill:hover {
  z-index: 2; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, var(--pill-bg));
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent) 55%, transparent);
  transform: translate(-50%, -50%) translateY(-4px) rotate(calc(var(--r) * .25)) scale(1.08);
}
.gpill:hover svg { transform: rotate(-10deg) scale(1.1); }
.gap__right { align-self: center; }
.gap__q { font-weight: 500; font-size: 15px; line-height: 1.6; letter-spacing: .32px; color: var(--text); }
.qlist { margin-top: 22px; display: grid; gap: 16px; counter-reset: q; }
.qlist__item {
  display: flex; align-items: center; gap: 20px; padding: 16px;
  background: var(--item-bg); border-radius: 8px;
  border-bottom: 1px dashed var(--item-border);
  font-weight: 500; font-size: clamp(17px, 1.39vw, 20px); line-height: 1.34; letter-spacing: -.014em; color: var(--text-2);
  transition: transform .45s var(--ease-out), color .3s, background-color .3s, box-shadow .45s var(--ease-out);
}
.qlist__item:last-child { border-bottom-color: transparent; }
.qlist__num { font-size: 11px; letter-spacing: .6px; color: var(--accent); flex: none; transition: transform .45s var(--ease-out); }
.qlist__item:hover {
  transform: translateX(8px); color: var(--text);
  background: color-mix(in srgb, var(--accent) 16%, var(--item-bg));
  border-bottom-color: transparent;
  box-shadow: inset 2px 0 0 var(--accent), 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent), 0 12px 30px -16px color-mix(in srgb, var(--accent) 60%, transparent);
}
.qlist__item:hover .qlist__num { transform: scale(1.15); }
.gap__close { margin-top: 26px; font-weight: 500; font-size: clamp(20px, 1.67vw, 24px); line-height: 1.6; letter-spacing: -.018em; color: var(--text-2); }

/* ==========================================================================
   PLATFORM
   ========================================================================== */
.platform { padding: 88px 0 var(--section-y); }
.platform__inner { padding-inline: var(--pad-in); }
.platform__title { max-width: 788px; margin-top: 8px; }
.tabs {
  position: relative; margin-top: 24px; display: inline-grid; grid-template-columns: 1fr 1fr;
  padding: 5px; border-radius: 12px; background: var(--tab-bg); border: 1px solid var(--tab-border);
  width: min(397px, 100%);
}
/* Concentric radii (track 12 = pill 7 + 5 padding) and equal 5px inset on every side */
.tabs__pill {
  position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px);
  background: var(--gold); border-radius: 7px;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 4px 14px -6px rgba(0,0,0,.45);
  transition: transform .55s var(--ease-out);
}
.tabs[data-active="1"] .tabs__pill { transform: translateX(100%); }
.tabs__btn {
  position: relative; z-index: 1; min-height: 40px; padding: 0 16px; border-radius: 7px;
  display: grid; place-items: center;
  font-family: "DM Sans", var(--font); font-weight: 600; font-size: 13px; line-height: 1; color: #677283;
  transition: color .35s;
}
.tabs__btn.is-active { color: #0b0d0c; }
.tabs__btn:not(.is-active):hover { color: var(--text); }

.card { margin-top: 42px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 8px; overflow: hidden; }
.card__head { padding: 34px 34px 0; }
.card__head .h3 { margin-top: 12px; }
.card__desc { margin-top: 12px; font-family: var(--font-alt); font-size: 15px; line-height: 1.6; letter-spacing: .32px; color: var(--text-3); }
.card__foot { margin-top: 18px; padding: 24px 34px 32px; border-top: 1px solid var(--card-border); }
.platform__panel[hidden] { display: none; }
.phones { margin-top: 24px; display: flex; justify-content: center; gap: 64px; padding-inline: 34px; }
.phone { width: 268px; flex: none; }
.phone img { width: 100%; filter: drop-shadow(0 24px 40px rgba(0,0,0,.25)); }
.phones--single .phone { width: 285px; }

/* ==========================================================================
   BANDS (stone gradient sections, theme independent)
   ========================================================================== */
.band {
  position: relative; overflow: hidden; color: var(--on-dark);
  background: linear-gradient(to bottom, var(--band-top), var(--band-bottom));
  --text: var(--on-dark); --text-2: var(--on-dark); --text-3: var(--on-dark);
}
.band__grid { position: absolute; inset: 0; left: 0; right: 0; pointer-events: none; }

/* Health */
.health__inner { position: relative; display: grid; grid-template-columns: 349px minmax(0, 1fr) 364px; gap: 0; min-height: 830px; }
.health__intro { padding: 89px 0 0 35px; }
.health__intro .h2-sm { margin-top: 12px; font-weight: 700; }
.health__lead { margin-top: 12px; font-size: 14px; letter-spacing: .32px; line-height: 1.36; }
.health__hand { position: relative; align-self: end; justify-self: start; width: min(486px, 100%); aspect-ratio: 486 / 675; margin-left: 1px; margin-bottom: -3px; }
.health__hand-img { position: absolute; left: 0; bottom: 0; width: 100%; }
.health__phone { position: absolute; left: 11.32%; top: -.89%; width: 57.6%; }
.health__phone img { width: 100%; }
.health__list { padding-top: 117px; padding-bottom: 46px; }
.dlist li { padding: 15px 0; border-bottom: 1px dashed rgba(255, 255, 255, .14); transition: transform .4s var(--ease-out); }
.dlist li:last-child { border-bottom: 0; }
.dlist h3 { display: flex; align-items: center; gap: 9px; font-weight: 500; font-size: 14px; line-height: 1.36; color: #f6f6f6; }
.dlist h3::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: var(--dot, var(--gold)); flex: none; transition: transform .4s var(--ease-out), box-shadow .4s; }
.dlist p { padding: 5px 0 0 15px; font-size: 14px; line-height: 1.49; letter-spacing: .32px; color: var(--on-dark); }
.dlist li:hover { transform: translateX(6px); }
.dlist li:hover h3::before { transform: scale(1.6); box-shadow: 0 0 0 4px color-mix(in srgb, var(--dot, var(--gold)) 25%, transparent); }
.dlist--green { --dot: var(--gain); }
.dlist--lg h3 { color: var(--on-dark-2); }
.dlist--lg p { font-size: 16px; line-height: 1.6; }
.callout { margin-top: 13px; padding-left: 22px; border-left: 1px solid var(--gold); }
.callout__title { font-weight: 500; font-size: 28px; line-height: 33px; letter-spacing: -.022em; color: rgba(255,255,255,.9); }
.callout__body { margin-top: 8px; font-weight: 500; font-size: 16px; line-height: 23.7px; letter-spacing: .32px; color: rgba(255,255,255,.9); }
.health .btn { margin-top: 29px; }

/* ==========================================================================
   RESEARCH (dark)
   ========================================================================== */
.research { position: relative; background: #111211; overflow: hidden; }
.research__grid { position: absolute; inset: 0; left: 0; right: 0; pointer-events: none; }
.research__dots {
  position: absolute; top: 13px; bottom: 11px; left: 50%; width: 367px; transform: translateX(-46%);
  background-image: radial-gradient(circle, var(--dots, #454a47) 1.5px, transparent 1.6px);
  background-size: 26px 32px; background-position: 0 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
  opacity: .9;
}
.research__inner { position: relative; display: grid; grid-template-columns: 352px 401px 359px; gap: 44px; padding: 132px 0; align-items: start; }
.research__intro { align-self: center; }
.research__intro .h2-sm { margin-top: 18px; color: #f6f6f6; letter-spacing: -.01em; }
.research__phone { justify-self: center; width: 285px; }
.research__phone img { width: 100%; filter: drop-shadow(var(--shadow-phone)); }
.research__lead { font-size: 16px; line-height: 1.6; letter-spacing: .32px; color: rgba(255,255,255,.84); max-width: 330px; }
.research__list .dlist { margin-top: 6px; }
.research .btn { margin-top: 20px; }

/* ==========================================================================
   STORY (pinned scrollytelling)
   ========================================================================== */
.story { position: relative; }
.story__grid { position: absolute; inset: 0; left: 0; right: 0; pointer-events: none; }
.story__stage { position: relative; }
.story__inner { position: relative; }
.story__progress { display: none; }
.story__phones { display: none; }
.story__step { display: grid; grid-template-columns: 1fr; gap: 28px; padding: 72px 0; }
.story__q { display: flex; gap: 12px; font-weight: 500; font-size: clamp(32px, 3.06vw, 44px); line-height: 1.09; letter-spacing: -.045em; color: var(--text); }
.story__num { font-weight: 700; font-size: 12px; letter-spacing: .66px; line-height: 1.4; color: var(--text-2); padding-top: .5em; flex: none; }
.story__a { font-weight: 500; font-size: clamp(32px, 3.06vw, 44px); line-height: 1.09; letter-spacing: -.045em; color: var(--text); }
.story__mphone { width: min(280px, 72vw); margin-inline: auto; }
.story__mphone img { width: 100%; filter: drop-shadow(var(--shadow-phone)); }

@media (min-width: 1024px) {
  /* Static desktop layout (no JS / reduced motion): mirrors the Figma rows */
  .story__step {
    display: grid; grid-template-columns: minmax(0, 343px) 1fr minmax(0, 350px); align-items: start;
    padding: 106px 22px 70px; min-height: 786px;
  }
  .story__q { grid-column: 1; grid-row: 1; justify-content: flex-end; text-align: right; }
  .story__qtext { max-width: 317px; }
  .story__mphone { grid-column: 2; grid-row: 1; width: 280px; margin-top: -18px; }
  .story__a { grid-column: 3; grid-row: 1; margin-top: 234px; text-align: right; }

  /* Pinned scrollytelling version */
  .anim .story { height: 400vh; }
  .anim .story__stage { position: sticky; top: 0; height: 100vh; min-height: 700px; overflow: hidden; }
  .anim .story__inner { height: 100%; }
  .anim .story__step { position: absolute; inset: 0; padding: 0; display: block; min-height: 0; pointer-events: none; }
  .anim .story__mphone { display: none; }
  .anim .story__q {
    position: absolute; left: 22px; top: 50%; width: min(343px, 29%);
    transform: translateY(calc(-50% - 120px));
  }
  .anim .story__a { position: absolute; right: 20px; top: 50%; width: min(350px, 29%); margin: 0; transform: translateY(calc(-50% + 110px)); }
  .anim .story__phones { display: block; position: absolute; left: 50%; top: 50%; width: 292px; height: 626px; transform: translate(-50%, -50%) scale(var(--phone-scale, 1)); }
  .story__phone { position: absolute; inset: 0; opacity: 0; }
  .story__phone.is-active { opacity: 1; }
  .story__phone img { width: 100%; filter: drop-shadow(var(--shadow-phone)); }
  .anim .story__progress {
    display: flex; flex-direction: column; gap: 10px;
    position: absolute; left: calc(50% + 200px); top: 50%; transform: translateY(-50%);
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; color: var(--text-3);
  }
  .story__progress li { position: relative; padding-left: 18px; opacity: .45; transition: opacity .4s, color .4s; }
  .story__progress li::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 1px; background: currentColor; transform: scaleX(.5); transform-origin: 0 50%; transition: transform .4s var(--ease-out); }
  .story__progress li.is-active { opacity: 1; color: var(--accent); }
  .story__progress li.is-active::before { transform: scaleX(1); }
}
@media (min-width: 1024px) and (max-height: 760px) { .story__phones { --phone-scale: .82; } }

/* ==========================================================================
   HOW (Why Mint exists)
   ========================================================================== */
.how { padding: 88px 0 var(--section-y); }
.how__inner { padding-inline: var(--pad-in); }
.how__head .h2 { margin-top: 8px; max-width: 585px; }
.how__lead { margin-top: 24px; font-size: 16px; letter-spacing: .32px; color: var(--text-3); }
.steps { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-inline: 34px; }
.step { padding: 18px; border-radius: 10px; transition: background-color .35s, transform .5s var(--ease-out); }
.step:hover { background: color-mix(in srgb, var(--text) 4%, transparent); transform: translateY(-4px); }
.step__media { border-radius: 8px; overflow: hidden; background: var(--step-media); }
.step__media img { width: 100%; transition: transform .8s var(--ease-out); }
.step:hover .step__media img { transform: scale(1.04); }
.step__k { margin-top: 12px; font-size: 10px; letter-spacing: 1.5px; color: var(--accent); }
.step__t { margin-top: 8px; font-weight: 700; font-size: 24px; line-height: 1.33; color: var(--text); }
.step__d { text-transform: capitalize; margin-top: 8px; font-weight: 500; font-size: 12px; line-height: 16px; color: var(--text-2); }

/* ==========================================================================
   DECISIONS (band, pinned)
   ========================================================================== */
.decisions__stage { position: relative; min-height: 571px; display: flex; align-items: center; }
.decisions .band__grid .gl--short { bottom: auto; height: 270px; }
.decisions .band__grid .gl--short + .gl--short { }
.decisions__inner { position: relative; padding: 89px 0 80px; }
.decisions__head { display: grid; grid-template-columns: auto 1fr 354px; gap: 36px; align-items: start; padding-inline: var(--pad-in); }
.decisions__eyebrow { color: rgba(255,255,255,.86); margin-bottom: 7px; }
.decisions__big { font-weight: 500; font-size: clamp(44px, 4.03vw, 58px); line-height: 1.02; letter-spacing: -.0076em; color: #fbfbf9; }
.decisions__big--r { font-size: clamp(42px, 3.9vw, 56px); }
/* Arrow sits centred in the space between the two halves of the line, at cap height of "Decisions" */
.decisions__arrow { justify-self: center; align-self: center; margin-top: 18px; width: clamp(72px, 8.3vw, 120px); color: #fff; display: block; line-height: 0; }
.decisions__arrow svg { width: 100%; height: auto; overflow: visible; }
.pillars { margin-top: 63px; display: grid; grid-template-columns: repeat(5, 1fr); margin-inline: -1px; }
.pillar {
  position: relative; display: flex; flex-direction: column; gap: 16px; padding: 36px 16px 16px;
  border: .5px dashed var(--on-dark); border-left: 0;
  min-height: 154px;
  transition: background-color .5s var(--ease-out);
}
.pillar:first-child { border-left: .5px dashed transparent; }
.pillar__n {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--on-dark); border-radius: 4px;
  font-weight: 700; font-size: 14px; line-height: 20px; color: var(--on-dark);
  transition: background-color .5s var(--ease-out), color .5s, border-color .5s;
}
.pillar__t { font-weight: 700; font-size: 20px; line-height: 1.35; color: var(--on-dark); }
.pillar.is-on { background: rgba(11, 13, 12, .14); }
.pillar.is-on .pillar__n { background: var(--gain); border-color: var(--gain); color: #0b0d0c; }
.decisions__foot { margin-top: 28px; text-align: center; font-weight: 500; font-size: clamp(22px, 1.94vw, 28px); letter-spacing: -.026em; color: #fbfbf9; }

/* ==========================================================================
   TRANSPARENCY
   ========================================================================== */
.transparency { padding: 88px 0 var(--section-y); overflow: hidden; }
.transparency__inner { display: grid; grid-template-columns: minmax(0, 497px) minmax(0, 1fr); gap: 40px; padding-inline: var(--pad-in); }
.transparency__copy .h2 { margin-top: 8px; max-width: 455px; letter-spacing: -.03em; line-height: 1.036; }
.transparency__lead { margin-top: 24px; font-size: clamp(19px, 1.67vw, 24px); letter-spacing: .32px; line-height: 1.33; color: var(--text-3); }
.transparency__lead + .transparency__lead { margin-top: 24px; }
.transparency .btn { margin-top: 24px; }
.transparency__visual { position: relative; min-height: 617px; }
.transparency__phone { position: absolute; left: 182px; top: 0; width: 292px; }
.transparency__phone img { width: 100%; filter: drop-shadow(var(--shadow-phone)); }
[data-theme="light"] .transparency__phone img { width: 280px; margin: 6px; }
.float-ico { position: absolute; display: block; filter: drop-shadow(0 18px 24px rgba(0,0,0,.28)); }
.float-ico img { width: 100%; }
.float-ico--1 { left: 452px; top: 163px; width: 61px; }
.float-ico--2 { left: 134px; top: 293px; width: 60px; }
.float-ico--3 { left: 438px; top: 423px; width: 79px; }
.float-ico--4 { left: 104px; top: 509px; width: 94px; }
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.float-ico { animation: bob 6s ease-in-out infinite; }
.float-ico--2 { animation-duration: 7s; animation-delay: -2s; }
.float-ico--3 { animation-duration: 5.5s; animation-delay: -1s; }
.float-ico--4 { animation-duration: 8s; animation-delay: -3s; }

/* ==========================================================================
   MARKET (dark)
   ========================================================================== */
.market { background: #0b0d0c; padding: 88px 0 var(--section-y); }
.market__inner { padding-inline: var(--pad-in); }
.market__row { display: grid; grid-template-columns: 391px 1fr 330px; align-items: center; gap: 10px; }
.market__title { margin-top: 18px; font-weight: 700; letter-spacing: -.01em; }
.market__phone { justify-self: center; width: 294px; }
.market__phone img { width: 100%; filter: drop-shadow(0 40px 70px rgba(0,0,0,.6)); }
.market__l1 { font-size: 16px; line-height: 1.6; letter-spacing: .32px; color: rgba(255,255,255,.84); }
.market__l2 { font-weight: 500; font-size: 16px; line-height: 1.6; letter-spacing: .32px; color: #f6f6f6; }
.mgrid {
  margin: 40px calc(-1 * var(--pad-in)) 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14);
}
.mgrid__cell { position: relative; background: #0b0d0c; padding: 26px 24px 50px; overflow: hidden; transition: background-color .4s; }
.mgrid__cell::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gain);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease-out);
}
.mgrid__cell:hover { background: #101511; }
.mgrid__cell:hover::after { transform: scaleX(1); }
.mgrid__n { text-transform: uppercase; font-size: 12px; letter-spacing: 1.3px; color: var(--gain); }
.mgrid__cell h3 { margin-top: 38px; font-weight: 500; font-size: 18px; letter-spacing: -.017em; line-height: 1.33; color: var(--on-dark); }
.mgrid__cell p { margin-top: 32px; font-size: 14px; line-height: 1.45; color: var(--on-dark-2); }

/* ==========================================================================
   WHY MINT
   ========================================================================== */
.why { background: var(--why-bg); padding: var(--section-y) 0 88px; transition: background-color .5s; }
.why .h2 { margin-top: 20px; max-width: 520px; letter-spacing: -.028em; line-height: 1.036; }
/* Solid fill so the section's dashed grid lines stop at the card block instead of cutting through the cards */
.why__cards { position: relative; z-index: 1; margin-top: 46px; display: grid; grid-template-columns: repeat(6, 1fr); background: var(--why-bg); transition: background-color .5s; }
.why__card {
  grid-column: span 2; position: relative;
  padding: 42px 24px; display: flex; flex-direction: column; gap: 12px;
  border: 1px solid var(--why-border); margin: 0 -1px -1px 0;
  transition: background-color .45s var(--ease-out);
}
.why__card--wide { grid-column: span 3; }
.why__card::before {
  content: ""; position: absolute; inset: -1px; border: 1px solid var(--accent); opacity: 0; transition: opacity .4s; pointer-events: none;
}
.why__card:hover { background: color-mix(in srgb, var(--text) 3%, transparent); z-index: 1; }
.why__card:hover::before { opacity: 1; }
.why__ico { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--icon-box); border-radius: 4px; color: var(--icon); transition: transform .5s var(--ease-out), background-color .4s; }
.why__card:hover .why__ico { transform: rotate(-8deg) scale(1.08); background: color-mix(in srgb, var(--icon) 12%, transparent); }
.why__card h3 { font-weight: 500; font-size: 20px; line-height: 28px; color: var(--text); }
.why__card p { margin-top: -8px; font-size: 16px; line-height: 24px; color: var(--text-3); }

/* ==========================================================================
   APP (photo band, theme independent)
   ========================================================================== */
.app {
  position: relative; overflow: hidden; color: #f4f5f3;
  background: linear-gradient(to bottom, var(--band-top), var(--band-bottom));
  min-height: 899px;
}
.app__bg { position: absolute; inset: 0; }
.anim .app__bg { top: -14vh; bottom: auto; height: calc(100% + 28vh); }
.app__bg img { width: 100%; height: 100%; object-fit: cover; }
.app .band__grid { position: absolute; inset: 0; }
.app .gl--app { bottom: 16%; }
.app__inner { position: relative; display: grid; grid-template-columns: 367px 1fr 284px; gap: 24px; padding: 141px 0 0; }
@media (min-width: 1024px) { .app { height: 899px; } }
.app__copy { padding-inline: 24px; }
.app__eyebrow { font-size: 10px; letter-spacing: 2.5px; line-height: 1.6; color: #f4f5f3; }
.app .h2-sm { margin-top: 12px; color: #f4f5f3; letter-spacing: -.045em; }
.app__lead { margin-top: 28px; font-family: var(--font-alt); font-size: 16px; line-height: 1.6; letter-spacing: .32px; color: #f4f5f3; }
.stores { margin-top: 24px; display: flex; gap: 8px; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 8px 10px 10px; flex: 1 1 140px; max-width: 180px;
  background: #0b0d0c; border: 1px solid #242b26; border-radius: 8px; color: #f6f7f4;
  transition: transform .4s var(--ease-out), border-color .3s, box-shadow .4s;
}
.store:hover { transform: translateY(-3px); border-color: #3a453d; box-shadow: 0 14px 30px -14px rgba(0,0,0,.7); }
.store span { display: flex; flex-direction: column; font-family: var(--font-alt); }
.store small { font-size: 10px; line-height: 13px; letter-spacing: 1.1px; opacity: .82; text-transform: uppercase; }
.store b { font-weight: 500; font-size: 14.5px; line-height: 18.1px; letter-spacing: -.14px; }
.app__phone { justify-self: center; width: 300px; margin-top: 103px; }
.app__phone img { width: 100%; filter: drop-shadow(0 40px 70px rgba(0,0,0,.45)); }
.checks li {
  position: relative; display: flex; align-items: center; gap: 11px; padding: 13px 0; min-height: 48px;
  font-family: var(--font-alt); font-size: 15px; line-height: 21px; color: #fbfbf9;
  border-bottom: 1px dashed rgba(255,255,255,.24);
}
.checks li + li { margin-top: 24px; }
.checks li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gain); flex: none; transition: transform .4s var(--ease-out); }
.checks li:hover::before { transform: scale(1.8); }
.app__all { margin-top: 17px; font-family: var(--font-alt); font-weight: 500; font-size: 23px; line-height: 1.6; letter-spacing: -.018em; color: rgba(255,255,255,.9); }
.app__rocks { position: absolute; left: 0; right: 0; bottom: -10px; height: 288px; pointer-events: none; }
.app__rocks img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }

/* ==========================================================================
   CLOSER
   ========================================================================== */
.closer { position: relative; background: var(--closer-bg); transition: background-color .5s; }
.closer__lines { position: absolute; inset: 0; left: 0; right: 0; pointer-events: none; }
.closer__v-short { bottom: auto; height: 76px; }
.closer__v-short--b { top: auto; bottom: 0; }
.closer__h1 { top: 76px; }
.closer__h2 { bottom: 80px; }
.closer__inner { position: relative; text-align: center; padding: 107px 0 106px; display: flex; flex-direction: column; align-items: center; }
.closer__title { font-weight: 500; font-size: clamp(32px, 3.06vw, 44px); line-height: 1.08; letter-spacing: -.01em; color: var(--text); max-width: 900px; }
.closer__sub { margin-top: 26px; font-size: 18px; line-height: 1.55; letter-spacing: .2px; color: var(--text-3); }
.closer__then { margin-top: 14px; font-weight: 500; font-size: 30px; letter-spacing: -.024em; color: var(--text-2); }
.closer .btn { margin-top: 30px; }

/* ==========================================================================
   FOOTER (theme independent)
   ========================================================================== */
.footer {
  position: relative; overflow: hidden; color: #ededed;
  background: linear-gradient(to bottom, #655c5b, #131313);
  min-height: 1239px;
}
.footer__lines { position: absolute; inset: 0; left: 0; right: 0; pointer-events: none; }
.footer__v-short { bottom: auto; height: 372px; }
.footer__h.gl--h { top: 372px; }
.footer__inner { position: relative; z-index: 2; padding: 102px 24px 64px; }
.footer__top { display: grid; grid-template-columns: 351px 1fr 1fr 1fr; gap: 56px; }
.footer__name { font-weight: 500; font-size: 15px; letter-spacing: -.2px; color: #ededed; }
.footer__desc { margin-top: 16px; font-size: 14px; letter-spacing: .32px; line-height: 1.36; color: #9aa39d; }
.footer__col { padding-left: 0; }
.footer__h { font-size: 10px; letter-spacing: 1.6px; color: #6e6e6a; text-transform: uppercase; }
.footer__col ul { margin-top: 18px; display: grid; gap: 11px; }
.footer__col a { position: relative; display: inline-flex; gap: 6px; font-size: 14px; letter-spacing: .32px; line-height: 19px; color: #9aa39d; transition: color .3s; }
.footer__col a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform .45s var(--ease-out); }
.footer__col a:hover { color: #ededed; }
.footer__col a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.footer__ext span { opacity: .6; transition: transform .35s var(--ease-out); }
.footer__ext a:hover span { transform: translate(2px, -2px); }
.footer__info { margin-top: 79px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 16px 0; }
.footer__info p, .footer__info a { font-size: 11px; letter-spacing: 1.3px; color: rgba(255,255,255,.36); transition: color .3s; }
.footer__info a:hover { color: rgba(255,255,255,.8); }
.footer__legal { padding: 8px 0; display: grid; gap: 8px; }
.footer__legal p { font-size: 11.5px; line-height: 19px; letter-spacing: .2px; color: #6e6e6a; max-width: 1152px; }
.footer__scene { position: absolute; left: 0; right: 0; top: 607px; height: 745px; z-index: 1; pointer-events: none; }
.footer__land { position: absolute; inset: 0; container-type: size; }
.footer__land img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
/* The badge sits exactly on the moon baked into the landscape. --u is one source-image
   pixel (1440 x 772 artboard) after object-fit: cover, so it tracks the image at every size. */
.footer__badge {
  --u: max(calc(100cqw / 1440), calc(100cqh / 772));
  position: absolute; left: calc(50% + var(--u) * 3); top: calc(var(--u) * 133.3);
  width: calc(var(--u) * 128); height: calc(var(--u) * 125); transform: translate(-50%, -50%);
  border-radius: 50%; background: #fff; display: grid; place-items: center;
  box-shadow: 0 0 calc(var(--u) * 40) calc(var(--u) * 4) rgba(255,255,255,.18), 0 20px 50px -20px rgba(0,0,0,.6);
}
.footer__badge img { width: 81%; height: auto; aspect-ratio: 1; }

/* ==========================================================================
   SCROLLYTELLING STATES
   Hidden states only apply once JS confirms animations are running (.anim).
   ========================================================================== */
.anim [data-reveal],
.anim [data-rise],
.anim [data-stagger] > *,
.anim [data-hero-fade],
.anim [data-hero-phone] { opacity: 0; }
.anim .hero__line { opacity: 0; }

/* SplitText word/line helpers */
.split-line { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.w { display: inline-block; will-change: opacity, transform; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1240px) {
  .health__inner { grid-template-columns: 300px minmax(0, 1fr) 330px; }
  .health__hand { justify-self: center; }
  .research__inner { grid-template-columns: 1fr 300px 1fr; gap: 32px; }
  .market__row { grid-template-columns: 1fr 300px 1fr; gap: 24px; }
  .app__inner { grid-template-columns: 1fr 300px 1fr; }
  .phones { gap: 32px; }
  .phone { width: 240px; }
  .float-ico--1 { left: 420px; }
  .transparency__phone { left: 120px; }
  .float-ico--2 { left: 70px; } .float-ico--4 { left: 50px; } .float-ico--1, .float-ico--3 { left: 400px; }
}

@media (max-width: 1023px) {
  :root { --section-y: 88px; --pad-in: 0px; }
  .hero__scene { overflow: hidden; height: calc(var(--sw) * .344); }
  .hero__ground { bottom: 0; }
  .gap__inner { grid-template-columns: 1fr; gap: 48px; }
  .gap__right { align-self: start; }
  .phones { gap: 20px; overflow-x: auto; justify-content: flex-start; padding-bottom: 8px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .phones::-webkit-scrollbar { display: none; }
  .phone { width: 240px; scroll-snap-align: center; }
  .phones--single { justify-content: center; }

  .health__inner { grid-template-columns: 1fr; min-height: 0; padding: 72px 0 0; gap: 40px; }
  .health__intro { padding: 0; }
  .health__list { padding: 0; order: 2; }
  .health__hand { order: 3; margin: 0 auto -3px; width: min(420px, 90%); }

  .research__inner { grid-template-columns: 1fr; gap: 48px; padding: 88px 0; }
  .research__phone { width: min(285px, 70vw); }
  .research__dots { width: 100%; transform: translateX(-50%); }

  .steps { grid-template-columns: 1fr; padding-inline: 16px; gap: 8px; }
  .step { display: grid; grid-template-columns: 200px 1fr; column-gap: 20px; align-items: center; }
  .step__media { grid-row: span 4; }
  .card__head { padding: 28px 24px 0; }
  .card__foot { padding: 20px 24px 24px; }

  .decisions__head { grid-template-columns: 1fr; gap: 12px; }
  .decisions__arrow { display: none; }
  .pillars { grid-template-columns: repeat(2, 1fr); margin-inline: 0; }
  .pillar { border: .5px dashed var(--on-dark); margin: 0 -.5px -.5px 0; min-height: 132px; padding-top: 24px; }
  .pillar:first-child { border-left: .5px dashed var(--on-dark); }
  .pillar:last-child { grid-column: span 2; }

  .transparency__inner { grid-template-columns: 1fr; gap: 56px; }
  .transparency__visual { min-height: 0; height: 640px; max-width: 560px; width: 100%; margin-inline: auto; }
  .transparency__phone { left: 50%; transform: translateX(-50%); }
  .float-ico--1 { left: calc(50% + 150px); } .float-ico--2 { left: calc(50% - 200px); }
  .float-ico--3 { left: calc(50% + 140px); } .float-ico--4 { left: calc(50% - 230px); }

  .market__row { grid-template-columns: 1fr; gap: 40px; }
  .market__phone { width: min(294px, 72vw); }
  .mgrid { grid-template-columns: repeat(2, 1fr); margin-inline: 0; }

  .why__cards { grid-template-columns: repeat(2, 1fr); }
  .why__card, .why__card--wide { grid-column: span 1; }
  .why__card:last-child { grid-column: span 2; }

  .app__inner { grid-template-columns: 1fr; padding: 96px 0 240px; gap: 48px; }
  .app__copy { padding: 0; }
  .app__phone { margin-top: 0; width: min(300px, 72vw); }
  .app__list { max-width: 420px; }

  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer__brand { grid-column: span 2; }
  .footer__info { justify-content: flex-start; column-gap: 32px; }
}

@media (max-width: 767px) {
  :root { --section-y: 72px; }
  .nav__inner { padding: 6px 4px 6px 0; }
  .nav__logo img { width: 52px; height: 52px; }
  .nav__download { padding: 0 12px; font-size: 12px; letter-spacing: .6px; }
  .hero { padding-top: 112px; }
  .hero__sub br { display: none; }
  /* Grid lines: keep the two edges, in the gutter, so they never cross text */
  .gl--v[style*="--x:33"], .gl--v[style*="--x:66"], .gl--v[style*="--x:67"] { display: none; }
  .gl--v[style*="--x:0%"] { left: -10px; }
  .gl--v[style*="--x:100%"] { left: calc(100% + 9px); }
  .section-grid::before { width: calc(100% - 20px); background-image: repeating-linear-gradient(to bottom, var(--grid) 0 4px, transparent 4px 8px), repeating-linear-gradient(to bottom, var(--grid) 0 4px, transparent 4px 8px); background-position: 0 0, 100% 0; }
  .hero__body { font-size: 15px; }
  .gap__visual { margin-inline: auto; }
  .qlist__item { gap: 14px; padding: 14px; }
  .tabs { display: grid; width: 100%; }
  .step { grid-template-columns: 1fr; }
  .step__media { grid-row: auto; }
  .pillars { grid-template-columns: 1fr; }
  .pillar:last-child { grid-column: auto; }
  .pillar { flex-direction: row; align-items: center; min-height: 0; padding: 16px; }
  .transparency__visual { height: 560px; }
  .transparency__phone { width: 250px; }
  [data-theme="light"] .transparency__phone img { width: 240px; margin: 5px; }
  .float-ico--1 { left: calc(50% + 100px); top: 110px; } .float-ico--2 { left: calc(50% - 160px); top: 230px; }
  .float-ico--3 { left: calc(50% + 96px); top: 360px; width: 64px; } .float-ico--4 { left: calc(50% - 170px); top: 430px; width: 76px; }
  .mgrid { grid-template-columns: 1fr; }
  .mgrid__cell { padding: 22px 20px 26px; }
  .mgrid__cell h3 { margin-top: 18px; }
  .mgrid__cell p { margin-top: 8px; }
  .why__cards { grid-template-columns: 1fr; }
  .why__card:last-child { grid-column: auto; }
  .why__card { padding: 28px 20px; }
  .closer__inner { padding: 112px 0; }
  .closer__then { font-size: 26px; }
  .footer { min-height: 0; }
  .footer__inner { padding: 72px 0 470px; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__brand { grid-column: auto; }
  .footer__scene { top: auto; bottom: 0; height: 420px; }
  .footer__v-short, .footer__h.gl--h { display: none; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .menu { clip-path: none; }
  .menu__list a { transform: none; }
}
