/* ============================================================
   DOMA MEDIA — STYLES v3
   Clean rebuild. Dark, premium, red accents.
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --red:        #E63329;
  --red-dark:   #C42820;
  --red-hover:  #FF4540;
  --red-subtle: rgba(230,51,41,0.07);
  --red-border: rgba(230,51,41,0.25);

  --white:   #FFFFFF;
  --text:    #EBEBEB;
  --text-2:  #A0A0A0;
  --text-3:  #555555;

  --bg:   #080808;
  --bg-2: #0F0F0F;
  --bg-3: #161616;
  --bg-4: #1D1D1D;

  --border:   rgba(255,255,255,0.07);
  --border-2: rgba(255,255,255,0.12);

  --sans:  'Inter', system-ui, sans-serif;
  --serif: 'Playfair Display', Georgia, serif;

  --r:   12px;
  --r-s: 8px;
  --r-xs: 5px;

  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 60px rgba(0,0,0,0.6);
  --ease: 0.25s cubic-bezier(0.4,0,0.2,1);

  --nav-h:  68px;
  --ann-h:  44px;
  --w:      1200px;
  --pad:    clamp(20px,5vw,60px);
  --sec:    clamp(72px,8vw,120px);
  --gap:    clamp(16px,2vw,24px);
}

/* ── Animated Card Border ───────────────────────────────── */
@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes card-border-spin {
  to { --border-angle: 360deg; }
}

/* ── Reset ───────────────────────────────────────────────── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Site-wide ambient red atmosphere (fixed, feathered) ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 38% at 50% -2%, rgba(230,51,41,0.042) 0%, transparent 100%),
    radial-gradient(ellipse 42% 55% at -4% 55%, rgba(230,51,41,0.018) 0%, transparent 100%),
    radial-gradient(ellipse 42% 55% at 104% 45%, rgba(230,51,41,0.018) 0%, transparent 100%),
    radial-gradient(ellipse 60% 30% at 50% 102%, rgba(230,51,41,0.022) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
img { display:block; max-width:100%; height:auto; }
a { color:inherit; text-decoration:none; }
button { background:none; border:none; cursor:pointer; font-family:inherit; color:inherit; }
ul,ol { list-style:none; }
svg { flex-shrink:0; }

/* ── Container ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ── Section Rhythm ──────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: clamp(40px,5vw,64px);
}
.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--red-border);
  background: var(--red-subtle);
  padding: 5px 13px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.section-tag--light {
  color: rgba(255,255,255,0.65);
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
}
.section-title {
  font-family: var(--sans);
  font-size: clamp(28px,4.5vw,48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 16px;
}
.section-sub {
  font-size: clamp(14px,1.6vw,16px);
  color: var(--text-2);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}
.serif-em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--red);
}

/* ── Reveal ──────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1),
              transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible { opacity:1; transform:translateY(0); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(90deg, #CC2820 0%, #E63329 30%, #E63329 60%, #F04A2E 80%, #FF5535 100%);
  background-size: 220% 100%;
  background-position: 0% center;
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 100px;
  transition: background-position 0.65s cubic-bezier(0.25,0,0,1),
              box-shadow 0.28s ease,
              transform 0.22s cubic-bezier(0.34,1.56,0.64,1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.55),
    0 0 0 1.5px rgba(200,40,32,0.35),
    inset 0 1px 0 rgba(255,255,255,0.14),
    0 2px 12px rgba(0,0,0,0.3);
}
.btn-primary::after {
  content:'';
  position:absolute;
  inset:0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 55%);
  pointer-events:none;
  border-radius:inherit;
}
.btn-primary:hover {
  background-position: 100% center;
  transform: scale(1.02);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.35),
    0 0 0 1.5px rgba(255,90,50,0.48),
    inset 0 1px 0 rgba(255,255,255,0.2),
    0 8px 32px rgba(230,51,41,0.45),
    0 0 56px rgba(230,51,41,0.18);
}
.btn-primary:active { transform:scale(0.97); }

.btn-xl { padding:16px 36px; font-size:16px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  padding: 13px 0;
  transition: color var(--ease);
}
.btn-ghost:hover { color:var(--white); }

.magnetic-btn { display:inline-flex; }


/* ════════════════════════════════════════════════════════════
   GRAIN
════════════════════════════════════════════════════════════ */
.grain-overlay {
  position: fixed;
  inset: -50%;
  width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.022;
  pointer-events: none;
  z-index: 1000;
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%,100%{transform:translate(0,0)}
  10%{transform:translate(-2%,-3%)}
  30%{transform:translate(3%,2%)}
  50%{transform:translate(-1%,4%)}
  70%{transform:translate(4%,-2%)}
  90%{transform:translate(-3%,1%)}
}

/* ── Cursor ──────────────────────────────────────────────── */
.cursor-follower {
  position: fixed;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(230,51,41,0.45);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  mix-blend-mode: difference;
}
@media (hover:none){.cursor-follower{display:none}}


/* ════════════════════════════════════════════════════════════
   ANNOUNCEMENT BAR
════════════════════════════════════════════════════════════ */
.announcement-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--ann-h);
  background: var(--red-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 44px 0 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  transition: transform 0.3s ease;
}
.announcement-bar.hidden { transform:translateY(-100%); }
.announcement-bar strong { color:#fff; font-weight:700; }
.ann-cta {
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  background: rgba(255,255,255,0.15);
  padding: 4px 11px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.25);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--ease);
}
.ann-cta:hover { background:rgba(255,255,255,0.25); }
.ann-close {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.65);
  padding: 5px;
  display: flex;
  transition: color var(--ease);
}
.ann-close:hover { color:#fff; }


/* ════════════════════════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: var(--ann-h);
  left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background var(--ease), backdrop-filter var(--ease),
              top 0.3s ease, box-shadow var(--ease);
}
.nav.ann-hidden { top:0; }
.nav.scrolled {
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  width: fit-content;
  height: auto;
  overflow: visible;
  padding: 0;
  background: transparent;
  border: none;
}
.nav-logo-img {
  display: block;
  max-height: 32px;
  width: auto;
  height: auto;
  max-width: none;
  object-fit: contain;
  flex-shrink: 0;
}
.nav-links { display:flex; align-items:center; gap:32px; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--ease);
}
.nav-links a:hover { color:var(--white); }
.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 9px 20px !important;
  border-radius: 100px;
  transition: background var(--ease), box-shadow var(--ease) !important;
}
.nav-cta:hover { background:var(--red-hover) !important; box-shadow:0 0 20px rgba(230,51,41,0.4) !important; }
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-mobile-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.mobile-menu {
  position: fixed;
  top: calc(var(--ann-h) + var(--nav-h));
  left: 0; right: 0;
  z-index: 99;
  background: rgba(8,8,8,0.97);
  backdrop-filter: blur(20px);
  padding: 16px var(--pad);
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1), opacity 0.32s;
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { transform:translateY(0); opacity:1; pointer-events:auto; }
.mobile-menu a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-2);
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--ease);
}
.mobile-menu a:last-child { border-bottom:none; }
.mobile-menu a:hover { color:var(--white); }
.mobile-cta-link { color:var(--red) !important; font-weight:600 !important; }


/* ════════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding-top: calc(var(--ann-h) + var(--nav-h) + clamp(48px,6vw,80px));
  padding-bottom: clamp(60px,8vw,100px);
  overflow: hidden;
}
.hero-bg-glow {
  position: absolute;
  top: -200px; left: -200px;
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(230,51,41,0.12) 0%, rgba(230,51,41,0.04) 45%, transparent 70%);
  pointer-events: none;
}
/* Cinematic dust/spark highlights — sparse warm dots */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 2px 2px at 14% 22%, rgba(230,51,41,0.55) 0%, transparent 100%),
    radial-gradient(ellipse 1.5px 1.5px at 29% 10%, rgba(255,200,180,0.25) 0%, transparent 100%),
    radial-gradient(ellipse 2px 2px at 51% 38%, rgba(230,51,41,0.40) 0%, transparent 100%),
    radial-gradient(ellipse 1.5px 1.5px at 66% 7%, rgba(255,200,180,0.20) 0%, transparent 100%),
    radial-gradient(ellipse 2px 2px at 80% 52%, rgba(230,51,41,0.38) 0%, transparent 100%),
    radial-gradient(ellipse 1.5px 1.5px at 91% 28%, rgba(255,200,180,0.16) 0%, transparent 100%),
    radial-gradient(ellipse 2px 2px at 7% 68%, rgba(230,51,41,0.28) 0%, transparent 100%),
    radial-gradient(ellipse 1.5px 1.5px at 43% 72%, rgba(255,200,180,0.14) 0%, transparent 100%),
    radial-gradient(ellipse 2px 2px at 95% 75%, rgba(230,51,41,0.22) 0%, transparent 100%),
    radial-gradient(ellipse 1.5px 1.5px at 60% 88%, rgba(255,200,180,0.12) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px,5vw,72px);
  align-items: center;
}

/* copy */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid var(--border-2);
  background: var(--bg-3);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.pill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 6px var(--red);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100%{opacity:1;transform:scale(1)}
  50%{opacity:0.4;transform:scale(0.8)}
}
.hero-h1 {
  font-size: clamp(34px,4.8vw,58px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.024em;
  color: var(--white);
  margin-bottom: 16px;
}
.hero-sub {
  font-size: clamp(14px,1.6vw,16px);
  color: var(--text-2);
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 24px;
}
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.hero-qualifier {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
}
.trust-sep {
  width: 1px; height: 14px;
  background: var(--border-2);
}

/* visual cards */
.hero-visual { position:relative; }
.hv-stack { display:flex; flex-direction:column; gap:10px; }
.hv-row { display:flex; gap:10px; }

.hv-card {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(230,51,41,0.05) 0%, transparent 60%),
    var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.hv-card:hover { transform:translateY(-3px); box-shadow:0 0 0 1px rgba(255,255,255,0.09), 0 10px 32px rgba(0,0,0,0.45), 0 0 20px rgba(230,51,41,0.06); }

.hvc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.hvc-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-2);
}
.hvc-badge {
  font-size: 10px;
  font-weight: 700;
  color: #4ade80;
  background: rgba(74,222,128,0.1);
  padding: 2px 8px;
  border-radius: 100px;
  border: 1px solid rgba(74,222,128,0.2);
}
.hvc-value {
  font-size: 34px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 3px;
}
.hvc-note {
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 16px;
}
.hvc-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 48px;
}
.bar {
  flex: 1;
  background: var(--bg-4);
  border-radius: 3px 3px 0 0;
  height: var(--h);
}
.bar--red { background:var(--red); opacity:0.85; }

.hv-card--ring { display:flex; align-items:center; gap:14px; flex:1; }
.hvc-ring { position:relative; width:64px; height:64px; flex-shrink:0; }
.hvc-ring svg { position:absolute; inset:0; }
.ring-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}

.hv-card--badge { display:flex; align-items:center; gap:10px; flex:1; }
.badge-icon { font-size:20px; }
.hv-card--badge strong { font-size:14px; font-weight:700; color:var(--white); display:block; }
.hv-card--badge span { font-size:11px; color:var(--text-2); display:block; }


/* ════════════════════════════════════════════════════════════
   VIDEO
════════════════════════════════════════════════════════════ */
.section-video {
  padding: var(--sec) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-video .section-header { max-width: 640px; margin-left: auto; margin-right: auto; }
.section-sub {
  font-size: clamp(14px, 1.6vw, 16px);
  color: var(--text-2);
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto;
}

/* Loom embed — exact Loom aspect ratio (65.018%) */
.video-embed { max-width: 960px; margin: 0 auto; }
.video-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.video-cta-note {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 500;
}
.video-loom {
  border-radius: var(--r);
  overflow: hidden;
  box-shadow:
    0 8px 48px rgba(0,0,0,0.55),
    0 0 0 1px rgba(230,51,41,0.10);
}
.video-loom > div {
  display: block;
}


/* ════════════════════════════════════════════════════════════
   PROBLEM
════════════════════════════════════════════════════════════ */
.section-problem {
  padding: var(--sec) 0;
  position: relative;
  overflow: hidden;
}
.section-problem::before {
  content:'';
  position:absolute;
  top:-120px; right:-180px;
  width:700px; height:700px;
  background:radial-gradient(circle,rgba(230,51,41,0.1) 0%,transparent 65%);
  pointer-events:none;
}
.section-problem::after {
  content:'';
  position:absolute;
  bottom:-80px; left:-120px;
  width:500px; height:500px;
  background:radial-gradient(circle,rgba(230,51,41,0.055) 0%,transparent 65%);
  pointer-events:none;
}
.prob-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: var(--gap);
}
.prob-card {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(230,51,41,0.05) 0%, transparent 55%),
    var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: clamp(24px,3vw,36px);
  position: relative;
  overflow: hidden;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
  display: flex;
  flex-direction: column;
}
.prob-card:hover {
  transform:translateY(-4px);
  box-shadow:0 0 0 1px rgba(255,255,255,0.1), 0 14px 40px rgba(0,0,0,0.45), 0 0 28px rgba(230,51,41,0.07);
}
.prob-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-s);
  background: var(--red-subtle);
  border: 1px solid var(--red-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
  color: var(--red);
}
.prob-title {
  font-size: clamp(16px,1.8vw,19px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.3;
}
.prob-body {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 16px;
}
.prob-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.prob-n {
  font-size: 44px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.04em;
  line-height: 1;
}
.prob-l { font-size: 11px; color: var(--text-3); letter-spacing: 0.01em; }
.prob-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.prob-tag-item {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 100px;
  background: var(--bg-4);
  color: var(--text-2);
  border: 1px solid var(--border-2);
}
.prob-tag-red {
  background: rgba(230,51,41,0.1);
  color: var(--red);
  border-color: var(--red-border);
}
.prob-arrow { color:var(--text-3); font-size:13px; }


/* ════════════════════════════════════════════════════════════
   FRAMEWORK
════════════════════════════════════════════════════════════ */
.section-framework {
  padding: var(--sec) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.section-framework::before {
  content:'';
  position:absolute;
  top:50%;left:50%;
  transform:translate(-50%,-50%);
  width:1100px;height:800px;
  background:radial-gradient(ellipse,rgba(230,51,41,0.09) 0%,rgba(230,51,41,0.03) 50%,transparent 70%);
  pointer-events:none;
  filter:blur(1px);
}
.fw-block { position:relative; z-index:1; }
.fw-text {
  background:
    radial-gradient(ellipse at 0% 100%, rgba(230,51,41,0.05) 0%, transparent 55%),
    var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: clamp(28px,3.5vw,44px);
}
.fw-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px;
  width: fit-content;
  margin-bottom: 36px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}
.fw-nav::-webkit-scrollbar { display:none; }
.fw-btn {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  padding: 9px 20px;
  border-radius: 100px;
  white-space: nowrap;
  transition: color var(--ease), background var(--ease);
}
.fw-btn:hover { color:var(--white); }
.fw-btn.active { background:var(--red); color:#fff; }

.fw-panels {}
.fw-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px,5vw,64px);
  align-items: stretch;
  animation: fadeUp 0.32s ease;
}
.fw-panel.active { display:grid; }
@keyframes fadeUp {
  from{opacity:0;transform:translateY(10px)}
  to{opacity:1;transform:translateY(0)}
}
.fw-step {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.fw-title {
  font-size: clamp(20px,2.5vw,26px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  letter-spacing: -0.018em;
  margin-bottom: 12px;
}
.fw-body {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 20px;
}
.fw-list { display:flex; flex-direction:column; gap:9px; }
.fw-list li {
  font-size: 13px;
  color: var(--text-2);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.fw-list li::before {
  content:'✓';
  position:absolute; left:0;
  color:var(--red);
  font-weight:700;
  font-size:11px;
}
.fw-visual {
  display: flex;
  flex-direction: column;
}
.fw-img-placeholder {
  height: 100%;
  min-height: 300px;
  border-radius: var(--r);
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.fw-img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, rgba(230,51,41,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.fw-img-icon { font-size:32px; position:relative; z-index:1; }
.fw-img-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.fw-img-hint { display:none; }

/* ── Framework: real photo visuals ───────────────────────── */
.fw-img {
  flex: 1;
  min-height: 260px;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 4px 20px rgba(0,0,0,0.45),
    0 16px 52px rgba(0,0,0,0.4),
    inset 0 0 0 1px rgba(230,51,41,0.06);
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
/* Inner atmospheric glow — feathers into dark bg */
.fw-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 110%, rgba(230,51,41,0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 50% -10%, rgba(255,255,255,0.025) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}
/* Use contain so full graphic is always visible in frame */
.fw-img-photo {
  display: block;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  object-fit: contain;
  object-position: center;
  position: relative;
  z-index: 0;
  image-rendering: -webkit-optimize-contrast;
}

/* ── Framework: Convert — 3-card email stack ─────────────── */
.fw-email-stack {
  flex: 1;
  min-height: 340px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Base card — side cards */
.fw-email-card {
  position: absolute;
  width: 150px;
  height: 278px;
  border-radius: 16px;
  overflow: hidden;
  transition:
    transform 0.42s cubic-bezier(0.25,0.46,0.45,0.94),
    box-shadow 0.42s ease,
    filter 0.42s ease;
}

/* Center — dominant focal card */
.fw-email-card--center {
  z-index: 3;
  width: 180px;
  height: 334px;
  border-radius: 16px;
  transform: rotate(0.8deg);
  box-shadow:
    0 2px 6px rgba(0,0,0,0.3),
    0 10px 32px rgba(0,0,0,0.55),
    0 28px 70px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.1),
    0 0 52px rgba(230,51,41,0.1);
}

/* Left — partially behind, blurred back, tighter overlap */
.fw-email-card--left {
  z-index: 2;
  transform: rotate(-4deg) translate(-104px, 22px);
  filter: blur(0.6px) brightness(0.75);
  box-shadow:
    0 6px 20px rgba(0,0,0,0.45),
    0 18px 48px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.05);
}

/* Right — partially behind, blurred back, tighter overlap */
.fw-email-card--right {
  z-index: 2;
  transform: rotate(4deg) translate(104px, 22px);
  filter: blur(0.6px) brightness(0.75);
  box-shadow:
    0 6px 20px rgba(0,0,0,0.45),
    0 18px 48px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.05);
}

/* Hover — any card comes forward, sharpens, glows */
.fw-email-card:hover {
  transform: rotate(0deg) translateY(-10px) scale(1.05) !important;
  filter: none !important;
  z-index: 10;
  box-shadow:
    0 12px 40px rgba(0,0,0,0.65),
    0 28px 72px rgba(0,0,0,0.55),
    0 0 0 1px rgba(230,51,41,0.22),
    0 0 56px rgba(230,51,41,0.1);
}

.fw-email-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}


/* ════════════════════════════════════════════════════════════
   CAROUSEL
════════════════════════════════════════════════════════════ */
.section-carousel {
  padding: var(--sec) 0;
  overflow: hidden;
  position: relative;
}
.section-carousel::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px; height: 500px;
  background: radial-gradient(ellipse, rgba(230,51,41,0.055) 0%, transparent 65%);
  pointer-events: none;
  filter: blur(1px);
}

.carousel-outer {
  overflow: hidden;
  cursor: grab;
  padding: 32px 0 48px; /* vertical room for rotation + shadows */
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.carousel-outer:active { cursor: grabbing; }

.carousel-track {
  display: flex;
  gap: 12px;
  width: max-content;
  will-change: transform;
  animation: email-scroll 42s linear infinite;
}
@keyframes email-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.email-card {
  flex-shrink: 0;
  width: 310px;
  height: 560px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 4px 16px rgba(0,0,0,0.35),
    0 20px 60px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.06);
  transition:
    transform 0.45s cubic-bezier(0.25,0.46,0.45,0.94),
    box-shadow 0.45s ease;
  user-select: none;
}

/* Subtle cinematic tilt variation per card */
.email-card:nth-child(5n+1) { transform: rotate(-1.8deg); }
.email-card:nth-child(5n+2) { transform: rotate( 1.2deg); }
.email-card:nth-child(5n+3) { transform: rotate(-0.7deg); }
.email-card:nth-child(5n+4) { transform: rotate( 1.6deg); }
.email-card:nth-child(5n+5) { transform: rotate(-1.1deg); }

.email-card:hover {
  transform: rotate(0deg) translateY(-10px) scale(1.03) !important;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.5),
    0 32px 90px rgba(0,0,0,0.7),
    0 0 0 1px rgba(230,51,41,0.2),
    0 0 70px rgba(230,51,41,0.07);
  z-index: 10;
}

/* Bottom cinematic vignette on each card */
.email-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
  border-radius: 0 0 18px 18px;
}

.ec-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}


/* ════════════════════════════════════════════════════════════
   RESULTS
════════════════════════════════════════════════════════════ */
.section-results {
  padding: var(--sec) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.section-results::before {
  content:'';
  position:absolute;
  top:50%;left:50%;
  transform:translate(-50%,-50%);
  width:900px;height:600px;
  background:radial-gradient(ellipse,rgba(230,51,41,0.09) 0%,transparent 65%);
  pointer-events:none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: var(--gap);
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}
.stat-card {
  background:
    linear-gradient(90deg, var(--red), var(--red-hover), transparent) top/100% 2px no-repeat,
    radial-gradient(ellipse at 50% 0%, rgba(230,51,41,0.06) 0%, transparent 60%),
    var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: clamp(24px,3vw,36px) clamp(16px,2vw,24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 14px 40px rgba(0,0,0,0.45), 0 0 28px rgba(230,51,41,0.08);
}
.stat-val {
  font-size: clamp(28px,4vw,46px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 6px;
  line-height: 1.4;
}
.stat-delta { font-size:11px; color:#4ade80; font-weight:600; }

.result-quote {
  background:
    radial-gradient(ellipse at 0% 100%, rgba(230,51,41,0.04) 0%, transparent 50%),
    var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: clamp(28px,4vw,48px);
  position: relative;
  z-index: 1;
}
.result-quote blockquote { position:relative; }
.rq-mark {
  font-family: var(--serif);
  font-size: 80px;
  line-height: 0.8;
  color: var(--red);
  opacity: 0.2;
  position: absolute;
  top: -12px; left: -4px;
  pointer-events: none;
}
.rq-text {
  font-family: var(--serif);
  font-size: clamp(16px,2vw,22px);
  font-style: italic;
  color: var(--white);
  line-height: 1.65;
  padding-left: 20px;
  margin-bottom: 20px;
}
.rq-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 20px;
}
.rq-ava {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  flex-shrink: 0;
}
.rq-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  font-style: normal;
  display: block;
}
.rq-role { font-size:11px; color:var(--text-2); display:block; }


/* ════════════════════════════════════════════════════════════
   COMPARISON
════════════════════════════════════════════════════════════ */
.section-comparison {
  padding: var(--sec) 0;
  position: relative;
  overflow: hidden;
}
.section-comparison::before {
  content:'';
  position:absolute;
  top:-150px;right:-150px;
  width:600px;height:600px;
  background:radial-gradient(circle,rgba(230,51,41,0.06) 0%,transparent 65%);
  pointer-events:none;
}
/* ── Comparison: card-row layout ────────────── */
.cmp-wrap { position:relative; z-index:1; }

.cmp-new { display:flex; flex-direction:column; }

.cmp-header-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  padding: 0 4px 14px;
  margin-bottom: 2px;
}
.cmp-header-spacer { padding: 0 24px; }
.cmp-header-other {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}
.cmp-header-us {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  overflow: visible;
  padding: 8px 12px;
  background: transparent;
}
.cmp-logo {
  display: block;
  max-height: 28px;
  width: auto;
  height: auto;
  max-width: none;
  object-fit: contain;
  opacity: 0.9;
  flex-shrink: 0;
}

.cmp-body { display:flex; flex-direction:column; gap:6px; }

.cmp-item {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  min-height: 68px;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.25s ease, transform 0.22s ease;
}
.cmp-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.cmp-feat {
  padding: 18px 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  overflow-wrap: break-word;
  word-break: break-word;
}
.cmp-val-other {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  font-size: 13px;
  background: rgba(255,255,255,0.018);
  text-align: center;
  overflow-wrap: break-word;
  word-break: break-word;
}
.cmp-val-us {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(230,51,41,0.09) 0%, rgba(230,51,41,0.04) 100%);
  box-shadow: inset 1px 0 0 rgba(230,51,41,0.18);
  text-align: center;
  overflow-wrap: break-word;
  word-break: break-word;
}
.c-good { color:var(--white); font-weight:700; }
.c-mid  { color:var(--text-3); }
.c-weak { color: rgba(255,255,255,0.22); font-weight:400; }


/* ════════════════════════════════════════════════════════════
   ANIMATED CARD BORDERS
════════════════════════════════════════════════════════════ */
.prob-card::before,
.stat-card::before,
.hv-card::before,
.tl-card::before,
.cmp-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--border-angle),
    transparent 0%,
    transparent 22%,
    rgba(230,51,41,0.85) 42%,
    #FF5535 50%,
    rgba(230,51,41,0.85) 58%,
    transparent 78%,
    transparent 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.35s ease;
  animation: card-border-spin 2.4s linear infinite;
  animation-play-state: paused;
}

.prob-card:hover::before,
.stat-card:hover::before,
.hv-card:hover::before,
.tl-card:hover::before,
.cmp-item:hover::before {
  opacity: 1;
  animation-play-state: running;
}


/* ════════════════════════════════════════════════════════════
   FINAL CTA
════════════════════════════════════════════════════════════ */
.section-cta {
  padding: clamp(90px,10vw,160px) 0;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.cta-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(230,51,41,0.16) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(230,51,41,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.cta-title {
  font-size: clamp(36px,6vw,68px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 18px 0;
}
.cta-sub {
  font-size: clamp(14px,1.6vw,17px);
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}
.cta-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.cta-trust span { font-size:13px; font-weight:500; color:var(--text-2); }


/* ════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: clamp(48px,6vw,72px) 0 36px;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(28px,4vw,56px);
  margin-bottom: 48px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: visible;
  background: transparent;
}
.footer-logo {
  display: block;
  max-height: 44px;
  width: auto;
  height: auto;
  max-width: none;
  object-fit: contain;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.footer-tagline {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 240px;
  margin-bottom: 18px;
}
.footer-social { display:flex; gap:10px; }
.social-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: color var(--ease), background var(--ease), border-color var(--ease);
}
.social-icon:hover { color:var(--white); background:rgba(255,255,255,0.08); border-color:rgba(255,255,255,0.2); }

.footer-col { display:flex; flex-direction:column; gap:10px; }
.footer-col-h {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 2px;
}
.footer-col a { font-size:13px; color:var(--text-2); transition:color var(--ease); }
.footer-col a:hover { color:var(--white); }
.footer-cta-link { color:var(--red) !important; font-weight:600 !important; }

.footer-partners {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.fp-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}
.fp-logos { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.fp-partner {
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  transition: border-color var(--ease);
}
.fp-partner:hover { border-color:var(--border-2); }
.fp-img {
  display: block;
  object-fit: contain;
  opacity: 0.62;
  filter: grayscale(15%);
  transition: opacity var(--ease), filter var(--ease);
}
.fp-img:hover { opacity:0.85; filter:grayscale(0%); }
.fp-kl { height:24px; max-width:160px; width:auto; }
.fp-sh { height:21px; max-width:130px; width:auto; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size:12px; color:var(--text-3); }
.footer-legal { display:flex; gap:18px; }
.footer-legal a { font-size:12px; color:var(--text-3); transition:color var(--ease); }
.footer-legal a:hover { color:var(--text-2); }



/* ════════════════════════════════════════════════════════════
   POPUP
════════════════════════════════════════════════════════════ */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(4,4,4,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.popup-overlay.active { opacity:1; pointer-events:auto; }
.popup-content {
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: 20px;
  max-width: 860px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  position: relative;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
  max-height: 90vh;
  box-shadow: var(--shadow-lg);
}
.popup-overlay.active .popup-content { transform:scale(1) translateY(0); }
.popup-close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 10;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-4);
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: color var(--ease), background var(--ease);
}
.popup-close:hover { color:var(--white); background:var(--bg); }
.popup-left {
  padding: clamp(28px,3.5vw,48px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}
.popup-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}
.popup-title {
  font-size: clamp(22px,3vw,34px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.popup-title em { font-family:var(--serif); font-style:italic; font-weight:400; color:var(--red); }
.popup-sub { font-size:14px; color:var(--text-2); line-height:1.7; }
.popup-bullets { display:flex; flex-direction:column; gap:8px; }
.popup-bullets li {
  font-size: 13px;
  color: var(--text-2);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.popup-bullets li::before { content:'✓'; position:absolute; left:0; color:var(--red); font-weight:700; font-size:11px; }
.popup-form { display:flex; flex-direction:column; gap:9px; }
.popup-input {
  background: var(--bg-4);
  border: 1px solid var(--border-2);
  border-radius: 100px;
  padding: 12px 18px;
  font-size: 14px;
  color: var(--white);
  font-family: var(--sans);
  outline: none;
  transition: border-color var(--ease);
  width: 100%;
}
.popup-input::placeholder { color:var(--text-3); }
.popup-input:focus { border-color:var(--red); }
.popup-btn { width:100%; justify-content:center; }
.popup-privacy { font-size:11px; color:var(--text-3); }
.popup-right {
  background: linear-gradient(135deg,rgba(230,51,41,0.09) 0%,rgba(230,51,41,0.02) 100%);
  border-left: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.popup-book-wrap { display:flex; flex-direction:column; align-items:center; gap:24px; }
.popup-book { position:relative; }
.pb-cover {
  width:160px; height:220px;
  background: linear-gradient(135deg,var(--red-dark) 0%,var(--red) 60%,#FF6B5E 100%);
  border-radius: 3px 10px 10px 3px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 6px 10px 30px rgba(0,0,0,0.5);
  transform: rotateY(-8deg);
  position: relative;
  z-index: 1;
}
.pb-tag {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.15);
  padding: 3px 7px;
  border-radius: 100px;
  align-self: flex-start;
}
.pb-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.pb-pages { font-size:11px; color:rgba(255,255,255,0.6); font-weight:600; }
.pb-spine {
  position: absolute;
  left:0; top:0;
  width: 12px; height: 220px;
  background: var(--red-dark);
  border-radius: 3px 0 0 3px;
  transform: rotateY(-8deg) translateX(-10px);
}
.pb-shadow {
  position: absolute;
  bottom: -14px; left: 10px; right: -8px;
  height: 20px;
  background: rgba(0,0,0,0.4);
  filter: blur(10px);
  border-radius: 50%;
}
.popup-pills { display:flex; flex-direction:column; gap:6px; align-items:center; }
.pop-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  padding: 5px 13px;
  border-radius: 100px;
}


/* ════════════════════════════════════════════════════════════
   TIMELINE — 30 DAYS
════════════════════════════════════════════════════════════ */
.section-timeline {
  padding: var(--sec) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.section-timeline::before {
  content:'';
  position:absolute;
  bottom:-200px;left:-100px;
  width:700px;height:700px;
  background:radial-gradient(circle,rgba(230,51,41,0.06) 0%,transparent 65%);
  pointer-events:none;
}
.tl-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: var(--gap);
  position: relative;
}
/* Connecting line between cards */
.tl-grid::after {
  content:'';
  position:absolute;
  top:24px;
  left:calc(12.5% + 12px);
  right:calc(12.5% + 12px);
  height:1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--red-border) 10%,
    var(--red-border) 90%,
    transparent 100%
  );
  pointer-events:none;
}
.tl-card {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(230,51,41,0.05) 0%, transparent 60%),
    var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: clamp(24px,3vw,36px);
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: transform var(--ease), box-shadow var(--ease);
}
.tl-card:hover { transform:translateY(-4px); box-shadow:0 0 0 1px rgba(255,255,255,0.1), 0 14px 40px rgba(0,0,0,0.45), 0 0 24px rgba(230,51,41,0.07); }
.tl-week {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-subtle);
  border: 1px solid var(--red-border);
  padding: 4px 10px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 16px;
}
.tl-title {
  font-size: clamp(15px,1.6vw,17px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.tl-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.tl-list li {
  font-size: 13px;
  color: var(--text-2);
  padding-left: 16px;
  position: relative;
  line-height: 1.55;
}
.tl-list li::before {
  content:'';
  position:absolute;
  left:0;
  top:7px;
  width:5px;height:5px;
  border-radius:50%;
  background:var(--red);
  opacity:0.65;
}


/* ════════════════════════════════════════════════════════════
   COMPARISON — BADGE UPGRADE
════════════════════════════════════════════════════════════ */
.cmp-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}
/* Alternate row tinting for Doma column — slight warmth on odd rows */
.cmp-item:nth-child(even) {
  background: rgba(255,255,255,0.01);
}
.cmp-item:nth-child(even) .cmp-val-us {
  background: linear-gradient(135deg, rgba(230,51,41,0.07) 0%, rgba(230,51,41,0.03) 100%);
}


/* ════════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════════ */

/* ── Large laptops (≤1280px) ─────────────────────────────── */
@media (max-width: 1280px) {
  .hero-inner { gap: clamp(32px,4vw,56px); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Tablets landscape / small laptops (≤1024px) ────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .fw-text { padding: clamp(22px,3vw,36px); }
  /* Comparison: tighten column widths */
  .cmp-header-row { grid-template-columns: 1.4fr 1fr 1fr; }
  .cmp-item { grid-template-columns: 1.4fr 1fr 1fr; }
  .cmp-val-other, .cmp-val-us { padding: 14px 12px; }
}

/* ── Tablets portrait (≤900px) ──────────────────────────── */
@media (max-width: 900px) {
  /* Hero */
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hv-stack { flex-direction: row; flex-wrap: wrap; }
  .hv-card--main { flex: 1; min-width: 240px; }
  .hv-row { flex: 1; min-width: 240px; }
  /* Video */
  .video-embed { max-width: 100%; }
  /* Framework */
  .fw-panel.active { grid-template-columns: 1fr; }
  .fw-visual { display: none; }
  /* Problem: keep 2-col until tablet breaks */
  .prob-grid { grid-template-columns: 1fr; }
  /* Timeline */
  .tl-grid { grid-template-columns: repeat(2, 1fr); }
  .tl-grid::after { display: none; }
  /* Popup */
  .popup-content { grid-template-columns: 1fr; }
  .popup-right { display: none; }
}

/* ── Mobile landscape / small tablets (≤768px) ──────────── */
@media (max-width: 768px) {
  :root {
    --sec: clamp(56px, 8vw, 80px);
    --pad: clamp(16px, 5vw, 40px);
  }
  /* Nav */
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-logo-img { max-height: 26px; }
  /* Framework tabs */
  .fw-nav { border-radius: var(--r); }
  .fw-btn { padding: 8px 14px; font-size: 13px; }
  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  /* Timeline: 2 columns on tablet */
  .tl-grid { grid-template-columns: repeat(2, 1fr); }
  .tl-grid::after { display: none; }
  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  /* Comparison: tighten columns, keep spacer in grid flow so headers
     stay aligned above their correct columns (display:none removes
     items from grid entirely, shifting everything left by one column) */
  .cmp-header-row { grid-template-columns: 1.2fr 1fr 1fr; padding: 0 0 12px; }
  .cmp-item { grid-template-columns: 1.2fr 1fr 1fr; min-height: auto; }
  .cmp-header-spacer { padding: 0; visibility: hidden; }
  .cmp-feat { padding: 14px 12px; font-size: 12px; }
  .cmp-val-other, .cmp-val-us { padding: 12px 8px; font-size: 11px; }
  .cmp-header-other { font-size: 10px; padding: 0 8px; }
  .cmp-header-us { padding: 4px 8px; }
  .cmp-logo { max-height: 20px; }
  /* CTA section */
  .cta-trust { gap: 14px; }
}

/* ── Mobile portrait (≤560px) ───────────────────────────── */
@media (max-width: 560px) {
  :root { --ann-h: 40px; }
  /* Announcement bar: condense */
  .announcement-bar { font-size: 12px; gap: 8px; padding: 0 40px 0 12px; }
  /* Hero CTAs: stack, primary full-width */
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-ctas .btn-primary { width: 100%; justify-content: center; }
  .hero-ctas .btn-ghost { align-self: flex-start; padding: 10px 0; }
  .hero-trust { flex-direction: column; align-items: flex-start; gap: 6px; }
  .trust-sep { display: none; }
  /* Hero visual: stack fully */
  .hv-stack { flex-direction: column; }
  .hv-card--main, .hv-row { min-width: 0; flex: none; width: 100%; }
  /* Stats: 2 columns */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  /* Timeline: single column */
  .tl-grid { grid-template-columns: 1fr; }
  /* Comparison: stacked 2-column layout (feature label full-width,
     values side-by-side below it) */
  .cmp-header-row {
    grid-template-columns: 1fr 1fr;
    padding: 0 0 10px;
  }
  .cmp-header-spacer { display: none; }
  .cmp-header-other { font-size: 11px; padding: 0 10px; }
  .cmp-header-us { padding: 5px 10px; }
  .cmp-logo { max-height: 18px; }

  .cmp-item {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    min-height: auto;
  }
  .cmp-feat {
    grid-column: 1 / -1;
    padding: 12px 14px;
    font-size: 12px;
    border-bottom: 1px solid var(--border);
  }
  .cmp-val-other {
    grid-column: 1;
    padding: 10px 10px;
    font-size: 11px;
    border-right: 1px solid var(--border);
  }
  .cmp-val-us {
    grid-column: 2;
    padding: 10px 10px;
    font-size: 11px;
  }
  /* Footer */
  .footer-partners { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  /* Final CTA */
  .cta-trust { flex-direction: column; gap: 8px; }
  /* Popup */
  .popup-left { padding: 24px 20px; }
  .popup-content { max-height: 92vh; overflow-y: auto; }
}

/* ── Very small phones (≤420px) ─────────────────────────── */
@media (max-width: 420px) {
  :root { --pad: 14px; }
  /* Announcement: hide paragraph, show only CTA */
  .announcement-bar > p { display: none; }
  .announcement-bar { justify-content: center; gap: 0; }
  /* Hero visual numbers */
  .hvc-value { font-size: 26px; }
  .stat-val { font-size: clamp(22px, 8vw, 32px); }
  /* Comparison: tighten stacked layout for very small screens */
  .cmp-header-other { font-size: 10px; }
  .cmp-logo { max-height: 16px; }
  .cmp-feat { padding: 10px 12px; font-size: 11px; }
  .cmp-val-other, .cmp-val-us { padding: 9px 8px; font-size: 10px; }
  /* Buttons */
  .btn-xl { padding: 14px 24px; font-size: 15px; }
}

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .carousel-track { animation: none; }
  .grain-overlay { animation: none; }
  .pill-dot { animation: none; }
  .prob-card::before,
  .stat-card::before,
  .hv-card::before,
  .tl-card::before,
  .cmp-item::before { animation: none; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
