.mobile-app-nav { display: none; }

@media (max-width: 767px) {
  html { -webkit-text-size-adjust: 100%; }
  body { padding-bottom: env(safe-area-inset-bottom); font-size: 16px; }
  .site-header { position: sticky; top: 0; z-index: 20; min-height: 64px; height: auto; padding: max(10px, env(safe-area-inset-top)) 16px 10px; }
  .site-header .brand { min-height: 44px; font-size: 1.5rem; }
  .site-header .brand-mark { width: 1.9rem; height: 1.9rem; }
  .site-header nav { gap: 8px; }
  .site-header nav a:not(.nav-cta), .site-header .quiet { display: none; }
  .site-header .nav-cta { min-height: 44px; padding-inline: 13px; }

  .marketing { overflow: clip; }
  .hero-stage, .manifesto, .workflow, .feature-ribbon, .pricing, .faq, .case-study, .product-proof { width: min(100% - 32px, 1120px); }
  .hero-stage { display: flex; flex-direction: column; gap: 0; padding: 38px 0 42px; }
  .hero-art { order: 2; width: 100%; min-height: 0; aspect-ratio: 4 / 3; margin: 30px 0 0; border-radius: 28px 28px 12px 12px; }
  .musketeer-image { object-position: center 34%; }
  .hero-copy { order: 1; width: 100%; padding: 0; }
  .hero-copy h1 { margin: 12px 0 16px; font-size: clamp(3rem, 15vw, 4.6rem); line-height: .92; }
  .hero-copy > p:not(.eyebrow):not(.cta-flourish) { font-size: 1rem; line-height: 1.58; }
  .marketing-actions { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin-top: 24px; }
  .marketing-actions .button { width: 100%; }
  .text-action { min-height: 44px; display: inline-flex; align-items: center; padding-inline: 6px; }
  .proof-strip { display: grid; grid-template-columns: repeat(2, max-content); justify-content: start; gap: 10px 16px; margin-bottom: 40px; padding: 14px 0; }
  .proof-strip i { display: none; }
  .dispatch-flow, .case-study, .product-proof, .pricing { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 28px 20px; }
  .case-study { padding-inline: 0; }
  .case-study h2, .product-proof h2, .marketing h2 { font-size: clamp(2.1rem, 10vw, 3.1rem); }
  .case-comparison { grid-template-columns: 1fr; }
  .old-way, .new-way { padding: 22px 18px; }
  .flow-diagram { grid-template-columns: 1fr; gap: 12px; }
  .flow-line { height: 24px; width: 1px; margin: auto; }
  .fan-lines { height: 24px; width: 1px; margin: auto; border: 0; border-left: 1px solid var(--gold); }
  .fan-lines:before, .fan-lines:after { display: none; }
  .flow-outlets span { justify-content: flex-start; padding: 8px 0; }
  .workflow { padding: 42px 0; }
  .workflow-lede { color: var(--ink-soft); line-height: 1.6; }
  .route { grid-template-columns: 1fr; gap: 26px; margin-top: 28px; }
  .route h3 { font-size: 1.35rem; }
  .mini-composer { padding: 12px; }
  .mini-destinations p { grid-template-columns: 10px minmax(0, 1fr); }
  .mini-destinations strong { grid-column: 2; }
  .feature-ribbon { width: 100%; }
  .feature-ribbon article { padding: 28px 20px; }
  .price-card { padding: 22px 18px; }
  .price-card .pricing-cta { display: inline-flex; min-height: 44px; align-items: center; padding: 10px 15px; }
  .pricing .price-card .price { color: var(--ink); line-height: 1; }
  .pricing .price-card .price sup { color: var(--cardinal); }
  .pricing .price-card .price small { display: inline; color: var(--ink-soft); }
  .pricing .price-card > p:not(.price):not(.price-name) { color: var(--ink-soft); }
  .pricing .price-card > small { color: var(--ink-faint); }
  .faq { padding: 42px 0 56px; }
  .faq summary { min-height: 44px; display: flex; align-items: center; }

  .app-shell { width: min(100% - 32px, 1180px); padding: 32px 0 calc(96px + env(safe-area-inset-bottom)); }
  .mobile-app-nav { position: fixed; z-index: 30; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; min-height: 68px; padding: 7px max(8px, env(safe-area-inset-right)) max(7px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(14px); }
  .mobile-app-nav a, .mobile-app-nav form, .mobile-app-nav button { min-width: 0; margin: 0; }
  .mobile-app-nav a, .mobile-app-nav button { display: flex; min-height: 52px; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border: 0; background: transparent; color: var(--soft); box-shadow: none; text-decoration: none; }
  .mobile-app-nav a > span, .mobile-app-nav button > span { font-size: 1.25rem; line-height: 1; }
  .mobile-app-nav small { font: 700 .65rem var(--font-ui); }
  .mobile-app-nav .is-current { color: var(--cardinal); }
  .mobile-app-nav .mobile-new-post > span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--cardinal); color: var(--paper); }
  .mobile-app-nav .mobile-signout { width: 100%; cursor: pointer; }
  .dashboard-head { align-items: flex-start; gap: 22px; }
  .dashboard-head .button-primary { width: 100%; }
  .dashboard-head h1, .composer-heading h1, .page-heading h1 { font-size: clamp(2.65rem, 13vw, 3.5rem); }
  .start-post { align-items: flex-start; flex-wrap: wrap; padding: 18px; }
  .start-post .text-link { width: 100%; margin-left: 0; min-height: 44px; display: inline-flex; align-items: center; }
  .post-table-row { min-height: 74px; }
  .post-title strong { white-space: normal; }
  .composer-bar { gap: 12px; }
  .composer-bar .button { min-height: 44px; }
  .composer-card, .publish-rail, .dispatch-panel { padding: 20px 16px; }
  .upload-zone { align-items: flex-start; padding: 16px; }
  .upload-zone input { width: 100%; min-height: 40px; }
  .destination-option { grid-template-columns: 24px 28px minmax(0, 1fr); min-height: 58px; }
  .destination-option b { grid-column: 3; }
  .publish-rail { position: static; margin-inline: -2px; }
  .publish-button { min-height: 52px; }
  .schedule-field input { min-height: 44px; }
  .detail-grid { gap: 20px; }
  .post-detail-head { padding: 28px 0 20px; }
  .post-detail-head .status-pill { align-self: flex-start; }
  .dispatch-row { gap: 10px; }
  .dispatch-actions { flex-wrap: wrap; }
  .dispatch-actions .button { min-height: 44px; }
  .connection-row { padding: 18px 0; }
  .connection-row .button { min-height: 44px; }
}

@media (max-width: 390px) {
  .site-header { padding-inline: 14px; }
  .site-header .brand { font-size: 1.35rem; }
  .site-header .nav-cta { padding-inline: 11px; }
  .hero-stage, .manifesto, .workflow, .pricing, .faq, .case-study, .product-proof { width: calc(100% - 28px); }
  .hero-copy h1 { font-size: clamp(2.8rem, 14vw, 3.45rem); }
  .marketing-actions { grid-template-columns: 1fr; }
  .marketing-actions .text-action { justify-content: center; }
  .proof-strip { grid-template-columns: 1fr 1fr; }
  .composer-bar .saved-state { display: none; }
  .composer-card, .publish-rail, .dispatch-panel { padding-inline: 14px; }
  .upload-zone { gap: 12px; }
  .upload-play { width: 34px; height: 48px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-stage, .case-study, .product-proof { width: min(100% - 48px, 1120px); }
  .hero-stage { gap: 28px; }
  .hero-copy h1 { font-size: clamp(3.8rem, 8vw, 5rem); white-space: normal; }
  .app-shell { width: min(100% - 48px, 1180px); }
  .composer-form { grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; }
}

@media (pointer: coarse) {
  .button, .nav-cta, .text-link, .back-link { min-height: 44px; }
  .post-table-row { -webkit-tap-highlight-color: color-mix(in srgb, var(--gold) 22%, transparent); }
}
