/* =========================================================
   InfinityGrid Global: light, editorial, quietly animated
   ========================================================= */
:root {
  --white: #FFFFFF;
  --stone: #F6F5F1;
  --stone-2: #EFEDE7;
  --ink: #14130F;
  --ink-2: #3A3832;
  --muted: #6B675F;
  --muted-2: #8A857B;
  --faint: #A6A196;
  --line: #E7E4DC;
  --line-strong: #D5D1C6;
  --accent: #2346D8;
  --accent-ink: #1A36B0;
  --accent-soft: #ECF0FD;
  --green: #137A4E;
  --green-soft: #E5F3EB;
  --amber-soft: #FBF1DC;
  --amber: #8A5A0B;
  --danger: #B42318;

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(20, 19, 15, .05);
  --shadow: 0 1px 2px rgba(20, 19, 15, .04), 0 12px 32px -12px rgba(20, 19, 15, .14);
  --shadow-lg: 0 2px 4px rgba(20, 19, 15, .04), 0 32px 64px -24px rgba(20, 19, 15, .22);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 16px/1.55 var(--sans); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--accent-soft); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; transition: top .2s; }
.skip:focus { top: 12px; }

h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; }
h1 em, h2 em { font-style: italic; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.02; }
h2 em { color: var(--muted-2); }
h3 { font-size: 1.08rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; }

/* ---------- Buttons ---------- */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 20px; border-radius: 10px; white-space: nowrap;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  border: 1px solid transparent; user-select: none;
  transition: background-color .25s, border-color .25s, color .25s, transform .2s var(--ease), box-shadow .25s;
}
.btn:active { transform: scale(.97); }
.btn-sm { --h: 38px; padding: 0 15px; font-size: 14px; border-radius: 9px; }
.btn-ink { background: var(--ink); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 1px 2px rgba(20,19,15,.2); }
.btn-line { background: var(--white); border-color: var(--line-strong); color: var(--ink); }
.btn .arrow { width: 16px; height: 16px; transition: transform .35s var(--ease); }
@media (hover: hover) {
  .btn-ink:hover { background: #2B2A25; }
  .btn-line:hover { border-color: var(--ink); }
  .btn:hover .arrow { transform: translateX(3px); }
}
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,0);
  transition: background-color .35s, box-shadow .35s, backdrop-filter .35s;
}
.header.is-stuck, .header.menu-open {
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.wordmark { display: inline-flex; align-items: baseline; gap: 5px; font-size: 1.05rem; font-weight: 650; letter-spacing: -0.03em; white-space: nowrap; }
.wordmark small { font-family: var(--mono); font-size: .62rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a:not(.btn) {
  position: relative; padding: 8px 12px; font-size: 14.5px; color: var(--ink-2); border-radius: 8px;
  transition: color .2s;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
@media (hover: hover) {
  .nav a:not(.btn):hover { color: var(--ink); }
  .nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
}
.nav-cta { display: none; }
.header-cta { margin-left: 8px; }
.menu-btn { display: none; }

@media (max-width: 899px) {
  .menu-btn {
    display: grid; place-content: center; gap: 6px; width: 40px; height: 40px; margin-right: -8px; border-radius: 10px;
  }
  .menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .45s var(--ease); }
  .menu-open .menu-btn span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-open .menu-btn span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .header-cta { margin-left: auto; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px; background: rgba(255,255,255,.97);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--line), 0 24px 40px -24px rgba(20,19,15,.18);
    opacity: 0; transform: translateY(-8px); visibility: hidden; pointer-events: none;
    transition: opacity .3s, transform .45s var(--ease), visibility 0s .45s;
  }
  .menu-open .nav { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity .3s, transform .45s var(--ease); }
  .nav a:not(.btn) { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a:not(.btn)::after { display: none; }
  .nav-cta { display: inline-flex; margin-top: 16px; }
}
@media (max-width: 419px) { .header-cta { display: none; } .menu-btn { margin-left: auto; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(36px, 7vw, 88px) 0 0; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(40px, 5vw, 72px); align-items: center;
}
.status {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; color: var(--muted); letter-spacing: .01em;
}
.status i { width: 7px; height: 7px; border-radius: 50%; background: #1FA463; box-shadow: 0 0 0 4px rgba(31,164,99,.14); }
h1 { margin-top: 22px; font-size: clamp(2.7rem, 5.6vw, 4.75rem); line-height: .98; letter-spacing: -0.022em; text-wrap: balance; }
h1 em { color: var(--accent); }
.lede { margin-top: 24px; max-width: 34em; font-size: clamp(1.02rem, 1.4vw, 1.14rem); line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

/* Product window */
.window {
  position: relative; min-width: 0; background: var(--white);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
}
.win-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border-bottom: 1px solid var(--line);
}
.seg {
  position: relative; display: flex; padding: 3px; background: var(--stone); border-radius: 11px;
  overflow-x: auto; scrollbar-width: none; min-width: 0;
}
.seg::-webkit-scrollbar { display: none; }
.seg button {
  position: relative; z-index: 1; flex: none; padding: 7px 13px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--muted); transition: color .3s;
}
.seg button[aria-selected="true"] { color: var(--ink); }
@media (hover: hover) { .seg button:hover { color: var(--ink); } }
.seg-thumb {
  position: absolute; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: 8px; overflow: hidden;
  background: var(--white); box-shadow: 0 1px 2px rgba(20,19,15,.08), 0 0 0 1px rgba(20,19,15,.04);
  transition: transform .55s var(--ease), width .55s var(--ease);
}
.seg-thumb i {
  position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; opacity: 0;
}
.is-playing .seg-thumb i { opacity: .9; animation: seg-progress 5.2s linear forwards; }
.is-playing:hover .seg-thumb i { animation-play-state: paused; }
@keyframes seg-progress { to { transform: scaleX(1); } }
.live { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); flex: none; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: #1FA463; animation: blink 2.4s var(--ease-io) infinite; }
@keyframes blink { 50% { opacity: .35; } }

.panels { display: grid; padding: 16px; }
.panel {
  grid-area: 1 / 1; min-width: 0;
  opacity: 0; transform: translateY(8px); visibility: hidden;
  transition: opacity .3s, transform .5s var(--ease), visibility 0s .5s;
}
.panels > .panel[hidden] { display: block; }
.panel.is-active {
  opacity: 1; transform: none; visibility: visible;
  transition: opacity .45s .1s, transform .65s .1s var(--ease), visibility 0s;
}
/* stagger children of the active panel */
.panel .st { opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .55s var(--ease); }
.panel.is-active .st { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 70ms + 160ms); }

.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kpis > div { display: grid; gap: 1px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; min-width: 0; }
.kpis span { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpis b { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.kpis em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--green); }

.rows { margin-top: 10px; }
.rows li {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 36px; align-items: center; gap: 10px;
  padding: 9px 2px; border-bottom: 1px solid var(--line);
}
.rows li:last-child { border-bottom: 0; }
.av {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: hsl(var(--h) 55% 93%); color: hsl(var(--h) 40% 32%); font-size: 11px; font-weight: 600; letter-spacing: 0;
}
.who { display: grid; min-width: 0; }
.who b, .who small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who b { font-size: 13.5px; font-weight: 500; }
.who small { font-size: 12px; color: var(--muted); }
.chip { font-size: 11.5px; padding: 3px 8px; border-radius: 6px; background: var(--stone); color: var(--ink-2); white-space: nowrap; }
.chip.ok { background: var(--green-soft); color: var(--green); }
.chip.info { background: var(--accent-soft); color: var(--accent); }
.chip.warn { background: var(--amber-soft); color: var(--amber); }
.rows time { font-family: var(--mono); font-size: 11.5px; color: var(--faint); text-align: right; }

.chat { display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 80%; padding: 9px 13px; font-size: 13.5px; line-height: 1.45; border-radius: 14px; }
.msg.in { align-self: flex-start; background: var(--stone); border-bottom-left-radius: 4px; }
.msg.out { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg .bot { display: block; font-family: var(--mono); font-size: 10.5px; opacity: .75; margin-bottom: 2px; }
.quick { align-self: flex-end; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.quick span { font-size: 12px; padding: 5px 10px; border-radius: 999px; border: 1px solid #C9D3F7; color: var(--accent); background: var(--white); }

.chart { margin-top: 12px; }
.chart svg { width: 100%; height: clamp(118px, 15vw, 150px); overflow: visible; }
.chart .grid path { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.chart .bars rect { fill: var(--stone-2); transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); transition: transform .8s var(--ease); }
.panel.is-active .chart .bars rect { transform: scaleY(1); }
.panel.is-active .chart .bars rect:nth-child(n) { transition-delay: calc(var(--i, 0) * 50ms + 150ms); }
.chart .area { fill: var(--accent); opacity: 0; transition: opacity .8s .7s; }
.panel.is-active .chart .area { opacity: .08; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; clip-path: inset(0 100% 0 0); transition: clip-path 1.3s .25s var(--ease-io); }
.panel.is-active .chart .line { clip-path: inset(0 0 0 0); }
.chart .x { display: flex; justify-content: space-between; padding: 6px 2% 0; font-family: var(--mono); font-size: 10.5px; color: var(--faint); }

.prompt {
  display: flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 11px;
  font-size: 13px; color: var(--ink-2);
}
.prompt .i { width: 16px; height: 16px; color: var(--accent); }
.prompt span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prompt em { margin-left: auto; flex: none; font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--green); background: var(--green-soft); padding: 2px 7px; border-radius: 6px; }
.ads { margin-top: 10px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(44px, 6vw, 56px); gap: 8px; }
.ad {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 1px;
  padding: 8px 10px; border-radius: 9px; overflow: hidden; min-width: 0;
  opacity: 0; transform: scale(.94); transition: opacity .45s, transform .6s var(--ease);
}
.panel.is-active .ad { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 80ms + 180ms); }
.ad b { font-family: var(--serif); font-weight: 400; font-size: clamp(1rem, 2vw, 1.45rem); line-height: 1; letter-spacing: -0.01em; }
.ad small { font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.ad i { font-style: normal; font-size: 10.5px; font-weight: 500; align-self: flex-start; margin-top: 4px; padding: 2px 7px; border-radius: 4px; background: rgba(255,255,255,.18); }
.a1 { grid-column: 1 / 3; grid-row: 1 / 3; background: #7A1F2B; color: #F7E7CF; }
.a1 b { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.a1::before { content: ""; position: absolute; right: -18%; top: -24%; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 10px solid rgba(233,185,73,.35); }
.a2 { grid-column: 3; grid-row: 1 / 3; background: #E8892B; color: #2A1606; }
.a3 { grid-column: 4; grid-row: 1; background: #F6EBD9; color: #7A1F2B; }
.a4 { grid-column: 4; grid-row: 2; background: #1D2B5A; color: #E9B949; }
.a5 { grid-column: 1 / 3; grid-row: 3; background: #E9B949; color: #2A1606; flex-direction: row; align-items: flex-end; justify-content: space-between; }
.a6 { grid-column: 3 / 5; grid-row: 3; background: #1E1B16; color: #F2A65A; flex-direction: row; align-items: flex-end; justify-content: space-between; }
.a6 i { background: rgba(242,166,90,.16); }

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(56px, 8vw, 104px); border-block: 1px solid var(--line);
}
.stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; padding: 24px 0 24px 24px; border-left: 1px solid var(--line); }
.stats > div:first-child { border-left: 0; padding-left: 0; }
.stats dt { font-size: 13.5px; color: var(--muted); }
.stats dd { font-family: var(--serif); font-size: clamp(2.2rem, 3.8vw, 3rem); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stats dd small { font-family: var(--sans); font-size: .38em; color: var(--muted); letter-spacing: 0; }
.sectors { margin-top: 20px; font-size: 14px; color: var(--muted); line-height: 1.7; }
.sectors span { color: var(--ink); font-weight: 500; margin-right: 6px; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-stone { background: var(--stone); border-block: 1px solid var(--line); }
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }
.kicker { font-family: var(--mono); font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }

/* ---------- Services ---------- */
.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 5vw, 72px); align-items: start; }
.svc-list { border-top: 1px solid var(--line); }
.svc-item { position: relative; border-bottom: 1px solid var(--line); }
.svc-item::before {
  content: ""; position: absolute; left: -16px; top: 18px; bottom: 18px; width: 2px; border-radius: 2px; background: var(--accent);
  transform: scaleY(0); transition: transform .5s var(--ease);
}
.svc-item.is-active::before { transform: scaleY(1); }
.svc-btn {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto 0fr;
  width: 100%; padding: 18px 0; text-align: left; border-radius: 0;
  transition: grid-template-rows .5s var(--ease);
}
.svc-btn .n { grid-row: 1 / 3; padding-top: 5px; font-family: var(--mono); font-size: 12.5px; color: var(--faint); transition: color .3s; }
.svc-btn .t { font-size: clamp(1.1rem, 1.6vw, 1.28rem); font-weight: 500; letter-spacing: -0.02em; color: var(--ink-2); transition: color .3s, transform .45s var(--ease); }
.svc-btn .d { min-height: 0; overflow: hidden; color: var(--muted); font-size: 15px; opacity: 0; transition: opacity .35s; }
.svc-item.is-active .svc-btn { grid-template-rows: auto 1fr; }
.svc-item.is-active .svc-btn .n { color: var(--accent); }
.svc-item.is-active .svc-btn .t { color: var(--ink); }
.svc-item.is-active .svc-btn .d { opacity: 1; padding-top: 6px; transition: opacity .5s .12s; }
@media (hover: hover) { .svc-btn:hover .t { color: var(--ink); transform: translateX(4px); } }
.svc-btn:focus-visible { outline-offset: -2px; }
.js .svc-item .viz { display: none; }

.svc-stage {
  position: sticky; top: calc(var(--header-h) + 32px);
  display: grid; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  background-color: var(--stone);
  background-image: radial-gradient(circle at 1px 1px, rgba(20,19,15,.09) 1px, transparent 0);
  background-size: 18px 18px;
}
html:not(.js) .svc-stage { display: none; }
.svc-stage > .viz {
  grid-area: 1 / 1; opacity: 0; transform: scale(.98) translateY(8px); visibility: hidden;
  transition: opacity .3s, transform .6s var(--ease), visibility 0s .6s;
}
.svc-stage > .viz.is-active { opacity: 1; transform: none; visibility: visible; transition: opacity .5s .08s, transform .7s .08s var(--ease), visibility 0s; }
.swipe-hint { display: none; }

/* Visuals (shared by the stage and the mobile cards) */
.viz { container-type: inline-size; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; aspect-ratio: 4 / 3; padding: 8%; min-width: 0; }
.viz .st, .viz > * { transition: opacity .5s, transform .7s var(--ease); }
.svc-stage > .viz:not(.is-active) > * { opacity: 0; transform: translateY(10px); }
.svc-stage > .viz.is-active > * { transition-delay: calc(var(--i, 0) * 70ms + 120ms); }

.v-stack .layer {
  display: flex; align-items: center; gap: 1.6cqi; padding: 2.8cqi 3.4cqi; margin-top: 2.4cqi;
  background: var(--white); border: 1px solid var(--line); border-radius: 2.6cqi; box-shadow: var(--shadow-sm);
  font-size: 3.3cqi; white-space: nowrap;
}
.v-stack .layer:first-child { margin-top: 0; border-color: #C9D3F7; }
.v-stack .layer:nth-child(2) { margin-left: 2.5cqi; }
.v-stack .layer:nth-child(3) { margin-left: 5cqi; }
.v-stack .layer:nth-child(4) { margin-left: 7.5cqi; }
.v-stack .layer b { width: 21cqi; font-weight: 600; }
.v-stack .layer:first-child b { color: var(--accent); }
.v-stack .layer span { font-family: var(--mono); font-size: .9em; color: var(--muted); background: var(--stone); padding: .3em .65em; border-radius: .45em; }

.v-chat .b { max-width: 74%; margin-top: 2.4cqi; padding: .6em .9em; border-radius: 1em; font-size: 3.7cqi; line-height: 1.4; }
.v-chat .b:first-child { margin-top: 0; }
.v-chat .in { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: .3em; }
.v-chat .out { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: .3em; }

.v-funnel > div {
  display: flex; justify-content: space-between; align-items: center; gap: 2cqi;
  width: var(--w); min-width: 34cqi; margin-top: 2.4cqi; padding: 2.8cqi 3.4cqi; border-radius: 2.4cqi;
  font-size: 3.6cqi; background: var(--accent); color: #fff; white-space: nowrap;
}
.v-funnel > div:first-child { margin-top: 0; }
.v-funnel > div:nth-child(2) { background: #4D69E0; }
.v-funnel > div:nth-child(3) { background: #C9D3F7; color: var(--accent-ink); }
.v-funnel > div:nth-child(4) { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.v-funnel b { font-family: var(--mono); font-weight: 500; }

.v-voice .call {
  display: flex; align-items: center; gap: 3cqi; padding: 3cqi 3.6cqi; background: var(--white);
  border: 1px solid var(--line); border-radius: 3cqi; box-shadow: var(--shadow-sm); font-size: 3.6cqi;
}
.v-voice .call .av { width: 9cqi; height: 9cqi; font-size: 3cqi; }
.v-voice .call span:nth-child(2) { display: grid; line-height: 1.3; }
.v-voice .call small { color: var(--muted); font-size: .85em; }
.v-voice .call time { margin-left: auto; font-family: var(--mono); color: var(--accent); }
.v-voice .wave { display: flex; align-items: center; justify-content: center; gap: 1.3cqi; height: 18cqi; margin-top: 3cqi; }
.v-voice .wave i { width: 2.2cqi; height: 100%; border-radius: 2cqi; background: var(--accent); transform: scaleY(.25); animation: wave 1.1s var(--ease-io) infinite alternate; }
.v-voice .wave i:nth-child(3n) { animation-delay: -.3s; } .v-voice .wave i:nth-child(3n+1) { animation-delay: -.65s; } .v-voice .wave i:nth-child(4n) { animation-delay: -.9s; }
.v-voice .wave i:nth-child(5n) { animation-duration: .9s; } .v-voice .wave i:nth-child(odd) { opacity: .7; }
@keyframes wave { to { transform: scaleY(1); } }
.v-voice .tx { margin-top: 3cqi; text-align: center; font-family: var(--serif); font-style: italic; font-size: 4.6cqi; color: var(--muted); }

.v-dash { background: transparent; }
.v-dash .k { display: flex; align-items: baseline; gap: 2.4cqi; font-size: 3.6cqi; }
.v-dash .k span { color: var(--muted); }
.v-dash .k b { font-family: var(--serif); font-weight: 400; font-size: 10cqi; line-height: 1; }
.v-dash .k em { font-style: normal; font-family: var(--mono); color: var(--green); }
.v-dash svg { width: 100%; height: auto; margin-top: 3cqi; overflow: visible; }
.v-dash .ar { fill: var(--accent); opacity: .08; }
.v-dash .ln { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.svc-stage > .viz.is-active .ln { animation: draw 1.4s .2s var(--ease-io) both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.v-dash .mini { display: grid; gap: 1.8cqi; margin-top: 4cqi; font-size: 3.2cqi; color: var(--muted); }
.v-dash .mini span { display: grid; grid-template-columns: 1fr 14cqi; align-items: center; gap: 2cqi; }
.v-dash .mini span i { order: 2; display: none; }
.v-dash .mini span { position: relative; padding-left: 0; }
.v-dash .mini span::before { content: ""; height: 1.6cqi; border-radius: 1cqi; background: linear-gradient(90deg, var(--accent) calc(var(--v, .5) * 100%), var(--stone-2) 0); }
.v-dash .mini span:nth-child(1)::before { --v: .72; } .v-dash .mini span:nth-child(2)::before { --v: .48; } .v-dash .mini span:nth-child(3)::before { --v: .9; }

.v-doc { display: grid; grid-template-columns: 1fr auto 1.1fr; align-items: center; gap: 3cqi; }
.v-doc .paper { display: grid; gap: 2.2cqi; padding: 5cqi 4cqi; background: var(--white); border: 1px solid var(--line); border-radius: 2cqi; box-shadow: var(--shadow); transform: rotate(-2deg); }
.v-doc .paper b { font-family: var(--mono); font-weight: 500; font-size: 2.8cqi; letter-spacing: .12em; color: var(--muted); }
.v-doc .paper i { height: 1.8cqi; border-radius: 1cqi; background: var(--stone-2); }
.v-doc .paper i.hl { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }
.v-doc .paper i.s { width: 60%; }
.v-doc .arrow { width: 6cqi; height: 6cqi; color: var(--accent); }
.v-doc .out { display: grid; gap: 2cqi; }
.v-doc .out div { padding: 2.2cqi 3cqi; background: var(--white); border: 1px solid var(--line); border-radius: 2cqi; }
.v-doc .out dt { font-family: var(--mono); font-size: 2.7cqi; color: var(--muted); }
.v-doc .out dd { font-size: 3.6cqi; font-weight: 600; white-space: nowrap; }

.v-creative { display: grid; grid-template-columns: 1.1fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2.6cqi; }
.v-creative span { display: flex; align-items: flex-end; padding: 3cqi; border-radius: 2.4cqi; box-shadow: var(--shadow-sm); }
.v-creative b { font-family: var(--serif); font-weight: 400; font-size: 6cqi; line-height: 1; }
.v-creative .c1 { grid-row: 1 / 3; background: #7A1F2B; color: #F7E7CF; }
.v-creative .c1 b { font-size: 9cqi; }
.v-creative .c2 { grid-column: 2 / 4; background: #E9B949; color: #2A1606; }
.v-creative .c3 { background: #1D2B5A; color: #E9B949; }
.v-creative .c4 { background: #F6EBD9; color: #7A1F2B; border: 1px solid #EADBC2; }

.v-nodes { padding: 0; }
.v-nodes svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.v-nodes svg path { fill: none; stroke: var(--line-strong); stroke-width: .35; stroke-dasharray: 1.2 1.2; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -2.4; } }
.v-nodes span {
  position: absolute; left: var(--x); top: var(--y); translate: -50% -50%;
  padding: 1.6cqi 3cqi; background: var(--white); border: 1px solid var(--line); border-radius: 99px;
  font-size: 3.3cqi; font-weight: 500; white-space: nowrap; box-shadow: var(--shadow-sm);
}
.v-nodes .hub { display: grid; place-items: center; width: 15cqi; height: 15cqi; padding: 0; border-color: #C9D3F7; box-shadow: 0 0 0 2.4cqi rgba(35,70,216,.07), var(--shadow); }
.v-nodes .hub img { width: 7.5cqi; height: 7.5cqi; }

/* ---------- Track record ---------- */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.case {
  display: flex; flex-direction: column; gap: 6px; padding: 28px;
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
@media (hover: hover) { .case:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); } }
.case .big { font-family: var(--serif); font-size: clamp(3.4rem, 6vw, 4.6rem); line-height: .95; letter-spacing: -0.03em; }
.case .unit { color: var(--muted); font-size: 14.5px; }
.case-vis { height: 156px; display: flex; flex-direction: column; }
.case h3 { margin-top: auto; padding-top: 22px; }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 34px; margin-top: auto; }
.spark i { flex: 1; height: calc(var(--v) * 100%); border-radius: 2px; background: var(--accent); opacity: calc(.25 + var(--v) * .75); transform: scaleY(0); transform-origin: bottom; transition: transform .9s var(--ease); }
.case.in .spark i { transform: none; }
.spark i:nth-child(n) { transition-delay: calc(var(--v) * 500ms + 200ms); }
.case .desc { color: var(--muted); font-size: 14.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tags span { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); padding: 3px 8px; border-radius: 6px; background: var(--stone); }
.case-ads { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; gap: 6px; }
.case-ads i { border-radius: 8px; }
.case-ads i:nth-child(1) { background: #7A1F2B; } .case-ads i:nth-child(2) { background: #E9B949; } .case-ads i:nth-child(3) { background: #1D2B5A; }
.case-ads i:nth-child(4) { background: #F6EBD9; border: 1px solid #EADBC2; } .case-ads i:nth-child(5) { background: #E8892B; } .case-ads i:nth-child(6) { background: var(--accent); }
.flow { display: flex; flex-wrap: wrap; gap: 6px; }
.flow li { position: relative; font-size: 12.5px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.flow li:last-child { border-color: var(--ink); background: var(--ink); color: #fff; }
.fine { margin-top: 24px; font-size: 13.5px; color: var(--muted); }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps li { position: relative; display: grid; gap: 4px; padding-top: 24px; border-top: 1px solid var(--line); }
.steps li::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease-io);
}
.steps.in li::before { transform: scaleX(1); }
.steps li:nth-child(2)::before { transition-delay: .25s; } .steps li:nth-child(3)::before { transition-delay: .5s; } .steps li:nth-child(4)::before { transition-delay: .75s; }
.steps .n { font-family: var(--mono); font-size: 12.5px; color: var(--accent); margin-bottom: 14px; }
.steps b { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.02em; }
.steps small { font-size: 14.5px; color: var(--muted); }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.plan {
  display: flex; flex-direction: column; padding: 26px 24px; background: var(--white);
  border: 1px solid var(--line); border-radius: 20px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
@media (hover: hover) { .plan:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); } }
.plan-pop { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
@media (hover: hover) { .plan-pop:hover { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--shadow); } }
.plan-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 500; font-size: 15px; }
.tag { font-family: var(--mono); font-size: 10.5px; font-weight: 500; padding: 3px 7px; border-radius: 6px; background: var(--ink); color: #fff; white-space: nowrap; }
.tag-line { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.price { margin: 18px 0 20px; font-family: var(--serif); font-size: clamp(2.4rem, 3.4vw, 2.9rem); line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.price small { font-family: var(--sans); font-size: 13px; color: var(--muted); letter-spacing: 0; margin: 0 4px; }
.price small:first-child { margin-left: 0; }
.plan ul { margin-top: auto; }
.plan li { position: relative; padding: 10px 0 10px 22px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.plan li::before {
  content: ""; position: absolute; left: 2px; top: 16px; width: 9px; height: 5px;
  border-left: 1.6px solid var(--accent); border-bottom: 1.6px solid var(--accent); transform: rotate(-45deg);
}

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-wrap .sec-head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; cursor: pointer; list-style: none; font-size: 1.06rem; font-weight: 500; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  transition: transform .45s var(--ease); color: var(--muted);
}
.faq details[open] summary::after { transform: rotate(135deg); }
@media (hover: hover) { .faq summary:hover { color: var(--accent); } }
.faq .ans { overflow: hidden; }
.faq .ans p { padding: 0 32px 22px 0; color: var(--muted); }

/* ---------- CTA ---------- */
.section-cta { padding-top: 0; }
.cta {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 64px);
  border: 1px solid var(--line); border-radius: 28px; background-color: var(--stone);
  background-image: radial-gradient(circle at 1px 1px, rgba(20,19,15,.09) 1px, transparent 0);
  background-size: 18px 18px;
}
.cta h2 { font-size: clamp(2.3rem, 5.2vw, 4rem); max-width: 14em; margin: 0 auto; text-wrap: balance; }
.cta p { margin-top: 16px; color: var(--muted); font-size: 1.05rem; }
.cta .cta-row { justify-content: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0 calc(28px + env(safe-area-inset-bottom)); }
.footer-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: start; }
.footer-brand p { margin-top: 10px; color: var(--muted); font-size: 14px; max-width: 26em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: flex-end; font-size: 14.5px; }
.footer-links a { color: var(--ink-2); background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .45s var(--ease); padding-bottom: 2px; }
@media (hover: hover) { .footer-links a:hover { background-size: 100% 1px; color: var(--ink); } }
.footer-meta { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- Reveal motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .rise { opacity: 0; transform: translateY(16px); animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 90ms + 60ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Dialog ---------- */
dialog {
  width: min(580px, calc(100% - 32px)); max-height: min(720px, calc(100dvh - 32px)); padding: 0;
  border: 0; border-radius: 22px; background: var(--white); color: var(--ink); box-shadow: var(--shadow-lg);
  overflow: auto; overscroll-behavior: contain;
}
dialog[open] { animation: dlg-in .5s var(--ease); }
dialog.is-closing { animation: dlg-out .22s var(--ease-io) forwards; }
dialog::backdrop { background: rgba(20, 19, 15, .32); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fade .35s ease; }
dialog.is-closing::backdrop { animation: fade .22s ease reverse forwards; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes dlg-out { to { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }
#lead-form { padding: 24px; outline: none; }
.dlg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dlg-step { font-family: var(--mono); font-size: 12px; color: var(--muted); }
#dlg-title { margin-top: 4px; font-size: 2rem; line-height: 1.05; }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; margin: -4px -6px 0 0; border-radius: 10px; color: var(--muted); transition: background-color .2s, color .2s; }
@media (hover: hover) { .icon-btn:hover { background: var(--stone); color: var(--ink); } }
.progress { height: 3px; margin: 18px 0 22px; background: var(--stone-2); border-radius: 3px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 33%; background: var(--accent); border-radius: 3px; transition: width .6s var(--ease); }
.step { display: none; min-width: 0; margin: 0; padding: 0; border: 0; }
.step.is-active { display: block; animation: step-in .5s var(--ease); }
@keyframes step-in { from { opacity: 0; transform: translateX(14px); } }
legend { padding: 0; margin-bottom: 14px; font-size: 1.05rem; font-weight: 500; letter-spacing: -0.015em; }
.sublabel { margin: 18px 0 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
legend + .sublabel { margin-top: 0; }
.chips-select { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-select label { position: relative; }
.chips-select input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips-select span {
  display: inline-flex; align-items: center; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 10px;
  font-size: 14px; background: var(--white); cursor: pointer; user-select: none;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
@media (hover: hover) { .chips-select label:hover span { border-color: var(--ink); } }
.chips-select input:active + span { transform: scale(.96); }
.chips-select input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips-select input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chips-select.invalid { animation: shake .4s var(--ease-io); }
.chips-select.invalid span { border-color: #E4A49D; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.field { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 5px; margin-top: 18px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.field-grid .field { margin-top: 0; margin-bottom: 14px; }
.opt { color: var(--faint); font-weight: 400; }
.field input {
  flex: 1 1 100%; width: 100%; height: 46px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 10px;
  font: 400 16px var(--sans); color: var(--ink); background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: var(--faint); }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(35,70,216,.12); }
.field input.invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(180,35,24,.08); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.step-done { text-align: center; padding: 12px 0 8px; }
.done-icon { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.done-icon .i { width: 28px; height: 28px; stroke-width: 2.2; stroke-dasharray: 24; stroke-dashoffset: 24; }
.step-done.is-active .done-icon .i { animation: check .6s .25s var(--ease-io) forwards; }
@keyframes check { to { stroke-dashoffset: 0; } }
.step-done h3 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; letter-spacing: -0.01em; }
.step-done p { margin-top: 6px; color: var(--muted); }
.form-status { min-height: 22px; margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.form-status.err { color: var(--danger); }
.dlg-foot { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px 12px; margin-top: 6px; }
.dlg-foot [data-back] { margin-right: auto; }
.dlg-foot [data-back][hidden] + .link-btn { margin-right: auto; }
.link-btn { font-size: 14px; color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
@media (hover: hover) { .link-btn:hover { color: var(--ink); text-decoration-color: currentColor; } }
[hidden] { display: none !important; }
.panels > .panel[hidden] { display: block !important; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1079px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 720px; }
  .window { max-width: 760px; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Horizontal swipe rails (services, cases, plans) on smaller screens */
@media (max-width: 959px) {
  .svc { display: block; }
  .svc-stage { display: none; }
  .js .svc-item .viz { display: flex; }
  .svc-list, .cases {
    display: grid; grid-auto-flow: column; grid-auto-columns: min(80%, 340px); grid-template-columns: none; gap: 12px;
    margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scroll-padding-inline: var(--gutter);
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; border: 0;
  }
  .svc-list::-webkit-scrollbar, .cases::-webkit-scrollbar { display: none; }
  .svc-item, .case { scroll-snap-align: start; }
  .svc-item { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--white); }
  .svc-item::before { display: none; }
  .svc-item .viz {
    order: -1; background-color: var(--stone); border-bottom: 1px solid var(--line);
    background-image: radial-gradient(circle at 1px 1px, rgba(20,19,15,.09) 1px, transparent 0); background-size: 16px 16px;
  }
  .svc-btn { grid-template-rows: auto 1fr; padding: 16px 18px 20px; cursor: default; }
  .svc-btn .n { grid-row: auto; grid-column: 1 / -1; padding: 0 0 6px; }
  .svc-btn .t, .svc-btn .d { grid-column: 1 / -1; }
  .svc-btn .t { color: var(--ink); }
  .svc-btn .d { opacity: 1; padding-top: 4px; font-size: 14.5px; }
  .svc-item.is-active .svc-btn .n, .svc-btn .n { color: var(--muted); }
  .swipe-hint { display: block; margin-top: 14px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
  .swipe-hint span { display: inline-block; animation: nudge 1.8s var(--ease-io) infinite; }
  @keyframes nudge { 50% { transform: translateX(5px); } }
  .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .faq-wrap .sec-head { position: static; }
}

@media (max-width: 719px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div { padding: 20px 0 20px 18px; }
  .stats > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .plans {
    display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 300px); grid-template-columns: none; gap: 12px;
    margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scroll-padding-inline: var(--gutter);
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
  }
  .plans::-webkit-scrollbar { display: none; }
  .plan { scroll-snap-align: start; }
  .footer-in { grid-template-columns: minmax(0, 1fr); }
  .footer-links { justify-content: flex-start; }
  .win-top .live { display: none; }
  .panels { padding: 12px; }
}

@media (max-width: 560px) {
  .btn { --h: 48px; }
  .hero .cta-row .btn { flex: 1 1 auto; }
  .cta .cta-row .btn { flex: 1 1 100%; }
  .seg button { padding: 7px 10px; font-size: 12.5px; }
  .rows li { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .rows time { display: none; }
  .kpis > div { padding: 8px 9px; }
  .msg { font-size: 13px; }
  dialog {
    width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 22px 22px 0 0;
  }
  dialog[open] { animation: sheet-in .55s var(--ease); }
  dialog.is-closing { animation: sheet-out .25s var(--ease-io) forwards; }
  #lead-form { padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); }
  .field-grid { grid-template-columns: 1fr; }
  .dlg-foot .btn { flex: 1 1 auto; }
  .link-btn { order: 5; flex-basis: 100%; text-align: center; padding: 6px 0; }
  .dlg-foot [data-back][hidden] + .link-btn { margin-right: 0; }
}
@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes sheet-out { to { transform: translateY(100%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .rise { opacity: 1; transform: none; }
}
