:root {
  --brand-ink-950: #071327;
  --brand-ink-900: #0f2342;
  --brand-ink-800: #17345d;
  --brand-ink-700: #22508a;
  --brand-electric-600: #1177ff;
  --brand-electric-500: #2a9dff;
  --brand-cyan-500: #00b7d8;
  --brand-warm-500: #f8b84d;
  --brand-warm-400: #ffd789;
  --surface-0: #f4f8ff;
  --surface-1: #ffffff;
  --surface-2: #edf3ff;
  --surface-3: #dbe7ff;
  --text-strong: #0d1a32;
  --text-body: #2c3b56;
  --text-soft: #5f6f8c;
  --stroke-1: #cad8f5;
  --shadow-soft: 0 20px 45px rgba(12, 33, 71, 0.08);
  --shadow-hard: 0 24px 50px rgba(9, 28, 63, 0.16);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --content-max: 1160px;
  --header-height: 78px;
  --badge-height: 56px;
  --font-heading: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: linear-gradient(180deg, #f8fbff 0%, #f4f7ff 45%, #f1f5fd 100%);
  min-height: 100vh;
  overflow-x: clip;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--content-max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(202, 216, 245, 0.8);
  backdrop-filter: blur(12px);
  background: rgba(245, 249, 255, 0.86);
}

.site-header__inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  text-decoration: none;
}

.logo img {
  width: 35px;
  height: 35px;
}

.logo span {
  font-family: var(--font-heading);
  font-size: 1.48rem;
  letter-spacing: 0.01em;
  color: var(--brand-ink-900);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--text-body);
  font-size: 0.95rem;
  font-weight: 500;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  color: #f8fbff;
  font-weight: 600;
  font-size: 0.92rem;
  background: linear-gradient(120deg, var(--brand-ink-800), var(--brand-electric-600));
  box-shadow: 0 12px 28px rgba(17, 63, 136, 0.27);
}

main {
  overflow: clip;
}

section {
  padding-top: clamp(2.6rem, 5.5vw, 4.2rem);
  padding-bottom: clamp(1.5rem, 3.4vw, 2.6rem);
}

#download {
  padding-bottom: clamp(2.6rem, 5.5vw, 4.2rem);
}

.section-title {
  font-family: var(--font-heading);
  color: var(--brand-ink-900);
  font-size: clamp(1.85rem, 3.6vw, 2.8rem);
  line-height: 1.08;
  margin: 0 0 0.9rem;
}

.section-subtitle {
  max-width: 66ch;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.64;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  padding-top: 4.5rem;
  padding-bottom: 4rem;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  z-index: -4;
  background: linear-gradient(180deg, #f9fbff 0%, #f4f8ff 100%);
}

.hero::after {
  z-index: -1;
  opacity: 0.27;
  background-image: radial-gradient(rgba(15, 35, 66, 0.22) 0.55px, transparent 0.55px);
  background-size: 3px 3px;
}

.hero__aurora {
  --aurora-shift-x: 0px;
  --aurora-shift-y: 0px;
  position: absolute;
  inset: -14% -14% -16%;
  z-index: -3;
  pointer-events: none;
  transform: translate3d(var(--aurora-shift-x), var(--aurora-shift-y), 0);
  will-change: transform;
}

.hero__ribbon {
  position: absolute;
  width: clamp(310px, 48vw, 760px);
  height: clamp(190px, 26vw, 390px);
  border-radius: 48% 52% 58% 42% / 44% 38% 62% 56%;
  filter: blur(62px);
  opacity: 0.48;
}

.hero__ribbon--electric {
  top: 2%;
  left: -12%;
  background: linear-gradient(125deg, rgba(17, 119, 255, 0.8), rgba(42, 157, 255, 0.34));
  animation: aurora-electric 30s ease-in-out infinite;
}

.hero__ribbon--cyan {
  top: 13%;
  right: -10%;
  background: linear-gradient(140deg, rgba(0, 183, 216, 0.62), rgba(17, 119, 255, 0.22));
  animation: aurora-cyan 34s ease-in-out infinite;
}

.hero__ribbon--warm {
  bottom: -8%;
  left: 23%;
  background: linear-gradient(145deg, rgba(248, 184, 77, 0.48), rgba(255, 215, 137, 0.16));
  animation: aurora-warm 28s ease-in-out infinite;
}

@keyframes aurora-electric {
  0% {
    transform: translate3d(-2%, 0, 0) rotate(5deg) scale(1);
    filter: blur(62px) hue-rotate(0deg);
  }

  50% {
    transform: translate3d(11%, 5%, 0) rotate(12deg) scale(1.06);
    filter: blur(64px) hue-rotate(7deg);
  }

  100% {
    transform: translate3d(0, 9%, 0) rotate(4deg) scale(0.98);
    filter: blur(62px) hue-rotate(-5deg);
  }
}

@keyframes aurora-cyan {
  0% {
    transform: translate3d(0, 0, 0) rotate(-9deg) scale(1.03);
    filter: blur(60px) hue-rotate(0deg);
  }

  50% {
    transform: translate3d(-10%, 8%, 0) rotate(-4deg) scale(1);
    filter: blur(64px) hue-rotate(-8deg);
  }

  100% {
    transform: translate3d(-4%, -4%, 0) rotate(-11deg) scale(1.07);
    filter: blur(61px) hue-rotate(6deg);
  }
}

@keyframes aurora-warm {
  0% {
    transform: translate3d(0, 0, 0) rotate(6deg) scale(0.98);
    filter: blur(60px) hue-rotate(0deg);
  }

  50% {
    transform: translate3d(8%, -7%, 0) rotate(11deg) scale(1.05);
    filter: blur(63px) hue-rotate(6deg);
  }

  100% {
    transform: translate3d(-4%, -2%, 0) rotate(3deg) scale(1);
    filter: blur(61px) hue-rotate(-6deg);
  }
}

@keyframes aurora-reduced-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    filter: blur(62px);
  }

  50% {
    transform: translate3d(3%, -2%, 0) rotate(2deg) scale(1.02);
    filter: blur(64px);
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-right: clamp(330px, 40vw, 690px);
}

.hero__text {
  max-width: 610px;
  padding-inline-start: clamp(0rem, 0.35vw, 0.2rem);
  padding-block: 0.3rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-ink-700);
  font-weight: 700;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  animation: hero-content-in 460ms cubic-bezier(0.2, 0.7, 0.2, 1) 90ms forwards;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--brand-electric-600);
}

.hero__headline {
  margin: 0;
  font-family: var(--font-heading);
  color: var(--brand-ink-950);
  font-size: clamp(2.16rem, 4.45vw, 4.35rem);
  line-height: 0.98;
  letter-spacing: -0.012em;
  max-width: 10.2ch;
}

.hero__headline span {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 1rem, 0);
}

.hero__headline.is-ready span {
  animation: hero-word-in 640ms cubic-bezier(0.21, 0.75, 0.19, 1) forwards;
  animation-delay: calc(170ms + (var(--word-index, 0) * 48ms));
}

.hero__copy {
  margin: 1.12rem 0 0;
  color: var(--text-body);
  line-height: 1.64;
  font-size: clamp(1rem, 1.02vw, 1.16rem);
  max-width: 42ch;
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  animation: hero-content-in 620ms cubic-bezier(0.2, 0.7, 0.2, 1) 420ms forwards;
}

.hero__actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  animation: hero-content-in 540ms cubic-bezier(0.2, 0.7, 0.2, 1) 560ms forwards;
}

.hero__constellation {
  --constellation-shift-x: 0px;
  --constellation-shift-y: 0px;
  --constellation-tilt: 0deg;
  --field-energy: 1;
  position: absolute;
  top: 0;
  right: clamp(10px, 2.2vw, 42px);
  width: min(57vw, 840px);
  height: 100%;
  z-index: -2;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(var(--constellation-shift-x), var(--constellation-shift-y), 0)
    rotate(var(--constellation-tilt));
  transform-origin: 62% 50%;
  will-change: transform;
  animation: evidence-enter 860ms cubic-bezier(0.22, 0.72, 0.2, 1) 260ms forwards;
}

.hero__constellation::before,
.hero__constellation::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__constellation::before {
  inset: 7% 6% 7% 10%;
  background:
    radial-gradient(circle at 74% 42%, rgba(17, 119, 255, 0.18), transparent 58%),
    radial-gradient(circle at 62% 68%, rgba(0, 183, 216, 0.14), transparent 50%),
    radial-gradient(circle at 36% 28%, rgba(248, 184, 77, 0.14), transparent 44%);
  filter: blur(24px);
  animation: evidence-glow-drift 19s ease-in-out infinite;
}

.hero__constellation::after {
  inset: 6% 6% 8% 8%;
  border-radius: 28px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.34), rgba(232, 241, 255, 0.1)),
    radial-gradient(circle at 24% 28%, rgba(255, 255, 255, 0.32), transparent 24%),
    radial-gradient(circle at 76% 72%, rgba(17, 119, 255, 0.16), transparent 36%);
  opacity: 0.34;
}

.hero__constellation.is-static .hero__evidence-canvas,
.hero__constellation.is-static .hero__evidence-copy {
  display: none;
}

.hero__constellation.is-static::before {
  inset: 8% 8% 10% 12%;
  background:
    radial-gradient(circle at 66% 44%, rgba(17, 119, 255, 0.24), transparent 54%),
    radial-gradient(circle at 48% 64%, rgba(0, 183, 216, 0.16), transparent 58%);
  filter: blur(12px);
  animation: none;
}

.hero__constellation.is-static::after {
  inset: 10% 12% 14% 16%;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.34), rgba(224, 237, 255, 0.16));
  opacity: 0.5;
}

.hero__evidence-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: calc(0.62 + (var(--field-energy) * 0.3));
  mix-blend-mode: multiply;
  -webkit-mask-image:
    linear-gradient(to right, black, black 75%, transparent),
    linear-gradient(to bottom, transparent, black 12%, black 85%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, black, black 75%, transparent),
    linear-gradient(to bottom, transparent, black 12%, black 85%, transparent);
  mask-composite: intersect;
}

.hero__evidence-copy {
  position: absolute;
  inset: 8% 4% 10% 9%;
}

.hero__signal-label {
  position: absolute;
  left: var(--label-x, 50%);
  top: var(--label-y, 50%);
  transform: translate3d(-50%, -50%, 0);
  white-space: nowrap;
  font-size: clamp(0.59rem, 0.56rem + 0.16vw, 0.76rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(13, 47, 94, 0.9);
  padding: 0.24rem 0.48rem;
  border-radius: 999px;
  border: 1px solid rgba(17, 119, 255, 0.24);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(228, 240, 255, 0.52));
  box-shadow:
    0 8px 18px rgba(12, 40, 84, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  opacity: 0;
  will-change: transform, opacity;
  animation:
    signal-fade-in 540ms cubic-bezier(0.24, 0.72, 0.19, 1) forwards,
    signal-drift var(--drift-duration, 7200ms) ease-in-out infinite;
  animation-delay: var(--label-delay, 0ms), calc(var(--label-delay, 0ms) + 580ms);
}

@keyframes evidence-enter {
  from {
    opacity: 0;
    transform: translate3d(24px, 2px, 0) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translate3d(var(--constellation-shift-x), var(--constellation-shift-y), 0)
      rotate(var(--constellation-tilt)) scale(1);
  }
}

@keyframes evidence-glow-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.84;
  }

  50% {
    transform: translate3d(0, -9px, 0) scale(1.03);
    opacity: 1;
  }
}

@keyframes signal-fade-in {
  from {
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(0.84);
    filter: blur(1px);
  }

  to {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes signal-drift {
  0%,
  100% {
    transform: translate3d(-50%, -50%, 0);
  }

  50% {
    transform: translate3d(calc(-50% + 5px), calc(-50% - 6px), 0);
  }
}

@keyframes signal-drift-reduced {
  0%,
  100% {
    transform: translate3d(-50%, -50%, 0);
  }

  50% {
    transform: translate3d(calc(-50% + 2px), calc(-50% - 2px), 0);
  }
}

@keyframes hero-word-in {
  from {
    opacity: 0;
    transform: translate3d(0, 1rem, 0);
    filter: blur(1px);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@keyframes hero-content-in {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.68rem 1.1rem;
  border-radius: 999px;
  font-size: 0.89rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.pill--primary {
  background: linear-gradient(120deg, var(--brand-ink-800), var(--brand-electric-600));
  color: #f8fcff;
}

.pill--ghost {
  border: 1px solid rgba(34, 80, 138, 0.36);
  color: var(--brand-ink-900);
  background: rgba(255, 255, 255, 0.74);
}

.pill:hover {
  transform: translate3d(0, -2px, 0);
}

.pill--primary:hover {
  box-shadow: 0 12px 26px rgba(17, 83, 163, 0.24);
}

.steps {
  margin-top: 2.3rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.step-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke-1);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(236, 244, 255, 0.84));
  padding: 1.15rem;
  box-shadow: var(--shadow-soft);
}

.step-card__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(17, 119, 255, 0.12);
  color: var(--brand-ink-800);
  font-size: 0.86rem;
  font-weight: 700;
}

.step-card h3 {
  margin: 0.8rem 0 0.55rem;
  color: var(--brand-ink-900);
  font-size: 1.05rem;
}

.step-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
  font-size: 0.93rem;
}

.category-marquee {
  margin-top: 2rem;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  overflow: hidden;
  position: relative;
  padding-block: 0.3rem;
}

.category-track {
  --category-gap: 0.95rem;
  display: flex;
  width: max-content;
  animation: categories-ltr 56s linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.category-seq {
  display: flex;
  gap: var(--category-gap);
  padding-inline-end: var(--category-gap);
  flex-shrink: 0;
}

.category-card {
  width: clamp(162px, 18vw, 222px);
  flex: 0 0 auto;
  border-radius: 20px;
  border: 1px solid rgba(164, 185, 222, 0.5);
  background: rgba(255, 255, 255, 0.88);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(16, 37, 73, 0.08);
}

.category-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.category-card__body {
  padding: 0.72rem 0.76rem 0.82rem;
}

.category-card h3 {
  margin: 0;
  color: var(--brand-ink-900);
  font-size: 0.92rem;
  line-height: 1.2;
  text-align: center;
}

@keyframes categories-ltr {
  from {
    transform: translate3d(-50%, 0, 0);
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}

.trust-wrap {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.trust-card {
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--stroke-1);
  padding: 1.2rem;
}

.trust-card h3 {
  margin: 0;
  color: var(--brand-ink-900);
  font-size: 1.06rem;
}

.trust-card ul {
  margin: 0.85rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
  color: var(--text-soft);
}

.pricing-grid {
  margin-top: 1.9rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.plan {
  border-radius: var(--radius-md);
  border: 1px solid rgba(152, 176, 221, 0.55);
  background: rgba(255, 255, 255, 0.9);
  padding: 1.15rem;
  display: grid;
  gap: 0.75rem;
}

.plan--featured {
  border-color: rgba(17, 119, 255, 0.5);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(234, 244, 255, 0.93));
  box-shadow: 0 16px 34px rgba(17, 83, 163, 0.14);
}

.plan__name {
  margin: 0;
  color: var(--brand-ink-900);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plan__price {
  margin: 0;
  color: var(--brand-ink-950);
  font-size: 1.58rem;
  font-family: var(--font-heading);
}

.plan__sub {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.plan ul {
  margin: 0;
  padding-left: 1.05rem;
  display: grid;
  gap: 0.38rem;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.savings-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  min-height: 28px;
  padding: 0.2rem 0.72rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #f9fcff;
  background: linear-gradient(120deg, #1557b0, #168cff);
}

.pricing-foot {
  margin-top: 1.15rem;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.52;
}

.faq-list {
  margin-top: 1.9rem;
  display: grid;
  gap: 0.72rem;
}

.faq-item {
  border-radius: 14px;
  border: 1px solid rgba(152, 176, 221, 0.48);
  background: rgba(255, 255, 255, 0.88);
}

.faq-trigger {
  width: 100%;
  border: 0;
  padding: 0.92rem 1rem;
  text-align: left;
  background: transparent;
  color: var(--brand-ink-900);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.faq-trigger::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--brand-ink-700);
}

.faq-item[open] .faq-trigger::after {
  content: "−";
}

.faq-content {
  padding: 0 1rem 0.95rem;
  color: var(--text-soft);
  line-height: 1.6;
  font-size: 0.9rem;
}

.download-panel {
  margin-top: 1.9rem;
  border-radius: 22px;
  border: 1px solid rgba(160, 182, 223, 0.58);
  background:
    radial-gradient(circle at 82% 18%, rgba(17, 119, 255, 0.18), transparent 35%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.94), rgba(236, 244, 255, 0.9));
  padding: clamp(1rem, 2.8vw, 2rem);
  display: grid;
  gap: 1rem;
}

.download-panel h3 {
  margin: 0;
  color: var(--brand-ink-900);
  font-size: clamp(1.22rem, 2.5vw, 1.8rem);
  font-family: var(--font-heading);
}

.download-panel p {
  margin: 0;
  color: var(--text-soft);
  max-width: 66ch;
  line-height: 1.55;
}

.store-badges {
  container-type: inline-size;
}

.store-badges__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.store-badge {
  border-radius: 11px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
}

.store-badge:focus-visible,
.header-cta:focus-visible,
.pill:focus-visible,
.nav a:focus-visible,
.logo:focus-visible {
  outline: 2px solid var(--brand-electric-600);
  outline-offset: 3px;
}

.store-badge img {
  height: var(--badge-height);
  width: auto;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.9);
}

.store-note {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.footer {
  border-top: 1px solid rgba(180, 201, 236, 0.65);
  background: rgba(255, 255, 255, 0.66);
  padding-block: 1.8rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.2rem;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
}

.footer a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.88rem;
}

.footer p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.legal-main {
  padding-top: 2.2rem;
  padding-bottom: 4rem;
}

.legal-shell {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 1.35rem;
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  align-self: start;
  max-height: calc(100vh - var(--header-height) - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: var(--radius-md);
  border: 1px solid rgba(163, 186, 227, 0.62);
  background: rgba(255, 255, 255, 0.92);
  padding: 1rem;
}

.legal-toc h2 {
  margin: 0;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  color: var(--brand-ink-800);
  text-transform: uppercase;
}

.legal-toc ul {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.42rem;
}

.legal-toc li a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.84rem;
  line-height: 1.4;
}

.legal-content {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(173, 194, 232, 0.6);
  background: rgba(255, 255, 255, 0.95);
  padding: clamp(1.2rem, 3vw, 2.2rem);
}

.legal-content h1,
.legal-content h2,
.legal-content h3,
.legal-content h4 {
  color: var(--brand-ink-900);
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.legal-content h1 {
  font-family: var(--font-heading);
  margin-top: 0;
  margin-bottom: 0.9rem;
  font-size: clamp(1.65rem, 2.4vw, 2.2rem);
}

.legal-content h2 {
  margin-top: 1.8rem;
  margin-bottom: 0.7rem;
  font-size: 1.28rem;
}

.legal-content h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.54rem;
  font-size: 1.06rem;
}

.legal-content h4 {
  margin-top: 0.95rem;
  margin-bottom: 0.45rem;
  font-size: 0.96rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-body);
  line-height: 1.66;
  font-size: 0.95rem;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.25rem;
  margin-top: 0.55rem;
}

.legal-content hr {
  border: 0;
  border-top: 1px solid var(--stroke-1);
  margin: 1.15rem 0;
}

.legal-content a {
  color: var(--brand-electric-600);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@container (max-width: 760px) {
  .store-badges__row {
    flex-direction: column;
    align-items: stretch;
  }

  .store-badge {
    width: min(100%, 320px);
  }

  .store-badge img {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 1080px) {
  .hero__content {
    padding-right: clamp(250px, 37vw, 470px);
  }

  .hero__text {
    max-width: 620px;
  }

  .hero__constellation {
    right: clamp(4px, 1.5vw, 24px);
    width: min(50vw, 620px);
  }

  .hero__evidence-copy {
    inset: 10% 6% 13% 11%;
  }

  .trust-wrap {
    grid-template-columns: 1fr;
  }

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

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

  .legal-toc {
    position: static;
  }
}

@media (max-width: 850px) {
  .site-header__inner {
    padding-block: 0.7rem;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 2.8rem;
  }

  .hero__content {
    padding-right: 0;
  }

  .hero__headline {
    max-width: 10.2ch;
  }

  .hero__aurora {
    inset: -22% -34% -25%;
  }

  .hero__constellation {
    display: none;
  }

  .hero__signal-label {
    display: none;
  }

  .steps,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .container {
    width: min(100% - 1.4rem, var(--content-max));
  }

  .logo span {
    font-size: 1.32rem;
  }

  .header-cta {
    padding-inline: 0.95rem;
  }

  .hero__ribbon {
    opacity: 0.42;
  }

  .hero__headline {
    font-size: clamp(1.95rem, 12vw, 3.2rem);
    line-height: 0.98;
    max-width: 10.8ch;
  }

  .hero__copy {
    max-width: 36ch;
  }

  .footer__inner {
    flex-direction: column;
  }

  .category-track {
    animation-duration: 64s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .category-track {
    animation-duration: 90s;
  }

  .hero__aurora {
    transform: none;
  }

  .hero__ribbon {
    animation: aurora-reduced-drift 48s ease-in-out infinite;
  }

  .hero__constellation {
    animation: evidence-enter 860ms cubic-bezier(0.22, 0.72, 0.2, 1) 260ms forwards;
    transform: translate3d(var(--constellation-shift-x), var(--constellation-shift-y), 0);
    --field-energy: 0.55;
  }

  .hero__constellation::before {
    animation: evidence-glow-drift 38s ease-in-out infinite;
  }

  .hero__signal-label {
    opacity: 0.9;
    animation: signal-drift-reduced 24s ease-in-out infinite;
    animation-delay: 0ms;
  }

  .eyebrow,
  .hero__copy,
  .hero__actions {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .hero__headline span {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .pill {
    transition: none;
  }

  .pill:hover {
    transform: none;
  }
}
