/* =========================================================================
   QuoteForge landing — base styles
   Tokens and components ported from the BillingTrack design system.
   Dark-first; light mode via [data-theme="light"] on <html>.
   ========================================================================= */

/* ===== TOKENS ===== */
:root {
  /* Backgrounds */
  --bg-0: #0A101A;
  --bg-1: #111827;
  --bg-2: #1A2533;
  --bg-3: #334155;
  --bg-card: rgba(17, 24, 39, 0.74);
  --bg-card-2: rgba(10, 16, 26, 0.94);

  /* Lines */
  --line: rgba(137, 166, 199, 0.09);
  --line-strong: rgba(137, 166, 199, 0.18);
  --line-bright: rgba(137, 166, 199, 0.34);

  /* Steel — main accent */
  --steel: #4C6A92;
  --steel-soft: #89A6C7;
  --steel-deep: #3D5877;

  /* Blue — primary CTAs */
  --blue: #6B89B2;
  --blue-soft: #9FB7D3;
  --blue-deep: #2A3D55;

  /* Secondary */
  --slate: #7C8FA8;
  --silver: #A8B6C8;
  --amber: #D4A373;
  --clay: #C98B7A;

  /* Semantic */
  --success: #34D399;
  --success-soft: rgba(94, 224, 162, 0.14);
  --warning: #FBBF24;
  --warning-soft: rgba(251, 191, 36, 0.14);
  --error: #F87171;
  --error-soft: rgba(248, 113, 113, 0.14);
  --info: #9FB7D3;
  --info-soft: rgba(107, 137, 178, 0.14);

  /* BT aliases — used by hero stage and shared components */
  --cyan: var(--steel);
  --cyan-soft: var(--steel-soft);
  --cyan-deep: var(--steel-deep);
  --indigo: #7C8FA8;
  --violet: #A8B6C8;
  --magenta: #D4A373;
  --pink: #C98B7A;
  --green: var(--steel);
  --green-soft: var(--steel-soft);
  --green-deep: var(--steel-deep);
  --amber: var(--warning);
  --red: var(--error);

  /* Button sizes (height-driven, BT pattern) */
  --btn-sm-height: 36px;
  --btn-sm-padding-x: 14px;
  --btn-sm-font: 13px;
  --btn-md-height: 44px;
  --btn-md-padding-x: 18px;
  --btn-md-font: 14px;
  --btn-lg-height: 52px;
  --btn-lg-padding-x: 24px;
  --btn-lg-font: 15px;

  /* Text */
  --text: #F8FAFC;
  --text-2: rgba(226, 232, 240, 0.72);
  --text-3: rgba(148, 163, 184, 0.65);
  --text-inverse: #0A101A;

  /* Fonts */
  --font-display: 'Satoshi', 'Inter', system-ui, sans-serif;
  --font-body: 'Satoshi', 'Inter', system-ui, sans-serif;
  --font-mono: 'Inter', system-ui, sans-serif;

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

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(2, 6, 23, 0.5);
  --shadow-md: 0 12px 32px -6px rgba(2, 6, 23, 0.7);
  --shadow-lg: 0 20px 52px -10px rgba(2, 6, 23, 0.85);
  --shadow-glow: 0 0 0 1px rgba(76, 106, 146, 0.28), 0 0 28px rgba(76, 106, 146, 0.24);
  --shadow-glow-blue: 0 8px 24px rgba(61, 88, 119, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.16);

  /* Layout */
  --container-max: 1120px;
  --container-pad: 24px;
  --header-h: 64px;
}

/* Light overrides — invert surfaces, darken accents for contrast */
[data-theme="light"] {
  --bg-0: #F8FAFC;
  --bg-1: #FFFFFF;
  --bg-2: #F1F5F9;
  --bg-3: #E2E8F0;
  --bg-card: rgba(255, 255, 255, 0.94);
  --bg-card-2: rgba(246, 248, 245, 0.98);

  --line: rgba(51, 65, 85, 0.07);
  --line-strong: rgba(51, 65, 85, 0.14);
  --line-bright: rgba(51, 65, 85, 0.24);

  --steel: #3D5877;
  --steel-soft: #4C6A92;
  --steel-deep: #2A3D55;

  --blue: #6B89B2;
  --blue-soft: #89A6C7;
  --blue-deep: #2A3D55;

  --slate: #60749A;
  --silver: #7C8FA8;

  --success: #059669;
  --success-soft: rgba(5, 150, 105, 0.10);
  --warning: #B7791F;
  --warning-soft: rgba(183, 121, 31, 0.10);
  --error: #C24135;
  --error-soft: rgba(194, 65, 53, 0.10);
  --info: #6B89B2;
  --info-soft: rgba(107, 137, 178, 0.10);

  --cyan: var(--steel);
  --cyan-soft: var(--steel-soft);
  --cyan-deep: var(--steel-deep);
  --indigo: #60749A;
  --violet: #7C8FA8;
  --magenta: #D4A373;
  --pink: #C98B7A;
  --green: var(--steel);
  --green-soft: var(--steel-soft);
  --green-deep: var(--steel-deep);
  --amber: var(--warning);
  --red: var(--error);

  --text: #111827;
  --text-2: rgba(17, 24, 39, 0.78);
  --text-3: rgba(71, 85, 105, 0.76);
  --text-inverse: #F8FAFC;

  --shadow-sm: 0 2px 8px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 8px 24px -4px rgba(17, 24, 39, 0.10);
  --shadow-lg: 0 18px 44px -10px rgba(17, 24, 39, 0.18);
  --shadow-glow: 0 0 0 1px rgba(61, 88, 119, 0.24), 0 6px 22px rgba(61, 88, 119, 0.16);
  --shadow-glow-blue: 0 8px 22px rgba(107, 137, 178, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.30);
}

/* color-scheme so native UI (scrollbars, form controls) matches */
html { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  background-color: var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(1200px 600px at 75% 0%, rgba(76, 106, 146, 0.08), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(124, 143, 168, 0.06), transparent 60%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  background-attachment: fixed;
}

[data-theme="light"] body {
  background-image:
    radial-gradient(1200px 600px at 75% 0%, rgba(61, 88, 119, 0.06), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(47, 111, 99, 0.04), transparent 60%),
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
}

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

/* Headings inherit their weight from <body> (= 400, normal), like BillingTrack —
   this overrides the browser's bold default. Class-level weights still win where set
   (.bt-section-title: 600, .qfc-card__title: 700). */
h1, h2 { font-weight: inherit; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

button { font: inherit; }

ul { list-style: none; }

/* Focus ring — visible only for keyboard users */
:focus-visible {
  outline: 2px solid var(--steel-soft);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ===== LAYOUT UTILITIES ===== */
.bt-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.bt-section {
  padding: var(--space-9) 0;
}
.bt-section-surface {
  background: var(--bg-1);
}
[data-theme="light"] .bt-section-surface {
  background: #FFFFFF;
}

.bt-section-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-align: center;
  color: var(--text);
  margin-bottom: var(--space-3);
}

.bt-section-subtitle {
  text-align: center;
  font-size: 18px;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto var(--space-7);
  line-height: 1.55;
}

/* ===== BRAND ===== */
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--blue) 0%, var(--blue-deep) 100%);
  display: inline-grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(61, 88, 119, 0.40);
  flex-shrink: 0;
}
.brand-mark svg { width: 16px; height: 16px; }

.brand-wordmark {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand-wordmark__accent {
  background: linear-gradient(110deg, var(--steel) 0%, var(--steel-soft) 50%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== NAVBAR (bt-nav) ===== */
.bt-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(5, 11, 26, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(137, 166, 199, 0.10);
  transition: background-color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
[data-theme="light"] .bt-nav {
  background: rgba(248, 250, 252, 0.58);
  border-bottom-color: rgba(51, 65, 85, 0.12);
}
.bt-nav.scrolled {
  background: rgba(5, 11, 26, 0.72);
  border-bottom-color: rgba(137, 166, 199, 0.22);
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.60);
}
[data-theme="light"] .bt-nav.scrolled {
  background: rgba(248, 250, 252, 0.78);
  border-bottom-color: rgba(51, 65, 85, 0.16);
}
/* Self-contained: no longer shares the `.bt-container` class in the markup, so
   it declares its own layout. Desktop: 85%-wide centered container with no
   horizontal padding (the 85% itself provides the gutters). Full-width + padding
   is restored at <=1024px / <=768px in responsive.css for smaller screens. */
.bt-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  height: var(--header-h);
  width: 85%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

.bt-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-display);
  text-decoration: none;
  color: inherit;
}
.bt-brand-name {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.bt-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--blue), var(--blue-deep));
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(61, 88, 119, 0.40);
  flex-shrink: 0;
}
.bt-brand-mark svg { width: 16px; height: 16px; color: #fff; }

.bt-nav-desktop {
  display: flex;
  align-items: center;
  gap: 34px;
}
.bt-nav-link {
  color: var(--text-2);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}
.bt-nav-link:hover { color: var(--text); }
.bt-nav-link.active { color: var(--steel-soft); }

.bt-nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.bt-login { margin-left: 6px; }
.bt-signup { min-width: max-content; }

/* ===== LANG SELECTOR ===== */
.bt-lang { position: relative; }
.bt-lang-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  color: var(--text-2);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.bt-lang-button:hover { color: var(--text); }
.lang-arrow { transition: transform 0.15s ease; }
.lang-arrow.rotate { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 60;
  min-width: 160px;
  padding: 6px;
  border-radius: var(--radius-md);
  background: rgba(11, 18, 38, 0.96);
  border: 1px solid rgba(137, 166, 199, 0.22);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
}
[data-theme="light"] .lang-menu {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(51, 65, 85, 0.14);
}
.lang-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-2);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.lang-menu button:hover,
.lang-menu button.active {
  background: rgba(76, 106, 146, 0.14);
  color: var(--steel-soft);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.2s, background-color 0.15s,
              border-color 0.15s, color 0.15s;
}
.btn:active { transform: translateY(0); }

.btn-sm {
  height: var(--btn-sm-height);
  padding: 0 var(--btn-sm-padding-x);
  font-size: var(--btn-sm-font);
  border-radius: 10px;
}
.btn-lg {
  height: var(--btn-lg-height);
  padding: 0 var(--btn-lg-padding-x);
  font-size: var(--btn-lg-font);
  border-radius: 14px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.20);
}
[data-theme="light"] .btn-secondary {
  background: #FFFFFF;
  border-color: var(--line-strong);
}
[data-theme="light"] .btn-secondary:hover {
  background: #F1F5F9;
  border-color: var(--line-bright);
}

/* ===== SHARED: PILL + ACCENT ===== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(76, 106, 146, 0.08);
  border: 1px solid rgba(76, 106, 146, 0.30);
  color: var(--steel-soft);
  font-size: 12.5px;
  font-weight: 500;
}
.pill .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--steel);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(76, 106, 146, 0.60); }
  70%  { box-shadow: 0 0 0 10px rgba(76, 106, 146, 0); }
  100% { box-shadow: 0 0 0 0 rgba(76, 106, 146, 0); }
}

.accent {
  background: linear-gradient(110deg, var(--cyan) 0%, var(--cyan-soft) 40%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
  box-shadow: var(--shadow-glow-blue);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(61, 88, 119, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-outline {
  background: transparent;
  color: var(--steel-soft);
  border: 1px solid var(--steel);
}
.btn-outline:hover {
  background: rgba(76, 106, 146, 0.10);
  box-shadow: 0 0 16px rgba(76, 106, 146, 0.32);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
}
.btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
[data-theme="light"] .btn-ghost:hover { background: rgba(15, 23, 42, 0.05); }

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text-2);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.theme-toggle:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-bright);
}
[data-theme="light"] .theme-toggle:hover { background: rgba(15, 23, 42, 0.04); }

.theme-toggle__icon { width: 16px; height: 16px; }

/* Icon convention: show the *destination* state.
   Dark active → show sun (click goes to light).
   Light active → show moon (click goes to dark). */
.theme-toggle__icon--sun { display: block; }
.theme-toggle__icon--moon { display: none; }
[data-theme="light"] .theme-toggle__icon--sun { display: none; }
[data-theme="light"] .theme-toggle__icon--moon { display: block; }

/* ===== MOBILE TOGGLE + MENU PANEL (hidden on desktop) ===== */
.bt-mobile-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--text);
  cursor: pointer;
  padding: 0;
}
.mobile-menu-panel { display: none; }
.mobile-menu-inner {
  padding-block: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-menu-inner > .bt-nav-link {
  font-size: 16px;
  color: var(--text-2);
}
.mobile-menu-settings {
  padding-block: 16px;
  border-block: 1px solid rgba(255, 255, 255, 0.10);
  display: grid;
  gap: 14px;
}
[data-theme="light"] .mobile-menu-settings {
  border-block-color: rgba(51, 65, 85, 0.12);
}
.mobile-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-2);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}
.mobile-setting-row .bt-lang-button {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.10);
  border: 1px solid rgba(148, 163, 184, 0.16);
}
.mobile-menu-actions {
  display: grid;
  gap: 12px;
}
.mobile-login {
  font-size: 16px;
  text-align: center;
  margin: 5px;
}
.mobile-signup {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  font-size: 15px;
}

/* =========================================================================
   HERO — two-column with animated isometric stage.
   Ported from BillingTrack hero.css as a placeholder visual.
   ========================================================================= */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  background:
    radial-gradient(1200px 600px at 75% 30%, rgba(76, 106, 146, 0.16), transparent 60%),
    radial-gradient(900px 500px at 20% 80%, rgba(124, 143, 168, 0.13), transparent 60%),
    radial-gradient(700px 400px at 80% 90%, rgba(212, 163, 115, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
  overflow: hidden;
  color: var(--text);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 30%, transparent 75%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 2;
  max-width: 85%;
  min-height: calc(100vh - var(--header-h));
  margin: 0 auto;
  padding: 60px 60px 12px 0;
  display: grid;
  grid-template-columns: minmax(380px, 0.9fr) minmax(520px, 1.1fr);
  gap: 20px;
  align-items: stretch;
}
.copy { max-width: 560px; }
/* Hero badge top space: BillingTrack offsets its fixed nav with body padding-top:64px,
   which this layout doesn't have, so the badge would tuck under the nav. Add the same
   64px (header height) as spacing on the hero badge only — not the decision/CTA pills. */
.copy .pill { margin-top: var(--header-h); }

h1.headline {
  margin-top: 22px;
  font-size: clamp(44px, 5.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-family: var(--font-display);
}
.subhead {
  font-family: var(--font-body);
  font-weight: 400;
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 500px;
}
.ctas {
  margin-top: 34px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.integrations {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-3);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-wrap: wrap;
}
.integrations .line { flex: 0 0 32px; height: 1px; background: var(--line-strong); }
.integrations .logos { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.integ-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0;
  text-transform: none;
}
.integ-chip .dot { width: 6px; height: 6px; border-radius: 50%; }

/* -------------------------------------------------------------------------
   QFA — QuoteForge hero animation.
   A phone where the client receives a quote and approves it in one tap, with a
   mini-chat and a "Historial de estados" timeline (Borrador → Enviado →
   Aceptado). Driven by js/hero.js, which loops it every ~10s.

   Everything is namespaced under `.qfa-root`: classes, IDs and @keyframes all
   carry the `qfa-` prefix, and the design tokens live on `.qfa-root` instead of
   `:root`, so nothing here can clobber the landing's own tokens or styles.
   Runtime classes toggled by the JS: qfa-in, qfa-go, qfa-pressed, qfa-ok,
   qfa-sent, qfa-approved. The .qfa-ember sparks are injected by the JS.
   ------------------------------------------------------------------------- */
.qfa-root {
  /* Tokens scoped to the animation (originally a :root block in the export). */
  --bg-0: #0A101A; --bg-1: #111827; --bg-2: #1A2533;
  --line: rgba(137, 166, 199, 0.09); --line-strong: rgba(137, 166, 199, 0.16); --line-bright: rgba(137, 166, 199, 0.30);
  --steel: #4C6A92; --steel-soft: #89A6C7; --steel-deep: #3D5877;
  --blue: #6B89B2; --blue-soft: #9FB7D3; --blue-deep: #2A3D55; --violet: #A8B6C8;
  --success: #34D399;
  --text: #F8FAFC; --text-2: rgba(226, 232, 240, 0.74); --text-3: rgba(148, 163, 184, 0.62);
  --font-display: 'Satoshi', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  color: var(--text);
  /* Scale the whole scene (phone + chat + timeline + auras) down to ~88% so it
     reads more compact on desktop. The 561–1023px and ≤560px breakpoints in
     responsive.css set their own smaller scales and override this. */
  transform: scale(0.88);
  transform-origin: center;
}

.qfa-scene { flex: 1; position: relative; min-height: 640px; display: flex; align-items: center; justify-content: center; }

.qfa-aura { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(76,106,146,0.20), rgba(76,106,146,0.04) 50%, transparent 70%); filter: blur(28px); top: 50%; left: 58%; transform: translate(-50%,-50%); transition: background .8s; }
.qfa-aura.qfa-approved { background: radial-gradient(circle, rgba(52,211,153,0.18), rgba(52,211,153,0.04) 50%, transparent 70%); }
.qfa-aura-left { left: 32%; width: 440px; height: 440px; }

.qfa-embers { position: absolute; inset: 0; pointer-events: none; }
.qfa-ember { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: radial-gradient(circle, rgba(150,240,200,0.98), rgba(52,211,153,0) 68%); opacity: 0; filter: blur(0.3px); }
.qfa-ember::after { content: ''; position: absolute; left: 50%; top: 50%; width: 1.5px; height: 28px; transform: translate(-50%,-86%); background: linear-gradient(to top, rgba(52,211,153,0.55), transparent); border-radius: 2px; }
@keyframes qfa-rise { 0% { opacity: 0; transform: translateY(0) scale(0.6); } 12% { opacity: 0.9; } 70% { opacity: 0.6; } 100% { opacity: 0; transform: translateY(-150px) scale(0.25); } }

.qfa-phone { position: relative; width: 312px; height: 624px; background: #0C1422; border: 10px solid #1b2740; border-radius: 50px; box-shadow: 0 60px 120px -34px rgba(0,0,0,0.9), 0 0 0 1px rgba(137,166,199,0.08); overflow: hidden; z-index: 3; opacity: 0; transform: translateY(30px) scale(0.96); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.qfa-phone.qfa-in { opacity: 1; transform: translateY(0) scale(1); }
.qfa-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 120px; height: 28px; background: #1b2740; border-radius: 0 0 16px 16px; z-index: 6; }
.qfa-scr { position: absolute; inset: 0; padding: 46px 22px 26px; display: flex; flex-direction: column; }
.qfa-scr-tag { font-family: var(--font-mono); font-size: 12px; color: var(--steel-soft); letter-spacing: 0.08em; }
.qfa-scr-row { display: flex; align-items: center; justify-content: space-between; margin-top: 5px; }
.qfa-scr-ttl { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; }
.qfa-pstatus { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; transition: all .35s; }
.qfa-pstatus.qfa-sent { color: var(--blue-soft); background: rgba(107,137,178,0.16); border: 1px solid rgba(107,137,178,0.34); }
.qfa-pstatus.qfa-ok { color: var(--success); background: rgba(52,211,153,0.18); border: 1px solid rgba(52,211,153,0.42); }
.qfa-scr-card { margin-top: 20px; background: rgba(76,106,146,0.07); border: 1px solid var(--line-strong); border-radius: 16px; padding: 18px; }
.qfa-pitem { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateX(12px); transition: all .45s; }
.qfa-pitem.qfa-in { opacity: 1; transform: translateX(0); }
.qfa-pitem .qfa-d { font-size: 13px; color: var(--text); font-weight: 500; }
.qfa-pitem .qfa-a { font-family: var(--font-mono); font-size: 13px; color: var(--text-2); }
.qfa-ptotal { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; opacity: 0; transform: translateY(8px); transition: all .5s; }
.qfa-ptotal.qfa-in { opacity: 1; transform: translateY(0); }
.qfa-ptotal .qfa-l { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.qfa-ptotal .qfa-v { font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -0.03em; background: linear-gradient(108deg, var(--steel), var(--steel-soft), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.qfa-pbtn { position: relative; margin-top: auto; text-align: center; padding: 17px; border-radius: 16px; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 16px; box-shadow: 0 12px 28px rgba(61,88,119,0.45); overflow: hidden; transition: transform .18s, background .4s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.qfa-pbtn.qfa-pressed { transform: scale(0.95); }
.qfa-pbtn.qfa-ok { background: linear-gradient(135deg, #2faa78, #1f7a57); box-shadow: 0 12px 28px rgba(52,211,153,0.4); }
.qfa-pbtn svg { width: 18px; height: 18px; }
.qfa-ripple { position: absolute; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,0.5); left: 50%; top: 50%; transform: translate(-50%,-50%) scale(0); opacity: 0; }
.qfa-ripple.qfa-go { animation: qfa-rip .6s ease-out; }
@keyframes qfa-rip { 0% { transform: translate(-50%,-50%) scale(0); opacity: .7; } 100% { transform: translate(-50%,-50%) scale(16); opacity: 0; } }
.qfa-tap { position: absolute; width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.85); left: 50%; bottom: 54px; transform: translateX(-50%) scale(0.4); opacity: 0; z-index: 7; }
.qfa-tap.qfa-go { animation: qfa-tapAnim 1s ease-out; }
@keyframes qfa-tapAnim { 0% { opacity: 0; transform: translateX(-50%) scale(0.9); } 30% { opacity: 1; transform: translateX(-50%) scale(0.55); } 55% { opacity: 1; transform: translateX(-50%) scale(0.55); } 100% { opacity: 0; transform: translateX(-50%) scale(0.9); } }

.qfa-appr { position: absolute; top: 48px; right: -22px; width: 76px; height: 76px; border-radius: 50%; background: rgba(52,211,153,0.14); border: 1px solid rgba(52,211,153,0.42); display: grid; place-items: center; box-shadow: 0 0 40px rgba(52,211,153,0.3); z-index: 8; opacity: 0; transform: scale(0.3); transition: opacity .4s, transform .5s cubic-bezier(.2,1.4,.4,1); }
.qfa-appr.qfa-in { opacity: 1; transform: scale(1); }
.qfa-appr svg { width: 38px; height: 38px; }
.qfa-appr svg path { stroke: var(--success); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; fill: none; stroke-dasharray: 30; stroke-dashoffset: 30; }
.qfa-appr.qfa-in svg path { animation: qfa-draw .5s .15s forwards; }
@keyframes qfa-draw { to { stroke-dashoffset: 0; } }

.qfa-chat { position: absolute; top: 120px; left: -10px; width: 280px; display: flex; flex-direction: column; gap: 11px; z-index: 5; }
.qfa-bub { max-width: 90%; padding: 13px 16px; border-radius: 17px; font-size: 14px; line-height: 1.42; opacity: 0; transform: translateY(14px) scale(0.96); transition: opacity .4s, transform .4s cubic-bezier(.2,.8,.2,1); box-shadow: 0 14px 34px -14px rgba(0,0,0,0.6); }
.qfa-bub.qfa-in { opacity: 1; transform: translateY(0) scale(1); }
.qfa-bub.qfa-me { align-self: flex-start; background: linear-gradient(135deg, var(--blue-deep), var(--steel-deep)); border-bottom-left-radius: 5px; color: #eef3fb; }
.qfa-bub.qfa-me .qfa-meta { display: flex; gap: 6px; align-items: center; justify-content: flex-end; margin-top: 7px; font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.55); }
.qfa-bub.qfa-me .qfa-meta .qfa-ck { color: var(--steel-soft); font-weight: 700; }
.qfa-bub.qfa-ok { align-self: flex-start; background: rgba(52,211,153,0.16); border: 1px solid rgba(52,211,153,0.42); color: #c8f5e3; font-weight: 600; border-bottom-left-radius: 5px; }
.qfa-typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 14px 16px; border-radius: 17px; background: linear-gradient(135deg, var(--blue-deep), var(--steel-deep)); border-bottom-left-radius: 5px; opacity: 0; transition: opacity .3s; }
.qfa-typing.qfa-in { opacity: 1; }
.qfa-typing span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.6); animation: qfa-td 1.1s infinite; }
.qfa-typing span:nth-child(2) { animation-delay: .18s; }
.qfa-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes qfa-td { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

/* Status history timeline (Borrador → Enviado → Aceptado), to the right of the phone. */
/* Anchored relative to the centred phone (50% = phone centre) rather than to the
   scene's right edge, so there's always a clear gap between the phone and the
   timeline regardless of how wide the scene gets. Phone half-width is 156px;
   +200px leaves a ~44px gap and pushes the card into the empty space on the right. */
.qfa-history { position: absolute; left: calc(50% + 200px); right: auto; top: 50%; transform: translateY(-50%); width: 238px; z-index: 6; opacity: 0; transition: opacity .6s; }
.qfa-history.qfa-in { opacity: 1; }
.qfa-history-ttl { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel-soft); margin: 0 0 12px 4px; }
.qfa-hist-card { position: relative; background: rgba(10,16,26,0.74); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line-strong); border-radius: 18px; padding: 16px 16px 8px; box-shadow: 0 24px 54px -20px rgba(0,0,0,0.75); }
.qfa-hist-line { position: absolute; left: 20px; top: 34px; width: 2px; height: 0; border-radius: 2px; background: linear-gradient(to bottom, var(--steel-deep), var(--blue), var(--success)); opacity: 0.55; transition: height 2.6s cubic-bezier(.4,0,.2,1); }
.qfa-history.qfa-in .qfa-hist-line { height: 118px; }
.qfa-hrow { position: relative; display: flex; gap: 13px; align-items: flex-start; padding: 8px 0; opacity: 0; transform: translateX(12px); transition: opacity .5s, transform .5s cubic-bezier(.2,.8,.2,1); }
.qfa-hrow.qfa-in { opacity: 1; transform: translateX(0); }
.qfa-hdot { flex: 0 0 auto; width: 11px; height: 11px; border-radius: 50%; margin-top: 3px; background: var(--steel); box-shadow: 0 0 0 4px rgba(11,18,30,0.95); }
.qfa-hdot.qfa-sent { background: var(--blue-soft); }
.qfa-hdot.qfa-ok { background: var(--success); box-shadow: 0 0 0 4px rgba(11,18,30,0.95), 0 0 18px rgba(52,211,153,0.65); }
.qfa-hmeta { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.qfa-hchip { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; font-family: var(--font-display); font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; color: var(--text-2); background: rgba(137,166,199,0.1); border: 1px solid var(--line-strong); }
.qfa-hchip i { width: 6px; height: 6px; border-radius: 50%; background: var(--steel-soft); }
.qfa-hchip.qfa-sent { color: var(--blue-soft); background: rgba(107,137,178,0.14); border-color: rgba(107,137,178,0.3); }
.qfa-hchip.qfa-sent i { background: var(--blue-soft); }
.qfa-hchip.qfa-ok { color: var(--success); background: rgba(52,211,153,0.14); border-color: rgba(52,211,153,0.42); }
.qfa-hchip.qfa-ok i { background: var(--success); box-shadow: 0 0 10px rgba(52,211,153,0.7); }
.qfa-hwhen { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); padding-left: 2px; letter-spacing: 0.01em; }
.qfa-hactor { color: var(--steel-soft); font-weight: 600; }
.qfa-hactor.qfa-client { color: var(--blue-soft); }
.qfa-hrow.qfa-pop.qfa-in .qfa-hchip.qfa-ok { animation: qfa-okpop .55s cubic-bezier(.2,1.4,.4,1); }
@keyframes qfa-okpop { 0% { transform: scale(0.7); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }

/* Accessibility: with reduced motion the JS renders the finished composition
   once (see hero.js) and skips the loop. This belt-and-suspenders block kills
   the remaining looping decorations (sparks, typing dots) and any transitions. */
@media (prefers-reduced-motion: reduce) {
  .qfa-root *, .qfa-root *::before, .qfa-root *::after { animation: none !important; transition: none !important; }
  .qfa-ember, .qfa-typing { display: none !important; }
  .qfa-phone, .qfa-pitem, .qfa-ptotal, .qfa-bub, .qfa-appr, .qfa-history, .qfa-hrow { opacity: 1 !important; transform: none !important; }
  .qfa-history .qfa-hist-line { height: 118px !important; }
}

/* ===== FEATURES (qfc — bento card grid) =====*/
.qfc-cards-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 215px 215px 195px;
  grid-template-areas:
    "pdf        pdf        dashboard"
    "discounts  publicLink dashboard"
    "alerts     alerts     multiuser";
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
}

.qfc-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 28px 26px;
  cursor: default;
  /* token gradient: dark → translucent navy, light → near-white surface */
  background: linear-gradient(150deg, var(--bg-card), var(--bg-card-2));
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

/* Top hairline highlight */
.qfc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 10%, var(--line-strong) 50%, transparent 90%);
  pointer-events: none;
}

.qfc-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-bright);
  box-shadow: var(--shadow-lg), 0 0 32px rgba(76, 106, 146, 0.12);
}

.qfc-card--pdf        { grid-area: pdf; }
.qfc-card--discounts  { grid-area: discounts; }
.qfc-card--dashboard  { grid-area: dashboard; }
.qfc-card--publicLink { grid-area: alerts; }
.qfc-card--alerts     { grid-area: publicLink; }
.qfc-card--multiuser  { grid-area: multiuser; }

.qfc-card__content {
  position: relative;
  z-index: 1;
  max-width: min(300px, 72%);
}

.qfc-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--text);
}

.qfc-card__desc {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-2);
  text-wrap: pretty;
}

.qfc-card__icon {
  position: absolute;
  bottom: -12%;
  right: -10%;
  width: 55%;
  color: var(--line-strong);
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

.qfc-card__icon--secondary {
  position: absolute;
  bottom: 35%;
  left: -8%;
  width: 33%;
  color: var(--line);
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

[data-theme="light"] .qfc-card__icon {
  color: var(--info-soft);
  color: color-mix(in srgb, var(--steel-soft) 20%, transparent);
}

[data-theme="light"] .qfc-card__icon--secondary {
  color: var(--info-soft);
  color: color-mix(in srgb, var(--steel-soft) 14%, transparent);
}
.qfc-card--publicLink .qfc-card__icon {
  width: auto;
  bottom: 6px;
  right: 22px;
}
.qfc-card--publicLink .qfc-card__icon svg {
  width: auto;
  height: 150px;
  display: block;
}
.qfc-card:hover .qfc-card__icon--secondary {
  transform: scale(1.05) translate(-2px, 2px);
}

/* ===== PRICING (qfp — namespaced, tuned to match BillingTrack) =====
   Variables are scoped to `.qfp` (never :root) so they can't leak into the rest
   of the landing. Dark is the default; the page's `[data-theme="light"]` on
   <html> overrides — same mechanism the rest of the page uses (script.js →
   applyTheme). Values mirror BillingTrack's tokens (surface #111827/#fff,
   page-border, page-accent, shadow-sm/glow, blue button gradient, muted
   secondary). Two QuoteForge-only tweaks are kept on purpose: gradient prices
   (--price-grad/--free-grad) and a per-row divider in the feature list. */
.qfp {
  --font-display: 'Satoshi', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* dark (default) — BillingTrack steel-blue palette */
  --steel: #4C6A92;
  --steel-soft: #89A6C7;
  --blue: #6B89B2;
  --blue-deep: #2A3D55;
  /* gradient prices (kept QuoteForge detail) */
  --price-grad: linear-gradient(108deg, var(--steel), var(--steel-soft) 50%, var(--blue));
  --free-grad: linear-gradient(108deg, #10b981, #34d399);

  --bg: #111827;                          /* page-surface — section + cards */
  --card-bg: #111827;                     /* same surface as BillingTrack cards */
  --card-border: rgba(148, 163, 184, .18);
  --card-border-accent: #89A6C7;          /* page-accent (hover + popular) */
  --card-glow: 0 0 0 1px rgba(76, 106, 146, .28), 0 0 28px rgba(76, 106, 146, .24);
  --shadow: 0 4px 12px rgba(2, 6, 23, .5);          /* shadow-sm */
  --name: #F8FAFC;                        /* page-text */
  --tagline: rgba(148, 163, 184, .65);    /* page-text-3 */
  --feature: rgba(226, 232, 240, .72);    /* page-text-2 */
  --per: rgba(148, 163, 184, .65);
  --check: #89A6C7;                       /* page-accent */
  --divider: rgba(137, 166, 199, .12);

  --btn-primary: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  --btn-primary-shadow: 0 8px 24px rgba(61, 88, 119, .30), inset 0 1px 0 rgba(255, 255, 255, .16);
  --btn-primary-hover-shadow: 0 12px 30px rgba(61, 88, 119, .45), inset 0 1px 0 rgba(255, 255, 255, .22);
  --btn-sec-bg: rgba(148, 163, 184, .18);
  --btn-sec-border: rgba(148, 163, 184, .18);
  --btn-sec-text: rgba(248, 250, 252, .62);
  --badge-bg: linear-gradient(135deg, var(--blue), var(--blue-deep));
  --badge-text: #fff;

  font-family: var(--font-body);
  background: var(--bg);
  color: var(--feature);
  transition: background .3s ease, color .3s ease;
  -webkit-font-smoothing: antialiased;
}

/* light override — same selector convention as the rest of the landing */
[data-theme="light"] .qfp {
  --steel: #3D5877;
  --steel-soft: #4C6A92;
  --blue: #6B89B2;
  --blue-deep: #2A3D55;

  --bg: #FFFFFF;
  --card-bg: #FFFFFF;
  --card-border: rgba(51, 65, 85, .14);
  --card-border-accent: #3D5877;
  --card-glow: 0 0 0 1px rgba(61, 88, 119, .24), 0 6px 22px rgba(61, 88, 119, .16);
  --shadow: 0 2px 8px rgba(17, 24, 39, .06);
  --name: #111827;
  --tagline: rgba(71, 85, 105, .76);
  --feature: rgba(17, 24, 39, .78);
  --per: rgba(71, 85, 105, .76);
  --check: #3D5877;
  --divider: #eef1f5;

  --btn-primary-shadow: 0 8px 22px rgba(107, 137, 178, .22), inset 0 1px 0 rgba(255, 255, 255, .30);
  --btn-primary-hover-shadow: 0 12px 28px rgba(107, 137, 178, .30), inset 0 1px 0 rgba(255, 255, 255, .34);
  --btn-sec-bg: rgba(148, 163, 184, .32);
  --btn-sec-border: rgba(148, 163, 184, .26);
  --btn-sec-text: rgba(17, 24, 39, .42);
}

/* layout — section padding-block 96px like BillingTrack */
/* max-width widened 1240 -> 1400 so all 4 (equal) grid tracks gain width and the
   longest plan tagline fits on one line on desktop; 4-col layout + gap unchanged */
.qfp-pricing { max-width: 1400px; margin: 0 auto; padding: 96px 32px; }
.qfp-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.qfp-kicker {
  display: inline-block; margin-bottom: 12px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--check);
}
.qfp-head h2 {
  margin: 0; font-family: var(--font-display);
  font-size: 32px; font-weight: 600; letter-spacing: -.02em; color: var(--name);
}
.qfp-head p { margin: 12px 0 0; color: var(--tagline); font-size: 18px; }

.qfp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: stretch; }

/* card — surface bg distinguished only by border + soft shadow (BillingTrack:
   --page-surface, --page-border, --radius-lg 12px, --shadow-sm, p-6 24px, min-h 435) */
.qfp-card {
  position: relative; display: flex; flex-direction: column;
  min-height: 435px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px; padding: 24px;
  box-shadow: var(--shadow);
  transition: box-shadow .25s ease, border-color .25s ease;
}
/* popular + hover: accent border + glow, no lift */
.qfp-card--popular,
.qfp-card:hover {
  border-color: var(--card-border-accent);
  box-shadow: var(--card-glow);
}

/* badge — blue gradient like BillingTrack (.bt-popular-badge + .bt-popular-wrap:
   top -18px, padding 6px 18px, 14px/700, radius full, no box-shadow) */
.qfp-badge {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  background: var(--badge-bg); color: var(--badge-text);
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  padding: 6px 18px; border-radius: 999px;
  white-space: nowrap;
}

/* card content typography (sizes/weights/colours mirror BillingTrack) */
.qfp-plan-name { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--name); letter-spacing: -.01em; }
.qfp-plan-tagline { margin-top: 6px; color: var(--tagline); font-size: 14px; line-height: 1.45; min-height: 40px; }
.qfp-price { margin-top: 14px; display: flex; align-items: baseline; gap: 5px; }
/* price — BillingTrack: text-2xl (24px) / font-semibold (600) / solid --page-text */
.qfp-price-num {
  font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1;
  color: var(--name);
}
/* free "Gratis" keeps the green accent (documented in CLAUDE.md colour palette) */
.qfp-price-num--free { background: var(--free-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.qfp-price-per { color: var(--per); font-size: 14px; font-weight: 500; }

/* features — BillingTrack: ul space-y-3 (12px row rhythm) + mb-8 (32px); rows
   gap-2 (8px), text-sm (14px), --page-text-2; svg w-4/h-4 (16px), mt-0.5 (2px) */
.qfp-features { list-style: none; margin: 24px 0 32px; padding: 0; flex: 1; }
.qfp-features li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 14px; line-height: 1.4; color: var(--feature);
}
.qfp-features li + li { margin-top: 12px; }
.qfp-features li svg { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 2px; color: var(--check); }

/* buttons — rendered as <a> (keep the register link); flex centring fills the
   anchor like BillingTrack's btn-md. */
.qfp-btn {
  margin-top: auto; display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 44px; padding: 0 18px; border-radius: 12px; cursor: pointer;
  text-decoration: none;
  font-family: var(--font-display); font-size: 14px; font-weight: 500; letter-spacing: -.01em;
  border: 1px solid transparent;
  transition: transform .15s, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.qfp-btn--primary { background: var(--btn-primary); color: #fff; box-shadow: var(--btn-primary-shadow); }
.qfp-btn--primary:hover { transform: translateY(-1px); box-shadow: var(--btn-primary-hover-shadow); }
.qfp-btn--secondary { background: var(--btn-sec-bg); color: var(--btn-sec-text); border-color: var(--btn-sec-border); }
/* BillingTrack behaviour: the muted secondary CTA flips to the blue gradient
   when its card is hovered (not just the button). */
.qfp-card:hover .qfp-btn--secondary {
  background: var(--btn-primary); color: #fff;
  border-color: transparent; box-shadow: var(--btn-primary-shadow);
}
.qfp-btn--secondary:hover { transform: translateY(-1px); box-shadow: var(--btn-primary-hover-shadow); }

/* disabled / unavailable feature rows — BillingTrack (.bt-pricing-disabled-feature
   color rgba(148,163,184,.28); .bt-pricing-disabled-icon color rgba(148,163,184,.22)).
   QuoteForge's disabled <li> has no icon element, so the "−" is drawn with ::before;
   it inherits the row's flex + 8px gap. Scoped under `.qfp-features li` to beat the
   base row colour. Same rgba in both themes, matching BillingTrack. */
.qfp-features li.qfp-feature--disabled { color: rgba(148, 163, 184, 0.28); }
.qfp-features li.qfp-feature--disabled::before {
  content: '\2212';           /* U+2212 minus sign, like BillingTrack's icon */
  flex: 0 0 auto;
  color: rgba(148, 163, 184, 0.22);
}

/* ===== SECTION HEADER ===== */
.bt-section-header {
  max-width: 720px;
  margin: 0 auto var(--space-7);
  text-align: center;
}
.bt-section-header .bt-section-title { margin-bottom: var(--space-4); }
.bt-section-header .bt-section-subtitle { margin-bottom: 0; }

/* ===== DECISION BANNER ===== */
.bt-decision-section {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-9);
  background:
    radial-gradient(circle at center, rgba(76, 106, 146, 0.12), transparent 58%),
    var(--bg-0);
}
.bt-decision-content {
  max-width: 980px;
  margin-inline: auto;
  text-align: center;
}
.bt-decision-pill { margin-bottom: var(--space-5); }
.bt-decision-title {
  max-width: 980px;
  margin: 0 auto var(--space-5);
  font-size: clamp(44px, 5.4vw, 72px);
  /* inherit (= 400) like BillingTrack; overrides the .bt-section-title 600 this h2 also carries */
  font-weight: inherit;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.bt-decision-description {
  max-width: 720px;
  margin-inline: auto;
  color: var(--text-2);
  font-size: 20px;
  line-height: 1.6;
}
.bt-decision-divider {
  width: 48px;
  height: 2px;
  margin: var(--space-7) auto var(--space-5);
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--steel), var(--steel-soft));
  box-shadow: var(--shadow-glow);
}
.bt-decision-points {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  color: var(--text-2);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}
.bt-decision-points .dot {
  width: 4px; height: 4px;
  border-radius: var(--radius-full);
  background: var(--steel);
  opacity: 0.75;
}

/* ===== CTA FINAL ===== */
.cta-section {
  padding-block: var(--space-9);
  /* Solid fill so the page's fixed background grid doesn't show behind the
     card. The card keeps its own grid (see .cta-panel::before). */
  background: var(--bg-0);
}
.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 88px) clamp(24px, 5vw, 64px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(circle at top, rgba(107, 137, 178, 0.12), transparent 58%),
    var(--bg-1);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-panel::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.3;
  pointer-events: none;
}
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel .pill { margin-bottom: var(--space-5); }
.cta-title {
  max-width: 920px;
  margin-inline: auto;
  margin-bottom: var(--space-5);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-family: var(--font-display);
  /* inherit (= 400) like BillingTrack; overrides the .bt-section-title 600 this h2 also carries */
  font-weight: inherit;
}
.cta-description {
  max-width: 760px;
  margin-inline: auto;
  font-size: 20px;
  line-height: 1.7;
  color: var(--text-2);
}
.cta-section p.bt-section-subtitle { margin-top: var(--space-4); }
.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

/* ===== FOOTER (structure/styles ported from BillingTrack) ===== */
.footer {
  border-top: 1px solid var(--line-strong);
  /* Solid (opaque) background: the body has a fixed grid pattern that would
     otherwise show through a translucent footer. Opaque = no grid in the footer. */
  background: #081024;
  padding-block: var(--space-8) var(--space-5);
  /* margin-top: var(--space-9); */
}
[data-theme="light"] .footer { background: #F8FAFC; }

/* Footer inner container — self-contained (no longer shares `.bt-container` in
   the markup). Same desktop treatment as the navbar: 85% wide, centered, no
   horizontal padding. Restored to full-width + padding at <=1024px / <=768px
   in responsive.css. */
.bt-footer-container {
  width: 85%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

.bt-footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-6);
}
.bt-footer-brand { max-width: 360px; }
.bt-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.bt-footer-brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.bt-footer-brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.bt-footer-tagline {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
}
.bt-footer-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.bt-footer-column h3 {
  margin: 0 0 var(--space-2);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bt-footer-column a {
  color: var(--text-2);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.15s ease;
}
.bt-footer-column a:hover { color: var(--text); }
.bt-footer-bottom { padding-top: var(--space-2); }
.bt-footer-bottom p {
  margin: 0;
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.5;
}

/* Business pricing card: no fixed price, so the price/period row is hidden
   (the i18n price + period keys are empty for Business in every locale). */
.qfp-business-price { display: none; }

/* Logo: theme switching */
.qf-logo { width: auto; 
  /* height: 45px; */
 }
.qf-logo-dark  { display: none; }
[data-theme="dark"] .qf-logo-light { display: none; }
[data-theme="dark"] .qf-logo-dark  { display: block; }
