/* ── Utilities ──────────────────────────────────────────── */

.stack { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.row { display: flex; align-items: center; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.center { justify-content: center; }
.between { justify-content: space-between; }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media (max-width: 700px) {
  /* Mobile performance path. Large filtered, continuously moving layers are
     disproportionately expensive on phone GPUs. Keep the desktop treatment
     intact, while phones use the same palette without live compositing. */
  .aurora-blob { display: none; }

  .card,
  .faq-item,
  .submit-bar,
  .overlay {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  /* Route entrance motion is decorative. Avoid promoting and animating many
     newly-mounted elements during a phone's busiest startup frames. */
  .rise,
  .rise-1, .rise-2, .rise-3, .rise-4,
  .source-row,
  .more-panel,
  .choice-detail,
  .msg {
    animation: none;
    opacity: 1;
    transform: none;
  }

  /* Make taps dispatch immediately and keep their pressed feedback on the
     compositor. Do not virtualize off-screen sections: mobile Safari can
     visibly clear and repaint content when the user scrolls back to it. */
  button,
  a,
  summary,
  [role="button"] {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(127, 179, 173, 0.16);
  }

  /* Sides only: the shorthand form would zero out .page's bottom padding on
     the <main class="page shell"> element and glue content to the footer. */
  .shell { padding-left: 16px; padding-right: 16px; }
  .block { padding: 22px 18px 24px; }
  .msg-bubble { max-width: 86%; }

  /* Landing: tighter hero, stacked full-width CTAs. */
  .hero { padding: 40px 0 20px; gap: 20px; }
  .hero-title { font-size: clamp(32px, 10vw, 42px); }
  .hero-cta { width: 100%; flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .btn--lg { padding: 13px 24px; font-size: 15px; }
  .hero-meta { gap: 10px 18px; font-size: 12.5px; }
  .steps { margin-top: 44px; }
  .plans { margin-top: 52px; gap: 22px; }
  .plan { padding: 22px 20px 24px; }
  .plan-amount { font-size: 38px; }
  .plan-tagline, .plan-billing { min-height: 0; }
  .faq { margin-top: 48px; gap: 16px; }
  .faq-q { padding: 15px 16px; font-size: 15px; }
  .faq-a { padding: 0 16px 16px; font-size: 14px; }

  /* Dashboard: tighter panels so content, not chrome, fills the screen. */
  .dash { gap: 16px; }
  .panel { padding: 18px 16px 20px; gap: 16px; }
  .panel-title { font-size: 18px; }
  .stat-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
  .stat { padding: 13px 14px; }
  .stat-value { font-size: 20px; }
  .empty-state { padding: 36px 16px; }

  /* Status cards (System, Payments): the text column's flex-basis of 0 meant
     the row never wrapped and the copy was crushed beside the status chip.
     Text keeps the icon's line at full width; the chip drops beneath it,
     indented past the icon (36px + 14px gap). */
  .status-card { flex-wrap: wrap; row-gap: 8px; padding: 14px 16px; }
  .status-card > .grow { min-width: calc(100% - 50px); }
  .status-card > .chip { margin-left: 50px; }

  /* Builder + create flow. */
  .builder-head { margin-bottom: 28px; }
  .builder-head h1 { font-size: clamp(26px, 8vw, 34px); }
  .block-title { font-size: 18px; }

  /* Chat + modals. */
  .chat-shell { padding: 0 14px; }
  .modal { padding: 26px 20px 24px; }

  /* Footer stacks instead of squeezing side by side, with real room at the
     bottom of the page (plus the home-indicator safe area on phones). */
  /* Longhand again -- the shorthand would drop .shell's side gutters. */
  .footer {
    flex-direction: column;
    gap: 16px;
    padding-top: 26px;
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }
}

/* ── Cookie notice ──────────────────────────────────────── */
.cookie-notice {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  margin: 0 auto;
  max-width: 640px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--bg-raised);
  border: 1px solid var(--line-hi);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22);
  font-size: 13.5px;
  color: var(--muted);
  z-index: 60;
}
.cookie-notice a { color: var(--accent); }
.cookie-notice .btn { flex-shrink: 0; }
