:root {
  color-scheme: dark;
  --bg: #020408;
  --panel: #070b12;
  --panel-2: #0a1019;
  --line: rgba(143, 176, 216, 0.18);
  --text: #f7f9fc;
  --muted: #a6b2c2;
  --soft: #7f8fa3;
  --blue: #168bff;
  --blue-2: #0063fc;
  --green: #49df88;
  --gold: #f4bd32;
  --max: 1180px;
  --header: 76px;
  --z-header: 50;
  --z-menu: 45;
  --z-sticky: 40;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 78% 7%, rgba(0, 99, 252, 0.12), transparent 26%),
    linear-gradient(180deg, #020408 0%, #04070c 48%, #020408 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img,
video {
  max-width: 100%;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.anchor-alias {
  position: relative;
  display: block;
  top: calc(-1 * var(--header) - 14px);
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-header);
  height: var(--header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(2, 4, 8, 0.82);
  backdrop-filter: blur(18px);
}

.nav {
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand img,
.footer-brand img {
  flex: 0 0 auto;
  object-fit: contain;
}

.brand span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.7vw, 20px);
  font-size: 13px;
  font-weight: 750;
  color: #b7c2d0;
  white-space: nowrap;
}

.desktop-nav a {
  transition: color 160ms ease-out, border-color 160ms ease-out, background-color 160ms ease-out;
}

.desktop-nav a:hover {
  color: #fff;
}

.lang {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 11px;
}

.btn,
.ghost {
  min-width: 0;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 21px;
  font-weight: 850;
  text-align: center;
  transition:
    transform 180ms ease-out,
    box-shadow 180ms ease-out,
    border-color 180ms ease-out,
    background-color 180ms ease-out;
}

.btn {
  background: linear-gradient(180deg, #2598ff, #0574ea);
  color: #fff;
  box-shadow: 0 8px 14px rgba(0, 117, 255, 0.2);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 117, 255, 0.28);
}

.ghost {
  border-color: var(--line);
  background: rgba(9, 14, 23, 0.68);
  color: #e1e9f3;
}

.ghost:hover {
  border-color: rgba(70, 154, 255, 0.5);
  background-color: #0a1320;
}

.menu-button {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: #fff;
  transition: transform 180ms ease-out, top 180ms ease-out;
}

.menu-button span:first-child {
  top: 16px;
}

.menu-button span:last-child {
  top: 25px;
}

.menu-open .menu-button span:first-child {
  top: 21px;
  transform: rotate(45deg);
}

.menu-open .menu-button span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  min-height: 92svh;
  padding: 150px 0 90px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 4, 8, 0.96) 0%, rgba(2, 4, 8, 0.74) 42%, rgba(2, 4, 8, 0.28) 72%, rgba(2, 4, 8, 0.72) 100%),
    linear-gradient(180deg, rgba(2, 4, 8, 0.72), rgba(2, 4, 8, 0.18) 47%, #020408 100%);
}

.hero-replay-bg {
  position: absolute;
  inset: var(--header) 0 0;
  z-index: 0;
  pointer-events: none;
}

.hero-replay-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
  opacity: 0.34;
  filter: saturate(0.92) contrast(1.08);
}

.hero-replay-line {
  position: absolute;
  left: max(20px, calc((100vw - var(--max)) / 2));
  right: max(20px, calc((100vw - var(--max)) / 2));
  bottom: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  color: rgba(214, 228, 246, 0.72);
  font: 850 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.06em;
}

.hero-replay-line span {
  min-width: 0;
  border-top: 1px solid rgba(101, 180, 255, 0.32);
  padding-top: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.98fr);
  gap: clamp(34px, 6vw, 70px);
  align-items: center;
}

.eyebrow {
  margin-bottom: 15px;
  color: #62afff;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.hero h1,
.section-head h2,
.final-card h2 {
  text-wrap: balance;
}

.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(52px, 6.1vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero h1 span {
  color: #66b7ff;
}

.hero-text {
  max-width: 650px;
  margin: 0;
  color: #b6c1cf;
  font-size: 19px;
  line-height: 1.65;
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.micro {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
  margin-top: 19px;
  color: #8b9bad;
  font-size: 12px;
  font-weight: 720;
}

.micro span::before {
  content: "✓";
  margin-right: 6px;
  color: var(--green);
}

.hero-device {
  position: relative;
  min-height: 640px;
  display: grid;
  place-items: center;
}

.glow {
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: rgba(0, 99, 252, 0.17);
  filter: blur(70px);
}

.phone {
  position: relative;
  width: min(370px, 86vw);
  padding: 7px;
  border: 1px solid rgba(171, 205, 247, 0.2);
  border-radius: 42px;
  background: linear-gradient(145deg, #233143, #06090d 55%, #1d2a3a);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 36px;
}

.float {
  position: absolute;
  z-index: 3;
  max-width: 190px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 15px;
  background: rgba(7, 12, 19, 0.9);
  backdrop-filter: blur(16px);
}

.float b,
.float span {
  display: block;
}

.float b {
  margin-bottom: 5px;
  color: #65b4ff;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.float span {
  color: #c4ceda;
  font-size: 12px;
  line-height: 1.35;
}

.float.one {
  left: 0;
  top: 18%;
}

.float.two {
  right: 0;
  bottom: 17%;
}

.proof {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #04070c;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.proof-item {
  min-width: 0;
  padding: 24px 20px;
  border-right: 1px solid var(--line);
}

.proof-item:last-child {
  border-right: 0;
}

.proof-item b,
.proof-item span {
  display: block;
}

.proof-item b {
  font-size: 14px;
}

.proof-item span {
  margin-top: 5px;
  color: #8796aa;
  font-size: 11px;
}

.section {
  position: relative;
  padding: 100px 0;
}

.section.compact {
  padding: 78px 0;
}

.section-head {
  max-width: 780px;
  margin-bottom: 44px;
}

.section-head h2,
.final-card h2 {
  margin: 0;
  font-size: clamp(38px, 4.7vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.section-head p {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  text-wrap: pretty;
}

.demo-grid,
.remote-grid,
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.demo-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  align-items: center;
  gap: clamp(18px, 3vw, 30px);
}

.video-card,
.demo-panel,
.trigger-card,
.watch-card,
.plan,
.trust-card,
.story-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(13, 20, 31, 0.88), rgba(5, 9, 15, 0.96));
}

.video-card {
  position: relative;
  min-height: 0;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.video-badge,
.video-control,
.watch-cue {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.66);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
}

.video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 0 rgba(22, 139, 255, 0);
  transition: box-shadow 180ms ease-out;
}

.video-card.replay-saved::after {
  box-shadow: inset 0 0 0 3px rgba(22, 139, 255, 0.72);
}

.video-badge {
  top: 18px;
  left: 18px;
  padding: 9px 11px;
  letter-spacing: 0.08em;
}

.video-control {
  right: 18px;
  bottom: 18px;
  min-height: 44px;
  padding: 0 15px;
  cursor: pointer;
  transition: background-color 160ms ease-out, border-color 160ms ease-out;
}

.video-control:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background-color: rgba(0, 0, 0, 0.78);
}

.watch-cue {
  left: 18px;
  bottom: 18px;
  max-width: min(360px, calc(100% - 130px));
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 13px 8px 10px;
  background: rgba(3, 8, 15, 0.82);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 180ms ease-out, transform 180ms ease-out, border-color 180ms ease-out;
}

.video-card.watch-cue-visible .watch-cue {
  border-color: rgba(22, 139, 255, 0.48);
  opacity: 1;
  transform: none;
}

.watch-cue img {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

.watch-cue span,
.watch-cue b,
.watch-cue small {
  min-width: 0;
  display: block;
}

.watch-cue b {
  color: #fff;
  font-size: 12px;
  line-height: 1.1;
}

.watch-cue small {
  margin-top: 3px;
  color: #a9bad0;
  font-size: 11px;
  line-height: 1.25;
}

.demo-panel {
  overflow: visible;
  border: 0;
  background: transparent;
  padding: clamp(10px, 2vw, 24px) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.demo-panel h3,
.watch-card h3 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.demo-panel > p,
.watch-card p {
  color: var(--muted);
  line-height: 1.65;
}

.save-flow {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(5, 10, 17, 0.68);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.save-step {
  min-width: 0;
  min-height: 128px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  padding: 16px;
  border-left: 1px solid rgba(143, 176, 216, 0.12);
  color: #8998ac;
  transition: background-color 180ms ease-out, color 180ms ease-out;
}

.save-step:first-child {
  border-left: 0;
}

.save-step span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(143, 176, 216, 0.22);
  border-radius: 50%;
  color: #91a2b7;
  font-size: 12px;
  font-weight: 900;
}

.save-step b,
.save-step small {
  min-width: 0;
  display: block;
}

.save-step b {
  color: #c5d1df;
  font-size: 15px;
  line-height: 1.2;
  overflow-wrap: normal;
  word-break: normal;
}

.save-step small {
  margin-top: auto;
  color: #8797ac;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: normal;
  word-break: normal;
}

.save-step.complete span {
  border-color: rgba(73, 223, 136, 0.45);
  background: rgba(73, 223, 136, 0.1);
  color: #9af1bd;
}

.save-step.active {
  background: rgba(22, 139, 255, 0.12);
}

.save-step.active span {
  border-color: rgba(22, 139, 255, 0.7);
  background: rgba(22, 139, 255, 0.18);
  color: #fff;
}

.save-step.active b {
  color: #fff;
}

.auto-save-status {
  min-height: 68px;
  margin-top: 14px;
  border: 1px solid rgba(73, 223, 136, 0.28);
  border-radius: 16px;
  background:
    radial-gradient(circle at 12% 50%, rgba(73, 223, 136, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(73, 223, 136, 0.12), rgba(5, 12, 18, 0.9));
  color: #9af1bd;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  opacity: 0.42;
  transform: translateY(5px);
  transition: opacity 180ms ease-out, transform 180ms ease-out, border-color 180ms ease-out, background-color 180ms ease-out;
}

.auto-save-status.show {
  border-color: rgba(73, 223, 136, 0.52);
  opacity: 1;
  transform: none;
}

.auto-save-status img {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.auto-save-status > span,
.auto-save-status b,
.auto-save-status small {
  min-width: 0;
  display: block;
}

.auto-save-status b {
  color: #fff;
  font-size: 18px;
  line-height: 1.15;
}

.auto-save-status small {
  margin-top: 3px;
  color: #9af1bd;
  font-size: 12px;
  line-height: 1.35;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.step {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding: 30px 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.step > span {
  color: #168bff;
  font: 800 11px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.step h3 {
  margin: 25px 0 8px;
  font-size: 22px;
}

.step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.trigger-card {
  padding: 34px;
}

.trigger-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.trigger {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #080d15;
  padding: 19px;
}

.trigger b,
.trigger span {
  display: block;
}

.trigger b {
  margin-bottom: 6px;
  font-size: 15px;
}

.trigger span {
  color: #93a1b3;
  font-size: 12px;
  line-height: 1.45;
}

.watch-card {
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.7fr);
  align-items: center;
  gap: 20px;
  background: radial-gradient(circle at 80% 50%, rgba(0, 99, 252, 0.16), transparent 38%), #070b12;
}

.watch-card img {
  width: min(245px, 100%);
  height: auto;
  justify-self: center;
  border-radius: 16px;
}

.screens {
  display: grid;
  grid-template-columns: minmax(280px, 360px) repeat(2, minmax(0, 1fr));
  gap: 14px;
  overflow: visible;
  padding: 0;
}

.screen-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  padding: 12px;
  border: 1px solid rgba(143, 176, 216, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 18%, rgba(22, 139, 255, 0.14), transparent 34%),
    rgba(7, 11, 18, 0.78);
}

.screen-card.featured,
.screen-card.result {
  grid-row: span 2;
  grid-template-columns: 1fr;
  align-self: stretch;
  padding: 13px;
  background:
    radial-gradient(circle at 50% 0%, rgba(22, 139, 255, 0.24), transparent 40%),
    linear-gradient(180deg, rgba(11, 18, 29, 0.96), rgba(3, 6, 11, 0.92));
}

.screen-card.result {
  grid-column: span 2;
  grid-row: auto;
  grid-template-columns: minmax(180px, 0.52fr) minmax(0, 1fr);
  background:
    radial-gradient(circle at 22% 10%, rgba(73, 223, 136, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(10, 18, 27, 0.96), rgba(3, 7, 11, 0.92));
}

.screen-phone {
  min-width: 0;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, #1b2736, #05080c);
}

.screen-phone img {
  display: block;
  width: 100%;
  height: 142px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 12px;
}

.screen-card.featured .screen-phone,
.screen-card.result .screen-phone {
  border-radius: 22px;
  padding: 6px;
}

.screen-card.featured .screen-phone img,
.screen-card.result .screen-phone img {
  height: min(468px, 42vw);
  object-position: center 50%;
  border-radius: 17px;
}

.screen-card.result .screen-phone img {
  height: 238px;
}

.screen-copy {
  min-width: 0;
}

.screen-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  text-wrap: balance;
}

.screen-card p {
  margin: 0;
  color: #8796a9;
  font-size: 12px;
  line-height: 1.5;
  text-wrap: pretty;
}

.screen-card.featured h3,
.screen-card.result h3 {
  margin-top: 15px;
  font-size: 22px;
}

.screen-card.featured p,
.screen-card.result p {
  max-width: 34ch;
  font-size: 13px;
}

.plans {
  max-width: 950px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 17px;
}

.plan {
  position: relative;
  padding: 34px;
}

.plan.pro {
  border-color: rgba(244, 189, 50, 0.34);
  background: radial-gradient(circle at 90% 5%, rgba(244, 189, 50, 0.1), transparent 35%), #080d15;
}

.plan h3 {
  margin: 0 0 14px;
  font-size: 27px;
}

.price {
  font-size: 42px;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.annual,
.price-note {
  color: #8a99ad;
  font-size: 12px;
}

.plan ul {
  margin: 25px 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
  color: #bec9d8;
}

.plan li::before {
  content: "✓";
  margin-right: 9px;
  color: var(--green);
  font-weight: 900;
}

.plan.pro li::before {
  color: var(--gold);
}

.pro-badge {
  display: inline-flex;
  border: 1px solid rgba(244, 189, 50, 0.28);
  border-radius: 999px;
  background: rgba(244, 189, 50, 0.1);
  color: #ffd86e;
  padding: 7px 10px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.price-note {
  max-width: 950px;
  margin-top: 14px;
  text-align: center;
}

.trust-card,
.story-card {
  padding: 38px;
}

.trust-card h2 {
  margin: 0;
  font-size: 42px;
}

.trust-card > p,
.story-card > p {
  color: var(--muted);
  line-height: 1.7;
}

.privacy-list {
  display: grid;
  gap: 9px;
  margin-top: 24px;
}

.privacy-item {
  display: flex;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}

.privacy-item i {
  color: var(--green);
  font-style: normal;
  font-weight: 900;
}

.privacy-item b,
.privacy-item span {
  display: block;
}

.privacy-item span {
  margin-top: 4px;
  color: #93a1b4;
  font-size: 12px;
  line-height: 1.45;
}

.story-card blockquote {
  margin: 35px 0 25px;
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.faq {
  max-width: 900px;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  list-style: none;
  cursor: pointer;
  padding: 22px 2px;
  font-size: 17px;
  font-weight: 800;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  color: #63b2ff;
  font-size: 24px;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: 0;
  padding: 0 30px 22px 2px;
  color: var(--muted);
  line-height: 1.7;
}

.final-section {
  padding: 30px 0 105px;
}

.final-card {
  border: 1px solid rgba(22, 139, 255, 0.3);
  border-radius: 16px;
  background: radial-gradient(circle at 80% 15%, rgba(0, 99, 252, 0.18), transparent 40%), #07101b;
  padding: 65px 35px;
  text-align: center;
}

.final-card p {
  color: var(--muted);
  font-size: 18px;
}

.final-card .actions {
  justify-content: center;
}

footer {
  border-top: 1px solid var(--line);
  padding: 27px 0 90px;
  color: #8796aa;
  font-size: 12px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-download {
  display: none;
}

.legal-body {
  background:
    radial-gradient(circle at 78% 7%, rgba(0, 99, 252, 0.12), transparent 26%),
    radial-gradient(circle at 12% 18%, rgba(73, 223, 136, 0.06), transparent 28%),
    linear-gradient(180deg, #020408 0%, #04070c 48%, #020408 100%);
}

.legal-page {
  min-height: 100vh;
  padding-top: var(--header);
}

.legal-hero {
  border-bottom: 1px solid var(--line);
  padding: 62px 0 38px;
  background: linear-gradient(180deg, rgba(8, 14, 24, 0.76), rgba(2, 4, 8, 0));
}

.legal-hero .container {
  max-width: 960px;
}

.legal-back {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(9, 14, 23, 0.7);
  color: #dce7f5;
  font-size: 12px;
  font-weight: 850;
}

.legal-hero .kicker,
.legal-aside .label {
  color: #62afff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.legal-hero .kicker {
  margin-top: 28px;
}

.legal-hero h1 {
  max-width: 860px;
  margin: 13px 0 18px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.legal-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  text-wrap: pretty;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.legal-meta span {
  max-width: 100%;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(5, 9, 15, 0.68);
  color: #8495aa;
  font-size: 11px;
}

.legal-shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 22px;
  padding: 44px 0 96px;
}

.legal-aside {
  align-self: start;
  position: sticky;
  top: calc(var(--header) + 16px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(7, 12, 19, 0.82);
  padding: 20px;
  backdrop-filter: blur(16px);
}

.legal-aside nav,
.legal-support,
.legal-footer-grid nav {
  display: grid;
  gap: 9px;
}

.legal-aside nav {
  margin-top: 16px;
}

.legal-aside a,
.legal-footer-grid a,
.legal-footer-bottom a {
  color: #a8b6c9;
  transition: color 160ms ease-out;
}

.legal-aside a:hover,
.legal-footer-grid a:hover,
.legal-footer-bottom a:hover {
  color: #fff;
}

.legal-aside nav a {
  border-top: 1px solid rgba(143, 176, 216, 0.12);
  padding-top: 10px;
  font-size: 13px;
  line-height: 1.35;
}

.legal-support {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 13px;
}

.legal-support strong {
  color: #edf3fb;
}

.legal-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(13, 20, 31, 0.86), rgba(5, 9, 15, 0.96));
  padding: clamp(26px, 4.4vw, 52px);
}

.legal-card h2,
.legal-card h3 {
  scroll-margin-top: calc(var(--header) + 22px);
  letter-spacing: -0.02em;
}

.legal-card h2 {
  margin: 42px 0 14px;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.12;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card h3 {
  margin: 28px 0 11px;
  font-size: 22px;
}

.legal-card p,
.legal-card li,
.legal-card td {
  color: #bdc8d7;
  line-height: 1.78;
}

.legal-card p {
  margin: 0 0 18px;
}

.legal-card a {
  color: #65b4ff;
  text-decoration: underline;
  text-decoration-color: rgba(101, 180, 255, 0.35);
  text-underline-offset: 3px;
}

.legal-card ul,
.legal-card ol {
  padding-left: 22px;
  margin: 16px 0 22px;
}

.legal-card li + li {
  margin-top: 8px;
}

.legal-card hr {
  height: 1px;
  border: 0;
  margin: 36px 0;
  background: var(--line);
}

.legal-card blockquote {
  margin: 22px 0;
  border: 1px solid rgba(143, 176, 216, 0.18);
  border-radius: 14px;
  padding: 16px 18px;
  background: rgba(9, 15, 24, 0.58);
  color: #d9e6f7;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.legal-card table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.legal-card th,
.legal-card td {
  border-bottom: 1px solid rgba(143, 176, 216, 0.12);
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
}

.legal-card th {
  color: #edf3fb;
  font-size: 13px;
}

.legal-footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) repeat(3, minmax(130px, 0.7fr));
  gap: 28px;
}

.legal-footer-grid p {
  max-width: 380px;
  margin: 14px 0 0;
  color: #8fa0b5;
  line-height: 1.6;
}

.legal-footer-grid nav b {
  color: #edf3fb;
  font-size: 12px;
}

.legal-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-top: 36px;
  border-top: 1px solid rgba(143, 176, 216, 0.12);
  padding-top: 20px;
  color: #66778e;
}

.legal-body footer {
  padding-bottom: 42px;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal.in {
  animation: reveal-in 440ms ease-out both;
}

@keyframes reveal-in {
  from {
    opacity: 0.001;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1040px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .mobile-nav {
    position: fixed;
    display: grid;
    z-index: var(--z-menu);
    top: var(--header);
    left: 0;
    right: 0;
    padding: 22px 25px 28px;
    border-bottom: 1px solid var(--line);
    background: rgba(3, 6, 10, 0.98);
    transform: translateY(-130%);
    transition: transform 220ms ease-out;
  }

  .menu-open .mobile-nav {
    transform: none;
  }

  .mobile-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 6px 4px;
    font-weight: 750;
  }

  .mobile-nav .btn {
    margin-top: 8px;
  }

  .hero {
    padding-top: 125px;
  }

  .hero-grid,
  .demo-grid,
  .remote-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-text {
    margin-inline: auto;
  }

  .actions,
  .micro {
    justify-content: center;
  }

  .hero-device {
    min-height: 600px;
  }

  .float.one {
    left: 8%;
  }

  .float.two {
    right: 8%;
  }

  .video-card {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .watch-card {
    grid-template-columns: minmax(0, 1fr) minmax(120px, 0.7fr);
  }

  .screens {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screen-card.featured,
  .screen-card.result {
    grid-column: auto;
    grid-row: auto;
  }

  .screen-card.featured .screen-phone img,
  .screen-card.result .screen-phone img {
    height: min(390px, 50vw);
  }

  .plans {
    grid-template-columns: 1fr 1fr;
  }

  .legal-shell,
  .legal-footer-grid {
    grid-template-columns: 1fr;
  }

  .legal-aside {
    position: static;
  }
}

@media (max-width: 680px) {
  :root {
    --header: 68px;
  }

  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .hero {
    min-height: auto;
    padding: 105px 0 55px;
  }

  .hero-grid {
    gap: 25px;
  }

  .hero h1 {
    font-size: clamp(42px, 11.4vw, 58px);
    line-height: 1.02;
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-device {
    min-height: 520px;
  }

  .phone {
    width: min(312px, 82vw);
    border-radius: 34px;
  }

  .phone img {
    border-radius: 29px;
  }

  .float {
    max-width: min(156px, 44vw);
    padding: 10px 11px;
  }

  .float.one {
    left: max(0px, calc(50% - 176px));
  }

  .float.two {
    right: max(0px, calc(50% - 176px));
  }

  .actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .actions .ghost:last-child {
    grid-column: 1 / -1;
  }

  .actions .btn,
  .actions .ghost {
    width: 100%;
    padding: 0 12px;
    font-size: 12px;
  }

  .micro {
    font-size: 11px;
  }

  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-item:nth-child(2) {
    border-right: 0;
  }

  .proof-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding: 74px 0;
  }

  .section.compact {
    padding: 58px 0;
  }

  .section-head {
    margin-bottom: 30px;
  }

  .section-head h2 {
    font-size: clamp(32px, 9vw, 46px);
  }

  .section-head p {
    font-size: 15px;
  }

  .video-card {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .watch-cue {
    left: 14px;
    right: 14px;
    bottom: 14px;
    max-width: none;
  }

  .demo-panel {
    padding: 6px 0 0;
  }

  .demo-panel h3,
  .demo-panel > p {
    display: none;
  }

  .save-flow {
    margin-top: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .save-step {
    min-height: 76px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 9px 5px;
    border-top: 0;
    border-left: 1px solid rgba(143, 176, 216, 0.12);
  }

  .save-step:first-child {
    border-left: 0;
  }

  .save-step span {
    width: 28px;
    height: 28px;
  }

  .save-step b {
    font-size: 11px;
    line-height: 1.15;
  }

  .save-step small {
    display: none;
  }

  .auto-save-status {
    min-height: 54px;
    margin-top: 12px;
    padding: 9px 13px;
  }

  .auto-save-status b {
    font-size: 16px;
  }

  .auto-save-status small {
    font-size: 12px;
  }

  .steps,
  .trigger-list,
  .plans {
    grid-template-columns: 1fr;
  }

  .trigger-card,
  .watch-card,
  .plan,
  .trust-card,
  .story-card {
    padding: 25px;
  }

  .watch-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .watch-card img {
    width: min(250px, 72vw);
  }

  .screens {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .screen-card {
    grid-row: auto;
    grid-template-columns: minmax(86px, 112px) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
  }

  .screen-card.featured,
  .screen-card.result {
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 11px;
  }

  .screen-phone,
  .screen-card.featured .screen-phone,
  .screen-card.result .screen-phone {
    padding: 4px;
    border-radius: 14px;
  }

  .screen-phone img {
    height: 148px;
    object-position: center 18%;
    border-radius: 10px;
  }

  .screen-card.featured .screen-phone img,
  .screen-card.result .screen-phone img {
    height: min(304px, 78vw);
    object-position: center 50%;
  }

  .screen-card h3 {
    margin: 0 0 5px;
    font-size: 17px;
  }

  .screen-card.featured h3,
  .screen-card.result h3 {
    margin: 0 0 6px;
    font-size: 19px;
  }

  .screen-card p {
    max-width: none;
    font-size: 12px;
    line-height: 1.4;
  }

  .screen-card.featured p,
  .screen-card.result p {
    max-width: none;
    font-size: 13px;
    line-height: 1.45;
  }

  .price {
    font-size: 37px;
  }

  .trust-card h2 {
    font-size: 35px;
  }

  .faq summary {
    font-size: 15px;
  }

  .final-card {
    padding: 42px 20px;
  }

  .final-card .actions {
    grid-template-columns: 1fr;
  }

  .footer-row {
    flex-direction: column;
  }

  .mobile-download {
    position: fixed;
    z-index: var(--z-sticky);
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(4, 8, 14, 0.94);
    backdrop-filter: blur(15px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 24px));
    transition: transform 180ms ease-out, opacity 180ms ease-out;
  }

  .download-ready:not(.immersive-section-active) .mobile-download {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .immersive-section-active .mobile-download {
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 24px));
  }

  .mobile-download span {
    min-width: 0;
    display: grid;
    gap: 2px;
    padding-left: 6px;
  }

  .mobile-download b,
  .mobile-download small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-download b {
    font-size: 15px;
  }

  .mobile-download small {
    color: var(--muted);
    font-size: 12px;
  }

  .mobile-download .btn {
    min-width: 104px;
    padding-inline: 18px;
  }

  footer {
    padding-bottom: 118px;
  }

  .legal-body footer {
    padding-bottom: 42px;
  }

  .legal-page {
    padding-bottom: 0;
  }

  .legal-hero {
    padding: 22px 0 18px;
  }

  .legal-back {
    min-height: 34px;
    padding: 0 12px;
  }

  .legal-hero .kicker {
    margin-top: 14px;
  }

  .legal-hero h1 {
    margin: 9px 0 10px;
    font-size: clamp(26px, 7.6vw, 34px);
    line-height: 1.08;
  }

  .legal-hero p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .legal-meta {
    display: none;
  }

  .legal-shell {
    width: min(calc(100% - 28px), var(--max));
    gap: 16px;
    padding: 28px 0 68px;
  }

  .legal-card {
    padding: 24px 18px;
  }

  .legal-card h2 {
    font-size: 27px;
  }

  .legal-card h3 {
    font-size: 20px;
  }

  .legal-card p,
  .legal-card li,
  .legal-card td {
    font-size: 15px;
  }

  .legal-footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  .container {
    width: min(calc(100% - 24px), var(--max));
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 48px);
  }

  .phone {
    width: min(292px, 80vw);
  }

  .float {
    max-width: 138px;
  }

  .proof-item {
    padding: 20px 14px;
  }

  .screens {
    gap: 9px;
  }

  .screen-card {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 10px;
    padding: 9px;
  }

  .screen-card.featured,
  .screen-card.result {
    grid-template-columns: 1fr;
  }

  .screen-phone img {
    height: 126px;
  }

  .screen-card.featured .screen-phone img,
  .screen-card.result .screen-phone img {
    height: min(272px, 76vw);
  }

  .screen-card h3 {
    font-size: 15px;
  }

  .screen-card.featured h3,
  .screen-card.result h3 {
    font-size: 18px;
  }

  .screen-card p {
    font-size: 11px;
  }

  .mobile-download {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .mobile-download b {
    font-size: 14px;
  }

  .mobile-download .btn {
    min-width: 92px;
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
