/* ==========================================================
   Tabmate landing template
   Product name: BRAND in main.js (text) + logo SVGs in index.html.
   ========================================================== */
:root {
  --brand-name: "Tabmate";

  --ink: #050606;
  --paper: #F3F4F1;
  --paper-2: #FBFBF9;
  --teal: #0B2B2A;
  --lime: #C6FF3D;
  --white: #FFFFFF;
  --grey: #8C928F;
  --line-light: rgba(11, 43, 42, 0.12);
  --line-dark: rgba(255, 255, 255, 0.12);

  --serif: "Instrument Serif", "Newsreader", Georgia, serif;
  --sans: "Geist", "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --edge: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  --ease: cubic-bezier(.2, .7, .1, 1);
  --shadow-soft: 0 1px 0 rgba(255,255,255,.7) inset, 0 0 0 1px rgba(11,43,42,.07), 0 30px 60px -28px rgba(11,43,42,.28), 0 12px 24px -16px rgba(11,43,42,.16);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  background: var(--ink);
  color: var(--white);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button, input { font: inherit; color: inherit; }
b { font-weight: 500; }
::selection { background: var(--lime); color: var(--ink); }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
[data-nav="light"] :focus-visible { outline-color: var(--teal); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--lime); color: var(--ink); padding: 10px 14px; border-radius: 8px; font-family: var(--mono); font-size: 12px; text-decoration: none; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.dim { color: var(--grey); }
[data-nav="light"] .dim { color: rgba(11,43,42,.42); }

.serif-xl {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 5.6vw, 88px); line-height: 1; letter-spacing: -.02em;
  text-wrap: balance;
}

/* split helpers (built in JS) */
.w { display: inline-block; }

/* ---------- Buttons ---------- */
.btn {
  --bg: #2A2E2D; --fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  height: 34px; padding: 0 14px;
  border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.btn--lime { --bg: var(--lime); --fg: var(--ink); }
.btn--lime:hover { --bg: #D4FF6A; }
.btn--white { --bg: var(--white); --fg: var(--ink); }
.btn--white:hover { --bg: #E8EAE6; }
.btn--grey { --bg: rgba(255,255,255,.12); --fg: var(--white); }
.btn--grey:hover { --bg: rgba(255,255,255,.2); }
.btn--lg { height: 46px; padding: 0 22px; }

/* ---------- Logo ---------- */
.nav__logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; color: inherit; }
.logo__mark { width: 22px; height: 27px; stroke-width: 2px; }
.logo__mark use, .logo__mark path { vector-effect: non-scaling-stroke; }
.logo__word { width: 86px; height: 16px; fill: currentColor; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; z-index: 50;
  transform: translateX(-50%);
  width: min(calc(100% - 24px), 1120px);
}
.nav__bar {
  display: flex; align-items: center; gap: 22px;
  height: 54px; padding: 0 8px 0 18px;
  border-radius: 999px;
  background: rgba(18, 21, 21, .5);
  border: 1px solid rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  color: var(--white);
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.nav__links { display: flex; gap: 22px; }
.nav__links a { font-size: 14px; text-decoration: none; opacity: .72; transition: opacity .2s; }
.nav__links a:hover { opacity: 1; }
.nav__ask {
  flex: 1 1 auto; min-width: 120px; max-width: 200px; margin-left: auto;
  display: flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 12px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  transition: background-color .5s, border-color .5s;
}
.nav__ask-caret { font-family: var(--mono); font-size: 12px; color: var(--lime); transition: color .5s; }
.nav__ask input { width: 100%; background: none; border: 0; outline: 0; font-family: var(--mono); font-size: 12px; }
.nav__ask input::placeholder { color: currentColor; opacity: .5; }
.nav__ask:focus-within { border-color: var(--lime); }
.nav__cta { display: flex; gap: 6px; }
.nav__menu, .nav__panel { display: none; }

.nav.is-light .nav__bar { background: rgba(251,251,249,.72); border-color: rgba(11,43,42,.08); color: var(--teal); }
.nav.is-light .nav__ask { background: rgba(11,43,42,.05); border-color: rgba(11,43,42,.07); }
.nav.is-light .nav__ask-caret { color: var(--teal); }
.nav.is-light .nav__ask:focus-within { border-color: var(--teal); }
.nav.is-light .btn--white { --bg: var(--teal); --fg: var(--white); }
.nav.is-light .btn--grey { --bg: rgba(11,43,42,.08); --fg: var(--teal); }

@media (max-width: 1080px) { .nav__links { display: none; } }
@media (max-width: 860px) {
  .nav__ask, .nav__cta { display: none; }
  .nav__bar { justify-content: space-between; padding-right: 6px; height: 52px; }
  .nav__menu {
    display: inline-flex; align-items: center; gap: 10px;
    height: 40px; padding: 0 7px 0 14px; border: 0; border-radius: 999px;
    background: rgba(255,255,255,.1); cursor: pointer;
    font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  }
  .nav.is-light .nav__menu { background: rgba(11,43,42,.07); }
  .nav__menu-icon { position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--lime); }
  .nav__menu-icon i { position: absolute; left: 8px; right: 8px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
  .nav__menu-icon i:first-child { top: 11px; }
  .nav__menu-icon i:last-child { top: 16px; }
  .nav.is-open .nav__menu-icon i:first-child { transform: translateY(2.5px) rotate(45deg); }
  .nav.is-open .nav__menu-icon i:last-child { transform: translateY(-2.5px) rotate(-45deg); }
  .nav__panel:not([hidden]) {
    display: flex; flex-direction: column;
    margin-top: 8px; padding: 10px 16px 16px;
    border-radius: 24px;
    background: rgba(18,21,21,.92); border: 1px solid rgba(255,255,255,.08);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  }
  .nav__panel > a { padding: 12px 2px; font-family: var(--serif); font-size: 28px; line-height: 1.1; text-decoration: none; border-bottom: 1px solid var(--line-dark); }
  .nav__panel-cta { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; }
  .nav.is-light .nav__panel { background: rgba(251,251,249,.96); color: var(--teal); border-color: rgba(11,43,42,.08); }
  .nav.is-light .nav__panel > a { border-color: var(--line-light); }
  .nav.is-light .nav__panel .btn--white { --bg: var(--teal); --fg: var(--white); }
  .nav.is-light .nav__panel .btn--grey { --bg: rgba(11,43,42,.08); --fg: var(--teal); }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); }
.hero__stage {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden; display: grid; place-items: center;
}
.hero__media { position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 70%, #1c3a37 0%, #081312 45%, var(--ink) 80%); }
.hero__poster, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { opacity: 0; transition: opacity .8s var(--ease); }
.hero__video.is-ready { opacity: 1; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,6,6,.5) 0%, rgba(5,6,6,0) 24%, rgba(5,6,6,0) 55%, rgba(5,6,6,.85) 100%),
    radial-gradient(60% 50% at 50% 50%, rgba(5,6,6,.4), rgba(5,6,6,0) 70%);
}
.hero__title {
  position: relative; z-index: 2;
  max-width: 11ch; padding: 0 var(--gutter);
  text-align: center;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(56px, 10vw, 172px);
  line-height: .92; letter-spacing: -.025em;
  text-wrap: balance;
}
.hero__title .w { will-change: transform, opacity, filter; }
.hero__intro {
  position: absolute; z-index: 2; left: var(--edge); bottom: clamp(32px, 7vh, 72px);
  display: grid; gap: 12px; max-width: 32ch;
}
.hero__intro .mono { color: var(--lime); }
.hero__intro-line { font-size: 17px; line-height: 1.4; color: rgba(255,255,255,.82); }
.hero__outro {
  position: absolute; z-index: 2; left: 50%; bottom: clamp(32px, 8vh, 80px);
  transform: translateX(-50%);
  width: min(100% - 2 * var(--gutter), 520px);
  display: grid; justify-items: center; gap: 22px; text-align: center;
  opacity: 0; visibility: hidden;
}
.hero__outro p { color: rgba(255,255,255,.78); font-size: 17px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
@media (max-width: 860px) {
  .hero__intro { right: var(--gutter); }
  .hero__title { font-size: clamp(52px, 15vw, 96px); }
  .hero__outro p { font-size: 15px; }
}

/* ---------- Light "sheet" sections ---------- */
.sheet {
  position: relative; z-index: 2;
  background: var(--paper); color: var(--teal);
  margin-top: -28px; border-radius: 28px 28px 0 0;
  overflow: hidden;
}
.guides { position: absolute; inset: 0; pointer-events: none; }
.guides::before, .guides::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 1px;
  background: repeating-linear-gradient(to bottom, rgba(11,43,42,.16) 0 5px, transparent 5px 11px);
}
.guides::before { left: var(--edge); }
.guides::after { right: var(--edge); }

/* ---------- Product (live mock) ---------- */
.product { padding: clamp(120px, 20vh, 220px) 0 clamp(110px, 18vh, 200px); }
.product__grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.product__copy .serif-xl { max-width: 10ch; font-size: clamp(44px, 5vw, 80px); }
.features { margin-top: clamp(40px, 7vh, 72px); }
.feature {
  position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 18px; align-items: center;
  padding: 22px 0; color: rgba(11,43,42,.78); font-size: 16px;
}
.feature b { color: var(--teal); }
.feature::before {
  content: ""; position: absolute; top: 0; left: -100vw; right: -100vw; height: 1px;
  background: var(--line-light);
}
.feature:last-child::after {
  content: ""; position: absolute; bottom: 0; left: -100vw; right: -100vw; height: 1px;
  background: var(--line-light);
}
.feature svg { width: 36px; height: 36px; fill: none; stroke: var(--teal); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.mock-fit { position: relative; z-index: 1; width: 100%; min-width: 0; overflow: visible; contain: inline-size; }
.mock {
  --mw: 760px; --mh: 500px;
  position: relative; width: var(--mw); height: var(--mh);
  transform-origin: 0 0;
  background: var(--paper-2); color: var(--teal);
  border-radius: 18px; box-shadow: var(--shadow-soft);
  overflow: hidden;
  font-family: var(--sans); font-size: 12px; line-height: 1.35;
}
.mock__bar { position: relative; height: 40px; display: flex; align-items: center; padding: 0 14px; border-bottom: 1px solid rgba(11,43,42,.06); }
.dots { display: flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.dots i:nth-child(2) { background: #FEBC2E; }
.dots i:nth-child(3) { background: #28C840; }
.mock__url {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px;
  width: 300px; height: 24px; justify-content: center;
  border-radius: 7px; background: rgba(11,43,42,.05); color: rgba(11,43,42,.55); font-size: 11px;
}
.mock__url svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.mock__ext { margin-left: auto; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--teal); color: var(--lime); }
.mock__ext svg { width: 12px; height: 15px; stroke-width: 1.6px; }
.mock__ext svg use { vector-effect: non-scaling-stroke; }
.mock__body { display: grid; grid-template-columns: 1fr 240px; height: calc(var(--mh) - 40px); }
.app { display: grid; grid-template-columns: 44px 1fr; }
.app__side { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 18px; border-right: 1px solid rgba(11,43,42,.06); }
.app__side i { width: 14px; height: 14px; border-radius: 4px; background: rgba(11,43,42,.1); }
.app__side i.on { background: rgba(11,43,42,.32); }
.app__main { padding: 18px 20px; }
.app__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.app__title { font-family: var(--serif); font-size: 24px; letter-spacing: -.01em; }
.app__btns { display: flex; gap: 6px; }
.app__btn { padding: 5px 10px; border-radius: 7px; background: rgba(11,43,42,.06); font-size: 11px; }
.app__btn--dark { background: var(--teal); color: var(--paper); }
.row { display: grid; grid-template-columns: 1.3fr 1fr 64px; align-items: center; height: 44px; border-bottom: 1px solid rgba(11,43,42,.06); padding: 0 6px; border-radius: 6px; transition: background-color .4s var(--ease); }
.row--head { height: 28px; color: rgba(11,43,42,.45); font-size: 10.5px; }
.row span { display: flex; align-items: center; gap: 8px; }
.row b { display: block; height: 6px; border-radius: 3px; background: rgba(11,43,42,.14); }
.row .av { width: 18px; height: 18px; border-radius: 50%; background: #DCE5DF; }
.row:nth-child(3n) .av { background: #E6E1D6; }
.row:nth-child(3n+1) .av { background: #D9E2EA; }
.row.is-active { background: rgba(198,255,61,.22); }
.pill { justify-self: start; padding: 2px 8px; border-radius: 99px; font-size: 10.5px; }
.p1 { background: rgba(11,43,42,.06); }
.p2 { background: #E9F1FF; color: #2A4A7A; }
.p3 { background: rgba(198,255,61,.35); }
.panel { position: relative; background: #F4F5F1; border-left: 1px solid rgba(11,43,42,.07); padding: 16px 14px; display: flex; flex-direction: column; gap: 8px; }
.panel__head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 13px; margin-bottom: 8px; }
.panel__live { display: flex; align-items: center; gap: 5px; font-weight: 400; font-size: 10.5px; color: rgba(11,43,42,.55); }
.panel__live i { width: 6px; height: 6px; border-radius: 50%; background: #6CC000; }
.panel__label { font-size: 10.5px; color: rgba(11,43,42,.5); }
.panel__empty { padding: 10px 12px; border-radius: 10px; border: 1px dashed rgba(11,43,42,.18); color: rgba(11,43,42,.5); }
.auto {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 52px; padding: 10px 12px; border-radius: 11px;
  background: var(--white); box-shadow: 0 0 0 1px rgba(11,43,42,.06), 0 6px 14px -10px rgba(11,43,42,.3);
  opacity: 0;
}
.auto p { font-size: 12px; line-height: 1.3; min-height: 1.3em; }
.toggle { position: relative; flex: none; width: 28px; height: 16px; border-radius: 99px; background: rgba(11,43,42,.14); transition: background-color .35s var(--ease); }
.toggle i { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .35s var(--ease); }
.auto.is-on .toggle { background: var(--teal); }
.auto.is-on .toggle i { transform: translateX(12px); background: var(--lime); }

.mpill {
  position: absolute; left: 44px; right: 240px; bottom: 22px; margin: 0 auto; width: max-content;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px; border-radius: 99px;
  background: var(--white); box-shadow: 0 0 0 1px rgba(11,43,42,.07), 0 10px 24px -12px rgba(11,43,42,.35);
  font-size: 12px; color: rgba(11,43,42,.75);
  opacity: 0;
}
.spin { width: 13px; height: 13px; border-radius: 50%; border: 1.6px solid rgba(11,43,42,.12); border-top-color: #6CC000; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 16px;
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 0 0 1px rgba(11,43,42,.06), 0 16px 32px -18px rgba(11,43,42,.4);
  color: var(--teal);
}
.toast--a { position: absolute; top: 52px; right: 254px; width: 252px; opacity: 0; }
.toast__icon { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--teal); color: var(--lime); }
.toast__icon svg { width: 14px; height: 17px; stroke-width: 1.6px; }
.toast__icon svg use { vector-effect: non-scaling-stroke; }
.toast__icon--ok svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.toast__text { display: grid; gap: 1px; line-height: 1.3; }
.toast__text b { font-size: 12px; font-weight: 600; }
.toast__text span { font-size: 12px; color: rgba(11,43,42,.68); }
.toast__time { align-self: start; margin-left: auto; font-size: 11px; color: rgba(11,43,42,.4); }

.chat {
  position: absolute; left: 64px; bottom: 22px; max-width: 280px;
  padding: 9px 13px; border-radius: 14px 14px 14px 4px;
  background: var(--teal); color: var(--paper); font-size: 12.5px;
  opacity: 0;
}
.chat__who { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--lime); margin-bottom: 2px; }
.cursor { position: absolute; top: 0; left: 0; width: 20px; height: 20px; z-index: 5; fill: var(--ink); stroke: var(--white); stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }

/* final state when motion is off */
.mock.is-static .auto, .mock.is-static .chat, .mock.is-static #mockToast2 { opacity: 1; }
.mock.is-static .panel__empty { display: none; }
.mock.is-static .cursor { transform: translate(560px, 300px); }

@media (max-width: 960px) {
  .product__grid { grid-template-columns: minmax(0, 1fr); }
  .product__copy .serif-xl { max-width: 12ch; }
}

/* ---------- Works with ---------- */
.works { background: var(--paper); color: var(--teal); padding: clamp(60px, 10vh, 120px) 0 clamp(120px, 20vh, 220px); position: relative; z-index: 2; }
.works__head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(56px, 9vh, 96px); }
.works__head .serif-xl { max-width: 13ch; }
.works__sub { max-width: 36ch; color: rgba(11,43,42,.72); justify-self: end; }
.grid {
  --plus: rgba(11,43,42,.5);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-light); border-left: 1px solid var(--line-light);
}
.cell {
  position: relative; min-height: clamp(128px, 14vw, 180px);
  padding: 22px 22px 20px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light);
}
.cell::before, .cell::after {
  content: ""; position: absolute; width: 11px; height: 11px; z-index: 1;
  background:
    linear-gradient(var(--plus), var(--plus)) center / 11px 1px no-repeat,
    linear-gradient(var(--plus), var(--plus)) center / 1px 11px no-repeat;
}
.cell::before { left: -6px; top: -6px; }
.cell::after { right: -6px; bottom: -6px; }
.cell__name { font-family: var(--serif); font-size: clamp(24px, 2.3vw, 34px); line-height: 1.05; letter-spacing: -.01em; }
.cell__tool { font-family: var(--mono); font-size: 11.5px; color: rgba(11,43,42,.45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell--any { background: var(--teal); color: var(--paper); }
.cell--any .cell__tool { color: var(--lime); }
@media (max-width: 860px) {
  .works__head { grid-template-columns: 1fr; }
  .works__sub { justify-self: start; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .cell { padding: 16px 14px; min-height: 120px; }
  .cell__tool { font-size: 10px; }
}

/* ---------- Loop + stats ---------- */
.loop { position: relative; overflow: hidden; background: var(--ink); padding: clamp(140px, 22vh, 240px) 0 clamp(90px, 14vh, 150px); }
.loop__video { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; opacity: .45; }
.loop__shade { position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink) 0%, rgba(5,6,6,.3) 30%, rgba(5,6,6,.5) 70%, var(--ink) 100%); }
.loop__inner { position: relative; z-index: 1; }
.loop__title { max-width: 15ch; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6.4vw, 104px); line-height: .98; letter-spacing: -.02em; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(80px, 14vh, 160px); border-top: 1px solid var(--line-dark); }
.stat { display: grid; gap: 8px; padding: 28px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.stat__num { font-family: var(--serif); font-size: clamp(72px, 8vw, 128px); line-height: .9; }
.stat__label { max-width: 24ch; color: rgba(255,255,255,.62); font-size: 15px; }
@media (max-width: 700px) {
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line-dark); grid-template-columns: 80px 1fr; align-items: end; }
  .stat__num { font-size: 72px; }
}

/* ---------- How it works ---------- */
.how { background: var(--ink); }
.how__pin { height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 5vh, 56px); overflow: hidden; }
.how__top { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.how__title { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5.6vw, 88px); letter-spacing: -.02em; line-height: 1; }
.how__progress { position: relative; width: min(280px, 26vw); height: 1px; background: var(--line-dark); margin-bottom: 16px; }
.how__progress i { position: absolute; inset: 0; background: var(--lime); transform: scaleX(0); transform-origin: left; }
.how__track { display: flex; gap: clamp(20px, 3vw, 48px); padding: 0 var(--gutter) 0 var(--edge); width: max-content; will-change: transform; }
.step { width: min(70vw, 900px, calc((100vh - 340px) * 1.79)); display: grid; gap: 22px; }
.step__media {
  position: relative; aspect-ratio: 1800 / 1004; border-radius: 16px; overflow: hidden;
  background: radial-gradient(90% 90% at 30% 20%, #17403c, #0a1716);
}
.step__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }
.step__text { display: grid; grid-template-columns: 52px 1fr 1fr; gap: 10px 28px; align-items: start; }
.step__num { color: var(--lime); padding-top: 10px; }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.4vw, 38px); line-height: 1.05; letter-spacing: -.01em; }
.step p { color: rgba(255,255,255,.64); font-size: 15.5px; max-width: 38ch; }
@media (max-width: 1100px) { .step__text { grid-template-columns: 44px 1fr; } .step__text p { grid-column: 2; } }
@media (max-width: 900px) {
  .how__pin { height: auto; padding: 120px 0 80px; }
  .how__progress { display: none; }
  .how__track { flex-direction: column; width: 100%; gap: 64px; padding: 0 var(--gutter); }
  .step { width: 100%; }
}

/* ---------- Calculator ---------- */
.calc { padding: clamp(120px, 20vh, 220px) 0; }
.calc__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.calc__inputs .serif-xl { max-width: 12ch; }
.calc__sub { margin: 22px 0 52px; color: rgba(11,43,42,.68); }
.field { padding: 22px 0; border-top: 1px solid var(--line-light); }
.field:last-of-type { border-bottom: 1px solid var(--line-light); }
.field__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.field label { font-size: 15.5px; color: rgba(11,43,42,.8); }
.field output { font-family: var(--serif); font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
input[type="range"] { --p: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--teal) var(--p), rgba(11,43,42,.14) var(--p)); }
input[type="range"]::-moz-range-track { height: 2px; background: rgba(11,43,42,.14); }
input[type="range"]::-moz-range-progress { height: 2px; background: var(--teal); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -9px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--teal); box-shadow: 0 2px 6px rgba(11,43,42,.2); transition: transform .25s var(--ease); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--teal); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.calc__note { margin-top: 18px; color: rgba(11,43,42,.55); font-size: 13px; }

.calc__side { position: sticky; top: 100px; display: grid; gap: 14px; }
.toast--float { width: min(100%, 340px); justify-self: end; opacity: 0; }
.card {
  position: relative; background: var(--teal); color: var(--paper);
  border-radius: 24px; padding: clamp(26px, 3vw, 40px);
  box-shadow: 0 40px 80px -40px rgba(11,43,42,.6);
}
.card__row { display: grid; gap: 6px; padding: 18px 0; border-bottom: 1px solid rgba(243,244,241,.12); }
.card__row:first-child { padding-top: 0; }
.card__label { font-size: 14px; color: rgba(243,244,241,.62); }
.card__num { font-family: var(--serif); font-size: clamp(60px, 6.4vw, 100px); line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.card__num--lime { color: var(--lime); }
.card__equiv { padding: 16px 0 6px; color: rgba(243,244,241,.7); font-size: 15px; }
.card__form { margin-top: 18px; display: grid; gap: 10px; }
.card__form-label { font-size: 14px; color: rgba(243,244,241,.62); }
.card__form-row { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(243,244,241,.07); border: 1px solid rgba(243,244,241,.12); }
.card__form-row:focus-within { border-color: var(--lime); }
.card__form input { flex: 1; min-width: 0; padding: 0 14px; background: none; border: 0; outline: 0; font-size: 16px; }
.card__form input::placeholder { color: rgba(243,244,241,.42); }
.card__form .btn { height: 42px; }
.card__error { min-height: 1.4em; font-size: 14px; color: #FFB4A8; }
.card__success { margin-top: 18px; padding: 20px; border-radius: 16px; background: var(--lime); color: var(--ink); }
.card__success-title { font-family: var(--serif); font-size: 28px; line-height: 1.1; }
@media (max-width: 900px) {
  .calc__grid { grid-template-columns: 1fr; }
  .calc__side { position: relative; top: 0; }
  .toast--float { justify-self: start; }
}
@media (max-width: 420px) {
  .card__form-row { flex-direction: column; border-radius: 20px; }
  .card__form input { height: 44px; }
}

/* ---------- Close + footer ---------- */
.close { background: var(--teal); color: var(--paper); padding: clamp(120px, 20vh, 220px) 0 clamp(100px, 16vh, 180px); }
.close__inner { display: grid; justify-items: center; text-align: center; }
.close__mark { width: clamp(90px, 11vw, 150px); height: auto; aspect-ratio: 624 / 760; color: var(--lime); margin-bottom: clamp(40px, 7vh, 72px); }
.close__mark path { stroke-width: 1.5px; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.close__title { font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 10vw, 168px); line-height: .92; letter-spacing: -.025em; max-width: 10ch; }
.close .dim { color: rgba(243,244,241,.45); }
.close__inner > p { max-width: 40ch; margin: 32px 0 36px; color: rgba(243,244,241,.74); }
.foot { background: var(--teal); color: var(--paper); padding: 0 0 48px; }
.foot__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding-top: 32px; border-top: 1px solid rgba(243,244,241,.12); }
.foot__links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot__links a { font-size: 14px; text-decoration: none; opacity: .7; }
.foot__links a:hover { opacity: 1; }
.foot__legal { color: rgba(243,244,241,.45); font-size: 13px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
  .hero__outro { opacity: 1; visibility: visible; }
  .hero__intro { display: none; }
  .hero__title { margin-bottom: 160px; }
  .step__media img { transform: none; }
  .toast--float { opacity: 1; }
  .spin { animation: none; }
}
