/* =============================================================
   VettifyNG Landing — "Verification Instrument" Design System
   Aligned with /client/src/styles/design-system.css
   Tokens: Ink (teal-navy), Stamp (vermilion), Paper (warm white)
   ============================================================= */

:root {
  /* Ink (primary dark — teal-navy core) */
  --primary: #0B1F2A;            /* ink-950 */
  --primary-dark: #0B1F2A;       /* ink-950 */
  --primary-light: #2C4F60;      /* ink-700 */

  /* Stamp (accent — vermilion seal-red) */
  --accent: #C2410C;             /* stamp base */
  --accent-dark: #EA580C;        /* stamp-600 / hover */
  --accent-light: #FDBA74;
  /* Dark-surface (ink) text tokens — WCAG AA on #0B1F2A.
     --accent (#C2410C) is 3.26:1 on ink and must not be used for text there. */
  --on-ink-body: #EDE9E0;   /* 13.9:1 */
  --on-ink-muted: #A8BFCB;  /* passes AA */
  --on-ink-accent: #FDBA74; /* 10:1 */       /* stamp-300 */

  /* Verify / status */
  --success: #0F766E;            /* verify */
  --error: #B91C1C;              /* danger */

  /* Neutrals / paper */
  --white: #fff;
  --off-white: #F7F5F0;          /* paper base */
  --light-gray: #EDE9E0;         /* paper-200 */
  --medium-gray: #475569;        /* slate */
  --dark-gray: #102A38;          /* ink-900 */

  /* Typography */
  --font-heading: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-bengali: "Hind Siliguri", "Noto Sans Bengali", sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Radii (quiet, precise) */
  --radius-card: 0.75rem;
  --radius-button: 0.5rem;
  --radius-pill: 9999px;

  /* Shadows (ink-tinted) */
  --shadow-sm: 0 1px 2px rgba(11, 31, 42, 0.06), 0 1px 3px rgba(11, 31, 42, 0.10); /* shadow-card */
  --shadow-md: 0 6px 18px -4px rgba(11, 31, 42, 0.15);                              /* shadow-hover */
  --shadow-lg: 0 10px 24px -8px rgba(11, 31, 42, 0.22);                            /* shadow-elevated */
  --shadow-xl: 0 10px 24px -8px rgba(11, 31, 42, 0.22);                            /* shadow-elevated */

  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
  --announce-height: 44px;
}

*, :after, :before { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
/* scroll-padding reserves only the PERSISTENT chrome (the fixed header). The
   announce strip is in normal flow and scrolls away, so it must not be added here
   or every in-page anchor would land ~44px low. Applies to policy pages too. */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + var(--space-md)); }
body {
  font-family: var(--font-body);
  color: var(--dark-gray);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Bengali language support */
[lang=bn] body,
[lang=bn] h1,
[lang=bn] h2,
[lang=bn] h3,
[lang=bn] h4,
[lang=bn] li,
[lang=bn] p,
[lang=bn] span { font-family: var(--font-bengali); }

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
ol, ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-dark);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

p { margin-bottom: var(--space-md); color: var(--medium-gray); }

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}
.section { padding: var(--space-4xl) 0; }
section { position: relative; overflow: hidden; }

/* H13: scope the decorative radial wash to .section-header (and the hero)
   instead of painting every section. The previous selector applied the
   gradient + ::before pseudo-element to every <section> on every page,
   which multiplied paint cost linearly with page length and showed up
   visibly as scroll jank on low-end Android. */
.section-header::before,
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at 50% 0, rgba(194, 65, 12, 0.03) 0, transparent 70%);
  pointer-events: none;
}
.section-header { position: relative; overflow: hidden; }

.section-header { text-align: center; margin-bottom: var(--space-3xl); }
.section-header h2 {
  margin-bottom: var(--space-md);
  position: relative;
  display: inline-block;
}
.section-header h2:after {
  content: "";
  position: absolute;
  bottom: -10px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 3px;
  background: var(--accent);
}
.section-header p {
  max-width: 600px;
  margin: var(--space-lg) auto 0;
  font-size: 1.1rem;
}

/* Buttons — stamp on white text for primary, matching app .btn-primary */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-button);
  transition: all 0.3s ease;
  min-height: 48px;
  min-width: 48px;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(194, 65, 12, 0.35);
}
.btn-primary:after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: hsla(0, 0%, 100%, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}
.btn-primary:hover:after { width: 300px; height: 300px; }

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-secondary:hover { background: var(--white); color: var(--primary-dark); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }

/* Language switcher */
.lang-switcher { display: flex; gap: var(--space-sm); align-items: center; }
.lang-btn {
  padding: 6px 12px;
  border-radius: var(--radius-button);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
  background: hsla(0, 0%, 100%, 0.1);
  color: var(--white);
}
.lang-btn.active, .lang-btn:hover {
  background: var(--accent);
  color: var(--white);
}

/* Header — always solid ink.
   It used to be transparent so the white nav text could sit on the dark hero,
   but the announce strip now occupies the space above the hero, so a transparent
   header would render white-on-white. The base state is therefore dark. */
.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: all 0.3s ease;
  background: var(--primary-dark);
}
/* The hairline and resting shadow belong to the landing page only: the policy pages
   (body.no-hero) override the background but not the border, so declaring these on the
   base rule would add a 1px line to five pages this change must leave untouched. */
body.landing .header {
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.08);
  box-shadow: var(--shadow-sm);
}
body.landing .header.scrolled {
  /* Height must NOT change here: body.landing reserves a fixed padding-top, so a
     shorter scrolled header would expose an 8px gap of content sliding underneath.
     Kept on `body.landing .header.scrolled` (0,3,1) so it still outranks the resting
     `body.landing .header` shadow (0,2,1); a bare `.header.scrolled` would lose. */
  box-shadow: var(--shadow-lg);
}
/* Reserve the fixed header's space in flow so no band of bare body background
   can show through above the announcement strip. Scoped to .landing because the
   policy pages still offset their own .disclaimer-banner with a margin-top. */
body.landing { padding-top: var(--header-height); }
/* H12: policy pages (privacy/terms/refund/cookies/faq) have no dark hero, so they
   keep their own solid header treatment; the landing page header is already opaque. */
body.solid-header .header,
body.no-hero .header {
  background: rgba(11, 31, 42, 0.98);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.header .container { justify-content: space-between; height: 100%; }
.header .container, .logo { display: flex; align-items: center; }
.logo { gap: var(--space-sm); }

/* Logo — stamp color box, ink text, stamp span */
.logo-icon {
  width: 45px; height: 45px;
  background: var(--accent);
  border-radius: var(--radius-button);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.5rem;
}
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}
.logo-text span { color: var(--accent); }

/* Nav */
.nav { display: flex; align-items: center; gap: var(--space-xl); }
.nav-link {
  color: hsla(0, 0%, 100%, 0.92);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: var(--space-xs) 0;
  transition: color 0.2s;
}
.nav-link:after {
  content: "";
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}
.nav-link.active, .nav-link:hover { color: var(--white); }
.nav-link.active:after, .nav-link:hover:after { width: 100%; }
.nav-link.scrolled-active { color: var(--white); }
.nav-link.scrolled-active:after { width: 100%; }

.nav-cta {
  padding: 10px 24px;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius-button);
  font-weight: 600;
}
.nav-cta:hover { background: var(--accent-dark); }
.nav-cta:after { display: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1002;
  padding: 10px;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  width: 28px; height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: all 0.3s;
}
.hamburger.active span:first-child { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  background: var(--primary-dark);
  z-index: 1001;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  opacity: 0;
  transition: opacity 0.3s;
}
.mobile-menu.active { display: flex; opacity: 1; }
.mobile-menu .nav-link { font-size: 1.5rem; color: var(--white); }
.mobile-menu-close {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 2.5rem;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1003;
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Hero — ink gradient (ink-950 → ink-800) */
.hero {
  position: relative;
  /* body.landing + .announce-bar already consume this space in flow */
  min-height: max(0px, calc(100vh - var(--header-height) - var(--announce-height)));
  padding-top: var(--space-3xl);
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-dark), #1C3A4A 50%, var(--primary-light));
  overflow: hidden;
  background-size: 200% 200%;
  animation: heroShift 8s ease infinite;
}
@keyframes heroShift {
  0% { background-position: 0 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}
.hero:before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3Cpattern id='a' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='25' cy='25' r='1' fill='rgba(255,255,255,0.03)'/%3E%3Ccircle cx='75' cy='75' r='1' fill='rgba(255,255,255,0.03)'/%3E%3C/pattern%3E%3C/defs%3E%3Cpath fill='url(%23a)' d='M0 0h100v100H0z'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(194, 65, 12, 0.15);
  border: 1px solid rgba(194, 65, 12, 0.3);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--space-xl);
  animation: fadeInDown 0.8s ease;
}
.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s ease 0.2s both;
}
.hero h1 span { color: var(--accent); }
.hero p {
  color: hsla(0, 0%, 100%, 0.9);
  font-size: 1.2rem;
  margin-bottom: var(--space-2xl);
  animation: fadeInUp 0.8s ease 0.4s both;
}
.hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}
.hero-stats {
  display: flex;
  gap: var(--space-3xl);
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid hsla(0, 0%, 100%, 0.1);
  animation: fadeInUp 0.8s ease 0.8s both;
}
.hero-stat h3 {
  color: var(--accent);
  font-size: 2.5rem;
  margin-bottom: var(--space-xs);
  font-family: var(--font-heading);
}
.hero-stat p {
  color: hsla(0, 0%, 100%, 0.85);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--light-gray);
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--white), rgba(194, 65, 12, 0.03));
}
.feature-card:before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(194, 65, 12, 0.05), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.feature-card:hover:before { opacity: 1; }
.feature-icon {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  font-size: 2rem;
  color: var(--white);
  transition: all 0.3s;
}
.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  transform: scale(1.1);
}
.feature-card h3 { margin-bottom: var(--space-md); font-size: 1.3rem; }
.feature-card p { font-size: 0.95rem; line-height: 1.7; }

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}
.step-card { text-align: center; position: relative; }
.step-number {
  width: 60px; height: 60px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto var(--space-lg);
  position: relative;
  z-index: 2;
  font-family: var(--font-heading);
}
.step-card:not(:last-child):after {
  content: "";
  position: absolute;
  top: 30px; left: 50%;
  width: 100%; height: 2px;
  background: var(--light-gray);
  z-index: 1;
}
.step-card h3 { margin-bottom: var(--space-sm); font-size: 1.1rem; }
.step-card p { font-size: 0.9rem; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}
.pricing-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--light-gray);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.pricing-card.featured {
  border-color: var(--accent);
  transform: scale(1.05);
}
.pricing-card.featured:before {
  content: attr(data-badge);
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  padding: 4px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
}
.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px) scale(1.02);
}
.pricing-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--light-gray);
}
.pricing-header h3 { margin-bottom: var(--space-sm); }
.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  font-family: var(--font-heading);
}
.pricing-price span {
  font-size: 1rem;
  color: var(--medium-gray);
  font-weight: 400;
  font-family: var(--font-body);
}
.pricing-features { margin-bottom: var(--space-xl); }
.pricing-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-size: 0.95rem;
}
.pricing-features li:before {
  content: "\2713";
  color: var(--success);
  font-weight: 700;
}
.pricing-card .btn { width: 100%; }

/* Testimonials — ink gradient */
.testimonials-section {
  background: linear-gradient(135deg, var(--primary-dark), #1C3A4A);
}
.testimonial-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}
.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}
.testimonial-slide {
  min-width: 100%;
  padding: 0 var(--space-xl);
  text-align: center;
  position: relative;
}
.testimonial-slide:before {
  content: "\201C";
  position: absolute;
  top: -20px; left: 50%;
  transform: translateX(-50%);
  font-size: 8rem;
  color: rgba(194, 65, 12, 0.1);
  font-family: var(--font-heading);
  line-height: 1;
  pointer-events: none;
}
.testimonial-rating {
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
  letter-spacing: 2px;
}
.testimonial-quote {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: var(--space-md);
  font-family: var(--font-heading);
}
.testimonial-text {
  font-size: 1.2rem;
  color: hsla(0, 0%, 100%, 0.9);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
  font-style: italic;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.testimonial-author { gap: var(--space-md); display: flex; align-items: center; justify-content: center; }
.testimonial-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--accent);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
}
.testimonial-author-info h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 2px;
}
.testimonial-author-info p {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.carousel-controls {
  gap: var(--space-md);
  margin-top: var(--space-2xl);
  display: flex;
  justify-content: center;
}
.carousel-btn {
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 2px solid hsla(0, 0%, 100%, 0.3);
  color: var(--white);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.carousel-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}
.carousel-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: hsla(0, 0%, 100%, 0.3);
  cursor: pointer;
  transition: all 0.3s;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  display: flex;
  position: relative;
  border: none;
  background: transparent;
}
.carousel-dot:before {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  background: hsla(0, 0%, 100%, 0.3);
  transition: all 0.3s;
}
.carousel-dot.active:before {
  background: var(--accent);
  width: 28px;
  border-radius: 7px;
}
.carousel-dot.active { width: 30px; border-radius: 6px; }

/* CTA — ink gradient */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), #1C3A4A);
  padding: var(--space-4xl) 0;
  text-align: center;
}
.cta-section h2 { color: var(--white); margin-bottom: var(--space-md); }
.cta-section p {
  color: hsla(0, 0%, 100%, 0.8);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Footer — ink-950 solid */
.footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: var(--space-4xl) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.1);
}
.footer-about p {
  color: hsla(0, 0%, 100%, 0.7);
  font-size: 0.95rem;
  line-height: 1.7;
}
.footer-social { display: flex; gap: var(--space-md); margin-top: var(--space-lg); }
.social-link {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid hsla(0, 0%, 100%, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.3s;
}
.social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-3px);
}
.footer h4 { color: var(--white); font-size: 1.15rem; margin-bottom: var(--space-lg); }
.footer-links li { margin-bottom: var(--space-sm); }
.footer-links a {
  color: hsla(0, 0%, 100%, 0.85);
  font-size: 0.95rem;
  transition: all 0.3s;
}
.footer-links a:hover { color: var(--accent); transform: translateX(5px); }
.footer-newsletter p {
  color: hsla(0, 0%, 100%, 0.7);
  font-size: 0.95rem;
  margin-bottom: var(--space-lg);
}
.newsletter-form { display: flex; gap: var(--space-sm); }
.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid hsla(0, 0%, 100%, 0.2);
  border-radius: var(--radius-button);
  background: hsla(0, 0%, 100%, 0.05);
  color: var(--white);
}
.newsletter-form input::placeholder { color: hsla(0, 0%, 100%, 0.5); }
.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.35);
}
.newsletter-form button {
  padding: 12px 20px;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius-button);
  font-weight: 600;
  transition: all 0.3s;
}
.newsletter-form button:hover { background: var(--accent-dark); }
.footer-bottom {
  padding: var(--space-xl) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.footer-bottom p {
  color: hsla(0, 0%, 100%, 0.6);
  font-size: 0.9rem;
  margin-bottom: 0;
}
.footer-bottom-links { display: flex; gap: var(--space-lg); }
.footer-bottom-links a {
  color: hsla(0, 0%, 100%, 0.6);
  font-size: 0.9rem;
}
.footer-bottom-links a:hover { color: var(--accent); }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 50px; height: 50px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 999;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--accent-dark);
  transform: translateY(-5px);
}

/* Animations */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.js-reveal .fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Tablet */
@media (max-width: 1024px) {
  .features-grid,
  .footer-grid,
  .pricing-grid,
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --header-height: 70px; }

  .hamburger { display: flex; }
  .nav { display: none; }

  .step-card:not(:last-child):after { display: none; }
  .steps-grid { gap: var(--space-2xl); }

  .hero {
    min-height: auto;
    padding: var(--space-2xl) 0;
  }
  .hero-stats { gap: var(--space-xl); flex-wrap: wrap; }
  .hero-stat h3 { font-size: 2rem; }
  .hero-content { max-width: 100%; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  .hero-stats { flex-direction: column; gap: var(--space-lg); }
  .hero-stat h3 { font-size: 1.8rem; }

  .features-grid, .pricing-grid, .steps-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }

  .footer-grid { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .footer-bottom { flex-direction: column; text-align: center; }

  .section { padding: var(--space-3xl) 0; }
  .container { padding: 0 var(--space-lg); }

  .form-group input, .form-group select, .form-group textarea { font-size: 16px; }
  .btn { min-height: 48px; min-width: 48px; }

  .live-chat-btn {
    bottom: 80px; right: 20px;
    width: 54px; height: 54px;
  }

  .cookie-consent {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
  .hero-stats { flex-direction: column; gap: var(--space-lg); }
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; max-width: 300px; }
  .newsletter-form { flex-direction: column; }
}

@media print {
  .back-to-top, .header, .mobile-menu { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sr-only-focusable:focus {
  position: static;
  width: auto; height: auto;
  padding: inherit; margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Cookie consent */
.cookie-consent {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  background: var(--primary-dark);
  color: var(--white);
  padding: var(--space-lg) var(--space-xl);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.cookie-consent.show { transform: translateY(0); }
.cookie-consent p {
  color: hsla(0, 0%, 100%, 0.9);
  margin-bottom: 0;
  font-size: 0.9rem;
}
.cookie-consent-buttons { display: flex; gap: var(--space-sm); flex-shrink: 0; }
.cookie-consent-btn {
  padding: 10px 20px;
  border-radius: var(--radius-button);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.cookie-accept {
  background: var(--accent);
  color: var(--white);
  border: none;
}
.cookie-decline {
  background: transparent;
  color: var(--white);
  border: 1px solid hsla(0, 0%, 100%, 0.3);
}

/* Disclaimer banner — stamp tint */
.disclaimer-banner {
  background: rgba(194, 65, 12, 0.1);
  border: 1px solid rgba(194, 65, 12, 0.3);
  padding: var(--space-sm) var(--space-xl);
  text-align: center;
  font-size: 0.85rem;
  color: var(--primary-dark);
  /* Lift the banner below the fixed header on all viewports */
  margin-top: var(--header-height);
}
.disclaimer-banner p { margin-bottom: 0; color: var(--primary-dark); }

/* Trust bar — compact social-proof strip below the hero */
.trust-bar {
  background: var(--off-white);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
}
.trust-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--medium-gray);
  font-size: 0.9rem;
  font-weight: 500;
}
.trust-item svg {
  width: 24px; height: 24px;
  color: var(--accent);
}

/* Trust strip on small screens — 2x2 grid, and no taller than it needs to be.
   Declared here (after the base .trust-bar rules above) rather than in the mobile
   block earlier in the file, because those base rules appear later than it and would
   win on source order, silently discarding display:grid. The old column stack burned
   ~350px of the first screen. */
@media (max-width: 768px) {
  .trust-bar .container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md) var(--space-sm);
    align-items: start;
  }
  .trust-item { font-size: 0.8rem; gap: var(--space-xs); align-items: flex-start; }
  .trust-item svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
}

/* Live chat */
.live-chat-btn {
  position: fixed;
  bottom: 90px; right: 30px;
  width: 60px; height: 60px;
  background: #25D366; /* WhatsApp green */
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 998;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.live-chat-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}
.live-chat-btn .pulse {
  position: absolute;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: #25D366; /* WhatsApp green */
  animation: liveChatPulse 2s infinite;
  z-index: -1;
}
@keyframes liveChatPulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Announcement bar — the single promo strip under the header */
.announce-bar {
  min-height: var(--announce-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xs) var(--space-xl);
  background: var(--accent);
  color: var(--white);
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}

/* Pricing fineprint — qualifies the commercial claims directly above it */
.fineprint {
  margin: var(--space-xl) auto 0;
  max-width: 62ch;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--medium-gray);
}
.fineprint a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.fineprint a:hover { color: var(--accent-dark); }

/* Footer legal notice — the statutory disclaimer lives here, not above the fold.
   The rule spans the full container (aligned with .footer-grid above it); only the
   sentence is measure-capped, because .footer-bottom is shared with the policy pages
   and must not gain a border. */
.footer-legal {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.1);
}
.footer-legal-text,
.footer-legal-meta {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.65;
  color: hsla(0, 0%, 100%, 0.62);
}
.footer-legal-text { margin-bottom: var(--space-xs); max-width: 78ch; }
.footer-legal-meta a {
  color: hsla(0, 0%, 100%, 0.62);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-legal-meta a:hover { color: var(--accent-light); }
/* Deliberate deviation from the global `a:focus-visible { outline: var(--accent) }`:
   on the ink footer, --accent (#C2410C) yields only 3.26:1 against #0B1F2A, while
   --accent-light (#FDBA74) yields 10.01:1. Focus rings are non-text (WCAG needs 3:1),
   so both pass, but the lighter token is the one that is actually visible here. */
.footer-legal-meta a:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}

/* Stat item — ink gradient text */
.stat-item h3 {
  font-size: 3rem;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Scroll progress — stamp gradient */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  z-index: 9999;
  transition: none;
}

/* Reveal animations */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.js-reveal .reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.js-reveal .reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.js-reveal .reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--light-gray) 25%, var(--off-white) 50%, var(--light-gray) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: var(--radius-card);
}
@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Focus styles — stamp */
:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Counter */
.counter { display: inline-block; min-width: 2ch; }

/* Gradient text — stamp */
.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Glass */
.glass {
  background: hsla(0, 0%, 100%, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid hsla(0, 0%, 100%, 0.2);
}

/* Animated underline */
.animated-underline { position: relative; display: inline-block; }
.animated-underline:after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.animated-underline:hover:after { width: 100%; }

/* Pulse CTA — stamp glow */
@keyframes stampPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(194, 65, 12, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(194, 65, 12, 0); }
}
.pulse-cta { animation: stampPulse 2s infinite; }

.page-transition {
  animation: pageTransition 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes pageTransition {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Exit intent modal */
.exit-intent-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.exit-intent-modal.show { display: flex; }
.exit-intent-content {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: var(--space-3xl);
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  0% { transform: translateY(30px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.exit-intent-content h2 { margin-bottom: var(--space-md); font-size: 1.8rem; }
.exit-intent-content p { margin-bottom: var(--space-xl); font-size: 1.05rem; }
.exit-intent-close {
  position: absolute;
  top: 15px; right: 20px;
  font-size: 1.5rem;
  color: var(--medium-gray);
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}


/* =============================================================
   HERO v2 — "Six Problems. One Opinion."
   Motion-led carousel that sharpens each problem from blur to focus
   as the visitor scrolls. Replaces the legacy static hero.
   ============================================================= */

:root {
  --hero-blur: 6px;
  --hero-blur-start: 4px;
  --hero-card-radius: 14px;
  --hero-card-padding-y: 1.25rem;
  --hero-card-padding-x: 1.5rem;
  --hero-rail-color: rgba(194, 65, 12, 0.65);
  --hero-rail-glow: 0 0 12px rgba(194, 65, 12, 0.55);
  --hero-problem-card-bg: rgba(247, 245, 240, 0.06);
  --hero-problem-card-bg-focus: rgba(247, 245, 240, 0.10);
  --hero-problem-card-border: rgba(247, 245, 240, 0.12);
  --hero-problem-card-border-focus: rgba(194, 65, 12, 0.45);
}

.hero-v2 {
  position: relative;
  min-height: 360vh;
  padding: clamp(4rem, 9vh, 7rem) 0 clamp(4rem, 9vh, 7rem);
  overflow: clip;
  background: var(--primary);
  isolation: isolate;
}

.hero-v2__bg,
.hero-v2__bg-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}
.hero-v2__bg svg { width: 100%; height: 100%; display: block; }
.hero-v2__bg-video video {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.55) saturate(0.8);
}
.hero-v2__bg::after,
.hero-v2__bg-video::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(11, 31, 42, 0.55) 0%,
    rgba(11, 31, 42, 0.30) 35%,
    rgba(11, 31, 42, 0.55) 100%);
  pointer-events: none;
}
.hero-v2.hero--svg-bg .hero-v2__bg-video,
.hero-v2.hero--video-bg .hero-v2__bg { display: none; }

.hero-v2__intro {
  text-align: center;
  color: var(--white);
  margin-bottom: clamp(3rem, 6vh, 5rem);
  padding: 0 var(--space-md);
}
.hero-v2__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.5rem;
  opacity: 0.9;
}
.hero-v2__headline {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.12;
  margin: 0 auto 1.25rem;
  max-width: 22ch;
  color: var(--white);
}
.hero-v2__headline em {
  font-style: normal;
  color: var(--accent);
  position: relative;
  display: inline-block;
}
.hero-v2__headline em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 3px;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(0);
  animation: heroUnderline 1.2s 0.45s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
@keyframes heroUnderline { to { transform: scaleX(1); } }
.hero-v2__sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(247, 245, 240, 0.75);
  max-width: 52ch;
  margin: 0 auto;
  line-height: 1.55;
}

.hero-v2__problems {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vh, 3.5rem);
  position: relative;
}

.hero-v2__rail {
  position: absolute;
  left: calc(50% - 720px / 2 + 0.5rem);
  top: 0; bottom: 0;
  width: 2px;
  background: rgba(247, 245, 240, 0.10);
  z-index: 0;
}
.hero-v2__rail-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--accent), #EA580C);
  width: 100%;
  height: 100%; /* visible by default; JS drives progress */
  box-shadow: var(--hero-rail-glow);
  transition: height 0.25s ease-out;
  will-change: height;
}
.js-reveal .hero-v2__rail-fill { height: 0%; }

.problem-card {
  position: relative;
  z-index: 1;
  background: var(--hero-problem-card-bg);
  border: 1px solid var(--hero-problem-card-border);
  border-radius: var(--hero-card-radius);
  padding: var(--hero-card-padding-y) var(--hero-card-padding-x);
  color: var(--white);
}
.js-reveal .problem-card {
  backdrop-filter: blur(var(--hero-blur-start));
  -webkit-backdrop-filter: blur(var(--hero-blur-start));
  opacity: 0.30;
  filter: blur(var(--hero-blur-start));
  transform: translateY(8px);
  transition:
    opacity 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-color 0.45s ease,
    background 0.45s ease;
  will-change: opacity, filter, transform;
}
.problem-card.is-focused {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  background: var(--hero-problem-card-bg-focus);
  border-color: var(--hero-problem-card-border-focus);
  box-shadow: 0 18px 40px -22px rgba(11, 31, 42, 0.55);
}
.problem-card__index {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--on-ink-accent);
  margin: 0 0 0.5rem;
  opacity: 0.85;
}
.problem-card__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.55);
  margin: 0 0 0.5rem;
}
.problem-card__title {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.30;
  margin: 0 0 0.6rem;
  font-weight: 600;
  color: var(--white);
}
.problem-card__title-bn {
  font-family: var(--font-bengali);
  font-size: clamp(0.95rem, 1.9vw, 1.1rem);
  line-height: 1.55;
  margin: 0;
  color: rgba(247, 245, 240, 0.65);
  font-weight: 400;
}
.problem-card__dot {
  position: absolute;
  left: -1.6rem;
  top: 1.4rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid rgba(247, 245, 240, 0.30);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.problem-card.is-focused .problem-card__dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--hero-rail-glow);
}

.hero-v2__close {
  text-align: center;
  color: var(--white);
  margin: clamp(5rem, 10vh, 8rem) auto 0;
  max-width: 680px;
  padding: 0 var(--space-md);
}
.hero-v2__close-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.20;
  margin: 0 0 1.5rem;
  font-weight: 600;
}
.js-reveal .hero-v2__close-heading {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.hero-v2__close-heading.is-revealed { opacity: 1; transform: translateY(0); }
.hero-v2__close-heading em { font-style: normal; color: var(--accent); }
.hero-v2__close-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.js-reveal .hero-v2__close-actions {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s 0.15s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.7s 0.15s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.hero-v2__close-actions.is-revealed { opacity: 1; transform: translateY(0); }

.btn-primary.btn--stamp {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-primary.btn--stamp::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
              rgba(255, 255, 255, 0.35) 0%,
              rgba(255, 255, 255, 0) 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
}
.btn-primary.btn--stamp:hover::before { opacity: 1; }
.btn-primary.btn--stamp:active { transform: translateY(1px) scale(0.985); }

body:not(.motion-ready) .hero-v2__close-heading,
body:not(.motion-ready) .hero-v2__close-actions { opacity: 1; transform: none; }
body:not(.motion-ready) .problem-card { opacity: 1; filter: none; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-v2 { min-height: auto; padding: 4rem 0 5rem; }
  .hero-v2__bg::after,
  .hero-v2__bg-video::after { background: rgba(11, 31, 42, 0.65); }
  .problem-card,
  .problem-card.is-focused,
  .hero-v2__close-heading,
  .hero-v2__close-actions,
  .hero-v2__headline em::after,
  .hero-v2__rail-fill { transition: none !important; animation: none !important; }
  .problem-card { opacity: 1; filter: none; transform: none; backdrop-filter: none; }
  .hero-v2__close-heading,
  .hero-v2__close-actions { opacity: 1; transform: none; }
  .hero-v2__rail-fill { height: 100%; }
}

@media (max-width: 768px) {
  .hero-v2 { min-height: auto; padding: 3rem 0 4rem; }
  .hero-v2__problems { gap: 1.5rem; }
  .hero-v2__rail { display: none; }
  .problem-card { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .problem-card__dot { display: none; }
  .problem-card { opacity: 0.45; filter: none; }
  .problem-card.is-focused { opacity: 1; }
}


/* =============================================================
   Sections v2 — shared + per-section motion
   ============================================================= */

:root {
  --section-eyebrow-color: var(--accent);
  --section-reveal-distance: 28px;
  --section-reveal-duration: 0.85s;
  --section-reveal-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--section-eyebrow-color);
  margin: 0 0 1rem;
  font-weight: 500;
}
.section-sub {
  color: var(--medium-gray);
  max-width: 60ch;
  margin: 0.5rem auto 0;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.6;
}

.js-reveal .section-header--reveal > * {
  opacity: 0;
  transform: translateY(var(--section-reveal-distance));
  transition: opacity var(--section-reveal-duration) var(--section-reveal-ease),
              transform var(--section-reveal-duration) var(--section-reveal-ease);
  will-change: opacity, transform;
}
.section-header--reveal.is-revealed > * {
  opacity: 1;
  transform: translateY(0);
}
.section-header--reveal.is-revealed > *:nth-child(2) { transition-delay: 0.08s; }
.section-header--reveal.is-revealed > *:nth-child(3) { transition-delay: 0.16s; }
.section-header--reveal.is-revealed > *:nth-child(4) { transition-delay: 0.24s; }

.section[data-bg="ink"] { background: var(--primary); color: var(--white); }
.section[data-bg="ink"] h2,
.section[data-bg="ink"] .section-eyebrow { color: inherit; }
.section[data-bg="ink"] .section-eyebrow { color: var(--on-ink-accent); }
.section[data-bg="ink"] .section-sub { color: rgba(247, 245, 240, 0.72); }
.section[data-bg="paper"] { background: var(--off-white); }

/* ── Dark-surface contrast guard ────────────────────────────────────────
   --medium-gray (#475569) is 2.23:1 on ink (#0B1F2A) and --accent
   (#C2410C) is 3.26:1 — both fail WCAG AA for text. Any element that
   inherits them inside an ink surface is remapped to an AA-passing token.
   ─────────────────────────────────────────────────────────────────────── */
.section[data-bg="ink"] p,
.section[data-bg="ink"] .fineprint,
.section[data-bg="ink"] .section-sub,
.hero-v2 p,
.hero-v2 .fineprint {
  color: var(--on-ink-muted);
}
.section[data-bg="ink"] .trust-item,
.hero-v2 .trust-item {
  color: var(--on-ink-body);
}


/* Opinion covers */
.covers-collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
  margin: 3rem auto 2rem;
  max-width: 1080px;
  perspective: 1400px;
}
.opinion-cover {
  background: var(--off-white);
  border: 1px solid rgba(11, 31, 42, 0.12);
  border-radius: 6px;
  padding: 1.1rem 1.1rem 1.2rem;
  position: relative;
  transform-origin: center center;
  transition: transform 0.7s var(--section-reveal-ease),
              box-shadow 0.5s var(--section-reveal-ease),
              border-color 0.5s ease;
  box-shadow: 0 1px 0 rgba(11, 31, 42, 0.04),
              0 14px 24px -18px rgba(11, 31, 42, 0.30);
}
.opinion-cover:hover {
  transform: translateY(-3px) rotate(0deg) !important;
  box-shadow: 0 1px 0 rgba(11, 31, 42, 0.04),
              0 22px 38px -22px rgba(11, 31, 42, 0.40);
  border-color: rgba(194, 65, 12, 0.30);
}
.opinion-cover__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(11, 31, 42, 0.10);
}
.opinion-cover__seal {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #EA580C, var(--accent) 60%, #7c2d12);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45), 0 0 0 1px rgba(11, 31, 42, 0.20);
  flex-shrink: 0;
  position: relative;
}
.opinion-cover__seal::after {
  content: "";
  position: absolute;
  inset: 25%;
  border: 1px dashed rgba(255, 255, 255, 0.55);
  border-radius: 50%;
}
.opinion-cover__id {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.10em;
  color: var(--medium-gray);
}
.opinion-cover__type {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin: 0 0 0.45rem;
  font-weight: 600;
  color: var(--primary);
}
.opinion-cover__line {
  font-size: 0.78rem;
  color: var(--medium-gray);
  margin: 0.15rem 0;
  line-height: 1.45;
}
.opinion-cover__line strong { color: var(--primary); font-weight: 600; }
.opinion-cover__verdict {
  margin: 0.7rem 0 0;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(11, 31, 42, 0.08);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--success);
  line-height: 1.45;
}
.js-reveal .opinion-cover {
  opacity: 0;
  transform: translateY(40px) scale(0.94);
}
.covers-collage.is-flat .opinion-cover {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.covers-collage:not(.is-flat) .cover-1 { transform: translateY(-12px) rotate(3deg) scale(0.98); }
.covers-collage:not(.is-flat) .cover-2 { transform: translateY(14px)  rotate(-2deg) scale(0.96); }
.covers-collage:not(.is-flat) .cover-3 { transform: translateY(-8px)  rotate(4deg) scale(0.98); }
.covers-collage:not(.is-flat) .cover-4 { transform: translateY(10px)  rotate(-3deg) scale(0.97); }
.covers-collage:not(.is-flat) .cover-5 { transform: translateY(-10px) rotate(2deg) scale(0.98); }
.covers-collage:not(.is-flat) .cover-6 { transform: translateY(16px)  rotate(-4deg) scale(0.95); }
.covers-caption {
  text-align: center;
  color: var(--medium-gray);
  font-size: 0.82rem;
  font-style: italic;
  max-width: 60ch;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .covers-collage { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .covers-collage { grid-template-columns: 1fr; }
  .covers-collage:not(.is-flat) .opinion-cover { transform: translateY(0) rotate(0) scale(1); opacity: 1; }
}

/* Rail */
.rail-section { padding: 0 0 5rem; background: var(--off-white); }
.rail-section .container { padding-bottom: 1.5rem; }
.rail-outer {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  padding: 1rem 0 2rem;
  scrollbar-color: rgba(194, 65, 12, 0.5) transparent;
}
.rail-outer::-webkit-scrollbar { height: 6px; }
.rail-outer::-webkit-scrollbar-thumb {
  background: rgba(194, 65, 12, 0.5);
  border-radius: 3px;
}
.rail-outer::-webkit-scrollbar-track { background: transparent; }
.rail-track {
  display: flex;
  gap: clamp(1rem, 2vw, 1.5rem);
  padding: 1rem clamp(1rem, 4vw, 4rem);
  width: max-content;
}
.rail-step {
  flex: 0 0 clamp(280px, 28vw, 360px);
  scroll-snap-align: center;
  background: var(--white);
  border: 1px solid rgba(11, 31, 42, 0.10);
  border-radius: 12px;
  padding: 1.5rem 1.4rem 1.6rem;
  position: relative;
  transition: transform 0.5s var(--section-reveal-ease),
              border-color 0.5s ease,
              box-shadow 0.5s ease;
  box-shadow: 0 1px 0 rgba(11, 31, 42, 0.04);
}
.rail-step:hover {
  transform: translateY(-4px);
  border-color: rgba(194, 65, 12, 0.30);
  box-shadow: 0 18px 40px -22px rgba(11, 31, 42, 0.40);
}
.rail-step__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--on-ink-accent);
  margin-bottom: 0.4rem;
  font-weight: 500;
}
.rail-step__time {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--medium-gray);
  margin: 0 0 1rem;
}
.rail-step__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  line-height: 1.30;
  margin: 0 0 0.7rem;
  color: var(--primary);
  font-weight: 600;
}
.rail-step__body {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--medium-gray);
  margin: 0;
}
.rail-hint {
  text-align: center;
  color: var(--medium-gray);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0;
  opacity: 0.7;
}
.js-reveal .rail-step {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--section-reveal-ease),
              transform 0.7s var(--section-reveal-ease),
              border-color 0.5s ease,
              box-shadow 0.5s ease;
}
.rail-step.is-rail-in { opacity: 1; transform: translateY(0); }
body:not(.motion-ready) .rail-step { opacity: 1; transform: none; }

@media (max-width: 768px) {
  .rail-outer { overflow-x: visible; scroll-snap-type: none; padding: 0; }
  .rail-track { flex-direction: column; width: 100%; padding: 0 var(--space-md); gap: 1rem; }
  .rail-step { flex: 0 0 auto; width: 100%; }
  .rail-hint { display: none; }
}

/* Pricing */
.pricing-section { position: relative; overflow: hidden; }
.pricing-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(194, 65, 12, 0.18), transparent 55%),
    radial-gradient(ellipse at 15% 85%, rgba(44, 79, 96, 0.35), transparent 60%);
  pointer-events: none;
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr 1fr;
  gap: 1.25rem;
  margin: 3rem auto 2rem;
  max-width: 1080px;
  align-items: stretch;
  position: relative;
}
.pricing-card {
  position: relative;
  border-radius: 14px;
  padding: 2rem 1.5rem 1.8rem;
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
  transition: transform 0.5s var(--section-reveal-ease),
              box-shadow 0.5s ease,
              border-color 0.5s ease;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card--ink {
  background: rgba(247, 245, 240, 0.04);
  border-color: rgba(247, 245, 240, 0.10);
  color: rgba(247, 245, 240, 0.85);
}
.pricing-card--ink:hover {
  border-color: rgba(247, 245, 240, 0.22);
  box-shadow: 0 20px 40px -22px rgba(0, 0, 0, 0.50);
}
.pricing-card--featured {
  background: var(--off-white);
  color: var(--primary);
  border-color: rgba(194, 65, 12, 0.40);
  box-shadow:
    0 0 0 1px rgba(194, 65, 12, 0.18),
    0 28px 56px -28px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.pricing-card--featured:hover {
  box-shadow:
    0 0 0 2px rgba(194, 65, 12, 0.35),
    0 32px 64px -28px rgba(0, 0, 0, 0.75);
}
.pricing-card__seal {
  position: absolute;
  top: -1px; right: -1px;
  width: 5rem; height: 5rem;
  pointer-events: none;
  background:
    conic-gradient(from 0deg, transparent 0deg, var(--accent) 30deg, transparent 60deg, transparent 360deg);
  border-top-right-radius: 14px;
  animation: pricingSealSpin 22s linear infinite;
  opacity: 0.7;
  mask: radial-gradient(circle 1.5rem at 5rem 0, transparent 99%, #000 100%);
  -webkit-mask: radial-gradient(circle 1.5rem at 5rem 0, transparent 99%, #000 100%);
}
@keyframes pricingSealSpin { to { transform: rotate(360deg); } }
.pricing-card__scenario {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
  opacity: 0.75;
}
.pricing-card--ink .pricing-card__scenario { color: var(--accent); }
.pricing-card__name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin: 0 0 0.6rem;
  font-weight: 600;
}
.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 0 0 0.6rem;
}
.pricing-card__price .amount {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}
.pricing-card__price .per { font-size: 0.78rem; opacity: 0.7; }
.pricing-card__case {
  font-size: 0.84rem;
  line-height: 1.50;
  margin: 0 0 1.1rem;
  opacity: 0.78;
}
.pricing-card__list {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.pricing-card__list li {
  font-size: 0.86rem;
  padding-left: 1.4rem;
  position: relative;
  line-height: 1.45;
}
.pricing-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}
.pricing-card--ink .pricing-card__list li { opacity: 0.88; }
.pricing-card .btn { align-self: flex-start; margin-top: auto; }
.btn-outline-light {
  background: transparent;
  color: var(--off-white);
  border: 1.5px solid rgba(247, 245, 240, 0.55);
}
.btn-outline-light:hover {
  background: rgba(247, 245, 240, 0.08);
  border-color: var(--off-white);
}
.pricing-fineprint {
  position: relative;
  font-size: 0.78rem;
  color: rgba(247, 245, 240, 0.55);
  max-width: 60ch;
  margin: 1.5rem auto 0;
  text-align: center;
  line-height: 1.55;
}
.pricing-fineprint a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 0.4rem;
}
.btn--large {
  padding: 1.05rem 2.25rem;
  font-size: 1.05rem;
}
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card--featured { order: -1; }
}

/* Voices */
.voices-section { padding: 5rem 0; }
.voices-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 880px;
  margin: 3rem auto 0;
}
.voice {
  max-width: 78%;
  background: var(--off-white);
  border: 1px solid rgba(11, 31, 42, 0.08);
  border-radius: 18px;
  padding: 1.25rem 1.5rem 1.1rem;
  position: relative;
}
.js-reveal .voice {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--section-reveal-ease),
              transform 0.7s var(--section-reveal-ease);
}
.voice.is-revealed { opacity: 1; transform: translateY(0); }
.voice--right { align-self: flex-end; }
.voice--left { align-self: flex-start; }
.voice::before {
  content: "";
  position: absolute;
  bottom: 14px;
  width: 12px;
  height: 12px;
  background: inherit;
  border: inherit;
  border-top: 0;
  border-left: 0;
}
.voice--left::before {
  left: -7px;
  transform: rotate(135deg);
  border-bottom-right-radius: 4px;
}
.voice--right::before {
  right: -7px;
  transform: rotate(-45deg);
  border-bottom-left-radius: 4px;
}
.voice__text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--primary);
  margin: 0 0 0.85rem;
  font-weight: 400;
}
.voice__attr {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.10em;
  color: var(--medium-gray);
  margin: 0;
}
body:not(.motion-ready) .voice { opacity: 1; transform: none; }

/* FAQ */
.faq-section { padding: 5rem 0; background: var(--off-white); }
.faq-list {
  max-width: 760px;
  margin: 2.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: var(--white);
  border: 1px solid rgba(11, 31, 42, 0.10);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.faq-item[open] {
  border-color: rgba(194, 65, 12, 0.30);
  box-shadow: 0 12px 28px -22px rgba(11, 31, 42, 0.40);
}
.faq-item summary {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.4rem;
  cursor: pointer;
  color: var(--primary);
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.3s var(--section-reveal-ease);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__body {
  padding: 0 1.4rem 1.3rem;
  color: var(--medium-gray);
  font-size: 0.95rem;
  line-height: 1.65;
  animation: faqReveal 0.45s var(--section-reveal-ease) both;
}
@keyframes faqReveal {
  from { clip-path: inset(0 100% 0 0); opacity: 0; }
  to { clip-path: inset(0 0 0 0); opacity: 1; }
}

/* Closing CTA */
.cta-final-section {
  padding: 6rem 0;
  background: var(--primary);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(194, 65, 12, 0.18), transparent 60%);
  pointer-events: none;
}
.cta-final-content { position: relative; max-width: 640px; }
.cta-final__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}
.cta-final__heading {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.8vw, 3.2rem);
  line-height: 1.10;
  margin: 0 0 1rem;
  font-weight: 600;
}
.cta-final__sub {
  color: rgba(247, 245, 240, 0.72);
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0 0 2rem;
}

/* Reduced-motion overrides */
@media (prefers-reduced-motion: reduce) {
  @keyframes faqReveal { from { opacity: 1; } to { opacity: 1; } }
  .voice, .pricing-card, .pricing-card__seal, .opinion-cover,
  .rail-step, .covers-collage .opinion-cover { transition: none !important; animation: none !important; }
  .covers-collage .opinion-cover,
  .voice, .rail-step { opacity: 1 !important; transform: none !important; }
}
