/* ==========================================================================
   eCommerceWing — Premium Amazon Education & Growth Brand
   Design system: Trust & Authority · Official logo palette: brand red #ef1d26 / maroon #9b1c23 / charcoal / off-white
   ========================================================================== */

:root {
  /* Color tokens */
  --dark-950: #120d0e;
  --dark-900: #1a1214;
  --dark-800: #251719;
  --dark-700: #35201f;
  --dark-600: #46292b;
  --ink: #1d1a1b;
  --slate-600: #574f51;
  --slate-500: #6f6568;
  --slate-400: #a59a9c;
  --slate-300: #d1c8c9;
  --paper: #faf7f7;
  --white: #ffffff;
  --red-700: #b31219;
  --red-500: #ef1d26;
  --red-400: #f4565c;
  --red-100: #fde3e4;
  --maroon-600: #9b1c23;
  --red-600: #dc2626;

  --color-primary: var(--dark-900);
  --color-accent: var(--red-500);
  --color-growth: var(--red-500);

  /* Typography */
  --font-heading: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  /* Spacing scale (8pt) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;
  --space-9: 128px;

  /* Radii & shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(24, 16, 17, 0.08);
  --shadow-md: 0 6px 24px rgba(24, 16, 17, 0.10);
  --shadow-lg: 0 20px 60px rgba(24, 16, 17, 0.16);
  --shadow-red: 0 8px 28px rgba(239, 29, 38, 0.35);

  /* Layout */
  --container: 1180px;
  --nav-height: 72px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur-med: 300ms;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }

a { color: var(--red-700); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { max-width: 68ch; }

:focus-visible {
  outline: 3px solid var(--red-500);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--red-100); color: var(--dark-900); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--dark-900);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout helpers ---------- */
.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section { padding: var(--space-8) 0; }
.section--tight { padding: var(--space-7) 0; }
.section--dark { background: var(--dark-900); color: var(--slate-300); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--paper { background: var(--paper); }

.section-head { max-width: 760px; margin: 0 auto var(--space-6); text-align: center; }
.section-head p { margin: var(--space-3) auto 0; color: var(--slate-600); font-size: 1.08rem; }
.section--dark .section-head p { color: var(--slate-400); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-700);
  margin-bottom: var(--space-3);
}
.section--dark .eyebrow { color: var(--red-400); }
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: linear-gradient(135deg, var(--red-500), var(--maroon-600));
  color: #fff;
  box-shadow: var(--shadow-red);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(239, 29, 38, 0.45); }

.btn--dark {
  background: var(--dark-900);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn--dark:hover { transform: translateY(-2px); background: var(--dark-800); }

.btn--outline {
  background: transparent;
  color: var(--dark-900);
  border: 2px solid var(--slate-300);
}
.btn--outline:hover { border-color: var(--dark-900); transform: translateY(-2px); }

.section--dark .btn--outline { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.section--dark .btn--outline:hover { border-color: #fff; }

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-2px); }

.btn--sm { min-height: 44px; padding: 10px 22px; font-size: 0.92rem; }
.btn--lg { min-height: 58px; padding: 16px 38px; font-size: 1.08rem; }
.btn--block { width: 100%; }

.btn .icon { width: 18px; height: 18px; flex: none; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(18, 13, 14, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background var(--dur-med) var(--ease-out);
}
.nav.is-scrolled { background: rgba(18, 13, 14, 0.94); }

.nav__inner {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff !important;
  text-decoration: none !important;
  flex: none;
}
.nav__logo-mark {
  width: auto;
  height: 40px;
  flex: none;
}
.nav__logo span em { font-style: normal; color: var(--red-400); }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  list-style: none;
}
.nav__links a {
  color: var(--slate-300);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 2px;
  transition: color var(--dur-fast);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: #fff; }
.nav__links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--red-400); }

.nav__cta { flex: none; }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: #fff;
}
.nav__toggle svg { width: 26px; height: 26px; }

@media (max-width: 920px) {
  .nav__toggle { display: inline-flex; }
  .nav__cta { display: none; }
  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--dark-950);
    padding: var(--space-3) var(--space-4) var(--space-5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--dur-med) var(--ease-out), opacity var(--dur-med) var(--ease-out), visibility var(--dur-med);
  }
  .nav__links.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__links a { display: block; padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .nav__links li:last-child a { border-bottom: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(239, 29, 38, 0.14), transparent 60%),
    radial-gradient(900px 480px at 8% 110%, rgba(155, 28, 35, 0.16), transparent 55%),
    var(--dark-950);
  color: var(--slate-300);
  padding: calc(var(--nav-height) + var(--space-8)) 0 var(--space-8);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent 70%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-7);
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(239, 29, 38, 0.12);
  border: 1px solid rgba(244, 86, 92, 0.35);
  color: var(--red-400);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-4);
}
.hero__badge .icon { width: 16px; height: 16px; }

.hero h1 { color: #fff; margin-bottom: var(--space-4); }
.hero h1 em { font-style: normal; color: var(--red-400); }
.hero__sub { font-size: 1.15rem; color: var(--slate-400); max-width: 56ch; margin-bottom: var(--space-5); }

.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-5); }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.hero__trust-item { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--slate-400); }
.hero__trust-item .icon { width: 18px; height: 18px; color: var(--red-400); flex: none; }

/* Hero dashboard mockup */
.dash {
  position: relative;
  background: linear-gradient(160deg, var(--dark-800), var(--dark-900));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-4);
  font-size: 0.82rem;
}
.dash__bar { display: flex; align-items: center; gap: 8px; margin-bottom: var(--space-4); }
.dash__dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.dash__dot:first-child { background: #f87171; }
.dash__dot:nth-child(2) { background: var(--red-400); }
.dash__dot:nth-child(3) { background: var(--red-400); }
.dash__title { margin-left: 8px; color: var(--slate-400); font-weight: 600; }

.dash__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); margin-bottom: var(--space-3); }
.dash__stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.dash__stat-label { color: var(--slate-400); font-size: 0.72rem; margin-bottom: 4px; }
.dash__stat-value { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: #fff; font-variant-numeric: tabular-nums; }
.dash__stat-delta { font-size: 0.72rem; font-weight: 600; color: var(--red-400); }

.dash__chart {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.dash__chart-head { display: flex; justify-content: space-between; color: var(--slate-400); font-size: 0.75rem; margin-bottom: 10px; }
.dash__chart svg { width: 100%; height: auto; }

.dash__float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(37, 23, 25, 0.92);
  border: 1px solid rgba(244, 86, 92, 0.35);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
  font-size: 0.8rem;
  color: var(--slate-300);
}
.dash__float .icon { width: 20px; height: 20px; color: var(--red-400); flex: none; }
.dash__float strong { color: #fff; display: block; font-size: 0.86rem; }
.dash__float--tl { top: -18px; left: -26px; animation: floatY 7s ease-in-out infinite; }
.dash__float--br { bottom: -18px; right: -18px; animation: floatY 8s ease-in-out 1.2s infinite; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .dash__float--tl { left: 0; }
  .dash__float--br { right: 0; }
}

/* ---------- Logo / trust strip ---------- */
.logo-strip { padding: var(--space-5) 0; background: var(--dark-950); border-top: 1px solid rgba(255,255,255,0.06); }
.logo-strip__label { text-align: center; color: var(--slate-500); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: var(--space-4); }
.logo-strip__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3) var(--space-6);
}
.logo-strip__item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--slate-400);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.75;
}
.logo-strip__item .icon { width: 20px; height: 20px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: var(--space-4); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid #ece5e6;
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--slate-300); }

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--red-100), #fbd5d7);
  color: var(--red-700);
  margin-bottom: var(--space-3);
}
.card__icon .icon { width: 26px; height: 26px; }
.card__icon--maroon { background: linear-gradient(135deg, #f3dadb, #eacfd1); color: var(--maroon-600); }
.card__icon--dark { background: linear-gradient(135deg, #e9e2e3, #dcd3d4); color: var(--dark-700); }

.card h3 { margin-bottom: var(--space-2); }
.card p { color: var(--slate-600); font-size: 0.97rem; }

/* Pain cards */
.pain-card {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  background: var(--white);
  border: 1px solid #ece5e6;
  border-left: 4px solid var(--red-600);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}
.pain-card .icon { width: 22px; height: 22px; color: var(--red-600); flex: none; margin-top: 3px; }
.pain-card p { color: var(--slate-600); font-size: 0.95rem; }
.pain-card strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }

/* Module cards */
.module-card {
  position: relative;
  background: var(--white);
  border: 1px solid #ece5e6;
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.module-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.module-card__num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--red-700);
  text-transform: uppercase;
}
.module-card h3 { font-size: 1.08rem; }
.module-card p { color: var(--slate-600); font-size: 0.92rem; }
.module-card ul { list-style: none; margin-top: var(--space-2); display: grid; gap: 6px; }
.module-card ul li { display: flex; gap: 8px; align-items: flex-start; font-size: 0.88rem; color: var(--slate-600); }
.module-card ul li .icon { width: 15px; height: 15px; color: var(--red-500); flex: none; margin-top: 4px; }

/* Check list rows */
.check-list { list-style: none; display: grid; gap: var(--space-3); }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { width: 22px; height: 22px; color: var(--red-500); flex: none; margin-top: 2px; }
.check-list strong { color: inherit; }

/* ---------- Steps / process ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step {
  counter-increment: step;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}
.step::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2rem;
  color: var(--red-400);
  margin-bottom: var(--space-2);
}
.step h3 { color: #fff; margin-bottom: var(--space-2); }
.step p { color: var(--slate-400); font-size: 0.95rem; }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--space-7); align-items: center; }
@media (max-width: 900px) { .founder { grid-template-columns: 1fr; } }

.founder__photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(160deg, var(--dark-700), var(--dark-900));
  border: 1px solid rgba(255, 255, 255, 0.12);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-400);
  text-align: center;
  padding: var(--space-4);
}
.founder__photo .icon { width: 64px; height: 64px; opacity: 0.4; }

.founder__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-top: var(--space-5); }
@media (max-width: 560px) { .founder__stats { grid-template-columns: 1fr 1fr; } }
.founder__stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
}
.founder__stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--red-400);
  font-variant-numeric: tabular-nums;
}
.founder__stat span { font-size: 0.85rem; color: var(--slate-400); }

/* ---------- Proof ---------- */
.proof-card {
  background: var(--white);
  border: 2px dashed var(--slate-300);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  text-align: center;
  color: var(--slate-500);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  min-height: 210px;
  justify-content: center;
}
.proof-card .icon { width: 34px; height: 34px; color: var(--slate-400); }
.proof-card strong { color: var(--slate-600); font-family: var(--font-heading); }
.proof-card small { font-size: 0.82rem; }

.testimonial {
  background: var(--white);
  border: 1px solid #ece5e6;
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.testimonial__stars { display: flex; gap: 3px; color: var(--red-500); }
.testimonial__stars .icon { width: 18px; height: 18px; }
.testimonial blockquote { color: var(--slate-600); font-size: 0.97rem; font-style: italic; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.testimonial__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-500), var(--dark-700));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  flex: none;
}
.testimonial figcaption strong { display: block; font-size: 0.95rem; }
.testimonial figcaption span { font-size: 0.82rem; color: var(--slate-500); }

/* ---------- Lead magnet ---------- */
.lead-magnet {
  background:
    radial-gradient(700px 400px at 90% 0%, rgba(239, 29, 38, 0.12), transparent 55%),
    linear-gradient(150deg, var(--dark-800), var(--dark-950));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-7);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-6);
  align-items: center;
  color: var(--slate-300);
}
@media (max-width: 900px) { .lead-magnet { grid-template-columns: 1fr; padding: var(--space-5); } }
.lead-magnet h2 { color: #fff; }

.form-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-lg);
}
.form-card h3 { margin-bottom: var(--space-1); }
.form-card > p { color: var(--slate-600); font-size: 0.92rem; margin-bottom: var(--space-4); }

.field { margin-bottom: var(--space-3); }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.field label .req { color: var(--red-600); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color var(--dur-fast);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red-500);
  box-shadow: 0 0 0 3px rgba(239, 29, 38, 0.15);
}
.field .hint { font-size: 0.8rem; color: var(--slate-500); margin-top: 5px; }
.field .error-msg { display: none; font-size: 0.82rem; color: var(--red-600); margin-top: 5px; }
.field.has-error input, .field.has-error textarea { border-color: var(--red-600); }
.field.has-error .error-msg { display: block; }

.form-note { font-size: 0.78rem; color: var(--slate-500); margin-top: var(--space-3); text-align: center; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); align-items: stretch; }
@media (max-width: 980px) { .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }

.price-card {
  position: relative;
  background: var(--white);
  border: 1px solid #ece5e6;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.price-card--featured {
  border: 2px solid var(--red-500);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}
.price-card__flag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--red-500), var(--maroon-600));
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.price-card h3 { font-size: 1.25rem; }
.price-card__tag { font-size: 0.9rem; color: var(--slate-500); margin-top: 4px; }
.price-card__price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2rem;
  color: var(--dark-900);
}
.price-card__price small { display: block; font-size: 0.82rem; font-weight: 500; color: var(--slate-500); margin-top: 4px; }
.price-card .check-list { flex: 1; gap: var(--space-2); }
.price-card .check-list li { font-size: 0.92rem; color: var(--slate-600); }
.price-card .check-list .icon { width: 18px; height: 18px; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin-inline: auto; }
.faq details {
  background: var(--white);
  border: 1px solid #ece5e6;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 20px; height: 20px; flex: none; color: var(--red-700); transition: transform var(--dur-med) var(--ease-out); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details > div { padding: 0 var(--space-5) var(--space-4); color: var(--slate-600); }
.faq details > div p + p { margin-top: var(--space-2); }

/* ---------- Comparison table ---------- */
.compare-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid #ece5e6; box-shadow: var(--shadow-sm); }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; background: var(--white); font-size: 0.95rem; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid #f0e9ea; }
.compare thead th { background: var(--dark-900); color: #fff; font-family: var(--font-heading); font-weight: 600; }
.compare tbody tr:last-child td { border-bottom: none; }
.compare td .icon { width: 20px; height: 20px; }
.compare .yes { color: var(--red-700); }
.compare .no { color: var(--slate-400); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background:
    radial-gradient(800px 400px at 15% 0%, rgba(239, 29, 38, 0.15), transparent 60%),
    radial-gradient(700px 400px at 90% 100%, rgba(155, 28, 35, 0.2), transparent 55%),
    var(--dark-950);
  color: var(--slate-300);
  text-align: center;
  padding: var(--space-8) 0;
}
.cta-banner h2 { color: #fff; max-width: 720px; margin: 0 auto var(--space-3); }
.cta-banner p { max-width: 620px; margin: 0 auto var(--space-5); color: var(--slate-400); font-size: 1.08rem; }
.cta-banner__btns { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(900px 420px at 85% -20%, rgba(20, 184, 166, 0.14), transparent 60%),
    var(--dark-950);
  color: var(--slate-300);
  padding: calc(var(--nav-height) + var(--space-7)) 0 var(--space-7);
}
.page-hero h1 { color: #fff; margin-bottom: var(--space-3); }
.page-hero p { font-size: 1.1rem; color: var(--slate-400); max-width: 62ch; }
.page-hero .breadcrumbs { margin-bottom: var(--space-4); font-size: 0.85rem; color: var(--slate-500); }
.page-hero .breadcrumbs a { color: var(--slate-400); }
.page-hero .breadcrumbs span[aria-current] { color: var(--red-400); }

/* ---------- Footer ---------- */
.footer { background: var(--dark-950); color: var(--slate-400); padding: var(--space-7) 0 var(--space-5); border-top: 1px solid rgba(255,255,255,0.07); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: var(--space-6); margin-bottom: var(--space-6); }
@media (max-width: 980px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer__grid { grid-template-columns: 1fr; } }

.footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: var(--space-3); }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a { color: var(--slate-400); font-size: 0.92rem; }
.footer a:hover { color: #fff; text-decoration: none; }
.footer__brand p { font-size: 0.92rem; margin-top: var(--space-3); max-width: 34ch; }

.footer__social { display: flex; gap: 12px; margin-top: var(--space-4); }
.footer__social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.footer__social a:hover { background: var(--red-700); color: #fff; transform: translateY(-2px); }
.footer__social .icon { width: 19px; height: 19px; }

.footer__form { display: flex; gap: 10px; margin-top: var(--space-3); }
.footer__form input {
  flex: 1;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
}
.footer__form input::placeholder { color: var(--slate-500); }
.footer__form input:focus { outline: none; border-color: var(--red-500); }

.footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: 0.82rem;
  color: var(--slate-500);
}
.footer__disclaimer {
  font-size: 0.78rem;
  color: var(--slate-500);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  max-width: none;
}

/* ---------- Placeholder / integration blocks ---------- */
.embed-placeholder {
  border: 2px dashed var(--slate-300);
  border-radius: var(--radius-md);
  background: var(--paper);
  padding: var(--space-6);
  text-align: center;
  color: var(--slate-500);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}
.embed-placeholder .icon { width: 36px; height: 36px; color: var(--slate-400); }
.embed-placeholder strong { color: var(--slate-600); font-family: var(--font-heading); }
.embed-placeholder code {
  font-size: 0.8rem;
  background: #f0e8e9;
  border-radius: 6px;
  padding: 3px 10px;
  color: var(--dark-700);
}

/* ---------- Blog / resource cards ---------- */
.post-card {
  background: var(--white);
  border: 1px solid #ece5e6;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card__media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(140deg, var(--dark-800), var(--dark-950));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-400);
}
.post-card__media .icon { width: 40px; height: 40px; opacity: 0.7; }
.post-card__body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.post-card__cat { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-700); }
.post-card h3 { font-size: 1.08rem; }
.post-card p { color: var(--slate-600); font-size: 0.92rem; flex: 1; }
.post-card__link { font-weight: 600; font-size: 0.9rem; color: var(--dark-900); display: inline-flex; align-items: center; gap: 6px; }
.post-card__link .icon { width: 15px; height: 15px; }

/* ---------- Legal pages ---------- */
.legal-body { max-width: 780px; margin-inline: auto; }
.legal-body h2 { font-size: 1.4rem; margin: var(--space-6) 0 var(--space-3); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--slate-600); margin-bottom: var(--space-3); }
.legal-body ul { padding-left: 22px; }
.legal-body .updated { font-size: 0.85rem; color: var(--slate-500); margin-bottom: var(--space-5); }

.notice {
  background: var(--red-100);
  border: 1px solid #f5c2c5;
  border-radius: var(--radius-md);
  padding: var(--space-4);
  color: #8c1218;
  font-size: 0.95rem;
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out); }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 60ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 120ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 180ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 300ms; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 360ms; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 420ms; }
.reveal-stagger.is-visible > *:nth-child(9) { transition-delay: 480ms; }
.reveal-stagger.is-visible > *:nth-child(10) { transition-delay: 540ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* ---------- Sticky mobile CTA bar ---------- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  display: none;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(18, 13, 14, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.sticky-cta .btn { flex: 1; min-height: 48px; padding: 10px 12px; font-size: 0.9rem; }
@media (max-width: 640px) {
  .sticky-cta { display: flex; }
  body.has-sticky-cta { padding-bottom: 78px; }
}

/* ---------- Utilities ---------- */
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.text-center { text-align: center; }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.muted { color: var(--slate-500); }
