/* =========================================================
   SENSO — design tokens & base styles
   ========================================================= */

:root {
  /* Brand colors (from official brand pack) */
  --orange: #F68518;
  --orange-2: #F5931B;
  --orange-3: #F6C23C;
  --orange-deep: #B54211;
  --orange-deep-2: #913912;
  --gold-highlight: #FFE08A;

  /* Surface colors (sampled from approved landing) */
  --ink: #0A0E0C;           /* base dark background */
  --ink-soft: #101512;      /* raised dark surface / cards */
  --ink-glow: #0E1C18;      /* radar / hero glow variant */
  --ink-border: rgba(255, 255, 255, 0.08);
  --ink-border-strong: rgba(255, 255, 255, 0.14);

  --paper: #EDEEE9;         /* light section background */
  --paper-card: #F7F7F3;    /* light card / form panel */
  --paper-border: rgba(17, 21, 18, 0.1);

  --text-on-dark: #F4F5F1;
  --text-on-dark-muted: #9CA6A1;
  --text-on-dark-faint: #6B7570;
  --text-on-light: #14140F;
  --text-on-light-muted: #55584F;

  --mint: #51DFC0;
  --mint-dim: rgba(81, 223, 192, 0.16);

  /* Type */
  --font-display: "Montserrat", "Golos Text", system-ui, sans-serif;
  --font-body: "Golos Text", "Montserrat", system-ui, sans-serif;

  /* Layout */
  --container-w: 1216px;
  --gutter: clamp(20px, 5vw, 96px);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

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

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

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0; letter-spacing: -0.01em; overflow-wrap: break-word; hyphens: auto; }

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

button, input, select { font-family: inherit; font-size: inherit; color: inherit; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

/* -------------------- Sections -------------------- */

.section {
  position: relative;
  padding: clamp(64px, 9vw, 128px) 0;
}

.section--light {
  background: var(--paper);
  color: var(--text-on-light);
}

.section--light .eyebrow { color: var(--orange-deep); }
.section--light .muted { color: var(--text-on-light-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--orange);
  text-transform: none;
  margin-bottom: 20px;
}

.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px var(--mint-dim);
}

.eyebrow--path { color: var(--text-on-dark-muted); font-weight: 500; }
.eyebrow--path b { color: var(--orange); font-weight: 600; margin-right: 6px; }

.section-heading {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  max-width: 880px;
  margin-bottom: 20px;
}

.section-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-on-dark-muted);
  max-width: 640px;
  line-height: 1.5;
}

.section--light .section-sub { color: var(--text-on-light-muted); }

.muted { color: var(--text-on-dark-muted); }

/* -------------------- Header -------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ink-border);
}

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

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

.brand img { height: 30px; width: auto; }

.brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.02em;
  color: var(--text-on-dark);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav a {
  font-size: 14.5px;
  color: var(--text-on-dark-muted);
  transition: color .2s var(--ease-out);
  white-space: nowrap;
}

.main-nav a:hover { color: var(--text-on-dark); }

.header-cta {
  display: inline-flex;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
  padding: 13px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .25s var(--ease-out);
  white-space: nowrap;
}

.btn svg { width: 14px; height: 14px; transition: transform .25s var(--ease-out); }
.btn:hover svg { transform: translate(2px, -2px); }

.btn--ghost {
  background: transparent;
  color: var(--text-on-dark);
  border-bottom: 1px solid var(--orange);
  border-radius: 0;
  padding: 6px 2px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  color: #1A0D02;
  box-shadow: 0 8px 24px -8px rgba(246, 133, 24, 0.55);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(246, 133, 24, 0.7);
}

.btn--block { width: 100%; justify-content: center; padding: 16px 22px; font-size: 15.5px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--ink-border-strong);
  border-radius: 10px; cursor: pointer;
}

.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--text-on-dark);
  position: relative; transition: all .25s var(--ease-out);
}

.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

.site-nav-drawer { display: none; }

/* -------------------- Hero -------------------- */

.hero {
  position: relative;
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 640px;
  background: radial-gradient(60% 60% at 70% 30%, var(--ink-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(38px, 5.6vw, 64px);
  line-height: 1.06;
  margin-bottom: 26px;
}

.hero-copy h1 .accent { color: var(--orange); }

.hero-copy p {
  font-size: clamp(16.5px, 1.6vw, 19px);
  color: var(--text-on-dark-muted);
  max-width: 560px;
  margin-bottom: 34px;
}

.hero-scene {
  position: relative;
  aspect-ratio: 1 / 0.92;
  min-height: 380px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

/* -------------------- Radar scene -------------------- */

.radar-rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.radar-rings .ring {
  fill: none;
  stroke: rgba(81, 223, 192, 0.16);
  stroke-width: 1;
}

.radar-rings .ring--1 { animation: pulse-ring 4.2s ease-out infinite; }
.radar-rings .ring--2 { animation: pulse-ring 4.2s ease-out infinite; animation-delay: .5s; }
.radar-rings .ring--3 { animation: pulse-ring 4.2s ease-out infinite; animation-delay: 1s; }

@keyframes pulse-ring {
  0% { stroke: rgba(81, 223, 192, 0.32); }
  50% { stroke: rgba(81, 223, 192, 0.08); }
  100% { stroke: rgba(81, 223, 192, 0.32); }
}

.radar-rings .sweep {
  stroke: url(#sweepGradient);
  stroke-width: 2;
  transform-origin: 300px 300px;
  animation: sweep-rotate 7s linear infinite;
}

@keyframes sweep-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.signal-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(58%, 300px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(81, 223, 192, 0.14), rgba(10, 14, 12, 0.94) 72%);
  border: 1px solid rgba(81, 223, 192, 0.4);
  box-shadow: 0 0 0 10px rgba(81, 223, 192, 0.05), 0 30px 60px -20px rgba(0,0,0,.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  animation: core-breathe 5s ease-in-out infinite;
}

@keyframes core-breathe {
  0%, 100% { box-shadow: 0 0 0 10px rgba(81, 223, 192, 0.05), 0 30px 60px -20px rgba(0,0,0,.6); }
  50% { box-shadow: 0 0 0 16px rgba(81, 223, 192, 0.09), 0 30px 60px -20px rgba(0,0,0,.6); }
}

.signal-core .signal-tag {
  font-family: var(--font-display); font-weight: 600; font-size: 11.5px;
  letter-spacing: 0.06em; color: var(--mint); margin-bottom: 10px;
  display: inline-flex; align-items: center; gap: 6px;
}
.signal-core .signal-tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint);
  box-shadow: 0 0 0 4px var(--mint-dim);
}

.signal-core strong {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(19px, 2vw, 24px);
  line-height: 1.25; display: block; margin-bottom: 8px; min-height: 2.5em;
  transition: opacity .3s var(--ease-out);
}
.signal-core small { color: var(--text-on-dark-faint); font-size: 12.5px; transition: opacity .3s var(--ease-out); }
.signal-core.is-swapping strong, .signal-core.is-swapping small { opacity: 0; }

.tag {
  position: absolute;
  left: var(--x); top: var(--y);
  background: rgba(16, 21, 18, 0.9);
  border: 1px solid var(--ink-border-strong);
  border-radius: 999px;
  padding: 9px 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-on-dark-muted);
  white-space: nowrap;
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(10px) scale(.94);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  animation: tag-float 6s ease-in-out infinite;
}

.hero-scene.is-active .tag { opacity: 1; transform: none; }
.tag--1 { transition-delay: .1s; animation-delay: 0s; }
.tag--2 { transition-delay: .22s; animation-delay: .8s; }
.tag--3 { transition-delay: .34s; animation-delay: 1.6s; }
.tag--4 { transition-delay: .46s; animation-delay: 2.4s; }
.tag--5 { transition-delay: .58s; animation-delay: 3.2s; }
.tag--6 { transition-delay: .7s; animation-delay: 4s; }

@keyframes tag-float {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -8px; }
}

.scene-caption {
  position: absolute;
  right: 4%;
  bottom: -6px;
  font-size: 11.5px;
  color: var(--text-on-dark-faint);
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity .6s var(--ease-out) .9s;
}
.hero-scene.is-active .scene-caption { opacity: 1; }

@media (max-width: 1080px) {
  .signal-core { width: min(64%, 260px); }
  .tag { font-size: 11px; padding: 7px 13px; }
}

@media (max-width: 600px) {
  .hero-scene { min-height: 300px; transform: scale(.86); margin: 0 -20px; }
  .tag--4, .tag--6 { display: none; }
}

/* -------------------- Stats bar -------------------- */

.stats-bar {
  border-top: 1px solid var(--ink-border);
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: clamp(28px, 4vw, 40px);
  display: grid;
  grid-template-columns: repeat(3, auto) 1fr;
  gap: clamp(20px, 4vw, 40px);
  align-items: start;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 2.6vw, 32px);
  margin-bottom: 6px;
}

.stat span { font-size: 14px; color: var(--text-on-dark-muted); }

.stats-bar .stats-note {
  font-size: 14.5px;
  color: var(--text-on-dark-faint);
  align-self: center;
  max-width: 320px;
}

/* -------------------- Cards / grids -------------------- */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--ink-border); border: 1px solid var(--ink-border); border-radius: var(--radius-md); overflow: hidden; }

.card {
  background: var(--ink);
  padding: clamp(24px, 3vw, 34px);
}

.card .num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--mint);
  display: block;
  margin-bottom: 14px;
}

.card h3 { font-size: 21px; line-height: 1.3; margin-bottom: 10px; }
.card p { color: var(--text-on-dark-muted); font-size: 15px; line-height: 1.55; }

/* -------------------- Situations block -------------------- */

.situations-quote {
  margin-top: 40px;
  padding: 26px 30px;
  border-left: 2px solid var(--mint);
  font-size: clamp(17px, 1.8vw, 21px);
  color: var(--text-on-dark);
  max-width: 780px;
  line-height: 1.5;
}

/* -------------------- How it works -------------------- */

.how-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.how-steps .card { border-top: 1px solid var(--ink-border); padding: 26px 0; background: transparent; }
.how-steps .card:first-child { border-top: none; }
.how-steps { border-bottom: 1px solid var(--ink-border); }

.source-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 32px 0;
}

.source-chips span {
  display: block;
  text-align: center;
  padding: 18px;
  border: 1px solid var(--ink-border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
}

.trust-box {
  background: var(--mint-dim);
  border-left: 2px solid var(--mint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 22px 26px;
  font-size: 16px;
  line-height: 1.55;
}

.trust-box--orange {
  background: rgba(246, 133, 24, 0.12);
  border-left-color: var(--orange);
}

/* -------------------- Comparison -------------------- */

.compare-intro { margin-bottom: 40px; max-width: 620px; color: var(--text-on-dark-muted); font-size: 17px; }
.compare-header-grid { display: grid; grid-template-columns: minmax(0,0.9fr) minmax(0,1.1fr); gap: clamp(32px, 5vw, 64px); align-items: end; margin-bottom: 40px; }

/* -------------------- Origin story (light) -------------------- */

.origin-wrap { position: relative; }

.origin-wave {
  position: absolute; top: -40px; left: 0; right: 0; opacity: 0.55;
  pointer-events: none;
}

.origin-layout { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.origin-layout p + p { margin-top: 18px; }

.timeline {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.timeline li { border-top: 3px solid var(--orange); padding-top: 16px; }
.timeline .t-num { display: block; font-size: 13px; color: var(--text-on-light-muted); margin-bottom: 10px; font-family: var(--font-display); font-weight: 600; }
.timeline .t-label { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.timeline li:not(:first-child) { border-top-color: var(--paper-border); position: relative; }
.timeline li:not(:first-child)::before {
  content: ""; position: absolute; top: -3px; left: 0; height: 3px; width: 0; background: var(--orange);
}

.origin-callout {
  margin-top: 32px;
  background: var(--paper-card);
  border-left: 3px solid var(--orange);
  padding: 22px 26px;
  font-size: 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* -------------------- Case study -------------------- */

.case-header { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(24px, 5vw, 64px); align-items: end; margin-bottom: 40px; }

.episodes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ink-border); border: 1px solid var(--ink-border); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 28px; }
.episode { background: var(--ink); padding: clamp(24px, 2.6vw, 32px); }
.episode .ep-label { font-size: 13px; color: var(--text-on-dark-faint); display: block; margin-bottom: 18px; }
.episode .ep-figure { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 2.4vw, 30px); color: var(--orange); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.episode .ep-figure svg { width: 22px; height: 22px; opacity: .8; }
.episode h4 { font-size: 17px; margin-bottom: 10px; line-height: 1.35; }
.episode p { color: var(--text-on-dark-muted); font-size: 14.5px; line-height: 1.55; }

.disclaimer {
  border: 1px solid var(--orange-deep);
  background: rgba(181, 66, 17, 0.12);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-on-dark);
}
.disclaimer b { color: var(--orange); }

/* -------------------- Who for -------------------- */

.who-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--ink-border); border: 1px solid var(--ink-border); border-radius: var(--radius-md); overflow: hidden; }
.who-col { background: var(--ink); padding: clamp(24px, 3vw, 34px); }
.who-col h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--ink-border); }
.who-col h3 .mark { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.who-col--yes h3 .mark { background: var(--mint-dim); color: var(--mint); }
.who-col--no h3 .mark { background: rgba(246, 133, 24, 0.14); color: var(--orange); }
.who-col li { padding: 14px 0; border-top: 1px solid var(--ink-border); font-size: 15px; color: var(--text-on-dark-muted); line-height: 1.5; }
.who-col li:first-of-type { border-top: none; }

/* -------------------- Demo block -------------------- */

.demo-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.demo-copy p.lead { color: var(--text-on-dark-muted); font-size: 17px; margin: 22px 0 32px; max-width: 560px; }
.demo-steps li { display: flex; gap: 20px; padding: 20px 0; border-top: 1px solid var(--ink-border); }
.demo-steps li:first-child { border-top: none; }
.demo-steps .d-num { font-family: var(--font-display); font-weight: 700; color: var(--orange); font-size: 15px; flex: none; width: 28px; }
.demo-steps h4 { font-size: 17px; margin-bottom: 6px; }
.demo-steps p { color: var(--text-on-dark-muted); font-size: 15px; }

.daria-card {
  background: var(--ink-soft);
  border: 1px solid var(--ink-border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: 100px;
}

.daria-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-top: 3px solid var(--orange); }
.daria-photo img { width: 100%; height: 100%; object-fit: cover; }

.daria-body { padding: clamp(22px, 3vw, 28px); }
.daria-name { font-size: 24px; margin: 10px 0 12px; }
.daria-body p.role { color: var(--text-on-dark-muted); font-size: 15px; line-height: 1.55; margin-bottom: 22px; }
.daria-micro { margin-top: 16px; font-size: 13.5px; color: var(--text-on-dark-faint); }

/* -------------------- Form -------------------- */

.form-layout { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 64px); align-items: start; }

.form-panel {
  background: var(--paper-card);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3.4vw, 40px);
  color: var(--text-on-light);
}

.form-panel .panel-label {
  font-family: var(--font-display); font-weight: 600; font-size: 12.5px; letter-spacing: 0.06em;
  color: var(--text-on-light-muted); margin-bottom: 22px;
}

.field { margin-bottom: 22px; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.field label .req { color: var(--orange); margin-left: 3px; }
.field label .opt { font-weight: 500; color: var(--text-on-light-muted); font-size: 13px; margin-left: 6px; }
.field input, .field select {
  width: 100%; padding: 13px 4px; border: none; border-bottom: 1px solid var(--paper-border);
  background: transparent; font-size: 15.5px; color: var(--text-on-light); outline: none;
  transition: border-color .2s var(--ease-out);
}
.field input::placeholder { color: #9A9C93; }
.field input:focus, .field select:focus { border-color: var(--orange); }
.field-hint { font-size: 12.5px; color: var(--text-on-light-muted); margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-consent { font-size: 12.5px; color: var(--text-on-light-muted); margin-top: 16px; line-height: 1.5; }
.form-consent a { color: var(--orange-deep); border-bottom: 1px solid currentColor; }

.form-status { margin-top: 16px; font-size: 14.5px; display: none; padding: 12px 16px; border-radius: var(--radius-sm); }
.form-status.is-success { display: block; background: rgba(81, 223, 192, 0.18); color: #0F6B54; }
.form-status.is-error { display: block; background: rgba(246, 133, 24, 0.16); color: var(--orange-deep); }

/* -------------------- Final phrase + footer -------------------- */

.final-phrase {
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.4;
  max-width: 880px;
}

.site-footer { border-top: 1px solid var(--ink-border); padding: 40px 0; }
.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { height: 22px; }
.footer-brand span { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.footer-tagline { color: var(--text-on-dark-faint); font-size: 14px; }
.footer-legal { border-top: 1px solid var(--ink-border); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--text-on-dark-faint); font-size: 13px; line-height: 1.6; }
.footer-legal a { color: var(--text-on-dark-muted); }
.footer-legal a:hover { color: var(--text-on-dark); }

/* -------------------- Scroll reveal -------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* -------------------- Privacy page -------------------- */

.legal-doc { max-width: 760px; }
.legal-doc h2 { font-size: 26px; margin: 40px 0 14px; }
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p, .legal-doc li { color: var(--text-on-dark-muted); font-size: 15.5px; line-height: 1.7; margin-bottom: 12px; }
.legal-doc li { list-style: disc; margin-left: 20px; }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1080px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }

  /* The box itself never moves and never leaves the viewport (inset 0 on
     every side) — only clip-path animates. A translateX() slide would move
     a position:fixed box physically past the viewport edge, which Chromium
     still counts as page-level horizontal scroll even under overflow:hidden
     — clip-path avoids that entirely, so html/body can stay overflow-visible
     and position:sticky in the header keeps working. */
  .site-nav-drawer {
    display: block;
    position: fixed; inset: 76px 0 0 0; background: var(--ink);
    z-index: 90; padding: 28px 0; overflow-y: auto;
    clip-path: inset(0 0 0 100%);
    transition: clip-path .3s var(--ease-out), visibility 0s linear .3s;
    visibility: hidden;
  }
  .site-nav-drawer.is-open {
    clip-path: inset(0 0 0 0);
    visibility: visible;
    transition: clip-path .3s var(--ease-out);
  }
  .site-nav-drawer a { display: block; padding: 16px 0; font-size: 18px; border-bottom: 1px solid var(--ink-border); }
  .site-nav-drawer .btn { margin-top: 20px; }

  .hero-grid, .how-layout, .origin-layout, .demo-layout, .form-layout,
  .compare-header-grid, .case-header { grid-template-columns: 1fr; }

  .hero-scene { order: -1; min-height: 320px; }
  .daria-card { position: static; }
}

@media (max-width: 860px) {
  .grid-2, .who-grid { grid-template-columns: 1fr; }
  .episodes { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stats-bar .stats-note { grid-column: 1 / -1; max-width: none; }
  .source-chips { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  :root { --gutter: 18px; }
  .site-header .container { height: 66px; }
  .brand span { font-size: 17px; }
  .brand img { height: 26px; }
  .btn { padding: 12px 18px; font-size: 14px; }
  .hero { padding-top: 32px; }
  .hero-copy h1 { font-size: 34px; }
  .timeline { grid-template-columns: 1fr 1fr; gap: 20px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .episode .ep-figure { font-size: 22px; }
  .footer-legal { flex-direction: column; }
}
