/* Spatial: the Margin homepage. Shared application styles remain in styles.css. */
:root {
  font-family: Manrope, Arial, sans-serif;
  font-synthesis: none;
  color-scheme: light;
  --bg: #f9fbff;
  --ink: #162d51;
  --muted: #5e6e88;
  --accent: #3158e6;
  --accent-ink: #ffffff;
  --line: #24458221;
  --panel: #eef3ff;
  --panel-strong: #ffffff;
  --serif: "DM Serif Display", Georgia, serif;
  --scroll: 0;
}
* {
  box-sizing: border-box;
}
html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 35px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  overflow-x: clip;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}
::selection {
  background: var(--accent);
  color: var(--accent-ink);
}
.shell {
  width: calc(100% - 112px);
  max-width: 1440px;
  margin: 0 auto;
}
.skip {
  clip-path: inset(50%);
  position: fixed;
  left: 20px;
  top: -80px;
  padding: 15px;
  background: var(--accent);
  color: var(--accent-ink);
  z-index: 100;
}
.skip:focus {
  clip-path: none;
  top: 20px;
}
.site-header {
  height: 106px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
}
.wordmark {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1.6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.wordmark svg {
  width: 34px;
  height: 34px;
}
.site-header nav {
  display: flex;
  gap: 36px;
  font-size: 12px;
  font-weight: 500;
}
.site-header nav a {
  transition: color 0.2s;
}
.site-header nav a:hover {
  color: var(--accent);
}
.nav-cta {
  font-size: 12px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 5px;
  display: flex;
  gap: 30px;
  align-items: center;
}
.nav-cta:hover {
  border-color: var(--accent);
}
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 770px;
  padding-top: 97px;
  padding-bottom: 94px;
}
.hero-copy {
  position: relative;
  z-index: 2;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.7px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.6;
}
.status-dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 40%, transparent);
  display: inline-block;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(60px, 6.2vw, 96px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -5px;
  margin-top: 30px;
  margin-bottom: 27px;
}
h1 em,
h2 em {
  font-weight: 400;
  font-family: var(--serif);
  color: var(--accent);
}
.hero-desc {
  font-size: 14px;
  line-height: 1.85;
  max-width: 380px;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  gap: 25px;
  align-items: center;
  margin-top: 32px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-radius: 5px;
  min-height: 50px;
  padding: 0 20px;
  font-size: 12px;
  font-weight: 700;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px color-mix(in srgb, var(--accent) 20%, transparent);
}
.primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.button > span {
  font-size: 20px;
  font-weight: 400;
}
.text-link {
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.play-icon {
  height: 28px;
  width: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 15px;
}
.availability {
  margin-top: 24px;
  font-size: 10px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: center;
}
.tiny-mark {
  font-size: 17px;
}
.hero-art {
  position: relative;
  min-width: 0;
  min-height: 560px;
  margin-top: -55px;
  margin-right: -16px;
  transform: translateY(calc(var(--scroll) * 55px));
  isolation: isolate;
}
.art-grid {
  position: absolute;
  inset: 2% -5% 8%;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 66px 66px;
  mask-image: radial-gradient(ellipse, #0003, transparent 67%);
  z-index: -1;
}
.art-glow {
  position: absolute;
  inset: 20% 4%;
  background: radial-gradient(ellipse, #d1ad5830, transparent 66%);
  filter: blur(30px);
}
.sculpture {
  position: absolute;
  inset: -9% -10% -2%;
  z-index: 1;
}
.sculpture canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.sculpture-fallback {
  position: absolute;
  width: 58%;
  height: 63%;
  top: 20%;
  left: 23%;
  border: 48px solid var(--accent);
  border-radius: 50%;
  transform: rotate(-30deg) rotateY(30deg);
  box-shadow:
    inset 5px 7px 16px #fff6,
    12px 12px 40px #0003,
    inset -9px -10px 15px #0005;
  background: transparent;
}
.is-rendered .sculpture-fallback {
  display: none;
}
.art-orbit {
  position: absolute;
  inset: 13% 2% 17%;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: rotate(-38deg) scaleY(0.8);
}
.orbit-two {
  inset: 24% -4% 28%;
  transform: rotate(35deg) scaleY(0.8);
}
.floating-note {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--panel) 84%, transparent);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  box-shadow: 0 16px 45px #0002;
  border-radius: 9px;
  animation: levitate 7s ease-in-out infinite;
}
.note-one {
  top: 25%;
  right: -2%;
  padding: 17px 20px;
  gap: 12px;
  transform: rotate(5deg);
}
.note-symbol {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 8px;
}
.note-symbol svg {
  width: 23px;
  height: 23px;
}
.note-one small {
  display: block;
  font-size: 7px;
  letter-spacing: 1.2px;
  margin-bottom: 6px;
  color: var(--muted);
}
.note-one strong {
  font-size: 10px;
  font-weight: 500;
}
.note-spark {
  font-size: 25px;
  color: var(--accent);
  margin-left: 8px;
}
.note-two {
  bottom: 23%;
  left: 2%;
  padding: 13px 18px;
  gap: 12px;
  font-size: 11px;
  animation-delay: -3s;
}
.note-check {
  height: 22px;
  width: 22px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.art-caption {
  position: absolute;
  bottom: 5%;
  left: 9%;
  right: 4%;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
}
.crosshair {
  font-size: 25px;
  color: var(--accent);
  font-weight: 300;
}
.coordinate {
  margin-left: auto;
  font-size: 9px;
  letter-spacing: 2px;
}
.art-label {
  position: absolute;
  right: -20px;
  top: 52%;
  font-size: 7px;
  letter-spacing: 2px;
  writing-mode: vertical-rl;
  color: var(--muted);
}
.hero-bottom {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 1.4px;
  color: var(--muted);
}
.hero-bottom a {
  display: flex;
  gap: 25px;
  align-items: center;
}
.hero-bottom a span {
  font-size: 18px;
}
.hero-index {
  font-family: monospace;
}
.works-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
  display: flex;
  align-items: center;
  gap: 80px;
}
.works-strip p {
  font-size: 10px;
  line-height: 1.9;
  color: var(--muted);
  flex-shrink: 0;
}
.works-strip p strong {
  color: var(--ink);
  font-weight: 500;
}
.app-names {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 20px;
}
.app-names > span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.6px;
  color: var(--muted);
}
.app-names b {
  font-size: 25px;
  font-weight: 400;
}
.intro {
  padding: 140px 0 110px;
  text-align: center;
  max-width: 870px;
}
.intro .eyebrow {
  justify-content: center;
  margin-bottom: 25px;
}
h2 {
  font-size: clamp(38px, 4.5vw, 66px);
  letter-spacing: -2.8px;
  font-weight: 500;
  line-height: 1.12;
}
.intro > p {
  max-width: 430px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}
.how-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 85px;
  align-items: start;
  padding: 80px 0 140px;
  border-top: 1px solid var(--line);
}
.how-copy {
  position: sticky;
  top: 70px;
}
.how-copy h2 {
  font-size: clamp(35px, 3.8vw, 56px);
  margin: 23px 0 35px;
}
.step-buttons {
  display: grid;
}
.step {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  display: flex;
  text-align: left;
  gap: 18px;
  opacity: 0.52;
  transition: opacity 0.25s;
}
.step.active,
.step:hover {
  opacity: 1;
}
.step-num {
  font-size: 9px;
  line-height: 23px;
  color: var(--accent);
}
.step strong {
  font-size: 13px;
  display: block;
  font-weight: 600;
  margin-bottom: 9px;
}
.step > span:nth-child(2) > span {
  font-size: 11px;
  line-height: 1.8;
  max-width: 315px;
  display: block;
  color: var(--muted);
}
.step-arrow {
  margin-left: auto;
  color: var(--accent);
  font-size: 20px;
}
.demo-stage {
  position: relative;
  min-height: 615px;
  perspective: 1400px;
  padding-top: 55px;
}
.demo-halo {
  position: absolute;
  inset: 2% -8%;
  background: radial-gradient(
    ellipse,
    color-mix(in srgb, var(--accent) 14%, transparent),
    transparent 66%
  );
}
.demo-window {
  position: relative;
  width: 100%;
  border: 1px solid #fff4;
  border-radius: 10px;
  box-shadow: 0 40px 60px #0003;
  transform: rotateY(-9deg) rotateX(var(--stage-tilt, 3deg)) rotateZ(2deg);
  background: #faf9f5;
  color: #333b36;
  overflow: hidden;
  transition: transform 0.25s;
}
.window-bar {
  height: 40px;
  background: #eeede8;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  font-size: 9px;
  color: #87877e;
}
.window-dots {
  display: flex;
  gap: 4px;
}
.window-dots i {
  height: 6px;
  width: 6px;
  background: #b4b5ac;
  border-radius: 50%;
}
.window-dots i:first-child {
  background: #de9e8a;
}
.window-dots i:nth-child(2) {
  background: #d4c48a;
}
.window-dots i:nth-child(3) {
  background: #9ab298;
}
.worksheet {
  padding: 26px 32px 40px;
  min-height: 350px;
}
.worksheet-top {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 1px;
  border-bottom: 1px solid #deded5;
  padding-bottom: 14px;
  margin-bottom: 25px;
}
.worksheet > small {
  font-size: 7px;
  letter-spacing: 1.4px;
  color: #8e9385;
}
.worksheet h3 {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
  margin: 5px 0 15px;
}
.worksheet > p {
  font-size: 10px;
  color: #7a7d74;
}
.equation {
  font-family: var(--serif);
  font-size: 31px;
  text-align: center;
  position: relative;
  margin: 23px -6px;
  padding: 10px 0;
  color: #31372f;
}
.equation svg {
  position: absolute;
  inset: -10px -7px;
  width: calc(100% + 14px);
  height: calc(100% + 20px);
  overflow: visible;
}
.equation ellipse {
  fill: none;
  stroke: #cd7b47;
  stroke-width: 2.4;
  stroke-dasharray: 1000;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s;
}
.demo-cursor {
  position: absolute;
  right: 4%;
  bottom: -13px;
  color: #a5673e;
  font-family: Manrope, sans-serif;
  font-size: 24px;
  transition: opacity 0.4s;
}
.demo-cursor b {
  font-size: 8px;
  background: #cd7b47;
  color: white;
  padding: 4px 7px;
  border-radius: 3px;
  font-weight: 500;
}
.writing-lines {
  display: grid;
  gap: 22px;
  margin-top: 30px;
}
.writing-lines i {
  height: 1px;
  background: #e3e1d8;
}
.demo-answer {
  position: absolute;
  bottom: 45px;
  left: 50px;
  font-family: var(--serif);
  font-size: 21px;
  color: #417251;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.4s,
    transform 0.4s;
}
.demo-answer span {
  font-family: sans-serif;
  margin-left: 12px;
}
/* Step 02 marks the two factors Margin wants noticed. The underline rides the
   glyphs themselves, so it lands correctly at any font size. */
.factor {
  position: relative;
}
.factor::before {
  content: "";
  position: absolute;
  left: -3px;
  right: -3px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: #cd7b47;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s ease;
}
.factor::after {
  content: attr(data-factor);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 2px);
  font-size: 0.45em;
  color: #cd7b47;
  opacity: 0;
  transition: opacity 0.3s 0.3s;
}
/* The second stroke follows the first, the way the marks would be drawn. */
.factor[data-factor="g"]::before {
  transition-delay: 0.3s;
}
.factor[data-factor="g"]::after {
  transition-delay: 0.6s;
}
.demo-working {
  list-style: none;
  display: none;
  margin: 12px 0 0;
  padding: 0;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.95;
  color: #6b7a90;
}
.demo-hint {
  position: relative;
  width: 88%;
  margin: -28px 0 0 auto;
  z-index: 2;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  box-shadow: 0 20px 45px #0002;
  border-radius: 10px;
  padding: 20px 22px;
  transform: rotate(-2deg);
  transition: transform 0.3s;
}
.hint-header {
  display: flex;
  align-items: center;
  gap: 7px;
}
.hint-header svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}
.hint-header strong {
  font-size: 11px;
}
.hint-header > span {
  font-size: 6px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-left: auto;
}
.demo-hint p {
  font-size: 12px;
  line-height: 1.8;
  margin: 13px 0;
  color: var(--ink);
  min-height: 65px;
}
.hint-foot {
  border-top: 1px solid var(--line);
  padding-top: 11px;
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: var(--muted);
}
.hint-foot > span:last-child {
  color: var(--accent);
}
.demo-caption {
  display: flex;
  justify-content: center;
  gap: 7px;
  align-items: center;
  margin-top: 25px;
  font-size: 7px;
  letter-spacing: 1px;
  color: var(--muted);
}
.demo-caption > span:last-child {
  margin-left: 10px;
  font-size: 6px;
}
.demo-caption .status-dot {
  width: 4px;
  height: 4px;
}
.demo-stage[data-stage="1"] .demo-window {
  transform: rotateY(-2deg) rotateZ(-1deg);
}
.demo-stage[data-stage="1"] .demo-hint {
  transform: translateY(-4px) rotate(0);
}
.demo-stage[data-stage="2"] .demo-window {
  transform: rotateY(0) rotateZ(0);
}
.demo-stage[data-stage="2"] .demo-hint {
  transform: rotate(0);
}
.demo-stage[data-stage="2"] .demo-answer {
  opacity: 1;
  transform: translateY(0);
}
.demo-stage[data-stage="2"] .demo-cursor {
  opacity: 0;
}
.demo-stage[data-stage="2"] .equation ellipse {
  stroke-dashoffset: 1000;
}
.demo-stage[data-stage="1"] .factor::before {
  transform: scaleX(1);
}
.demo-stage[data-stage="1"] .factor::after {
  opacity: 1;
}
.demo-stage[data-followup="solution"] .demo-working {
  display: block;
}
/* Step 03 promises you pick how much help you get, so these are real
   controls rather than a description of them. */
.hint-asks {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 14px;
}
.hint-asks[hidden] {
  display: none;
}
.hint-ask {
  border: 1px solid var(--line);
  background: none;
  border-radius: 999px;
  padding: 7px 13px;
  font: inherit;
  font-size: 10px;
  color: var(--muted);
  cursor: pointer;
  transition:
    background 0.25s,
    border-color 0.25s,
    color 0.25s;
}
.hint-ask:hover {
  color: var(--ink);
  border-color: var(--accent);
}
.hint-ask.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.possibilities {
  padding: 90px 0 125px;
  border-top: 1px solid var(--line);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 45px;
  gap: 50px;
}
.section-heading h2 {
  margin-top: 20px;
}
.section-heading > p {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 300px;
  margin-bottom: 8px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.feature-art {
  height: 235px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    ellipse at 50% 100%,
    color-mix(in srgb, var(--accent) 10%, transparent),
    transparent
  );
  overflow: hidden;
  perspective: 700px;
}
.feature-text {
  padding: 27px;
}
.feature-text .eyebrow {
  font-size: 7px;
  letter-spacing: 1.1px;
  color: var(--muted);
}
.feature-text h3 {
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.7px;
  margin: 12px 0;
}
.feature-text p {
  font-size: 11px;
  line-height: 1.85;
  color: var(--muted);
}
.math-token {
  font-family: var(--serif);
  display: grid;
  place-items: center;
  font-size: 100px;
  width: 130px;
  height: 140px;
  border-radius: 25px;
  background: linear-gradient(
    135deg,
    var(--accent),
    color-mix(in srgb, var(--accent) 40%, #000)
  );
  color: var(--accent-ink);
  box-shadow:
    6px 7px 0 color-mix(in srgb, var(--accent) 45%, #000),
    20px 25px 35px #0003,
    inset 2px 2px 2px #fff5;
  transform: rotate(-13deg) rotateY(-15deg);
}
.math-orbit {
  position: absolute;
  top: 32px;
  right: 46px;
  background: var(--panel-strong);
  padding: 14px;
  border-radius: 10px;
  font-family: var(--serif);
  font-size: 28px;
  transform: rotate(15deg);
  box-shadow: 0 15px 25px #0002;
}
.math-small {
  position: absolute;
  bottom: 36px;
  left: 38px;
  font-family: var(--serif);
  font-size: 30px;
  color: var(--muted);
  transform: rotate(-12deg);
}
.code-tile {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 22px 15px;
  box-shadow: 12px 20px 20px #0003;
  transform: rotateY(-15deg) rotateX(8deg) rotateZ(-5deg);
  font: 10px/2 monospace;
}
.code-tile > span {
  display: block;
  color: var(--muted);
}
.code-tile b {
  color: var(--accent);
  font-weight: 400;
}
.code-tile em {
  color: var(--ink);
  font-style: normal;
  border-bottom: 1px solid var(--accent);
}
.code-tile i {
  font:
    8px Manrope,
    sans-serif;
  display: block;
  color: var(--accent);
  margin-top: 20px;
}
.mini-page {
  width: 155px;
  height: 180px;
  border-radius: 4px;
  background: #eeeee4;
  color: #39473b;
  padding: 20px;
  transform: rotate(10deg) rotateY(-15deg);
  box-shadow:
    -6px 6px 0 #cbcebf,
    -12px 12px 0 #909b88,
    0 20px 35px #0004;
}
.mini-page > span {
  font-family: var(--serif);
  font-size: 13px;
  display: block;
  margin-bottom: 20px;
}
.mini-page i {
  display: block;
  height: 3px;
  background: #c4c9bd;
  margin-bottom: 12px;
}
.mini-page i:nth-child(3) {
  background: #daa67c;
  height: 6px;
}
.mini-page i:nth-child(4) {
  width: 75%;
}
.mini-page b {
  font-size: 7px;
  font-weight: 500;
  color: #8b6346;
}
.principles {
  padding: 95px 0;
  display: grid;
  grid-template-columns: 70px 1fr 1fr;
  gap: 40px;
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.principle-symbol {
  width: 60px;
  height: 60px;
  color: var(--accent);
}
.principles h2 {
  font-size: 44px;
  letter-spacing: -2px;
}
.principle-list {
  display: grid;
  gap: 29px;
}
.principle-list article {
  display: flex;
  gap: 20px;
}
.principle-list article > span {
  color: var(--muted);
  font-size: 8px;
  margin-top: 4px;
}
.principle-list h3 {
  font-size: 13px;
  font-weight: 600;
}
.principle-list p {
  font-size: 11px;
  line-height: 1.85;
  color: var(--muted);
  margin-top: 8px;
  max-width: 330px;
}
.faq {
  padding: 120px 0;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 100px;
}
.faq h2 {
  margin-top: 20px;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 0;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary span {
  font-size: 18px;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s;
}
.faq details[open] summary span {
  transform: rotate(45deg);
}
.faq details p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  padding-bottom: 24px;
  max-width: 450px;
}
.faq details a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.closing {
  padding: 80px 20px 85px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.closing .eyebrow {
  justify-content: center;
  margin-bottom: 25px;
}
.closing h2 {
  font-size: clamp(40px, 4.5vw, 67px);
}
.closing .button {
  margin-top: 35px;
}
.closing > p {
  color: var(--muted);
  font-size: 9px;
  margin-top: 20px;
}
.closing-ring {
  position: absolute;
  width: 560px;
  height: 330px;
  border: 35px solid var(--accent);
  border-radius: 50%;
  bottom: -210px;
  right: -100px;
  transform: rotate(-40deg);
  opacity: 0.08;
  z-index: -1;
}
footer.shell {
  padding-top: 65px;
  padding-bottom: 130px;
  display: flex;
  align-items: center;
  gap: 25px;
}
footer .wordmark {
  font-size: 24px;
}
footer .wordmark svg {
  width: 28px;
  height: 28px;
}
footer > span {
  font-size: 9px;
  color: var(--muted);
}
footer > div {
  margin-left: auto;
  display: flex;
  gap: 22px;
  font-size: 9px;
}
footer > small {
  font-size: 8px;
  color: var(--muted);
}
.motion-toggle {
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid #d4d7ce;
  border-radius: 6px;
  color: #34392e;
  margin-left: 4px;
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s,
    transform 0.8s;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.feature-card:nth-child(2) {
  transition-delay: 0.1s;
}
.feature-card:nth-child(3) {
  transition-delay: 0.2s;
}
@keyframes levitate {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}
.motion-paused * {
  animation-play-state: paused !important;
}
.motion-paused .hero-art {
  transform: none;
}
.motion-paused .reveal {
  transition: none;
}
.motion-paused .demo-window {
  transition: none;
}
.paper-label {
  color: #516d45;
}
body[data-theme="spatial"] {
  color-scheme: light;
  --bg: #f9fbff;
  --ink: #162d51;
  --muted: #6a7890;
  --accent: #3158e6;
  --accent-ink: #fff;
  --line: #24458221;
  --panel: #eef3ff;
  --panel-strong: #fff;
}
body[data-theme="spatial"] .site-header {
  height: 88px;
}
body[data-theme="spatial"] .nav-cta {
  background: var(--accent);
  color: white;
  border-radius: 6px;
}
body[data-theme="spatial"] .wordmark svg {
  color: var(--accent);
}
body[data-theme="spatial"] .hero {
  display: block;
  text-align: center;
  padding-top: 65px;
  min-height: 1080px;
}
body[data-theme="spatial"] .hero-copy {
  position: relative;
  z-index: 3;
}
body[data-theme="spatial"] .hero-copy > .eyebrow {
  justify-content: center;
}
body[data-theme="spatial"] h1 {
  font-size: clamp(60px, 6.8vw, 98px);
  line-height: 1.05;
  letter-spacing: -5px;
  margin: 24px 0 20px;
}
body[data-theme="spatial"] h1 em,
body[data-theme="spatial"] h2 em {
  font-family: Manrope, Arial, sans-serif;
  font-style: normal;
  font-weight: 500;
}
body[data-theme="spatial"] .hero-desc {
  margin: auto;
  max-width: 470px;
  font-size: 13px;
}
body[data-theme="spatial"] .hero-actions {
  justify-content: center;
  margin-top: 25px;
}
body[data-theme="spatial"] .availability {
  justify-content: center;
  margin-top: 18px;
}
body[data-theme="spatial"] .hero-art {
  max-width: 780px;
  height: 445px;
  min-height: 445px;
  margin: 5px auto 0;
  transform: none;
}
body[data-theme="spatial"] .sculpture {
  inset: -16% 12% -15%;
}
body[data-theme="spatial"] .art-grid {
  inset: 0 -35% -10%;
  mask-image: radial-gradient(ellipse, #0008, transparent 65%);
  transform: perspective(500px) rotateX(55deg);
  background-size: 48px 48px;
}
body[data-theme="spatial"] .art-glow {
  background: radial-gradient(ellipse, #85a9ff55, transparent 60%);
  inset: 12% -20% -5%;
}
body[data-theme="spatial"] .art-orbit {
  border-color: #6587ee30;
  inset: 33% 15% 0;
  transform: rotate(0) scaleY(0.35);
}
body[data-theme="spatial"] .orbit-two {
  inset: 10% 6% -10%;
}
body[data-theme="spatial"] .note-one {
  top: 23%;
  right: -3%;
  transform: rotate(6deg);
  background: #ffffffd9;
}
body[data-theme="spatial"] .note-two {
  bottom: 30%;
  left: 0;
  background: #fff;
  transform: rotate(-6deg);
}
body[data-theme="spatial"] .art-caption {
  bottom: 0;
  left: 20%;
  right: 20%;
  text-align: left;
}
body[data-theme="spatial"] .art-label {
  display: none;
}
body[data-theme="spatial"] .hero-bottom {
  bottom: 24px;
}
body[data-theme="spatial"] .works-strip {
  background: white;
}
body[data-theme="spatial"] .demo-hint {
  border-color: #3158e630;
}
body[data-theme="spatial"] .feature-art {
  background: radial-gradient(ellipse at 50% 60%, #cad9ff, transparent 70%);
}
body[data-theme="spatial"] .feature-grid {
  gap: 14px;
}
body[data-theme="spatial"] .feature-card {
  background: white;
}
body[data-theme="spatial"] .closing {
  background: #eaf0ff;
}
body[data-theme="spatial"] .code-tile {
  background: #182b51;
}
body[data-theme="spatial"] .code-tile > span {
  color: #a5b7d5;
}
body[data-theme="spatial"] .code-tile b,
body[data-theme="spatial"] .code-tile em,
body[data-theme="spatial"] .code-tile i {
  color: #adc1ff;
}
@media (min-width: 1700px) {
  .hero {
    padding-top: 115px;
    min-height: 860px;
  }
  .hero-art {
    min-height: 625px;
  }
  .hero-desc {
    font-size: 16px;
    max-width: 450px;
  }
  .hero-actions {
    margin-top: 38px;
  }
  .eyebrow {
    font-size: 10px;
  }
}
@media (max-width: 1100px) {
  .shell {
    width: calc(100% - 64px);
  }
  .hero {
    padding-top: 80px;
    min-height: 720px;
  }
  h1 {
    font-size: 66px;
    letter-spacing: -3.5px;
  }
  .hero-art {
    min-height: 510px;
  }
  .hero-actions {
    gap: 14px;
  }
  .button {
    gap: 20px;
    padding: 0 16px;
    font-size: 11px;
  }
  .note-one {
    padding: 14px 12px;
    right: -2%;
  }
  .note-one strong {
    font-size: 9px;
  }
  .note-spark {
    display: none;
  }
  .works-strip {
    gap: 40px;
  }
  .app-names > span {
    font-size: 12px;
    gap: 7px;
  }
  .how-section {
    gap: 45px;
  }
  .equation {
    font-size: 26px;
  }
  .worksheet {
    padding: 22px;
  }
  .demo-hint {
    width: 95%;
  }
  .principles {
    grid-template-columns: 45px 1fr 1fr;
    gap: 25px;
  }
  .principle-symbol {
    width: 42px;
    height: 42px;
  }
  .principles h2 {
    font-size: 38px;
  }
  .feature-text {
    padding: 22px;
  }
  .feature-text h3 {
    font-size: 18px;
  }
  .feature-art {
    height: 210px;
  }
  .faq {
    gap: 65px;
  }
  footer > span {
    display: none;
  }
}
@media (max-width: 760px) {
  html {
    scroll-padding-top: 20px;
  }
  .shell {
    width: calc(100% - 40px);
  }
  .site-header {
    height: 80px;
  }
  .wordmark {
    font-size: 26px;
  }
  .wordmark svg {
    width: 29px;
    height: 29px;
  }
  .site-header nav {
    display: none;
  }
  .nav-cta {
    font-size: 10px;
    padding: 11px 15px;
    gap: 20px;
  }
  .hero {
    display: flex;
    flex-direction: column;
    padding-top: 48px;
    padding-bottom: 65px;
    min-height: 0;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.2px;
  }
  h1 {
    font-size: clamp(55px, 10.5vw, 76px);
    line-height: 1.05;
    letter-spacing: -3px;
    margin-top: 22px;
    margin-bottom: 22px;
  }
  .hero-desc {
    font-size: 13px;
    max-width: 400px;
  }
  .hero-actions {
    gap: 24px;
    margin-top: 25px;
  }
  .button {
    font-size: 11px;
    min-height: 48px;
    gap: 28px;
  }
  .availability {
    font-size: 9px;
    margin-top: 18px;
  }
  .hero-art {
    width: 100%;
    height: 430px;
    min-height: 0;
    margin: 25px 0 0;
    transform: none;
  }
  .sculpture {
    inset: -10% -3% -5%;
  }
  .note-one {
    top: 20%;
    right: 0;
    padding: 13px 14px;
  }
  .note-one small {
    font-size: 6px;
  }
  .note-one strong {
    font-size: 9px;
  }
  .note-symbol {
    width: 27px;
    height: 27px;
  }
  .note-two {
    left: 0;
    bottom: 23%;
    font-size: 10px;
    padding: 10px 14px;
  }
  .art-caption {
    bottom: 3%;
    font-size: 9px;
    left: 4%;
    right: 4%;
  }
  .art-label {
    right: 0;
    font-size: 6px;
  }
  .hero-bottom {
    bottom: 20px;
    font-size: 6px;
    letter-spacing: 0.8px;
  }
  .hero-index {
    display: none;
  }
  .hero-bottom a {
    gap: 9px;
  }
  .hero-bottom a span {
    font-size: 14px;
  }
  .works-strip {
    display: block;
    padding: 25px 0;
  }
  .works-strip p {
    text-align: center;
    font-size: 9px;
    margin-bottom: 22px;
  }
  .works-strip p br {
    display: none;
  }
  .works-strip p strong {
    margin-left: 4px;
  }
  .app-names {
    flex-wrap: wrap;
    justify-content: center;
    gap: 17px;
  }
  .app-names > span {
    font-size: 11px;
    gap: 5px;
  }
  .app-names b {
    font-size: 19px;
  }
  .intro {
    padding: 85px 0 70px;
  }
  .intro .eyebrow {
    margin-bottom: 19px;
  }
  h2 {
    font-size: 42px;
    letter-spacing: -2px;
  }
  .intro > p {
    font-size: 12px;
    margin-top: 22px;
  }
  .how-section {
    grid-template-columns: 1fr;
    padding: 60px 0 60px;
    gap: 15px;
  }
  .how-copy {
    position: static;
  }
  .how-copy h2 {
    font-size: 40px;
    margin-bottom: 23px;
  }
  .step {
    padding: 20px 0;
  }
  .step > span:nth-child(2) > span {
    max-width: 100%;
    font-size: 11px;
  }
  .step strong {
    font-size: 13px;
  }
  .demo-stage {
    min-height: 580px;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
    padding-top: 40px;
  }
  .demo-window {
    width: 96%;
    margin: auto;
  }
  .worksheet {
    min-height: 345px;
    padding: 25px;
  }
  .equation {
    font-size: 29px;
  }
  .demo-hint {
    width: 87%;
    margin-top: -20px;
    padding: 19px;
  }
  .demo-caption {
    font-size: 6px;
  }
  .demo-caption > span:last-child {
    font-size: 5px;
    margin-left: 4px;
  }
  .demo-answer {
    left: 32px;
    font-size: 20px;
  }
  .possibilities {
    padding: 65px 0;
  }
  .section-heading {
    display: block;
    margin-bottom: 35px;
  }
  .section-heading > p {
    margin-top: 23px;
    max-width: 360px;
    font-size: 12px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .feature-art {
    height: 250px;
  }
  .feature-text {
    padding: 25px;
  }
  .feature-text .eyebrow {
    font-size: 8px;
  }
  .feature-text h3 {
    font-size: 23px;
  }
  .feature-text p {
    font-size: 12px;
    max-width: 350px;
  }
  .code-tile {
    font-size: 12px;
    padding: 25px;
  }
  .math-orbit {
    right: 22%;
  }
  .math-small {
    left: 22%;
  }
  .principles {
    padding: 65px 0;
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .principle-symbol {
    width: 50px;
    height: 50px;
  }
  .principles h2 {
    font-size: 45px;
  }
  .principle-list {
    margin-top: 15px;
    gap: 28px;
  }
  .principle-list h3 {
    font-size: 14px;
  }
  .principle-list p {
    font-size: 12px;
  }
  .faq {
    padding: 70px 0;
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .faq h2 br {
    display: none;
  }
  .faq h2 em {
    margin-left: 8px;
  }
  .faq summary {
    font-size: 12px;
    padding: 23px 0;
  }
  .closing {
    padding: 60px 20px;
  }
  .closing h2 {
    font-size: 39px;
  }
  .closing > p {
    font-size: 8px;
    line-height: 1.8;
  }
  .closing .eyebrow {
    font-size: 7px;
  }
  .closing .button {
    margin-top: 27px;
  }
  footer.shell {
    padding-top: 40px;
    padding-bottom: 120px;
    flex-wrap: wrap;
    gap: 23px;
  }
  footer > div {
    gap: 20px;
    font-size: 9px;
  }
  footer > small {
    width: 100%;
  }
  .motion-toggle {
    height: 29px;
    width: 29px;
    margin-left: 3px;
  }
  .reveal {
    transform: translateY(15px);
  }
  body[data-theme="spatial"] .site-header {
    height: 80px;
  }
  body[data-theme="spatial"] .hero {
    padding-top: 48px;
    min-height: 0;
  }
  body[data-theme="spatial"] h1 {
    font-size: clamp(45px, 8.5vw, 64px);
    letter-spacing: -2.5px;
    line-height: 1.1;
  }
  body[data-theme="spatial"] .hero-desc {
    max-width: 380px;
    font-size: 12px;
  }
  body[data-theme="spatial"] .hero-actions {
    gap: 18px;
  }
  body[data-theme="spatial"] .hero-art {
    width: 100%;
    height: 380px;
    min-height: 380px;
    margin-top: 8px;
  }
  body[data-theme="spatial"] .sculpture {
    inset: -12% -5%;
  }
  body[data-theme="spatial"] .note-one {
    top: 16%;
    right: 0;
  }
  body[data-theme="spatial"] .note-two {
    bottom: 25%;
    left: 0;
  }
  body[data-theme="spatial"] .art-caption {
    left: 12%;
    right: 12%;
    bottom: 0;
  }
  body[data-theme="spatial"] .hero-bottom {
    bottom: 15px;
  }
  body[data-theme="spatial"] .feature-grid {
    gap: 22px;
  }
}
@media (max-width: 380px) {
  .hero-actions {
    gap: 14px;
  }
  .button {
    gap: 17px;
    padding: 0 13px;
  }
  .text-link {
    font-size: 10px;
  }
  .play-icon {
    width: 23px;
    height: 23px;
  }
  .hero-art {
    height: 370px;
  }
  .note-one {
    padding: 10px;
  }
  .note-one strong {
    font-size: 8px;
  }
  .note-one small {
    font-size: 5px;
  }
  .art-caption {
    font-size: 8px;
  }
  .equation {
    font-size: 25px;
  }
  .demo-answer {
    font-size: 17px;
  }
  .demo-hint p {
    font-size: 11px;
  }
  .demo-caption > span:last-child {
    display: none;
  }
  .hint-header > span {
    font-size: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .hero-art {
    transform: none !important;
  }
}

/* Homepage navigation and content. */
body[data-theme="spatial"] {
  --muted: #5e6e88;
}
[hidden] {
  display: none !important;
}
.in-desktop-app a[href="/download"] {
  display: none !important;
}
.reveal {
  opacity: 1;
  transform: none;
}
.reveal.reveal-pending {
  opacity: 0;
  transform: translateY(24px);
}
.motion-paused .reveal.reveal-pending {
  opacity: 1;
  transform: none;
}
.home-hero {
  overflow: clip;
}
.home-header {
  gap: 30px;
}
.home-header .home-nav {
  align-items: center;
  gap: 30px;
  font-size: 13px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}
.login-link {
  font-size: 13px;
}
.home-header .nav-cta {
  font-size: 13px;
  padding: 13px 20px;
  gap: 24px;
}
.nav-dropdown {
  position: relative;
}
.nav-dropdown summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  list-style: none;
}
.nav-dropdown summary::-webkit-details-marker,
.mobile-nav summary::-webkit-details-marker {
  display: none;
}
.nav-dropdown summary span {
  color: var(--muted);
}
.nav-dropdown[open] summary {
  color: var(--accent);
}
.nav-menu {
  position: absolute;
  top: calc(100% + 22px);
  left: -20px;
  width: 310px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 45px #16315b18;
}
.home-nav .nav-menu a {
  display: block;
  padding: 13px;
  border-radius: 6px;
  font-size: 13px;
}
.home-nav .nav-menu a:hover {
  background: var(--panel);
}
.nav-menu a span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.mobile-nav {
  display: none;
}
body[data-theme="spatial"] .home-hero {
  min-height: 1040px;
  padding-top: 65px;
}
body[data-theme="spatial"] .home-hero h1 {
  font-size: clamp(70px, 7.5vw, 108px);
  margin: 22px 0 24px;
}
body[data-theme="spatial"] .home-hero .hero-desc {
  max-width: 640px;
  font-size: 15px;
  line-height: 1.9;
}
kbd {
  white-space: nowrap;
  font:
    600 0.85em Manrope,
    sans-serif;
  padding: 2px 6px;
  border: 1px solid #cad5ed;
  border-bottom-width: 2px;
  border-radius: 5px;
  color: var(--ink);
  background: #fff;
}
body[data-theme="spatial"] .home-hero .hero-art {
  height: 380px;
  min-height: 380px;
  margin-top: 12px;
}
.hero-actions .button,
.pilot-actions .button {
  min-height: 51px;
  font-size: 13px;
}
.text-link {
  font-size: 12px;
}
.availability {
  font-size: 11px;
  flex-wrap: wrap;
  line-height: 1.6;
}
.motion-control {
  border: 0;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  padding: 8px 0 8px 8px;
}
.motion-control [data-motion-icon] {
  width: 23px;
  height: 23px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.motion-control:hover {
  color: var(--accent);
}
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-strip > span {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.trust-strip i {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  background: var(--panel);
  border-radius: 50%;
  font-style: normal;
  font-size: 10px;
  color: var(--accent);
}
.why-section {
  padding-bottom: 100px;
}
.why-section .intro {
  margin: auto;
  padding: 100px 0 50px;
  max-width: 1100px;
}
.why-section .intro > p {
  max-width: 525px;
  font-size: 15px;
}
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.comparison-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 30px;
}
.comparison-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--panel);
  color: var(--accent);
  border-radius: 10px;
  font-size: 22px;
  margin-bottom: 30px;
}
.comparison-card h3 {
  font-size: 21px;
  letter-spacing: -0.6px;
  font-weight: 600;
}
.comparison-card p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  margin-top: 15px;
}
.comparison-margin {
  background: #eaf0ff;
  border-color: #b3c4f9;
}
.comparison-margin .comparison-icon {
  background: var(--accent);
  color: #fff;
}
.comparison-tag {
  position: absolute;
  top: 44px;
  right: 26px;
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--accent);
}
.how-section {
  padding-bottom: 100px;
  gap: 75px;
}
.how-copy h2 {
  font-size: clamp(34px, 3.7vw, 53px);
}
.step strong {
  font-size: 15px;
}
.step > span:nth-child(2) > span {
  font-size: 13px;
  line-height: 1.8;
  max-width: 360px;
}
.step-num {
  font-size: 10px;
}
.step {
  opacity: 1;
}
.step:not(.active) strong {
  color: var(--muted);
}
.step.active {
  border-bottom-color: var(--accent);
}
.demo-stage {
  min-height: 665px;
}
.demo-hint p {
  font-size: 13px;
}
.demo-hint {
  width: 93%;
}
.demo-caption {
  font-size: 8px;
}
.demo-caption > span:last-child {
  font-size: 7px;
}
.capabilities,
.audiences {
  padding: 90px 0 105px;
  border-top: 1px solid var(--line);
}
.section-heading > p {
  font-size: 14px;
  max-width: 330px;
}
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.capability {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 28px;
}
.capability-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 10px;
  background: var(--panel);
  color: var(--accent);
  font-size: 24px;
  margin-bottom: 28px;
}
.capability-number {
  position: absolute;
  right: 25px;
  top: 33px;
  font: 10px monospace;
  color: var(--muted);
}
.capability h3 {
  font-size: 19px;
  letter-spacing: -0.5px;
  font-weight: 600;
}
.capability p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  margin-top: 14px;
}
.possibilities {
  padding-bottom: 100px;
}
.feature-text h3 {
  font-size: 22px;
  line-height: 1.3;
}
.feature-text p {
  font-size: 13px;
}
.feature-text .eyebrow {
  font-size: 9px;
}
.example-hint {
  padding-top: 17px;
  margin-top: 17px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}
.example-hint b {
  color: var(--accent);
  font-weight: 600;
}
.audience-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 85px;
  align-items: center;
  padding: 45px 0;
}
.audience-copy h3 {
  font-size: 40px;
  letter-spacing: -1.7px;
  line-height: 1.2;
  font-weight: 500;
  margin-top: 17px;
}
.audience-copy h3 em {
  font-style: normal;
  color: var(--accent);
}
.audience-copy > p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  margin-top: 22px;
}
.audience-copy ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 27px;
  display: grid;
  gap: 13px;
}
.audience-copy li {
  position: relative;
  padding-left: 24px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.audience-copy li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.audience-copy .button {
  font-size: 12px;
}
.secondary {
  background: #fff;
  border: 1px solid #bdcced;
  color: var(--ink);
}
.audience-art {
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 40px;
}
.student-chat {
  background: linear-gradient(135deg, #e7eeff, #f5f8ff);
  transform: perspective(1100px) rotateY(-5deg) rotateZ(1deg);
}
.chat-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 8px;
  letter-spacing: 0.7px;
  margin-bottom: 30px;
  color: var(--muted);
}
.chat {
  font-size: 13px;
  line-height: 1.8;
  padding: 15px 18px;
  border-radius: 12px;
  margin-bottom: 17px;
  box-shadow: 0 5px 18px #203e7e08;
}
.chat.q {
  margin-left: 35px;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 3px;
}
.chat.a {
  margin-right: 25px;
  background: #fff;
  color: var(--ink);
  border-bottom-left-radius: 3px;
}
.chat:last-child {
  margin-bottom: 0;
}
.audience-teacher .audience-copy {
  order: 2;
}
.class-board {
  position: relative;
  padding: 55px 35px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #152748;
  color: #fff;
  box-shadow: 0 25px 60px #1b35601c;
}
.class-board > p:first-child {
  font-size: 10px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #a8bbdf;
  margin-bottom: 35px;
}
.boardline {
  font-family: var(--serif);
  font-size: 43px;
  text-align: center;
}
.circled {
  color: #c1d1ff;
  position: relative;
  padding: 5px 15px;
}
.circled::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid #95b3ff;
  border-radius: 50%;
  transform: rotate(-12deg);
}
.class-board > p:last-child {
  font-size: 13px;
  line-height: 1.8;
  color: #c3d2ed;
  margin-top: 35px;
  text-align: center;
}
.tutor-roadmap {
  margin-top: 35px;
  padding: 34px;
  display: flex;
  align-items: center;
  gap: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.roadmap-badge {
  display: inline-block;
  font-size: 8px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 5px 8px;
  border: 1px solid #b8c9ef;
  border-radius: 4px;
  color: #4565a2;
  background: #f9fbff;
}
.tutor-roadmap h3 {
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.6px;
  margin-top: 12px;
}
.tutor-roadmap p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
  margin-top: 12px;
  max-width: 870px;
}
.tutor-roadmap .button {
  flex-shrink: 0;
}
.learner-section {
  border-top: 1px solid var(--line);
  padding: 100px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 75px;
  align-items: center;
}
.learner-copy h2 {
  font-size: 46px;
  letter-spacing: -2px;
  margin-top: 25px;
}
.learner-copy > .eyebrow {
  flex-wrap: wrap;
}
.learner-copy > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
  margin-top: 20px;
}
.learner-memory {
  padding: 30px;
  border: 1px solid #b9cbed;
  border-radius: 13px;
  box-shadow: 0 20px 50px #2f55a410;
  background: #fff;
}
.memory-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.memory-heading svg {
  width: 25px;
  height: 25px;
  color: var(--accent);
}
.example-badge {
  font-size: 7px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-left: auto;
}
.learner-memory ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.learner-memory li {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
}
.learner-memory li b {
  color: var(--ink);
  font-weight: 600;
}
.memory-progress {
  padding-top: 22px;
}
.memory-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
}
.memory-progress strong {
  color: var(--accent);
  font-weight: 600;
}
.progress-bars {
  display: flex;
  gap: 5px;
  margin-top: 15px;
}
.progress-bars i {
  flex: 1;
  height: 28px;
  border-radius: 4px;
  background: #e5ecfc;
}
.progress-bars i:nth-child(-n + 7) {
  background: #3158e6;
}
.progress-bars i:nth-child(-n + 3) {
  background: #8ca5f4;
}
.privacy-section {
  border-top: 1px solid var(--line);
  padding: 95px 0;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
}
.privacy-symbol {
  width: 54px;
  height: 54px;
  border: 1px solid #bdcced;
  background: var(--panel);
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 31px;
  color: var(--accent);
  margin-bottom: 27px;
}
.privacy-heading h2 {
  font-size: 49px;
  margin: 20px 0 22px;
}
.privacy-heading > p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
  max-width: 305px;
}
.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.privacy-number {
  font-size: 9px;
  color: var(--accent);
}
.privacy-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 15px 0 12px;
}
.privacy-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}
.privacy-card a {
  display: inline-block;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pricing-section {
  border-top: 1px solid var(--line);
  padding: 100px 0 40px;
}
.pricing-heading {
  text-align: center;
  margin-bottom: 50px;
}
.pricing-heading .eyebrow {
  justify-content: center;
}
.pricing-heading h2 {
  margin-top: 23px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1060px;
  margin: auto;
}
.pricing-card {
  position: relative;
  padding: 38px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
}
.pricing-featured {
  border-color: #8ca7f4;
  background: linear-gradient(150deg, #eef3ff, #fff 65%);
  box-shadow: 0 15px 50px #3158e60c;
}
.plan-badge {
  position: absolute;
  right: 25px;
  top: -14px;
  padding: 7px 13px;
  border-radius: 100px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
}
.pricing-card h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.7px;
  margin: 15px 0 26px;
}
.plan-price {
  font-size: 65px;
  font-weight: 500;
  letter-spacing: -3px;
  line-height: 1.1;
}
.plan-subtitle {
  color: var(--muted);
  font-size: 12px;
  margin-top: 12px;
}
.pricing-card ul {
  padding: 25px 0;
  margin: 27px 0 5px;
  border-top: 1px solid var(--line);
  list-style: none;
  display: grid;
  gap: 17px;
}
.pricing-card li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  padding-left: 23px;
  position: relative;
}
.pricing-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
}
.pricing-card .button {
  display: flex;
  font-size: 13px;
}
.pricing-note {
  max-width: 800px;
  text-align: center;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}
.pricing-note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.faq summary {
  font-size: 15px;
  line-height: 1.5;
}
.faq details p {
  font-size: 14px;
  line-height: 1.9;
  max-width: 100%;
}
.closing .pilot-description {
  max-width: 685px;
  font-size: 14px;
  line-height: 1.9;
  margin: 25px auto 0;
}
.pilot-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.pilot-actions .button {
  margin: 0;
}
.pilot-actions .text-link {
  margin-left: 12px;
}
.closing .pilot-email {
  font-size: 11px;
  margin-top: 23px;
}
.pilot-email a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.home-footer {
  padding: 75px 0 25px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 1fr;
  gap: 55px;
  padding-bottom: 55px;
}
.footer-brand > p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  margin-top: 19px;
  max-width: 300px;
}
.footer-column {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 12px;
}
.footer-column h4 {
  font-size: 11px;
  font-weight: 600;
  margin: 6px 0 10px;
}
.footer-column > a {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.footer-column a:hover {
  color: var(--accent);
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 9px;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 1100px) {
  .home-header {
    gap: 20px;
  }
  .home-header .home-nav {
    gap: 20px;
  }
  .header-actions {
    gap: 18px;
  }
  .trust-strip > span {
    font-size: 10px;
    gap: 7px;
  }
  .comparison-card,
  .capability {
    padding: 23px;
  }
  .comparison-tag {
    right: 18px;
    font-size: 7px;
  }
  .how-section {
    gap: 40px;
  }
  .step > span:nth-child(2) > span {
    font-size: 12px;
  }
  .demo-hint p {
    font-size: 12px;
  }
  .audience-row {
    gap: 45px;
  }
  .audience-copy h3 {
    font-size: 35px;
  }
  .audience-art {
    padding: 27px;
  }
  .chat {
    font-size: 12px;
  }
  .learner-section {
    gap: 40px;
  }
  .learner-copy h2 {
    font-size: 39px;
  }
  .learner-memory {
    padding: 23px;
  }
  .privacy-section {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
  }
  .privacy-heading h2 {
    font-size: 41px;
  }
  .privacy-grid {
    gap: 23px;
  }
  .footer-grid {
    gap: 28px;
  }
}
@media (max-width: 850px) {
  .home-header .home-nav {
    gap: 16px;
    font-size: 12px;
  }
  .home-header .home-nav > a[href="#privacy"] {
    display: none;
  }
  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .comparison-card h3 {
    font-size: 18px;
  }
  .comparison-card p {
    font-size: 12px;
  }
  .comparison-tag {
    display: none;
  }
  .trust-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .trust-strip > span {
    font-size: 12px;
  }
  .privacy-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .privacy-heading h2 br {
    display: none;
  }
  .privacy-heading > p {
    max-width: 600px;
  }
  .privacy-symbol {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 35px 50px;
  }
}
@media (max-width: 760px) {
  .home-header .home-nav {
    display: none;
  }
  .home-header {
    gap: 12px;
  }
  .header-actions {
    gap: 17px;
  }
  .login-link {
    font-size: 11px;
  }
  .home-header .nav-cta {
    font-size: 11px;
    padding: 10px 14px;
    gap: 15px;
  }
  .mobile-nav {
    display: block;
  }
  .mobile-nav > summary {
    list-style: none;
    width: 32px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 5px;
    cursor: pointer;
  }
  .mobile-nav nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    right: 0;
    left: 0;
    top: 71px;
    background: #fff;
    box-shadow: 0 15px 35px #162d5120;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
  }
  .mobile-nav nav > a {
    font-size: 13px;
    padding: 12px;
    border-radius: 5px;
  }
  .mobile-nav nav > a:hover {
    background: var(--panel);
  }
  body[data-theme="spatial"] .home-hero {
    min-height: 0;
    padding-top: 45px;
    padding-bottom: 75px;
  }
  body[data-theme="spatial"] .home-hero h1 {
    font-size: clamp(66px, 15vw, 86px);
    line-height: 1.05;
    letter-spacing: -3px;
  }
  body[data-theme="spatial"] .home-hero .hero-desc {
    font-size: 13px;
    line-height: 1.95;
    max-width: 480px;
  }
  .hero-actions .button {
    min-height: 48px;
    font-size: 12px;
  }
  .home-hero .hero-actions {
    gap: 18px;
  }
  .home-hero .text-link {
    font-size: 11px;
  }
  .availability {
    font-size: 10px;
  }
  body[data-theme="spatial"] .home-hero .hero-art {
    height: 360px;
    min-height: 360px;
    margin-top: 15px;
  }
  .home-hero .hero-bottom {
    bottom: 18px;
  }
  .home-hero .hero-bottom > span {
    display: none;
  }
  .home-hero .hero-bottom > a {
    font-size: 7px;
  }
  .motion-control {
    font-size: 9px;
  }
  .trust-strip {
    padding: 25px 0;
    gap: 16px 12px;
  }
  .trust-strip > span {
    font-size: 10px;
    line-height: 1.7;
    align-items: start;
  }
  .why-section {
    padding-bottom: 60px;
  }
  .why-section .intro {
    padding: 65px 0 32px;
  }
  .why-section .intro h2 {
    font-size: 35px;
  }
  .why-section .intro > p {
    font-size: 13px;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .comparison-card {
    padding: 25px;
  }
  .comparison-card h3 {
    font-size: 21px;
  }
  .comparison-card p {
    font-size: 13px;
  }
  .comparison-icon {
    margin-bottom: 20px;
  }
  .comparison-tag {
    display: block;
    font-size: 8px;
    right: 24px;
    top: 40px;
  }
  .how-section {
    padding-bottom: 60px;
    gap: 5px;
  }
  .how-copy h2 {
    font-size: 36px;
  }
  .step > span:nth-child(2) > span {
    font-size: 12px;
  }
  .demo-stage {
    min-height: 640px;
  }
  .demo-hint {
    width: 93%;
  }
  .demo-hint p {
    font-size: 12px;
  }
  .demo-caption {
    font-size: 7px;
  }
  .demo-caption > span:last-child {
    font-size: 6px;
  }
  .capabilities,
  .audiences {
    padding: 60px 0;
  }
  .capability-grid {
    gap: 15px;
  }
  .capability {
    padding: 24px;
  }
  .capability h3 {
    font-size: 18px;
  }
  .capability p {
    font-size: 12px;
  }
  .section-heading > p {
    font-size: 13px;
  }
  .feature-text h3 {
    font-size: 24px;
  }
  .feature-text p,
  .example-hint {
    font-size: 13px;
  }
  .possibilities {
    padding-bottom: 60px;
  }
  .audiences .section-heading h2 {
    font-size: 36px;
  }
  .audience-row {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 20px 0 40px;
  }
  .audience-teacher .audience-copy {
    order: initial;
  }
  .audience-copy h3 {
    font-size: 34px;
  }
  .audience-copy > p {
    font-size: 13px;
  }
  .audience-copy li {
    font-size: 12px;
  }
  .audience-art {
    padding: 26px;
  }
  .student-chat {
    transform: none;
  }
  .chat {
    font-size: 12px;
  }
  .chat-label {
    font-size: 7px;
    letter-spacing: 0.3px;
  }
  .chat.q {
    margin-left: 20px;
  }
  .chat.a {
    margin-right: 15px;
  }
  .class-board {
    min-height: 300px;
  }
  .boardline {
    font-size: 40px;
  }
  .tutor-roadmap {
    display: block;
    padding: 26px;
    margin-top: 5px;
  }
  .tutor-roadmap p {
    font-size: 12px;
  }
  .tutor-roadmap .button {
    margin-top: 24px;
  }
  .learner-section {
    padding: 65px 0;
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .learner-copy h2 {
    font-size: 37px;
  }
  .learner-copy > p {
    font-size: 13px;
  }
  .learner-memory {
    padding: 24px;
  }
  .learner-memory li {
    font-size: 12px;
  }
  .privacy-section {
    padding: 65px 0;
    gap: 30px;
  }
  .privacy-heading h2 {
    font-size: 38px;
  }
  .privacy-heading > p {
    font-size: 14px;
  }
  .privacy-grid {
    gap: 30px;
  }
  .privacy-card p {
    font-size: 12px;
  }
  .pricing-section {
    padding: 65px 0 15px;
  }
  .pricing-heading {
    margin-bottom: 37px;
  }
  .pricing-heading h2 {
    font-size: 36px;
  }
  .pricing-grid {
    gap: 25px;
    grid-template-columns: 1fr;
  }
  .pricing-card {
    padding: 30px;
  }
  .pricing-card h3 {
    font-size: 23px;
  }
  .pricing-card li {
    font-size: 12px;
  }
  .pricing-note {
    font-size: 11px;
  }
  .faq h2 em {
    margin-left: 0;
  }
  .faq h2 br {
    display: initial;
  }
  .faq summary {
    font-size: 14px;
  }
  .faq details p {
    font-size: 13px;
  }
  .closing .pilot-description {
    font-size: 13px;
  }
  .pilot-actions {
    gap: 12px;
  }
  .pilot-actions .button {
    font-size: 11px;
    gap: 15px;
  }
  .pilot-actions .text-link {
    flex-basis: 100%;
    justify-content: center;
    margin: 6px 0 0;
  }
  .closing .pilot-email {
    font-size: 10px;
    line-height: 1.8;
  }
  .home-footer {
    padding-top: 50px;
  }
  .footer-grid {
    gap: 35px 23px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-brand > p {
    max-width: 360px;
  }
  .footer-column:last-child {
    grid-column: 1 / -1;
  }
  .footer-column:last-child > a {
    font-size: 12px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 7px;
  }
}
@media (max-width: 480px) {
  .capability-grid,
  .privacy-grid {
    grid-template-columns: 1fr;
  }
  .privacy-card {
    border-top: 1px solid var(--line);
    padding-top: 23px;
  }
  .capability p {
    font-size: 13px;
  }
  .capability h3 {
    font-size: 20px;
  }
  .capability-icon {
    margin-bottom: 23px;
  }
}
@media (max-width: 380px) {
  .header-actions {
    gap: 10px;
  }
  .home-header .wordmark {
    font-size: 23px;
    gap: 4px;
  }
  .home-header .wordmark svg {
    width: 25px;
  }
  .home-header .nav-cta {
    padding: 10px 11px;
    gap: 8px;
  }
  .home-header .nav-cta > span {
    display: none;
  }
  .mobile-nav > summary {
    width: 30px;
  }
  .home-hero .hero-actions {
    gap: 12px;
  }
  .home-hero .text-link {
    font-size: 10px;
    gap: 6px;
  }
  .trust-strip > span {
    font-size: 9px;
  }
  .hero-actions .button {
    font-size: 11px;
  }
  .why-section .intro h2,
  .audiences .section-heading h2,
  .pricing-heading h2 {
    font-size: 32px;
  }
  .how-copy h2 {
    font-size: 33px;
  }
  .memory-heading {
    font-size: 11px;
    gap: 6px;
  }
  .memory-heading svg {
    width: 21px;
  }
  .example-badge {
    font-size: 6px;
  }
  .demo-caption > span:last-child {
    display: none;
  }
  .demo-hint p {
    font-size: 11px;
  }
  .audience-art {
    padding: 22px;
  }
  .chat {
    padding: 13px;
  }
  .chat-label {
    font-size: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal.reveal-pending {
    opacity: 1;
    transform: none;
  }
}
