/* ==========================================================================
   Foodie Menu — Phase 1 (Header + Hero)
   Accent: warm orange (#EA580C) · Font: Inter · iPhone-style menu preview

   1.  Tokens
   2.  Base & reset
   3.  Utilities
   4.  Buttons
   5.  Header
   6.  Hero copy
   7.  QR placeholder card
   8.  Hero visual — iPhone device
   9.  Hero visual — public menu preview (scoped under .phone-preview)
   10. Responsive
   11. Motion preferences
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --bg: #FAFAF9;
  --surface: #FFFFFF;
  --ink: #18181B;
  --ink-soft: #52525B;
  --ink-muted: #8A8A93;

  --orange: #EA580C;
  --orange-dark: #C2410C;
  --orange-soft: #FFF1E7;
  --orange-line: #FBD9C2;

  --line: #E7E5E4;
  --line-strong: #D6D3D1;

  --radius-sm: 12px;
  --radius: 18px;

  --shadow-xs: 0 1px 2px rgba(24, 24, 27, .06);
  --shadow-sm: 0 10px 24px -18px rgba(24, 24, 27, .45);
  --shadow-lg: 0 40px 70px -34px rgba(24, 24, 27, .42);

  --container: 1140px;
  --header-height: 72px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* 2. Base & reset ---------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
svg { display: block; }

/* 3. Utilities ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.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;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -72px;
  z-index: 100;
  padding: .65rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

[tabindex="-1"]:focus { outline: none; }

#hero,
#hero-preview { scroll-margin-top: 96px; }

/* 4. Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .875rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: -.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color .2s ease,
    border-color .2s ease,
    color .2s ease,
    box-shadow .2s ease,
    transform .2s ease;
}
.btn svg { width: 18px; height: 18px; }

.btn--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 14px 24px -16px rgba(234, 88, 12, .95);
}

.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-xs);
}
.btn--ghost svg { color: var(--orange); }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 18px 28px -16px rgba(234, 88, 12, .95);
  }

  .btn--ghost:hover {
    border-color: #C9C6C3;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
  }
}

.btn:active {
  transform: scale(.96);
  transition-duration: .08s;
}

.btn--primary:active { box-shadow: inset 0 2px 4px rgba(124, 45, 18, .22); }
.btn--ghost:active { background: var(--orange-soft); }

@media (hover: none) {
  .btn { -webkit-tap-highlight-color: transparent; }
}

.btn--sm {
  padding: .6rem 1.15rem;
  font-size: .875rem;
}
.btn--sm svg { width: 16px; height: 16px; }

/* 5. Header ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 249, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -.02em;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  transition: transform .25s ease;
}
@media (hover: hover) and (pointer: fine) {
  .brand:hover .brand-mark { transform: translateY(-1px); }
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.75rem);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .2s ease;
}
.nav-link.is-soon { cursor: default; }

.nav-badge {
  padding: .15rem .4rem;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  line-height: 1.6;
}

/* 6. Hero copy ------------------------------------------------------------- */
.hero {
  padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 112px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: center;
  gap: clamp(2.25rem, 4.5vw, 3.75rem);
}

.hero-copy {
  max-width: 560px;
  animation: rise .6s cubic-bezier(.22, .68, .32, 1) both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.25rem;
  padding: .4rem .85rem .4rem .6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: .8125rem;
  font-weight: 500;
  box-shadow: var(--shadow-xs);
}
.eyebrow svg {
  width: 15px;
  height: 15px;
  color: var(--orange);
}

.hero-title {
  margin-bottom: 1.25rem;
  font-size: clamp(2.5rem, 5.2vw, 4rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.04em;
}

.hero-sub {
  max-width: 46ch;
  margin-bottom: 2rem;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.65;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
}

/* 6a. Benefit labels ------------------------------------------------------- */
.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}
.hero-benefits li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.hero-benefits svg {
  width: 16px;
  height: 16px;
  color: var(--orange);
  flex-shrink: 0;
}

/* 7. QR dialog ------------------------------------------------------------- */
#scan-qr-button { line-height: inherit; }

html.qr-dialog-open { overflow: hidden; }

.qr-dialog {
  width: min(344px, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}

.qr-dialog[open] { animation: qr-enter .24s cubic-bezier(.22, .68, .32, 1) both; }
.qr-dialog::backdrop { background: rgba(24, 24, 27, .56); }

.qr-dialog-panel {
  position: relative;
  padding: 1.5rem clamp(1rem, 5vw, 1.5rem) 1.25rem;
  text-align: center;
}

.qr-dialog-panel::before {
  content: "";
  display: block;
  width: 24px;
  height: 3px;
  margin: 0 auto .75rem;
  border-radius: 999px;
  background: var(--orange);
}

.qr-dialog-close {
  position: absolute;
  top: .25rem;
  right: .25rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-muted);
  font: inherit;
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
}

.qr-dialog-close:hover { background: var(--orange-soft); }

.qr-dialog h2 {
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.qr-dialog p {
  margin: .375rem auto .875rem;
  max-width: 30ch;
  color: var(--ink-soft);
  font-size: .875rem;
  line-height: 1.45;
}

.qr-dialog-code {
  width: min(100%, 244px);
  margin-inline: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #faf9f7;
}

.qr-dialog-code img {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes qr-drawer-enter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes qr-enter {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: none; }
}

/* 8. Hero visual — iPhone device ------------------------------------------- */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: rise .6s cubic-bezier(.22, .68, .32, 1) .1s both;
}

.device {
  position: relative;
  width: min(285px, 100%);
}

.device-frame {
  position: relative;
  padding: 10px;
  border-radius: 52px;
  background: linear-gradient(150deg, #3F3F46, #18181B 48%, #2A2A2E);
  box-shadow:
    0 0 0 1px rgba(24, 24, 27, .1),
    var(--shadow-lg);
}

.device-btn {
  position: absolute;
  border-radius: 2px;
  background: #2A2A2E;
}
.device-btn--silent  { left: -2px; top: 108px; width: 3px; height: 22px; }
.device-btn--vol-up  { left: -2px; top: 142px; width: 3px; height: 38px; }
.device-btn--vol-down{ left: -2px; top: 190px; width: 3px; height: 38px; }
.device-btn--power   { right: -2px; top: 162px; width: 3px; height: 56px; }

.device-screen {
  position: relative;
  aspect-ratio: 290 / 568;
  height: auto;
  border-radius: 43px;
  background: #FAFAF8;
  overflow: hidden;
}

/* 9. Hero visual — public menu preview (scoped) ---------------------------- */
.phone-preview {
  --pp-font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --pp-bg: #FAFAF8;
  --pp-card: #FFFFFF;
  --pp-text: #1C1917;
  --pp-muted: #78716C;
  --pp-border: #EEEBE7;
  --pp-accent: #EA580C;
  --pp-accent-hover: #C2410C;
  --pp-accent-soft: #FFF1E8;
  --pp-on-accent: #FFFFFF;
  --pp-wa-green: #25D366;
  --pp-radius-card: 16px;
  --pp-radius-pill: 999px;
  --pp-shadow: 0 2px 12px rgba(0, 0, 0, .06);
  --sticky-h: 120px;

  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100%;
  font-family: var(--pp-font);
  background: var(--pp-bg);
  color: var(--pp-text);
  overflow: hidden;
}

.phone-preview *,
.phone-preview *::before,
.phone-preview *::after { box-sizing: border-box; }

.phone-preview [hidden] { display: none !important; }

.phone-preview h1,
.phone-preview h2,
.phone-preview h3 { margin: 0; line-height: 1.2; letter-spacing: -.02em; }

.phone-preview p { margin: 0; }
.phone-preview ul { margin: 0; padding: 0; list-style: none; }
.phone-preview img { display: block; max-width: 100%; height: auto; }
.phone-preview svg { display: block; }

/* internal scroll container — the JS animates this */
.phone-preview .pp-scroll {
  width: 100%;
  max-width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: auto;
}
.phone-preview .pp-scroll::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* ---------- cover ---------- */
.phone-preview .pp-cover {
  position: relative;
  width: 100%;
  height: 185px;
  background: linear-gradient(135deg, var(--pp-accent), var(--pp-accent-soft));
  overflow: hidden;
}
.phone-preview .pp-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phone-preview .pp-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .55) 0%, transparent 45%);
  pointer-events: none;
}

/* ---------- header content ---------- */
.phone-preview .pp-header {
  position: relative;
  z-index: 10;
  margin-top: -34px;
  padding: 0 16px 14px;
}

.phone-preview .header-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--pp-card);
  border: 3px solid #fff;
  box-shadow: var(--pp-shadow);
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--pp-accent);
  margin-bottom: 10px;
  overflow: hidden;
}
.phone-preview .header-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-preview .restaurant-name {
  font-size: 19px;
  font-weight: 800;
  color: var(--pp-text);
  margin-bottom: 2px;
}

.phone-preview .restaurant-tagline {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--pp-muted);
  margin-bottom: 10px;
}

.phone-preview .restaurant-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.phone-preview .detail-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--pp-muted);
}
.phone-preview .detail-item svg { width: 12px; height: 12px; }

.phone-preview .whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--pp-wa-green);
  color: #fff;
  padding: 7px 13px;
  border-radius: var(--pp-radius-pill);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(37, 211, 102, .28);
  cursor: default;
}
.phone-preview .whatsapp-btn svg { width: 14px; height: 14px; }

/* ---------- sticky search + chips ---------- */
.phone-preview .pp-sticky {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--pp-bg);
  border-bottom: 1px solid var(--pp-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .04);
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.phone-preview .search-container {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 16px;
  width: 100%;
  min-width: 0;
}

.phone-preview .search-icon {
  position: absolute;
  left: 28px;
  width: 15px;
  height: 15px;
  color: var(--pp-muted);
  pointer-events: none;
}

.phone-preview .pp-search-input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 32px 0 36px;
  border-radius: var(--pp-radius-pill);
  border: 1px solid var(--pp-border);
  background: var(--pp-card);
  font-family: var(--pp-font);
  font-size: 12.5px;
  color: var(--pp-text);
  outline: none;
  transition: border-color .2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.phone-preview .pp-search-input::placeholder { color: var(--pp-muted); }
.phone-preview .pp-search-input:focus { border-color: var(--pp-accent); }

.phone-preview .pp-clear-btn {
  position: absolute;
  right: 26px;
  display: grid;
  place-items: center;
  padding: 4px;
  color: var(--pp-muted);
  background: none;
  border: none;
  cursor: pointer;
}
.phone-preview .pp-clear-btn svg { width: 13px; height: 13px; }

.phone-preview .filter-chips,
.phone-preview .category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0 16px;
}

.phone-preview .filter-chips { margin-top: 8px; }

.phone-preview .chip {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 8px;
  border-radius: var(--pp-radius-pill);
  background: var(--pp-card);
  border: 1px solid var(--pp-border);
  font-family: var(--pp-font);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--pp-muted);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.phone-preview .category-nav .chip { padding-inline: 6px; }
.phone-preview .chip:hover { border-color: #D6D3D1; }
.phone-preview .chip.is-active {
  background: var(--pp-accent);
  border-color: var(--pp-accent);
  color: var(--pp-on-accent);
}

.phone-preview .filter-chip {
  gap: 4px;
  background: var(--pp-bg);
}

.phone-preview .filter-chip[aria-pressed="true"] {
  background: var(--pp-text);
  border-color: var(--pp-text);
  color: var(--pp-card);
}

/* ---------- menu list ---------- */
.phone-preview .pp-menu {
  padding: 16px 16px 20px;
  width: 100%;
  min-width: 0;
}

.phone-preview .category-section { margin-bottom: 24px; }
.phone-preview .category-section:last-child { margin-bottom: 0; }

.phone-preview .category-heading {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--pp-text);
}

.phone-preview .menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.phone-preview .menu-card {
  display: flex;
  gap: 11px;
  background: var(--pp-card);
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius-card);
  padding: 9px;
  box-shadow: var(--pp-shadow);
  min-height: 84px;
  min-width: 0;
}

.phone-preview .card-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.phone-preview .item-badges {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-bottom: 2px;
  flex-wrap: wrap;
}

.phone-preview .badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
  line-height: 1.3;
}
.phone-preview .badge-popular { background: var(--pp-accent-soft); color: var(--pp-accent); }
.phone-preview .badge-new { background: #dbeafe; color: #1e40af; }
.phone-preview .badge-spicy { background: transparent; color: #dc2626; font-size: 11px; padding: 0; }

.phone-preview .item-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pp-text);
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.phone-preview .item-desc {
  font-size: 11px;
  color: var(--pp-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.phone-preview .item-price {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--pp-text);
  margin-top: 2px;
}

.phone-preview .card-media {
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  border-radius: 12px;
  overflow: hidden;
  background: #f0f0f0;
}
.phone-preview .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-preview .card-media-icon {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--pp-accent-soft);
  color: var(--pp-accent);
}
.phone-preview .card-media-icon svg { width: 26px; height: 26px; }

/* diet markers */
.phone-preview .diet-marker {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 1px solid;
  position: relative;
  vertical-align: middle;
  border-radius: 2px;
  flex-shrink: 0;
}
.phone-preview .diet-marker.veg { border-color: #16a34a; }
.phone-preview .diet-marker.veg::after {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  background: #16a34a;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
}
.phone-preview .diet-marker.nonveg { border-color: #dc2626; }
.phone-preview .diet-marker.nonveg::after {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  background: #dc2626;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
}

/* empty state */
.phone-preview .empty-state {
  text-align: center;
  padding: 30px 20px;
  color: var(--pp-muted);
  font-size: 12.5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.phone-preview .empty-state svg { width: 28px; height: 28px; opacity: .6; }

/* Entrance animation */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* 10. Responsive ----------------------------------------------------------- */
@media (min-width: 901px) {
  .hero {
    display: grid;
    align-items: center;
    min-height: calc(100svh - var(--header-height) - 1px);
    padding-block: clamp(12px, 2.5svh, 24px) clamp(20px, 4svh, 40px);
  }

  .hero .device {
    /* Frame and screen aspect ratio convert the available height to a width. */
    width: min(285px, 100%, calc(42svh - 38px));
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
    gap: 2.25rem;
  }
}

@media (min-width: 901px) and (max-height: 720px) {
  .hero .eyebrow,
  .hero-title { margin-bottom: .875rem; }

  .hero-title { font-size: clamp(2.5rem, min(5.2vw, 8.4svh), 4rem); }
  .hero-sub { margin-bottom: 1.25rem; }
  .hero-benefits { margin-top: 1rem; }
}

@media (min-width: 901px) and (max-height: 650px) {
  .hero { padding-block: 10px 16px; }
  .hero-title { font-size: clamp(2.375rem, min(5.2vw, 7.5svh), 3.125rem); }
  .hero-benefits { row-gap: .375rem; }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }
  .hero-copy { max-width: none; }
  .hero-visual { justify-content: center; }
}

@media (max-width: 640px) {
  .qr-dialog {
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 1rem);
    margin: auto 0 0;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .qr-dialog-panel {
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }

  .qr-dialog[open] { animation-name: qr-drawer-enter; }


  .nav-link.is-soon { display: none; }

  .header-inner { min-height: 64px; }
  .brand-mark { width: 44px; height: 44px; }

  .hero { padding-block: 40px 64px; }

  .hero-actions { gap: .75rem; }
  .hero-actions .btn { flex: 1 1 100%; }

}

@media (max-width: 380px) {
  .phone-preview .pp-cover { height: 160px; }
  .phone-preview .card-media { width: 68px; height: 68px; flex: 0 0 68px; }

}

/* 11. Motion preferences --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .btn:hover,
  .btn:active,
  .brand:hover .brand-mark { transform: none; }
}