/* ============================================================
   Шузотека — App Store / product page redesign
   Layered phones, marquee strip, sticky storytelling, mouse-tilt
   ============================================================ */

:root {
  /* Surfaces */
  --bg:           #FFFFFF;
  --bg-alt:       #F5F5F7;
  --bg-soft:      #FAFAFA;
  --bg-dark:      #1D1D1F;

  /* Text */
  --text:         #1D1D1F;
  --text-muted:   #6E6E73;
  --text-light:   #86868B;
  --text-on-dark: #F5F5F7;
  --text-on-dark-muted: #A1A1A6;

  /* Accent — forest green from app's "Лес" palette */
  --accent:       #4A8B45;
  --accent-dark:  #3A6E36;
  --accent-soft:  #EDF5EC;
  --accent-on-dark: #6EBC65;

  --link:         #0066CC;
  --border:       rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --border-on-dark: rgba(255, 255, 255, 0.12);

  /* Fonts — true SF Pro on Apple, Onest fallback */
  --font-display: -apple-system, BlinkMacSystemFont,
                  "SF Pro Display", "SF Pro Text",
                  "Onest", "Helvetica Neue", system-ui, sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont,
                  "SF Pro Text", "Onest", "Helvetica Neue",
                  system-ui, sans-serif;
  --font-mono:    ui-monospace, "SF Mono", "JetBrains Mono",
                  Menlo, Consolas, monospace;

  /* Layout */
  --max-w: 1240px;
  --pad-x: clamp(20px, 4vw, 48px);

  /* Phone screen aspect — iPhone 15 Pro Max-ish ~ 1:2.16 */
  --phone-w: 280px;
  --phone-ratio: 2.16;

  /* Easing */
  --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
  --ease-spring: cubic-bezier(0.2, 0.7, 0.25, 1);
}

/* ============== Reset ============== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease, opacity .2s ease; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ============== Nav ============== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 56px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--border);
}
.nav__inner {
  max-width: var(--max-w);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.012em;
}
.nav__icon {
  width: 26px;
  height: 26px;
  border-radius: 22.5%;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.08);
}
.nav__menu {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
}
.nav__menu a:hover { color: var(--accent); }
.nav__cta {
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 100px;
  background: var(--accent);
  color: #FFF;
  transition: background .2s ease, transform .15s ease;
}
.nav__cta:hover { background: var(--accent-dark); }
.nav__cta:active { transform: scale(0.97); }

/* ============== Type helpers ============== */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0;
  display: inline-block;
  margin-bottom: 14px;
}
.eyebrow--dot::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 9px;
  vertical-align: middle;
  transform: translateY(-1.5px);
}

/* ============== Phone primitive ============== */
.phone {
  position: relative;
  width: var(--phone-w);
  aspect-ratio: 1 / var(--phone-ratio);
  border-radius: 38px;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.18),
    0 40px 80px -28px rgba(0, 0, 0, 0.4),
    0 16px 32px -12px rgba(0, 0, 0, 0.22);
  transform-style: preserve-3d;
  transition: transform .8s var(--ease-spring);
  will-change: transform;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Phone size variants */
.phone--lg { --phone-w: 320px; }
.phone--md { --phone-w: 280px; }
.phone--sm { --phone-w: 230px; }
.phone--xs { --phone-w: 180px; }

/* Mouse-tilt — applied via JS sets --tx/--ty */
.phone[data-tilt] {
  transition: transform .25s var(--ease-spring);
}

/* ============== HERO — layered phones ============== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 70% at 50% -10%, rgba(74, 139, 69, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 90%, rgba(74, 139, 69, 0.05) 0%, transparent 60%),
    var(--bg);
}
.hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(60px, 9vw, 110px) var(--pad-x) clamp(80px, 10vw, 140px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}

.hero__copy {
  position: relative;
  z-index: 2;
}
.hero__appicon {
  width: clamp(56px, 6vw, 68px);
  height: clamp(56px, 6vw, 68px);
  border-radius: 22.5%;
  margin-bottom: 22px;
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.06),
    0 12px 28px -10px rgba(31, 151, 245, 0.35),
    0 6px 14px -6px rgba(31, 151, 245, 0.25);
  opacity: 0;
  transform: translateY(10px) scale(0.94);
  animation: appIconIn 1s var(--ease-spring) forwards;
  transition: transform .4s var(--ease-spring);
}
.hero__appicon:hover {
  transform: translateY(-2px) scale(1.03);
}
@keyframes appIconIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.hero__eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(12px);
  animation: rise .9s var(--ease-out-quart) .05s forwards;
}
.hero__eyebrow::before {
  content: "";
  width: 24px;
  height: 1.5px;
  background: var(--accent);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.034em;
  color: var(--text);
  margin-bottom: 24px;
  max-width: 17ch;
  opacity: 0;
  transform: translateY(24px);
  animation: rise 1s var(--ease-out-quart) .15s forwards;
}
.hero__title span {
  color: var(--accent);
}
.hero__sub {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 38ch;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 1s var(--ease-out-quart) .3s forwards;
}
.hero__actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 1s var(--ease-out-quart) .45s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
.btn:active { transform: scale(0.98); }
.btn--primary {
  background: var(--text);
  color: #FFF;
}
.btn--primary:hover { background: #000; }
.btn--ghost {
  color: var(--accent);
  padding: 14px 0;
}
.btn--ghost:hover { color: var(--accent-dark); }
.btn--ghost::after {
  content: "→";
  transition: transform .2s ease;
}
.btn--ghost:hover::after { transform: translateX(4px); }

/* Hero stage — layered phones */
.hero-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1500px;
  height: clamp(420px, 50vw, 640px);
}
.hero-stage__phone {
  position: absolute;
  opacity: 0;
  animation: phoneRise 1.2s var(--ease-spring) forwards;
}
.hero-stage__phone--back-left {
  --phone-w: clamp(180px, 18vw, 240px);
  left: 4%;
  top: 18%;
  --tilt: rotate(-9deg) translateY(20px);
  transform: var(--tilt) translateZ(-60px) scale(0.92);
  animation-delay: .2s;
  z-index: 1;
}
.hero-stage__phone--back-right {
  --phone-w: clamp(180px, 18vw, 240px);
  right: 4%;
  top: 22%;
  --tilt: rotate(9deg) translateY(20px);
  transform: var(--tilt) translateZ(-60px) scale(0.92);
  animation-delay: .35s;
  z-index: 1;
}
.hero-stage__phone--center {
  --phone-w: clamp(240px, 24vw, 320px);
  top: 50%;
  left: 50%;
  --tilt: rotate(-2deg) translate(-50%, -50%);
  transform: var(--tilt) translateZ(0);
  animation-delay: .5s;
  z-index: 2;
}

@keyframes phoneRise {
  0%   { opacity: 0; transform: var(--tilt) translateY(60px) scale(0.85); }
  100% { opacity: 1; }
}
.hero-stage__phone--center {
  animation-name: phoneRiseCenter;
}
@keyframes phoneRiseCenter {
  0%   { opacity: 0; transform: rotate(-2deg) translate(-50%, -30%) scale(0.85); }
  100% { opacity: 1; transform: rotate(-2deg) translate(-50%, -50%) scale(1); }
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ============== Marquee strip — subtle transitional ribbon ============== */
.marquee {
  padding: clamp(28px, 4vw, 56px) 0;
  overflow: hidden;
  background: var(--bg);
  position: relative;
}
.marquee__track-wrap {
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.marquee__track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marqueeScroll 80s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}
.marquee__item {
  --phone-w: clamp(82px, 8vw, 118px);
  flex-shrink: 0;
  opacity: 0.78;
  transition: opacity .3s ease, transform .3s ease;
}
.marquee__item:nth-child(odd)  { transform: rotate(-1.5deg); }
.marquee__item:nth-child(even) { transform: rotate(1.5deg); }
.marquee__item:hover {
  opacity: 1;
  transform: rotate(0deg) translateY(-3px);
}
/* Smaller, softer shadow for marquee phones */
.marquee__item.phone {
  border-radius: 22px;
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.12),
    0 12px 28px -12px rgba(0, 0, 0, 0.2);
}

@keyframes marqueeScroll {
  to { transform: translateX(-50%); }
}

/* ============== Generic feature section ============== */
.section {
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
  overflow: hidden;
}
.section--alt { background: var(--bg-alt); }
.section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  position: relative;
}

.section-head {
  margin-bottom: clamp(56px, 8vw, 100px);
  max-width: 640px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.028em;
  color: var(--text);
}

/* ============== Feature with overlapping phones ============== */
.duo {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.duo--reverse .duo__copy { order: 2; }
.duo--reverse .duo__stage { order: 1; }

.duo__copy {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out-quart), transform 1s var(--ease-out-quart);
}
.duo__stage {
  position: relative;
  height: clamp(440px, 50vw, 620px);
  perspective: 1200px;
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1.2s var(--ease-out-quart) .1s,
    transform 1.2s var(--ease-out-quart) .1s;
}
.section.is-visible .duo__copy,
.section.is-visible .duo__stage {
  opacity: 1;
  transform: translateY(0);
}
.duo h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.07;
  letter-spacing: -0.026em;
  color: var(--text);
  margin-bottom: 22px;
  max-width: 17ch;
}
.duo p {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 42ch;
  margin-bottom: 16px;
}
.duo__list {
  list-style: none;
  margin-top: 22px;
  display: grid;
  gap: 10px;
}
.duo__list li {
  font-size: 15px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
}
.duo__list li::before {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.15;
  background-image: radial-gradient(circle, var(--accent) 30%, transparent 33%);
  opacity: 1;
}

/* Two phones overlapping inside duo__stage */
.duo__phone {
  position: absolute;
  top: 50%;
  left: 50%;
  transition: transform .6s var(--ease-spring);
}
.duo__phone--a {
  --phone-w: clamp(220px, 22vw, 280px);
  transform: translate(-70%, -50%) rotate(-6deg);
  z-index: 1;
}
.duo__phone--b {
  --phone-w: clamp(220px, 22vw, 280px);
  transform: translate(-30%, -50%) rotate(6deg);
  z-index: 2;
}
.duo__stage:hover .duo__phone--a {
  transform: translate(-78%, -50%) rotate(-9deg);
}
.duo__stage:hover .duo__phone--b {
  transform: translate(-22%, -50%) rotate(9deg);
}

/* ============== Scanner storytelling — sticky scroll ============== */
.story {
  background: var(--bg);
  position: relative;
  padding: clamp(60px, 8vw, 100px) 0 clamp(40px, 6vw, 80px);
}
.story__intro {
  max-width: var(--max-w);
  margin: 0 auto clamp(48px, 7vw, 80px);
  padding: 0 var(--pad-x);
  max-width: 640px;
}
.story__intro h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.028em;
  color: var(--text);
  margin-bottom: 18px;
}
.story__intro p {
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--text-muted);
}

.story__stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  gap: clamp(40px, 5vw, 80px);
}
.story__sticky {
  position: sticky;
  top: 90px;
  height: calc(100vh - 140px);
  max-height: 720px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.story__phone {
  --phone-w: clamp(240px, 24vw, 320px);
  position: relative;
}
.story__phone img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 38px;
  transition: opacity .9s var(--ease-out-quart);
}
.story__phone img.is-hidden { opacity: 0; }

.story__notes {
  display: flex;
  flex-direction: column;
  gap: clamp(40vh, 60vh, 60vh);
  padding: 20vh 0;
}
.story-note {
  opacity: 0.25;
  transition: opacity .5s ease;
}
.story-note.is-active { opacity: 1; }
.story-note__step {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.story-note h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.024em;
  color: var(--text);
  margin-bottom: 14px;
  max-width: 14ch;
}
.story-note p {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 36ch;
}

/* ============== Single-phone feature ============== */
.solo {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.solo--reverse .solo__copy { order: 2; }
.solo--reverse .solo__phone { order: 1; }
.solo__copy {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out-quart), transform 1s var(--ease-out-quart);
}
.solo__phone-wrap {
  display: flex;
  justify-content: center;
  perspective: 1200px;
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1.2s var(--ease-out-quart) .1s,
    transform 1.2s var(--ease-out-quart) .1s;
}
.section.is-visible .solo__copy,
.section.is-visible .solo__phone-wrap {
  opacity: 1;
  transform: translateY(0);
}
.solo h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.07;
  letter-spacing: -0.026em;
  color: var(--text);
  margin-bottom: 22px;
  max-width: 17ch;
}
.solo p {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 42ch;
  margin-bottom: 16px;
}
.solo__phone {
  --phone-w: clamp(260px, 26vw, 340px);
  transform: rotate(-3deg);
  transition: transform .6s var(--ease-spring);
}
.solo__phone-wrap:hover .solo__phone {
  transform: rotate(0deg) translateY(-8px);
}

/* ============== Details grid ============== */
.details {
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--bg);
}
.details__head {
  max-width: var(--max-w);
  margin: 0 auto clamp(56px, 8vw, 100px);
  padding: 0 var(--pad-x);
}
.details__head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.024em;
  color: var(--text);
  max-width: 18ch;
}
.details__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.detail-card {
  background: var(--bg-alt);
  border-radius: 22px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease-out-quart), transform .8s var(--ease-out-quart);
}
.details.is-visible .detail-card {
  opacity: 1;
  transform: translateY(0);
}
.details.is-visible .detail-card:nth-child(2) { transition-delay: .08s; }
.details.is-visible .detail-card:nth-child(3) { transition-delay: .16s; }
.details.is-visible .detail-card:nth-child(4) { transition-delay: .24s; }
.details.is-visible .detail-card:nth-child(5) { transition-delay: .32s; }
.details.is-visible .detail-card:nth-child(6) { transition-delay: .40s; }
.details.is-visible .detail-card:nth-child(7) { transition-delay: .48s; }
.details.is-visible .detail-card:nth-child(8) { transition-delay: .56s; }
.detail-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 0.5px var(--border);
}
.detail-card__icon svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}
.detail-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--text);
}
.detail-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ============== Dark privacy ============== */
.privacy {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
  overflow: hidden;
}
.privacy::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 30% 50%, rgba(74, 139, 69, 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 80% 70%, rgba(0, 102, 204, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.privacy__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  position: relative;
}
.privacy__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: end;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease-out-quart), transform 1s var(--ease-out-quart);
}
.privacy.is-visible .privacy__head { opacity: 1; transform: translateY(0); }
.privacy .eyebrow { color: var(--accent-on-dark); }
.privacy__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.032em;
  color: #FFF;
  max-width: 14ch;
}
.privacy__text {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--text-on-dark-muted);
  max-width: 44ch;
}
.privacy__text strong { color: #FFF; font-weight: 500; }
.privacy__pills {
  margin-top: clamp(56px, 7vw, 96px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.privacy-pill {
  border: 1px solid var(--border-on-dark);
  border-radius: 18px;
  padding: 28px 28px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color .25s ease, background .25s ease, transform .35s var(--ease-spring);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease-out-quart), transform .8s var(--ease-out-quart),
              border-color .25s ease, background .25s ease;
}
.privacy.is-visible .privacy-pill { opacity: 1; transform: translateY(0); }
.privacy.is-visible .privacy-pill:nth-child(2) { transition-delay: .1s; }
.privacy.is-visible .privacy-pill:nth-child(3) { transition-delay: .2s; }
.privacy-pill:hover {
  border-color: rgba(110, 188, 101, 0.45);
  background: rgba(110, 188, 101, 0.05);
}
.privacy-pill__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent-on-dark);
  margin-bottom: 14px;
}
.privacy-pill h4 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #FFF;
  margin-bottom: 6px;
}
.privacy-pill p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-on-dark-muted);
}
.privacy__cta {
  margin-top: clamp(48px, 6vw, 80px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent-on-dark);
  padding: 14px 0;
  border-bottom: 1px solid rgba(110, 188, 101, 0.45);
  transition: gap .25s ease, color .2s ease, border-color .2s ease;
}
.privacy__cta:hover {
  gap: 14px;
  color: #FFF;
  border-bottom-color: #FFF;
}

/* ============== Footer ============== */
.footer {
  background: var(--bg-alt);
  padding: 32px 0;
  font-size: 12px;
  color: var(--text-light);
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__links { display: flex; gap: 28px; }
.footer a:hover { color: var(--text); }

/* ============== Legal page ============== */
.legal {
  max-width: 740px;
  margin: 0 auto;
  padding: clamp(60px, 10vw, 120px) var(--pad-x) clamp(80px, 12vw, 160px);
}
.legal__head {
  margin-bottom: clamp(48px, 7vw, 80px);
  padding-bottom: clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--border);
}
.legal__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.028em;
  color: var(--text);
  margin: 14px 0 22px;
}
.legal__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-light);
  text-transform: uppercase;
}
.legal__body { display: grid; gap: 44px; }
.legal__section {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease-out-quart), transform .8s var(--ease-out-quart);
}
.legal__section.is-visible { opacity: 1; transform: translateY(0); }
.legal__section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.014em;
  color: var(--text);
  margin-bottom: 16px;
}
.legal__section h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-top: 20px;
  margin-bottom: 8px;
}
.legal__section p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.legal__section p:last-child { margin-bottom: 0; }
.legal__section em { font-style: italic; color: var(--text); }
.legal__lede {
  font-family: var(--font-display);
  font-size: 24px !important;
  font-weight: 600;
  color: var(--text) !important;
  letter-spacing: -0.018em;
  margin-bottom: 16px !important;
  line-height: 1.2 !important;
}
.legal__mail {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  font-weight: 500;
}
.legal__mail:hover { color: var(--accent-dark); }
.legal__foot {
  margin-top: clamp(48px, 7vw, 80px);
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-light);
}
.legal__foot strong { font-weight: 500; color: var(--text); }

/* ============== Tablet ============== */
@media (max-width: 1000px) {
  .details__grid { grid-template-columns: repeat(2, 1fr); }
  .privacy__head { grid-template-columns: 1fr; align-items: start; gap: 24px; }
  .privacy__pills { grid-template-columns: 1fr; }
}

/* ============== Mobile ============== */
@media (max-width: 760px) {
  .nav__menu { display: none; }

  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero__copy { order: 2; }
  .hero-stage { order: 1; height: clamp(380px, 100vw, 480px); }
  .hero-stage__phone--center { --phone-w: 220px; }
  .hero-stage__phone--back-left { --phone-w: 170px; left: 2%; }
  .hero-stage__phone--back-right { --phone-w: 170px; right: 2%; }

  .duo { grid-template-columns: 1fr; gap: 32px; }
  .duo--reverse .duo__copy { order: 1; }
  .duo--reverse .duo__stage { order: 2; }
  .duo__stage { height: 460px; }

  .solo { grid-template-columns: 1fr; gap: 32px; }
  .solo--reverse .solo__copy { order: 1; }
  .solo--reverse .solo__phone { order: 2; }

  .story__stage { grid-template-columns: 1fr; }
  .story__sticky { position: relative; top: auto; height: auto; max-height: none; margin-bottom: 48px; }
  .story__notes { padding: 0; gap: 48px; }
  .story-note { opacity: 1; }

  .marquee__item { --phone-w: 78px; }
  .marquee__track { gap: 14px; }
}

@media (max-width: 480px) {
  .details__grid { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ============== Reduce motion ============== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01s !important;
    transition-duration: 0.01s !important;
  }
  .hero__appicon, .hero__eyebrow, .hero__title, .hero__sub, .hero__actions,
  .hero-stage__phone,
  .marquee__track,
  .duo__copy, .duo__stage,
  .solo__copy, .solo__phone-wrap,
  .detail-card, .privacy__head, .privacy-pill,
  .legal__section, .story-note {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-stage__phone--back-left  { transform: translate(0) rotate(-9deg) !important; }
  .hero-stage__phone--back-right { transform: translate(0) rotate(9deg) !important; }
  .hero-stage__phone--center {
    transform: rotate(-2deg) translate(-50%, -50%) !important;
  }
  .duo__phone--a { transform: translate(-70%, -50%) rotate(-6deg) !important; }
  .duo__phone--b { transform: translate(-30%, -50%) rotate(6deg) !important; }
  .solo__phone { transform: rotate(-3deg) !important; }
}

/* ============== Selection ============== */
::selection {
  background: var(--accent);
  color: #FFF;
}
