/* velvv web — design system v4.
   Clean, modern product UI. Light theme with a restrained palette.
   One accent (magenta) for active states and primary actions.
   Typography: Inter (body) + Fraunces (display). No decorative gradients on surfaces. */
:root {
  /* Surfaces */
  --bg: #f8f9fc;
  --bg-sidebar: #ffffff;
  --bg-card: #ffffff;
  --bg-hover: #f1f3f9;
  --bg-active: #f0e6f0;
  --bg-input: #f4f5f9;

  /* Borders */
  --border: #e2e5ee;
  --border-light: #edf0f5;
  --border-focus: #c43a8c;

  /* Text */
  --ink: #1a1d2e;
  --text: #3d4155;
  --text-secondary: #6b7194;
  --text-muted: #9198b0;
  --text-on-accent: #ffffff;

  /* Brand / accent */
  --brand: #c43a8c;
  --brand-bright: #c43a8c;
  --brand-light: #f5e0ed;
  --brand-hover: #a30d6e;
  --brand-glow: #ee5cb2;

  /* Semantic */
  --green: #22a861;
  --green-bg: #e8f8f0;
  --orange: #d97706;
  --orange-bg: #fef3cd;
  --red: #dc3545;
  --red-bg: #fde8ea;
  --blue: #3b82f6;
  --blue-bg: #e8f0fe;
  --gold: #b8860b;
  --gold-bg: #fdf6e3;
  --gold-bright: #e8b765;

  /* Radius */
  --r-xs: 6px;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.04);

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Max width */
  --maxw: 1380px;

  /* Surfaces (admin) */
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-3: rgba(255, 255, 255, 0.10);

  /* Easing */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Focus ring */
  --ring: 0 0 0 3px rgba(196,58,140,0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 14px;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--brand-light); color: var(--ink); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 4px; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ── Buttons ── */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--r-sm); border: 1px solid transparent;
  font: 600 13.5px/1 var(--font); letter-spacing: -0.01em; cursor: pointer;
  white-space: nowrap; transition: all .15s var(--ease);
  background: var(--brand); color: var(--text-on-accent);
  box-shadow: 0 1px 2px rgba(196,58,140,0.15);
}
.btn:hover { background: var(--brand-hover); box-shadow: 0 2px 8px rgba(196,58,140,0.25); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn svg { width: 16px; height: 16px; }
.btn.ghost {
  background: var(--bg-card); border-color: var(--border); color: var(--text);
  box-shadow: var(--shadow-xs);
}
.btn.ghost:hover { background: var(--bg-hover); box-shadow: var(--shadow-sm); }
.btn.small { padding: 7px 14px; font-size: 12.5px; border-radius: var(--r-xs); }
.btn.block { width: 100%; justify-content: center; }
.btn.danger { background: var(--red); box-shadow: 0 1px 2px rgba(220,53,69,0.15); }
.btn.danger:hover { background: #c82333; box-shadow: 0 2px 8px rgba(220,53,69,0.25); }
.btn.approve { background: var(--green); }
.btn.approve:hover { background: #1e8e4f; }
.btn.gold { background: var(--gold); color: #fff; }
.btn.gold:hover { background: #a07509; }
.btn.warn { background: var(--orange-bg); color: var(--orange); border-color: var(--orange); }
.btn.warn:hover { background: #fef3cd; }

/* ── Cards / inputs ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--r);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

input, select, textarea {
  width: 100%; padding: 10px 14px; border-radius: var(--r-sm);
  background: var(--bg-input); border: 1px solid var(--border);
  color: var(--ink); font: 450 14px/1.45 var(--font);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand); background: var(--bg-card);
  box-shadow: var(--ring);
}
select { appearance: none; cursor: pointer; }
label {
  display: block; font: 600 12px/1 var(--font); letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--text-secondary); margin-bottom: 6px;
}

/* ── Pills / chips ── */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--r-pill);
  font: 600 11px/1 var(--font); letter-spacing: 0.02em;
}
.pill svg { width: 12px; height: 12px; }
.pill.live { background: var(--green-bg); color: var(--green); }
.pill.ok   { background: var(--green-bg); color: var(--green); }
.pill.warn { background: var(--orange-bg); color: var(--orange); }
.pill.brand { background: var(--brand-light); color: var(--brand); }
.pill.dim  { background: var(--bg-hover); color: var(--text-muted); }
.pill.danger { background: var(--red-bg); color: var(--red); }
.pill.info { background: var(--blue-bg); color: var(--blue); }

/* ── Icon helper ── */
.ic {
  width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.75;
  fill: none; stroke-linecap: round; stroke-linejoin: round; display: block;
}

/* ── Skeleton loading ── */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--bg-hover) 25%, var(--border-light) 50%, var(--bg-hover) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--r-sm);
}
.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-text:last-child { width: 60%; }
.skeleton-heading { height: 20px; width: 40%; margin-bottom: 16px; }
.skeleton-card { height: 120px; border-radius: var(--r); }
.skeleton-row { height: 48px; margin-bottom: 8px; }

/* ── Disabled state ── */
.btn:disabled, .btn[disabled] {
  opacity: 0.5; cursor: not-allowed; pointer-events: none;
}
input:disabled, select:disabled, textarea:disabled {
  opacity: 0.6; cursor: not-allowed; background: var(--bg-hover);
}

/* ── Badge ── */
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: var(--r-pill); font: 700 10px/1 var(--mono);
  background: var(--brand); color: #fff;
}
.badge.green { background: var(--green); }
.badge.orange { background: var(--orange); }
.badge.red { background: var(--red); }

/* ── Tooltip ── */
[data-tooltip] { position: relative; }
[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  padding: 6px 10px; border-radius: var(--r-xs);
  background: var(--ink); color: #fff;
  font: 500 11px/1.4 var(--font); white-space: nowrap;
  pointer-events: none; z-index: 50;
  margin-bottom: 6px;
}

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

/* ═══════════════════════════════════════════════════════════════
   Marketing dark-theme overrides
   Marketing pages have <div class="mesh"> as first body child.
   Scope dark overrides to body:has(> .mesh) so the admin panel
   (no .mesh) keeps its light theme untouched.
   ═══════════════════════════════════════════════════════════════ */
body:has(> .mesh) {
  --bg: #070409;
  --bg-card: rgba(255,255,255,.06);
  --text: #f8f1f6;
  --text-dim: rgba(248,241,246,.58);
  --text-faint: rgba(248,241,246,.34);
  --border: rgba(255,255,255,.10);
  --border-bright: rgba(255,255,255,.22);
  --brand: #a30d6e;
  --gold: #ca8a04;
  --gold-bright: #e8b765;
  --font: 'Hanken Grotesk', system-ui, sans-serif;
  --maxw: 1380px;
  --shadow-card: none;
  --ring: 0 0 0 3px rgba(238,92,178,.25);
}
body:has(> .mesh) a { color: inherit; }
body:has(> .mesh) h1, body:has(> .mesh) h2, body:has(> .mesh) h3, body:has(> .mesh) .display {
  color: #f8f1f6;
}
body:has(> .mesh) ::selection { background: rgba(238,92,178,.3); color: #fff; }
body:has(> .mesh) .btn { box-shadow: 0 2px 16px -4px rgba(238,92,178,.35); }
body:has(> .mesh) .btn:hover { box-shadow: 0 6px 28px -6px rgba(238,92,178,.45); }
body:has(> .mesh) .card { border-color: rgba(255,255,255,.08); box-shadow: none; }
body:has(> .mesh) input, body:has(> .mesh) select, body:has(> .mesh) textarea {
  background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #f8f1f6;
}
body:has(> .mesh) input::placeholder, body:has(> .mesh) textarea::placeholder {
  color: rgba(248,241,246,.34);
}
body:has(> .mesh) input:focus, body:has(> .mesh) select:focus, body:has(> .mesh) textarea:focus {
  border-color: #ee5cb2; background: rgba(255,255,255,.08);
}
body:has(> .mesh) label { color: rgba(248,241,246,.58); }

/* Store buttons must stay dark-on-white regardless of dark-theme overrides */
body:has(> .mesh) .store-btn { color: #0a0710; background: #fff; }
body:has(> .mesh) .store-btn svg { color: #0a0710; }
body:has(> .mesh) .store-btn:hover { background: #f0f0f0; }
body:has(> .mesh) .store-btn.dark { color: #fff; background: rgba(8,4,9,.66); }
body:has(> .mesh) .store-btn.dark svg { color: #fff; }

/* ═══════════════════════════════════════════════════════════════
   Marketing pages — dark theme overrides
   The admin panel above uses light theme vars. Marketing pages
   (landing, hookups, casual, etc.) need dark backgrounds, the
   mesh glow, and the sticky nav. These styles are scoped to the
   marketing HTML pages that include <div class="mesh">.
   ═══════════════════════════════════════════════════════════════ */

/* ── Ambient mesh glow (dark pages only) ── */
.mesh { position: fixed; inset: 0; z-index: -2; background:
    radial-gradient(140% 100% at 50% -10%, #140912 0%, #070409 46%, #050207 100%);
  overflow: hidden; pointer-events: none; }
.mesh i { position: absolute; border-radius: 50%; filter: blur(130px); will-change: transform; }
.mesh i:nth-child(1) {
  width: 820px; height: 560px; top: -300px; left: 50%; margin-left: -410px;
  background: radial-gradient(circle, rgba(196,58,140,0.55), transparent 66%);
  opacity: 0.42; animation: drift1 28s var(--ease) infinite alternate;
}
.mesh i:nth-child(2) {
  width: 520px; height: 520px; bottom: -260px; left: -180px;
  background: radial-gradient(circle, rgba(163,13,110,0.42), transparent 68%);
  opacity: 0.3; animation: drift2 32s var(--ease) infinite alternate;
}
.mesh i:nth-child(3) {
  width: 440px; height: 440px; top: 42%; right: -200px;
  background: radial-gradient(circle, rgba(232,183,101,0.22), transparent 70%);
  opacity: 0.26; animation: drift1 36s var(--ease) -8s infinite alternate;
}
@keyframes drift1 { to { transform: translate3d(28px, 24px, 0) scale(1.08); } }
@keyframes drift2 { to { transform: translate3d(-24px, -18px, 0) scale(1.1); } }
.mesh::before {
  content: ''; position: absolute; inset: 0; opacity: 0.5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}

/* ── Top nav (marketing pages) ── */
.nav { position: sticky; top: 0; z-index: 50; transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(7,4,9,.74); backdrop-filter: blur(18px) saturate(1.4); border-bottom-color: rgba(255,255,255,.09); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; max-width: 1600px; margin: 0 auto; padding: 0 28px; }
.nav .logo { height: 25px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: rgba(248,241,246,.66); font-size: 14.5px; font-weight: 500; transition: color .15s; }
.nav-links a:hover, .nav-links a.here { color: #fff; }
.nav-links a[data-app-login] { color: #fff; border: 1px solid rgba(255,255,255,.22);
  padding: 7px 16px; border-radius: 999px; transition: background .15s, border-color .15s; }
.nav-links a[data-app-login]:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); }
@media (min-width: 981px){ .nav-links > .store-btns { display: none; } }
@media (max-width: 980px){ .nav-links .hide-sm { display: none; } .nav-links { gap: 16px; } .nav-inner { padding: 0 20px; } }

/* Active-page wayfinding */
.nav-links a.here { position: relative; }
.nav-links a.here::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; border-radius: 2px;
  background: #ee5cb2; box-shadow: 0 0 10px #ee5cb2;
}

/* ── Store buttons ── */
.store-btns { display: inline-flex; gap: 12px; flex-wrap: wrap; }
.store-btn { display: inline-flex; align-items: center; gap: 11px; padding: 11px 18px; border-radius: 15px;
  background: #fff; color: #0a0710; border: 1px solid rgba(255,255,255,.16);
  transition: transform .16s var(--ease), box-shadow .22s var(--ease); }
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -16px rgba(0,0,0,.8); }
.store-btn svg { width: 25px; height: 25px; flex-shrink: 0; }
.store-btn .lbl { text-align: left; line-height: 1.08; }
.store-btn .lbl small { display: block; font: 600 9.5px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; opacity: .66; }
.store-btn .lbl b { font: 600 16px/1.1 var(--font-display); letter-spacing: -.01em; }
.store-btn.mini { padding: 8px 13px; border-radius: 12px; gap: 8px; }
.store-btn.mini svg { width: 19px; height: 19px; }
.store-btn.mini .lbl b { font-size: 13.5px; }
.store-btn.mini .lbl small { font-size: 8px; }
.store-btn.dark { background: rgba(8,4,9,.66); color: #fff; border-color: rgba(255,255,255,.20); backdrop-filter: blur(10px); }
.nav-links .store-btn { color: #0a0710; }
.nav-links .store-btn.dark { color: #fff; }
@media (max-width: 640px){
  .nav-links .store-btns { gap: 8px; }
  .nav-links .store-btn .lbl small { display: none; }
  .nav-links .store-btn.mini { padding: 8px 11px; }
  .nav-links .store-btn .lbl b { font-size: 12.5px; }
}

/* ── Footer ── */
.site-foot { border-top: 1px solid rgba(255,255,255,.09); padding: 54px 28px; margin-top: 30px; }
.foot-inner { max-width: 1600px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.foot-inner .logo { height: 23px; opacity: .92; }
.foot-links { display: flex; flex-wrap: wrap; }
.foot-links a { color: rgba(248,241,246,.66); font-size: 13.5px; margin-left: 24px; transition: color .15s; }
.foot-links a:hover { color: #fff; }
.foot-copy { color: rgba(248,241,246,.42); font-size: 13px; width: 100%; margin-top: 12px; }
.foot-by { margin-top: 4px; letter-spacing: 0.2px; }
.foot-by a { color: rgba(248,241,246,.66); text-decoration: none; border-bottom: 1px solid rgba(248,241,246,.26); transition: color .15s; }
.foot-by a:hover { color: #fff; }
.foot-social-wrap { width: 100%; order: -1; margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.09); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-social-label { font-family: var(--font-display); font-style: italic; font-size: 20px; color: #f8f1f6; }
.foot-social-label b { font-style: normal; font-weight: 600; color: #ee5cb2; }
.foot-social { display: flex; gap: 12px; flex-wrap: wrap; }
.foot-social a {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.20); color: #f8f1f6;
  transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s;
}
.foot-social a svg { width: 20px; height: 20px; }
.foot-social a:hover {
  background: linear-gradient(135deg, #ee5cb2, #a30d6e); border-color: transparent;
  color: #fff; transform: translateY(-3px);
  box-shadow: 0 14px 30px -12px rgba(196,58,140,.7);
}
@media (max-width: 640px){ .foot-social-wrap { justify-content: center; text-align: center; } }

/* ── Back to top ── */
.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(15,8,14,.78); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.20); color: #fff;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s, background .2s, border-color .2s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: linear-gradient(135deg, #ee5cb2, #a30d6e); border-color: transparent; }
.back-to-top svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce){ .back-to-top { transition: opacity .01s, visibility 0s; } }

/* ── Mobile menu (hamburger + slide-in sheet; injected by nav.js) ── */
.nav-toggle { display: none; }
.mobile-menu { display: none; }
@media (max-width: 980px) {
  .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: auto;
    border-radius: 12px; border: 1px solid rgba(255,255,255,.20); background: rgba(255,255,255,.06);
    color: #f8f1f6; cursor: pointer; backdrop-filter: blur(8px);
    transition: background .15s var(--ease);
  }
  .nav-toggle:hover { background: rgba(255,255,255,.10); }
  .nav-toggle svg { width: 22px; height: 22px; }
  .nav-links { display: none; }
  .mobile-menu { display: block; position: fixed; inset: 0; z-index: 200; }
  .mobile-menu[hidden] { display: none; }
  .mm-backdrop { position: absolute; inset: 0; background: rgba(4,2,7,.6);
    opacity: 0; transition: opacity .32s var(--ease); backdrop-filter: blur(2px); }
  .mm-panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 360px);
    padding: calc(20px + env(safe-area-inset-top)) 24px calc(28px + env(safe-area-inset-bottom));
    display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
    background: linear-gradient(180deg, #140912, #070409 60%);
    border-left: 1px solid rgba(255,255,255,.20); box-shadow: -40px 0 90px -30px rgba(0,0,0,.9);
    transform: translateX(100%); transition: transform .34s var(--ease);
  }
  .mobile-menu.open .mm-backdrop { opacity: 1; }
  .mobile-menu.open .mm-panel { transform: none; }
  .mm-close { align-self: flex-end; width: 44px; height: 44px; display: grid; place-items: center;
    margin-bottom: 8px; border: 0; border-radius: 12px; background: transparent; color: rgba(248,241,246,.66); cursor: pointer; }
  .mm-close:hover { color: #fff; }
  .mm-close svg { width: 24px; height: 24px; }
  .mm-links { display: flex; flex-direction: column; }
  .mm-links a {
    display: flex; align-items: center; min-height: 52px; padding: 4px 4px;
    font: 600 19px/1.1 var(--font-display); letter-spacing: -.01em; color: rgba(248,241,246,.66);
    border-bottom: 1px solid rgba(255,255,255,.09); transition: color .15s, padding-left .18s var(--ease);
  }
  .mm-links a:hover, .mm-links a:focus-visible { color: #fff; padding-left: 8px; }
  .mm-links a.here { color: #ee5cb2; }
  .mm-stores { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
  .mm-stores .store-btn { width: 100%; justify-content: center; }
}

/* ── Scroll-reveal (marketing pages) ── */
@keyframes revealSafety { to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .85s var(--ease), transform .85s var(--ease);
  animation: revealSafety .85s var(--ease) 2.6s forwards; }
.reveal.in { opacity: 1; transform: none; animation: none; }

/* ── Mobile ergonomics (marketing pages) ── */
@media (max-width: 640px) {
  .nav-inner { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
  .site-foot { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
  .store-btn.mini, .nav-links .store-btn.mini { padding-top: 12px; padding-bottom: 12px; }
}

/* ═══════════════════════════════════════════════════════════════
   Section scaffolding (marketing pages)
   ═══════════════════════════════════════════════════════════════ */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px){ .wrap { padding: 0 20px; } }

.band { padding: 84px 0; position: relative; }
.sec-head { max-width: 720px; margin-bottom: 44px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head .eyebrow { margin-bottom: 18px; }
h2.sec { font-family: var(--font-display); font-size: clamp(32px,4.8vw,52px); letter-spacing: -0.025em; font-weight: 600; line-height: 1.04; }
h2.sec em { font-style: italic; color: var(--brand-glow); font-weight: 500; }
.sec-sub { color: var(--text-dim); margin-top: 16px; font-size: 17px; max-width: 620px; }
.sec-head.center .sec-sub { margin-left: auto; margin-right: auto; }

/* ═══════════════════════════════════════════════════════════════
   Eyebrow / kicker (small-caps label)
   ═══════════════════════════════════════════════════════════════ */
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font: 700 12px/1 var(--font); letter-spacing: 2.4px; text-transform: uppercase; color: var(--brand-glow); }
.eyebrow.gold { color: var(--gold-bright); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }

/* ═══════════════════════════════════════════════════════════════
   Lifestyle feature cards
   ═══════════════════════════════════════════════════════════════ */
.lifecard {
  position: relative; min-height: 480px; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-card);
  display: flex; align-items: flex-end; isolation: isolate;
}
.lifecard .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.1s var(--ease); }
.lifecard:hover .bg { transform: scale(1.045); }
.lifecard .scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,2,7,.92) 0%, rgba(5,2,7,.66) 34%, rgba(5,2,7,.12) 64%, transparent 84%),
    linear-gradient(0deg, rgba(5,2,7,.72) 0%, transparent 46%);
}
.lifecard.right { justify-content: flex-end; text-align: right; }
.lifecard.right .scrim {
  background:
    linear-gradient(270deg, rgba(5,2,7,.92) 0%, rgba(5,2,7,.66) 34%, rgba(5,2,7,.12) 64%, transparent 84%),
    linear-gradient(0deg, rgba(5,2,7,.72) 0%, transparent 46%);
}
.lifecard .lc-copy { position: relative; padding: 52px; max-width: 540px; }
.lifecard.right .lc-copy { display: inline-flex; flex-direction: column; align-items: flex-end; }
.lifecard .eyebrow { margin-bottom: 18px; }
.lifecard h3 { font-family: var(--font-display); font-size: clamp(27px,3.3vw,40px); line-height: 1.04; letter-spacing: -0.025em; font-weight: 600; }
.lifecard h3 em { font-style: italic; color: var(--brand-glow); font-weight: 500; }
.lifecard p { color: rgba(248,241,246,.82); font-size: 16px; line-height: 1.62; margin-top: 14px; }
.lifecard .pts { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 8px; }
.lifecard.right .pts { justify-content: flex-end; }
.lifecard .tag { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font: 600 13px/1 var(--font); color: #fff; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(6px); }
.lifecard .tag svg { width: 15px; height: 15px; color: var(--brand-glow); }

.life-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.life-row .lifecard { min-height: 420px; }

@media (max-width: 860px){
  .life-row { grid-template-columns: 1fr; }
  .lifecard { min-height: 420px; }
  .lifecard .lc-copy { padding: 36px 30px; max-width: 100%; }
  .lifecard.right, .lifecard.right .lc-copy { text-align: left; align-items: flex-start; }
  .lifecard.right .pts { justify-content: flex-start; }
  .lifecard .scrim, .lifecard.right .scrim {
    background: linear-gradient(0deg, rgba(5,2,7,.95) 4%, rgba(5,2,7,.55) 46%, rgba(5,2,7,.15) 100%);
  }
}

/* Card link cue */
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font: 700 14px/1 var(--font); color: #fff; }
.more svg { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.lifecard:hover .more svg { transform: translateX(4px); }
.lifecard.right .more { flex-direction: row-reverse; }

/* ═══════════════════════════════════════════════════════════════
   Sub-page hero (compact, photo-backed)
   ═══════════════════════════════════════════════════════════════ */
.phero { position: relative; min-height: 66vh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.phero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.phero .scrim { position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
    linear-gradient(90deg, rgba(5,2,7,.92) 0%, rgba(5,2,7,.62) 42%, rgba(5,2,7,.2) 78%, rgba(5,2,7,.4) 100%),
    linear-gradient(0deg, var(--bg) 1.5%, transparent 44%); }
.phero.gold .scrim { background:
    linear-gradient(90deg, rgba(8,5,3,.93) 0%, rgba(8,5,3,.6) 44%, rgba(8,5,3,.2) 100%),
    radial-gradient(120% 120% at 100% 0%, rgba(232,183,101,.2), transparent 56%),
    linear-gradient(0deg, var(--bg) 1.5%, transparent 44%); }
.phero-inner { max-width: var(--maxw); width: 100%; margin: 0 auto; padding: 0 28px 66px; }
.phero .eyebrow { margin-bottom: 20px; }
.phero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(40px, 6.8vw, 88px); line-height: 0.97; letter-spacing: -0.032em; max-width: 16ch; }
.phero h1 em { font-style: italic; font-weight: 500; color: var(--brand-glow); }
.phero.gold h1 em { color: var(--gold-bright); }
.phero .lede { color: rgba(248,241,246,.85); font-size: clamp(16px, 2vw, 20px); line-height: 1.6; max-width: 56ch; margin-top: 20px; }
.phero .cta { display: flex; gap: 13px; margin-top: 32px; flex-wrap: wrap; }
@media (max-width: 640px){ .phero { min-height: 70vh; } .phero-inner { padding: 0 20px 48px; } }

/* ═══════════════════════════════════════════════════════════════
   Plain feature grid (icon + title + text)
   ═══════════════════════════════════════════════════════════════ */
.feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 760px){ .feats { grid-template-columns: 1fr; } }
.feats.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px){ .feats.three { grid-template-columns: 1fr; } }
.feat { display: flex; gap: 16px; padding: 26px; border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
  border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.feat .fi { flex-shrink: 0; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(238,92,178,.14); border: 1px solid rgba(238,92,178,.3); }
.feat .fi svg { width: 22px; height: 22px; color: var(--brand-glow); stroke-width: 1.9; }
.feat h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
.feat p { color: var(--text-dim); font-size: 15px; line-height: 1.6; margin-top: 8px; }
.feat.gold .fi { background: rgba(232,183,101,.14); border-color: rgba(232,183,101,.32); }
.feat.gold .fi svg { color: var(--gold-bright); }
.feat.stealth { background: linear-gradient(180deg, rgba(238,92,178,.08), rgba(255,255,255,.018)); border-color: rgba(238,92,178,.22); }
.feat.stealth .fi { background: rgba(238,92,178,.18); }

/* Hover lift for cards */
.feat, .tier, .mediacard { transition: transform .24s var(--ease), border-color .24s var(--ease), box-shadow .24s var(--ease); }
.feat:hover { transform: translateY(-3px); border-color: var(--border-bright); box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 40px 80px -40px rgba(0,0,0,.92); }
.feat.stealth:hover { border-color: rgba(238,92,178,.42); }

/* ═══════════════════════════════════════════════════════════════
   Exclusive tier cards
   ═══════════════════════════════════════════════════════════════ */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 900px){ .tiers { grid-template-columns: 1fr; } }
.tier { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); padding: 34px 30px;
  border: 1px solid rgba(232,183,101,.26); overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, rgba(232,183,101,.08), rgba(255,255,255,.018)); box-shadow: var(--shadow-card); }
.tier::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 90% at 100% 0%, rgba(232,183,101,.16), transparent 60%); }
.tier .crown { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(232,183,101,.16); border: 1px solid rgba(232,183,101,.34); }
.tier .crown svg { width: 21px; height: 21px; color: var(--gold-bright); }
.tier .who { font: 700 11.5px/1 var(--font); letter-spacing: 2px; text-transform: uppercase; color: var(--gold-bright); }
.tier h3 { font-family: var(--font-display); font-size: clamp(28px,3.4vw,36px); font-weight: 600; letter-spacing: -0.02em; margin-top: 10px; }
.tier > p { color: var(--text-dim); font-size: 15px; line-height: 1.6; margin-top: 12px; }
.tier ul { list-style: none; margin-top: 20px; display: grid; gap: 11px; }
.tier li { display: flex; gap: 10px; font-size: 14px; line-height: 1.45; color: rgba(248,241,246,.85); }
.tier li svg { width: 17px; height: 17px; color: var(--gold-bright); flex-shrink: 0; margin-top: 1px; }
.tier:hover { transform: translateY(-3px); border-color: rgba(232,183,101,.5); box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 40px 80px -40px rgba(0,0,0,.92); }

/* ═══════════════════════════════════════════════════════════════
   Split layout (copy + visual)
   ═══════════════════════════════════════════════════════════════ */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.split .v { display: flex; justify-content: center; }
@media (max-width: 900px){ .split { grid-template-columns: 1fr; gap: 36px; } .split .v { order: -1; } }

/* ═══════════════════════════════════════════════════════════════
   Chat preview mockup (messaging page + home)
   ═══════════════════════════════════════════════════════════════ */
.chatcard { max-width: 430px; width: 100%; border-radius: 30px; padding: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid var(--border-bright); box-shadow: 0 50px 100px -45px rgba(0,0,0,.95); backdrop-filter: blur(14px); }
.chat-head { display: flex; align-items: center; gap: 11px; padding: 6px 8px 14px; border-bottom: 1px solid var(--border); }
.chat-head .av { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: linear-gradient(135deg, var(--brand-glow), var(--brand)); }
.chat-head .nm { font-weight: 700; font-size: 15px; line-height: 1.1; }
.chat-head .st { font-size: 12px; color: var(--green); display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; }
.chat-head .st::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.chat-head .acts { margin-left: auto; display: flex; gap: 16px; color: var(--text-dim); }
.chat-head .acts svg { width: 21px; height: 21px; }
.bubbles { display: flex; flex-direction: column; gap: 10px; padding: 16px 8px 8px; }
.bub { max-width: 80%; padding: 11px 15px; border-radius: 19px; font-size: 14.5px; line-height: 1.4; }
.bub.in { align-self: flex-start; background: var(--surface-3); border-bottom-left-radius: 6px; }
.bub.out { align-self: flex-end; background: linear-gradient(135deg, var(--brand-glow), var(--brand)); color: #fff; border-bottom-right-radius: 6px; }
.bub.voice { display: inline-flex; align-items: center; gap: 11px; }
.bub.voice svg { width: 19px; height: 19px; flex-shrink: 0; }
.bub.voice .wave { display: inline-flex; align-items: center; gap: 3px; height: 22px; }
.bub.voice .wave i { width: 3px; border-radius: 3px; background: currentColor; opacity: .9; }
.bub.voice .dur { font-size: 12px; opacity: .85; }
.bub.once { align-self: flex-end; display: inline-flex; align-items: center; gap: 9px; font-weight: 600;
  background: rgba(255,255,255,.05); border: 1px dashed var(--border-bright); color: var(--text); }
.bub.once svg { width: 17px; height: 17px; color: var(--brand-glow); }

/* ═══════════════════════════════════════════════════════════════
   Phone app mockup
   ═══════════════════════════════════════════════════════════════ */
.phone { position: relative; width: 320px; max-width: 82vw; aspect-ratio: 300 / 624; flex-shrink: 0;
  border-radius: 46px; background: #060409; padding: 11px;
  border: 2px solid rgba(255,255,255,.16);
  box-shadow: 0 80px 160px -50px rgba(0,0,0,.98), 0 0 0 9px rgba(255,255,255,.02), inset 0 0 0 1px rgba(255,255,255,.06);
  animation: phoneFloat 6s ease-in-out infinite; }
@keyframes phoneFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.phone::after { content: ''; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 120px; height: 28px; border-radius: 18px; background: #000; z-index: 4;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.phone .screen { position: absolute; inset: 11px; border-radius: 37px; overflow: hidden; background: #0a0710; }
.phone .screen > img { width: 100%; height: 100%; object-fit: cover; }
.phone .scr-grad { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(0deg, rgba(163,13,110,.92) 0%, rgba(163,13,110,.32) 32%, transparent 58%),
  linear-gradient(180deg, rgba(5,2,7,.5) 0%, transparent 20%); }
.phone .scr-rings { position: absolute; top: 50px; left: 0; right: 0; display: flex; justify-content: center; z-index: 3; }
.phone .scr-ring { width: 28px; height: 28px; border-radius: 50%; margin-left: -6px;
  background: linear-gradient(135deg, rgba(255,255,255,.5), rgba(255,255,255,.22));
  box-shadow: inset 0 0 0 1.5px rgba(5,2,7,.85), 0 2px 8px rgba(0,0,0,.3); }
.phone .scr-ring:first-child { margin-left: 0; }
.phone .scr-ring.on { background: linear-gradient(135deg, #ff8a3d, #ff4f9a, #c13687); transform: scale(1.14); z-index: 2;
  box-shadow: 0 0 16px rgba(238,92,178,.5), inset 0 0 0 1.5px rgba(5,2,7,.85); }
.phone .scr-foot { position: absolute; left: 18px; right: 18px; bottom: 22px; z-index: 3;
  display: flex; align-items: flex-end; gap: 10px; }
.phone .scr-name { flex: 1; min-width: 0; }
.phone .scr-name h4 { font: 600 22px/1.1 var(--font-display); letter-spacing: -.4px; color: #ebebeb; }
.phone .scr-name h4 b { font-family: var(--font); font-weight: 600; color: var(--brand-glow); margin-left: 3px; }
.phone .scr-name p { color: rgba(255,255,255,.82); font-size: 12.5px; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone .scr-connect { display: inline-flex; align-items: center; gap: 6px; height: 33px; padding: 0 15px; border-radius: 17px; background: var(--brand); color: #fff; font: 600 13.5px/1 var(--font); letter-spacing: -.1px; white-space: nowrap; box-shadow: 0 12px 26px -8px rgba(163,13,110,.75); }
.phone .scr-connect svg { width: 13px; height: 13px; }
.phone .scr-up { width: 33px; height: 33px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.7); backdrop-filter: blur(6px); flex-shrink: 0; }
.phone .scr-up svg { width: 15px; height: 15px; color: var(--brand); }

/* ═══════════════════════════════════════════════════════════════
   Media cards (video/photo-backed)
   ═══════════════════════════════════════════════════════════════ */
.mediacard { position: relative; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
  min-height: 440px; border-radius: var(--r-xl); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.mediacard .media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  animation: kenburns 22s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.15); } }
.mediacard .scrim { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, rgba(5,2,7,.93) 4%, rgba(5,2,7,.28) 56%, rgba(5,2,7,.55)); }
.mediacard .mc-copy { padding: 42px; max-width: 640px; }
.mediacard .mc-copy h3 { font: 600 clamp(26px,3vw,40px)/1.02 var(--font-display); letter-spacing: -.02em; }
.mediacard .mc-copy h3 em { font-style: italic; color: var(--brand-glow); }
.mediacard .mc-copy p { color: rgba(248,241,246,.86); margin-top: 12px; font-size: 16px; line-height: 1.6; }
.mediacard .more { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font: 700 14px/1 var(--font); color: #fff; }
.mediacard .more svg { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.mediacard:hover .more svg { transform: translateX(4px); }
.mediacard.full { min-height: 500px; }
.mediacard:hover { transform: translateY(-3px); box-shadow: 0 44px 90px -42px rgba(0,0,0,.95); }
.mc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mc-stack { display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 820px){ .mc-row { grid-template-columns: 1fr; } .mediacard .mc-copy { padding: 30px; } }

/* ═══════════════════════════════════════════════════════════════
   Places: live web map
   ═══════════════════════════════════════════════════════════════ */
.placesmap { height: 480px; width: 100%; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.placesmap .leaflet-container { background: #0a0710; font-family: var(--font); }
.venue-pin span { display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--brand-glow);
  box-shadow: 0 0 0 4px rgba(238,92,178,.28), 0 0 16px var(--brand-glow); border: 2px solid #fff; }
.venue-pin.hot span { background: var(--gold-bright); box-shadow: 0 0 0 4px rgba(232,183,101,.28), 0 0 16px var(--gold-bright); }
.leaflet-popup-content-wrapper { background: #160c18; color: var(--text); border: 1px solid var(--border-bright); border-radius: 12px; box-shadow: var(--shadow-card); }
.leaflet-popup-content { margin: 11px 14px; font-size: 13.5px; line-height: 1.4; }
.leaflet-popup-content b { font-family: var(--font-display); font-size: 15px; }
.leaflet-popup-tip { background: #160c18; }
.leaflet-control-zoom a { background: #160c18 !important; color: var(--text) !important; border-color: var(--border) !important; }

/* ═══════════════════════════════════════════════════════════════
   Long-form document pages (Privacy Policy, Terms)
   ═══════════════════════════════════════════════════════════════ */
.doc { max-width: 1080px; margin: 0 auto; padding: 36px 24px 8px; }
.doc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 46px; }
.doc-top .logo { height: 24px; }
.doc-back { font-size: 14px; color: var(--text-dim); display: inline-flex; align-items: center; gap: 7px; transition: color .15s var(--ease), gap .18s var(--ease); }
.doc-back:hover { color: #fff; gap: 11px; }
.doc-back svg { width: 16px; height: 16px; }
.doc-head { margin-bottom: 18px; }
.doc-head h1 { font-size: clamp(34px, 5.4vw, 58px); letter-spacing: -0.028em; line-height: 1.0; }
.doc-meta { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font: 600 12.5px/1 var(--font); letter-spacing: .2px; color: var(--text-dim); background: var(--surface-2); border: 1px solid var(--border); padding: 7px 13px; border-radius: 999px; }
.doc-meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.doc-lede { color: rgba(248,241,246,.84); font-size: clamp(17px, 1.9vw, 19px); line-height: 1.6; max-width: 64ch; text-wrap: pretty;
  padding-bottom: 32px; border-bottom: 1px solid var(--border); margin-bottom: 34px; }
.doc-toc { padding: 22px 24px; border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 36px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); }
.doc-toc-label { font: 700 11px/1 var(--font); letter-spacing: 1.6px; text-transform: uppercase; color: var(--text-faint); margin-bottom: 15px; }
.doc-toc ol { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 30px; }
.doc-toc li { margin: 0 0 10px; break-inside: avoid; }
.doc-toc a { color: var(--text-dim); font-size: 14.5px; line-height: 1.4; display: inline-flex; align-items: baseline; gap: 9px; transition: color .14s; }
.doc-toc a::before { content: ''; flex-shrink: 0; width: 5px; height: 5px; margin-top: 7px; border-radius: 50%; background: var(--brand-glow); opacity: .55; transition: opacity .14s, box-shadow .14s; }
.doc-toc a:hover { color: #fff; }
.doc-toc a:hover::before { opacity: 1; box-shadow: 0 0 7px var(--brand-glow); }
.doc-body h2 { font-size: clamp(21px, 2.5vw, 27px); letter-spacing: -0.016em; line-height: 1.14; margin: 44px 0 14px; scroll-margin-top: 28px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body p, .doc-body li { color: rgba(248,241,246,.82); font-size: 16px; line-height: 1.74; text-wrap: pretty; }
.doc-body p + p { margin-top: 14px; }
.doc-body ul { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 11px; }
.doc-body ul li { position: relative; padding-left: 24px; }
.doc-body ul li::before { content: ''; position: absolute; left: 3px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-glow); box-shadow: 0 0 8px var(--brand-glow); }
.doc-body a.inline { color: var(--brand-glow); text-decoration: underline; text-decoration-color: rgba(238,92,178,.45); text-underline-offset: 3px; transition: text-decoration-color .15s; }
.doc-body a.inline:hover { text-decoration-color: var(--brand-glow); }
.doc-body strong { color: var(--text); font-weight: 600; }
.doc-totop { display: inline-flex; align-items: center; gap: 8px; margin-top: 46px; font: 600 14px/1 var(--font); color: var(--text-dim); transition: color .15s, gap .18s var(--ease); }
.doc-totop:hover { color: #fff; gap: 11px; }
.doc-totop svg { width: 15px; height: 15px; }
.doc-main { min-width: 0; }
@media (max-width: 560px){ .doc-toc ol { columns: 1; } }
@media (max-width: 919px){
  .doc-toc a { min-height: 40px; align-items: center; }
  .doc-toc li { margin-bottom: 4px; }
}
@media (min-width: 920px){
  .doc { padding: 44px 32px 48px; }
  .doc-lede { max-width: 72ch; }
  .doc-layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 64px; align-items: start; }
  .doc-aside { position: sticky; top: 28px; max-height: calc(100vh - 56px); overflow-y: auto; }
  .doc-toc { margin: 0; padding: 0; border: 0; background: none; }
  .doc-toc-label { margin-bottom: 16px; }
  .doc-toc ol { columns: 1; }
  .doc-toc li { margin-bottom: 2px; }
  .doc-toc a { font-size: 14px; padding: 8px 0; min-height: 0; }
  .doc-main { max-width: 740px; }
}

/* ═══════════════════════════════════════════════════════════════
   Mobile ergonomics (phone-first audience)
   ═══════════════════════════════════════════════════════════════ */
html { -webkit-tap-highlight-color: transparent; }
body:has(> .mesh) .nav-inner { padding-left: max(28px, env(safe-area-inset-left)); padding-right: max(28px, env(safe-area-inset-right)); }
body:has(> .mesh) .site-foot { padding-left: max(28px, env(safe-area-inset-left)); padding-right: max(28px, env(safe-area-inset-right)); }

@media (max-width: 640px) {
  .band { padding: 58px 0; }
  .sec-head { margin-bottom: 32px; }
  body:has(> .mesh) .nav-inner { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
  .phero { min-height: 70vh; min-height: 78svh; }
  .foot-links { gap: 2px 6px; }
  .foot-links a { margin-left: 0; min-height: 44px; padding: 11px 10px; display: inline-flex; align-items: center; }
  .mediacard .more { min-height: 44px; }
  body:has(> .mesh) .store-btn.mini, body:has(> .mesh) .nav-links .store-btn.mini { padding-top: 12px; padding-bottom: 12px; }
}

/* Prose text-wrap */
.sec-sub, .lede, .feat p, .tier > p, .lifecard p, .mediacard .mc-copy p { text-wrap: pretty; }

@media (prefers-reduced-motion: reduce) {
  .mesh i { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .lifecard:hover .bg { transform: none; }
  .feat:hover, .tier:hover, .mediacard:hover { transform: none; }
  .mm-backdrop, .mm-panel { transition: none; }
  html { scroll-behavior: auto; }
  * { animation: none !important; }
}
