:root {
  --bg: #0b0d12;
  --bg-elevated: #11151d;
  --surface: #151a24;
  --surface-hover: #1a2130;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f5f8;
  --text-muted: #a3adbd;
  --text-subtle: #7c8799;

  /* Overridden dynamically by CONFIG.accentColor */
  --accent: #f59e0b;
  --accent-contrast: #0b0d12;
  --accent-soft: rgba(245, 158, 11, 0.13);
  --accent-border: rgba(245, 158, 11, 0.42);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --container-max: 1120px;
  --transition: 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 10px 16px;
  font-weight: 700;
  z-index: 1000;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.container--narrow {
  max-width: 780px;
}

/* 1. Thin Sample Banner */
.sample-banner {
  background: var(--accent-soft);
  border-bottom: 1px solid var(--accent-border);
  padding: 9px 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.sample-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.sample-banner__inner p {
  margin: 0;
}

.sample-banner__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(11, 13, 18, 0.88);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 10px 0;
  min-height: 58px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand__mark {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--accent);
  flex-shrink: 0;
}

.brand__name {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.brand__niche {
  display: none;
  color: var(--text-subtle);
  font-size: 0.85rem;
  border-left: 1px solid var(--border);
  padding-left: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.header-nav a {
  text-decoration: none;
  transition: color var(--transition);
}

.header-nav a:hover {
  color: var(--text);
}

/* 2. Hero */
.hero {
  padding: 64px 0 56px;
  background: radial-gradient(700px 320px at 50% -40px, var(--accent-soft), transparent 72%);
}

.hero__inner {
  max-width: 760px;
}

.hero__eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero__title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5.4vw, 3.35rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero__subhead {
  margin: 0 0 28px;
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 62ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--transition), background-color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-contrast);
}

.btn--primary:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -12px var(--accent);
}

.btn--secondary {
  background: var(--surface-hover);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn--secondary:hover {
  border-color: var(--accent-border);
  background: #20283a;
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.btn--ghost:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface);
}

.btn--full {
  width: 100%;
}

/* Trust Row */
.trust-row {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-row svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

/* Sections */
.section {
  padding: 64px 0;
  scroll-margin-top: 80px;
}

.section--tinted {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__head {
  margin-bottom: 32px;
}

.section__head--center {
  text-align: center;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.section__kicker {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
}

.section__title {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.section__lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

/* 3. What's Inside Grid */
.files-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.file-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: transform var(--transition), border-color var(--transition), background-color var(--transition);
}

.file-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.file-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.file-card__icon svg {
  width: 20px;
  height: 20px;
}

.file-card__title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.file-card__desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* 4. Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}

.pricing-grid--two {
  max-width: 780px;
  margin: 0 auto;
}

.tier-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition), border-color var(--transition);
}

.tier-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.tier-card--featured {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 55%), var(--surface-hover);
  border: 1.5px solid var(--accent-border);
  box-shadow: 0 18px 40px -24px var(--accent);
}

.tier-card__badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 4px 10px;
  border-radius: 999px;
}

.tier-card__name {
  margin: 4px 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
}

.tier-card__price {
  margin: 0 0 10px;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.tier-card__desc {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.tier-card__list {
  list-style: none;
  margin: 0 0 24px;
  padding: 18px 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.tier-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.tier-card__list svg {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--accent);
  flex-shrink: 0;
}

/* 5. How It Works */
.steps-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.step-card__num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.875rem;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.step-card__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
}

.step-card__desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* 6. FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item[data-open="true"] {
  border-color: var(--border-strong);
}

.faq-trigger {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 18px 20px;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.faq-trigger:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-chevron {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item[data-open="true"] .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-panel {
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.faq-panel[hidden] {
  display: none;
}

.faq-panel p {
  margin: 0;
}

/* 7. Footer */
.site-footer {
  padding: 36px 0 48px;
  text-align: center;
}

.site-footer__brand {
  margin: 0 0 6px;
  font-weight: 600;
  font-size: 0.92rem;
}

.site-footer__disclaimer {
  margin: 0;
  color: var(--text-subtle);
  font-size: 0.84rem;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 10, 0.78);
  backdrop-filter: blur(5px);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 100;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.modal__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 12px;
}

.modal__title {
  margin: 0 0 6px;
  font-size: 1.3rem;
  font-weight: 700;
}

.modal__selection {
  margin: 0 0 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.modal__message {
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.modal__actions {
  display: flex;
  justify-content: flex-end;
}

/* Responsive Breakpoints */
@media (min-width: 480px) {
  .header-nav {
    display: flex;
  }
}

@media (min-width: 640px) {
  .brand__niche {
    display: inline-block;
  }

  .files-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .hero {
    padding: 88px 0 72px;
  }

  .section {
    padding: 80px 0;
  }

  .files-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }

  .pricing-grid.pricing-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tier-card--featured {
    transform: translateY(-4px);
  }

  .tier-card--featured:hover {
    transform: translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
