/* Render Data — "Query Plan" direction */
:root {
  --ink: #0B1020;
  --ink-2: #0F1529;
  --panel: #121933;
  --line: #232C4D;
  --line-2: #2A3560;
  --text: #E7ECF7;
  --muted: #9AA6C4;
  --dim: #8390B3;
  --phosphor: #3DF5A6;
  --phosphor-deep: #1FBF7E;
  --amber: #FFB547;
  --display: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
code, pre { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--phosphor); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--phosphor); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }

section[id] { scroll-margin-top: 84px; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--phosphor); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 .78rem/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--phosphor);
  margin-bottom: 18px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--phosphor); box-shadow: 0 0 12px var(--phosphor); animation: blink 2.4s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 34em; }
.kw { color: var(--phosphor); }
.str { color: var(--amber); }
.t-ok { color: var(--phosphor); fill: var(--phosphor); }
.t-hot { color: var(--amber); fill: var(--amber); }
.t-muted { fill: var(--dim); color: var(--dim); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s;
}
.btn--primary { background: var(--phosphor); color: var(--ink); box-shadow: 0 0 0 0 rgba(61,245,166,.4); }
.btn--primary:hover { background: #6BF8BC; box-shadow: 0 0 28px rgba(61,245,166,.35); transform: translateY(-1px); }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--phosphor); color: var(--phosphor); }
.btn--block { width: 100%; padding-block: 16px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,16,32,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(35,44,77,.7);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__name { font: 600 1.35rem/1 var(--display); letter-spacing: -0.01em; white-space: nowrap; }
.brand__name span { font: 500 .78rem/1 var(--mono); color: var(--phosphor); letter-spacing: .12em; margin-left: 7px; vertical-align: 3px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; color: var(--muted); font-size: .95rem; white-space: nowrap; transition: color .2s; }
.nav a:not(.btn):hover { color: var(--text); }
.nav__cta { padding: 11px 18px; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 14px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 72px 0 96px; overflow: hidden;
  background:
    radial-gradient(60% 50% at 85% 20%, rgba(61,245,166,.10), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgba(255,181,71,.06), transparent 70%);
}
.hero::before { /* faint plan grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(42,53,96,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(42,53,96,.35) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 70% at 60% 40%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at 60% 40%, #000, transparent 75%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 28px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .92rem; }
.hero__proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero__proof svg { width: 18px; height: 18px; fill: none; stroke: var(--phosphor); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Stage (scene carousel) ---------- */
.stage {
  position: relative; background: linear-gradient(180deg, var(--panel), var(--ink-2));
  border: 1px solid var(--line-2); border-radius: 20px; padding: 0 0 22px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(61,245,166,.04) inset;
  min-height: 470px;
}
.stage__bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.stage__lights { display: flex; gap: 7px; }
.stage__lights i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.stage__lights i:first-child { background: #FF6B6B; opacity: .8; }
.stage__lights i:nth-child(2) { background: var(--amber); opacity: .8; }
.stage__lights i:last-child { background: var(--phosphor); opacity: .8; }
.stage__chip { font: 500 .75rem/1 var(--mono); color: var(--phosphor); background: rgba(61,245,166,.08); border: 1px solid rgba(61,245,166,.25); padding: 6px 10px; border-radius: 999px; }

.scene {
  position: absolute; inset: 52px 0 52px; padding: 20px 22px 0;
  display: flex; flex-direction: column; gap: 14px;
  opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility 0s linear .7s;
}
.scene.is-active { opacity: 1; visibility: visible; transition: opacity .7s var(--ease), visibility 0s; }
.scene figcaption { margin-top: auto; font-size: .9rem; color: var(--muted); }
.scene figcaption strong { color: var(--text); font-weight: 600; }

.plan { font-size: .78rem; line-height: 1.55; color: var(--muted); white-space: pre-wrap; background: rgba(11,16,32,.6); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.tree { width: 100%; height: auto; }
.tree text { font: 500 12.5px var(--mono); fill: var(--text); }
.tree__edge { fill: none; stroke: var(--line-2); stroke-width: 2; }
.tree__node { fill: var(--ink); stroke: var(--muted); stroke-width: 2; }
.tree__node--hot { stroke: var(--amber); fill: rgba(255,181,71,.18); }
.tree__node--ok { stroke: var(--phosphor); fill: rgba(61,245,166,.18); }
.scene.is-active .tree__node--hot { animation: hot 1.6s ease-in-out infinite; }
.scene.is-active .tree__node--ok, .scene.is-active .t-ok { animation: appear .6s var(--ease) 1.6s both; }
@keyframes hot { 50% { fill: rgba(255,181,71,.55); } }
@keyframes appear { from { opacity: 0; transform: translateX(-6px); } }

.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 54px 1fr 74px; align-items: center; gap: 12px; font: 500 .78rem var(--mono); color: var(--muted); }
.bar em { font-style: normal; text-align: right; color: var(--text); }
.bar__fill { height: 10px; border-radius: 99px; transform-origin: left; }
.bar__fill--slow { background: linear-gradient(90deg, #FF8A5B, var(--amber)); }
.bar__fill--fast { background: var(--phosphor); width: 4%; box-shadow: 0 0 12px rgba(61,245,166,.6); }
.scene.is-active .bar__fill--slow { animation: grow 1.2s var(--ease) both; }
.scene.is-active .bar__fill--fast { animation: grow .5s var(--ease) 1.4s both; }
@keyframes grow { from { transform: scaleX(0); } }

.oncall { display: grid; gap: 16px; }
.oncall__who { display: flex; align-items: center; gap: 14px; }
.oncall__who svg { width: 54px; height: 54px; padding: 8px; border-radius: 14px; background: rgba(61,245,166,.08); border: 1px solid rgba(61,245,166,.25); fill: none; stroke: var(--phosphor); stroke-width: 3; stroke-linecap: round; }
.oncall__who strong { display: block; font-family: var(--display); font-size: 1.15rem; }
.oncall__who span { font: .8rem var(--mono); color: var(--muted); }
.pulse { width: 100%; height: auto; }
.pulse__grid { stroke: var(--line); stroke-width: 1; }
.pulse__line { fill: none; stroke: var(--phosphor); stroke-width: 2.4; stroke-linejoin: round; stroke-dasharray: 700; stroke-dashoffset: 700; filter: drop-shadow(0 0 4px rgba(61,245,166,.6)); }
.scene.is-active .pulse__line { animation: draw 2.2s linear forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.feed { display: grid; gap: 8px; font-size: .86rem; color: var(--muted); }
.feed li { display: flex; align-items: center; gap: 10px; }
.feed i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.feed i.ok { background: var(--phosphor); }
.feed i.warn { background: var(--amber); }
.feed code { color: var(--text); font-size: .82rem; }
.scene.is-active .feed li { animation: appear .5s var(--ease) both; }
.scene.is-active .feed li:nth-child(1) { animation-delay: .6s; }
.scene.is-active .feed li:nth-child(2) { animation-delay: 1.1s; }
.scene.is-active .feed li:nth-child(3) { animation-delay: 1.6s; }

.chart { width: 100%; height: auto; }
.chart text { font: 10.5px var(--mono); fill: var(--dim); }
.chart__grid { stroke: var(--line); stroke-width: 1; }
.chart__area { fill: rgba(61,245,166,.08); }
.chart__line { fill: none; stroke: var(--phosphor); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 420; stroke-dashoffset: 420; }
.chart__dot { fill: var(--phosphor); }
.scene.is-active .chart__line { animation: draw 1.8s var(--ease) forwards; }
.scene.is-active .chart__dot { animation: appear .4s var(--ease) 1.7s both, blink 2s 2.2s infinite; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kpis div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.kpis b { display: block; font: 600 1.3rem/1.2 var(--display); color: var(--phosphor); }
.kpis span { font-size: .8rem; color: var(--muted); }

.stage__dots { position: absolute; left: 22px; bottom: 18px; display: flex; gap: 6px; }
.stage__dots button { width: 28px; height: 24px; border: 0; background: transparent; cursor: pointer; position: relative; }
.stage__dots button::after { content: ""; position: absolute; left: 2px; right: 2px; top: 10px; height: 4px; border-radius: 4px; background: var(--line-2); transition: background-color .3s; }
.stage__dots button[aria-selected="true"]::after { background: var(--phosphor); }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__sub { margin-top: 18px; color: var(--muted); font-size: 1.05rem; }

.symptoms { background: var(--ink-2); border-block: 1px solid var(--line); }
.symptoms__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.symptoms__grid li { padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(18,25,51,.45); transition: border-color .25s, transform .25s var(--ease); }
.symptoms__grid li:hover { border-color: rgba(255,181,71,.5); transform: translateY(-3px); }
.symptoms__grid code { font-size: .78rem; color: var(--amber); }
.symptoms__grid h3 { margin: 14px 0 10px; }
.symptoms__grid p { color: var(--muted); font-size: .95rem; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.card {
  position: relative; padding: 32px 28px; border-radius: 20px;
  background: var(--panel); border: 1px solid var(--line);
  transition: border-color .25s, transform .25s var(--ease);
}
.card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.card--featured { border-color: rgba(61,245,166,.45); background: linear-gradient(180deg, rgba(61,245,166,.07), var(--panel) 45%); box-shadow: 0 0 60px -20px rgba(61,245,166,.25); }
.card--featured:hover { border-color: var(--phosphor); }
.card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(61,245,166,.08); border: 1px solid rgba(61,245,166,.22); margin-bottom: 22px; }
.card__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--phosphor); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card__tag { font: 500 .74rem/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--dim); margin-bottom: 10px; }
.card h3 { font-size: 1.55rem; margin-bottom: 12px; }
.card > p:not(.card__tag) { color: var(--muted); font-size: .97rem; margin-bottom: 20px; }
.badge {
  position: absolute; top: -12px; right: 22px;
  font: 600 .72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em;
  background: var(--phosphor); color: var(--ink); padding: 7px 11px; border-radius: 999px;
}
.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; font-size: .94rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 14px; border-radius: 4px;
  border: 1.5px solid var(--phosphor); background: rgba(61,245,166,.1);
}
.ticks li::after { content: ""; position: absolute; left: 4px; top: calc(.42em + 3px); width: 6px; height: 4px; border-left: 2px solid var(--phosphor); border-bottom: 2px solid var(--phosphor); transform: rotate(-45deg); }

/* Process — the query-plan tree */
.process { background: var(--ink-2); border-block: 1px solid var(--line); }
.steps { position: relative; display: grid; gap: 0; max-width: 820px; padding-left: 8px; }
.steps::before { content: ""; position: absolute; left: 19px; top: 14px; bottom: 60px; width: 2px; background: linear-gradient(var(--line-2), var(--phosphor)); }
.step { position: relative; padding: 0 0 46px 64px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 12px; top: 13px; width: 40px; height: 2px; background: var(--line-2); }
.step__node { position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 2px solid var(--muted); z-index: 1; }
.step__node--ok { border-color: var(--phosphor); background: rgba(61,245,166,.25); box-shadow: 0 0 16px rgba(61,245,166,.5); }
.step__meta { font: 500 .78rem/1 var(--mono); color: var(--phosphor); margin-bottom: 8px; padding-top: 6px; }
.step h3 { font-size: 1.45rem; margin-bottom: 8px; }
.step p:not(.step__meta) { color: var(--muted); max-width: 36em; }

/* Engines */
.engines__grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.engines__grid li { padding: 28px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 6px; transition: background-color .25s; }
.engines__grid li:nth-child(3n) { border-right: 0; }
.engines__grid li:nth-last-child(-n+3) { border-bottom: 0; }
.engines__grid li:hover { background: rgba(61,245,166,.04); }
.engines__grid b { font: 600 1.3rem/1.2 var(--display); }
.engines__grid span { font: .82rem var(--mono); color: var(--muted); }
.engines__note { margin-top: 26px; color: var(--muted); max-width: 46em; }

/* Why */
.why__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.why__grid .section__head { position: sticky; top: 120px; margin-bottom: 0; }
.why__list { display: grid; gap: 14px; }
.why__item { display: flex; gap: 22px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(18,25,51,.45); }
.why__k { font: 500 .85rem/1.6 var(--mono); color: var(--phosphor); }
.why__item h3 { margin-bottom: 6px; }
.why__item p { color: var(--muted); font-size: .96rem; }

/* Plans */
.plans { background: var(--ink-2); border-block: 1px solid var(--line); }
.plans__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 20px; padding: 32px 28px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.plan-card--featured { border-color: rgba(61,245,166,.5); box-shadow: 0 0 60px -20px rgba(61,245,166,.25); }
.plan-card__name { font: 600 1.9rem/1.1 var(--display); letter-spacing: -0.02em; }
.plan-card__unit { font: 500 .8rem/1 var(--mono); color: var(--phosphor); margin-top: -10px; }
.plan-card .ticks { flex: 1; padding-top: 18px; border-top: 1px dashed var(--line-2); }

/* FAQ */
.faq__inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; }
.faq__list { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: rgba(18,25,51,.45); transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font: 400 1.4rem/1 var(--mono); color: var(--phosphor); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 22px 22px; color: var(--muted); }

/* Contact */
.contact {
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(61,245,166,.12), transparent 70%),
    #070B17;
  border-top: 1px solid var(--line);
}
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact__copy > p:not(.eyebrow) { margin: 20px 0 26px; color: var(--muted); font-size: 1.05rem; }
.contact__info { display: grid; gap: 12px; margin-bottom: 28px; }
.contact__info li { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.contact__info svg { width: 22px; height: 22px; fill: none; stroke: var(--phosphor); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact__info a { color: var(--text); text-decoration-color: var(--phosphor); text-underline-offset: 4px; }
.contact__snippet { font-size: .85rem; line-height: 1.7; color: var(--muted); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: rgba(18,25,51,.5); overflow-x: auto; }

.form { display: grid; gap: 18px; padding: 32px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line-2); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 8px; font-size: .88rem; color: var(--muted); font-weight: 500; }
.form input:not([type="checkbox"]), .form select, .form textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--ink); color: var(--text); font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; min-height: 120px; }
.form textarea::placeholder { color: #6E7A9C; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--phosphor); box-shadow: 0 0 0 3px rgba(61,245,166,.15); }
.form [aria-invalid="true"] { border-color: #FF8A5B !important; }
.form__offers { border: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.form__offers legend { font-size: .88rem; color: var(--muted); font-weight: 500; margin-bottom: 10px; }
.pill { cursor: pointer; display: inline-flex !important; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); font-size: .9rem; transition: all .2s; }
.pill input:checked + span { background: rgba(61,245,166,.12); border-color: var(--phosphor); color: var(--phosphor); }
.pill input:focus-visible + span { outline: 2px solid var(--phosphor); outline-offset: 2px; }
.form__status { min-height: 1.4em; font-size: .9rem; color: var(--phosphor); text-align: center; }

/* Footer */
.footer { padding: 40px 0; border-top: 1px solid var(--line); background: #070B17; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__nav a, .footer__copy a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.footer__nav a:hover, .footer__copy a:hover { color: var(--phosphor); }
.footer__copy { width: 100%; color: var(--dim); font-size: .85rem; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- Reveal (gated by .js) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { gap: 20px; }
  .symptoms__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 16px 24px; background: var(--ink); box-shadow: 0 30px 60px rgba(0,0,0,.6); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility 0s linear .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s var(--ease); }
  .nav a:not(.btn) { padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__cta { margin-top: 16px; padding: 15px; }
  .hero { padding-top: 48px; }
  .hero__grid, .why__grid, .faq__inner, .contact__grid { grid-template-columns: 1fr; gap: 44px; }
  .why__grid .section__head { position: static; }
  .services, .plans__grid { grid-template-columns: 1fr; max-width: 560px; }
  .engines__grid { grid-template-columns: repeat(2, 1fr); }
  .engines__grid li:nth-child(3n) { border-right: 1px solid var(--line); }
  .engines__grid li:nth-child(2n) { border-right: 0; }
  .engines__grid li:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .engines__grid li:nth-last-child(-n+2) { border-bottom: 0; }
  .section { padding: 84px 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .symptoms__grid, .engines__grid { grid-template-columns: 1fr; }
  .engines__grid li { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .engines__grid li:last-child { border-bottom: 0 !important; }
  .form { padding: 22px; }
  .form__row { grid-template-columns: 1fr; }
  .stage { min-height: 500px; }
  .scene { padding-inline: 16px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .why__item { padding: 22px 18px; gap: 14px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .pulse__line, .chart__line { stroke-dashoffset: 0; }
  .scene { transition: opacity 1.2s linear, visibility 0s linear 1.2s; }
  .scene.is-active { transition: opacity 1.2s linear, visibility 0s; }
}
