/* ============================================================
   sections.css — AB Agency page sections
   Navigation, hero, social proof, how-it-works, pricing tiers,
   site footer, and the floating audit bubble CTA.
   ============================================================ */

/* ── NAV ── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 0.5px solid var(--border);
  position: relative;
  z-index: 10;
  background: var(--white);
}

.logo {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--brand);
}

.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

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

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 100px;
  border: 0.5px solid var(--brand);
  background: transparent;
  color: var(--brand);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.nav-cta:hover {
  background: var(--brand);
  color: var(--white);
}

/* ── HERO ── */
.hero {
  padding: 90px 40px 70px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 22px;
}

.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 52px;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--brand);
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-light);
  font-weight: 300;
  margin-bottom: 36px;
  max-width: 440px;
}

/* ── SINGLE COMBINED CTA ── */
.cta-combined {
  display: flex;
  align-items: stretch;
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  max-width: 460px;
  transition: box-shadow 0.3s;
}

.cta-combined:hover { border-color: var(--accent); }

.cta-input-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 16px;
}

.cta-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 4px;
}

.cta-input {
  border: none;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--brand);
  font-weight: 400;
  width: 100%;
  outline: none;
  padding: 0;
}

.cta-input::placeholder { color: #b0bac8; }

.cta-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: var(--white);
  border: none;
  padding: 0 22px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.cta-btn:hover { background: var(--brand-mid); }

.cta-btn .arrow {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}

.cta-pills {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.cta-pill {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 5px;
}

.cta-pill::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── HERO VISUAL SCORE CARDS ── */
.hero-visual {
  position: relative;
  height: 400px;
}

.score-card {
  position: absolute;
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  width: 240px;
}

.score-card.main {
  top: 20px;
  right: 0;
  padding: 24px 28px;
  width: 260px;
}

.score-card.secondary {
  bottom: 40px;
  left: 0;
  width: 220px;
}

.score-card.tertiary {
  top: 160px;
  left: 20px;
  width: 190px;
  padding: 14px 18px;
}

.score-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 8px;
}

.score-num {
  font-family: 'DM Serif Display', serif;
  font-size: 42px;
  line-height: 1;
  color: var(--brand);
  margin-bottom: 4px;
}

.score-num span {
  font-size: 16px;
  color: var(--text-light);
  font-family: 'DM Sans', sans-serif;
}

.score-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 100px;
  background: #fff3e0;
  color: #e65100;
  margin-bottom: 14px;
}

.score-badge.good {
  background: var(--accent-dim);
  color: #0b7a5a;
}

.score-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}

.score-bar-label {
  font-size: 11px;
  color: var(--text-light);
  width: 50px;
  flex-shrink: 0;
}

.score-bar-track {
  flex: 1;
  height: 4px;
  background: #eef0f4;
  border-radius: 100px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 100px;
  background: var(--brand);
}

.score-bar-fill.warn { background: #f59e0b; }
.score-bar-fill.danger { background: #ef4444; }
.score-bar-fill.good { background: var(--accent); }

/* Static demo widths for hero score bars */
.score-bar-fill--32 { width: 32%; }
.score-bar-fill--54 { width: 54%; }
.score-bar-fill--61 { width: 61%; }
.score-bar-fill--78 { width: 78%; }

.score-bar-val {
  font-size: 10px;
  font-weight: 500;
  color: var(--brand);
  width: 22px;
  text-align: right;
  flex-shrink: 0;
}

/* Hero card: matched plan tier info */
.tier-name {
  font-size: 18px;
  font-weight: 500;
  color: var(--brand);
  margin-bottom: 2px;
}

.tier-price {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.tier-match {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Hero card: recommended action text */
.action-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--brand);
  margin-bottom: 6px;
}

.action-detail {
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.6;
  font-weight: 300;
}

/* Step indicator dots on hero tertiary card */
.step-indicator {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.step-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border);
}

.step-dot.active { background: var(--accent); }

/* ── SOCIAL PROOF BAR ── */
.social-bar {
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  padding: 18px 40px;
  display: flex;
  align-items: center;
  gap: 40px;
  overflow: hidden;
}

.social-item {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.social-num {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--brand);
}

.social-desc {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.4;
}

.social-divider {
  width: 0.5px;
  height: 30px;
  background: var(--border);
  flex-shrink: 0;
}

.social-trust-text {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 300;
  flex: 1;
  text-align: right;
}

/* ── HOW IT WORKS ── */
.section {
  padding: 80px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: 38px;
  letter-spacing: -1px;
  color: var(--brand);
  margin-bottom: 14px;
  line-height: 1.15;
}

.section-title--flush {
  margin-bottom: 0;
}

.section-sub {
  font-size: 15px;
  color: var(--text-light);
  font-weight: 300;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 52px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.step-card {
  background: var(--white);
  padding: 32px 28px;
  position: relative;
}

.step-card.bridged {
  background: var(--accent-dim2);
  border-left: 2px solid var(--accent);
}

.step-num {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 20px;
}

.step-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--brand);
}

.step-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-icon.accent-icon {
  background: var(--accent-dim);
  color: var(--accent);
}

.step-title {
  font-weight: 500;
  font-size: 15px;
  color: var(--brand);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.65;
  font-weight: 300;
}

.bridge-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 8px;
  border-radius: 100px;
}

/* ── SERVICE TIERS / PRICING ── */
.services-section {
  background: var(--surface);
  padding: 80px 40px;
}

.services-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.tier-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}

.tier-card.featured {
  border: 1.5px solid var(--brand);
}

.tier-tag {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 20px;
  display: inline-block;
  background: var(--surface);
  color: var(--text-light);
}

.tier-tag.pop {
  background: var(--brand);
  color: var(--white);
}

.tier-card-name {
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  color: var(--brand);
  margin-bottom: 4px;
}

.tier-card-price {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.tier-card-price strong {
  font-size: 22px;
  font-weight: 500;
  color: var(--brand);
  font-family: 'DM Serif Display', serif;
}

.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 24px;
}

.tier-features li {
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 300;
}

.tier-features li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.tier-cta-btn {
  width: 100%;
  padding: 11px;
  border-radius: var(--radius-sm);
  border: 0.5px solid var(--border);
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--brand);
  cursor: pointer;
  transition: all 0.2s;
}

.tier-cta-btn:hover {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
}

.tier-cta-btn.primary-btn {
  background: var(--brand);
  color: var(--white);
  border-color: var(--brand);
}

.tier-cta-btn.primary-btn:hover { background: var(--brand-mid); }

/* ── FLOATING AUDIT BUBBLE ── */
.float-bubble {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.bubble-tooltip {
  background: var(--brand);
  color: var(--white);
  font-size: 12px;
  font-weight: 400;
  padding: 8px 14px;
  border-radius: 10px;
  border-bottom-right-radius: 2px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.25s;
  pointer-events: none;
  line-height: 1.5;
}

.bubble-tooltip strong {
  display: block;
  font-weight: 500;
  font-size: 13px;
  margin-bottom: 1px;
}

.float-bubble:hover .bubble-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.bubble-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--brand);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.2s;
  box-shadow: 0 4px 20px rgba(15, 26, 46, 0.25);
}

.bubble-btn:hover { transform: scale(1.06); }

.bubble-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.bubble-icon-bar {
  height: 2px;
  background: var(--white);
  border-radius: 100px;
  transition: width 0.3s;
}

.bubble-icon-bar--lg { width: 18px; }
.bubble-icon-bar--md { width: 12px; }
.bubble-icon-bar--sm { width: 16px; }

.bubble-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--white);
  animation: pulse 2s infinite;
}

/* ── SITE FOOTER ── */
.site-footer {
  border-top: 0.5px solid var(--border);
  background: var(--white);
  padding: 56px 40px 36px;
  /* Space for fixed audit bubble on smaller viewports */
  padding-bottom: 100px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}

.footer-brand {
  flex: 1;
  min-width: 0;
}

.footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  letter-spacing: -0.5px;
  color: var(--brand);
  margin-bottom: 8px;
}

.footer-logo span {
  color: var(--accent);
}

.footer-slogan {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-light);
  font-weight: 300;
  max-width: 280px;
}

.footer-connect {
  flex-shrink: 0;
}

.footer-heading {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.footer-social {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 400;
  color: var(--brand);
  text-decoration: none;
  padding: 8px 14px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.footer-social-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.footer-social-link:hover {
  border-color: var(--accent);
  background: var(--accent-dim2);
  color: var(--brand);
}

/* Inert until backend provides a URL */
.footer-social-link.is-pending {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.footer-bottom {
  max-width: 1100px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 0.5px solid var(--border);
}

.footer-copy {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 300;
}
