:root {
  color-scheme: light;
  --bg: #fbf9ff;
  --surface: #ffffff;
  --surface-soft: #f5edff;
  --text: #17121c;
  --muted: #72667d;
  --line: rgba(150, 116, 184, 0.2);
  --lila: #d9c2ff;
  --lila-mid: #c8a6ff;
  --lila-strong: #9b6be8;
  --mint: #8bd8bd;
  --rose: #ffc4d2;
  --phone-screen: #ffffff;
  --phone-screen-soft: #f4ecff;
  --phone-text: #17121c;
  --phone-muted: #7a6991;
  --phone-panel: rgba(255, 255, 255, 0.74);
  --shadow: 0 24px 80px rgba(194, 160, 244, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(
      circle at 18% 12%,
      rgba(217, 194, 255, 0.55),
      transparent 28rem
    ),
    radial-gradient(
      circle at 86% 28%,
      rgba(255, 196, 210, 0.26),
      transparent 24rem
    ),
    linear-gradient(180deg, var(--bg), var(--surface-soft));
  color: var(--text);
  font-family:
    Satoshi,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  transition:
    background 360ms ease,
    color 360ms ease;
}

body.story-is-dark {
  --surface: #111113;
  --surface-soft: #1b1720;
  --text: #f8f5ff;
  --muted: #c9c0d2;
  --line: rgba(255, 255, 255, 0.14);
  --lila: #8e5be2;
  --lila-mid: #7c4dba;
  --lila-strong: #693a9e;
  --phone-screen: #100f16;
  --phone-screen-soft: #050507;
  --phone-text: #f8f5ff;
  --phone-muted: #c8bdd4;
  --phone-panel: rgba(255, 255, 255, 0.08);
  background: #030305;
}

body.contact-page {
  --surface: #111113;
  --surface-soft: #1b1720;
  --text: #f8f5ff;
  --muted: #c9c0d2;
  --line: rgba(255, 255, 255, 0.14);
  min-height: 100vh;
  background: #050507;
  color: #f8f5ff;
}

body.is-ready .site-header {
  animation: floatIn 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(980px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  box-shadow: 0 18px 48px rgba(73, 54, 106, 0.14);
  backdrop-filter: blur(22px);
}

.brand,
.nav-links,
.lang-toggle,
.store-badge {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 0.62rem;
}

.brand-mark {
  position: relative;
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  filter: drop-shadow(0 10px 22px rgba(23, 18, 28, 0.14));
}

.brand-logo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-logo-light {
  opacity: 0;
}

.brand-wordmark {
  display: block;
  width: 86px;
  height: 27px;
  color: currentColor;
}

.brand-wordmark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 4.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-links {
  gap: 1.35rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.nav-links a:hover {
  color: var(--text);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.lang-toggle {
  justify-content: center;
  min-width: 42px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}

.story {
  position: relative;
  min-height: 340vh;
  margin-top: -72px;
  --story-progress: 0;
  --story-dark: 0;
  --cards-progress: 0;
  --scene-y: 0px;
  --cards-center-offset: 124px;
}

.story-stage {
  position: sticky;
  top: 0;
  min-height: 100vh;
  overflow: hidden;
}

.story-stage::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      circle at 55% 35%,
      rgba(217, 194, 255, 0.18),
      transparent 24rem
    ),
    linear-gradient(180deg, #060509, #000);
  content: "";
  opacity: var(--story-dark);
  transition: opacity 160ms linear;
}

.hero {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.98fr) minmax(300px, 1.02fr);
  align-items: center;
  gap: clamp(1.35rem, 4vw, 3.25rem);
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 112px 0 72px;
  left: 50%;
  transform: translate(-50%, var(--scene-y));
  z-index: 1;
}

.hero-copy {
  position: relative;
  opacity: var(--hero-copy-opacity, 1);
  transform: translateY(var(--hero-copy-y, 0));
  transition:
    opacity 120ms linear,
    transform 120ms linear;
}

.hero .eyebrow {
  opacity: 0;
  animation: heroRise 700ms 180ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--lila-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 1rem;
  font-size: clamp(3.05rem, 6.55vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
  opacity: 0;
  transform: translateY(24px);
  animation: heroRise 900ms 420ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-text {
  max-width: 590px;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: clamp(1.15rem, 2.3vw, 1.55rem);
  line-height: 1.45;
  opacity: 0;
  transform: translateY(18px);
  animation: heroRise 780ms 680ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.8rem;
  opacity: 0;
  transform: translateY(16px);
  animation: heroRise 760ms 880ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.download-scribble {
  position: absolute;
  left: clamp(326px, 29vw, 356px);
  bottom: 18px;
  width: 430px;
  height: 104px;
  color: #b890ff;
  pointer-events: none;
  opacity: 1;
  transform: none;
}

.download-scribble span {
  position: absolute;
  left: 108px;
  top: 34px;
  color: currentColor;
  font-family: "Bradley Hand", "Marker Felt", "Segoe Print", cursive;
  font-size: clamp(1.1rem, 1.38vw, 1.34rem);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  transform: rotate(9deg) translateY(14px);
  text-shadow: 0 7px 24px rgba(184, 144, 255, 0.28);
  animation: scribbleTextPop 620ms 1480ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.scribble-arrow {
  position: absolute;
  left: 0;
  top: 7px;
  display: block;
  width: 99px;
  height: 97px;
  overflow: visible;
  filter: drop-shadow(0 6px 18px rgba(184, 144, 255, 0.18));
}

.scribble-arrow path {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scribble-arrow-line {
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  animation: drawScribbleArrow 1160ms 80ms cubic-bezier(0.5, 0, 0.2, 1) forwards;
}

.scribble-arrow-head {
  stroke-dasharray: 90;
  stroke-dashoffset: 90;
  stroke-width: 3.4;
  animation: drawScribbleArrow 360ms 1120ms ease-out forwards;
}

.story.hero-awaiting-replay .hero .eyebrow,
.story.hero-awaiting-replay .hero h1,
.story.hero-awaiting-replay .hero-text,
.story.hero-awaiting-replay .hero-actions,
.story.hero-awaiting-replay .download-scribble {
  opacity: 0 !important;
  animation: none !important;
}

.story.hero-awaiting-replay .scribble-arrow,
.story.hero-awaiting-replay .download-scribble span {
  opacity: 0 !important;
  animation: none !important;
}

.story.hero-awaiting-replay .scribble-arrow-line {
  stroke-dashoffset: 180 !important;
  animation: none !important;
}

.story.hero-awaiting-replay .scribble-arrow-head {
  stroke-dashoffset: 90 !important;
  animation: none !important;
}

.store-badge {
  min-height: 58px;
  gap: 0.72rem;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 13px;
  background: var(--text);
  color: var(--bg);
  font-weight: 800;
  line-height: 1.05;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

.store-badge svg {
  flex: 0 0 auto;
  width: 26px;
  height: 30px;
}

.store-badge small {
  display: block;
  margin-bottom: 0.18rem;
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0.72;
}

.play-store {
  background: #17121c;
  color: #fbf9ff;
  border-color: rgba(255, 255, 255, 0.16);
}

.app-store {
  background: #17121c;
  color: #fbf9ff;
  border-color: rgba(255, 255, 255, 0.16);
}

.phone-wrap {
  display: grid;
  place-items: center;
  min-height: 560px;
  transform: translate3d(clamp(10px, 0.2vw, 340px), 100px, 0);
  transform-origin: 50% 45%;
}

.phone {
  position: relative;
  width: min(390px, 82vw);
  aspect-ratio: 1350 / 2760;
  filter: drop-shadow(0 28px 74px rgba(28, 24, 36, 0.28));
  overflow: visible;
}

.phone > * {
  position: relative;
  z-index: 2;
}

.phone-frame,
.phone-status {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.phone-frame {
  z-index: 4;
}

.phone-status {
  z-index: 5;
}

body.story-is-dark .phone-status {
  filter: invert(1);
}

.phone-wrap::before,
.phone-wrap::after {
  display: none;
}

.phone-wrap {
  position: relative;
}

.phone-screen {
  position: absolute;
  z-index: 2;
  inset: 2.5% 5.333%;
  overflow: hidden;
  border: 0;
  border-radius: 38px;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 58%, var(--phone-screen-soft) 100%);
  color: var(--phone-text);
  padding: 90px 20px 18px;
  box-shadow: none;
}

body.story-is-dark .phone-screen {
  background:
    radial-gradient(
      circle at 78% 12%,
      rgba(217, 194, 255, 0.12),
      transparent 9rem
    ),
    linear-gradient(180deg, var(--phone-screen), var(--phone-screen-soft));
}

.app-header,
.quick-grid,
.task {
  display: flex;
  align-items: center;
}

.app-header {
  justify-content: space-between;
  margin-bottom: 22px;
}

.mini-label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--lila-strong);
  font-size: 0.76rem;
  font-weight: 800;
}

.app-header h2 {
  margin: 0;
  font-size: 2.2rem;
  line-height: 1;
}

.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: #d9c2ff;
  color: #17121c;
  font-weight: 800;
}

.focus-card {
  min-height: 154px;
  margin-bottom: 16px;
  padding: 20px;
  border-radius: 30px;
  background: #d9c2ff;
  color: #17121c;
  box-shadow: 0 20px 45px rgba(194, 160, 244, 0.38);
}

.focus-card span {
  display: block;
  margin-bottom: 0.75rem;
  color: rgba(23, 18, 28, 0.62);
  font-size: 0.78rem;
  font-weight: 800;
}

.focus-card strong {
  display: block;
  max-width: 220px;
  font-size: 1.35rem;
  line-height: 1.12;
}

.progress {
  height: 9px;
  margin-top: 26px;
  border-radius: 999px;
  background: rgba(23, 18, 28, 0.12);
}

.progress span {
  width: 68%;
  height: 100%;
  margin: 0;
  border-radius: inherit;
  background: #17121c;
}

.quick-grid {
  gap: 12px;
  margin-bottom: 16px;
}

.quick-grid div {
  flex: 1;
  padding: 16px;
  border-radius: 24px;
  background: var(--phone-panel);
}

.quick-grid b {
  display: block;
  font-size: 1.6rem;
}

.quick-grid span {
  color: var(--phone-muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.task-list {
  display: grid;
  gap: 10px;
}

.task {
  gap: 10px;
  min-height: 52px;
  padding: 13px 14px;
  border-radius: 22px;
  background: var(--phone-panel);
  font-size: 0.88rem;
  font-weight: 750;
}

.task b {
  font-size: inherit;
  font-weight: inherit;
}

.task span {
  width: 20px;
  height: 20px;
  border: 2px solid #c8a6ff;
  border-radius: 999px;
}

.task.checked span {
  background: var(--mint);
  border-color: var(--mint);
}

.features {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.features {
  position: absolute;
  left: max(16px, calc((100vw - 1120px) / 2));
  top: calc(50% + var(--cards-center-offset) + var(--scene-y));
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: min(560px, 42vw);
  padding: 0;
  color: #f8f5ff;
  opacity: var(--cards-progress);
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 120ms linear;
}

.features article {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  transform: scale(calc(0.9 + var(--card-progress, 0) * 0.1));
  opacity: var(--card-progress, 0);
  filter: blur(calc((1 - var(--card-progress, 0)) * 8px));
  transition:
    opacity 120ms linear,
    transform 120ms linear,
    filter 120ms linear;
}

.features h2 {
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
}

.features p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.features p {
  color: rgba(248, 245, 255, 0.72);
}

.feature-icon {
  display: block;
  width: 42px;
  height: 42px;
  margin-bottom: 1.25rem;
  border-radius: 14px;
}

.feature-icon.calm {
  background: linear-gradient(135deg, var(--lila), var(--lila-mid));
}

.feature-icon.rhythm {
  background: linear-gradient(135deg, var(--rose), var(--lila));
}

.feature-icon.insight {
  background: linear-gradient(135deg, var(--mint), #4cceaa);
}

.final-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  width: fit-content;
  max-width: calc(100% - 32px);
  margin: 34px auto 42px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 18px 46px rgba(87, 76, 102, 0.08);
}

body.story-is-dark .final-actions {
  border-color: rgba(255, 255, 255, 0.12);
  background: #111113;
  color: #f8f5ff;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
}

body.story-is-dark .site-header {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(18, 17, 22, 0.78);
  color: #f8f5ff;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
}

body.contact-page .site-header {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(18, 17, 22, 0.92);
  color: #f8f5ff;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
}

body.story-is-dark .nav-links {
  color: #c9c0d2;
}

body.contact-page .nav-links {
  color: #c9c0d2;
}

body.story-is-dark .lang-toggle {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #f8f5ff;
}

body.contact-page .lang-toggle {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #f8f5ff;
}

body.story-is-dark .brand-logo-light,
body.contact-page .brand-logo-light {
  opacity: 1;
}

body.story-is-dark .brand-logo-dark,
body.contact-page .brand-logo-dark {
  opacity: 0;
}

.social-pill {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-soft) 88%, transparent);
  color: var(--text);
  box-shadow: 0 14px 34px rgba(23, 18, 28, 0.1);
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 1100ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1100ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.final-actions.reveal.is-visible {
  transition-delay: 310ms;
}

.reveal:not(.is-visible) {
  transition-delay: 0ms;
}

.features article.reveal:nth-child(2) {
  transition-delay: 100ms;
}

.features article.reveal:nth-child(3) {
  transition-delay: 200ms;
}

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

@keyframes scribbleIn {
  to {
    opacity: 1;
    transform: rotate(-2deg) translateY(0);
  }
}

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

@keyframes scribbleTextPop {
  to {
    opacity: 1;
    transform: rotate(9deg) translateY(4px);
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal,
  h1,
  .hero .eyebrow,
  .hero-text,
  .hero-actions {
    opacity: 1;
    transform: none;
  }
}

.social-pill:hover {
  transform: translateY(-2px);
  background: var(--lila);
  box-shadow: 0 18px 38px rgba(167, 122, 244, 0.24);
}

.social-pill svg {
  width: 22px;
  height: 22px;
}

body.story-is-dark .social-pill {
  border-color: rgba(255, 255, 255, 0.14);
  background: #1b1720;
  color: #f8f5ff;
}

.contact-section {
  position: relative;
  overflow: hidden;
  margin-top: 28px;
  padding: clamp(82px, 10vw, 132px) 16px 56px;
  background:
    radial-gradient(
      circle at 18% 18%,
      rgba(217, 194, 255, 0.16),
      transparent 28rem
    ),
    radial-gradient(
      circle at 82% 12%,
      rgba(139, 216, 189, 0.08),
      transparent 24rem
    ),
    linear-gradient(180deg, #050507, #0d0b11 72%, #050507);
  color: #f8f5ff;
}

.standalone-contact {
  min-height: calc(100vh - 16px);
  margin-top: -72px;
  padding-top: clamp(132px, 14vw, 178px);
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
  width: min(1120px, 100%);
  margin: 0 auto;
}

.contact-copy {
  max-width: 500px;
  padding-top: 10px;
}

.contact-copy h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.9rem, 7vw, 5.45rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.contact-copy h1 {
  max-width: 620px;
  margin-bottom: 1rem;
  font-size: clamp(2.9rem, 7vw, 5.45rem);
  line-height: 0.95;
  letter-spacing: 0;
  opacity: 1;
  transform: none;
  animation: none;
}

.contact-copy p {
  color: rgba(248, 245, 255, 0.74);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.55;
}

.contact-note {
  margin: 1.25rem 0 0;
  color: var(--lila) !important;
  font-weight: 750;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.1rem, 2.5vw, 1.65rem);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
}

.contact-form label {
  display: grid;
  gap: 0.48rem;
  color: rgba(248, 245, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(8, 7, 11, 0.7);
  color: #f8f5ff;
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  outline: none;
  padding: 1rem;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.contact-form textarea {
  min-height: 156px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(248, 245, 255, 0.38);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(217, 194, 255, 0.68);
  background: rgba(12, 10, 16, 0.88);
  box-shadow: 0 0 0 4px rgba(217, 194, 255, 0.13);
}

.contact-submit {
  min-height: 58px;
  border: 0;
  border-radius: 16px;
  background: var(--lila);
  color: #17121c;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.contact-submit:hover {
  transform: translateY(-2px);
  background: #e4d2ff;
  box-shadow: 0 18px 44px rgba(217, 194, 255, 0.24);
}

.contact-section .final-actions {
  margin-top: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 0;
  border-color: rgba(255, 255, 255, 0.12);
  background: #111113;
  color: #f8f5ff;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
}

.contact-section .final-actions.reveal {
  opacity: 1;
  transform: none;
  transition-delay: 0ms;
}

.contact-section .social-pill {
  border-color: rgba(255, 255, 255, 0.14);
  background: #1b1720;
  color: #f8f5ff;
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }

  .story {
    min-height: 340vh;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 100vh;
    padding-top: 96px;
    padding-bottom: 34px;
  }

  .hero-copy {
    order: 1;
  }

  .phone-wrap {
    order: 2;
    min-height: auto;
    transform: translate3d(0, 0, 0);
  }

  .features {
    grid-template-columns: 1fr;
    top: calc(50% + var(--scene-y));
    left: 50%;
    width: min(420px, calc(100% - 32px));
    max-width: 420px;
    transform: translate(-50%, -50%);
  }

  .final-actions {
    flex-wrap: wrap;
    border-radius: 30px;
  }

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

  .contact-copy {
    max-width: 680px;
  }
}

@media (max-width: 520px) {
  .site-header,
  .hero,
  .features,
  .final-actions,
  .contact-shell {
    width: min(100% - 24px, 1120px);
  }

  .site-header {
    top: 10px;
    display: grid;
    grid-template-columns: auto 1fr;
    padding: 10px;
    border-radius: 24px;
  }

  .header-actions {
    justify-content: flex-end;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  h1 {
    font-size: clamp(2.85rem, 13vw, 4rem);
  }

  .hero-actions {
    width: 100%;
  }

  .store-badge {
    justify-content: center;
    width: 100%;
  }

  .final-actions .store-badge {
    width: calc(50% - 0.45rem);
    min-width: 150px;
  }

  .phone {
    width: min(312px, 92vw);
  }

  .phone-screen {
    padding: 18px;
  }

  .contact-section {
    padding-right: 0;
    padding-left: 0;
  }

  .contact-form {
    border-radius: 24px;
  }
}
