/* Keep the iPhone download beside the existing web calculator action. */
.hero-actions { align-items: flex-start; }
.hero-app-store { display: grid; justify-items: start; gap: 12px; }
.app-store-download { display: inline-flex; min-height: 52px; border-radius: 10px; }
.app-store-download img { display: block; width: 156px; height: 52px; }
.hero-app-store .fine { margin: 0; }
.hero-actions > .plan-link { align-self: center; }
.top .wrap { max-width: 1380px; }
.app-store-nav { display: inline-flex; flex: none; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; margin-left: auto; border-radius: 10px; background: #0e1320; color: #fff; font-size: 14px; font-weight: 750; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.app-store-nav:hover { background: #26334c; color: #fff; }
.app-store-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 24px 0 0; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--accent-wash); color: var(--ink); text-align: left; }
.app-store-panel > div { min-width: 0; }
.app-store-panel h3 { margin: 0; font-size: 21px; line-height: 1.25; }
.app-store-panel p { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.app-store-panel .app-store-download { flex: none; }
.rp-preview-output .app-store-panel { flex-direction: column; align-items: flex-start; padding: 18px; }
.app-store-closing { max-width: 900px; }
.app-store-footer { font-weight: 750; }
.platform-choice { min-width: 0; max-width: 100%; }
.platform-choice-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.platform-web { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px 16px; border: 1px solid var(--accent); border-radius: 10px; color: var(--accent-ink); background: transparent; font-size: 15px; font-weight: 700; text-decoration: none; line-height: 1.3; }
.platform-web:hover { background: var(--surface); }
.platform-purchase-note, .app-store-panel .platform-purchase-note { margin: 12px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.5; max-width: 48em; }
.app-store-panel > .platform-choice { flex: 0 1 360px; }
.app-store-panel > div:first-child { flex: 1; }
.rp-preview-output .app-store-panel > .platform-choice { flex: none; }
.rp-preview form .app-store-panel { flex-direction: column; align-items: flex-start; padding: 18px; }
.rp-preview form .app-store-panel > .platform-choice { flex: none; }
.app-store-hero-actions > .platform-choice { width: 100%; }
.app-store-hero-actions .fine { margin-top: 12px; }
.top nav .platform-web-nav { color: var(--accent-ink) !important; background: transparent; box-shadow: inset 0 0 0 1px var(--accent); }
.header-platform-options { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.header-platform-options .app-store-nav { margin-left: 0; }
.header-platform-options .app-store-launch { gap: 8px; min-height: 48px; border: 1px solid #ffe4a4; background: linear-gradient(120deg, #ffe28a, #ffba4d); color: #141b28; font-weight: 850; box-shadow: 0 3px 12px rgba(230, 150, 25, .24), inset 0 1px 0 rgba(255, 255, 255, .5); transition: box-shadow .16s ease, transform .16s ease; }
.header-platform-options .app-store-launch:hover { background: linear-gradient(120deg, #ffebaa, #ffca6c); color: #141b28; box-shadow: 0 5px 18px rgba(230, 150, 25, .35); transform: translateY(-1px); }
.app-launch-badge { padding: 3px 5px; border-radius: 5px; background: #141b28; color: #fff; font-size: 10px; font-weight: 900; line-height: 1; letter-spacing: .04em; }
.app-launch-arrow { font-size: 18px; line-height: 1; }
.header-web-option { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; border: 1px solid var(--accent); border-radius: 10px; font-size: 14px; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.top nav .platform-preview-nav { background: transparent; color: var(--accent-ink) !important; box-shadow: inset 0 0 0 1px var(--accent); }
@media (max-width: 1100px) {
  .header-platform-options { width: 100%; display: grid; grid-template-columns: 1.2fr 1fr; }
}
@media (max-width: 1380px) { .top nav .hide-sm { display: none; } }
@media (min-width: 801px) and (max-width: 1100px) {
  .top .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 8px; }
  .top nav { width: 100%; justify-content: flex-end; }
}
@media (max-width: 600px) {
  .app-store-panel { flex-direction: column; align-items: flex-start; padding: 18px; }
  .app-store-panel > .platform-choice { flex: none; }
  .app-store-nav { font-size: 13px; padding: 8px 12px; }
}
@media (max-width: 380px) {
  .top .brand { font-size: 15px; gap: 8px; }
  .top .brand img { width: 28px; height: 28px; }
  .app-store-nav { font-size: 12px; padding: 8px 10px; }
  .header-platform-options .app-store-launch { gap: 6px; }
  .app-launch-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) { .header-platform-options .app-store-launch { transition: none; transform: none; } }

/* The web action matches the adjacent 156 × 52 App Store badge. */
.platform-choice-actions > .platform-web { width: 156px; height: 52px; min-height: 52px; padding: 0; flex: 0 0 156px; box-sizing: border-box; }
