/* ══════════════════════════════════════════════════════════════════
   CaratOS Marketing Theme — shared across all public marketing pages.

   Differentiation note: karatos.in (direct trademark-dispute competitor)
   uses cream+gold+serif in light mode and black+gold in dark mode. This
   theme deliberately avoids gold entirely — graphite/ink base, emerald
   accent (already the app's own "active/success" semantic color, see
   css/styles.css --emerald), bold geometric sans display type instead of
   a delicate serif, and floating real-product UI cards instead of
   abstract badges/line-art.
   ══════════════════════════════════════════════════════════════════ */

:root, body.mkt[data-theme="light"] {
  --mkt-ink: #f8f3e9;
  --mkt-surface: #fffdf8;
  --mkt-surface-2: #eee5d7;
  --mkt-surface-3: #e2eee8;
  --mkt-border: rgba(28, 52, 43, 0.15);
  --mkt-text: #18251f;
  --mkt-text-strong: #0d352a;
  --mkt-text-dim: #58665f;
  --mkt-accent: #0d6b50;
  --mkt-accent-hover: #08533e;
  --mkt-accent-dim: rgba(13, 107, 80, 0.11);
  --mkt-accent-ink: #ffffff;
  --mkt-warm: #a75a32;
  --mkt-warm-dim: rgba(167, 90, 50, 0.11);
  --mkt-selection: #d8eee5;
  --mkt-radius: 14px;
  --mkt-radius-lg: 22px;
  --mkt-font-display: 'IBM Plex Sans', -apple-system, sans-serif;
  --mkt-font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mkt-font-editorial: 'Playfair Display', 'Libre Baskerville', Georgia, serif;
  --mkt-type-display: clamp(42px, 6.4vw, 72px);
  --mkt-type-h2: clamp(30px, 4vw, 44px);
  --mkt-type-h3: clamp(20px, 2vw, 26px);
  --mkt-type-body: 17px;
  --mkt-type-small: 14px;

  /* Repoint the shared semantic tokens (css/styles.css) that existing
     marketing pages already build on (var(--background), var(--primary),
     var(--surface-container-low), etc.) so every page that already uses
     those tokens re-skins for free, without rewriting its structure.
     The app dashboard's own styles.css light/dark toggle is untouched —
     this override only applies where marketing-theme.css is loaded. */
  --background: var(--mkt-ink);
  --on-background: var(--mkt-text);
  --surface-container-lowest: var(--mkt-ink);
  --surface-container-low: var(--mkt-surface);
  --surface-container: var(--mkt-surface-2);
  --surface: var(--mkt-surface);
  --on-surface: var(--mkt-text);
  --on-surface-variant: var(--mkt-text-dim);
  --outline: var(--mkt-border);
  --primary: var(--mkt-accent);
  --on-primary: var(--mkt-accent-ink);
  --gold: var(--mkt-accent);
  --emerald: var(--mkt-accent);
  --emerald-dim: var(--mkt-accent-dim);
}

/* Dark mode — opt-in via the toggle, not the default anymore. Same
   graphite/emerald direction as before, just no longer the default state. */
body.mkt[data-theme="dark"] {
  --mkt-ink: #0d1713;
  --mkt-surface: #14231d;
  --mkt-surface-2: #1b2d26;
  --mkt-surface-3: #20352d;
  --mkt-border: rgba(215, 238, 228, 0.14);
  --mkt-text: #f4f1e9;
  --mkt-text-strong: #ffffff;
  --mkt-text-dim: #b3c0ba;
  --mkt-accent: #5dd6ad;
  --mkt-accent-hover: #7ce1bd;
  --mkt-accent-dim: rgba(93, 214, 173, 0.14);
  --mkt-accent-ink: #082b20;
  --mkt-warm: #e29a6f;
  --mkt-warm-dim: rgba(226, 154, 111, 0.14);
  --mkt-selection: #244b3d;

  --background: var(--mkt-ink);
  --on-background: var(--mkt-text);
  --surface-container-lowest: var(--mkt-ink);
  --surface-container-low: var(--mkt-surface);
  --surface-container: var(--mkt-surface-2);
  --surface: var(--mkt-surface);
  --on-surface: var(--mkt-text);
  --on-surface-variant: var(--mkt-text-dim);
  --outline: var(--mkt-border);
  --primary: var(--mkt-accent);
  --on-primary: var(--mkt-accent-ink);
  --gold: var(--mkt-accent);
  --emerald: var(--mkt-accent);
  --emerald-dim: var(--mkt-accent-dim);
}

/* ── Theme toggle button ── */
.mkt-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--mkt-border);
  background: transparent;
  color: var(--mkt-text);
  cursor: pointer;
  margin-right: 4px;
  flex-shrink: 0;
}
.mkt-theme-toggle:hover { border-color: var(--mkt-text-dim); }
.lp-nav__menu-btn { width:44px !important; min-width:44px !important; min-height:44px !important; }
.mkt-theme-toggle .material-symbols-outlined { font-size: 19px; }
body.mkt[data-theme="dark"] .mkt-theme-toggle .mkt-theme-toggle__icon-dark,
body.mkt:not([data-theme="dark"]) .mkt-theme-toggle .mkt-theme-toggle__icon-light { display: none; }

/* Headings stay Playfair Display serif (reverted -- the bold sans swap
   didn't land well). Differentiation from KaratOS comes from the
   graphite/light + emerald palette and floating product-UI mockups,
   not from abandoning the serif. */
body.mkt h1, body.mkt h2, body.mkt h3, body.mkt .lp-hero h1,
body.mkt [style*="Playfair"] {
  font-family: var(--mkt-font-editorial) !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
}

body.mkt {
  background: var(--mkt-ink);
  color: var(--mkt-text);
  font-family: var(--mkt-font-body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.006em;
}

/* Public reading hierarchy. Brand lockups are deliberately excluded. */
body.mkt :where(button,input,select,textarea) { font-family: var(--mkt-font-body); }
body.mkt :is(.lp-hero h1,.mkt-hero h1) {
  max-width: 18ch;
  font-size: var(--mkt-type-display) !important;
  line-height: .99 !important;
  text-wrap: balance;
}
body.mkt :is(.mkt-section h2,.mkt-page h1,.pr-hero h1) {
  font-size: var(--mkt-type-h2) !important;
  line-height: 1.08 !important;
  text-wrap: balance;
}
body.mkt :is(.mkt-card h3,.mkt-card h4,.mkt-page h2) {
  font-size: var(--mkt-type-h3);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
body.mkt :is(.mkt-hero__sub,.mkt-section__sub,.mkt-page > p,.mkt-page > ul,.mkt-page > ol) {
  max-width: 68ch;
  font-size: var(--mkt-type-body);
  line-height: 1.72;
}
body.mkt :is(.mkt-card p,.mkt-faq__answer,.mkt-footer-links a) {
  font-size: var(--mkt-type-small);
  line-height: 1.62;
}
body.mkt :is(.mkt-eyebrow,.lp-kicker,.pr-eyebrow) {
  font-family: var(--mkt-font-body);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .075em;
}
body.mkt :is(.pr-plan__price,.mkt-float-card__value) { font-variant-numeric: tabular-nums lining-nums; }

@media (max-width:760px) {
  :root, body.mkt[data-theme="light"] {
    --mkt-type-display: clamp(38px, 11.5vw, 52px);
    --mkt-type-h2: clamp(28px, 8vw, 38px);
    --mkt-type-body: 16px;
  }
  body.mkt :is(.lp-hero h1,.mkt-hero h1) { max-width: 14ch; line-height:1.02 !important; }
}

/* Shared public-site spatial contract. Templates retain their individual
   compositions while inheriting one measure, gutter, and section cadence. */
body.mkt {
  --mkt-gutter:clamp(20px, 5vw, 64px);
  --mkt-content:1180px;
  --mkt-reading:760px;
  --mkt-section-space:clamp(64px, 9vw, 112px);
}
body.mkt :where(.lp-wrap,.mkt-nav,.mkt-hero,.mkt-section,.mkt-trust-strip,.mkt-footer-links,.pr-section,.pr-plan-wrap,.pr-links,.pr-trust-strip,.lg-wrap) {
  width:min(var(--mkt-content), calc(100% - 2 * var(--mkt-gutter)));
  margin-inline:auto;
}
body.mkt :where(.mkt-section,.pr-section) { padding-block:var(--mkt-section-space); padding-inline:0; }
body.mkt :where(.mkt-page,.lg-wrap) { width:min(var(--mkt-reading), calc(100% - 2 * var(--mkt-gutter))); margin-inline:auto; }
body.mkt :where(.mkt-grid,.pr-module-grid,.lp-footer__cols) { grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); align-items:stretch; }
body.mkt :where(.mkt-card,.pr-module-card,.feature-card,.contact-card) { min-width:0; height:100%; }
body.mkt :where(.mkt-card,.pr-module-card) > :last-child { margin-bottom:0; }
body.mkt :where(.mkt-hero__grid,.pr-plan,.lp-footer__top) > * { min-width:0; }
body.mkt :where(.mkt-page,.lg-wrap) > :first-child { margin-top:0; }
body.mkt :where(.mkt-page,.lg-wrap) > :last-child { margin-bottom:0; }
body.mkt .mkt-nav { max-width:none; width:100%; padding-inline:var(--mkt-gutter); }
body.mkt .mkt-footer-links { margin-block:var(--mkt-section-space) calc(var(--mkt-section-space) / 2); }
body.mkt img, body.mkt video, body.mkt canvas { max-width:100%; height:auto; }

@media (max-width:900px) {
  body.mkt :where(.mkt-hero__grid,.pr-plan,.lp-footer__top) { grid-template-columns:minmax(0,1fr); }
  body.mkt .mkt-float-stack { margin-top:24px; }
}

@media (max-width:760px) {
  body.mkt { --mkt-gutter:16px; --mkt-section-space:56px; }
  body.mkt .mkt-nav { padding-inline:16px; }
  body.mkt :where(.mkt-page,.lg-wrap) { padding-inline:0; }
  body.mkt :where(.mkt-grid,.pr-module-grid,.lp-footer__cols) { grid-template-columns:minmax(0,1fr); }
  body.mkt :where(.pr-billing-toggle,.mkt-nav__mobile) { max-width:100%; }
  body.mkt .pr-billing-toggle { overflow-x:auto; justify-content:flex-start; }
}

body.mkt ::selection { background: var(--mkt-selection); color: var(--mkt-text-strong); }
body.mkt :is(h1,h2,h3,strong) { color: var(--mkt-text-strong); }
body.mkt :is(p,li) strong { color: var(--mkt-accent); }
body.mkt :focus-visible { outline-color: var(--mkt-accent); }

/* Dark bands inside the light page must keep paper/cream ink. The heading
   lock above would otherwise paint charcoal (#0d352a) onto charcoal CTA,
   plan, and emerald close bands. */
body.mkt .lp-cta-band :is(h1,h2,h3,strong),
body.mkt .lp-plan-band :is(h1,h2,h3,strong) { color: #f4f1e9; }
body.mkt .lp-cta-band p { color: rgba(244, 241, 233, 0.72); }
body.mkt .lp-plan-band > p { color: rgba(244, 241, 233, 0.78); }
body.mkt .lp-plan-band__eyebrow,
body.mkt .lp-plan-band__tier-label { color: rgba(244, 241, 233, 0.72); }
body.mkt .lp-plan-band__amount { color: #f4f1e9; }
body.mkt .lp-plan-band__gst { color: rgba(244, 241, 233, 0.72); }
body.mkt .lp-plan-band__includes li { color: rgba(244, 241, 233, 0.88); }
body.mkt .lp-plan-band__fine { color: rgba(244, 241, 233, 0.64); }
body.mkt .pr-final-cta :is(h1,h2,h3,strong) { color: var(--mkt-accent-ink); }

/* CTA buttons (.lp-primary-btn / .lp-ghost-btn) are duplicated inline
   across several marketing pages (landing/blog/gst-billing/retail-gold/
   guides -- all near-identical page templates) with non-standard weight
   values (750/800/850) and a font-size that falls to 12px on mobile via
   the shared app .btn rule -- below the 16px minimum for readable mobile
   CTA text and too small for a comfortable touch target. Normalized here,
   once, for every page; !important matches this file's existing pattern
   for overriding those per-page inline blocks. */
body.mkt .lp-primary-btn,
body.mkt .lp-ghost-btn {
  font-size: 15px !important;
  font-weight: 700 !important;
  min-height: 48px;
}
@media (max-width: 760px) {
  body.mkt .lp-primary-btn,
  body.mkt .lp-ghost-btn {
    font-size: 16px !important;
    padding: 14px 22px !important;
  }
}

/* :where() keeps this at zero specificity so it only affects plain inline
   text links (nav items, footer links, body copy). Without :where(), the
   type+class combo "body.mkt a" (specificity 0,1,1) was silently beating
   every single-class button color rule across every marketing page --
   .lp-primary-btn, .lp-ghost-btn, .pr-plan__cta, .pr-final-cta -- all of
   which declare a single class selector (0,1,0). Every CTA button on the
   site was rendering with the same dark ink body-text color instead of
   its own intended (usually white) text, regardless of its background. */
:where(body.mkt a) { color: inherit; }

.mkt-display {
  font-family: var(--mkt-font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  color: var(--mkt-text);
}

.mkt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mkt-warm);
}
.mkt-eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mkt-warm);
  box-shadow: 0 0 0 4px var(--mkt-warm-dim);
}

/* ── Nav ── */
.mkt-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: color-mix(in srgb, var(--mkt-ink) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--mkt-border);
}
.mkt-nav__logo {
  font-family: var(--mkt-font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--mkt-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mkt-nav__logo .mkt-nav__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--mkt-accent);
  box-shadow: 0 0 0 5px var(--mkt-accent-dim);
}
.mkt-nav__logo .mkt-nav__gem { width: 18px; height: 18px; color: var(--mkt-text); flex-shrink: 0; }
.mkt-nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.mkt-nav__links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--mkt-text-dim);
  text-decoration: none;
  transition: color 150ms ease;
}
.mkt-nav__links a:hover,
.mkt-nav__links a.is-active { color: var(--mkt-text); }
.mkt-nav__links a.mkt-nav__cta {
  color: var(--mkt-accent-ink);
  background: var(--mkt-accent);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
}
.mkt-nav__links a.mkt-nav__cta:hover { filter: brightness(1.08); }
.mkt-nav__menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--mkt-border);
  border-radius: 10px;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--mkt-text);
  cursor: pointer;
}

.mkt-nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 199;
  background: var(--mkt-ink);
  padding: 88px 28px 28px;
  flex-direction: column;
  gap: 4px;
}
.mkt-nav__mobile.is-open { display: flex; }
.mkt-nav__mobile a {
  padding: 16px 4px;
  font-size: 18px;
  font-weight: 600;
  color: var(--mkt-text);
  text-decoration: none;
  border-bottom: 1px solid var(--mkt-border);
}
.mkt-nav__mobile a.mkt-nav__cta {
  margin-top: 16px;
  text-align: center;
  background: var(--mkt-accent);
  color: var(--mkt-accent-ink);
  border-radius: 999px;
  border-bottom: none;
}

@media (max-width: 860px) {
  .mkt-nav__links { display: none; }
  .mkt-nav__menu-btn { display: inline-flex; }
}

/* ── Hero ── */
.mkt-hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 88px 24px 40px;
}
.mkt-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.mkt-hero h1 { font-size: clamp(36px, 5vw, 56px); margin: 18px 0 20px; }
.mkt-hero p.mkt-hero__sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--mkt-text-dim);
  max-width: 46ch;
  margin-bottom: 28px;
}
@media (max-width: 900px) {
  .mkt-hero__grid { grid-template-columns: 1fr; }
}

/* ── Floating UI card stack (the KaratOS-differentiating hero device) ── */
.mkt-float-stack {
  position: relative;
  min-height: 360px;
}
.mkt-float-card {
  position: absolute;
  background: var(--mkt-surface);
  border: 1px solid var(--mkt-border);
  border-radius: var(--mkt-radius);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.55);
  padding: 16px 18px;
}
.mkt-float-card--1 { top: 0; left: 6%; width: 78%; transform: rotate(-2.5deg); z-index: 3; }
.mkt-float-card--2 { top: 34%; right: 0; width: 62%; transform: rotate(3deg); z-index: 2; }
.mkt-float-card--3 { bottom: 0; left: 0; width: 58%; transform: rotate(-4deg); z-index: 1; }
.mkt-float-card__label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mkt-text-dim); margin-bottom: 8px; font-weight: 700; }
.mkt-float-card__value { font-family: var(--mkt-font-display); font-weight: 800; font-size: 24px; color: var(--mkt-text); }
.mkt-float-card__delta { font-size: 12px; color: var(--mkt-accent); margin-top: 4px; }
.mkt-float-card__chat { display: flex; flex-direction: column; gap: 8px; }
.mkt-float-card__bubble { background: var(--mkt-surface-2); border-radius: 12px; padding: 8px 12px; font-size: 13px; color: var(--mkt-text); max-width: 90%; }
.mkt-float-card__bubble--accent { background: var(--mkt-accent-dim); color: var(--mkt-accent); align-self: flex-end; }

@media (prefers-reduced-motion: no-preference) {
  .mkt-float-card { animation: mkt-float 6s ease-in-out infinite; }
  .mkt-float-card--2 { animation-delay: -2s; }
  .mkt-float-card--3 { animation-delay: -4s; }
}
@keyframes mkt-float {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-8px) rotate(var(--r, 0deg)); }
}
.mkt-float-card--1 { --r: -2.5deg; }
.mkt-float-card--2 { --r: 3deg; }
.mkt-float-card--3 { --r: -4deg; }

/* ── Buttons ── */
.mkt-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 160ms ease, filter 160ms ease;
  cursor: pointer;
  border: none;
}
.mkt-btn:hover { transform: translateY(-1px); }
.mkt-btn--primary { background: var(--mkt-accent); color: var(--mkt-accent-ink); }
.mkt-btn--primary:hover { background: var(--mkt-accent-hover); }
.mkt-btn--ghost { background: transparent; color: var(--mkt-text); border: 1px solid var(--mkt-border); }
.mkt-btn--ghost:hover { border-color: var(--mkt-text-dim); }

/* ── Sections, cards, content pages ── */
.mkt-section { max-width: 1024px; margin: 0 auto; padding: 64px 24px; }
.mkt-section--narrow { max-width: 760px; }
.mkt-section h2 { font-size: clamp(26px, 3.5vw, 34px); margin-bottom: 12px; }
.mkt-section__sub { color: var(--mkt-text-dim); font-size: 15.5px; max-width: 56ch; margin-bottom: 36px; }

.mkt-section:nth-of-type(even) .mkt-card { background: color-mix(in srgb, var(--mkt-surface-3) 58%, var(--mkt-surface)); }
.mkt-section:nth-of-type(3n) .mkt-card .material-symbols-outlined { color: var(--mkt-warm); }

.mkt-card {
  background: var(--mkt-surface);
  border: 1px solid var(--mkt-border);
  border-radius: var(--mkt-radius);
  padding: 22px;
}
.mkt-card h4 { color: var(--mkt-text); font-size: 15.5px; margin: 10px 0 4px; }
.mkt-card p { color: var(--mkt-text-dim); font-size: 13.5px; line-height: 1.55; margin: 0; }
.mkt-card .material-symbols-outlined { color: var(--mkt-accent); font-size: 22px; }

.mkt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

.mkt-faq details {
  border: 1px solid var(--mkt-border);
  border-radius: var(--mkt-radius);
  background: var(--mkt-surface);
  overflow: hidden;
  margin-bottom: 10px;
}
.mkt-faq summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  color: var(--mkt-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mkt-faq summary::-webkit-details-marker { display: none; }
.mkt-faq summary .material-symbols-outlined { transition: transform 200ms ease; color: var(--mkt-text-dim); flex-shrink: 0; }
.mkt-faq details[open] summary .material-symbols-outlined { transform: rotate(180deg); }
.mkt-faq__answer { padding: 0 20px 18px; font-size: 14.5px; color: var(--mkt-text-dim); line-height: 1.65; }

/* Plain content pages (about/contact/security/etc) that used to be .lg-wrap */
.mkt-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}
.mkt-page h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.mkt-page p { color: var(--mkt-text-dim); font-size: 15.5px; line-height: 1.7; }
.mkt-page h2 { font-size: 22px; margin: 36px 0 12px; color: var(--mkt-text); }
.mkt-page ul, .mkt-page ol { color: var(--mkt-text-dim); font-size: 15px; line-height: 1.8; padding-left: 20px; }
.mkt-page a { color: var(--mkt-accent); }

.mkt-footer-links { max-width: 1024px; margin: 40px auto 80px; padding: 0 24px; display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }
.mkt-footer-links a { font-size: 13.5px; color: var(--mkt-text-dim); text-decoration: none; }
.mkt-footer-links a:hover { color: var(--mkt-text); }

.mkt-trust-strip {
  max-width: 1024px; margin: 0 auto; padding: 8px 24px 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px;
}
.mkt-trust-item { text-align: center; }
.mkt-trust-item .material-symbols-outlined { color: var(--mkt-accent); font-size: 22px; margin-bottom: 6px; }
.mkt-trust-item__label { font-size: 12.5px; color: var(--mkt-text-dim); line-height: 1.4; }

/* Responsive contract shared by every marketing route. */
img, svg, video { max-width: 100%; height: auto; }

@media (max-width: 760px) {
  .mkt-nav {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }

  .mkt-hero,
  .mkt-section,
  .mkt-page {
    padding-left: max(18px, env(safe-area-inset-left, 0px));
    padding-right: max(18px, env(safe-area-inset-right, 0px));
  }

  .mkt-hero { padding-top: 56px; padding-bottom: 52px; }
  .mkt-section { padding-top: 48px; padding-bottom: 48px; }
  .mkt-grid { grid-template-columns: minmax(0, 1fr); }
  .mkt-card { padding: 18px; }

  .mkt-btn,
  .mkt-faq summary,
  .mkt-footer-links a {
    min-height: 44px;
  }

  .mkt-footer-links {
    gap: 8px 18px;
    padding-left: max(18px, env(safe-area-inset-left, 0px));
    padding-right: max(18px, env(safe-area-inset-right, 0px));
  }
}

@media (max-width: 390px) {
  .mkt-btn { width: 100%; justify-content: center; }
  .mkt-page h1 { font-size: clamp(28px, 10vw, 36px); }
  .mkt-float-card { position: relative; inset: auto; width: 100%; transform: none; }
  .mkt-float-card + .mkt-float-card { margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .mkt-float-card { animation: none; }
  .mkt-btn { transition: color 120ms ease, background-color 120ms ease, border-color 120ms ease; }
}

/* Cross-page marketing harden + adapt */
.mkt-section,
.mkt-page,
.mkt-hero,
.mkt-grid,
.mkt-card {
  min-width: 0;
}

.mkt-grid > *,
.mkt-card,
.mkt-faq summary,
.mkt-nav a,
.mkt-footer-links a {
  min-width: 0;
}

.mkt-section h1,
.mkt-section h2,
.mkt-page h1,
.mkt-hero h1 {
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.mkt-section__sub,
.mkt-card p,
.mkt-faq__answer,
.mkt-page p {
  overflow-wrap: anywhere;
}

.mkt-faq summary {
  overflow-wrap: anywhere;
  text-align: start;
}

.mkt-btn:focus-visible,
.mkt-faq summary:focus-visible,
.mkt-nav a:focus-visible {
  outline: 2px solid var(--mkt-accent);
  outline-offset: 2px;
}

@media (min-width: 761px) and (max-width: 1100px) {
  .mkt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
