/* Shared improvements; existing business pages and API contracts remain in place. */
html { scroll-padding-top: 150px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #2563eb; outline-offset: 4px; }
.site-header .main-nav { min-width: 0; }
.site-header .main-nav a { white-space: nowrap; }
.hero .hero-inner { gap: 40px; }
.hero .hero-note { margin-top: 22px; color: #626b7b; font-size: 13px; }
.hero .hero-eyebrow { background: #e9efff; color: #355aca; }
.hero h1 { font-size: clamp(32px, 3.8vw, 48px); line-height: 1.3; letter-spacing: -.025em; }
.hero p.lead { line-height: 1.9; }
.hero-support { margin: 22px 0 24px; padding: 16px 18px; border-left: 3px solid #2563eb; border-radius: 0 12px 12px 0; background: #edf3ff; }
.hero-support strong { display: block; color: #193d86; font-size: 18px; }
.hero-support p { margin: 6px 0 8px; color: #475467; font-size: 14px; line-height: 1.7; }
.hero-support a { color: #245ac0; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.preview-caption { text-align: center; color: #6b7280; font-size: 12px; margin: 0 0 18px; }
.phone-preview { min-width: 0; }
.phone-preview .phones { transform: scale(.94); transform-origin: center; }
.eyebrow { display: inline-block; color: #355aca; font-size: 12px; font-weight: 700; letter-spacing: .09em; margin-bottom: 12px; }
.device-section { background: #eef2fa; border-top: 1px solid #e5eaf5; border-bottom: 1px solid #e5eaf5; }
.device-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.device-card, .download-card { padding: 26px; border: 1px solid #e0e5ef; border-radius: 16px; background: white; }
.device-card { display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.device-card:hover { border-color: #385fdb; box-shadow: 0 6px 24px #294bb015; }
.device-badge { display: inline-block; align-self: flex-start; background: #eef3ff; color: #3457b5; padding: 5px 9px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.device-card h3 { margin: 20px 0 10px; font-size: 21px; }
.device-card p { font-size: 14px; line-height: 1.8; color: #616b7a; margin: 0 0 24px; }
.device-arrow { margin-top: auto; color: #355aca; font-size: 13px; font-weight: 600; }
.journey-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.journey-card { border-top: 1px solid #ccd6eb; padding-top: 24px; }
.journey-card b { color: #365fd5; font-size: 26px; font-weight: 500; }
.journey-card h3 { font-size: 18px; margin: 16px 0 10px; }
.journey-card p, .help-band p { color: #626b7b; font-size: 14px; line-height: 1.8; }
.help-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 30px; padding-bottom: 30px; border-top: 1px solid #e0e5ef; }
.help-band h2 { font-size: 24px; margin: 0; }
.onboarding-main { padding-top: 48px; padding-bottom: 60px; }
.page-intro { max-width: 780px; margin-bottom: 32px; }
.page-intro h1 { font-size: clamp(27px, 3vw, 36px); line-height: 1.4; margin: 0 0 14px; }
.page-intro p { color: #626b7b; line-height: 1.9; margin: 0; }
.download-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.download-card { display: flex; flex-direction: column; align-items: flex-start; scroll-margin-top: 24px; }
.download-card h2 { font-size: 25px; margin: 18px 0 12px; }
.download-card p { color: #626b7b; font-size: 14px; line-height: 1.9; margin: 0 0 22px; }
.download-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; margin-bottom: 18px; }
.text-link { color: #3159c6; text-decoration: underline; text-underline-offset: 4px; font-size: 14px; }
.setup-note { background: #edf2fb; border: 1px solid #dce4f4; border-radius: 12px; padding: 20px 24px; color: #425271; margin: 24px 0; font-size: 14px; line-height: 1.9; }
.setup-note h2 { font-size: 17px; margin: 0 0 10px; color: #233b67; }
.setup-note p { margin: 8px 0; }
.inline-links { display: flex; gap: 20px; flex-wrap: wrap; }
.device-picker { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.device-picker button { cursor: pointer; border: 1px solid #d5ddec; padding: 12px 24px; border-radius: 9px; background: white; color: #425271; font: inherit; font-weight: 600; }
.device-picker button[aria-pressed="true"], .device-picker button[aria-selected="true"] { background: #335edc; color: white; border-color: #335edc; }
.simple-steps { padding-left: 24px; line-height: 2; }
.simple-steps li { margin: 12px 0; }
#android-guide h2 { margin-top: 18px; }
.checkout-summary { text-align: center; font-size: 16px; font-weight: 600; margin: 26px 0 18px; }
.plan-card[role="button"] { cursor: pointer; }
.modal .link-box { width: 100%; resize: vertical; color: #334155; }
.modal .modal-actions { flex-wrap: wrap; }
.modal summary { cursor: pointer; padding: 12px 0; color: #3159c6; font-weight: 600; font-size: 14px; }
.modal .setup-note { margin: 16px 0; padding: 14px; font-size: 12px; }
.modal .form-label { display: block; margin: 12px 0 8px; font-size: 13px; }
@media (max-width: 1050px) {
 .device-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .hero .hero-inner { grid-template-columns: 1fr 1fr; gap: 16px; }
 .phone-preview .phone-back { display: none; }
 .site-header .header-inner { gap: 16px; }
}
@media (max-width: 1050px) {
 .site-header .header-inner { height: auto; min-height: 64px; flex-wrap: wrap; gap: 12px; padding-top: 12px; padding-bottom: 10px; }
 .site-header .logo span { display: inline; font-size: 16px; }
 .site-header .header-right { margin-left: auto; }
 .site-header .main-nav { order: 3; flex: 0 0 100%; justify-content: flex-start; gap: 22px; overflow-x: auto; padding-bottom: 3px; }
 .site-header .main-nav a { font-size: 13px; padding: 8px 0; }
}
@media (max-width: 700px) {
 .hero { padding: 32px 0 !important; }
 .hero .hero-inner { grid-template-columns: 1fr; gap: 30px; }
 .hero h1 { font-size: 36px; }
 .hero p.lead { max-width: none; }
 .hero .hero-ctas .btn { flex: 1 1 auto; font-size: 14px; }
 .phone-preview { display: none; }
 .section { padding: 36px 0; }
 .device-grid { gap: 12px; }
 .device-card { padding: 18px; }
 .device-card h3 { font-size: 19px; }
 .device-card p { font-size: 13px; }
 .journey-grid, .download-cards { grid-template-columns: 1fr; gap: 18px; }
 .help-band { align-items: flex-start; flex-direction: column; }
 .onboarding-main { padding-top: 30px; padding-bottom: 36px; }
 .download-card { padding: 24px; }
 .device-picker { display: grid; grid-template-columns: 1fr 1fr; }
 .device-picker button { padding: 11px 8px; }
 .setup-note { padding: 18px; }
 .modal { padding: 22px; max-height: 88dvh; }
 .page-head { flex-wrap: wrap; }
 .pay-button-bar { padding-left: 16px; padding-right: 16px; }
 .membership-content { padding-bottom: 110px; }
}
@media (max-width: 380px) { .device-grid { grid-template-columns: 1fr; } .hero h1 { font-size: 32px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
/* iPhone setup: shared-account cards and App Store installation, matching the supplied reference. */
.download-cards { grid-template-columns: repeat(3, minmax(0,1fr)); }
.ios-download { grid-column: 1 / -1; order: -1; display: block; padding: 36px; }
.ios-download h2 { margin: 20px 0 26px; font-size: 32px; color: #111; }
.ios-step-title { margin: 0 0 24px; font-size: 26px; color: #111; }
.apple-accounts summary { display: flex; align-items: center; gap: 18px; padding: 20px 24px; border: 1px solid #d9d9d9; border-radius: 12px; background: #fafafa; color: #252525; font-size: 17px; cursor: pointer; list-style: none; }
.apple-accounts summary::-webkit-details-marker { display: none; }
.apple-accounts summary::before { content: ''; flex: 0 0 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.apple-accounts[open] summary::before { transform: rotate(45deg); margin-top: -5px; }
.apple-account-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; margin-top: 16px; }
.apple-account { border: 1px solid #68cd87; border-radius: 5px; padding: 24px 26px 16px; min-width: 0; }
.apple-account h3 { display: flex; align-items: flex-start; gap: 14px; margin: 0 0 32px; color: #379f58; font-size: clamp(16px,1.7vw,23px); font-weight: 600; line-height: 1.5; min-height: 3em; }
.apple-account h3 span:last-child { overflow-wrap: anywhere; min-width: 0; }
.account-symbol { flex: 0 0 22px; }
.ios-download .account-state { margin: 0 0 8px; color: #172640; font-size: 18px; font-weight: 600; }
.ios-download .account-state-note { color: #566373; font-size: 14px; margin: 0 0 24px; }
.account-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.account-actions button { padding: 12px 18px; border: 1px solid #7b8792; border-radius: 5px; background: #fff; color: #55616d; font: inherit; font-weight: 600; cursor: pointer; }
.account-actions button:hover { background: #f1faf4; border-color: #379f58; color: #24743c; }
.account-actions button:disabled { opacity: .6; cursor: wait; }
.ios-download .account-copy-feedback { min-height: 22px; margin: 12px 0 0; font-size: 13px; color: #24743c; }
.account-manual { display: block; font-size: 13px; line-height: 1.6; color: #566373; margin-top: 8px; }
.account-manual input { display: block; width: 100%; min-width: 0; padding: 10px; border: 1px solid #bdc7d4; border-radius: 5px; margin-top: 6px; font: inherit; }
.ios-install-strip { display: flex; align-items: center; gap: 22px; padding: 24px 28px; margin-top: 28px; background: #f8f8f8; border-radius: 16px; }
.ios-app-icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; flex: 0 0 64px; color: white; background: linear-gradient(140deg,#8fc1ff,#1877ee); border-radius: 18px; }
.ios-app-copy { display: flex; flex-direction: column; gap: 4px; color: #111; min-width: 0; }
.ios-app-copy strong { font-size: 21px; }
.ios-app-copy span { font-size: 16px; }
.ios-install-button { margin-left: auto; flex-shrink: 0; border-radius: 999px; padding: 9px 23px; background: #080808; color: white; font-weight: 600; }
.ios-install-button:hover { background: #333; }
.ios-account-notes { margin: 30px 0 24px; }
.ios-download .ios-account-notes p { color: #303845; margin: 0 0 12px; line-height: 1.9; font-size: 14px; }
@media(max-width:900px) { .download-cards { grid-template-columns: 1fr; } .ios-download { padding: 24px; } .apple-account { padding: 20px 18px 12px; } }
@media(max-width:640px) {
 .ios-download { padding: 22px 18px; }
 .ios-download h2 { font-size: 28px; margin-bottom: 20px; }
 .ios-step-title { font-size: 23px; }
 .apple-accounts summary { padding: 16px; font-size: 14px; gap: 14px; line-height: 1.7; }
 .apple-account-grid { grid-template-columns: 1fr; gap: 12px; }
 .apple-account h3 { font-size: 18px; margin-bottom: 20px; }
 .account-actions button { padding: 10px 16px; font-size: 14px; }
 .ios-install-strip { gap: 12px; padding: 18px 14px; }
 .ios-app-icon { width: 46px; height: 46px; flex-basis: 46px; border-radius: 12px; }
 .ios-app-icon svg { width: 32px; height: 32px; }
 .ios-app-copy strong { font-size: 18px; }
 .ios-app-copy span { font-size: 12px; }
 .ios-install-button { padding: 8px 15px; font-size: 14px; }
}

/* Only the selected platform is visible on the download page. */
.download-panels { display: block; }
.download-panels > .download-card { width: 100%; min-height: 260px; }
.download-panels .download-actions { margin-top: 12px; }
.download-picker { margin-bottom: 24px; }
