/* ============================================================
   WatchFlow Marketing — Shared Design System v2.0
   shared.css — imported by all marketing pages
   Rebuild: 2026-04-13
   ============================================================ */

/* ========== RESET & BASE ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-void);
  color: var(--white);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
input, select, textarea { font-family: inherit; }

/* ========== SKIP-TO-CONTENT (A11Y) ========== */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 9999;
}
.skip-to-content:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 12px 24px;
  background: var(--bg-base, #111);
  color: var(--gold, #c9a84c);
  border: 2px solid var(--gold, #c9a84c);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  z-index: 10000;
}

/* ========== CSS VARIABLES — DARK DEFAULT ========== */
:root {
  /* Typography */
  --font-serif: 'Cormorant Garamond', serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;

  /* Backgrounds (layered) */
  --bg-void: #0a0a0a;
  --bg-base: #111111;
  --bg-raised: #1a1a1a;
  --bg-panel: #2a2a2a;
  --bg-hover: #333333;
  --bg-active: #3a3a3a;

  /* Borders */
  --border: #2a2a2a;
  --border-light: #333333;

  /* Gold accents */
  --gold: #c9a84c;
  --gold-bright: #d4af37;
  --gold-dim: color-mix(in srgb, #c9a84c 12%, transparent);

  /* Text hierarchy */
  --white: #ffffff;
  --off-white: #e0e0e0;
  --muted: #999999;
  --faint: #666666;

  /* Semantic colors */
  --green: #4caf50;
  --green-dim: rgba(76,175,80,0.12);
  --red: #ef5350;
  --red-dim: rgba(239,83,80,0.12);
  --amber: #ffb74d;
  --amber-dim: rgba(255,183,77,0.12);
  --blue: #42a5f5;
  --blue-dim: rgba(66,165,245,0.12);

  /* Spacing */
  --section-pad: 100px;
  --section-pad-tablet: 60px;
  --section-pad-mobile: 32px;

  /* Layout */
  --nav-h: 64px;
  /* P1-2: six-radius scale (matches SPA) */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 999px;
  --container-max: 1200px;
}

/* ========== LIGHT THEME ========== */
[data-theme="light"] {
  /* P1-1: byte-match SPA parchment palette */
  --bg-void: #f7f4ef;
  --bg-base: #efebe4;
  --bg-raised: #e8e3db;
  --bg-panel: #ddd7cd;
  --bg-hover: #d2cbc0;
  --bg-active: #c8c0b4;
  --border: #d4cdc2;
  --border-light: #c4bdb1;
  --gold: #8b7355;
  --gold-bright: #a58e6e;
  --gold-dim: color-mix(in srgb, #8b7355 12%, transparent);
  --white: #1a1814;
  --off-white: #3a3630;
  --muted: #7a7468;
  --faint: #a09888;
  --green: #4caf85;
  --red: #e05c5c;
  --amber: #d4963a;
  --blue: #6b9fd4;
}

/* ========== TYPOGRAPHY ========== */
.font-serif { font-family: var(--font-serif); }
.font-mono  { font-family: var(--font-mono); }

/* ========== UTILITY ========== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}
.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-pad { padding: var(--section-pad) 0; }
.gold-text   { color: var(--gold); }
.muted-text  { color: var(--muted); }
.text-center { text-align: center; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.btn-gold {
  background: var(--gold);
  color: #0a0a0a;
}
.btn-gold:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(201,168,76,0.25);
}
.btn-ghost {
  border: 1px solid var(--border-light);
  color: var(--off-white);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
}
.btn-outline {
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn-outline:hover {
  background: var(--gold);
  color: #0a0a0a;
}
.btn-sm {
  padding: 8px 20px;
  font-size: 13px;
}
.btn-lg {
  padding: 18px 40px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ========== SECTION LABELS ========== */
.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}
.section-subtitle {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 640px;
}

/* ========== SECTION HEADERS ========== */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-header p {
  font-size: 16px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ========== NAV ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  border-top: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
  transition: background 0.3s, box-shadow 0.3s;
}
[data-theme="light"] .nav {
  background: rgba(245,242,237,0.92);
  border-bottom-color: rgba(0,0,0,0.06);
}
.nav > .container,
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
}
.nav-right {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 12px;
}
.nav.scrolled {
  background: rgba(0,0,0,0.97);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
[data-theme="light"] .nav.scrolled {
  background: rgba(245,242,237,0.97);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.nav-wordmark {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 6px;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  display: flex;
  align-items: center;
  height: 100%;
}
.wm-watch { color: var(--gold); }
.wm-flow  { color: var(--white); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a,
.nav-links li a {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.5px;
  transition: color 0.3s;
}
[data-theme="light"] .nav-links a,
[data-theme="light"] .nav-links li a {
  color: rgba(26,24,20,0.75);
}
.nav-links a:hover,
.nav-links a.active,
.nav-links li a:hover,
.nav-links li a.active {
  color: var(--gold);
}
.nav-login {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.5px;
  transition: color 0.3s;
  text-decoration: none;
}
[data-theme="light"] .nav-login {
  color: rgba(26,24,20,0.75);
}
.nav-login:hover {
  color: var(--gold);
}
.nav-cta {
  background: var(--gold);
  color: #0a0a0a !important;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 12px !important;
  letter-spacing: 1px !important;
  text-transform: uppercase;
  transition: background 0.3s, transform 0.2s;
}
.nav-cta:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
}
.theme-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  max-width: 36px;
  max-height: 36px;
  flex: 0 0 36px;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
[data-theme="light"] .theme-toggle {
  border-color: rgba(0,0,0,0.12);
  color: rgba(0,0,0,0.6);
}
.theme-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.theme-toggle svg {
  width: 16px;
  height: 16px;
}

/* ========== HAMBURGER ========== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  -webkit-tap-highlight-color: transparent;
}
.nav-hamburger span {
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========== MOBILE MENU (luxury two-column layout) ========== */
.mobile-menu {
  display: flex;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  background: rgba(0,0,0,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
[data-theme="light"] .mobile-menu {
  background: rgba(245,242,237,0.98);
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

/* Inner content area — scrollable luxury stack */
.mobile-menu-inner {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 18px 20px 18px;
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
  gap: 10px;
  overflow-y: auto;
}

/* Editorial hero caption at top of menu */
.mm-hero {
  padding: 2px 2px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 2px;
}
[data-theme="light"] .mm-hero {
  border-bottom-color: rgba(26,24,20,0.08);
}
.mm-hero-label {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 5px;
}
.mm-hero-title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.15;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.2px;
}
[data-theme="light"] .mm-hero-title {
  color: rgba(26,24,20,0.92);
}
.mm-hero-title i {
  font-style: italic;
  color: var(--gold);
}

/* Section label — small caps divider */
.mm-section-label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding: 2px 4px;
  margin-top: 2px;
}
[data-theme="light"] .mm-section-label {
  color: rgba(26,24,20,0.45);
}

/* Simplified nav list — typographic rows with hairline dividers */
.mm-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mm-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 4px;
  border: none;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
[data-theme="light"] .mm-item {
  border-bottom-color: rgba(26,24,20,0.1);
  color: rgba(26,24,20,0.92);
}
.mm-item:last-child { border-bottom: none; }
.mm-item:hover,
.mm-item:active {
  color: var(--gold);
  padding-left: 6px;
  background: transparent;
}
.mm-item.active { color: var(--gold); }
/* Icon box and sub-label hidden — keeping the elements in markup
   so existing HTML still renders cleanly, just not visually. */
.mm-item-icon,
.mm-item-sub { display: none; }
.mm-item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.mm-item-label {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.3px;
  color: inherit;
  line-height: 1.2;
}
.mm-item-arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  transition: transform 0.2s ease, color 0.2s ease;
}
[data-theme="light"] .mm-item-arrow {
  color: rgba(26,24,20,0.3);
}
.mm-item:hover .mm-item-arrow {
  transform: translateX(4px);
  color: var(--gold);
}
.mm-item-arrow svg { width: 16px; height: 16px; }

/* CTA block — primary gold button + paired sign-in button */
.mm-cta-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  padding-top: 4px;
}
.mm-primary-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  min-height: 48px;
  border-radius: 10px;
  background: var(--gold);
  color: #1a1814 !important;
  font-family: var(--font-serif);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(201,169,110,0.22);
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
}
.mm-primary-cta:hover,
.mm-primary-cta:active {
  background: var(--gold-bright, #d4b57a);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(201,169,110,0.32);
}
.mm-primary-cta svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.8;
}
/* Sign in — proper secondary button, same footprint as the primary */
.mm-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  min-height: 48px;
  border-radius: 10px;
  border: 1px solid rgba(201,169,110,0.38);
  background: rgba(201,169,110,0.04);
  font-family: var(--font-sans, inherit);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
[data-theme="light"] .mm-login {
  color: rgba(26,24,20,0.78);
  border-color: rgba(139,115,85,0.4);
  background: rgba(139,115,85,0.04);
}
.mm-login strong {
  color: var(--gold);
  font-weight: 600;
  margin-left: 2px;
  letter-spacing: 0.3px;
}
.mm-login:hover,
.mm-login:active {
  color: var(--gold);
  background: rgba(201,169,110,0.1);
  border-color: rgba(201,169,110,0.6);
  transform: translateY(-1px);
}

/* ---- Legacy nav-list support (pages that still use .mobile-menu-nav) ---- */
.mobile-menu-nav {
  display: grid;
  grid-template-columns: auto auto;
  gap: 16px 72px;
  justify-content: center;
}
.mobile-menu-nav a {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.5px;
  padding: 10px 0;
  transition: color 0.3s;
  text-align: left;
}
[data-theme="light"] .mobile-menu-nav a {
  color: rgba(26,24,20,0.8);
}
.mobile-menu-nav a:hover,
.mobile-menu-nav a.active {
  color: var(--gold);
}

/* Legacy CTA (kept for non-updated pages) */
.mobile-menu-inner > .nav-cta {
  margin-top: 28px;
  padding: 14px 56px;
  font-family: var(--font-serif);
  font-size: 16px !important;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  align-self: center;
  background: transparent;
  color: var(--gold) !important;
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.mobile-menu-inner > .nav-cta:hover {
  background: var(--gold);
  color: var(--bg-void) !important;
  border-color: var(--gold);
}

/* ---- Menu footer — minimal bottom bar ---- */
.mobile-menu-footer {
  padding: 14px 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.3);
  margin-top: auto;
}
[data-theme="light"] .mobile-menu-footer {
  border-top-color: rgba(26,24,20,0.08);
  background: rgba(26,24,20,0.04);
}

/* Footer bottom bar — copyright + social + theme toggle */
.mmf-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
[data-theme="light"] .mmf-bottom {
  border-top-color: rgba(26,24,20,0.06);
}
.mmf-copy {
  font-size: 9px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.3px;
}
[data-theme="light"] .mmf-copy {
  color: rgba(26,24,20,0.45);
}
.mmf-right {
  display: none;
  align-items: center;
  gap: 8px;
}
.mmf-social {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mmf-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.4);
  transition: color 0.3s, border-color 0.3s;
}
[data-theme="light"] .mmf-social a {
  border-color: rgba(26,24,20,0.12);
  color: rgba(26,24,20,0.45);
}
.mmf-social a:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
}
.mmf-social a svg {
  width: 11px;
  height: 11px;
}
.mobile-menu-footer .theme-toggle {
  display: flex;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.4);
  transition: color 0.3s, border-color 0.3s;
  background: none;
  cursor: pointer;
  padding: 0;
}
[data-theme="light"] .mobile-menu-footer .theme-toggle {
  border-color: rgba(26,24,20,0.12);
  color: rgba(26,24,20,0.45);
}
.mobile-menu-footer .theme-toggle:hover {
  color: var(--gold);
  border-color: var(--gold-dim);
}
.mobile-menu-footer .theme-toggle svg {
  width: 12px;
  height: 12px;
}

/* ========== FOOTER ========== */
/* Footer is ALWAYS dark-bg regardless of theme. Pin tokens to a dark
   variant inside .footer so descendants tokenized via var(--white),
   var(--muted), var(--off-white) etc. resolve readable on dark — fixes
   the parchment regression where --white = #1a1814 made FLOW invisible
   on the dark footer (the "WATCH" cut-off bug). */
.footer {
  background: #000000;
  color: #ffffff;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 80px 0 40px;
  --white: #ffffff;
  --off-white: #d4cfc4;
  --muted: #b8b3a8;
  --faint: #9a958a;
  --gold: #c9a84c;
  --gold-dim: color-mix(in srgb, #c9a84c 22%, transparent);
  --border: rgba(255,255,255,0.10);
  --border-light: rgba(255,255,255,0.06);
}
[data-theme="light"] .footer {
  background: #1a1814;
}
.footer .container {
  max-width: none;
  padding: 0 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
.footer-brand .wordmark {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: inline-block;
  text-decoration: none;
}
.footer-brand .wm-watch { color: var(--gold); }
.footer-brand .wm-flow  { color: var(--white); }
.footer-brand p {
  font-size: 14px;
  color: #b8b3a8;
  line-height: 1.6;
  max-width: 280px;
}
.footer-col h4 {
  color: #efe9dc;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: #d4cfc4;
  padding: 5px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: #c9a84c; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy {
  font-size: 13px;
  color: #9a958a;
}
.footer-social {
  display: none; /* hidden until social accounts are set up */
  gap: 16px;
}
.footer-social a {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: var(--muted);
  transition: all 0.3s;
}
.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.footer-social a svg {
  width: 16px;
  height: 16px;
}

/* ========== FORM INPUTS ========== */
.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 14px;
  font-family: var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  min-height: 44px;
}
.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.form-input::placeholder { color: var(--faint); }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* ========== CARDS ========== */
.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.card:hover {
  border-color: rgba(201,168,76,0.25);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.card-body { padding: 24px; }

/* ========== DEMO FRAME (mock browser window) ========== */
.demo-frame {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.demo-frame-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
}
.demo-frame-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--faint);
}
.demo-frame-dot:nth-child(1) { background: #ef5350; opacity: 0.7; }
.demo-frame-dot:nth-child(2) { background: #ffb74d; opacity: 0.7; }
.demo-frame-dot:nth-child(3) { background: #4caf50; opacity: 0.7; }
.demo-frame-url {
  flex: 1;
  margin-left: 12px;
  padding: 6px 12px;
  background: var(--bg-base);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint);
}

/* ========== SKELETON LOADING ========== */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--bg-panel);
  border-radius: var(--radius);
}
.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
}
@keyframes skeleton-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ========== TAGS & BADGES ========== */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  background: var(--gold-dim);
  color: var(--gold);
}

/* ========== FOCUS & SELECTION ========== */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}
::selection {
  background: var(--gold-dim);
  color: var(--gold);
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-animate], [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ========== SCROLL REVEAL ANIMATIONS — Standard: [data-animate] + .visible ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

[data-animate],
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
[data-animate].visible,
[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}
[data-animate="fade"],
[data-reveal="fade"] { transform: none; }
[data-animate="slide-left"],
[data-reveal="slide-left"] { transform: translateX(-40px); }
[data-animate="slide-left"].visible,
[data-reveal="slide-left"].visible { transform: translateX(0); }
[data-animate="slide-right"],
[data-reveal="slide-right"] { transform: translateX(40px); }
[data-animate="slide-right"].visible,
[data-reveal="slide-right"].visible { transform: translateX(0); }
[data-animate="scale"],
[data-reveal="scale"] { transform: scale(0.95); }
[data-animate="scale"].visible,
[data-reveal="scale"].visible { transform: scale(1); }

/* Stagger delays */
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }
[data-delay="5"] { transition-delay: 0.5s; }
[data-delay="6"] { transition-delay: 0.6s; }
[data-delay="7"] { transition-delay: 0.7s; }
[data-delay="8"] { transition-delay: 0.8s; }

/* ========== CONVERSION UTILITY CLASSES ========== */

/* Social proof bar — use only with real, verifiable data */
.social-proof-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 14px 24px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
}
.social-proof-bar strong {
  color: var(--white);
  font-weight: 600;
}
.social-proof-bar .gold-text {
  color: var(--gold);
  font-family: var(--font-mono);
  font-weight: 500;
}

/* Hero CTAs */
.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--gold-dim);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  white-space: nowrap;
}
.trust-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ========== TOUCH ========== */
a, button, .btn, .nav-cta, .nav-hamburger {
  -webkit-tap-highlight-color: transparent;
}
@media (pointer: coarse) {
  a, button, .btn, .nav-cta { min-height: 44px; }
}

/* ========== SAFE AREA ========== */
body {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* ============================================================
   RESPONSIVE
   Breakpoints: 375px - 428px - 768px - 1024px - 1280px - 1536px
   ============================================================ */

/* --- <=1280px: Large desktop --- */
@media (max-width: 1280px) {
  .container { max-width: 1080px; }
  .container-wide { max-width: 1200px; }
}

/* --- <=1024px: Tablet landscape --- */
@media (max-width: 1024px) {
  :root { --section-pad: 80px; }
  .container { padding: 0 20px; }
  .container-wide { padding: 0 20px; }
  .section-header { margin-bottom: 48px; }
}

/* --- <=768px: Tablet portrait / Mobile --- */
@media (max-width: 768px) {
  :root { --section-pad: 60px; --nav-h: 56px; }
  .nav { padding: 0 16px; height: 56px; }
  .nav-links { display: none; }
  .nav-login { display: none; }
  .nav-hamburger { display: flex; }
  /* Logo: smaller so it doesn't visually dominate; explicit left alignment */
  .nav-wordmark { font-size: 20px; letter-spacing: 3px; margin-right: auto; }
  .nav > .container,
  .nav-inner { justify-content: flex-start; }
  .nav-right { margin-left: auto; }
  .section-header h2 { font-size: 28px; }
  .section-header p { font-size: 14px; }
  .section-title { font-size: clamp(24px, 5vw, 32px); }
  .section-subtitle { font-size: 16px; }
  .container { padding: 0 20px; }
  .btn { min-height: 44px; font-size: 14px; padding: 10px 24px; }
  .btn-lg { padding: 12px 28px; font-size: 15px; width: auto; max-width: 80vw; }
  .hero-ctas { display: flex; flex-direction: column; align-items: center; gap: 12px; }
  .hero-ctas .btn { width: auto; min-width: 200px; max-width: 80vw; }
  input, select, textarea { font-size: 16px; }
  .footer { padding: 48px 0 32px; }
  .footer .container { padding: 0 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; text-align: left; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: none; }
  .footer-col h4 { margin-bottom: 14px; }
  .footer-col a { padding: 4px 0; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; gap: 12px; text-align: left; }
  .footer-social a { width: 38px; height: 38px; }
  .btn:active, .nav-cta:active { transform: scale(0.97); transition: transform 0.1s ease; }
  .social-proof-bar { gap: 16px; font-size: 13px; padding: 12px 16px; }
  .nav .nav-cta { display: none; }
  .nav .theme-toggle { display: none; }
  .nav-right { gap: 8px; }
}

/* --- <=428px: Large phone --- */
@media (max-width: 428px) {
  :root { --section-pad: 48px; }
  .container { padding: 0 16px; }
  .container-wide { padding: 0 16px; }
  .section-header h2 { font-size: 24px; }
  .section-header p { font-size: 13px; }
  .footer .container { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer { padding: 40px 0 28px; }
  .footer-brand p { font-size: 13px; }
  .footer-col h4 { font-size: 11px; margin-bottom: 12px; }
  .footer-col a { font-size: 13px; padding: 3px 0; }
  .mobile-menu-nav a { font-size: 25px; padding: 8px 0; }
  .mobile-menu-nav { gap: 12px 56px; }
  .mobile-menu-inner { padding: 16px 18px 16px; gap: 9px; }
  .mobile-menu-footer { padding: 10px 20px; }
  .social-proof-bar { flex-direction: column; gap: 8px; text-align: center; }
  .trust-badge { font-size: 12px; padding: 6px 12px; }
}

/* --- <=400px: Small phone footer --- */
@media (max-width: 400px) {
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 24px 16px; }
  .mobile-menu-nav a { font-size: 24px; padding: 7px 0; }
  .mobile-menu-nav { gap: 10px 48px; }
}

/* --- <=375px: Small phone --- */
@media (max-width: 375px) {
  :root { --section-pad: 40px; }
  .section-header { margin-bottom: 32px; }
  .card-body { padding: 16px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .footer-social { align-self: flex-start; }
  .footer-copy { font-size: 12px; }
  .footer-social a { width: 34px; height: 34px; }
}

/* --- >=1536px: Ultra-wide --- */
@media (min-width: 1536px) {
  .container { max-width: 1320px; }
  .container-wide { max-width: 1520px; }
  :root { --section-pad: 120px; }
  .nav { padding: 0 60px; }
  .footer .container { padding: 0 60px; }
}

/* ========== ENHANCED MOBILE RESPONSIVE ========== */

/* ESC close handled in JS — CSS: smooth slide-in transform */
.mobile-menu {
  transform: translateY(-12px);
}
.mobile-menu.open {
  transform: translateY(0);
}

/* Staggered link animations (legacy + new rich list) */
.mobile-menu-nav a,
.mobile-menu .mm-hero,
.mobile-menu .mm-section-label,
.mobile-menu .mm-item,
.mobile-menu .mm-cta-block {
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), opacity 0.3s ease, color 0.3s, background 0.25s, border-color 0.25s;
}
.mobile-menu.open .mobile-menu-nav a,
.mobile-menu.open a,
.mobile-menu.open .mm-hero,
.mobile-menu.open .mm-section-label,
.mobile-menu.open .mm-item,
.mobile-menu.open .mm-cta-block {
  transform: translateY(0);
  opacity: 1;
}
.mobile-menu.open .mobile-menu-nav a:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.open .mobile-menu-nav a:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-menu-nav a:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-menu-nav a:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-menu-nav a:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu.open .mobile-menu-nav a:nth-child(6) { transition-delay: 0.3s; }
.mobile-menu.open .mm-hero         { transition-delay: 0.04s; }
.mobile-menu.open .mm-section-label:nth-of-type(1) { transition-delay: 0.08s; }
.mobile-menu.open .mm-list .mm-item:nth-child(1)   { transition-delay: 0.12s; }
.mobile-menu.open .mm-list .mm-item:nth-child(2)   { transition-delay: 0.17s; }
.mobile-menu.open .mm-list .mm-item:nth-child(3)   { transition-delay: 0.22s; }
.mobile-menu.open .mm-list .mm-item:nth-child(4)   { transition-delay: 0.27s; }
.mobile-menu.open .mm-cta-block                     { transition-delay: 0.32s; }
/* Footer fade-in */
.mobile-menu-footer {
  opacity: 0;
  transition: opacity 0.3s ease 0.2s;
}
.mobile-menu.open .mobile-menu-footer {
  opacity: 1;
}
/* CTA fade-in */
.mobile-menu-inner .nav-cta {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease 0.3s, transform 0.3s ease 0.3s, background 0.3s, color 0.3s;
}
.mobile-menu.open .mobile-menu-inner .nav-cta {
  opacity: 1;
  transform: translateY(0);
}

/* ========== FOOTER MOBILE — 768px ========== */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
    text-align: left;
  }
  .footer-brand {
    grid-column: 1 / -1;
    text-align: left;
  }
  .footer-brand p {
    max-width: none;
    margin: 0;
  }
  .footer-col {
    text-align: left;
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

/* ========== FOOTER MOBILE — 480px ========== */
@media (max-width: 480px) {
  .footer {
    padding: 40px 0 28px;
  }
  .footer .container {
    padding: 0 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
  }
  .footer-brand,
  .footer-col {
    text-align: left;
  }
  .footer-brand p {
    margin: 0;
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ========== SMALL PHONE (<=375px) ========== */
@media (max-width: 375px) {
  .container {
    padding: 0 12px;
  }
  .container-wide {
    padding: 0 12px;
  }
  .nav-wordmark {
    font-size: 18px;
    letter-spacing: 2.5px;
  }
  .btn {
    width: 100%;
    min-height: 48px;
  }
  .btn-lg {
    width: 100%;
    min-height: 48px;
  }
  .section-pad {
    padding: 24px 0;
  }
  .section-title {
    font-size: clamp(24px, 5vw, 28px);
  }
  .section-header h2 {
    font-size: 22px;
  }
  .hero-ctas .btn {
    width: 100%;
  }
}

/* ========== ULTRA-SMALL PHONE (<=320px) ========== */
@media (max-width: 320px) {
  .container {
    padding: 0 8px;
  }
  .container-wide {
    padding: 0 8px;
  }
  .nav {
    padding: 0 8px;
  }
  .nav-wordmark {
    font-size: 20px;
    letter-spacing: 3px;
  }
  .section-title {
    font-size: 20px;
  }
  .section-header h2 {
    font-size: 20px;
  }
  .section-header p {
    font-size: 12px;
  }
  .btn {
    padding: 10px 16px;
    font-size: 13px;
  }
  .btn-lg {
    padding: 10px 16px;
    font-size: 14px;
  }
  .mobile-menu-nav a {
    font-size: 22px;
    padding: 6px 0;
  }
  .mobile-menu-nav {
    gap: 8px 40px;
  }
  .mobile-menu-inner {
    padding: 14px 14px 14px;
    gap: 8px;
  }
  .mobile-menu-footer {
    padding: 8px 16px;
  }
  .social-proof-bar {
    font-size: 12px;
    padding: 8px 10px;
  }
  .footer-col h4 {
    font-size: 11px;
  }
  .footer-col a {
    font-size: 13px;
  }
}

/* ========== LANDSCAPE PHONE ========== */
@media (max-height: 500px) and (orientation: landscape) {
  .nav {
    height: 48px;
  }
  .mobile-menu {
    top: 48px;
    overflow-y: auto;
  }
  .mobile-menu-nav {
    gap: 6px 40px;
  }
  .mobile-menu-nav a {
    font-size: 20px;
    padding: 5px 0;
  }
  .mobile-menu-inner {
    padding: 20px 24px 16px;
  }
  .section-pad {
    padding: 32px 0;
  }
  .hero,
  [class*="hero"] {
    min-height: auto;
    padding-top: 24px;
    padding-bottom: 24px;
  }
}

/* ========== TABLET LANDSCAPE (768px - 1024px) ========== */
@media (min-width: 769px) and (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
  }
  .section-header {
    margin-bottom: 40px;
  }
}

/* ========== TOUCH DEVICE ENHANCEMENTS ========== */
@media (hover: none) {
  .btn-gold:hover {
    transform: none;
    box-shadow: none;
  }
  .btn-ghost:hover {
    border-color: var(--border-light);
    color: var(--off-white);
    background: transparent;
  }
  .btn-outline:hover {
    background: transparent;
    color: var(--gold);
  }
  .nav-cta:hover {
    transform: none;
  }
  .card:hover {
    border-color: var(--border);
    box-shadow: none;
  }
  .btn-gold:active {
    background: var(--gold-bright);
    transform: scale(0.97);
  }
  .btn-ghost:active {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-dim);
  }
  .btn-outline:active {
    background: var(--gold);
    color: #0a0a0a;
  }
  .card:active {
    border-color: rgba(201,168,76,0.25);
  }
  a, button, .btn, .nav-cta, .nav-hamburger, .footer-social a {
    min-height: 44px;
    min-width: 44px;
  }
}

/* ========== REDUCED MOTION ========== */
@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;
  }
  .mobile-menu,
  .mobile-menu-nav a,
  .mobile-menu.open,
  .mobile-menu.open .mobile-menu-nav a,
  .mobile-menu-footer,
  .mobile-menu-inner .nav-cta {
    transition: none !important;
    transform: none !important;
  }
  [data-animate], [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ========== PRINT STYLES ========== */
@media print {
  .nav, .footer, .mobile-menu, .nav-hamburger, .theme-toggle { display: none !important; }
  body { background: white; color: black; }
  .section-pad { padding: 20px 0; }
  a { color: black; }
  .btn { border: 1px solid black; background: none; color: black; }
}

/* ========== HIGH DPI / RETINA ========== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .nav {
    border-bottom-width: 0.5px;
  }
  .footer {
    border-top-width: 0.5px;
  }
  .card {
    border-width: 0.5px;
  }
  .form-input {
    border-width: 0.5px;
  }
  .footer-bottom {
    border-top-width: 0.5px;
  }
  .footer-social a {
    border-width: 0.5px;
  }
}

/* Skip-to-content (a11y) */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 9999;
}
.skip-to-content:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 12px 24px;
  background: var(--bg-base, #111);
  color: var(--gold, #c9a84c);
  border: 2px solid var(--gold, #c9a84c);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  z-index: 10000;
}

/* =====================================================================
   CONTRAST SYSTEM — start   (added 2026-04-21; mirrors app-side block)

   REVERT: delete everything between the start/end markers here AND in
   public/index.html, or run `git reset --hard pre-contrast-system`.
   ===================================================================== */

/* Light-theme token tune — darken muted/faint on the parchment variant
   so form labels, placeholders, and long-form body copy read cleanly. */
[data-theme="light"] {
  --muted: #5c564c;  /* was #7a7468 */
  --faint: #7a7468;  /* was #a09888 — now old --muted */
}

/* Form inputs across marketing (signup / contact / demo) — ensure the
   field background contrasts with its surrounding card / section. */
.form-input,
.form-select,
.form-textarea,
input.form-control,
textarea.form-control,
select.form-control {
  background: var(--bg-void) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 8px !important;
  color: var(--white) !important;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus,
input.form-control:focus,
textarea.form-control:focus,
select.form-control:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.18) !important;
  outline: none !important;
}
.form-input::placeholder,
.form-textarea::placeholder,
input.form-control::placeholder,
textarea.form-control::placeholder { color: var(--faint) !important; }

/* Labels & form hints — readable floor (--off-white), no ghost text. */
.form-label,
.form-group label,
label.form-label,
.form-hint,
.form-helper,
.field-hint {
  color: var(--off-white) !important;
}

/* Plan card per-month / feature-row sub-copy — readable floor. */
.plan-price-period,
.plan-feature-sub,
.pricing-sub {
  color: var(--off-white) !important;
}

/* =====================================================================
   CONTRAST SYSTEM — end
   ===================================================================== */


/* =====================================================================
   COLOR SYSTEM — start (2026-04-23)
   Site-wide colour pass so marketing isn't all gold-on-cream. Uses the
   app's existing semantic tokens (--green, --amber, --red, --blue +
   brand hex values for platform chips). Scoped with :where() so it never
   raises specificity against per-page overrides.
   ===================================================================== */

/* Platform brand palette shared across marketing */
:root {
  --brand-whatsapp: #25d366;
  --brand-telegram: #229ed9;
  --brand-instagram: #e4405f;
  --brand-instagram-2: #c13584;
  --brand-shopify: #7ab55c;
  --brand-stripe: #635bff;
  --brand-email: #d08b5b;
}

/* Hero-style gradient accents — usable anywhere */
:where(.color-pop-green)  { color: var(--green); }
:where(.color-pop-blue)   { color: var(--brand-telegram); }
:where(.color-pop-pink)   { color: var(--brand-instagram); }
:where(.color-pop-violet) { color: var(--brand-stripe); }

/* Pricing plan cards — inject subtle ecosystem colour so Starter / Pro /
   Team feel distinct rather than three identical cream boxes. */
:where(.plan):nth-child(1),
:where(.pricing-card):nth-child(1) {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--brand-telegram) 6%, var(--bg-panel)),
    var(--bg-panel)) !important;
}
:where(.plan):nth-child(1):hover,
:where(.pricing-card):nth-child(1):hover {
  border-color: color-mix(in srgb, var(--brand-telegram) 60%, var(--border));
  box-shadow: 0 24px 52px color-mix(in srgb, var(--brand-telegram) 14%, transparent);
}
:where(.plan):nth-child(3),
:where(.pricing-card):nth-child(3) {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--green) 6%, var(--bg-panel)),
    var(--bg-panel)) !important;
}
:where(.plan):nth-child(3):hover,
:where(.pricing-card):nth-child(3):hover {
  border-color: color-mix(in srgb, var(--green) 50%, var(--border));
  box-shadow: 0 24px 52px color-mix(in srgb, var(--green) 14%, transparent);
}

/* Contact / demo / signup page backgrounds — add quiet colour washes */
:where(body:has(.contact-page), body:has(.demo-page), body:has(.signup-page)) {
  background:
    radial-gradient(ellipse 800px 500px at 10% 8%,  rgba(123,164,201,0.10), transparent 70%),
    radial-gradient(ellipse 700px 420px at 92% 22%, rgba(201,168,76,0.10),  transparent 70%),
    radial-gradient(ellipse 600px 400px at 80% 92%, rgba(74,168,126,0.08),  transparent 72%),
    var(--bg-void) !important;
}

/* Feature tile / bento accent bars — make each card feel alive */
:where(.ft-tile):nth-child(5n+1)::before { background: var(--brand-telegram); }
:where(.ft-tile):nth-child(5n+2)::before { background: var(--gold); }
:where(.ft-tile):nth-child(5n+3)::before { background: var(--green); }
:where(.ft-tile):nth-child(5n+4)::before { background: var(--brand-instagram); }
:where(.ft-tile):nth-child(5n+5)::before { background: var(--amber); }

/* Footer divider glow */
:where(.footer) {
  border-top-color: color-mix(in srgb, var(--gold) 30%, var(--border));
}

/* Dark theme: increase colour saturation a touch so dim variants pop */
:where([data-theme="dark"]) {
  --brand-whatsapp: #3ddb78;
  --brand-telegram: #33b0e6;
  --brand-instagram: #ee4d6c;
}

/* =====================================================================
   COLOR SYSTEM — end
   ===================================================================== */

/* =====================================================================
   V3 — Apple-style mobile-first redesign (2026-04-27)
   Additive layer. Prefix: .v3-*
   ===================================================================== */

/* ---------- V3 Tokens ---------- */
:root {
  --v3-radius-sm: 10px;
  --v3-radius: 18px;
  --v3-radius-lg: 28px;
  --v3-shadow-soft: 0 1px 2px rgba(0,0,0,0.04), 0 8px 32px rgba(0,0,0,0.08);
  --v3-shadow-frame: 0 4px 12px rgba(0,0,0,0.10), 0 24px 60px rgba(0,0,0,0.18);
  --v3-shadow-frame-strong: 0 6px 18px rgba(0,0,0,0.16), 0 36px 90px rgba(0,0,0,0.28);
  --v3-section-pad-y: clamp(72px, 11vw, 140px);
  --v3-container: 1180px;
  --v3-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-theme="light"] {
  --v3-shadow-soft: 0 1px 2px rgba(70,55,40,0.05), 0 12px 36px rgba(70,55,40,0.10);
  --v3-shadow-frame: 0 4px 14px rgba(70,55,40,0.10), 0 28px 70px rgba(70,55,40,0.16);
  --v3-shadow-frame-strong: 0 6px 20px rgba(70,55,40,0.14), 0 40px 100px rgba(70,55,40,0.22);
}

/* ---------- V3 Reveal animation ---------- */
.v3-reveal { opacity: 0; transform: translateY(28px) scale(0.985); transition: opacity 0.9s var(--v3-ease), transform 0.9s var(--v3-ease); }
.v3-reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .v3-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- V3 Section ---------- */
.v3-section {
  position: relative;
  padding: var(--v3-section-pad-y) 24px;
  background: var(--bg-void);
  overflow: hidden;
}
.v3-section + .v3-section { padding-top: 0; }
.v3-section.alt { background: var(--bg-base); }
.v3-container { max-width: var(--v3-container); margin: 0 auto; }

/* ---------- V3 Eyebrow / headings ---------- */
.v3-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.v3-display {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0 0 18px;
}
.v3-display i { font-style: italic; color: var(--gold); font-weight: 400; }
.v3-h2 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.018em;
  color: var(--white);
  margin: 0 0 18px;
}
.v3-h2 i { font-style: italic; color: var(--gold); font-weight: 400; }
.v3-lead {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.55;
  color: var(--off-white);
  margin: 0 0 28px;
  max-width: 640px;
}
.v3-kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.5px;
  color: var(--muted);
}

/* ---------- V3 Buttons ---------- */
.v3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.2px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s var(--v3-ease), box-shadow 0.2s var(--v3-ease), background 0.2s var(--v3-ease);
  min-height: 48px;
  cursor: pointer;
  border: none;
}
.v3-btn-primary {
  background: var(--gold);
  color: var(--bg-void);
}
.v3-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 38px rgba(201,168,76,0.32); }
.v3-btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}
.v3-btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.v3-cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- V3 iPhone Device Frame (realistic iPhone 15 Pro) ---------- */
.v3-phone {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  border-radius: 54px;
  /* Brushed titanium frame */
  background:
    linear-gradient(135deg, #2c2c2e 0%, #1c1c1e 22%, #0d0d0e 50%, #1c1c1e 78%, #2c2c2e 100%);
  padding: 11px;
  box-shadow:
    /* Outer drop shadow */
    var(--v3-shadow-frame),
    /* Inner specular highlight on frame */
    inset 0 0 0 1.5px rgba(255,255,255,0.08),
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(0,0,0,0.55);
  isolation: isolate;
}
/* Dynamic Island */
.v3-phone::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 26px;
  background: #050507;
  border-radius: 999px;
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.04),
    inset 0 -1px 1px rgba(0,0,0,0.6);
  z-index: 3;
  pointer-events: none;
}
/* Side buttons (volume + mute on left, power on right) using a single wrapper pseudo */
.v3-phone::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  /* Volume up / volume down / mute switch on left, power button on right */
  background:
    /* Mute switch */
    linear-gradient(#3a3a3c, #1c1c1e) left 0 top 14% / 3px 26px no-repeat,
    /* Volume up */
    linear-gradient(#3a3a3c, #1c1c1e) left 0 top 22% / 3px 50px no-repeat,
    /* Volume down */
    linear-gradient(#3a3a3c, #1c1c1e) left 0 top 31% / 3px 50px no-repeat,
    /* Power button */
    linear-gradient(#3a3a3c, #1c1c1e) right 0 top 25% / 3px 78px no-repeat;
  border-radius: inherit;
  /* Pull buttons outside the frame edge */
  margin: 0 -1.5px;
}
.v3-phone-screen {
  position: relative;
  width: 100%;
  border-radius: 42px;
  overflow: hidden;
  background-color: var(--bg-void);
  background-size: cover;
  background-position: center;
  aspect-ratio: 9 / 19.5;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
  /* Skeleton shimmer underneath the LQIP — visible if the LQIP itself fails. */
  isolation: isolate;
}
.v3-phone-screen::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.06) 0 8%, transparent 8% 100%),
    linear-gradient(110deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.18) 50%, rgba(255,255,255,0) 70%) 0 0 / 200% 100%,
    linear-gradient(180deg, #efece6 0%, #e6e2da 100%);
  animation: wfPhoneShimmer 2.4s ease-in-out infinite;
  z-index: 0;
}
@keyframes wfPhoneShimmer {
  0% { background-position: -120% 0, 0 0, 0 0; }
  100% { background-position: 220% 0, 0 0, 0 0; }
}
.v3-phone-screen picture,
.v3-phone-screen img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
}
.v3-phone-screen img {
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 600ms ease-out;
}
.v3-phone-screen img.loaded,
.v3-phone-screen img[loading="eager"] { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .v3-phone-screen::before { animation: none; }
  .v3-phone-screen img { transition: none; opacity: 1; }
}
.v3-phone-large { max-width: 360px; }
.v3-phone-strong { box-shadow:
    var(--v3-shadow-frame-strong),
    inset 0 0 0 1.5px rgba(255,255,255,0.08),
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -1px 0 rgba(0,0,0,0.55);
}

/* Floating phones group */
.v3-phone-stack {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 600px;
}
.v3-phone-stack .v3-phone { position: absolute; }
.v3-phone-stack .v3-phone.s1 { transform: translate(-58%, -10%) rotate(-7deg); max-width: 260px; opacity: 0.92; }
.v3-phone-stack .v3-phone.s2 { transform: translate(0, 0); max-width: 320px; z-index: 2; }
.v3-phone-stack .v3-phone.s3 { transform: translate(58%, 8%) rotate(7deg); max-width: 260px; opacity: 0.92; }

@media (max-width: 720px) {
  .v3-phone-stack { min-height: 520px; }
  .v3-phone-stack .v3-phone.s1 { transform: translate(-46%, -8%) rotate(-7deg); max-width: 200px; }
  .v3-phone-stack .v3-phone.s2 { max-width: 260px; }
  .v3-phone-stack .v3-phone.s3 { transform: translate(46%, 8%) rotate(7deg); max-width: 200px; }
}

/* ---------- V3 Hero (landing) ---------- */
.v3-hero {
  position: relative;
  padding: calc(var(--nav-h) + 56px) 24px 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 800px 400px at 18% 10%, rgba(123,164,201,0.10), transparent 70%),
    radial-gradient(ellipse 720px 460px at 82% 30%, rgba(201,168,76,0.10), transparent 72%),
    radial-gradient(ellipse 600px 420px at 50% 92%, rgba(196,134,138,0.07), transparent 72%),
    var(--bg-void);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.v3-hero-inner {
  max-width: 880px;
  margin: 0 auto;
  padding-top: clamp(40px, 8vw, 80px);
}
.v3-hero h1 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(46px, 9vw, 110px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--white);
  margin: 0 0 22px;
}
.v3-hero h1 i { font-style: italic; color: var(--gold); font-weight: 400; }
.v3-hero-sub {
  font-family: var(--font-body);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.5;
  color: var(--off-white);
  max-width: 620px;
  margin: 0 auto 36px;
}
.v3-hero-meta {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.4px;
  color: var(--muted);
}
.v3-hero-cta-row { justify-content: center; }
.v3-hero-device {
  margin-top: clamp(56px, 9vw, 100px);
  width: 100%;
  display: flex;
  justify-content: center;
  padding-bottom: 120px;
}

/* ---------- V3 Product showcase (alternating) ---------- */
.v3-show {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
  max-width: var(--v3-container);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 120px) 0;
}
.v3-show.reverse .v3-show-copy { order: 2; }
.v3-show.reverse .v3-show-media { order: 1; }
.v3-show-copy { padding: 0 4px; }
.v3-show-eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.v3-show-media { display: flex; justify-content: center; }
.v3-show-bullets {
  margin: 22px 0 28px;
  padding: 0;
  list-style: none;
}
.v3-show-bullets li {
  position: relative;
  padding: 10px 0 10px 28px;
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--off-white);
  border-bottom: 1px solid var(--border);
}
.v3-show-bullets li:last-child { border-bottom: 0; }
.v3-show-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1.5px solid var(--gold);
}

@media (max-width: 860px) {
  .v3-show { grid-template-columns: 1fr; gap: 48px; padding: 64px 0; text-align: left; }
  .v3-show.reverse .v3-show-copy,
  .v3-show.reverse .v3-show-media { order: initial; }
  .v3-show-media { order: -1; }
}

/* ---------- V3 Pillars grid ---------- */
.v3-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 40px;
}
.v3-pillar {
  padding: 28px 24px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--v3-radius);
  transition: transform 0.3s var(--v3-ease), border-color 0.3s var(--v3-ease);
}
.v3-pillar:hover { transform: translateY(-3px); border-color: var(--gold); }
.v3-pillar-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--gold-dim);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--gold);
}
.v3-pillar-icon svg { width: 22px; height: 22px; }
.v3-pillar h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--white);
  margin: 0 0 8px;
}
.v3-pillar p {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--off-white);
  margin: 0;
}

/* ---------- V3 Channel chips ---------- */
.v3-channel-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}
.v3-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--off-white);
}
.v3-chip svg { width: 14px; height: 14px; color: var(--gold); }

/* ---------- V3 Closing CTA ---------- */
.v3-close {
  padding: clamp(80px, 12vw, 160px) 24px;
  text-align: center;
  background:
    radial-gradient(ellipse 800px 400px at 50% 50%, rgba(201,168,76,0.10), transparent 70%),
    var(--bg-void);
}
.v3-close-inner { max-width: 700px; margin: 0 auto; }

/* ---------- V3 Page hero (interior pages) ---------- */
.v3-pagehero {
  padding: calc(var(--nav-h) + 70px) 24px 60px;
  text-align: center;
  background:
    radial-gradient(ellipse 700px 360px at 50% 0%, rgba(201,168,76,0.10), transparent 72%),
    var(--bg-void);
}
.v3-pagehero-inner { max-width: 800px; margin: 0 auto; }

/* ---------- V3 Truth strip (small badges) ---------- */
.v3-truth {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}
.v3-truth-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.3px;
  color: var(--off-white);
}
.v3-truth-item svg { width: 12px; height: 12px; color: var(--gold); }

/* ---------- V3 Mobile tweaks ---------- */
@media (max-width: 640px) {
  .v3-section { padding: 64px 18px; }
  .v3-hero { padding: calc(var(--nav-h) + 36px) 20px 0; }
  .v3-hero-inner { padding-top: 24px; }
  .v3-hero-device { margin-top: 40px; padding-bottom: 64px; }
  .v3-pagehero { padding: calc(var(--nav-h) + 48px) 20px 40px; }
  .v3-show { padding: 48px 0; gap: 32px; }
  .v3-cta-row { flex-direction: column; align-items: stretch; }
  .v3-cta-row .v3-btn { width: 100%; }
  .v3-pillars { gap: 14px; }

  /* Smaller bezel on mobile — was way oversized */
  .v3-phone { max-width: 230px; padding: 8px; border-radius: 42px; }
  .v3-phone::before { width: 78px; height: 22px; top: 14px; }
  .v3-phone-screen { border-radius: 34px; }
  .v3-phone-large { max-width: 250px; }
  .v3-phone::after {
    background:
      linear-gradient(#3a3a3c, #1c1c1e) left 0 top 14% / 2px 18px no-repeat,
      linear-gradient(#3a3a3c, #1c1c1e) left 0 top 22% / 2px 36px no-repeat,
      linear-gradient(#3a3a3c, #1c1c1e) left 0 top 31% / 2px 36px no-repeat,
      linear-gradient(#3a3a3c, #1c1c1e) right 0 top 25% / 2px 56px no-repeat;
  }
}

/* ---------- WF text-stagger (per-child cascading reveal) ---------- */
.wf-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms cubic-bezier(.2,.8,.2,1),
    transform 700ms cubic-bezier(.2,.8,.2,1);
  transition-delay: calc(var(--i, 0) * 90ms);
  will-change: opacity, transform;
}
.wf-stagger.visible > *,
.v3-reveal.visible .wf-stagger > * {
  opacity: 1;
  transform: translateY(0);
}
.wf-stagger > *:nth-child(1) { --i: 0; }
.wf-stagger > *:nth-child(2) { --i: 1; }
.wf-stagger > *:nth-child(3) { --i: 2; }
.wf-stagger > *:nth-child(4) { --i: 3; }
.wf-stagger > *:nth-child(5) { --i: 4; }
.wf-stagger > *:nth-child(6) { --i: 5; }
.wf-stagger > *:nth-child(7) { --i: 6; }
@media (prefers-reduced-motion: reduce) {
  .wf-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- WF readability bumps (don't make text so small) ---------- */
.v3-show-bullets li { font-size: 17px; line-height: 1.55; padding-top: 12px; padding-bottom: 12px; }
.v3-pillar p { font-size: 16px; line-height: 1.6; }
.v3-hero-meta { font-size: 12.5px; }
.v5-kicker { font-size: 13px; }

/* ---------- WF Dynamic scroll animations (varied per section) ----------
   Each .v3-show-media gets a different entrance based on its index/orientation.
   Each .v3-show-copy and .v3-pillar enter from the opposite side. */
.v3-show-media { opacity: 0; transform: translateX(60px) scale(0.94); transition: opacity 900ms cubic-bezier(.2,.8,.2,1), transform 900ms cubic-bezier(.2,.8,.2,1); will-change: opacity, transform; }
.v3-show.reverse .v3-show-media { transform: translateX(-60px) scale(0.94); }
.v3-show-media.visible,
.v3-show .v3-show-media.v3-reveal.visible { opacity: 1; transform: translateX(0) scale(1); }

.v3-show-copy { transition: opacity 900ms cubic-bezier(.2,.8,.2,1), transform 900ms cubic-bezier(.2,.8,.2,1); }
.v3-show:not(.reverse) .v3-show-copy.v3-reveal { transform: translateX(-40px); }
.v3-show.reverse .v3-show-copy.v3-reveal { transform: translateX(40px); }
.v3-show .v3-show-copy.v3-reveal.visible { transform: translateX(0); }

/* Phone idle float — gentle, only when in view (after .visible lands) */
@keyframes wfPhoneFloat {
  0%, 100% { transform: translateY(0) rotate(-0.3deg); }
  50%      { transform: translateY(-8px) rotate(0.3deg); }
}
.v3-show-media.visible .v3-phone { animation: wfPhoneFloat 6.5s ease-in-out 0.6s infinite; }

/* Pillar cards stagger in from below with slight rotate for life */
.v3-pillar.v3-reveal { opacity: 0; transform: translateY(36px) rotate(-1deg); transition: opacity 800ms cubic-bezier(.2,.8,.2,1), transform 800ms cubic-bezier(.2,.8,.2,1); }
.v3-pillar.v3-reveal:nth-child(even) { transform: translateY(36px) rotate(1deg); }
.v3-pillars .v3-pillar.v3-reveal:nth-child(1) { transition-delay: 0ms; }
.v3-pillars .v3-pillar.v3-reveal:nth-child(2) { transition-delay: 80ms; }
.v3-pillars .v3-pillar.v3-reveal:nth-child(3) { transition-delay: 160ms; }
.v3-pillars .v3-pillar.v3-reveal:nth-child(4) { transition-delay: 240ms; }
.v3-pillars .v3-pillar.v3-reveal:nth-child(5) { transition-delay: 320ms; }
.v3-pillars .v3-pillar.v3-reveal:nth-child(6) { transition-delay: 400ms; }
.v3-pillar.v3-reveal.visible { opacity: 1; transform: translateY(0) rotate(0); }

@media (prefers-reduced-motion: reduce) {
  .v3-show-media,
  .v3-show-copy,
  .v3-pillar.v3-reveal { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
  .v3-show-media.visible .v3-phone { animation: none !important; }
}

/* ---------- WF brand-logo chips (real platform marks, not checkmarks) ---------- */
.v3-chip-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--white);
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms cubic-bezier(.2,.8,.2,1), border-color 220ms;
}
.v3-chip-brand:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.v3-chip-brand .v3-chip-logo {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  overflow: hidden;
}
.v3-chip-brand .v3-chip-logo svg { width: 100%; height: 100%; display: block; }
/* Brand colors */
.v3-chip-brand[data-brand="whatsapp"]  .v3-chip-logo { background: #25d366; color: #fff; }
.v3-chip-brand[data-brand="telegram"]  .v3-chip-logo { background: #229ED9; color: #fff; }
.v3-chip-brand[data-brand="instagram"] .v3-chip-logo { background: linear-gradient(135deg,#feda75 0%,#fa7e1e 25%,#d62976 50%,#962fbf 75%,#4f5bd5 100%); color:#fff; }
.v3-chip-brand[data-brand="facebook"]  .v3-chip-logo { background: #1877F2; color: #fff; }
.v3-chip-brand[data-brand="shopify"]   .v3-chip-logo { background: #95BF47; color: #fff; }
.v3-chip-brand[data-brand="x"]         .v3-chip-logo { background: #000; color: #fff; }
.v3-chip-brand[data-brand="ebay"]      .v3-chip-logo { background: #fff; color: #000; border: 1px solid var(--border); }

/* =====================================================================
   V3 — end
   ===================================================================== */

/* =====================================================================
   ===== V5 MOTION + DISPLAY — start =====
   Layered on top of V3. Adds richer motion, bolder display type,
   and a contrast accent palette. All motion is scoped behind
   prefers-reduced-motion: no-preference and pointer-fine where relevant.
   ===================================================================== */

:root {
  --accent-deep: #1f3b3a;
  --accent-warm: #c97e4a;
}
[data-theme="dark"] {
  --accent-deep: #4ec9b0;
}

/* ---------- V5 Display Type ---------- */
.v5-display {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: clamp(48px, 9vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--white);
}
.v5-display em,
.v5-display i {
  font-style: italic;
  color: var(--gold);
  font-weight: 600;
}
.v5-display-line2 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(36px, 6vw, 72px);
  color: var(--white);
  display: block;
}
.v5-subhead {
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 400;
  color: var(--off-white);
  max-width: 56ch;
  line-height: 1.5;
}
.v5-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-deep);
  font-weight: 600;
}

/* ---------- V5 Reveal / Stagger / Section Fade ---------- */
.v5-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease-out, transform 700ms ease-out;
  will-change: opacity, transform;
}
.v5-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}
.v5-section-fade {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms ease-out, transform 800ms ease-out;
  will-change: opacity, transform;
}
.v5-section-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- V5 Parallax (hero device) ---------- */
@media (prefers-reduced-motion: no-preference) and (pointer: fine) {
  .v5-parallax {
    transform: translate3d(0, calc(var(--scroll, 0) * -0.12px), 0);
    will-change: transform;
  }
}

/* ---------- V5 Image / Frame Lift ---------- */
@media (prefers-reduced-motion: no-preference) and (pointer: fine) {
  .v5-lift {
    transition: transform 380ms cubic-bezier(.2,.8,.2,1), box-shadow 380ms cubic-bezier(.2,.8,.2,1);
    will-change: transform, box-shadow;
  }
  .v5-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px -16px rgba(139,115,85,0.35);
  }
}

/* ---------- V5 Magnetic CTA ---------- */
@media (prefers-reduced-motion: no-preference) and (pointer: fine) {
  .v5-magnetic {
    transition: transform 200ms cubic-bezier(.2,.8,.2,1);
    will-change: transform;
  }
}

/* ---------- V5 Marquee ---------- */
.v5-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-base);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.v5-marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  white-space: nowrap;
  font-family: var(--font-serif);
  font-size: clamp(20px, 3vw, 32px);
  color: var(--off-white);
  letter-spacing: 0.01em;
}
.v5-marquee-track > span {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
}
.v5-marquee-track > span::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-deep);
  margin-left: 48px;
  flex-shrink: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .v5-marquee-track {
    animation: v5-marquee 40s infinite linear;
  }
}
@keyframes v5-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- V5 Animated Gradient Mesh (hero only) ---------- */
.v5-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(201,168,76,0.55), transparent 60%),
    radial-gradient(ellipse 55% 50% at 80% 80%, rgba(31,59,58,0.55), transparent 60%);
  background-size: 180% 180%, 180% 180%;
  background-position: 0% 0%, 100% 100%;
}
@media (prefers-reduced-motion: no-preference) {
  .v5-mesh {
    animation: v5-mesh-shift 18s ease-in-out infinite alternate;
  }
}
@keyframes v5-mesh-shift {
  0%   { background-position: 0% 0%, 100% 100%; }
  100% { background-position: 60% 30%, 30% 60%; }
}

/* Make sure hero content stacks above the mesh */
.v3-hero { position: relative; }
.v3-hero > *:not(.v5-mesh) { position: relative; z-index: 1; }

/* ---------- V5 Accent dot helper ---------- */
.v5-accent-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-deep);
  margin-right: 8px;
  vertical-align: middle;
}

/* Reduced motion safety: collapse all V5 motion */
@media (prefers-reduced-motion: reduce) {
  .v5-stagger > *,
  .v5-section-fade {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .v5-marquee-track { animation: none !important; }
  .v5-mesh { animation: none !important; }
}

/* =====================================================================
   ===== V5 MOTION + DISPLAY — end =====
   ===================================================================== */
