/* Seamless violet public homepage; preserve existing scroll controller and links. */
#app:has(.apple-home-page), #app .apple-home-page {
  --rh-bg:#0b0b14;
  --rh-accent:#9185ff;
  background:#0b0b14!important;
}
#app .apple-home-page .apple-home,
#app .apple-home-page .apple-home > .df-landing,
#app .apple-home-page .apple-home > .rs-spiral-section[data-rs-mode="fullscreen"],
#app .apple-home-page .apple-home > .pricing-section,
#app .apple-home-page .footer {
  background:#0b0b14!important;
  border-block:0!important;
  box-shadow:none!important;
}
#app .apple-home-page .apple-home .df-atmosphere {
  -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 73%,transparent 100%);
  mask-image:linear-gradient(to bottom,#000 0%,#000 73%,transparent 100%);
}
#app .apple-home-page .apple-home .rs-spiral-section[data-rs-mode="fullscreen"] .rs-spiral-stage {
  background:radial-gradient(ellipse 52% 43% at 50% 43%,rgba(107,75,218,.20),transparent 100%),#0b0b14!important;
  border:0!important;
  box-shadow:none!important;
}
#app .apple-home-page .apple-home .rs-spiral-section[data-rs-mode="fullscreen"]::before,
#app .apple-home-page .apple-home .rs-spiral-section[data-rs-mode="fullscreen"]::after {
  display:none!important;
}
body.public-nav-active #app .apple-home-page .nav {
  background:rgba(11,11,20,.96)!important;
  border-bottom:0!important;
}
#app .apple-home-page .apple-home .pricing-section {
  background:radial-gradient(ellipse 62% 48% at 50% 48%,rgba(107,75,218,.13),transparent 100%),#0b0b14!important;
}
#app .apple-home-page .apple-home .pricing-section .price-card {
  background:linear-gradient(145deg,#19172b,#10101b)!important;
  border-color:#6555a65c!important;
}
#app .apple-home-page .apple-home .rs-studio-orbit-ring {
  border-color:rgba(165,145,255,.36)!important;
  box-shadow:0 0 25px rgba(125,94,255,.09);
}
#app .apple-home-page .apple-home .rs-studio-orbit-icon {
  border-color:rgba(190,177,255,.48)!important;
}
#app .apple-home-page .apple-home .rs-studio-orbit-icon.is-active {
  box-shadow:0 0 22px rgba(153,128,255,.55)!important;
}
#app .apple-home-page .apple-home .rs-spiral-heading .rs-first-order-link,
#app .apple-home-page .apple-home .rs-spiral-heading .rs-book-demo {
  background:#9185ff!important;color:#11101c!important;
  -webkit-text-fill-color:#11101c!important;
  border-color:#9185ff!important;
}
/* Desktop and tablet: the same centered orbit + text-below composition as mobile.
   Only position the existing elements; no replacement graphic or JS change. */
@media(min-width:760px) and (prefers-reduced-motion:no-preference) {
  #app .apple-home-page .apple-home .rs-spiral-section[data-rs-mode="fullscreen"].rs-enhanced {
    --rh-orbit-size:min(46vw,38svh,390px);
    --rh-orbit-y:37%;
  }
  #app .apple-home-page .apple-home .rs-spiral-section[data-rs-mode="fullscreen"].rs-enhanced :is(.rs-studio-orbit-art,.rs-orbit-beacon) {
    left:50%!important;top:var(--rh-orbit-y)!important;
    width:var(--rh-orbit-size)!important;
    max-width:calc(100vw - 48px)!important;
  }
  #app .apple-home-page .apple-home .rs-spiral-section[data-rs-mode="fullscreen"].rs-enhanced .rs-axis {
    left:50%!important;top:var(--rh-orbit-y)!important;
    width:min(19vw,19svh,190px)!important;
  }
  #app .apple-home-page .apple-home .rs-spiral-section[data-rs-mode="fullscreen"].rs-enhanced .rs-spiral-heading {
    left:50%!important;top:62%!important;transform:translateX(-50%)!important;
    width:min(90%,760px)!important;max-width:760px!important;
    padding:0 18px!important;text-align:center!important;
    margin:0!important;box-sizing:border-box;
  }
  #app .apple-home-page .apple-home .rs-spiral-heading .rs-hero-eyebrow {
    justify-content:center!important;margin-inline:auto!important;
  }
  #app .apple-home-page .apple-home .rs-spiral-heading #apple-home-title {
    margin:8px auto!important;max-width:740px!important;
    font-size:clamp(28px,4vw,48px)!important;
    line-height:1.1!important;text-align:center!important;
  }
  #app .apple-home-page .apple-home .rs-spiral-heading .rs-hero-description {
    max-width:630px!important;margin:0 auto!important;text-align:center!important;
  }
  #app .apple-home-page .apple-home .rs-spiral-heading :is(.rs-first-order-link,.rs-book-demo) {
    margin:12px 4px 0!important;vertical-align:middle;
  }
  #app .apple-home-page .apple-home .rs-spiral-section[data-rs-mode="fullscreen"].rs-enhanced .rs-orbit-current {
    display:none!important;
  }
  #app .apple-home-page .apple-home .rs-spiral-section[data-rs-mode="fullscreen"].rs-enhanced .rs-spiral-card,
  #app .apple-home-page .apple-home .rs-spiral-section[data-rs-mode="fullscreen"].rs-enhanced .rs-spiral-card:first-child,
  #app .apple-home-page .apple-home .rs-spiral-section[data-rs-mode="fullscreen"].rs-enhanced.rs-first-revealed .rs-spiral-card:first-child {
    justify-content:flex-start!important;align-items:center!important;text-align:center!important;
    padding:62svh max(24px,12vw) 44px!important;
    box-sizing:border-box;
  }
  #app .apple-home-page .apple-home .rs-spiral-section[data-rs-mode="fullscreen"] .rs-spiral-card-kicker {
    justify-content:center!important;
  }
  #app .apple-home-page .apple-home .rs-spiral-section[data-rs-mode="fullscreen"] .rs-spiral-card :is(h2,p) {
    margin-inline:auto!important;text-align:center!important;max-width:690px!important;
  }
  #app .apple-home-page .apple-home .rs-spiral-section[data-rs-mode="fullscreen"] .rs-spiral-metric {
    font-size:clamp(36px,6svh,62px)!important;
  }
  #app .apple-home-page .apple-home .rs-spiral-section[data-rs-mode="fullscreen"] .rs-spiral-card h2 {
    font-size:clamp(25px,4svh,42px)!important;
  }
  #app .apple-home-page .apple-home .rs-spiral-section[data-rs-mode="fullscreen"] .rs-spiral-card p {
    font-size:clamp(12px,1.9svh,16px)!important;
  }
}
@media(min-width:760px) and (max-height:720px) and (prefers-reduced-motion:no-preference) {
  #app .apple-home-page .apple-home .rs-spiral-section[data-rs-mode="fullscreen"].rs-enhanced {
    --rh-orbit-size:min(34svh,320px);
    --rh-orbit-y:36%;
  }
  #app .apple-home-page .apple-home .rs-spiral-section[data-rs-mode="fullscreen"].rs-enhanced .rs-spiral-heading {
    top:58%!important;
  }
  #app .apple-home-page .apple-home .rs-spiral-section[data-rs-mode="fullscreen"].rs-enhanced .rs-spiral-card,
  #app .apple-home-page .apple-home .rs-spiral-section[data-rs-mode="fullscreen"].rs-enhanced.rs-first-revealed .rs-spiral-card:first-child {
    padding-top:58svh!important;
  }
}

/* Single subscription: override the legacy three-column grid on public pricing. */
#app .apple-home-page .pricing-section .pricing-wrap:has(> .price-card:only-child),
#app .public-pricing-page .pricing-section .pricing-wrap:has(> .price-card:only-child),
#app .pricing-page .pricing-section .pricing-wrap:has(> .price-card:only-child) {
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  width:100%!important;
  max-width:560px!important;
  margin-inline:auto!important;
  justify-content:center!important;
  justify-items:center!important;
}
#app .apple-home-page .pricing-section .pricing-wrap > .price-card:only-child,
#app .public-pricing-page .pricing-section .pricing-wrap > .price-card:only-child,
#app .pricing-page .pricing-section .pricing-wrap > .price-card:only-child {
  grid-column:1 / -1!important;
  width:100%!important;
  max-width:560px!important;
  min-width:0!important;
  margin-inline:auto!important;
  justify-self:center!important;
}

/* Wide, compact single-plan card on desktop. Keep original mobile order. */
@media(min-width:900px) {
  #app :is(.apple-home-page,.public-pricing-page,.pricing-page) .pricing-section .pricing-wrap:has(> .price-card:only-child) {
    max-width:1080px!important;
  }
  #app :is(.apple-home-page,.public-pricing-page,.pricing-page) .pricing-section .pricing-wrap > .price-card:only-child {
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    grid-template-rows:repeat(8,auto)!important;
    column-gap:clamp(28px,5vw,70px)!important;
    row-gap:8px!important;
    align-content:start!important;
    align-items:start!important;
    max-width:1080px!important;
    padding:clamp(28px,3vw,44px)!important;
    text-align:left!important;
  }
  #app :is(.apple-home-page,.public-pricing-page,.pricing-page) .pricing-section .pricing-wrap > .price-card:only-child > * {
    min-width:0!important;
    margin:0!important;
  }
  #app :is(.apple-home-page,.public-pricing-page,.pricing-page) .pricing-section .pricing-wrap > .price-card:only-child > :nth-child(1) {grid-area:1/1}
  #app :is(.apple-home-page,.public-pricing-page,.pricing-page) .pricing-section .pricing-wrap > .price-card:only-child > :nth-child(2) {grid-area:2/1}
  #app :is(.apple-home-page,.public-pricing-page,.pricing-page) .pricing-section .pricing-wrap > .price-card:only-child > :nth-child(3) {grid-area:3/1}
  #app :is(.apple-home-page,.public-pricing-page,.pricing-page) .pricing-section .pricing-wrap > .price-card:only-child > :nth-child(4) {grid-area:4/1}
  #app :is(.apple-home-page,.public-pricing-page,.pricing-page) .pricing-section .pricing-wrap > .price-card:only-child > :nth-child(5) {display:none!important}
  #app :is(.apple-home-page,.public-pricing-page,.pricing-page) .pricing-section .pricing-wrap > .price-card:only-child > ul {
    grid-area:1/2/6/3;
    align-self:center!important;
    display:grid!important;
    gap:12px!important;
    padding:0!important;
    line-height:1.55!important;
  }
  #app :is(.apple-home-page,.public-pricing-page,.pricing-page) .pricing-section .pricing-wrap > .price-card:only-child > :nth-child(7) {
    grid-area:5/1;
    width:100%!important;
    height:1px!important;
    margin:12px 0!important;
  }
  #app :is(.apple-home-page,.public-pricing-page,.pricing-page) .pricing-section .pricing-wrap > .price-card:only-child > :nth-child(8) {grid-area:6/1}
  #app :is(.apple-home-page,.public-pricing-page,.pricing-page) .pricing-section .pricing-wrap > .price-card:only-child > :nth-child(9) {grid-area:7/1}
  #app :is(.apple-home-page,.public-pricing-page,.pricing-page) .pricing-section .pricing-wrap > .price-card:only-child > :nth-child(10) {grid-area:8/1}
  #app :is(.apple-home-page,.public-pricing-page,.pricing-page) .pricing-section .pricing-wrap > .price-card:only-child > .price-actions {
    grid-area:6/2/9/3;
    align-self:end!important;
    width:100%!important;
    gap:10px!important;
  }
}

/* Keep both intro actions inside the pinned desktop viewport, even on laptops. */
@media(min-width:760px) and (prefers-reduced-motion:no-preference) {
  #app .apple-home-page .apple-home .rs-spiral-section[data-rs-mode="fullscreen"].rs-enhanced .rs-spiral-heading {
    top:auto!important;
    bottom:clamp(38px,6svh,64px)!important;
  }
  #app .apple-home-page .apple-home .rs-spiral-heading .rs-hero-description {
    width:min(100%,630px)!important;
    max-width:630px!important;
    line-height:1.45!important;
  }
  #app .apple-home-page .apple-home .rs-spiral-heading .rs-hero-eyebrow {
    margin-bottom:8px!important;
  }
  #app .apple-home-page .apple-home .rs-spiral-heading :is(.rs-first-order-link,.rs-book-demo) {
    margin-top:10px!important;
    min-height:44px!important;
  }
}
@media(min-width:760px) and (max-height:720px) and (prefers-reduced-motion:no-preference) {
  #app .apple-home-page .apple-home .rs-spiral-section[data-rs-mode="fullscreen"].rs-enhanced:not(.rs-first-revealed) {
    --rh-orbit-size:min(34svh,300px);
    --rh-orbit-y:35%;
  }
  #app .apple-home-page .apple-home .rs-spiral-heading #apple-home-title {
    font-size:clamp(26px,5svh,38px)!important;
  }
  #app .apple-home-page .apple-home .rs-spiral-heading .rs-hero-description {
    font-size:clamp(12px,2.1svh,15px)!important;
  }
}
