/* Frame Repair - site styles. Colors match the app UI. */
:root {
  --page: #0A0B0C; --surface: #111215; --panel: #131417; --raised: #1A1B1F;
  --line: #222328; --ctl: #34363D;
  --text: #ECEDEF; --text-2: #A3A6AE; --text-3: #8A8D95;
  --mint: #93E2AE; --on-mint: #06190F; --red: #FF6464; --amber: #F2C46B;
  --bar: rgba(170, 178, 192, .40);
  --sans: "FR Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "FR Display", "FR Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "FR Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --sec: clamp(36px, 4.4vw, 60px); /* half the gap between two sections */
  --r: 12px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--page); color: var(--text);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.mono { font-family: var(--mono); font-feature-settings: normal; }
.mint { color: var(--mint); }
.red { color: var(--red); }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--mint); color: var(--on-mint); padding: 10px 16px; border-radius: 8px; font-weight: 500; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap-wide { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sec); }
.sec-head { margin-bottom: clamp(28px, 3.6vw, 44px); }
.sec-head.center .lede { margin-inline: auto; }

.eyebrow {
  font: 400 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.h2 {
  font: 600 clamp(36px, 5.4vw, 72px)/1.0 var(--display); letter-spacing: -.032em; text-wrap: balance;
}
.h3 { font: 600 clamp(26px, 3vw, 36px)/1.05 var(--display); letter-spacing: -.028em; }
.lede { margin-top: 20px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--text-2); max-width: 34em; text-wrap: balance; }
.caption { margin-top: 16px; font-size: 12px; line-height: 1.5; color: var(--text-3); text-align: center; letter-spacing: .02em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 24px; border-radius: 999px; border: 1px solid transparent;
  background: var(--mint); color: var(--on-mint); font: 500 15px/1 var(--sans); letter-spacing: -.005em;
  cursor: pointer; white-space: nowrap; transition: background-color .2s, transform .2s, border-color .2s;
}
.btn:hover { background: #a9ebbf; }
.btn:active { transform: scale(.98); }
.btn-stack { flex-direction: column; gap: 5px; padding: 12px 28px; }
.btn-stack small { font: 400 12px/1 var(--mono); letter-spacing: .02em; opacity: .75; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--ctl); }
.btn-ghost:hover { background: var(--raised); border-color: #4a4d55; }
.btn-sm { min-height: 34px; padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50; height: 56px;
  background: rgba(10, 11, 12, .78); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid rgba(34, 35, 40, .8);
}
.nav-inner { height: 100%; max-width: 1280px; margin: 0 auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 16px; letter-spacing: -.01em; }
.brand-glyph { width: 24px; height: 24px; flex: none; border-radius: 6px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 14px; color: var(--text-2); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav .btn { margin-left: 8px; }
.lang-switch { font-size: 12px; letter-spacing: .12em; color: var(--text-2); padding: 6px 10px; margin-left: -4px; border: 1px solid var(--ctl); border-radius: 999px; line-height: 1; transition: color .2s, border-color .2s; }
.lang-switch:hover { color: var(--text); border-color: #4a4d55; }
@media (max-width: 900px) { .nav-links { display: none; } .lang-switch { margin-left: auto; } .nav .btn { margin-left: 0; } .nav-inner { gap: 12px; } }

/* Hero */
.hero { padding-top: clamp(56px, 8vw, 112px); padding-bottom: var(--sec); text-align: center; overflow-x: clip; }
.hero-copy { max-width: 1320px; }
.hero-title { font: 600 clamp(44px, 7.2vw, 104px)/1.0 var(--display); letter-spacing: -.035em; }
.nw { white-space: nowrap; }
.hero-sub { margin: 24px auto 0; max-width: 30em; font-size: clamp(17px, 1.7vw, 21px); color: var(--text-2); text-wrap: balance; }
.hero-ctas { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-meta { margin-top: 22px; font-size: 13px; color: var(--text-3); letter-spacing: .01em; }
.hero-stage { position: relative; margin-top: clamp(36px, 5vw, 64px); }
.glow {
  position: absolute; left: 50%; top: 45%; width: 110%; height: 120%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(147, 226, 174, .12), rgba(147, 226, 174, .04) 55%, transparent 80%);
  pointer-events: none; z-index: 0;
}
.window, .shot {
  position: relative; z-index: 1; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 50px 120px -30px rgba(0, 0, 0, .85), 0 20px 40px -20px rgba(0, 0, 0, .6);
}
.window-bar { height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid var(--line); position: relative; }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--ctl); }
.window-bar span { position: absolute; left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--text-3); white-space: nowrap; }

/* Before/after compare */
.compare {
  --pos: 50%; position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden;
  touch-action: pan-y; cursor: ew-resize; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.compare video, .compare canvas, .compare picture, .compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
/* One stacked file (top = before, bottom = after). The video is fully visible at 200 % height, top-aligned, so it natively shows
   the Before half (Safari only plays and renders videos that are really visible). The canvas on top draws only the After part. */
.compare[data-compare] { background: #000 var(--poster) center / cover no-repeat; }
.compare .cmp-src { inset: 0 auto auto 0; width: 100%; height: 200%; object-fit: fill; }
.compare picture { display: block; }
.compare picture img { position: static; }
.cmp-after { clip-path: inset(0 0 0 var(--pos)); }
.cmp-tag {
  position: absolute; top: 14px; z-index: 2; padding: 6px 10px; border-radius: 6px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(10, 11, 12, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); pointer-events: none;
}
.cmp-tag.is-before { left: 14px; color: var(--red); }
.cmp-tag.is-after { right: 14px; color: var(--mint); }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: rgba(236, 237, 239, .9); z-index: 2; pointer-events: none; box-shadow: 0 0 12px rgba(0, 0, 0, .5); }
.cmp-knob {
  position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); border-radius: 50%;
  background: rgba(10, 11, 12, .65); border: 1.5px solid rgba(236, 237, 239, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.cmp-knob::before, .cmp-knob::after { content: ""; position: absolute; top: 50%; width: 7px; height: 7px; border: solid var(--text); border-width: 0 0 1.5px 1.5px; }
.cmp-knob::before { left: 11px; transform: translateY(-50%) rotate(45deg); }
.cmp-knob::after { right: 11px; transform: translateY(-50%) rotate(-135deg); }
.compare:has(.cmp-range:focus-visible) .cmp-knob { outline: 2px solid var(--mint); outline-offset: 3px; }
.cmp-range { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.cmp-play {
  position: absolute; right: 12px; bottom: 12px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(10, 11, 12, .7); border: 1px solid rgba(255, 255, 255, .12); cursor: pointer; padding: 0;
}
.cmp-play svg { width: 16px; height: 16px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; }
.compare.is-dragging { cursor: grabbing; }
/* Hitch track: real hitch times along the clip, red spikes on the Before side, flat mint on the After side.
   It makes the divider visibly change something (the two pictures themselves are nearly identical outside the hitch frames). */
.cmp-track { --t: 0; position: absolute; left: 0; right: 0; bottom: 0; height: 52px; z-index: 1; pointer-events: none; background: linear-gradient(transparent, rgba(10, 11, 12, .6)); }
.trk { position: absolute; inset: 0; }
.trk-b { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.trk-a { clip-path: inset(0 0 0 var(--pos)); }
.trk-in { position: absolute; left: 14px; right: 56px; bottom: 14px; height: 22px; border-bottom: 2px solid; }
.trk-b .trk-in { border-color: rgba(255, 100, 100, .55); }
.trk-a .trk-in { border-color: rgba(147, 226, 174, .75); }
.trk i { position: absolute; bottom: -2px; width: 3px; margin-left: -1.5px; border-radius: 2px 2px 0 0; }
.trk-b i { height: 22px; background: var(--red); }
.trk-a i { height: 2px; background: var(--mint); }
.trk-head { position: absolute; bottom: 10px; height: 30px; width: 2px; margin-left: -1px; background: rgba(236, 237, 239, .95); left: calc(14px + (100% - 70px) * var(--t)); border-radius: 1px; }
@media (max-width: 560px) { .cmp-track { height: 40px; } .trk-in { left: 8px; right: 48px; bottom: 8px; height: 18px; } .trk-b i { height: 18px; } .trk-head { bottom: 5px; height: 24px; left: calc(8px + (100% - 56px) * var(--t)); } }


/* Problem strip */
.strip { margin-inline: auto; max-width: 1080px; }
.strip-scroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: var(--ctl) transparent; padding-block: 4px; border-radius: 10px; }
.strip-svg { width: 100%; min-width: 760px; height: auto; overflow: visible; }
.strip-svg .ps-lbl, .strip-svg .ps-num { font-family: var(--mono); }
.strip.in .strip-move { animation: hitch 1.5s linear 1 both; }
@keyframes hitch {
  0% { transform: translateX(-56px); }
  40% { transform: translateX(-34px); }
  44% { transform: translateX(-12px); }   /* jump */
  66% { transform: translateX(-12px); }   /* hold */
  100% { transform: translateX(0); }
}
.strip.in .is-jump .ps-outline, .strip.in .is-hold .ps-outline { animation: flash 1.5s ease-out 1; }
@keyframes flash { 0%, 38% { stroke-opacity: .2; } 46%, 100% { stroke-opacity: 1; } }

/* Signature: motion lane */
.signature { padding-block: var(--sec); }
.lane { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(16px, 3vw, 32px); }
.lane-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 28px; font-size: 12px; letter-spacing: .06em; color: var(--text-2); }
.lane-title { text-transform: uppercase; letter-spacing: .12em; }
.lane-state { position: relative; display: inline-grid; padding: 6px 10px; border-radius: 6px; background: var(--raised); }
.lane-state > span { grid-area: 1 / 1; transition: opacity .4s; text-align: right; }
.st-before { color: var(--red); }
.st-after { color: var(--mint); opacity: 0; }
.lane.is-fixed .st-before { opacity: 0; }
.lane.is-fixed .st-after { opacity: 1; }
.lane-plot { position: relative; height: clamp(180px, 30vw, 360px); margin-left: 30px; }
.lane-svg { width: 100%; height: 100%; overflow: visible; }
.lane-bar { fill: var(--bar); }
.lane-bar.is-spike { fill: var(--red); }
.lane-grid line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.lane-threshold { stroke: var(--red); stroke-opacity: .55; stroke-width: 1; stroke-dasharray: 6 6; vector-effect: non-scaling-stroke; transition: stroke-opacity .4s; }
.lane-ghosts rect { fill: none; stroke: var(--red); stroke-opacity: .5; stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; opacity: 0; }
.lane-y { position: absolute; left: -30px; top: calc(var(--y) * 100%); transform: translateY(-50%); font-size: 11px; color: var(--text-3); }
.lane-th { position: absolute; right: 0; top: 46.667%; transform: translateY(-140%); font-size: 11px; color: var(--red); background: var(--surface); padding: 0 0 0 6px; transition: opacity .4s; }
.lane-gap { position: absolute; left: 22.1%; width: 11.5%; top: 18%; height: 10px; border: solid var(--text-3); border-width: 1px 1px 0; transition: opacity .4s; }
.lane-gap span { position: absolute; bottom: 100%; left: 50%; transform: translate(-50%, -6px); white-space: nowrap; font-size: 12px; color: var(--text-2); }
.lane.is-fixed .lane-gap, .lane.is-fixed .lane-th { opacity: 0; }
.lane.is-fixed .lane-threshold { stroke-opacity: 0; }
.lane-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 12px; font-size: 12px; color: var(--text-2); }
.lane-time { order: -1; flex-basis: 100%; display: flex; justify-content: space-between; margin-left: 30px; margin-bottom: 10px; color: var(--text-3); font-size: 11px; }
.lg { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.sw.red { background: var(--red); } .sw.mint { background: var(--mint); }
.lane .caption { text-align: left; margin-top: 18px; font-family: var(--sans); font-size: 14px; color: var(--text-3); max-width: 46em; letter-spacing: 0; }
@media (min-width: 900px) and (min-height: 720px) {
  .js .signature.is-sticky { height: 150vh; padding: 0; }
  .js .signature.is-sticky .sig-sticky { position: sticky; top: 56px; min-height: calc(100vh - 56px); display: flex; align-items: center; padding-block: 16px; }
  .js .signature.is-sticky .sig-sticky > .wrap { width: 100%; }
  .js .signature.is-sticky .sec-head { margin-bottom: 36px; }
  .js .signature.is-sticky .lane-plot { height: clamp(220px, 34vh, 340px); }
}

/* One click */
.shot { max-width: 1200px; margin-inline: auto; }
.shot img { width: 100%; height: auto; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(32px, 4vw, 56px); counter-reset: s; }
.step { position: relative; text-align: center; padding: 0 12px; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 32px; left: calc(50% + 48px); right: calc(-50% + 36px);
  border-top: 1.5px dashed var(--ctl);
}
.step-icon { width: 64px; height: 64px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 18px; background: var(--surface); border: 1px solid var(--ctl); }
.step-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--mint); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.step-n { display: block; font-size: 12px; color: var(--text-3); letter-spacing: .12em; margin-bottom: 8px; }
.step-title { font: 600 clamp(22px, 2.4vw, 30px)/1.1 var(--display); letter-spacing: -.025em; }
.step-body { margin-top: 8px; color: var(--text-2); font-size: 16px; }
.local { margin-top: clamp(28px, 3.5vw, 40px); font-size: 13px; color: var(--text-2); text-align: center; text-wrap: balance; }
.local svg { display: inline-block; vertical-align: -4px; margin-right: 4px; width: 18px; height: 18px; fill: none; stroke: var(--mint); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Under the hood */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tech-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 20px 28px; }
.tech-card .il { width: 100%; height: auto; margin-bottom: 24px; border-radius: 10px; background: var(--page); }
.tech-card h3 { font: 600 22px/1.15 var(--display); letter-spacing: -.02em; padding-inline: 4px; }
.tech-card p { margin-top: 10px; color: var(--text-2); font-size: 15px; line-height: 1.55; padding-inline: 4px; }
.js .tech-card .ip-new { stroke-dasharray: 5 5; }
.js .tech-card .ip-b { opacity: 0; transform: translateY(6px); transition: opacity .8s .5s, transform .8s .5s; }
.js .tech-card.in .ip-b { opacity: 1; transform: none; }
.js .tech-card.in .ip-new { animation: solid 1.2s .9s ease forwards; }
@keyframes solid { to { stroke-dasharray: 400 0; } }
.js .tech-card .an-hit { stroke-dasharray: 60; stroke-dashoffset: 60; }
.js .tech-card.in .an-hit { transition: stroke-dashoffset .9s .6s ease-out; stroke-dashoffset: 0; }
.js .tech-card .ex-badge, .js .tech-card .ex-check { transform-origin: 270px 50px; transform: scale(.4); opacity: 0; transition: transform .5s .7s cubic-bezier(.3, 1.6, .5, 1), opacity .3s .7s; }
.js .tech-card.in .ex-badge, .js .tech-card.in .ex-check { transform: none; opacity: 1; }

/* Examples */
.ex-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 32px); }
.ex .compare { border-radius: var(--r); border: 1px solid var(--line); }
.ex-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; margin-top: 14px; padding-inline: 2px; }
.ex-title { font-weight: 500; font-size: 16px; }
.ex-res { font-size: 13px; color: var(--mint); }
.slowmo-sec { padding-top: 0; }
.slowmo { max-width: 1280px; margin-inline: auto; }
.slowmo-box { position: relative; aspect-ratio: 32 / 9; background: #000; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .8); }
.slowmo-box video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.deband-fig { max-width: 760px; margin-inline: auto; }
.deband-fig .compare { aspect-ratio: 1100 / 640; border: 1px solid var(--line); border-radius: var(--r); }
.deband-fig .caption { text-align: left; font-family: var(--sans); font-size: 14px; max-width: 46em; margin-inline: auto; }
.deband-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 4vw, 56px); max-width: 880px; margin: clamp(28px, 3.5vw, 44px) auto 0; border-top: 1px solid var(--line); }
.deband-stats > div { padding: 22px 0 4px; }
.deband-stats dt { order: 2; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin-top: 8px; }
.deband-stats > div { display: flex; flex-direction: column; }
.deband-stats dd { font: 600 clamp(22px, 2.4vw, 30px)/1.1 var(--display); letter-spacing: -.025em; color: var(--mint); }
@media (max-width: 700px) { .deband-stats { grid-template-columns: 1fr; } .deband-stats > div { padding-block: 14px; border-bottom: 1px solid var(--line); } }
.ex-hero { margin-top: clamp(32px, 4vw, 48px); text-align: center; font-size: 13px; color: var(--text-2); text-wrap: balance; }

/* Insert / Replace / Drop */
.modes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mode { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px 24px 24px; text-align: center; }
.mode h3 { font: 600 24px/1.1 var(--display); letter-spacing: -.02em; }
.mode p { margin-top: 8px; color: var(--text-2); font-size: 15px; }
.fr-row { display: flex; justify-content: center; gap: 6px; height: 28px; margin-bottom: 36px; }
.fr { position: relative; flex: none; width: 34px; height: 26px; border: 1.5px solid var(--ctl); border-radius: 4px; overflow: hidden; }
.fr::before, .fr b { content: ""; position: absolute; top: 50%; left: calc(3px + var(--p) * 21px); width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--text-3); }
/* Insert */
.mode-insert .fr-x { border-color: var(--mint); background: rgba(147, 226, 174, .12); }
.mode-insert .fr-x::before { background: var(--mint); }
.mode-insert .fr-x { animation: ins 4.8s ease-in-out infinite; }
@keyframes ins {
  0%, 22% { width: 0; margin-inline: -3px; opacity: 0; border-width: 0; }
  42%, 100% { width: 34px; margin-inline: 0; opacity: 1; border-width: 1.5px; }
}
/* Replace */
.mode-replace .fr-x { animation: rep-box 4.8s ease-in-out infinite; }
.mode-replace .fr-x b { background: var(--red); animation: rep-old 4.8s ease-in-out infinite; }
.mode-replace .fr-x::before { background: var(--mint); animation: rep-new 4.8s ease-in-out infinite; }
@keyframes rep-box { 0%, 30% { border-color: var(--red); background: rgba(255, 100, 100, .1); } 46%, 100% { border-color: var(--mint); background: rgba(147, 226, 174, .12); } }
@keyframes rep-old { 0%, 30% { opacity: 1; } 42%, 100% { opacity: 0; } }
@keyframes rep-new { 0%, 34% { opacity: 0; } 46%, 100% { opacity: 1; } }
/* Drop */
.mode-drop .fr-x { animation: drop 4.8s ease-in-out infinite; }
.mode-drop .fr-x::before { animation: drop-dot 4.8s ease-in-out infinite; }
@keyframes drop {
  0%, 16% { width: 34px; margin-inline: 0; opacity: 1; border-color: var(--ctl); background: transparent; }
  28%, 44% { width: 34px; margin-inline: 0; opacity: 1; border-color: var(--amber); background: rgba(242, 196, 107, .12); }
  62%, 100% { width: 0; margin-inline: -3px; opacity: 0; border-color: var(--amber); border-width: 0; }
}
@keyframes drop-dot { 0%, 16% { background: var(--text-3); } 28%, 100% { background: var(--amber); } }
.fr-row { animation: row-fade 4.8s ease-in-out infinite; }
@keyframes row-fade { 0%, 4% { opacity: 0; } 12%, 90% { opacity: 1; } 100% { opacity: 0; } }

/* Requirements + limits */
.spec { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: clamp(24px, 4vw, 56px); border-top: 1px solid var(--line); }
.spec-cell { padding: 28px 0 30px; border-bottom: 1px solid var(--line); }
.spec dt { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); margin-bottom: 12px; }
.spec-v { display: block; font: 600 clamp(24px, 2.6vw, 34px)/1.1 var(--display); letter-spacing: -.025em; }
.spec-s { display: block; margin-top: 8px; color: var(--text-2); font-size: 15px; }
.limits { margin-top: clamp(44px, 5.5vw, 72px); display: grid; grid-template-columns: 1fr 1.6fr; gap: 24px clamp(32px, 6vw, 80px); align-items: start; }
.limits-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.limits-list li:first-child { border-top: 1px solid var(--line); }
.limits-list svg { width: 20px; height: 20px; flex: none; margin-top: 2px; fill: none; stroke: var(--text-3); stroke-width: 1.5; stroke-linecap: round; }

/* Pricing */
.price-card {
  max-width: 440px; margin-inline: auto; text-align: center; padding: clamp(28px, 4vw, 44px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(147, 226, 174, .22), 0 40px 100px -40px rgba(147, 226, 174, .12);
}
.price-label { display: inline-block; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--mint); padding: 6px 12px; border-radius: 999px; background: rgba(147, 226, 174, .1); }
.price { margin-top: 24px; display: flex; justify-content: center; align-items: baseline; gap: 14px; }
.price-now { font: 600 clamp(72px, 9vw, 96px)/1 var(--display); letter-spacing: -.04em; }
.price-was { font: 500 30px/1 var(--display); color: var(--text-3); text-decoration-thickness: 2px; }
.price-note { margin-top: 10px; font-size: 13px; color: var(--text-2); letter-spacing: .04em; }
.price-list { margin: 32px 0; text-align: left; display: grid; gap: 12px; }
.price-list li { display: flex; gap: 12px; align-items: center; font-size: 16px; }
.price-list svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--mint); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.price-dl { margin-top: 10px; }
.price-trial { margin-top: 16px; font-size: 13px; color: var(--mint); letter-spacing: .02em; }
.price-fine { margin-top: 18px; font-size: 13px; line-height: 1.5; color: var(--text-3); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.7fr; gap: 32px clamp(32px, 6vw, 80px); align-items: start; }
.faq .sec-head { margin-bottom: 0; position: sticky; top: 96px; }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: 18px; font-weight: 500; line-height: 1.35; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-top: 6px; background: linear-gradient(var(--text-2), var(--text-2)) center / 12px 1.5px no-repeat, linear-gradient(var(--text-2), var(--text-2)) center / 1.5px 12px no-repeat; transition: transform .25s; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa summary:hover { color: #fff; }
.qa p { padding: 0 0 24px; color: var(--text-2); max-width: 40em; }

/* Final CTA */
.final { position: relative; padding-block: clamp(64px, 8vw, 112px); border-top: 1px solid var(--line); overflow: hidden; }
.final::before { content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 520px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(147, 226, 174, .09), transparent); pointer-events: none; }
.final .wrap { position: relative; }
.final-glyph { width: 72px; height: 72px; margin: 0 auto 28px; }
.final .lede { margin: 20px auto 36px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 44px 0 32px; font-size: 15px; color: var(--text-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer .brand { color: var(--text); }
.footer-tag { margin-top: 12px; }
.footer-k { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); margin-bottom: 10px; }
.footer-col p + p { margin-top: 8px; }
.footer a:hover { color: var(--text); }
.footer-fine { margin-top: 48px; padding-top: 24px; background: linear-gradient(var(--line), var(--line)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat; display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); }
.footer-fine p:first-child { max-width: 52em; }

/* Signup dialog */
.signup {
  width: min(460px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 18px;
  background: var(--panel); color: var(--text); box-shadow: 0 40px 120px rgba(0, 0, 0, .7);
}
.signup::backdrop { background: rgba(5, 6, 7, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.signup-form { position: relative; padding: 32px clamp(20px, 5vw, 32px) 28px; }
.signup-glyph { width: 32px; height: 32px; margin-bottom: 18px; }
.signup-body { margin-top: 10px; color: var(--text-2); font-size: 16px; }
.signup-mail { display: none; margin-top: 20px; }
.signup-form.is-mail .signup-mail { display: block; }
.signup-form.is-mail > .signup-body, .signup-form.is-mail .signup-label, .signup-form.is-mail .signup-row, .signup-form.is-mail .signup-status { display: none; }
.signup-mail .signup-body { display: block; margin: 0 0 18px; }
.signup-label { display: block; margin: 24px 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-2); }
.signup-row { display: flex; gap: 8px; flex-wrap: wrap; }
.signup-row input {
  flex: 1 1 200px; min-width: 0; height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--ctl);
  background: var(--page); color: var(--text); font: 400 16px var(--sans);
}
.signup-row input::placeholder { color: var(--text-3); }
.signup-row input:focus-visible { outline: 2px solid var(--mint); outline-offset: 1px; border-color: transparent; }
.signup-row .btn { flex: 0 0 auto; }
.signup-status { min-height: 1.5em; margin-top: 12px; font-size: 14px; color: var(--text-2); }
.signup-status.is-ok { color: var(--mint); }
.signup-status.is-warn { color: var(--amber); }
.signup-status.is-err { color: var(--red); }
.signup-fine { font-size: 13px; color: var(--text-3); }
.signup-fine a { text-decoration: underline; text-underline-offset: 3px; }
.signup-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.signup-close:hover { background: var(--raised); }
.signup-close svg { width: 18px; height: 18px; fill: none; stroke: var(--text-2); stroke-width: 1.8; stroke-linecap: round; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* Legal pages */
.legal { padding-block: clamp(48px, 7vw, 96px); max-width: 760px; }
.legal h1 { font: 600 clamp(36px, 5vw, 56px)/1.05 var(--display); letter-spacing: -.03em; margin-bottom: 32px; }
.legal h2 { font: 600 22px/1.2 var(--display); letter-spacing: -.015em; margin: 40px 0 12px; }
.legal { overflow-wrap: anywhere; }
.legal p, .legal li { color: var(--text-2); margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 1.2em; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.todo-banner { border: 1px solid rgba(242, 196, 107, .45); background: rgba(242, 196, 107, .08); color: var(--amber); border-radius: 12px; padding: 16px 18px; margin-bottom: 40px; font-size: 15px; }
.ph { color: var(--amber); background: rgba(242, 196, 107, .1); border: 1px dashed rgba(242, 196, 107, .5); border-radius: 4px; padding: 0 6px; font-family: var(--mono); font-size: .88em; }

.legal-note, .legal p.legal-note { font: 400 13px/1.6 var(--mono); color: var(--text-3); margin-top: 40px; }
.lic-scroll { overflow-x: auto; margin-bottom: 12px; }
.lic { width: 100%; border-collapse: collapse; font-size: 15px; }
.lic th { text-align: left; font: 400 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.lic td { vertical-align: top; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.lic td b { color: var(--text); font-weight: 500; }
.lic a, .lic-list a { overflow-wrap: anywhere; }
.lic-note { font-size: 14px; color: var(--text-3); }
.lic-code { font: 400 12px/1.6 var(--mono); color: var(--text-2); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 16px; }
.lic-list { list-style: none; padding: 0; display: grid; gap: 14px; color: var(--text-2); margin-bottom: 16px; }
.legal .lic-list li { margin: 0; }

/* Responsive */
@media (max-width: 900px) {
  .tech-grid, .modes-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .spec { grid-template-columns: repeat(2, 1fr); }
  .limits, .faq-wrap { grid-template-columns: 1fr; }
  .faq .sec-head { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .ex-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .step::after { display: none; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; text-align: left; padding: 0; align-items: center; }
  .step-icon { grid-row: 1 / span 3; width: 56px; height: 56px; margin: 0; border-radius: 16px; }
  .step-n { margin-bottom: 2px; }
  .step-body { margin-top: 2px; font-size: 15px; }
  .steps { max-width: 360px; margin-inline: auto; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .spec { column-gap: 20px; }
  .spec-cell { padding: 20px 0 22px; }
  .spec-v { font-size: 21px; }
  .spec-s { font-size: 14px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .window-bar { height: 28px; padding: 0 10px; gap: 6px; }
  .window-bar i { width: 8px; height: 8px; }
  .window-bar span { font-size: 11px; }
  .cmp-tag { top: 8px; padding: 4px 7px; font-size: 10px; }
  .cmp-tag.is-before { left: 8px; } .cmp-tag.is-after { right: 8px; }
  .cmp-knob { width: 36px; height: 36px; }
  .cmp-knob::before { left: 8px; } .cmp-knob::after { right: 8px; }
  .cmp-play { width: 32px; height: 32px; right: 8px; bottom: 8px; }
  .lane-plot { margin-left: 22px; }
  .lane-y { left: -22px; font-size: 10px; }
  .lane-time { margin-left: 22px; }
  .lane-gap span { font-size: 11px; }
  .lane-top { flex-wrap: wrap; margin-bottom: 36px; }
  .footer-grid { grid-template-columns: 1fr; }
  .fr { width: 30px; }
  .fr::before, .fr b { left: calc(3px + var(--p) * 17px); }
  @keyframes ins { 0%, 22% { width: 0; margin-inline: -3px; opacity: 0; border-width: 0; } 42%, 100% { width: 30px; margin-inline: 0; opacity: 1; border-width: 1.5px; } }
}

/* Reduced motion: no scroll animations or loops; show end states */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .fr-row { opacity: 1; }
  .mode-replace .fr-x { border-color: var(--mint); background: rgba(147, 226, 174, .12); }
  .mode-replace .fr-x b { opacity: 0; }
  .mode-drop .fr-x { display: none; }
  .js .tech-card .ip-b, .js .tech-card .ex-badge, .js .tech-card .ex-check { opacity: 1; transform: none; }
  .js .tech-card .an-hit { stroke-dashoffset: 0; }
  .js .tech-card .ip-new { stroke-dasharray: none; }
}
.legal a.btn { text-decoration: none; }
.deband-note { margin-top: 12px; }
