/* site.css - section + component styles. Depends on tokens.css + base.css. */

/* =============================================
   BUTTONS (shared across nav + sections)
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: var(--fw-semibold);
  line-height: 1;
  white-space: nowrap;
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.btn--ghost {
  border: 1.5px solid rgba(255,255,255,0.35);
  color: var(--white);
}
.btn--ghost:hover {
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.btn--gold {
  background: var(--gold);
  color: var(--navy-deepest);
}
.btn--gold:hover {
  background: var(--gold-bright);
  color: var(--navy-deepest);
  box-shadow: 0 4px 18px rgba(201,168,64,0.4);
}

/* =============================================
   NAV
   ============================================= */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--navy-deepest);
  transition: background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              backdrop-filter var(--dur) var(--ease);
}

.site-nav--scrolled {
  background: rgba(7, 12, 30, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 96px;
  width: 140px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex: 1;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: var(--fw-medium);
  color: rgba(255,255,255,0.8);
  transition: color var(--dur) var(--ease);
}

.nav-links a:hover {
  color: var(--white);
}

/* Login lives in the nav-ctas button on desktop; the in-menu copy is
   mobile-only (the ghost button is dropped < 768px to avoid crowding). */
.nav-links-login {
  display: none;
}

.nav-ctas {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
}

/* Hamburger - hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease),
              opacity var(--dur) var(--ease);
  transform-origin: center;
}

.nav-hamburger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger--open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   MOBILE NAV (< 768px)
   ============================================= */
@media (max-width: 767px) {
  .nav-inner {
    gap: var(--space-4);
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--navy-deepest);
    padding: var(--space-5) clamp(1.25rem, 4vw, 2.5rem);
    gap: var(--space-4);
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 12px 30px rgba(7,12,30,0.45);
  }

  .nav-links--open {
    display: flex;
  }

  .nav-links a {
    font-size: 1rem;
  }

  /* Reveal the in-menu Log In link and drop the ghost button to declutter */
  .nav-links-login {
    display: block;
    color: var(--gold);
    font-weight: var(--fw-semibold);
  }

  .nav-ctas .btn--ghost {
    display: none;
  }

  .nav-ctas {
    gap: var(--space-2);
  }

  .btn {
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
  }
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  padding-top: var(--section-y);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-7) var(--space-6);
  padding-bottom: var(--space-8);
}

.footer-col--brand .footer-logo img {
  height: 36px;
  width: auto;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  margin-top: var(--space-4);
  line-height: 1.55;
}

.footer-entity {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  margin-top: var(--space-3);
}

.footer-heading {
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--gold);
  margin-bottom: var(--space-4);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--dur) var(--ease);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-response {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  margin-top: var(--space-1);
}

.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-block: var(--space-5);
}

.footer-legal-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

.footer-legal-links {
  display: flex;
  gap: var(--space-5);
}

.footer-legal-links a {
  color: rgba(255,255,255,0.4);
  transition: color var(--dur) var(--ease);
}

.footer-legal-links a:hover {
  color: var(--white);
}

/* =============================================
   FOOTER RESPONSIVE
   ============================================= */
@media (max-width: 1023px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-col--brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 519px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-col--brand {
    grid-column: auto;
  }

  .footer-legal-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
}

/* =============================================
   HERO (P-2)
   ============================================= */
.hero {
  min-height: 115vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--gold);
  border: 1px solid rgba(201, 168, 64, 0.35);
  border-radius: var(--radius-pill);
  padding: 0.35rem 1rem;
  margin-bottom: var(--space-6);
}

.hero-h1 {
  font-size: var(--fs-hero);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--white);
  line-height: 1.08;
  margin-bottom: var(--space-5);
}

.hero-subhead {
  font-size: var(--fs-lead);
  color: rgba(255, 255, 255, 0.68);
  max-width: 560px;
  margin-bottom: var(--space-7);
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.btn--lg {
  padding: 0.75rem 1.875rem;
  font-size: 1rem;
}

.hero-trust {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

/* -- Dashboard mockup -- */
.hero-mockup {
  width: 100%;
  max-width: 900px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55),
              0 0 0 1px rgba(255, 255, 255, 0.07);
}

.mockup-chrome {
  background: #111827;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mockup-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.mockup-dots span {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dots span:nth-child(1) { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #febc2e; }
.mockup-dots span:nth-child(3) { background: #28c840; }

.mockup-url {
  flex: 1;
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.75rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  max-width: 280px;
  margin: 0 auto;
}

.mockup-body {
  background: var(--navy);
  display: flex;
  min-height: 360px;
}

.mockup-sidebar {
  width: 170px;
  flex-shrink: 0;
  background: var(--navy-deepest);
  padding: var(--space-5) var(--space-4);
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.mockup-logo-slot {
  height: 24px;
  background: rgba(201, 168, 64, 0.15);
  border-radius: 4px;
  margin-bottom: var(--space-6);
  width: 72%;
}

.mockup-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.mockup-nav-item {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  padding: 0.3rem var(--space-3);
  border-radius: 4px;
}

.mockup-nav-item--active {
  background: rgba(201, 168, 64, 0.12);
  color: var(--gold);
}

.mockup-nav-ai {
  margin-top: var(--space-4);
  color: rgba(201, 168, 64, 0.55);
}

.mockup-main {
  flex: 1;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  overflow: hidden;
  min-width: 0;
}

.mockup-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.mockup-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.mockup-stat-num {
  font-size: 1.05rem;
  font-weight: var(--fw-bold);
  color: var(--white);
  line-height: 1;
}

.mockup-stat-lbl {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.38);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mockup-panels {
  display: grid;
  grid-template-columns: 1fr 0.5fr;
  gap: var(--space-4);
  flex: 1;
}

.mockup-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
}

.mockup-panel-hd {
  font-size: 0.65rem;
  font-weight: var(--fw-semibold);
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: var(--space-4);
}

.mockup-kanban {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}

.mockup-k-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mockup-k-lbl {
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.28);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.mockup-k-card {
  height: 32px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  border-left: 2px solid rgba(255, 255, 255, 0.14);
}

.mockup-k-card--gold {
  background: rgba(201, 168, 64, 0.12);
  border-left-color: var(--gold);
}

.mockup-k-card--green {
  background: rgba(45, 201, 92, 0.1);
  border-left-color: #2dc95c;
}

.mockup-activity-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.mockup-act-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.mockup-act-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.mockup-act-dot--gold { background: var(--gold); }

.mockup-act-line {
  height: 8px;
  flex: 1;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 4px;
}

.mockup-act-line--short { max-width: 65%; }

@media (max-width: 767px) {
  .mockup-sidebar { display: none; }
  .mockup-stats-row { grid-template-columns: repeat(3, 1fr); }
  .mockup-stat:last-child { display: none; }
  .mockup-panels { grid-template-columns: 1fr; }
  .mockup-panel--activity { display: none; }
}

@media (max-width: 519px) {
  .hero-mockup { border-radius: var(--radius); }
  .mockup-body { min-height: 220px; }
  .mockup-stats-row { grid-template-columns: repeat(2, 1fr); }
  .mockup-stat:nth-child(3) { display: none; }
  .mockup-kanban { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================
   FEATURE STRIP (P-2)
   ============================================= */
.features-eyebrow {
  display: block;
  text-align: center;
  margin-bottom: var(--space-4);
}

.features-heading {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-h2);
  color: var(--text);
  text-align: center;
  margin-bottom: var(--space-3);
}

.features-subhead {
  font-size: 1.0625rem;
  color: var(--muted);
  text-align: center;
  max-width: 520px;
  margin: 0 auto var(--space-9);
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-7) var(--space-5);
}

.feature-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
}

.feature-icon {
  width: 44px;
  height: 44px;
  color: var(--gold);
  flex-shrink: 0;
}

.feature-name {
  font-size: 0.9375rem;
  font-weight: var(--fw-semibold);
  color: var(--text);
}

.feature-desc {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.55;
}

/* =============================================
   FEATURE DEEP-DIVE BLOCKS (P-3)
   ============================================= */
.fblock-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

/* Reverse: visual sits on the left, text on the right (desktop) */
.fblock--reverse .fblock-text { order: 2; }
.fblock--reverse .fblock-visual { order: 1; }

.fblock-h2 {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-h2);
  margin: var(--space-3) 0 var(--space-4);
}

.fblock-lead {
  font-size: var(--fs-lead);
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: var(--space-6);
}

.fblock--on-dark .fblock-h2 { color: var(--white); }
.fblock--on-dark .fblock-lead { color: rgba(255, 255, 255, 0.68); }

/* Feature check list (shared) */
.fcheck-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.fcheck {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.95rem;
  line-height: 1.5;
}

.fcheck svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gold);
}

.fblock--on-dark .fcheck { color: rgba(255, 255, 255, 0.85); }

/* Integration strip (CRM block) */
.integration-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}

.integration-label {
  font-size: var(--fs-label);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--muted);
}

.integration-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.integration-pill {
  font-size: 0.85rem;
  font-weight: var(--fw-semibold);
  color: var(--text);
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.95rem;
}

/* -- CRM kanban visual -- */
.crm-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow);
}

.crm-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.crm-col-hd {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.7rem;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--line);
}

.crm-col-total {
  font-size: 0.9rem;
  font-weight: var(--fw-bold);
  color: var(--text);
  letter-spacing: 0;
  text-transform: none;
}

.crm-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--muted);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  box-shadow: var(--shadow-sm);
}

.crm-card--gold { border-left-color: var(--gold); }
.crm-card--green { border-left-color: #2dc95c; }

.crm-card-title {
  font-size: 0.72rem;
  font-weight: var(--fw-semibold);
  color: var(--text);
  line-height: 1.2;
}

.crm-card-val {
  font-size: 0.72rem;
  color: var(--muted);
}

/* -- AI chat mockup -- */
.chat-mockup {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  box-shadow: var(--shadow-lg);
}

.chat-bubble {
  max-width: 82%;
  padding: 0.6rem 0.95rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  line-height: 1.45;
}

.chat-bubble--user {
  align-self: flex-end;
  background: var(--gold);
  color: var(--navy-deepest);
  font-weight: var(--fw-medium);
  border-bottom-right-radius: 4px;
}

.chat-bubble--ai {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border-bottom-left-radius: 4px;
}

.chat-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-2);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  padding: 0.55rem 0.6rem 0.55rem 1rem;
}

.chat-input-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

.chat-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-deepest);
  flex-shrink: 0;
}

.chat-send svg { width: 16px; height: 16px; }

/* -- Finances visual: invoice + proposal cards -- */
.fin-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.fin-doc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow: var(--shadow);
}

.fin-doc--proposal {
  margin-left: var(--space-7);
  margin-top: calc(var(--space-5) * -1);
  position: relative;
  z-index: 2;
}

.fin-doc-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.fin-doc-num {
  font-size: 0.85rem;
  font-weight: var(--fw-bold);
  color: var(--text);
}

.fin-badge {
  font-size: 0.65rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.6rem;
}

.fin-badge--paid { background: rgba(45, 201, 92, 0.14); color: #1a8a3e; }
.fin-badge--sent { background: rgba(201, 168, 64, 0.16); color: #8a6d12; }

.fin-doc-to {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: var(--space-4);
}

.fin-rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.fin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.fin-row-line {
  height: 8px;
  flex: 1;
  background: var(--line);
  border-radius: 4px;
  max-width: 60%;
}

.fin-row-line--short { max-width: 40%; }

.fin-row-amt {
  font-size: 0.78rem;
  color: var(--muted);
  flex-shrink: 0;
}

.fin-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: var(--fw-semibold);
  color: var(--text);
}

.fin-total-amt {
  font-size: 1rem;
  font-weight: var(--fw-bold);
}

.fin-sections {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.fin-sec {
  height: 10px;
  background: var(--line);
  border-radius: 4px;
}

.fin-sec--short { max-width: 55%; }

/* -- Deep-dive responsive -- */
@media (max-width: 767px) {
  .fblock-inner {
    grid-template-columns: 1fr;
    gap: var(--space-7);
  }

  /* Always show text before visual on mobile, regardless of desktop order */
  .fblock-text { order: 1 !important; }
  .fblock-visual { order: 2 !important; }

  .fin-doc--proposal {
    margin-left: var(--space-5);
  }
}

@media (max-width: 519px) {
  .crm-board {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4) var(--space-3);
  }

  .fin-doc--proposal {
    margin-left: 0;
  }

  .integration-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =============================================
   BUTTON VARIANTS (P-4: light-bg ghost + block)
   ============================================= */
.btn--ghost-dark {
  border: 1.5px solid var(--line);
  color: var(--text);
}
.btn--ghost-dark:hover {
  border-color: var(--text);
  color: var(--text);
  background: rgba(7, 12, 30, 0.04);
}

.btn--block {
  display: flex;
  width: 100%;
}

/* =============================================
   HOW IT WORKS (P-4)
   ============================================= */
.how-eyebrow {
  display: block;
  text-align: center;
  margin-bottom: var(--space-4);
}

.how-heading {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-h2);
  text-align: center;
  margin-bottom: var(--space-3);
}

.how-subhead {
  font-size: 1.0625rem;
  color: var(--muted);
  text-align: center;
  max-width: 520px;
  margin: 0 auto var(--space-9);
  line-height: 1.6;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
}

.how-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.how-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 1.4rem;
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-5);
}

.how-step-title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-3);
}

.how-step-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 767px) {
  .how-steps { grid-template-columns: 1fr; }
}

/* =============================================
   PRICING (P-4) - PLACEHOLDER TIERS
   ============================================= */
.pricing-eyebrow {
  display: block;
  text-align: center;
  margin-bottom: var(--space-4);
}

.pricing-heading {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-h2);
  text-align: center;
  margin-bottom: var(--space-4);
}

/* Unmistakable draft marker - removed once real numbers land */
.pricing-draft {
  display: block;
  max-width: 640px;
  margin: 0 auto var(--space-8);
  text-align: center;
  font-size: 0.8rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a4b00;
  background: repeating-linear-gradient(
    45deg,
    #fff4d6,
    #fff4d6 12px,
    #ffe9b0 12px,
    #ffe9b0 24px
  );
  border: 2px dashed #d98c00;
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  align-items: start;
}

.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-6);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.price-card--featured {
  border: 2px solid var(--gold);
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.price-popular {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.68rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy-deepest);
  background: var(--gold);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.9rem;
  white-space: nowrap;
}

.price-name {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-2);
}

.price-tagline {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: var(--space-5);
  min-height: 2.6em;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: var(--space-5);
}

.price-currency {
  font-size: 1.4rem;
  font-weight: var(--fw-bold);
  color: var(--text);
  align-self: flex-start;
  margin-top: 0.35rem;
}

.price-value {
  font-size: 3rem;
  font-weight: var(--fw-bold);
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}

.price-period {
  font-size: 0.95rem;
  color: var(--muted);
}

.price-custom {
  font-size: 2.4rem;
  font-weight: var(--fw-bold);
  color: var(--text);
  line-height: 1;
}

.price-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.price-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.45;
}

.price-feature svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gold);
}

.pricing-trial {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: var(--space-7);
}

@media (max-width: 1023px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Featured card spans full width on top row at tablet (1 + 2 layout) */
  .price-card--featured {
    order: -1;
    grid-column: 1 / -1;
  }
}

@media (max-width: 639px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .price-card--featured {
    grid-column: auto;
    order: 0;
  }
}

/* =============================================
   STATS BAND (P-5)
   ============================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
}

.stat-num {
  font-size: clamp(2.75rem, 6vw, 3.75rem);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
}

@media (max-width: 639px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-7) var(--space-5);
  }
}

/* =============================================
   FAQ ACCORDION (P-5)
   ============================================= */
.faq-inner {
  max-width: 720px;
}

.faq-eyebrow {
  display: block;
  text-align: center;
  margin-bottom: var(--space-4);
}

.faq-heading {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-h2);
  text-align: center;
  margin-bottom: var(--space-8);
}

.faq-list {
  display: flex;
  flex-direction: column;
}

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

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

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: var(--fw-semibold);
  color: var(--text);
  list-style: none;
}

/* Hide the native disclosure triangle (all engines) */
.faq-q::-webkit-details-marker { display: none; }
.faq-q::marker { content: ""; }

.faq-chevron {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--gold);
  transition: transform var(--dur) var(--ease);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

/* Explicitly collapse the answer when closed - do not rely on the UA
   details-collapse, which does not fire consistently across engines. */
.faq-item:not([open]) .faq-a {
  display: none;
}

.faq-a {
  padding: 0 0 var(--space-5);
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 60ch;
}

/* =============================================
   FINAL CTA (P-5)
   ============================================= */
.final-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.final-cta-heading {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-h2);
  color: var(--white);
  max-width: 640px;
  margin-bottom: var(--space-5);
}

.final-cta-sub {
  font-size: var(--fs-lead);
  color: rgba(255, 255, 255, 0.68);
  max-width: 540px;
  line-height: 1.65;
  margin-bottom: var(--space-7);
}

.final-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.final-cta-trust {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.38);
}
