/**
 * Varianta C — club (fintech polish, hero CTA → form below)
 * Inspirace: dark funded-startup landings (Paymark/Revio rytmus), brand OFFIRA.
 */

body[data-variant="d"] {
  --shell-max: 1120px;
}

/* —— Announce bar (web coming soon) —— */
.announce-bar {
  position: relative;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  padding: 8px 20px;
  background: #1a1812;
  border-bottom: 1px solid rgba(255, 215, 0, 0.22);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
  color: var(--sand);
}

.announce-bar strong {
  color: var(--gold);
  font-weight: 600;
}

/* —— Atmosphere —— */
.atmosphere--c {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}

.atmosphere--c .atmosphere-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.atmosphere--c .atmosphere-grid {
  position: absolute;
  inset: -10%;
  background-image: url("assets/dot-grid-tile-256.png");
  background-size: 256px 256px;
  opacity: 0.12;
}

.atmosphere--c .atmosphere-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform, opacity;
}

.atmosphere--c .atmosphere-glow--a {
  width: min(70vw, 560px);
  height: min(70vw, 560px);
  top: -16%;
  left: -12%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
  opacity: 0.35;
}

.atmosphere--c .atmosphere-glow--b {
  width: min(55vw, 440px);
  height: min(55vw, 440px);
  right: -10%;
  top: 12%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.12) 0%, transparent 72%);
  opacity: 0.3;
}

.atmosphere--c .atmosphere-noise {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.atmosphere--c .atmosphere-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 90% 70% at 40% 0%,
    transparent 20%,
    rgba(14, 14, 14, 0.72) 100%
  );
}

/* D: výraznější animované pozadí */
.atmosphere--d {
  background:
    radial-gradient(
      ellipse 80% 55% at 15% -10%,
      rgba(255, 215, 0, 0.1),
      transparent 55%
    ),
    radial-gradient(
      ellipse 70% 50% at 95% 15%,
      rgba(233, 196, 0, 0.07),
      transparent 50%
    ),
    var(--bg);
}

.atmosphere--d .atmosphere-particles {
  opacity: 0.72;
}

.atmosphere--d .atmosphere-grid {
  opacity: 0.16;
  animation: gridDrift 48s linear infinite;
}

.atmosphere--d .atmosphere-aurora {
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(
      ellipse 42% 36% at 22% 18%,
      rgba(255, 215, 0, 0.28),
      transparent 62%
    ),
    radial-gradient(
      ellipse 38% 32% at 78% 28%,
      rgba(255, 196, 60, 0.18),
      transparent 58%
    ),
    radial-gradient(
      ellipse 50% 40% at 48% 88%,
      rgba(255, 215, 0, 0.12),
      transparent 60%
    );
  filter: blur(28px);
  opacity: 0.85;
  will-change: transform, opacity;
  animation: auroraDrift 16s ease-in-out infinite alternate;
}

.atmosphere--d .atmosphere-glow--a {
  width: min(78vw, 640px);
  height: min(78vw, 640px);
  top: -18%;
  left: -14%;
  background: radial-gradient(
    circle,
    rgba(255, 215, 0, 0.42) 0%,
    transparent 68%
  );
  opacity: 0.55;
  filter: blur(70px);
  animation: glowPulseD 9s ease-in-out infinite,
    glowDriftA 20s ease-in-out infinite alternate;
}

.atmosphere--d .atmosphere-glow--b {
  width: min(62vw, 520px);
  height: min(62vw, 520px);
  right: -12%;
  top: 8%;
  background: radial-gradient(
    circle,
    rgba(255, 200, 70, 0.28) 0%,
    transparent 70%
  );
  opacity: 0.48;
  filter: blur(80px);
  animation: glowPulseD 12s ease-in-out infinite reverse,
    glowDriftB 24s ease-in-out infinite alternate;
}

.atmosphere--d .atmosphere-glow--c {
  width: min(70vw, 580px);
  height: min(50vw, 420px);
  left: 28%;
  bottom: -18%;
  background: radial-gradient(
    circle,
    rgba(255, 215, 0, 0.2) 0%,
    transparent 72%
  );
  opacity: 0.4;
  filter: blur(90px);
  animation: glowPulseD 14s ease-in-out infinite,
    glowDriftC 26s ease-in-out infinite alternate;
}

.atmosphere--d .atmosphere-vignette {
  background: radial-gradient(
    ellipse 95% 75% at 45% 0%,
    transparent 28%,
    rgba(14, 14, 14, 0.55) 100%
  );
}

@keyframes auroraDrift {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
    opacity: 0.7;
  }
  100% {
    transform: translate3d(3%, 2.5%, 0) scale(1.08);
    opacity: 1;
  }
}

@keyframes glowPulseD {
  0%,
  100% {
    opacity: 0.38;
  }
  50% {
    opacity: 0.72;
  }
}

@keyframes glowDriftA {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(6%, 8%, 0);
  }
}

@keyframes glowDriftB {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-7%, 5%, 0);
  }
}

@keyframes glowDriftC {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(4%, -6%, 0);
  }
}

@keyframes gridDrift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-64px, -64px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere--d .atmosphere-aurora,
  .atmosphere--d .atmosphere-glow--a,
  .atmosphere--d .atmosphere-glow--b,
  .atmosphere--d .atmosphere-glow--c,
  .atmosphere--d .atmosphere-grid {
    animation: none !important;
  }
}

body[data-variant="d"] .signal-rail {
  display: none !important;
}

body[data-variant="d"] .btn-primary::after {
  display: none !important;
}

body[data-variant="d"] .scroll-progress {
  display: block;
  z-index: 95;
}

/* —— Hero visual (fintech) —— */
.hero--visual {
  display: grid;
  gap: 36px;
  padding: 28px 0 48px;
  align-items: center;
  min-height: min(78vh, 760px);
}

@media (min-width: 960px) {
  .hero--visual {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 40px;
    padding: 56px 0 72px;
  }
}

.hero--visual h1 {
  font-size: clamp(32px, 7vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: none;
  margin: 0 0 16px;
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

@media (min-width: 960px) {
  .hero--visual h1 {
    font-size: clamp(44px, 5vw, 60px);
  }

  .hero--visual .eyebrow {
    position: relative;
    padding-left: 14px;
  }

  .hero--visual .eyebrow::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    height: 1px;
    background: var(--gold);
    transform: translateY(-50%);
  }
}

.hero--visual .lead {
  font-size: clamp(15px, 2.2vw, 18px);
  max-width: 36rem;
  line-height: 1.55;
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn-cta-glow {
  box-shadow: 0 12px 36px rgba(255, 215, 0, 0.22),
    0 0 0 1px rgba(255, 215, 0, 0.08);
  min-width: 180px;
}

.btn-cta-glow:hover {
  box-shadow: 0 14px 40px rgba(255, 215, 0, 0.3);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hero-trust li {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(153, 144, 119, 0.24);
  background: rgba(32, 31, 31, 0.45);
  color: var(--sand);
  font-size: 12px;
  font-weight: 500;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
}

.hero-orb {
  position: absolute;
  width: min(90%, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 215, 0, 0.16) 0%,
    transparent 68%
  );
  filter: blur(20px);
  pointer-events: none;
}

.phone-stage--hero {
  width: min(100%, 260px);
  position: relative;
  z-index: 1;
  transform: rotate(4deg);
}

@media (min-width: 960px) {
  .phone-stage--hero {
    width: min(100%, 290px);
  }
}

/* —— Principle marquee —— */
.principle-rail {
  margin: 0 -20px 8px;
  padding: 16px 0;
  border-top: 1px solid rgba(153, 144, 119, 0.14);
  border-bottom: 1px solid rgba(153, 144, 119, 0.14);
  overflow: hidden;
  -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%
  );
}

.hero--form .principle-rail--hero {
  grid-column: 1 / -1;
  margin: 28px -20px 0;
  padding: 14px 0;
  border-bottom: none;
  align-self: end;
}

@media (min-width: 960px) {
  .hero--form .principle-rail--hero {
    margin-top: 36px;
  }
}

.principle-rail-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: principleScroll 42s linear infinite;
}

.principle-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.55;
  flex-shrink: 0;
}

@keyframes principleScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* —— Sections —— */
.section--spacious {
  padding-top: 72px;
  padding-bottom: 72px;
}

@media (min-width: 800px) {
  .section--spacious {
    padding-top: 100px;
    padding-bottom: 100px;
  }
}

body[data-variant="d"] .section-title {
  max-width: 16ch;
}

body[data-variant="d"] .section-title--wide {
  max-width: 22ch;
}

body[data-variant="d"] .section-title--verify {
  max-width: none;
  white-space: nowrap;
}

body[data-variant="d"] .section-title--founders {
  max-width: none;
  white-space: nowrap;
}

body[data-variant="d"] .section-title--pricing {
  max-width: none;
  white-space: nowrap;
}

@media (max-width: 640px) {
  body[data-variant="d"] .section-title--verify {
    white-space: normal;
  }

  body[data-variant="d"] .section-title--founders {
    white-space: normal;
  }
}

[data-scroll-line] {
  background: linear-gradient(
    90deg,
    var(--ivory) 0%,
    var(--ivory) var(--scroll-line, 40%),
    rgba(229, 226, 225, 0.28) var(--scroll-line, 40%)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Problem cards */
.problem-cards {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

@media (min-width: 800px) {
  .problem-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

.problem-card {
  position: relative;
  overflow: hidden;
  padding: 22px 20px 24px;
  border-radius: var(--radius-card);
  background:
    radial-gradient(
      120% 90% at 0% 0%,
      rgba(255, 215, 0, 0.1),
      transparent 55%
    ),
    linear-gradient(180deg, rgba(40, 38, 32, 0.92), rgba(24, 23, 22, 0.88));
  border: 1px solid rgba(153, 144, 119, 0.2);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 246, 223, 0.06);
  transition:
    border-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.problem-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 215, 0, 0.55),
    transparent
  );
  opacity: 0.7;
}

@media (hover: hover) and (pointer: fine) {
  .problem-card:hover {
    border-color: rgba(255, 215, 0, 0.35);
    transform: translateY(-4px);
    box-shadow:
      0 22px 48px rgba(0, 0, 0, 0.35),
      0 0 0 1px rgba(255, 215, 0, 0.06),
      inset 0 1px 0 rgba(255, 246, 223, 0.08);
  }

  .problem-card:hover .problem-card-icon {
    border-color: rgba(255, 215, 0, 0.45);
    color: var(--gold);
    background: rgba(255, 215, 0, 0.08);
  }
}

.problem-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.problem-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 215, 0, 0.28);
  background: rgba(255, 215, 0, 0.05);
  color: var(--gold);
  flex-shrink: 0;
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    color 0.3s ease;
}

.problem-card-num {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);
  opacity: 0.9;
}

.problem-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--sand);
}

/* Verify */
.verify-path-toggle {
  display: inline-flex;
  gap: 6px;
  margin: 8px 0 28px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(153, 144, 119, 0.22);
  background: rgba(32, 31, 31, 0.72);
}

.verify-path-btn {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--sand);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.verify-path-btn[aria-selected="true"] {
  background: rgba(255, 215, 0, 0.14);
  color: var(--gold);
}

.verify-path-btn:focus-visible {
  outline: 2px solid rgba(255, 215, 0, 0.45);
  outline-offset: 2px;
}

.verify-steps {
  display: grid;
  gap: 20px;
  margin-top: 0;
}

.verify-steps[hidden] {
  display: none;
}

@media (min-width: 800px) {
  .verify-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }
}

.verify-step {
  padding: 8px 0 0;
  border-top: 1px solid rgba(255, 215, 0, 0.28);
}

.verify-num {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.verify-step h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--ivory);
}

.verify-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--sand);
}

/* Product + phone */
.inside-grid--c {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .inside-grid--c {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.75fr);
    gap: 56px;
  }
}

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

.inside-bullets li {
  padding-left: 18px;
  position: relative;
  font-size: 15px;
  line-height: 1.5;
  color: var(--sand);
}

.inside-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.7;
}

.phone-stage {
  margin: 0;
  justify-self: center;
  width: min(100%, 280px);
  filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.5));
  will-change: transform;
}

.phone-bezel {
  position: relative;
  padding: 10px;
  border-radius: 36px;
  background: linear-gradient(
    160deg,
    rgba(255, 246, 223, 0.2),
    rgba(20, 18, 14, 0.95) 40%,
    #0a0a0a
  );
  border: 1px solid rgba(153, 144, 119, 0.35);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5);
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 3;
  width: 88px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #0a0a0a;
  pointer-events: none;
}

.phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 390 / 844;
  background: #0a0a0a;
  isolation: isolate;
}

.phone-shot,
.phone-screen > picture,
.phone-screen > picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone-screen > picture {
  position: absolute;
  inset: 0;
}

.phone-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 0;
  background: transparent;
  opacity: 0;
  transition: opacity 0.45s ease;
  z-index: 1;
}

.phone-video.is-playing {
  opacity: 1;
}

@keyframes phoneFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(0deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .phone-stage.is-floating:not(.phone-stage--hero):not(.app-scroll-phone) {
    animation: phoneFloat 7s ease-in-out infinite;
  }

  .phone-stage--hero.is-floating {
    animation: phoneFloatHero 8s ease-in-out infinite;
  }
}

@keyframes phoneFloatHero {
  0%,
  100% {
    transform: translateY(0) rotate(4deg);
  }
  50% {
    transform: translateY(-12px) rotate(4deg);
  }
}

/* Access form section */
.section--access {
  position: relative;
}

.access-layout {
  display: grid;
  gap: 32px;
  align-items: start;
}

@media (min-width: 900px) {
  .access-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 48px;
    align-items: center;
  }
}

.access-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.access-points li {
  padding-left: 18px;
  position: relative;
  font-size: 14px;
  line-height: 1.45;
  color: var(--sand);
}

.access-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.signup-card--c {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 88px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 246, 223, 0.06);
  border-color: rgba(255, 215, 0, 0.18);
}

.signup-card--c .signup-card-glow {
  position: absolute;
  inset: -45% -25% auto;
  height: 55%;
  background: radial-gradient(
    ellipse at top,
    rgba(255, 215, 0, 0.12),
    transparent 70%
  );
  pointer-events: none;
}

.signup-card--c > *:not(.signup-card-glow) {
  position: relative;
  z-index: 1;
}

.form-lead {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.closing--c {
  position: relative;
  overflow: hidden;
  margin-top: 28px;
  padding: 36px 28px;
  border-radius: var(--radius-card);
  background: linear-gradient(
    145deg,
    rgba(32, 28, 18, 0.95),
    rgba(20, 18, 12, 0.98)
  );
  border: 1px solid rgba(255, 215, 0, 0.2);
  text-align: left;
}

.closing--c .section-lead {
  margin-bottom: 20px;
}

body[data-variant="d"] .pillar:hover,
body[data-variant="d"] .founder:hover {
  transform: none;
  box-shadow: none;
}

/* Hero never invisible */
body[data-variant="d"].motion-ready [data-reveal="hero"] [data-reveal-child],
body[data-variant="d"].motion-ready [data-reveal="hero-aside"],
body[data-variant="d"].motion-ready [data-reveal="hero-aside"] [data-reveal-child] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

body[data-variant="d"].motion-ready
  [data-reveal]:not([data-reveal="hero"]):not([data-reveal="hero-aside"])
  [data-reveal-child] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

body[data-variant="d"].motion-ready
  [data-reveal]:not([data-reveal="hero"]):not([data-reveal="hero-aside"])
  [data-reveal-child].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 720px) {
  body[data-variant="d"] .top-nav-cta {
    display: inline-flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere--c .atmosphere-particles,
  .phone-stage.is-floating,
  .principle-rail-track {
    animation: none !important;
  }

  .atmosphere--c .atmosphere-particles {
    display: none;
  }

  .principle-rail-track {
    transform: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    gap: 12px 20px;
    white-space: normal;
  }

  [data-scroll-line] {
    background: none;
    color: var(--ivory);
    -webkit-background-clip: unset;
    background-clip: unset;
  }
}

/* —— D: form in hero (bez telefonu) —— */
.hero--form {
  min-height: auto;
  transform-origin: center top;
  will-change: opacity, transform, filter;
}

@media (prefers-reduced-motion: no-preference) {
  /* Desktop: jemný exit při odchodu ze sekce. Mobil: formulář musí zůstat čitelný. */
  @media (min-width: 960px) {
    .hero--form {
      opacity: calc(1 - var(--hero-exit, 0) * 0.95);
      transform: translateY(calc(var(--hero-exit, 0) * -56px))
        scale(calc(1 - var(--hero-exit, 0) * 0.08));
      filter: blur(calc(var(--hero-exit, 0) * 5px))
        saturate(calc(1 - var(--hero-exit, 0) * 0.35));
    }

    .hero--form.is-fading-out {
      pointer-events: none;
    }

    .hero--form.is-faded-out {
      visibility: hidden;
    }
  }

  @media (max-width: 959px) {
    .hero--form {
      opacity: 1;
      transform: none;
      filter: none;
      visibility: visible;
      pointer-events: auto;
      will-change: auto;
    }
  }
}

.hero--form .hero-aside {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-aside-stack {
  position: relative;
  display: block;
  width: 100%;
}

@media (min-width: 960px) {
  .hero--form {
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 440px);
    align-items: start;
    padding-top: 40px;
    padding-bottom: 56px;
  }

  .hero--form h1 {
    max-width: none;
  }
}

@media (min-width: 1180px) {
  .hero--form {
    grid-template-columns: minmax(0, 1.2fr) minmax(400px, 480px);
  }
}

.signup-card--hero {
  position: relative;
  z-index: 2;
  margin: 0;
  width: 100%;
}

.access-cta-card {
  position: relative;
  padding: 28px 24px;
  border-radius: 24px;
  background: rgba(32, 31, 31, 0.72);
  border: 1px solid rgba(153, 144, 119, 0.28);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.access-cta-card h2 {
  margin: 0 0 12px;
  font-size: 28px;
  letter-spacing: -0.03em;
}

/* —— Sticky phone scroll story —— */
.app-scroll {
  position: relative;
  height: 280vh;
  margin: 0;
  --app-enter: 0;
}

.app-scroll::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(90vw, 720px);
  height: 40vh;
  transform: translate(-50%, -35%);
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 215, 0, calc(0.14 * var(--app-enter, 0))) 0%,
    transparent 70%
  );
  opacity: var(--app-enter, 0);
  z-index: 0;
}

.app-scroll-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: 72px 0 24px;
  overflow: visible;
  z-index: 1;
}

.app-scroll-layout {
  display: grid;
  gap: 20px;
  align-items: center;
  width: min(100%, 1120px);
  margin: 0 auto;
  padding-inline: 20px;
  box-sizing: border-box;
}

.app-scroll-copy {
  min-width: 0;
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

@media (prefers-reduced-motion: no-preference) {
  .app-scroll-copy {
    opacity: calc(0.12 + var(--app-enter, 0) * 0.88);
    transform: translateY(calc((1 - var(--app-enter, 0)) * 36px));
    will-change: opacity, transform;
  }

  .app-scroll-step {
    opacity: calc(0.2 + var(--app-enter, 0) * 0.8);
    transform: translateX(calc((1 - var(--app-enter, 0)) * -16px));
    transition: border-color 0.35s ease, background 0.35s ease, color 0.35s ease,
      opacity 0.35s ease, transform 0.35s ease;
  }

  .app-scroll-step:nth-child(1) {
    transition-delay: 0ms;
  }
  .app-scroll-step:nth-child(2) {
    transform: translateX(calc((1 - var(--app-enter, 0)) * -22px));
  }
  .app-scroll-step:nth-child(3) {
    transform: translateX(calc((1 - var(--app-enter, 0)) * -28px));
  }

  .app-scroll-phone {
    opacity: calc(0.2 + var(--app-enter, 0) * 0.8);
    transform: translate3d(0, calc((1 - var(--app-enter, 0)) * 22%), 0)
      scale(calc(0.82 + var(--app-enter, 0) * 0.18));
    will-change: transform, opacity;
  }

  .app-scroll-phone.is-floating .phone-bezel {
    animation: phoneFloat 7s ease-in-out infinite;
  }

  .app-scroll.is-entered .app-scroll-phone,
  .app-scroll.is-entered .app-scroll-copy,
  .app-scroll.is-entered .app-scroll-step {
    will-change: auto;
  }
}

/* Mobile: stack — phone keeps real aspect ratio (side-by-side was squashing it) */
@media (max-width: 899px) {
  .app-scroll-pin {
    padding: 68px 0 20px;
    align-items: flex-start;
    height: auto;
    min-height: 100vh;
  }

  .app-scroll-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "phone"
      "steps";
    gap: 16px;
    align-items: start;
    padding-inline: 20px;
  }

  .app-scroll-copy {
    grid-area: copy;
    min-width: 0;
  }

  .app-scroll-phone {
    grid-area: phone;
    width: min(58vw, 220px);
    max-width: 220px;
    margin: 0 auto;
    justify-self: center;
  }

  .app-scroll-steps-wrap {
    grid-area: steps;
  }

  .app-scroll-phone .phone-bezel {
    border-radius: 28px;
    padding: 8px;
  }

  .app-scroll-phone .phone-screen,
  .app-scroll-phone .app-scroll-screen {
    aspect-ratio: 390 / 844;
    width: 100%;
    height: auto;
    border-radius: 22px;
  }

  .app-scroll-phone .phone-notch {
    width: 72px;
    height: 14px;
    top: 14px;
  }

  .app-scroll-copy .section-title {
    font-size: clamp(26px, 6.5vw, 36px);
    max-width: none;
    margin-bottom: 8px;
  }

  .app-scroll-lead {
    display: none;
  }

  .app-scroll-step {
    padding: 10px 12px;
    gap: 10px;
  }

  .app-scroll-step-rail {
    left: 12px;
  }

  .app-scroll-step p {
    font-size: 12px;
  }
}

/* Narrow phones: slightly smaller mock so title + steps still fit */
@media (max-width: 399px) {
  .app-scroll-phone {
    width: min(54vw, 190px);
    max-width: 190px;
  }
}

@media (min-width: 900px) {
  .app-scroll-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    grid-template-areas:
      "copy phone"
      "steps phone";
    gap: 20px 40px;
    padding-inline: 28px;
    align-items: center;
  }

  .app-scroll-copy {
    grid-area: copy;
    align-self: end;
  }

  .app-scroll-steps-wrap {
    grid-area: steps;
    align-self: start;
  }

  .app-scroll-phone {
    grid-area: phone;
    width: min(100%, 290px);
    justify-self: end;
    align-self: center;
  }

  .app-scroll-copy .section-title {
    margin-bottom: 8px;
  }

  .app-scroll-lead {
    margin-bottom: 0;
  }
}

.app-scroll-copy .section-title {
  margin-bottom: 12px;
  max-width: none;
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

.app-scroll-lead {
  margin-bottom: 24px;
  max-width: none;
  white-space: nowrap;
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

.app-scroll-phone {
  width: min(100%, 260px);
  margin: 0;
  justify-self: center;
  filter: drop-shadow(
    0 28px 50px rgba(0, 0, 0, calc(0.35 + var(--app-enter, 0) * 0.25))
  );
  transform-origin: center center;
}

@media (min-width: 900px) {
  .app-scroll-phone {
    width: min(100%, 290px);
    justify-self: end;
  }
}

.app-scroll-steps-wrap {
  position: relative;
}

.app-scroll-step-rail {
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 1.7em;
  pointer-events: none;
  z-index: 0;
}

.app-scroll-step-rail::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 1.15rem;
  bottom: 1.15rem;
  width: 2px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(153, 144, 119, 0.28);
}

.app-scroll-step-rail-fill {
  position: absolute;
  left: 50%;
  top: 1.15rem;
  bottom: 1.15rem;
  width: 2px;
  margin-left: -1px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(255, 215, 0, 0.35),
    var(--gold)
  );
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.28);
  transform: scaleY(0);
  transform-origin: top center;
  will-change: transform;
}

.app-scroll-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.app-scroll-step {
  display: grid;
  grid-template-columns: 1.7em 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(153, 144, 119, 0.18);
  background: rgba(32, 31, 31, 0.35);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.35s ease, background 0.35s ease, color 0.35s ease;
}

.app-scroll-step:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.app-scroll-step strong {
  display: block;
  color: var(--sand);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  transition: color 0.35s ease;
}

.app-scroll-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: inherit;
  text-wrap: pretty;
}

.app-scroll-step-num {
  position: relative;
  z-index: 2;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: center;
  line-height: 1.2;
  padding: 2px 0;
  border-radius: 4px;
  background: rgba(22, 21, 21, 0.96);
  transition: color 0.35s ease, background 0.35s ease;
}

.app-scroll-step.is-active {
  border-color: rgba(255, 215, 0, 0.45);
  background: rgba(255, 215, 0, 0.06);
  color: var(--sand);
}

.app-scroll-step.is-active strong {
  color: var(--gold);
}

.app-scroll-step.is-active .app-scroll-step-num {
  color: var(--gold);
  background: rgba(28, 26, 18, 0.96);
}

.app-scroll-screen {
  position: relative;
  aspect-ratio: 390 / 844;
}

.app-scroll-shot {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.app-scroll-shot.is-active {
  opacity: 1;
  z-index: 1;
}

.app-scroll-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

@media (prefers-reduced-motion: reduce) {
  .app-scroll {
    height: auto;
    --app-enter: 1;
  }

  .hero--form {
    opacity: 1;
    transform: none;
    filter: none;
    visibility: visible;
    pointer-events: auto;
  }

  .app-scroll-pin {
    position: relative;
    top: auto;
    height: auto;
    padding: 48px 0 32px;
    overflow: visible;
  }

  .app-scroll-shot {
    transition: none;
  }

  .app-scroll-phone.is-floating .phone-bezel {
    animation: none;
  }

  .app-scroll-phone,
  .app-scroll-copy,
  .app-scroll-step {
    opacity: 1;
    transform: none;
  }
}

/* —— Pricing section —— */
.pricing-lead {
  max-width: none;
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--sand);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .pricing-lead {
    white-space: normal;
  }
}

.pricing-lead strong {
  color: var(--gold);
  font-weight: 600;
}

.pricing-controls {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  margin-bottom: 28px;
}

.pricing-role-toggle {
  margin: 0;
  max-width: 420px;
}

.pricing-period-toggle {
  margin: 0;
  align-self: flex-start;
}

.pricing-period-hint {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.16);
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  vertical-align: middle;
}

.pricing-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
  }

  .pricing-controls {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }

  .pricing-role-toggle {
    flex: 0 1 380px;
  }
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 20px 20px;
  border-radius: 24px;
  background: rgba(32, 31, 31, 0.72);
  border: 1px solid rgba(153, 144, 119, 0.22);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.pricing-card--highlight {
  border-color: rgba(255, 215, 0, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 215, 0, 0.08) 0%, transparent 42%),
    rgba(32, 31, 31, 0.82);
}

.pricing-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 215, 0, 0.35);
  background: rgba(255, 215, 0, 0.12);
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pricing-tier {
  margin: 0;
  color: var(--ivory);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pricing-amount {
  margin: 0;
  color: var(--gold);
  font-size: clamp(28px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.pricing-unit {
  color: var(--sand);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.pricing-equiv {
  margin: -4px 0 0;
  color: var(--sand);
  font-size: 13px;
  opacity: 0.85;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
}

.pricing-feature {
  display: grid;
  grid-template-columns: 1em 1fr;
  gap: 10px;
  align-items: start;
  margin: 0;
  color: var(--sand);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
}

.pricing-feature-mark {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.pricing-trial {
  margin: auto 0 0;
  padding-top: 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing-footnote {
  margin: 22px 0 0;
  max-width: 40rem;
  color: var(--sand);
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.8;
}

.subpage--wide {
  width: min(100%, var(--shell-max, 1120px));
}
