/* LuxeOS mobile button pass (phones only). Loaded last on /, /why, /demo, /signup.
   Goals: every tap target >= 44px, 8px+ between targets, primary action in the thumb zone and above the real fold,
   no input zoom on iOS (16px), nothing hidden under fixed bars. Desktop is untouched. */
@media (max-width: 600px) {
  /* --- header: 44px targets; anchor jumps land below the fixed nav */
  html { scroll-padding-top: 76px; }
  .nav-r .btn, .nav-r .btn.p, .nav .btn { height: 44px !important; min-height: 44px; padding: 0 14px !important; }
  .tt { width: 44px !important; height: 44px !important; padding: 0 !important; justify-content: center; }
  .logo { min-height: 44px; display: inline-flex; align-items: center; }

  /* --- hero / section CTAs: stacked, full width, 48px (thumb-sized, no hunting) */
  .cta, .acts { display: flex !important; flex-direction: column; align-items: stretch !important; gap: 10px !important; width: 100%; }
  .cta .btn, .acts .btn, .final .btn { width: 100%; height: 48px !important; justify-content: center; font-size: 15.5px; }
  .acts .tlink, .cta .tlink { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-bottom: 0 !important; padding: 0 !important; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
  .cta a:not(.btn) { display: flex; align-items: center; justify-content: center; min-height: 44px; }
  .jump, .go, .done .btn, .next .btn { width: 100%; min-height: 48px; justify-content: center; }
  .next { display: flex; flex-direction: column; gap: 10px; }

  /* --- chips / pills / tabs / swatches: 44px tall with 8px gaps */
  .chips { gap: 8px !important; } .chips button, .chips label { min-height: 44px !important; height: auto !important; padding: 0 14px !important; }
  .pill { min-height: 44px; }
  .vtabs { gap: 6px; } .vtabs button { height: 40px; min-width: 96px; padding: 0 14px; }
  .swatches, .themes, .tonepick, .tones { gap: 8px !important; }
  .swatches button, .themes button, .tonepick button, .tones button, [data-th], [data-tone] { min-height: 44px !important; }
  .ask-in { height: 52px !important; } .ask-in button { width: 44px !important; height: 44px !important; }

  /* --- /why header bar (.hud-top), brand links */
  .hud-top .btn, .hud-top .btn.sm { height: 44px !important; padding: 0 14px !important; }
  .brand { min-height: 44px; }

  /* --- home hero: tighten so the CTA clears the fold on small phones (icon smaller, gaps shorter) */
  .hero-in .hmark { width: 56px !important; height: 56px !important; margin-bottom: 14px !important; }
  .hero-in .hmark img { width: 100% !important; height: 100% !important; }
  header.hero { padding-top: 84px !important; }
  .hero-in .pill { font-size: 12.5px; letter-spacing: -.01em; padding-right: 10px; } .hero-in .pill svg { flex: none; }
  .hero-in .hl { margin-top: 16px !important; }
  .hero-in .sub { margin-top: 12px !important; font-size: 16px !important; }
  .hero-in .cta { margin-top: 20px !important; }

  /* --- home: theme pickers + AI on/off switches */
  [data-theme-btn] { min-height: 44px !important; } #themebar, #tdial { gap: 8px !important; }
  .sw { width: 52px !important; height: 30px !important; } .sw::after { width: 24px !important; height: 24px !important; } .sw.on::after { transform: translateX(22px) !important; }
  .sw { position: relative; } .sw::before { content: ""; position: absolute; inset: -7px -4px; }  /* 44px hit area, same look */
  .lx-n .x { width: 44px !important; height: 44px !important; top: 4px !important; right: 4px !important; }

  /* --- /why hero: lift the CTA out from behind Safari's bottom toolbar (art stays, copy moves up) */
  .band { -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
  .nav .wrap { padding-left: 16px !important; padding-right: 16px !important; gap: 12px !important; }
  .nav-r { gap: 8px !important; }
  .hero.inner { min-height: 88svh !important; padding-bottom: 28px !important; }
  .hero .scroll-hint { display: none; }

  /* --- inputs: 16px stops iOS Safari zooming the page on focus */
  input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { font-size: 16px !important; }
  input:not([type=checkbox]):not([type=radio]):not([type=range]), select { min-height: 44px; }
  .ask-in input { font-size: 16px !important; }
  /* range sliders: bigger thumb + taller hit area */
  input[type=range] { height: 28px !important; background-size: 100% 2px !important; background-repeat: no-repeat !important; background-position: center !important; margin-top: 6px !important; }
  input[type=range]::-webkit-slider-thumb { width: 28px !important; height: 28px !important; }
  input[type=range]::-moz-range-thumb { width: 28px !important; height: 28px !important; }

  /* --- /signup: put the form on screen 1 instead of a 'Create account ↓' jump button */
  .su { display: flex !important; flex-direction: column; gap: 20px !important; padding-top: 20px !important; }
  .su-l { display: contents; }
  .su-l h1 { order: -3; margin: 0; font-size: 26px; line-height: 1.15; }
  .su-l .lead { display: none; }
  .su > section:last-of-type { order: -1; }
  .su-l .jump { display: none !important; }
  form.card { padding: 16px !important; }
  form.card h2 { display: none; }
  .card.quick { padding: 18px !important; } .card.quick h2 { font-size: 22px; }
  form.card .sub { margin: 0 0 12px !important; }
  form.card label { margin-bottom: 10px !important; gap: 4px !important; }
  form.card .row2 { gap: 0 !important; }
  .su-l ul { margin-top: 8px !important; }

  /* --- /demo: "Try now" spans the card on phones */
  .try .btn, .tryit .btn, .card .btn.p { width: 100%; height: 48px !important; justify-content: center; }
  .play { min-height: 44px !important; }
  footer .links { gap: 0 14px !important; } footer .links a { min-width: 44px; justify-content: center; }

  /* --- /signup at 360: lose the 8px that pushes "Create account" under the toolbar */
  @media (max-height: 700px) { .su { padding-top: 12px !important; gap: 14px !important; } form.card .sub { display: none; } }

  /* --- footer link lists: 44px rows instead of 22px text */
  .foot a, footer nav a, footer .links a { display: flex; align-items: center; min-height: 44px; margin-bottom: 0 !important; }
  footer a { min-height: 44px; display: inline-flex; align-items: center; }
  .pw button { min-width: 56px; min-height: 44px; }

  /* --- signup nudge + phone bar: 44px buttons, 16px input */
  .lx-n input { height: 44px !important; font-size: 16px !important; } .lx-n button.go { height: 44px !important; }
  .lx-n .alt { display: inline-flex; align-items: center; min-height: 44px; margin-top: 0 !important; }
  .vtabs button { height: 44px !important; }
  .pw input { padding-right: 76px !important; }
  .pw .eye, #eye { top: 0 !important; right: 0 !important; height: 100% !important; min-height: 44px !important; min-width: 64px !important; border: 0 !important; background: transparent !important; border-radius: 0 10px 10px 0 !important; }
  .lx-b a { height: 44px !important; }
  /* leave room so the phone bar never covers the last lines of content */
  body:has(.lx-b.on) main, body:has(.lx-b.on) footer { scroll-margin-bottom: 80px; }
  body:has(.lx-b.on) { padding-bottom: 76px; }
}
