@import url("fonts/fonts.css");

:root {
  --cream: #f6eedc;
  --cream-raised: #fbf5e8;
  --cream-deep: #eee2c8;
  --ink: #2b2015;
  --ink-soft: #5f5240;
  --brick: #a63d2a;
  --brick-deep: #86301f;
  --sage: #67784e;
  --gold: #dfae45;
  --line: #e3d5b8;
  --radius: 20px;
  --font-display: "Fraunces", "Noto Serif Gurmukhi", Georgia, serif;
  --font-body: "Karla", "Helvetica Neue", Arial, sans-serif;
  --font-pa: "Noto Serif Gurmukhi", serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* paper grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

a { color: var(--brick); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--brick-deep); }

::selection { background: var(--gold); color: var(--ink); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(43, 32, 21, 0.06);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand img { width: 42px; height: 42px; border-radius: 12px; }

.brand span {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.site-nav { display: flex; align-items: center; gap: 30px; }

.site-nav a.nav-link {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  position: relative;
  padding-bottom: 4px;
}

.site-nav a.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--brick);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav a.nav-link:hover { color: var(--brick); }
.site-nav a.nav-link:hover::after { transform: scaleX(1); }

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: transparent;
}

.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 999px;
  border: 2px solid var(--brick);
  background: var(--brick);
  color: var(--cream-raised);
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  background: var(--brick-deep);
  border-color: var(--brick-deep);
  color: var(--cream-raised);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(134, 48, 31, 0.28);
}

.btn:active { transform: translateY(0); }

.btn svg { width: 18px; height: 18px; fill: currentColor; }

.btn.btn-small { padding: 11px 20px; font-size: 0.9rem; }

.btn.btn-cream {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--brick-deep);
}

.btn.btn-cream:hover {
  background: var(--cream-raised);
  border-color: var(--cream-raised);
  box-shadow: 0 10px 24px rgba(20, 12, 6, 0.3);
}

.chip-soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  border: 2px solid var(--line);
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  background: transparent;
}

.chip-soon svg { width: 18px; height: 18px; fill: currentColor; opacity: 0.75; }

.chip-soon small {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sage);
}

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; padding: 110px 0 56px; }

.hero .wrap { position: relative; }

.hero-copy {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.hero-copy .hero-sub { margin-left: auto; margin-right: auto; }

.hero-ctas { justify-content: center; }

/* floating word cards */

.hero-cards { position: absolute; inset: 0; pointer-events: none; }

.word-card {
  position: absolute;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 20px;
  background: var(--cream-raised);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(43, 32, 21, 0.09);
  animation: floaty 7s ease-in-out infinite;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.hero-cards { pointer-events: none; }
.word-card { pointer-events: auto; cursor: default; }

.word-card:hover {
  transform: rotate(0deg) scale(1.06);
  box-shadow: 0 22px 44px rgba(43, 32, 21, 0.14);
}

.word-card .pa {
  font-family: var(--font-pa);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--ink);
  line-height: 1.35;
}

.word-card .en {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}

.wc-1 { left: 1%; top: 4%; transform: rotate(-5deg); }
.wc-2 { left: 7%; top: 46%; transform: rotate(3deg); animation-delay: 1.2s; }
.wc-3 { left: 2.5%; top: 82%; transform: rotate(-2deg); animation-delay: 2.4s; }
.wc-4 { right: 2%; top: 8%; transform: rotate(4deg); animation-delay: 0.6s; }
.wc-5 { right: 8%; top: 48%; transform: rotate(-4deg); animation-delay: 1.8s; }
.wc-6 { right: 3%; top: 84%; transform: rotate(2.5deg); animation-delay: 3s; }

@keyframes floaty {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -12px; }
}

.hero-watermark {
  position: absolute;
  top: -60px;
  right: -40px;
  font-family: var(--font-pa);
  font-size: clamp(280px, 38vw, 520px);
  line-height: 1;
  color: var(--cream-deep);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero-copy { position: relative; z-index: 1; }

.hero h1 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(2.6rem, 5.4vw, 4.15rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
}

.u-brick {
  color: var(--brick);
  position: relative;
  padding-bottom: 2px;
}

.u-brick::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 4px;
  background: var(--brick);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.35s;
}

.in .u-brick::after { transform: scaleX(1); }

.hero-sub {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 34em;
  margin: 0 0 34px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero-note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.device {
  position: relative;
  width: min(240px, 64vw);
  border-radius: 38px;
  background: var(--ink);
  padding: 10px;
  box-shadow: 0 30px 60px rgba(43, 32, 21, 0.2), 0 10px 22px rgba(43, 32, 21, 0.12);
}

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

/* ---------- stats ---------- */

.stats { padding: 72px 0 8px; }

.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat {
  border-top: 3px solid var(--brick);
  padding-top: 18px;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat span { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- feature rows ---------- */

.features { padding: 48px 0 32px; }

.feature {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
  padding: 56px 0;
}

.feature-media { display: flex; justify-content: center; }

.feature:nth-of-type(even) .feature-media { order: -1; }
.feature:nth-of-type(odd) .feature-media .device { transform: rotate(1.8deg); }
.feature:nth-of-type(even) .feature-media .device { transform: rotate(-1.8deg); }

.feature-media .device { transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.feature:hover .feature-media .device { transform: rotate(0deg); }

.eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 14px;
}

.feature h2, .section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}

.feature p.lede { color: var(--ink-soft); font-size: 1.12rem; margin: 0 0 22px; }

.feature ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.feature li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
}

.feature li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--gold);
}

.feature li strong { font-weight: 700; }

/* ---------- lesson demo ---------- */

.demo { padding: 40px 0 80px; }

.demo-count {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 10px;
}

.demo-teach {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: -10px 0 18px;
}

.feedback {
  margin-top: 20px;
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  animation: step-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.feedback.good { background: var(--sage); }
.feedback.good .fb-text { color: var(--cream-raised); }
.feedback.good .fb-text strong { color: var(--cream); }

.feedback.bad { background: var(--cream); border: 2px solid var(--brick); }
.feedback.bad .fb-text { color: var(--ink); }
.feedback.bad .fb-text strong { color: var(--brick); }

.fb-text { margin: 0; font-size: 0.98rem; flex: 1 1 200px; }

.feedback.good .fb-next {
  background: var(--cream-raised);
  border-color: var(--cream-raised);
  color: var(--sage);
}

.choice:disabled { cursor: default; }
.choice:disabled:hover { transform: none; border-color: var(--line); }
.choice.right:disabled:hover { border-color: var(--sage); }

.choice.show-answer { border-color: var(--sage); background: var(--cream-raised); }
.choice.show-answer:disabled:hover { border-color: var(--sage); }

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}

.demo-copy .lede { color: var(--ink-soft); font-size: 1.12rem; margin: 0 0 18px; }

.demo-hint {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
}

.lesson-card {
  background: var(--cream-raised);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(43, 32, 21, 0.12);
  padding: 30px 30px 34px;
  max-width: 460px;
  margin: 0 auto;
  min-height: 380px;
}

.demo-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--cream-deep);
  overflow: hidden;
  margin-bottom: 26px;
}

.demo-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--gold);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.demo-step { display: none; }
.demo-step.active { display: block; animation: step-in 0.45s cubic-bezier(0.22, 1, 0.36, 1); }

@keyframes step-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.demo-prompt { font-size: 1.08rem; margin: 0 0 20px; }
.demo-prompt strong { color: var(--brick); }

.choices { display: grid; gap: 12px; }

.choice, .chip {
  font-family: var(--font-body);
  cursor: pointer;
  background: var(--cream);
  border: 2px solid var(--line);
  border-radius: 16px;
  text-align: left;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.choice {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  width: 100%;
}

.choice:hover, .chip:hover { border-color: var(--gold); transform: translateY(-2px); }

.choice .pa, .chip .pa {
  font-family: var(--font-pa);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--ink);
}

.choice .tr, .chip .tr { font-size: 0.85rem; color: var(--ink-soft); }

.choice .en-opt { font-size: 1.05rem; font-weight: 600; color: var(--ink); padding: 3px 0; }
.choice.right .en-opt { color: var(--cream-raised); }

.choice.right {
  background: var(--sage);
  border-color: var(--sage);
}

.choice.right .pa, .choice.right .tr { color: var(--cream-raised); }

.choice.wrong, .chip.wrong {
  border-color: var(--brick);
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-3px); }
}

.answer-line {
  min-height: 64px;
  border-bottom: 2px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 10px;
}

.answer-word {
  font-family: var(--font-pa);
  font-weight: 500;
  font-size: 1.3rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px 14px;
  animation: pop 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes pop {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
  display: inline-flex;
  flex-direction: column;
  gap: 0;
  padding: 10px 16px;
}

.chip.used { opacity: 0.3; pointer-events: none; transform: none; }

.demo-done { text-align: center; padding: 18px 6px 10px; }

.done-marks { display: flex; justify-content: center; gap: 12px; margin-bottom: 20px; }

.done-marks span {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--gold);
  transform: rotate(45deg) scale(0);
  animation: mark-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.done-marks span:nth-child(1) { animation-delay: 0.1s; }
.done-marks span:nth-child(2) { background: var(--brick); width: 14px; height: 14px; animation-delay: 0.25s; }
.done-marks span:nth-child(3) { animation-delay: 0.4s; }

@keyframes mark-pop { to { transform: rotate(45deg) scale(1); } }

.demo-done-pa {
  font-family: var(--font-pa);
  font-weight: 600;
  font-size: 3.6rem;
  line-height: 1.25;
  color: var(--brick);
  margin: 0;
}

.done-gloss {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 6px 0 18px;
}

.demo-done .demo-prompt { max-width: 30em; margin: 0 auto 6px; }

.demo-done-ctas { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 24px; }

.demo-restart { color: var(--ink-soft); font-weight: 600; }

/* ---------- the ladoo way ---------- */

.way { padding: 72px 0 48px; }

.way-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}

.way-art svg { width: min(360px, 80vw); margin: 0 auto; display: block; }

.way-art path {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.way-art .p1 { stroke: var(--brick); }
.way-art .p2 { stroke: var(--sage); }
.way-art .p3 { stroke: var(--gold); }

.way-art.in .p1 { animation: draw 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.way-art.in .p2 { animation: draw 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards; }
.way-art.in .p3 { animation: draw 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards; }

@keyframes draw { to { stroke-dashoffset: 0; } }

.way-art .pdot {
  fill: var(--gold);
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
}

.way-art.in .pdot { animation: dot-pop 0.5s cubic-bezier(0.22, 1, 0.36, 1) 1.9s forwards; }

@keyframes dot-pop {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: scale(1); }
}

.way-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 26px;
}

.way-list li { display: flex; gap: 20px; align-items: baseline; }

.way-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--brick);
  flex: 0 0 44px;
}

.way-list div { color: var(--ink-soft); }
.way-list strong { color: var(--ink); }

/* ---------- pull quote band ---------- */

.pull {
  background: var(--sage);
  color: var(--cream-raised);
  padding: 96px 0;
  margin: 48px 0;
}

.pull blockquote {
  margin: 0 auto;
  max-width: 21em;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.pull .pa-line {
  display: block;
  font-family: var(--font-pa);
  font-size: 0.62em;
  margin-top: 26px;
  color: var(--cream-deep);
}

/* ---------- download ---------- */

.download { padding: 48px 0 96px; }

.download-panel {
  background: var(--brick);
  color: var(--cream-raised);
  border-radius: 32px;
  padding: clamp(48px, 7vw, 88px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download-panel::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(246, 238, 220, 0.28);
  border-radius: 22px;
  pointer-events: none;
}

.download-panel .pa-mark {
  position: absolute;
  font-family: var(--font-pa);
  font-size: 300px;
  line-height: 1;
  color: var(--brick-deep);
  right: -50px;
  bottom: -90px;
  pointer-events: none;
  user-select: none;
}

.download-panel > * { position: relative; }

.download-panel h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 0 0 14px;
}

.download-panel p { color: var(--cream-deep); font-size: 1.12rem; max-width: 36em; margin: 0 auto 34px; }

.download-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }

.download .chip-soon { border-color: rgba(246, 238, 220, 0.4); color: var(--cream-deep); }
.download .chip-soon small { color: var(--cream-deep); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--cream-raised);
  padding: 56px 0 40px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  position: relative;
  overflow: hidden;
}

.footer-mark {
  position: absolute;
  right: -24px;
  bottom: -110px;
  font-family: var(--font-pa);
  font-weight: 600;
  font-size: 300px;
  line-height: 1;
  color: var(--cream-deep);
  pointer-events: none;
  user-select: none;
}

.site-footer .wrap { position: relative; }

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.footer-brand img { width: 36px; height: 36px; border-radius: 10px; }
.footer-brand span { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; }

.footer-cols { display: flex; gap: clamp(40px, 6vw, 90px); flex-wrap: wrap; }

.footer-col h3 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 14px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--ink-soft); text-decoration: none; }
.footer-col a:hover { color: var(--brick); text-decoration: underline; }

.footer-legal {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

/* ---------- legal pages ---------- */

.legal-hero { padding: 72px 0 8px; }
.legal-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 10px;
}
.legal-hero .legal-meta { color: var(--ink-soft); }

.legal-body { max-width: 760px; padding: 56px 0 96px; }
.legal-body h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 12px;
}
.legal-body h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 44px 0 12px;
}
.legal-body h3 { font-size: 1.12rem; margin: 30px 0 8px; }
.legal-body p, .legal-body li { color: var(--ink-soft); }
.legal-body li { margin-bottom: 6px; }
.legal-body strong { color: var(--ink); }
.legal-body table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.legal-body th, .legal-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal-body th { background: var(--cream-raised); color: var(--ink); }

/* ---------- reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.feature-media.reveal { transform: translateX(70px) rotate(4deg); }
.feature:nth-of-type(even) .feature-media.reveal { transform: translateX(-70px) rotate(-4deg); }
.feature-media.reveal.in { transform: none; }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-stagger.in > * { opacity: 1; transform: none; }

.reveal-stagger.in > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.09s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.18s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.27s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.36s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
  .word-card { animation: none; }
  .feature-media .device { transition: none; }
  .btn { transition: none; }
  .u-brick::after { transform: scaleX(1); transition: none; }
  .way-art path { stroke-dashoffset: 0; animation: none; }
  .way-art .pdot { opacity: 1; animation: none; }
  .demo-step.active { animation: none; }
  .demo-bar span { transition: none; }
  .done-marks span { animation: none; transform: rotate(45deg) scale(1); }
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .hero-cards { display: none; }
}

@media (max-width: 900px) {
  .hero { padding-top: 64px; }
  .hero-watermark { font-size: 300px; top: -40px; right: -80px; }
  .feature { grid-template-columns: 1fr; gap: 40px; padding: 48px 0; }
  .feature:nth-of-type(even) .feature-media { order: 0; }
  .demo-grid, .way-grid { grid-template-columns: 1fr; gap: 48px; }
  .way-grid .way-art { order: 2; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .site-nav a.nav-link { display: none; }
}

@media (max-width: 480px) {
  body { font-size: 1rem; }
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .hero-ctas .btn, .hero-ctas .chip-soon { width: 100%; justify-content: center; }
  .download-ctas .btn, .download-ctas .chip-soon { width: 100%; justify-content: center; }
}
