/* Apple-style product storytelling: big type, scroll rhythm, icon orbs. */
.site-main--showcase {
  max-width: 980px;
  padding-left: clamp(1rem, 4vw, 2rem);
  padding-right: clamp(1rem, 4vw, 2rem);
}

/* ─── Hero (cinema) ─── */
.hero--cinema {
  min-height: min(88vh, 720px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-4) 0 var(--space-6);
  position: relative;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.hero-eyebrow {
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.hero-subline {
  margin: 0.5rem auto 0;
  max-width: 22em;
  font-size: clamp(1.35rem, 3.8vw, 2rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-muted);
}

.hero--cinema .lead {
  max-width: 36rem;
  margin-top: 1.5rem;
  font-size: 1.05rem;
}

.scroll-hint {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.85;
}

.scroll-hint__chev {
  width: 22px;
  height: 22px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
  margin-top: 0.15rem;
  animation: chev-bob 3s ease-in-out infinite;
}

@keyframes chev-bob {
  0%,
  100% {
    transform: rotate(45deg) translateY(0);
    opacity: 0.6;
  }
  50% {
    transform: rotate(45deg) translateY(8px);
    opacity: 1;
  }
}

.sudo-hero-size {
  font-size: clamp(3.2rem, 14vw, 5.5rem);
  letter-spacing: -0.045em;
}

/* ─── Chapter titles (like “Get the highlights”) ─── */
.scroll-chapter {
  padding: clamp(var(--space-5), 10vw, var(--space-7)) 0;
  scroll-margin-top: 5rem;
}

.chapter-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.62);
  margin: 0 0 0.6rem;
}

.chapter-headline {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  max-width: 16ch;
}

/* ─── Story rows (icon + copy, no photos) ─── */
.story-stack {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 8vw, 5rem);
  margin-top: 2.5rem;
}

.story-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 720px) {
  .story-row {
    grid-template-columns: minmax(200px, 1fr) minmax(0, 1.2fr);
    gap: 3rem;
    /* Top-align so large orbs + glow sit in their row instead of centering into neighbors. */
    align-items: start;
  }

  .story-row__visual {
    align-self: start;
    padding-top: 0.35rem;
  }

  .story-row--flip .story-row__visual {
    order: 2;
  }

  .story-row--flip .story-row__copy {
    order: 1;
  }
}

@media (min-width: 960px) {
  .story-stack {
    gap: clamp(4rem, 9vw, 6.75rem);
  }

  .story-row {
    gap: clamp(2.75rem, 4.5vw, 4rem);
  }
}

/* Sudo AI: left column mirrors the two copy cards; stretches with row height on desktop. */
.sudo-ai__visual-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.05rem, 2.8vw, 1.85rem);
  width: 100%;
  max-width: min(19.5rem, 100%);
  margin-inline: auto;
}

.sudo-ai__hero {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.sudo-ai__pillars {
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1.6vw, 0.8rem);
  width: 100%;
}

.sudo-ai__pillar {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.6rem 0.8rem;
  padding: 0.5rem 0.72rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--card-border);
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.05);
}

.sudo-ai__pillar .icon-orb--sm {
  margin: 0;
  width: 52px;
  height: 52px;
  min-width: 52px;
}

.sudo-ai__pillar-label {
  font-size: clamp(0.76rem, 2vw, 0.88rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.28;
  color: var(--text);
}

@media (min-width: 720px) {
  .story-row--sudo-ai.story-row {
    align-items: stretch;
  }

  .story-row--sudo-ai .story-row__visual {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    max-width: none;
    padding-top: 0.35rem;
  }

  .story-row--sudo-ai .sudo-ai__visual-stack {
    flex: 1 1 auto;
    min-height: 0;
    max-width: min(17.25rem, 92%);
    margin-inline: 0;
    align-items: stretch;
    justify-content: space-between;
    gap: clamp(1.2rem, 2.6vw, 2.1rem);
  }

  .story-row--sudo-ai .sudo-ai__hero {
    justify-content: center;
  }

  .story-row--sudo-ai .sudo-ai__pillars {
    flex: 1 1 auto;
    justify-content: space-between;
    min-height: 0;
    gap: clamp(0.4rem, 1.1vw, 0.7rem);
  }
}

@media (min-width: 960px) {
  .story-row--sudo-ai .sudo-ai__visual-stack {
    max-width: min(18.5rem, 100%);
  }

  .sudo-ai__pillar {
    padding: 0.58rem 0.88rem;
  }

  .sudo-ai__pillar .icon-orb--sm {
    width: 56px;
    height: 56px;
    min-width: 56px;
  }
}

@media (prefers-color-scheme: dark) {
  .sudo-ai__pillar {
    background: rgba(30, 41, 59, 0.82);
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
  }
}

.story-row__copy h3 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.story-row__copy p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ─── Floating icon orb ─── */
.icon-orb {
  --orb-ring: rgba(15, 23, 42, 0.12);
  --orb-shadow: rgba(15, 23, 42, 0.07);
  --orb-glow: rgba(15, 23, 42, 0.05);
  width: min(200px, 70vw);
  height: min(200px, 70vw);
  max-width: 220px;
  max-height: 220px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(145deg, var(--sn-surface) 0%, var(--sn-surface-raised) 100%);
  border: 1px solid var(--orb-ring);
  box-shadow:
    0 16px 34px var(--orb-shadow),
    0 0 0 1px color-mix(in srgb, var(--sn-surface) 92%, white) inset,
    inset 0 -10px 22px rgba(var(--sn-shadow-rgb), 0.06);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: hidden;
  transform: translateZ(0);
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 260ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 260ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.icon-orb::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0.06;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  background-size: 120px 120px;
  mix-blend-mode: soft-light;
}

.icon-orb svg {
  width: 42%;
  height: 42%;
  transform-origin: 50% 50%;
  will-change: transform;
  z-index: 1;
}

.icon-orb--blue {
  --orb-ring: rgba(59, 130, 246, 0.16);
  --orb-shadow: rgba(37, 99, 235, 0.085);
  --orb-glow: rgba(59, 130, 246, 0.085);
}

.icon-orb--indigo {
  --orb-ring: rgba(99, 102, 241, 0.16);
  --orb-shadow: rgba(67, 56, 202, 0.085);
  --orb-glow: rgba(99, 102, 241, 0.085);
}

.icon-orb--green {
  --orb-ring: rgba(34, 197, 94, 0.16);
  --orb-shadow: rgba(22, 163, 74, 0.085);
  --orb-glow: rgba(34, 197, 94, 0.08);
}

.icon-orb--neutral {
  --orb-ring: rgba(15, 23, 42, 0.14);
  --orb-shadow: rgba(15, 23, 42, 0.09);
  --orb-glow: rgba(15, 23, 42, 0.05);
}


.icon-orb--violet svg {
  color: inherit;
}

.icon-orb--cyan svg {
  color: inherit;
}

.icon-orb--delay-1 {
  animation-delay: -1.2s;
}

.icon-orb--delay-2 {
  animation-delay: -2.4s;
}

.icon-orb--delay-3 {
  animation-delay: -3.1s;
}

.icon-orb::after {
  content: "";
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    var(--orb-glow) 0%,
    transparent 65%
  );
  z-index: -1;
  opacity: 0.26;
}

/* Optional premium hover: tiny lift + glow increase (no rotation) */
@media (hover: hover) and (pointer: fine) {
  .story-row__visual:hover .icon-orb {
    transform: translateY(-2px) scale(1.03);
    filter: brightness(1.03);
    box-shadow:
      0 18px 38px rgba(15, 23, 42, 0.1),
      0 0 0 1px rgba(255, 255, 255, 0.86) inset;
  }

  .story-row__visual:hover .icon-orb::after {
    opacity: 0.88;
  }
}

/* Icon motion disabled: premium static icons */

/* Smaller orbs in feature cards */
.icon-orb--sm {
  width: 72px;
  height: 72px;
  min-width: 72px;
  margin: 0 0 1rem;
}

.icon-orb--sm svg {
  width: 50%;
  height: 50%;
}

/* ─── Feature grid with top icon ─── */
.feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feature-card .tag {
  margin-top: 0.25rem;
}

/* ─── Download store tiles ─── */
.store-section {
  padding: clamp(var(--space-5), 8vw, var(--space-7)) 0;
  scroll-margin-top: 5rem;
}

.store-section h2 {
  text-align: center;
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.store-section .store-lead {
  text-align: center;
  margin: 0 auto 2.5rem;
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.store-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: min(720px, 100%);
  margin: 0 auto;
}

@media (min-width: 560px) {
  .store-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.store-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.75rem 1.35rem 1.55rem;
  border-radius: 22px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform var(--motion-card-hover-duration) var(--motion-reveal-ease),
    box-shadow var(--motion-card-hover-duration) var(--motion-reveal-ease),
    border-color var(--motion-card-hover-duration) var(--motion-reveal-ease),
    background var(--motion-card-hover-duration) var(--motion-reveal-ease);
  border: 1px solid transparent;
  background: var(--sn-surface);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.store-tile:hover {
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
}

/* Official App Store / Google Play badge art — sized in CSS for crisp display */
.store-tile__badge-frame {
  display: block;
  margin: 0 auto;
}

.store-tile__badge {
  display: block;
  width: auto;
  height: auto;
  margin: 0 auto 0.65rem;
  flex-shrink: 0;
}

.store-tile__badge-frame .store-tile__badge {
  margin-bottom: 0;
}

.store-tile--ios .store-tile__badge {
  max-width: min(200px, 100%);
}

.store-tile--android .store-tile__badge {
  max-width: min(300px, 100%);
}

/* Google Play: brand-tinted panel (green / blue / yellow accents on a deep base) */
.store-tile--android {
  background:
    radial-gradient(120% 85% at 12% 12%, rgba(16, 185, 129, 0.38) 0%, transparent 52%),
    radial-gradient(100% 70% at 88% 78%, rgba(66, 133, 244, 0.32) 0%, transparent 48%),
    radial-gradient(70% 50% at 72% 8%, rgba(251, 188, 5, 0.2) 0%, transparent 42%),
    radial-gradient(55% 45% at 28% 95%, rgba(234, 67, 53, 0.14) 0%, transparent 50%),
    linear-gradient(162deg, #071018 0%, #0f1f2e 40%, #060a10 100%);
  border-color: rgba(52, 168, 83, 0.42);
  box-shadow:
    0 20px 48px rgba(15, 78, 110, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.store-tile--android .store-tile__hint {
  color: rgba(248, 250, 252, 0.58);
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

/* App Store: neutral graphite + subtle Apple blue accent (badge art is Apple gray/black) */
.store-tile--ios {
  background:
    radial-gradient(110% 90% at 8% 0%, rgba(10, 132, 255, 0.22) 0%, transparent 55%),
    radial-gradient(90% 75% at 100% 110%, rgba(88, 86, 214, 0.14) 0%, transparent 48%),
    linear-gradient(168deg, #050506 0%, #17171a 45%, #020203 100%);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.store-tile--ios .store-tile__hint {
  color: rgba(250, 250, 250, 0.52);
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

.store-tile__sheen {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  transition: left 0.7s ease;
  pointer-events: none;
}

.store-tile:hover .store-tile__sheen {
  left: 120%;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .store-tile--android {
    background: linear-gradient(
      162deg,
      #07141f 0%,
      #0c2435 42%,
      #051018 100%
    );
  }

  .store-tile--ios {
    background: linear-gradient(
      168deg,
      #0a0a0c 0%,
      #1c1c1f 45%,
      #050506 100%
    );
  }
}

/* Parallax helper */
[data-parallax] {
  will-change: transform;
}


@media (max-width: 767px) {
  .site-main--showcase {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .hero--cinema {
    min-height: min(78vh, 620px);
    min-height: min(78svh, 620px);
    padding: 1.25rem 0 max(4.5rem, env(safe-area-inset-bottom));
  }

  .hero--cinema .lead {
    font-size: 1rem;
    line-height: 1.65;
    padding: 0 0.2rem;
  }

  .scroll-hint {
    bottom: max(0.85rem, env(safe-area-inset-bottom));
  }

  .scroll-chapter {
    scroll-margin-top: clamp(3.5rem, 10vw, 5rem);
    padding-top: 2.25rem;
    padding-bottom: 2.5rem;
  }

  .chapter-headline {
    max-width: none;
  }

  .story-stack {
    gap: clamp(2.25rem, 7vw, 3.5rem);
  }

  .story-row__copy p {
    font-size: 1rem;
    line-height: 1.62;
  }

  .story-row__visual {
    display: flex;
    justify-content: center;
  }

  .sudo-ai__visual-stack {
    gap: clamp(0.95rem, 3vw, 1.35rem);
  }

  .sudo-ai__pillars {
    gap: clamp(0.45rem, 2vw, 0.65rem);
  }

  .sudo-ai__pillar {
    padding: 0.45rem 0.6rem;
  }

  /* vmin keeps icon mass consistent in 9:16 and landscape (same “weight” as desktop, scaled to pane) */
  .icon-orb {
    width: min(200px, 42vmin, 88vw);
    height: min(200px, 42vmin, 88vw);
    max-width: min(220px, 48vmin);
    max-height: min(220px, 48vmin);
  }

  .icon-orb::after {
    inset: -12%;
  }

  .icon-orb--sm {
    width: clamp(48px, 11vmin, 58px);
    height: clamp(48px, 11vmin, 58px);
    min-width: clamp(48px, 11vmin, 58px);
    border-radius: 50%;
  }

  .icon-orb--sm svg {
    width: 46%;
    height: 46%;
  }

  .store-section {
    scroll-margin-top: clamp(3.5rem, 10vw, 5rem);
  }

  .store-section .store-lead {
    font-size: 0.98rem;
    padding: 0 0.25rem;
  }

  .store-tile {
    padding: 1.85rem 1.35rem 1.65rem;
    -webkit-tap-highlight-color: transparent;
  }

  [data-parallax] {
    will-change: auto;
  }
}

@media (hover: none) and (pointer: coarse) {
  .store-tile:hover {
    transform: none;
    box-shadow: inherit;
  }

  .store-tile:active {
    transform: translateY(-2px);
    transition-duration: var(--motion-btn-hover-duration);
  }
}

@media (prefers-color-scheme: dark) {
  .icon-orb {
    background: linear-gradient(
      145deg,
      rgba(30, 41, 59, 0.95) 0%,
      rgba(15, 23, 42, 0.6) 100%
    );
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow:
      0 24px 48px rgba(0, 0, 0, 0.35),
      0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  }
}



@media (max-width: 679px) {
  .icon-orb {
    width: min(200px, 44vmin, 92vw);
    height: min(200px, 44vmin, 92vw);
    max-width: min(220px, 50vmin);
    max-height: min(220px, 50vmin);
  }
}
