/* ============================================================
   HGM homepage — full-width layout + flat theme controls
   2026-10-03. Homepage-only: linked from index.html after refined.css.
   Converts the fixed 1024px centered column into wide fluid sections
   (1360px content cap, centered) with clamp() gutters. All rules scoped
   under .page-home for specificity over the shared stylesheets (no !important).
   ============================================================ */

.page-home { --gutter: clamp(20px, 4vw, 64px); --content-max: 1360px; }

/* Prevent horizontal overflow from full-bleed bands (clip keeps sticky working) */
body.page-home { overflow-x: clip; }

/* ---------- Full-width section containers ---------- */
.page-home .home-hero,
.page-home .premise {
  max-width: var(--content-max);
  width: 100%;
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.page-home .home-hero { padding-top: 110px; }
.page-home .premise { padding-top: 100px; padding-bottom: 100px; }

.page-home .series-band__inner,
.page-home .console-band__inner,
.page-home .trust-strip__inner,
.page-home .contact-strip__inner {
  max-width: var(--content-max);
  width: 100%;
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.page-home .series-band__inner { padding-top: 88px; padding-bottom: 88px; }
.page-home .console-band__inner { padding-top: 100px; padding-bottom: 100px; }
.page-home .trust-strip__inner { padding-top: 0; padding-bottom: 0; }
.page-home .contact-strip__inner { padding-top: 88px; padding-bottom: 88px; }

/* Dark bands stay full-bleed (neutralize the old mobile side-margins) */
.page-home .console-section,
.page-home .contact-strip.ink-band { margin-left: 0; margin-right: 0; }

.page-home .audience-section,
.page-home .proof-section,
.page-home .faq-section,
.page-home .vault-section {
  max-width: var(--content-max);
  width: 100%;
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.page-home .audience-section,
.page-home .proof-section,
.page-home .faq-section { padding-top: 84px; padding-bottom: 84px; }
.page-home .vault-section { padding-top: 100px; padding-bottom: 100px; }

/* ---------- Full-width footer (content unchanged) ---------- */
.page-home .footer-main,
.page-home .footer-bottom {
  max-width: var(--content-max);
  width: 100%;
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.page-home .footer-main { padding-top: 56px; padding-bottom: 40px; }
.page-home .footer-bottom { padding-top: 22px; padding-bottom: 30px; }

/* Section intros span the row; prose keeps a readable measure */
.page-home .section-intro { max-width: none; margin: 0 0 44px; }
.page-home .premise p:not(.section-kicker),
.page-home .section-intro .lede,
.page-home .audience-card p,
.page-home .proof-section > p,
.page-home .faq-section > p,
.page-home .vault-section > p { max-width: 68ch; }

/* ---------- Responsive vertical rhythm ---------- */
@media (max-width: 900px) {
  .page-home .home-hero { padding-top: 72px; }
  .page-home .premise { padding-top: 64px; padding-bottom: 64px; }
  .page-home .series-band__inner,
  .page-home .console-band__inner,
  .page-home .contact-strip__inner,
  .page-home .audience-section,
  .page-home .proof-section,
  .page-home .faq-section,
  .page-home .vault-section { padding-top: 64px; padding-bottom: 64px; }
  /* keep the nav switcher from crowding the mobile topbar; theme stays
     available in the accessibility panel */
  .page-home .hgm-theme__wrap { display: none; }
}

/* ============================================================
   SOFT MODERN FLAT — theme controls + accessibility widget
   Flat surfaces, 1px borders, single soft shadows. No embossed
   dual-shadow neumorphism. Active states use fill/color change.
   All behavior (aria-pressed, keyboard, theme.js wiring) untouched.
   ============================================================ */

/* ---------- Nav switcher (injected by theme.js into .nav-actions) ---------- */
.page-home .hgm-theme {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
  box-shadow: var(--shadow-sm);
}
.page-home .hgm-theme button {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.page-home .hgm-theme button:hover { background: var(--soft); color: var(--ink); }
.page-home .hgm-theme button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
[data-theme="agentic"] .page-home .hgm-theme button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}
.page-home .hgm-theme button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Customize popover */
.page-home .hgm-theme__pop {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.page-home .hgm-theme__pop p { color: var(--muted); }
.page-home .hgm-theme__density button {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  box-shadow: none;
}
.page-home .hgm-theme__density button:hover { color: var(--ink); border-color: var(--faint); }
.page-home .hgm-theme__density button[aria-pressed="true"] {
  color: var(--accent-deep);
  border-color: var(--accent);
  background: var(--accent-wash);
}
.page-home .hgm-theme__swatches button:focus-visible,
.page-home .hgm-theme__density button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Accessibility floating tab ---------- */
.page-home .a11y-tab {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.page-home .a11y-tab:hover { box-shadow: var(--shadow-lg); }
.page-home .a11y-tab__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-wash);
  color: var(--accent-deep);
}
.page-home .a11y-tab > i[aria-hidden="true"]:empty { display: none; }
.page-home .a11y-tab[aria-expanded="true"] { border-color: var(--accent); }
.page-home .a11y-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Accessibility panel ---------- */
.page-home .a11y-panel {
  position: fixed;
  left: 20px;
  bottom: 86px;
  z-index: 120;
  width: min(330px, calc(100vw - 40px));
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 20px 20px;
  box-shadow: var(--shadow-lg);
}
.page-home .a11y-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.page-home .a11y-panel__head .footer-heading { margin: 0; }
.page-home .a11y-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  font-size: 13.5px;
  font-weight: 600;
}
/* Segmented controls: flat track, card-style active option */
.page-home .a11y-seg {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line-soft);
}
.page-home .a11y-seg button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.page-home .a11y-seg button:hover { color: var(--ink); }
.page-home .a11y-seg button[aria-pressed="true"] {
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
/* Toggle switches: flat track, bordered knob */
.page-home .a11y-switch {
  width: 54px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 3px;
  background: var(--soft);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.page-home .a11y-switch i {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, background 0.2s ease;
}
.page-home .a11y-switch.is-on { background: var(--accent); border-color: var(--accent); }
.page-home .a11y-switch.is-on i { transform: translateX(22px); background: #ffffff; border-color: transparent; }
.page-home .a11y-reset {
  margin-top: 8px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px;
  background: var(--soft);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}
.page-home .a11y-reset:hover { background: var(--line-soft); }
.page-home .a11y-reset:active { transform: translateY(1px); }
.page-home .a11y-seg button:focus-visible,
.page-home .a11y-switch:focus-visible,
.page-home .a11y-reset:focus-visible,
.page-home .a11y-panel .modal-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ==========================================================================
   Pipeline calculator (merged concept, 2026-10-03) — honest interactive
   estimator. Unnumbered interlude between the audit and the series band.
   ========================================================================== */
.page-home .calc-section { padding: 88px 0; }
.page-home .calc-section__inner {
  max-width: var(--content-max);
  width: 100%;
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.page-home .calc-card {
  margin-top: 36px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
}
@media (max-width: 900px) {
  .page-home .calc-card { grid-template-columns: 1fr; }
}
.page-home .calc-field { display: block; margin-bottom: 28px; }
.page-home .calc-field:last-child { margin-bottom: 0; }
.page-home .calc-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}
.page-home .calc-label strong {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.page-home .calc-card input[type="range"] { width: 100%; }
.page-home .calc-output {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.page-home .calc-caption {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 8px;
}
.page-home .calc-number {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.page-home .calc-sub { color: var(--muted); font-size: 15px; margin: 12px 0; }
.page-home .calc-sub strong { color: var(--ink); }
.page-home .calc-note { font-size: 13px; color: var(--faint); margin: 0 0 20px; }
.page-home .calc-output .light-cta { align-self: flex-start; }
.page-home .calc-section .lede {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  max-width: 640px;
  margin: 12px 0 0;
}
