/* LexFab Marketing — shared styles
   Responsive across mobile / tablet / desktop.
   Cross-browser tested: Chrome, Safari, Edge, Firefox. */

@import url('design-system/colors_and_type.css');

/* ───── Decorative tint tokens (placeholder-image gradients; no DS equivalent) ───── */
:root {
  --tint-violet: #DDD3FA;
  --tint-green:  #BFF0D6;
  --tint-amber:  #FDE3AD;
}

/* ───── Base reset + cross-browser defaults ───── */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Prevent layout shift when scrollbars appear (Firefox/Chrome) */
  scrollbar-gutter: stable;
}
html, body { margin: 0; padding: 0; }
body {
  background: var(--surface-0);
  font-family: var(--font-sans);
  color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;       /* belt-and-suspenders against any rogue wide child */
  min-height: 100vh;
  min-height: 100dvh;       /* mobile-safe (Safari, Chrome Android) */
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg, video { display: block; max-width: 100%; height: auto; }
img { image-rendering: auto; }

/* Inputs inherit family, prevent iOS zoom on focus (>=16px) — see media queries */
input, textarea, select { font-family: inherit; color: inherit; }
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234D5666' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Focus ring — keyboard only, all browsers */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Better text wrapping where supported */
h1, h2, h3, h4, h5, h6 { text-wrap: balance; }
p, li { text-wrap: pretty; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ───── Layout containers ───── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 920px; margin: 0 auto; padding: 0 32px; }

/* ───── Nav (desktop) ───── */
.nav-wrap {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-100);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-size: 36px; font-weight: 600; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--slate-600); font-weight: 500; }
.nav-links a { transition: color 120ms var(--ease-out); padding: 6px 0; }
.nav-links a:hover, .nav-links a.active { color: var(--ink-900); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* Mobile nav (hamburger) — hidden by default, JS-injected button on every page */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 25%, transparent);
  border-radius: 8px;
  color: inherit;
  padding: 0;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-drawer {
  position: fixed;
  inset: 64px 0 0 0;
  background: rgba(255,255,255,0.98);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  z-index: 49;
  display: none;
  flex-direction: column;
  padding: 24px 24px 32px;
  gap: 4px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: nav-drawer-in 240ms var(--ease-out);
}
.nav-drawer.open { display: flex; }
@keyframes nav-drawer-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.nav-drawer a {
  display: flex; align-items: center;
  padding: 14px 4px;
  font-size: 17px;
  color: var(--ink-900);
  font-weight: 500;
  border-bottom: 1px solid var(--slate-100);
  min-height: 44px;
}
.nav-drawer a.active { color: var(--blue-600); }
.nav-drawer .nav-drawer-cta { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; border-top: none; padding-top: 0; }
.nav-drawer .nav-drawer-cta a { border: none; padding: 0; }
.nav-drawer .btn { width: 100%; justify-content: center; padding: 14px 18px; font-size: 15px; }
.nav-drawer-cta .btn:first-child { background: transparent; color: var(--slate-700); border: 1px solid var(--slate-200); }
body.nav-locked { overflow: hidden; }

/* ───── Buttons ───── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 500; padding: 10px 16px; border-radius: 8px; border: 1px solid transparent; transition: all 120ms var(--ease-out); white-space: nowrap; min-height: 40px; }
.btn-primary { background: var(--blue-600); color: #fff; }
.btn-primary:hover { background: var(--blue-700); }
.btn-primary:active { transform: scale(0.98); }
.btn-secondary { background: #fff; color: var(--ink-900); border-color: var(--slate-200); }
.btn-secondary:hover { border-color: var(--slate-300); background: var(--slate-50); }
.btn-ghost { background: transparent; color: var(--slate-600); }
.btn-ghost:hover { color: var(--ink-900); }
.btn-lg { font-size: 15px; padding: 14px 22px; border-radius: 10px; min-height: 48px; }
.btn-dark { background: var(--ink-900); color: #fff; }
.btn-dark:hover { background: var(--ink-800); }

/* ───── Hero / Display type ───── */
.hero { padding: 80px 0 60px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; padding: 5px 12px; border-radius: 9999px; background: var(--violet-50); color: var(--violet-700); margin-bottom: 28px; }
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--violet-500); }
.eyebrow.blue { background: var(--blue-50); color: var(--blue-700); }
.eyebrow.blue::before { background: var(--blue-500); }

.display { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.03em; line-height: 1.04; margin: 0; color: var(--ink-900); }
.display-xl { font-size: clamp(40px, 8vw, 84px); }
.display-lg { font-size: clamp(36px, 6.5vw, 64px); }
.display-md { font-size: clamp(30px, 5vw, 48px); }
.display em { font-style: italic; color: var(--blue-600); }

.lede { font-size: clamp(15px, 1.6vw, 19px); color: var(--slate-600); max-width: 620px; margin: 24px auto 0; line-height: 1.55; }

/* ───── Email capture ───── */
.email-capture { display: flex; gap: 8px; max-width: 460px; margin: 32px auto 0; padding: 6px; background: #fff; border: 1px solid var(--slate-200); border-radius: 12px; box-shadow: var(--shadow-sm); transition: border-color 120ms var(--ease-out), box-shadow 120ms var(--ease-out); }
.email-capture:focus-within { border-color: var(--blue-500); box-shadow: var(--shadow-focus); }
.email-capture input { flex: 1; min-width: 0; border: none; outline: none; font-family: inherit; font-size: 14px; padding: 10px 12px; background: transparent; color: var(--ink-900); }
.email-capture input::placeholder { color: var(--slate-400); }
.email-capture .btn { padding: 10px 18px; flex-shrink: 0; }
.email-capture-sub { display: flex; gap: 16px; align-items: center; justify-content: center; margin-top: 12px; font-size: 12px; color: var(--slate-500); text-wrap: balance; padding: 0 16px; }
.email-capture-sub::before { content: '✓'; color: var(--green-600); font-weight: 700; flex-shrink: 0; }

.form-msg { margin-top: 14px; font-size: 13px; color: var(--green-700); display: none; }
.form-msg.show { display: block; }
.form-msg.error { color: var(--red-700); }

/* ───── Sections ───── */
.section { padding: 96px 0; }
.section-tight { padding: 72px 0; }
.section-dark { background: var(--ink-900); color: #fff; }
.section-light { background: var(--slate-50); }

.section-header { max-width: 720px; margin: 0 auto 56px; text-align: center; padding: 0 16px; }
.section-header.left { text-align: left; margin-left: 0; padding-left: 0; }
.section-overline { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 16px; }
.section-title { font-family: var(--font-serif); font-size: clamp(28px, 4.2vw, 44px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin: 0; color: var(--ink-900); }
.section-dark .section-title { color: #fff; }
.section-sub { font-size: clamp(15px, 1.5vw, 17px); color: var(--slate-600); margin: 16px auto 0; line-height: 1.55; max-width: 580px; }
.section-dark .section-sub { color: var(--slate-300); }

/* ───── Product shot frame ───── */
.product-shot { max-width: 1080px; margin: 56px auto 0; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--slate-200); overflow: hidden; }
.ps-bar { height: 36px; background: var(--slate-50); border-bottom: 1px solid var(--slate-200); display: flex; align-items: center; padding: 0 14px; gap: 6px; }
.ps-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.ps-bar-title { margin-left: auto; margin-right: auto; font-size: 12px; color: var(--slate-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ───── Cards / chips ───── */
.card { background: #fff; border: 1px solid var(--slate-200); border-radius: 12px; padding: 28px; transition: border-color 120ms var(--ease-out); }
.card:hover { border-color: var(--slate-300); }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase; padding: 3px 8px; border-radius: 9999px; font-family: var(--font-sans); }
.chip::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.chip-filed { background: var(--green-50); color: var(--green-700); }
.chip-pending { background: var(--amber-50); color: var(--amber-700); }
.chip-overdue { background: var(--red-50); color: var(--red-700); }
.chip-ai { background: var(--violet-50); color: var(--violet-700); }

/* ───── Price display (shared: index teaser + pricing page) ───── */
.price-deal { display: flex; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.price-was { font-family: var(--font-sans); font-size: 15px; font-weight: 500; color: var(--slate-400); text-decoration: line-through; text-decoration-color: var(--slate-400); text-decoration-thickness: 1.5px; }
.price-off { font-family: var(--font-sans); font-size: 10px; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase; padding: 4px 8px; border-radius: 4px; background: var(--green-50); color: var(--green-700); white-space: nowrap; }

/* ───── Footer ───── */
footer.site-footer { padding: 48px 0 26px; border-top: 1px solid var(--border-subtle); background: var(--surface-0); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr 1fr 1fr; gap: 28px 36px; margin-bottom: 32px; }
.foot-brand { display: flex; flex-direction: column; gap: 12px; }
.foot-logo { display: inline-flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-900); }
.foot-logo svg { width: 26px; height: 26px; }
.foot-col h4 { font-size: 11px; font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase; color: var(--slate-400); margin: 0 0 14px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.foot-col-res ul { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 20px; }
.foot-col a { font-size: 13.5px; color: var(--slate-600); transition: color 120ms; display: inline-block; }
.foot-col a:hover { color: var(--blue-600); }
.foot-tagline { font-size: 13px; color: var(--slate-500); line-height: 1.5; max-width: 250px; margin: 0; }
.foot-social { display: flex; gap: 10px; margin-top: 2px; }
.foot-social a { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: var(--slate-500); border: 1px solid var(--border-subtle); transition: color 120ms, border-color 120ms, background 120ms; }
.foot-social a:hover { color: var(--blue-600); border-color: var(--blue-300); background: var(--blue-50); }
.foot-social a svg { width: 18px; height: 18px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; border-top: 1px solid var(--border-subtle); font-size: 12.5px; color: var(--slate-500); gap: 16px; flex-wrap: wrap; }
.foot-bottom .badges { display: flex; gap: 14px; flex-wrap: wrap; }

/* ───── App badges ───── */
.app-badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.app-badge { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px; background: var(--ink-900); color: #fff; border-radius: 10px; transition: all 120ms var(--ease-out); min-height: 56px; }
.app-badge:hover { background: var(--ink-800); transform: translateY(-1px); }
.app-badge .small { font-size: 10px; opacity: 0.7; line-height: 1; margin-bottom: 3px; }
.app-badge .big { font-size: 16px; font-weight: 600; line-height: 1; }

/* ───── Utility ───── */
.center-x { display: flex; justify-content: center; }
.row { display: flex; gap: 12px; align-items: center; }
.muted { color: var(--slate-500); }
.tabular { font-variant-numeric: tabular-nums; font-family: var(--font-mono); }

/* ───── Scrollable text fade-ins ───── */
.fade-up { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.fade-up.in { opacity: 1; transform: translateY(0); }

/* ───── Feedback widget ───── */
.fb-fab { position: fixed; right: 24px; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 60; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; background: var(--ink-900); color: #fff; border: none; border-radius: 9999px; font-size: 13px; font-weight: 500; box-shadow: 0 12px 28px -8px rgba(10,37,64,0.45), 0 2px 6px rgba(10,37,64,0.18); transition: transform 160ms var(--ease-out), background 160ms var(--ease-out); min-height: 44px; }
.fb-fab:hover { background: var(--blue-700); transform: translateY(-2px); }
.fb-fab svg { width: 16px; height: 16px; }
.fb-scrim { position: fixed; inset: 0; z-index: 70; background: rgba(10,37,64,0.42); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 24px; opacity: 0; transition: opacity 200ms var(--ease-out); }
.fb-scrim.open { display: flex; opacity: 1; }
.fb-modal { background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); width: 100%; max-width: 460px; padding: 28px 28px 24px; transform: translateY(8px); transition: transform 240ms var(--ease-out); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.fb-scrim.open .fb-modal { transform: translateY(0); }
.fb-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; gap: 12px; }
.fb-head h3 { font-family: var(--font-serif); font-size: 24px; font-weight: 500; letter-spacing: -0.01em; margin: 0 0 4px; color: var(--ink-900); }
.fb-head p { font-size: 13px; color: var(--slate-600); margin: 0; }
.fb-close { background: transparent; border: none; padding: 8px; color: var(--slate-500); border-radius: 6px; min-width: 36px; min-height: 36px; }
.fb-close:hover { background: var(--slate-100); color: var(--ink-900); }
.fb-form .field { margin-bottom: 12px; }
.fb-form label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-900); margin-bottom: 4px; }
.fb-form input, .fb-form textarea { width: 100%; padding: 10px 12px; font-family: inherit; font-size: 14px; border: 1px solid var(--slate-200); border-radius: 8px; outline: none; transition: border-color 120ms, box-shadow 120ms; color: var(--ink-900); background: #fff; }
.fb-form input:focus, .fb-form textarea:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(59, 98, 226, 0.15); }
.fb-form .field.invalid input, .fb-form .field.invalid textarea { border-color: var(--red-500); }
.fb-form .err { font-size: 11px; color: var(--red-600); margin-top: 4px; display: none; }
.fb-form .field.invalid .err { display: block; }
.fb-form button[type="submit"] { width: 100%; margin-top: 6px; }
.fb-success { background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-500); padding: 14px 16px; border-radius: 10px; font-size: 14px; display: none; }
.fb-success.show { display: block; }
.fb-success strong { display: block; margin-bottom: 2px; }

/* ───── Book-a-demo modal ───── */
.dm-scrim {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(10, 37, 64, 0.42);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 220ms var(--ease-out);
}
.dm-scrim.open { display: flex; opacity: 1; }
.dm-modal {
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
  width: 100%; max-width: 560px; max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 28px;
  transform: translateY(8px);
  transition: transform 220ms var(--ease-out);
}
.dm-scrim.open .dm-modal { transform: translateY(0); }
.dm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.dm-head h3 { font-family: var(--font-serif); font-size: 26px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-900); margin: 0; }
.dm-head p { font-size: 13.5px; color: var(--slate-600); margin: 6px 0 0; line-height: 1.5; }
.dm-close { background: transparent; border: none; padding: 8px; color: var(--slate-500); border-radius: 6px; min-width: 36px; min-height: 36px; flex-shrink: 0; }
.dm-close:hover { background: var(--slate-100); color: var(--ink-900); }
.dm-muted { color: var(--slate-500); font-weight: 400; }
.dm-form .field { margin-bottom: 14px; }
.dm-form label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-900); margin-bottom: 6px; }
.dm-form input, .dm-form textarea {
  width: 100%; padding: 11px 14px;
  font-family: inherit; font-size: 14px;
  border: 1px solid var(--slate-200); border-radius: 8px;
  outline: none; background: #fff; color: var(--ink-900);
  transition: border-color 120ms, box-shadow 120ms;
}
.dm-form input:focus, .dm-form textarea:focus { border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(59, 98, 226, 0.15); }
.dm-form .err { font-size: 12px; color: var(--red-600); margin-top: 4px; display: none; }
.dm-form .field.invalid input, .dm-form .field.invalid textarea { border-color: var(--red-500); }
.dm-form .field.invalid .err { display: block; }
.dm-form .dm-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dm-form button[type="submit"] { width: 100%; margin-top: 6px; }
.dm-fine { font-size: 11px; color: var(--slate-500); margin-top: 12px; text-align: center; }
.dm-success { background: var(--green-50); border: 1px solid var(--green-500); padding: 32px 24px; border-radius: 12px; text-align: center; display: none; flex-direction: column; align-items: center; }
.dm-success.show { display: flex; }
.dm-success-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--green-500); color: #fff; display: grid; place-items: center; margin-bottom: 16px; }
.dm-success strong { font-family: var(--font-serif); font-size: 21px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-900); }
.dm-success p { font-size: 14px; color: var(--slate-600); margin: 8px 0 0; line-height: 1.55; max-width: 340px; }
.dm-success .btn { margin-top: 24px; min-width: 140px; }

@media (max-width: 640px) {
  .dm-scrim { padding: 0; align-items: flex-end; }
  .dm-modal { padding: 22px 20px 24px; border-radius: 16px 16px 0 0; max-height: 92vh; transform: translateY(20px); }
  .dm-head h3 { font-size: 22px; }
  .dm-form .dm-row2 { grid-template-columns: 1fr; gap: 0; }
  /* iOS no-zoom */
  .dm-form input, .dm-form textarea { font-size: 16px; }
}

/* ═════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   • Tablet:  ≤ 960px
   • Mobile: ≤ 640px
   ═════════════════════════════════════════════════════ */

@media (max-width: 960px) {
  .container, .container-narrow { padding: 0 24px; }
  .section { padding: 72px 0; }
  .section-tight { padding: 56px 0; }
  .section-header { margin-bottom: 40px; }
  .hero { padding: 64px 0 48px; }
  /* Tablet step for brand wordmark so it doesn't crowd the navbar */
  .nav-brand { font-size: 28px; }
  .nav-brand svg { width: 26px; height: 26px; }

  /* Footer — single tablet layout: brand spans full row, then 4 link cols in 2 rows */
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px 32px; }
  .foot-grid > :first-child { grid-column: span 2; }
  .foot-grid > :nth-child(5) { grid-column: auto; }
}

@media (max-width: 720px) {
  /* Show hamburger, hide horizontal links */
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-cta .btn:not(.btn-ghost) { padding: 8px 14px; font-size: 13px; min-height: 36px; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 640px) {
  .container, .container-narrow { padding: 0 20px; }
  .nav { height: 56px; gap: 8px; }
  .nav-drawer { inset: 56px 0 0 0; }
  .nav-brand { font-size: 22px; }
  .nav-brand svg { width: 24px; height: 24px; }

  .section { padding: 56px 0; }
  .section-tight { padding: 44px 0; }
  .section-header { margin-bottom: 32px; padding: 0 4px; }
  .hero { padding: 48px 0 32px; }
  .lede { margin-top: 20px; }

  /* Email capture stacks */
  .email-capture { flex-direction: column; gap: 6px; max-width: 360px; padding: 8px; }
  .email-capture input { padding: 12px; width: 100%; font-size: 16px; /* iOS no-zoom */ }
  .email-capture .btn { width: 100%; padding: 12px; }
  .email-capture-sub { flex-direction: column; gap: 4px; margin-top: 16px; text-align: center; }
  .email-capture-sub::before { display: none; }

  /* Form inputs ≥16px to prevent iOS Safari auto-zoom */
  input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
  input[type="search"], input[type="url"], input[type="password"],
  textarea, select { font-size: 16px; }

  /* Buttons full-width when grouped */
  .btn { min-height: 44px; padding: 11px 16px; }
  .btn-lg { padding: 14px 20px; font-size: 15px; min-height: 48px; }

  /* Section header type tightens */
  .section-overline { font-size: 11px; margin-bottom: 12px; }

  /* Footer — 2 columns on mobile */
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; margin-bottom: 40px; }
  .foot-grid > :first-child { grid-column: span 2; }
  .foot-tagline { max-width: 100%; }
  .foot-col-res ul { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; align-items: flex-start; text-align: left; gap: 12px; padding-top: 24px; font-size: 12px; }
  .foot-bottom .badges { font-size: 11px; }

  /* Feedback FAB — icon-only on mobile */
  .fb-fab { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); padding: 12px; }
  .fb-fab .fb-fab-label { display: none; }
  .fb-modal { padding: 22px 20px 20px; border-radius: 14px; }
  .fb-scrim { padding: 12px; align-items: flex-end; }
  .fb-modal { transform: translateY(20px); }

  /* Product shot — hide window chrome on mobile, full-bleed */
  .product-shot { border-radius: 12px; margin-top: 36px; }
  .ps-bar { padding: 0 10px; }
}

/* High-DPI tweak — sharpen icons on Retina/4K */
@media (min-resolution: 2dppx) {
  body { -webkit-font-smoothing: subpixel-antialiased; }
}

/* ───── Early-access announcement bar (injected by early-access-bar.js) ───── */
.ea-bar { background: var(--ink-900); color: #fff; position: relative; }
.ea-bar-in { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 11px 48px; flex-wrap: wrap; text-align: center; }
.ea-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.16); padding: 4px 9px; border-radius: 3px; white-space: nowrap; }
.ea-tag i { width: 6px; height: 6px; border-radius: 50%; background: #4ADE80; display: inline-block; }
.ea-bar p { margin: 0; font-size: 13.5px; color: rgba(255,255,255,0.86); }
.ea-bar a.ea-link { color: #fff; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.ea-bar a.ea-link:hover { color: #C9D8FF; }
.ea-x { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; background: none; border: none; color: rgba(255,255,255,0.55); cursor: pointer; }
.ea-x:hover { color: #fff; }
@media (max-width: 640px) {
  .ea-bar-in { padding: 10px 44px 10px 14px; gap: 8px; }
  .ea-bar p { font-size: 13px; line-height: 1.45; }
}
