/* ===================================================================
   LOCAL LEGENDS — Stylesheet
   Brand kit v1.2 · Dark default + Light mode toggle
   =================================================================== */

/* ===== DESIGN TOKENS ===== */
:root {
  /* Brand · constant across modes */
  --gradient-start: #f59e0b;
  --gradient-end: #ea580c;
  --legend-gradient: linear-gradient(90deg, #f59e0b 0%, #ea580c 100%);

  /* Type */
  --serif: 'Libre Baskerville', Georgia, serif;
  --sans: 'Poppins', system-ui, -apple-system, sans-serif;

  /* Layout */
  --max-width: 1480px;
  --gutter: clamp(20px, 4vw, 72px);
  --section-y: clamp(64px, 10vw, 144px);
  --radius: 6px;
  --radius-sm: 4px;
}

/* DARK MODE (default) */
[data-theme="dark"] {
  --bg: #1c1c1c;
  --surface: #303030;
  --surface-2: #404040;
  --surface-3: #4a4a4a;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --ink: #ffffff;
  --ink-2: rgba(255, 255, 255, 0.72);
  --ink-3: rgba(255, 255, 255, 0.48);
  --topbar-bg: rgba(28, 28, 28, 0.85);
  --overlay-grad: linear-gradient(90deg, rgba(28, 28, 28, 0.95) 0%, rgba(28, 28, 28, 0.65) 50%, rgba(28, 28, 28, 0.1) 100%);
  --card-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 12px 32px rgba(0, 0, 0, 0.25);
}

/* LIGHT MODE */
[data-theme="light"] {
  --bg: #ffffff;
  --surface: #f5f3f0;
  --surface-2: #ece8e1;
  --surface-3: #ddd8cf;
  --border: rgba(14, 8, 3, 0.08);
  --border-strong: rgba(14, 8, 3, 0.18);
  --ink: #0e0803;
  --ink-2: rgba(14, 8, 3, 0.72);
  --ink-3: rgba(14, 8, 3, 0.48);
  --topbar-bg: rgba(255, 255, 255, 0.85);
  --overlay-grad: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0.1) 100%);
  --card-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 12px 32px rgba(14, 8, 3, 0.06);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

/* Subtle atmospheric glow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(800px 400px at 80% -10%, rgba(245, 158, 11, 0.06), transparent 60%),
    radial-gradient(600px 300px at 0% 100%, rgba(234, 88, 12, 0.04), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] body::before {
  background-image:
    radial-gradient(800px 400px at 80% -10%, rgba(245, 158, 11, 0.08), transparent 60%),
    radial-gradient(600px 300px at 0% 100%, rgba(234, 88, 12, 0.05), transparent 60%);
}

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

/* ===== TYPOGRAPHY PRIMITIVES ===== */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

p { color: var(--ink-2); }

.grad-italic {
  font-style: italic;
  background: var(--legend-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  /* Fallback */
  background-color: var(--gradient-end);
}

.serif-italic {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
}

.lede {
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* ===== SIGNATURE GRADIENT RULE ===== */
.gradient-rule {
  height: 3px;
  background: var(--legend-gradient);
  border-radius: 2px;
  display: block;
}
.rule-small  { width: 40px; height: 2px; }
.rule-medium { width: 200px; height: 4px; }
.rule-large  { width: 320px; height: 4px; }

/* ===== SECTION HEADERS ===== */
.section-marker {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 24px;
}

.section-headline {
  font-size: clamp(36px, 6vw, 64px);
  margin-bottom: 24px;
  max-width: 22ch;
}

.section-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 64ch;
  margin-bottom: 56px;
}

.section {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--border);
  position: relative;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--legend-gradient);
  color: #0e0803;
  border-color: transparent;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--gradient-start);
  color: var(--gradient-start);
}

.btn-sm { padding: 10px 18px; font-size: 12px; letter-spacing: 0.16em; }
.btn-large { padding: 18px 32px; font-size: 14px; letter-spacing: 0.2em; }
.btn-login { flex-shrink: 0; }

/* ===== TOP NAVIGATION ===== */
.topbar {
  position: sticky;
  top: 0;
  background: var(--topbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: background 0.3s ease;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 18px var(--gutter);
  max-width: none;
  width: 100%;
  margin: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 18px; }
.brand-logo { height: 24px; width: auto; display: block; }
[data-theme="dark"] .brand-logo-dark { display: block; }
[data-theme="dark"] .brand-logo-light { display: none; }
[data-theme="light"] .brand-logo-dark { display: none; }
[data-theme="light"] .brand-logo-light { display: block; }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 36px;
}

.topnav {
  display: flex;
  gap: 32px;
}
.topnav a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  position: relative;
  padding: 8px 0;
}
.topnav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--legend-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.topnav a:hover { color: var(--ink); }
.topnav a:hover::after { transform: scaleX(1); }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  color: var(--ink);
}
.theme-toggle:hover { border-color: var(--gradient-start); color: var(--gradient-start); }

[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}
.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.topbar.is-scrolled {
  padding: 0;
  box-shadow: 0 1px 0 var(--border);
}
.topbar.is-scrolled .topbar-inner {
  padding-top: 12px;
  padding-bottom: 12px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: clamp(80px, 12vw, 160px) 0 clamp(80px, 10vw, 120px);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20,18,16,0.94) 0%, rgba(20,18,16,0.78) 32%, rgba(20,18,16,0.4) 64%, rgba(20,18,16,0.12) 100%);
}
[data-theme="light"] .hero-overlay {
  background: linear-gradient(90deg, rgba(14,8,3,0.9) 0%, rgba(14,8,3,0.72) 32%, rgba(14,8,3,0.35) 64%, rgba(14,8,3,0.08) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 660px;
  /* Left-aligned within .container, sits on the left of the site */
}
.hero > .container {
  width: 100%;
  max-width: none;
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gradient-start);
  margin-bottom: 28px;
  font-weight: 500;
}

.hero-headline {
  font-size: clamp(44px, 7.5vw, 104px);
  line-height: 1.0;
  margin-bottom: 32px;
  max-width: 100%;
  letter-spacing: 0;
  color: #fff;
}
.hero-headline .line-1,
.hero-headline .line-2 {
  display: block;
  white-space: nowrap;
}

.hero-rule { margin-bottom: 28px; }

.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
  max-width: 52ch;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-footer {
  position: absolute;
  bottom: 28px;
  left: var(--gutter);
  z-index: 2;
}
.hero-footer-tag {
  font-size: 11px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ===== PROBLEM SECTION ===== */
.section-problem .section-headline { max-width: 24ch; }

.problem-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  margin-top: 48px;
  align-items: start;
}

.problem-body > p { margin-bottom: 24px; }

.pull-quote {
  margin-top: 32px;
  padding: 20px 0 20px 28px;
  border-left: 3px solid;
  border-image: var(--legend-gradient) 1;
  position: relative;
}
.pull-quote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--legend-gradient);
}
.pull-quote p {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.4;
  color: var(--ink);
}

.problem-image {
  position: sticky;
  top: 100px;
}
.problem-image img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  box-shadow: var(--card-shadow);
}
.image-caption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-3);
  margin-top: 14px;
  text-align: center;
}

/* ===== INDUSTRIES ===== */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 56px;
}

.industry-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.industry-tile:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--card-shadow);
}

.tile-media {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--surface-2);
}
.tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.industry-tile:hover .tile-media img {
  transform: scale(1.04);
}

.tile-body {
  padding: 22px 22px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tile-rule {
  margin-bottom: 14px;
  transition: width 0.3s ease;
}
.industry-tile:hover .tile-rule { width: 72px; }

.industry-tile h3 {
  font-size: 19px;
  margin-bottom: 8px;
  line-height: 1.2;
}
.industry-tile p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}

.tile-text {
  background: var(--surface);
  border: 1px solid var(--border);
}
.tile-text .tile-body {
  padding: 32px 24px;
  min-height: 220px;
  justify-content: center;
}

.industries-closing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.industries-closing p {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
  max-width: 56ch;
}

/* ===== SYSTEM ===== */
.system-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.system-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.system-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.system-card-wide {
  grid-column: 1 / -1;
}

.card-num {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.card-num span {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.18em;
  background: var(--legend-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.system-card h3 {
  font-size: 26px;
  margin-bottom: 14px;
  line-height: 1.2;
}
.system-card p {
  font-size: 15px;
  line-height: 1.65;
}
.card-tag {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-3);
}

/* ===== WHY US ===== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}
.pillar::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--legend-gradient);
}
.pillar h4 {
  font-size: 22px;
  margin-bottom: 12px;
}
.pillar p {
  font-size: 14.5px;
  line-height: 1.6;
}

/* ===== CLIENT SHOWCASE ===== */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.client-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 16px 18px;
  text-decoration: none;
  color: inherit;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.client-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
  background: var(--surface-2);
}
.client-logo {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
}
.client-logo img {
  max-width: 100%;
  max-height: 60px;
  width: auto;
  object-fit: contain;
}
/* Light mode: white tile so transparent logos read on the light theme */
[data-theme="light"] .client-logo {
  background: #ffffff;
  border-color: var(--border-strong);
}
.client-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 13px;
}
.client-loc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gradient-start);
  margin-bottom: 10px;
}
.client-loc svg { width: 12px; height: 12px; flex-shrink: 0; }
.client-overview {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-2);
  margin-bottom: 14px;
  flex: 1;
}
.client-visit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  transition: gap .25s ease, color .25s ease;
}
.client-visit svg { width: 13px; height: 13px; }
.client-card:hover .client-visit {
  color: var(--gradient-start);
  gap: 11px;
}

.bonus-pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 40px;
  position: relative;
  overflow: hidden;
}
.bonus-pillar::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--legend-gradient);
}
.bonus-pillar h3 {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 12px;
}
.bonus-pillar p {
  font-size: 16px;
  max-width: 72ch;
  line-height: 1.6;
}

/* ===== HOW IT WORKS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  margin-bottom: 40px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.step-num {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.step-num span {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.18em;
  background: var(--legend-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.step h4 {
  font-size: 22px;
  margin-bottom: 12px;
}
.step p {
  font-size: 14.5px;
  line-height: 1.6;
}

.how-closing {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-2);
  text-align: center;
  margin-bottom: 32px;
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto;
}

.how-cta {
  display: flex;
  justify-content: center;
}

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.price-header {
  background: var(--legend-gradient);
  color: #0e0803;
  padding: 14px 32px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.price-header-orange {
  background: linear-gradient(90deg, #ea580c 0%, #c2410c 100%);
  color: #ffffff;
}

.price-amount {
  padding: 36px 32px 24px;
  text-align: left;
}
.price-big {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(48px, 6vw, 72px);
  line-height: 1;
  background: var(--legend-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.price-period {
  font-family: var(--sans);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-3);
}

.price-items {
  list-style: none;
  padding: 0 32px 32px;
}
.price-items li {
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.price-items li:last-child { padding-bottom: 0; }

.price-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.price-item-head strong {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
}
.price-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--gradient-start);
}
.price-line.price-included {
  color: var(--gradient-end);
}
.price-item-sub {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
}

.check-list {
  list-style: none;
  padding: 0 32px 32px;
}
.check-list li {
  padding: 12px 0 12px 28px;
  position: relative;
  font-size: 15px;
  color: var(--ink-2);
  border-top: 1px solid var(--border);
}
.check-list li:first-child { border-top: none; }
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 16px;
  height: 16px;
  background: var(--legend-gradient);
  border-radius: 50%;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%230e0803' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"),
    var(--legend-gradient);
  background-repeat: no-repeat;
  background-position: center;
}

.section-pricing .section-marker,
.section-pricing .section-headline,
.section-pricing .section-sub {
  text-align: center;
}
.section-pricing .section-headline,
.section-pricing .section-sub {
  margin-left: auto;
  margin-right: auto;
}

.pricing-cta {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.pricing-cta-note {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.5;
  max-width: 44ch;
}

.pricing-footer {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-2);
  text-align: center;
  max-width: 72ch;
  margin: 44px auto 0;
  line-height: 1.55;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 880px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(17px, 1.8vw, 22px);
  color: var(--ink);
  transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gradient-start); }

.faq-icon {
  flex-shrink: 0;
  color: var(--gradient-start);
  transition: transform 0.3s ease;
}
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 0 28px;
  max-width: 72ch;
}
.faq-answer p {
  font-size: 16px;
  line-height: 1.7;
}
.faq-answer em {
  background: var(--legend-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  font-weight: 700;
}

/* ===== FINAL CTA ===== */
.section-final-cta {
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-bottom: clamp(56px, 7vw, 88px);
}
.section-final-cta .section-marker {
  color: var(--gradient-start);
}
/* Soft hearth glow rising behind the closing CTA */
.section-final-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 92%);
  height: 600px;
  background: radial-gradient(58% 100% at 50% 0%, rgba(245,158,11,0.17) 0%, rgba(234,88,12,0.07) 36%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
/* Gradient seam at the very top to mark the start of the closing moment */
.section-final-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, 60%);
  height: 3px;
  background: var(--legend-gradient);
  border-radius: 2px;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.5);
  z-index: 1;
}
.section-final-cta .container { position: relative; z-index: 1; }

.final-headline {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 1;
  margin-bottom: 28px;
  letter-spacing: 0;
}

.final-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 64ch;
  margin: 0 auto 48px;
}

.final-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.final-reassurance {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-3);
}

/* ===== FOOTER (flows directly out of the CTA) ===== */
.footer {
  padding: 0 0 48px;
  border-top: none;
  position: relative;
}
.footer .container { position: relative; z-index: 1; }

.footer-hero {
  text-align: center;
  margin-bottom: 80px;
}

.footer-mark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(48px, 9vw, 112px);
  line-height: 1.0;
  margin-bottom: 32px;
  letter-spacing: 0;
}

.footer-rule {
  margin: 0 auto 32px;
  filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.4));
}

.footer-tag {
  font-size: 12px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  margin-bottom: 48px;
}

.footer-col-head {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gradient-start);
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: var(--ink-2);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--gradient-start); }

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  flex-wrap: wrap;
  gap: 16px;
}

/* =========================================
   RESPONSIVE — TABLET (< 1100px)
   ========================================= */
@media (max-width: 1100px) {
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================
   RESPONSIVE — TABLET PORTRAIT (< 880px)
   ========================================= */
@media (max-width: 880px) {
  .topnav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .topbar-right { gap: 20px; }

  .problem-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .problem-image { position: static; }

  .system-grid { grid-template-columns: 1fr; }

  .pillars-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }

  .pricing-grid { grid-template-columns: 1fr; }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .industries-closing {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

/* =========================================
   RESPONSIVE — MOBILE (< 640px)
   ========================================= */
@media (max-width: 640px) {
  .topbar-right .btn-primary { display: none; }
  .topbar-right { gap: 14px; }
  .btn-login { padding: 9px 14px; font-size: 11px; letter-spacing: 0.12em; }
  .brand-logo { height: 22px; }

  .hero {
    min-height: 88vh;
    padding: 100px 0 80px;
  }
  .hero-headline { font-size: clamp(48px, 14vw, 80px); }
  .hero-sub { font-size: 16px; }

  .industries-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }

  .pillar, .step, .system-card { padding: 28px 24px; }
  .bonus-pillar { padding: 28px 24px; }

  .price-amount, .price-items, .check-list { padding-left: 24px; padding-right: 24px; }
  .price-header { padding: 12px 24px; }

  .footer-grid { grid-template-columns: 1fr; }

  .final-actions { flex-direction: column; align-items: stretch; }
  .final-actions .btn { justify-content: center; }
}

/* =========================================
   PRINT
   ========================================= */
@media print {
  .topbar, .hero-actions, .final-actions, .theme-toggle { display: none; }
  body { background: #fff; color: #0e0803; }
  body::before { display: none; }
  section { page-break-inside: avoid; }
}

/* =========================================
   REVEAL ON SCROLL (subtle, additive)
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

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

/* ====================================================================
   ============== V2 ADDITIONS — NEW COMPONENTS =======================
   ==================================================================== */

/* =========================================
   GAP SECTION — The Squeeze
   ========================================= */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 24px;
}

.compare-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.compare-bad {
  opacity: 0.82;
}

.compare-good {
  background: linear-gradient(180deg, rgba(245,158,11,0.10) 0%, var(--surface) 40%);
  border: 1px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 0 0 1.5px transparent;
  position: relative;
  transform: translateY(-8px);
}
.compare-good::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: var(--radius);
  padding: 1.5px;
  background: var(--legend-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.compare-good::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(234, 88, 12, 0.18);
  pointer-events: none;
  z-index: -1;
}

.compare-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--legend-gradient);
  color: #0e0803;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.compare-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.compare-label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.compare-good .compare-label {
  background: var(--legend-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.compare-price {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 30px;
  color: var(--ink);
  line-height: 1;
}
.compare-price small {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-3);
  font-style: italic;
}
.compare-good .compare-price {
  background: var(--legend-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.compare-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.compare-list li {
  position: relative;
  padding: 11px 0 11px 30px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
  border-bottom: 1px solid var(--border);
}
.compare-list li:last-child { border-bottom: 0; }
.compare-list li::before {
  position: absolute;
  left: 0;
  top: 11px;
  font-size: 14px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.compare-list li.is-no::before {
  content: '✕';
  color: #f87171;
}
.compare-list li.is-yes {
  color: var(--ink);
}
.compare-list li.is-yes::before {
  content: '';
  top: 13px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%230e0803' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 10px no-repeat,
    var(--legend-gradient);
}

.gap-resolution {
  margin-top: 48px;
  padding: 40px 48px;
  background: var(--surface);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.gap-resolution::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 0;
  height: 3px;
  background: var(--legend-gradient);
}
.gap-resolution p {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.4;
  color: var(--ink);
  max-width: 64ch;
  margin: 0 auto;
}

/* =========================================
   INDUSTRIES — Modern (icon-based)
   ========================================= */
.industries-modern {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 56px;
}

.industry-modern {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px 28px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}
.industry-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--legend-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.industry-modern:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}
.industry-modern:hover::before {
  transform: scaleX(1);
}

.industry-icon {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  transition: all 0.3s ease;
}
.industry-modern:hover .industry-icon {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
}

[data-theme="light"] .industry-icon {
  background: rgba(245, 158, 11, 0.06);
  border-color: rgba(245, 158, 11, 0.3);
}

.industry-modern h3 {
  font-size: 20px;
  margin-bottom: 10px;
  line-height: 1.2;
}
.industry-modern p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* =========================================
   SYSTEM — Machine Diagram + Stage Cards
   ========================================= */
.system-layout {
  display: block;
}

.machine-diagram {
  display: flex;
  justify-content: center;
  margin: 24px auto 64px;
  max-width: 520px;
}
.machine-diagram svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Venn circles */
.venn-ring {
  fill: url(#ringFill);
  stroke: url(#ringGrad);
  stroke-width: 2;
  opacity: 0.55;
  transition: opacity 0.35s ease, filter 0.35s ease;
}
.venn-num {
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  font-size: 26px;
  fill: url(#ringGrad);
  opacity: 0.65;
  transition: opacity 0.35s ease;
}
.venn-name {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 3px;
  fill: var(--ink-2);
  opacity: 0.7;
  transition: opacity 0.35s ease, fill 0.35s ease;
}
.venn-center {
  font-family: var(--serif);
  font-weight: 700;
  font-style: italic;
  font-size: 18px;
  fill: url(#ringGrad);
}

.venn-circle {
  cursor: pointer;
  outline: none;
}
.venn-circle:focus-visible .venn-ring {
  opacity: 0.9;
}

/* Active (hover-linked) state */
.venn-circle.is-active .venn-ring {
  opacity: 1;
  filter: url(#ringGlow) drop-shadow(0 0 14px rgba(245, 158, 11, 0.55));
}
.venn-circle.is-active .venn-num { opacity: 1; }
.venn-circle.is-active .venn-name { opacity: 1; fill: var(--ink); }

.stages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.system-hint {
  font-style: italic;
  font-family: var(--serif);
  color: var(--ink-3);
  font-size: 0.92em;
}

.stage-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.stage-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}
.stage-card {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.35s ease;
  cursor: default;
}
.stage-card.is-active {
  border-color: var(--gradient-start);
  box-shadow: 0 0 0 1px var(--gradient-start), 0 18px 50px rgba(245, 158, 11, 0.22);
  transform: translateY(-3px);
}

.stage-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.stage-num {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.18em;
  background: var(--legend-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stage-card h3 {
  font-size: 26px;
  line-height: 1.15;
  margin-bottom: 6px;
}
.stage-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.stage-card > p:not(.stage-sub) {
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 20px;
}

.stage-list {
  list-style: none;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
}
.stage-list li {
  position: relative;
  padding: 8px 0 8px 22px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}
.stage-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 1.5px;
  background: var(--legend-gradient);
}

/* =========================================
   PILLAR ICONS
   ========================================= */
.pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
}
[data-theme="light"] .pillar-icon {
  background: rgba(245, 158, 11, 0.06);
  border-color: rgba(245, 158, 11, 0.3);
}

/* =========================================
   PRICING — Updated package list + plus mark
   ========================================= */
.price-package {
  list-style: none;
  padding: 0 32px 24px;
}
.price-package li {
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.price-package li:first-child {
  border-top: 1px solid var(--border);
}
.price-package li strong {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 4px;
  color: var(--ink);
}
.price-package li span {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.5;
}

.price-plus {
  font-size: 0.5em;
  vertical-align: super;
  margin-left: 4px;
  font-style: normal;
}

.price-implementation {
  margin: 0 32px;
  padding: 22px 0 6px;
  border-top: 1px solid var(--border-strong);
}
.impl-label {
  display: block;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gradient-start);
  margin-bottom: 9px;
}
.impl-amount {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 8px;
}
.impl-note {
  display: block;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-3);
}

.price-footnote {
  padding: 24px 32px 32px;
  margin-top: auto;
  border-top: 1px solid var(--border);
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-2);
  text-align: center;
}

/* =========================================
   RESPONSIVE — V2 additions
   ========================================= */
@media (max-width: 1100px) {
  .industries-modern { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 880px) {
  .stages-grid {
    grid-template-columns: 1fr;
  }
  .industries-modern {
    grid-template-columns: repeat(2, 1fr);
  }
  .machine-diagram {
    max-width: 100%;
  }
}

@media (max-width: 540px) {
  .industries-modern {
    grid-template-columns: 1fr;
  }
  .compare-card, .stage-card {
    padding: 28px 22px;
  }
  .gap-resolution {
    padding: 28px 24px;
  }
  .price-package, .price-footnote {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* ====================================================================
   ============== V3 ADDITIONS ========================================
   ==================================================================== */

/* =========================================
   NAV — mobile CTA hide (new structure)
   ========================================= */
@media (max-width: 640px) {
  .topbar-right .btn-primary { display: none; }
}

/* =========================================
   ALL INDUSTRIES — reveal panel
   ========================================= */
.industries-all-toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
  padding-top: 8px;
}
.industries-all-toggle .chevron {
  transition: transform 0.3s ease;
}
.industries-all-toggle .btn[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.industries-all {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 40px 0 8px;
  margin-top: 24px;
  border-top: 1px solid var(--border);
  animation: fadeInUp 0.4s ease;
}
.industries-all[hidden] { display: none; }

.all-col-head {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--legend-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 18px;
}
.all-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 1;
}
.all-col:first-child ul {
  columns: 2;
  column-gap: 32px;
}
.all-col li {
  font-size: 14.5px;
  color: var(--ink-2);
  padding: 7px 0;
  line-height: 1.4;
  break-inside: avoid;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   RESPONSIVE — V3
   ========================================= */
@media (max-width: 1000px) {
  .compare-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .compare-good {
    transform: none;
    order: -1; /* show the winning option first on mobile */
  }
  .industries-all {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 560px) {
  .industries-all {
    grid-template-columns: 1fr;
  }
  .all-col:first-child ul {
    columns: 1;
  }
  .compare-card {
    padding: 28px 24px;
  }
}