/* Owner-annotated phone cleanup. All existing desktop rules remain authoritative. */
.phone-options[hidden] { display: none !important; }
@media (max-width: 650px) {
  .phone-options { color: #d2d2dc; font-size: 12px; line-height: 1.65; border-block: 1px solid #ffffff24; margin: 16px 0; text-align: left; }
  .phone-options > summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; font-family: inherit; font-size: 12px; line-height: 1.5; font-weight: 600; color: #dfdfe8; cursor: pointer; list-style: none; }
  .phone-options > summary::-webkit-details-marker { display: none; }
  .phone-options > summary::after { content: '+'; font-size: 19px; font-weight: 400; }
  .phone-options[open] > summary::after { content: '−'; }
  .phone-options :is(p,small) { color: #bcbcc8; font-family: inherit; font-size: 12px; line-height: 1.65; letter-spacing: 0; text-transform: none; }
  .phone-options > summary:focus-visible { outline: 2px solid #b5dff5; outline-offset: 3px; }
  #landing-page .hero-note { font-size: 11px; line-height: 1.6; max-width: 270px; margin-inline: auto; color: #bfc0c9; }
  .assistant-strip #phone-assistant-details { margin: 12px 20px 0; }
  .assistant-strip #phone-assistant-details .provider-attribution { padding: 0 0 14px; margin: 0; text-align: left; max-width: none; font-family: inherit; font-size: 12px; line-height: 1.65; }
  #landing-page #product .demo-top { margin-bottom: 12px; }
  #landing-page #product .mobile-demo-stack-controls,
  #landing-page #product .mobile-demo-stack-hint { display: none !important; }
  #landing-page #product.has-mobile-demo-stack .demo-mobile-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; margin: 0 0 12px; height: auto; padding: 3px; border: 1px solid #ffffff24; border-radius: 9px; background: #15161a; }
  #landing-page #product.has-mobile-demo-stack .demo-mobile-tabs button { min-height: 44px; border: 0; font-size: 12px; background: transparent; }
  #landing-page #product.has-mobile-demo-stack .demo-mobile-tabs button.active { background: #30323a; color: #fff; }
  #landing-page #product .browser-stage.has-mobile-demo-stack { padding-top: 0; }
  #landing-page #product.has-mobile-demo-stack .mobile-demo-card[data-stack-depth='1'],
  #landing-page #product.has-mobile-demo-stack .mobile-demo-card[data-stack-depth='2'] { visibility: hidden; }
  #landing-page #product #phone-demo-options { margin: 14px 0 0; background: #0d0f13; border-radius: 0; }
  #landing-page #product #phone-demo-options > summary { padding-inline: 12px; }
  #landing-page #product #phone-demo-options .demo-header-tools { margin: 0; padding: 0 12px; }
  #landing-page #product #phone-demo-options .demo-route-picker { margin: 0 0 12px; width: 100%; }
  #landing-page #product #phone-demo-options .v12-demo-foot { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 0 12px 14px; }
  #landing-page #product #phone-demo-options .scenario-bar { width: 100%; }
  #landing-page #product #phone-demo-options .scenario-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; }
  #landing-page #product #phone-demo-options .scenario-tabs button { min-height: 44px; justify-content: center; }
  #landing-page #product #phone-demo-options .demo-script-note { margin: 0; padding: 0; font-size: 12px; text-align: left; }
  #landing-page #product #phone-demo-options .demo-actions { justify-content: flex-start; }
  #landing-page #product #mobile-refocus-guide { margin: 0; padding: 0 12px 12px; border: 0; background: none; backdrop-filter: none; }
  #mobile-refocus-guide .mdg-intro,
  [data-mobile-demo-guide] [data-mobile-demo-motion],
  #mobile-refocus-guide > small,
  #mobile-nudge-guide,
  #mobile-idea-guide { display: none !important; }
  #mobile-refocus-guide > [data-mobile-demo-watch] { margin: 0; min-height: 44px; width: 100%; }
  #mobile-refocus-guide [data-mobile-demo-progress] { margin-top: 10px; }
  #landing-page #conversation { padding-block: 56px; }
  #landing-page .sculpture-caption,
  #landing-page .conversation-caption,
  #landing-page .preview-caption { color: #b7b8c4; font-family: inherit; font-size: 12px; letter-spacing: 0; line-height: 1.65; text-transform: none; }
  #landing-page .preview-caption { padding: 0; margin: 14px 0 0; }
  #horizon { min-height: 0; height: auto; }
  #horizon .horizon-copy { min-height: 0; padding-top: 56px; padding-bottom: 24px; gap: 0; }
  #horizon .horizon-main > p,
  #horizon .horizon-main > small { background: none; border: 0; border-radius: 0; backdrop-filter: none; padding: 0; text-shadow: 0 2px 14px #000; }
  #horizon .horizon-main > p { font-size: 15px; line-height: 1.7; margin-block: 18px; }
  #horizon .horizon-main > small { font-size: 12px; line-height: 1.65; max-width: 280px; color: #d1d1dc; margin-top: 14px; }
  #horizon .horizon-visual::after { background: linear-gradient(180deg,#08090a 0%,#08090a88 15%,#08090a66 60%,#08090a 100%); }
  #horizon #newsletter { margin: 32px 0 0; padding: 22px; width: 100%; }
  #horizon .horizon-bottom { position: relative; inset: auto; font-size: 9px; line-height: 1.6; letter-spacing: .06em; padding: 0 20px 24px; gap: 12px; flex-wrap: wrap; }
  #company .mega-inner { padding-top: 32px; }
  #company .mega-bottom { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 12px; padding-block: 16px; align-items: center; }
  #company .mega-bottom .footer-mark { display: flex; gap: 6px; flex-wrap: wrap; font-size: 16px; }
  #company .mega-bottom .footer-mark > svg { width: 24px; height: 24px; }
  #company .mega-bottom .footer-brand-name { font-size: 16px; }
  #company .mega-bottom .footer-copyright { font-size: 9px; margin: 0; }
  #company .mega-bottom .press-label { font-size: 11px; min-height: 44px; display: flex; align-items: center; justify-content: flex-end; }
  #company .mega-bottom .press-label > svg { display: none; }
  #company .mega-bottom :is(.privacy-standard,[data-top]) { min-height: 44px; font-size: 11px; padding: 0; }
  #company .mega-bottom .privacy-standard { justify-self: start; display: flex; gap: 8px; align-items: center; }
  #company .mega-bottom [data-top] { justify-self: end; text-align: right; }
  #navigation .nav-actions { gap: 4px; }
  #navigation .nav-actions > #motion-toggle.phone-motion { display: flex !important; position: static !important; inset: auto !important; transform: none !important; margin: 0; padding: 0; width: 44px; height: 44px; min-width: 44px; border: 0; border-radius: 8px; background: transparent; justify-content: center; }
  #navigation .nav-actions > #motion-toggle.phone-motion #motion-label { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
  #navigation .nav-actions > #motion-toggle.phone-motion .motion-meter { height: 18px; gap: 3px; }
  #navigation .nav-actions > #motion-toggle.phone-motion .motion-meter i { width: 3px; height: 10px; }
  #navigation .nav-links { padding-block: 8px; }
  #navigation .nav-links > a { min-height: 44px; padding-block: 12px; }
  #page-pricing .price-intro { margin-bottom: 0; }
  #page-pricing .price-intro h1 { font-size: clamp(27px,7.2vw,34px); line-height: 1.12; }
  #page-pricing.pricing-v9 .price-controls { margin: 18px 0 0; justify-content: center; }
  #page-pricing #phone-pricing-details { margin: 16px 0 12px; }
  #page-pricing #phone-pricing-details > :not(summary) { margin: 0 0 12px; text-align: left; max-width: none; }
  #page-pricing .mobile-plan-controls { display: none !important; }
  #page-pricing.pricing-v9 .pricing-three:not(.has-plan-deck) { display: grid; grid-template-columns: minmax(0,1fr); overflow: visible; scroll-snap-type: none; padding: 0; gap: 20px; margin-inline: 0; }
  #page-pricing.pricing-v9 .price-card { width: 100%; min-width: 0; scroll-snap-align: none; }
  #page-help .hp-intro { display: block; text-align: center; padding-block: 4px 0; margin-bottom: 28px; }
  #page-help .hp-eyebrow { justify-content: center; }
  #page-help .hp-intro h1 { font-size: clamp(29px,8vw,38px); line-height: 1.12; margin-top: 18px; }
  #page-help .hp-options { gap: 12px; }
  #page-help .hp-destination { padding: 22px; min-height: 200px; }
  #page-help .hp-destination h2 { margin-block: 22px 10px; }
  #page-help .hp-destination p { font-size: 13px; line-height: 1.65; }
  #page-help #phone-help-details { margin-block: 22px 0; }
  #page-help #phone-help-details p { margin: 0 0 14px; }
}

/* The existing plan cards become a touch deck; desktop keeps its original grid. */
@media (max-width:650px), (max-width:900px) and (max-height:500px) and (pointer:coarse) {
  #page-pricing.pricing-v9 .price-controls { display:flex; flex-direction:column; align-items:center; justify-content:center; width:100%; }
  #page-pricing .price-frequency { margin-inline:auto; align-self:center; }
  #page-pricing .mobile-plan-controls.plan-deck-controls { display:grid !important; grid-template-columns:44px minmax(0,1fr) 44px; align-items:center; gap:12px; margin:18px 0 14px; padding:0; }
  #page-pricing .plan-deck-controls button { width:44px; min-height:44px; border-radius:50%; color:#ececf1; background:#191a20; border:1px solid #ffffff26; font-family:inherit; font-size:18px; }
  #page-pricing .plan-deck-controls button[aria-disabled='true'] { opacity:.35; }
  #page-pricing .plan-deck-controls [role='status'] { text-align:center; font:inherit; font-size:12px; line-height:1.5; color:#c4c4ce; }
  #page-pricing .plan-deck-controls button:focus-visible, #page-pricing .has-plan-deck:focus-visible { outline:2px solid #b5dff5; outline-offset:4px; }
  #page-pricing.pricing-v9 .pricing-three.has-plan-deck { display:block; position:relative; overflow:visible; padding:0 0 20px; width:calc(100% - 12px); max-width:550px; margin:0 auto; scroll-snap-type:none; touch-action:pan-y pinch-zoom; isolation:isolate; }
  #page-pricing .has-plan-deck > .price-card { position:absolute; inset:0 0 auto; width:100%; min-width:0; margin:0; transform-origin:50% 0; transition:transform .26s cubic-bezier(.2,.7,.2,1), opacity .2s ease; box-sizing:border-box; }
  #page-pricing .has-plan-deck > .price-card[data-plan-depth='0'] { z-index:3; transform:translateX(var(--plan-drag,0px)) !important; opacity:1; }
  #page-pricing .has-plan-deck > .price-card[data-plan-depth='1'] { z-index:2; transform:translate(14px,10px) scale(.98) !important; opacity:.9; pointer-events:none; }
  #page-pricing .has-plan-deck > .price-card[data-plan-depth='2'] { z-index:1; transform:translate(28px,20px) scale(.96) !important; opacity:.65; pointer-events:none; }
  #page-pricing .has-plan-deck > .price-card:not([data-plan-depth='0']) > * { visibility:hidden; }
  #page-pricing .has-plan-deck.plan-dragging > .price-card { transition:none; }
  #page-pricing .pricing-mobile-disclosures { margin:28px 0 22px; font-size:12px; line-height:1.65; text-align:left; color:#bcbcc8; }
  #page-pricing .pricing-mobile-disclosures[hidden] { display:none; }
  #page-pricing .pricing-mobile-disclosures > :is(p,small) { margin:0 0 12px; max-width:none; font-size:12px; line-height:1.65; color:inherit; }
}
@media(prefers-reduced-motion:reduce) { #page-pricing .has-plan-deck > .price-card { transition:none !important; } }

@media (max-width:650px), (max-width:900px) and (max-height:500px) and (pointer:coarse) { #page-pricing .has-plan-deck > .price-card:not([data-plan-depth="0"]) { height:var(--plan-card-height); overflow:hidden; } }

/* Closing/footer spacing repair: content sets the height; keep the idle game artwork. */
@media (max-width: 760px), (max-width: 1000px) and (max-height: 500px) {
  #company:not(.game-mode) .mega-inner { padding-top: 32px; }
  #company:not(.game-mode) .mega-columns { padding-block: 0 24px; }
  #company:not(.game-mode) .mega-social { margin-top: 0; padding-top: 24px; }
}
/* Short phone landscapes must not inherit the 940px desktop closing stage. */
@media (max-width: 1000px) and (max-height: 500px) {
  #horizon { height: auto; min-height: 0; margin-top: 0; }
  #horizon .horizon-copy { min-height: 0; padding-top: 40px; padding-bottom: 24px; row-gap: 24px; align-content: start; }
  #horizon .horizon-bottom { position: relative; inset: auto; padding: 0 6% 24px; line-height: 1.6; }
}

/* Membership artwork uses the intrinsic ID-1 proportions, independently of plan size. */
#page-pricing.pricing-v9 .access-pass { height:auto; aspect-ratio:85.6 / 53.98; flex-shrink:0; }
#page-pricing.pricing-v9 .plan-art { height:auto; min-height:190px; }
@media (max-width:650px), (max-width:900px) and (max-height:500px) and (pointer:coarse) {
  #page-pricing.pricing-v9 .plan-art { min-height:165px; }
  #page-pricing .has-plan-deck > .price-card,
  #page-pricing .has-plan-deck .plan-art,
  #page-pricing .has-plan-deck .access-pass { touch-action:pan-y pinch-zoom; }
  #page-pricing .price-intro .v9-lede { display:none; }
  #page-pricing.pricing-v9 .v10-yearly-saving { display:flex; flex:0 0 auto; max-width:none; gap:6px; margin:9px 0 0; font-size:11px; line-height:1.5; text-align:center; }
  #page-pricing .pricing-mobile-disclosures { margin:20px 0 0; }
  #page-pricing.pricing-v9 .pricing-mobile-disclosures .price-fine { text-align:left; margin:0; padding:0; }
  #page-pricing.pricing-v9 .price-lower { margin-top:32px; padding-top:0; }
}

/* Direct finger tracking and a centered, cyclic mobile deck. */
@media (max-width:650px), (max-width:900px) and (max-height:500px) and (pointer:coarse) {
  #page-pricing.pricing-v9 { overflow-x:clip; }
  #page-pricing .price-intro { padding:0 0 2px; }
  #page-pricing .price-intro .v9-heading { margin:0 0 10px; }
  #page-pricing.pricing-v9 .price-controls { margin:0; gap:0; }
  #page-pricing .mobile-plan-controls.plan-deck-controls { margin:12px 0 12px; }
  #page-pricing.pricing-v9 .pricing-three.has-plan-deck { width:100%; max-width:550px; }
  #page-pricing .has-plan-deck > .price-card { transition:none; }
  #page-pricing .has-plan-deck > .price-card[data-plan-depth='0'] { opacity:var(--plan-opacity,1); }
  #page-pricing .has-plan-deck > .price-card[data-plan-depth='1'] { transform:translateY(8px) scale(.985) !important; }
  #page-pricing .has-plan-deck > .price-card[data-plan-depth='2'] { transform:translateY(16px) scale(.97) !important; }
  #page-pricing .has-plan-deck > .price-card[data-plan-preview='true'] { z-index:2; transform:translateY(calc(8px * (1 - var(--plan-progress,0)))) scale(calc(.985 + .015 * var(--plan-progress,0))) !important; opacity:1; }
  #page-pricing .has-plan-deck:is(.plan-dragging,.plan-settling) > .price-card:not([data-plan-depth='0']):not([data-plan-preview]) { z-index:1; }
  #page-pricing .has-plan-deck > .price-card[data-plan-preview='true'] > * { visibility:visible; }
  #page-pricing .has-plan-deck.plan-settling > .price-card { transition:transform .22s cubic-bezier(.2,.7,.2,1),opacity .22s ease; }
  #page-pricing .has-plan-deck .price-card h2 { margin:0 0 8px; text-align:center; }
  #page-pricing .has-plan-deck .price-number { justify-content:center; text-align:center; }
  #page-pricing .has-plan-deck .price-summary { order:3; margin:12px 0 16px; text-align:center; max-width:none; }
  #page-pricing .has-plan-deck .price-card > .v9-btn { order:4; margin:0; justify-content:center; }
  #page-pricing.pricing-v9 .has-plan-deck .plan-art { margin:22px 0 18px; }
}
