/* Shared calculator shell — nav aligned with /prompts */
@import url('./dark-mode.css');
@import url('./faq-ui.css');
@import url('./calc-form-ui.css');

/* Hide legacy markup until shell.js finishes enhancing the page */
html.calc-shell-pending:not(.calc-shell-ready) body {
  visibility: hidden;
}

html.calc-shell-ready body {
  visibility: visible;
}

.calc-shell-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 5vw 0;
  background: transparent;
  border-bottom: none;
}

.calc-shell-bar--tool {
  padding-bottom: 8px;
  background: var(--shell-tool-bg);
}

.calc-shell-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1240px;
  margin: 0 auto;
  min-height: 78px;
  padding: 0 18px 0 24px;
  isolation: isolate;
}

.calc-shell-cover {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(10, 16, 31, 0.72) 0%, rgba(30, 49, 89, 0.6) 100%);
  box-shadow: 0 24px 64px rgba(8, 12, 24, 0.24);
  backdrop-filter: blur(24px);
  z-index: 0;
  pointer-events: none;
}

.calc-shell-brand,
.calc-shell-right {
  position: relative;
  z-index: 1;
}

.calc-shell-bar--tool .calc-shell-cover {
  border-color: var(--shell-tool-cover-border);
  background: var(--shell-tool-cover-bg);
  box-shadow: var(--shell-tool-cover-shadow);
}

.calc-shell-brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: none;
}

.calc-shell-bar--tool .calc-shell-brand {
  color: var(--shell-tool-brand-color);
}

.calc-shell-brand span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
  margin-left: 6px;
  font-size: 14px;
}

.calc-shell-bar--tool .calc-shell-brand span {
  color: var(--shell-tool-brand-muted);
}

.calc-shell-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-left: auto;
}

.calc-shell-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.calc-shell-bar--tool .calc-shell-nav {
  border-color: var(--shell-tool-nav-border);
  background: var(--shell-tool-nav-bg);
}

.calc-shell-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: background var(--t-med) var(--ease), color var(--t-med) var(--ease);
}

.calc-shell-bar--tool .calc-shell-nav a {
  color: var(--shell-tool-nav-link-color);
}

.calc-shell-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.calc-shell-bar--tool .calc-shell-nav a:hover {
  color: var(--shell-tool-nav-link-hover-color);
  background: var(--shell-tool-nav-link-hover-bg);
}

.calc-shell-nav a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.calc-shell-bar--tool .calc-shell-nav a.is-active {
  color: var(--shell-tool-nav-link-active-color);
  background: var(--shell-tool-nav-link-active-bg);
  box-shadow: var(--shell-tool-nav-link-active-shadow);
}

.calc-shell-nav-more {
  position: relative;
  margin-left: 2px;
}

.calc-shell-nav-more > summary {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition: background var(--t-med) var(--ease), color var(--t-med) var(--ease);
}

.calc-shell-nav-more > summary::-webkit-details-marker {
  display: none;
}

.calc-shell-nav-more > summary::after {
  content: "▾";
  margin-left: 6px;
  font-size: 10px;
  opacity: 0.72;
}

.calc-shell-nav-more[open] > summary::after {
  transform: rotate(180deg);
}

.calc-shell-nav-more > summary:hover,
.calc-shell-nav-more > summary.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.calc-shell-nav-more > summary.is-active {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.calc-shell-nav-more-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 5;
  display: grid;
  gap: 4px;
  min-width: 180px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(10, 16, 31, 0.96) 0%, rgba(30, 49, 89, 0.94) 100%);
  box-shadow: 0 24px 48px rgba(8, 12, 24, 0.32);
  backdrop-filter: blur(20px);
}

.calc-shell-nav-more-menu a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  white-space: nowrap;
}

.calc-shell-nav-more-menu a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.calc-shell-nav-more-menu a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.calc-shell-bar--tool .calc-shell-nav-more > summary {
  color: var(--shell-tool-nav-link-color);
}

.calc-shell-bar--tool .calc-shell-nav-more > summary:hover,
.calc-shell-bar--tool .calc-shell-nav-more > summary.is-active {
  color: var(--shell-tool-nav-link-hover-color);
  background: var(--shell-tool-nav-link-hover-bg);
}

.calc-shell-bar--tool .calc-shell-nav-more > summary.is-active {
  color: var(--shell-tool-nav-link-active-color);
  background: var(--shell-tool-nav-link-active-bg);
  box-shadow: var(--shell-tool-nav-link-active-shadow);
}

.calc-shell-bar--tool .calc-shell-nav-more-menu {
  border-color: var(--shell-tool-cover-border);
  background: var(--shell-tool-cover-bg);
  box-shadow: var(--shell-tool-cover-shadow);
}

.calc-shell-bar--tool .calc-shell-nav-more-menu a {
  color: var(--shell-tool-nav-link-color);
}

.calc-shell-bar--tool .calc-shell-nav-more-menu a:hover {
  color: var(--shell-tool-nav-link-hover-color);
  background: var(--shell-tool-nav-link-hover-bg);
}

.calc-shell-bar--tool .calc-shell-nav-more-menu a.is-active {
  color: var(--shell-tool-nav-link-active-color);
  background: var(--shell-tool-nav-link-active-bg);
}

.calc-shell-nav-prompts,
.calc-shell-nav-calculators {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  margin-left: 4px;
  transition: background var(--t-med) var(--ease), color var(--t-med) var(--ease);
}

.calc-shell-bar--tool .calc-shell-nav-prompts,
.calc-shell-bar--tool .calc-shell-nav-calculators {
  border-color: var(--shell-tool-prompts-border);
  color: var(--shell-tool-prompts-color);
  background: var(--shell-tool-prompts-bg);
}

.calc-shell-nav-prompts:hover,
.calc-shell-nav-calculators:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.calc-shell-bar--tool .calc-shell-nav-prompts:hover,
.calc-shell-bar--tool .calc-shell-nav-calculators:hover {
  background: var(--shell-tool-prompts-hover-bg);
  color: var(--shell-tool-prompts-hover-color);
}

.calc-shell-nav-prompts.is-active,
.calc-shell-bar--tool .calc-shell-nav-prompts.is-active {
  color: var(--shell-tool-nav-link-active-color, #fff);
  background: var(--shell-tool-nav-link-active-bg, rgba(255, 255, 255, 0.14));
  box-shadow: var(--shell-tool-nav-link-active-shadow, inset 0 0 0 1px rgba(255, 255, 255, 0.08));
}

.calc-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--calc-font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--t-med) var(--ease), border-color var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}

.calc-shell-bar--tool .calc-theme-toggle {
  border-color: var(--shell-tool-toggle-border);
  background: var(--shell-tool-toggle-bg);
  color: var(--shell-tool-toggle-color);
}

.calc-theme-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.calc-shell-bar--tool .calc-theme-toggle:hover {
  background: var(--shell-tool-toggle-hover-bg);
  border-color: var(--shell-tool-toggle-hover-border);
}

.calc-theme-toggle-icon {
  font-size: 14px;
  line-height: 1;
}

.calc-theme-toggle[aria-pressed="true"] {
  border-color: rgba(138, 180, 255, 0.35);
  background: rgba(138, 180, 255, 0.12);
}

.calc-shell-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  background: var(--shell-cta-bg);
  color: var(--shell-cta-color);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--shell-cta-border);
  box-shadow: var(--shell-cta-shadow);
  white-space: nowrap;
  transition: background var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), opacity var(--t-med) var(--ease);
}

.calc-shell-bar--tool .calc-shell-cta {
  background: var(--shell-cta-bg);
  color: var(--shell-cta-color);
  border-color: var(--shell-cta-border);
  box-shadow: var(--shell-cta-shadow);
}

.calc-shell-cta:hover {
  opacity: 0.96;
  box-shadow: var(--shell-cta-shadow-hover);
}

.calc-shell-bar--tool .calc-shell-cta:hover {
  box-shadow: var(--shell-cta-shadow-hover);
}

.calc-form-error {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid color-mix(in oklab, var(--orange-red) 35%, var(--border-subtle));
  background: color-mix(in oklab, var(--orange-red) 8%, var(--surface));
  color: var(--black);
  font-size: 13px;
  line-height: 1.45;
}

.calc-form-error[hidden] {
  display: none !important;
}

.calc-result-lead {
  margin-top: 24px;
  padding: 22px 24px;
  border-radius: var(--r-xl);
  border: 1px solid var(--border-subtle);
  background: var(--panel-bg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.calc-result-lead::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--blue-fisagency) 0%, var(--orange-red) 100%);
  opacity: 0.9;
}

.calc-result-lead-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.calc-result-lead[hidden] {
  display: none !important;
}

.calc-result-lead-kicker {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-fisagency);
}

.calc-result-lead h4 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--black);
}

.calc-result-lead p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--body-display);
  max-width: 42ch;
}

.calc-result-lead-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  background: var(--accent-gradient);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-accent);
  transition: box-shadow var(--t-med) var(--ease), opacity var(--t-med) var(--ease);
  flex-shrink: 0;
}

.calc-result-lead-btn:hover {
  box-shadow: 0 16px 32px rgba(17, 23, 41, 0.24);
  opacity: 0.96;
}

/* Page-level contact CTA (below calculator, above FAQ) */
.cta-section.calc-page-cta,
body.calc-tool-page .cta-section,
.calculators-hub .cta-section {
  position: relative;
  width: min(92%, 1400px);
  max-width: 1400px;
  margin: 48px auto 0;
  padding: 24px 28px 26px;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--border-subtle);
  background: var(--panel-bg);
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
}

body.calc-tool-page .grid-content > .cta-section,
body.calc-tool-page .grid-content > .cta-section.calc-page-cta,
.calculators-hub .calc-library-inner > .cta-section {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.calc-page-cta-shell {
  width: min(92%, 1400px);
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.calc-page-cta-shell > .cta-section {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.calc-page-faq-shell {
  width: min(92%, 1400px);
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.calc-page-faq-shell > .faq-section {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.cta-section.calc-page-cta::before,
body.calc-tool-page .cta-section::before,
.calculators-hub .cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--blue-fisagency) 0%, var(--orange-red) 100%);
  opacity: 0.9;
  animation: none;
}

.cta-section.calc-page-cta::after,
body.calc-tool-page .cta-section::after,
.calculators-hub .cta-section::after {
  display: none;
}

.cta-section.calc-page-cta .cta-content,
body.calc-tool-page .cta-section .cta-content,
.calculators-hub .cta-section .cta-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 24px;
  align-items: center;
  max-width: none;
  margin: 0;
  text-align: left;
}

.cta-section.calc-page-cta h2,
.cta-section.calc-page-cta .heading-medium,
body.calc-tool-page .cta-section h2,
body.calc-tool-page .cta-section .heading-medium,
.calculators-hub .cta-section h2,
.calculators-hub .cta-section .heading-medium {
  grid-column: 1;
  margin: 0;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--black);
}

.cta-section.calc-page-cta p,
.cta-section.calc-page-cta .paragraph-large,
body.calc-tool-page .cta-section p,
body.calc-tool-page .cta-section .paragraph-large,
.calculators-hub .cta-section p,
.calculators-hub .cta-section .paragraph-large {
  grid-column: 1;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--body-display);
  max-width: 52ch;
}

.cta-section.calc-page-cta .calc-page-cta-btn,
.cta-section.calc-page-cta .link-arrow,
body.calc-tool-page .cta-section .calc-page-cta-btn,
body.calc-tool-page .cta-section .link-arrow,
.calculators-hub .cta-section .calc-page-cta-btn,
.calculators-hub .cta-section .link-arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--r-pill);
  background: var(--accent-gradient);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-accent);
  opacity: 1;
  transform: none;
  transition: box-shadow var(--t-med) var(--ease), opacity var(--t-med) var(--ease);
}

.cta-section.calc-page-cta .calc-page-cta-btn:hover,
.cta-section.calc-page-cta .link-arrow:hover,
body.calc-tool-page .cta-section .calc-page-cta-btn:hover,
body.calc-tool-page .cta-section .link-arrow:hover,
.calculators-hub .cta-section .calc-page-cta-btn:hover,
.calculators-hub .cta-section .link-arrow:hover {
  opacity: 0.96;
  transform: none;
  box-shadow: 0 16px 32px rgba(17, 23, 41, 0.24);
}

/* FAQ block (below page CTA) */
.faq-section.calc-page-faq,
body.calc-tool-page .faq-section,
.calculators-hub .faq-section {
  padding: 56px 0 0;
  margin: 0;
  background: transparent !important;
}

.faq-section.calc-page-faq .container,
body.calc-tool-page .faq-section .container,
.calculators-hub .faq-section .container {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}

.faq-section.calc-page-faq .faq-header,
body.calc-tool-page .faq-section .faq-header,
.calculators-hub .faq-section .faq-header {
  text-align: left;
  max-width: 720px;
  margin: 0 0 28px;
  padding: 0;
}

.faq-section.calc-page-faq .faq-header h2,
body.calc-tool-page .faq-section .faq-header h2,
.calculators-hub .faq-section .faq-header h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--black);
}

.faq-section.calc-page-faq .faq-header .body-display,
.faq-section.calc-page-faq .faq-header > p,
body.calc-tool-page .faq-section .faq-header .body-display,
body.calc-tool-page .faq-section .faq-header > p,
.calculators-hub .faq-section .faq-header .body-display,
.calculators-hub .faq-section .faq-header > p {
  margin: 0;
  max-width: 58ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--body-display);
}

.faq-section.calc-page-faq .faq-quick-links,
body.calc-tool-page .faq-section .faq-quick-links,
.calculators-hub .faq-section .faq-quick-links {
  justify-content: flex-start;
  margin-top: 4px;
}

.faq-section.calc-page-faq .faq-grid,
body.calc-tool-page .faq-section .faq-grid,
.calculators-hub .faq-section .faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: none;
  margin: 0;
  padding: 0;
}

.faq-section.calc-page-faq .faq-item,
body.calc-tool-page .faq-section .faq-item,
.calculators-hub .faq-section .faq-item {
  padding: 22px 24px;
  border-radius: var(--r-xl);
  border: 1px solid var(--border-subtle);
  background: var(--panel-bg);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}

.faq-section.calc-page-faq .faq-item:hover,
body.calc-tool-page .faq-section .faq-item:hover,
.calculators-hub .faq-section .faq-item:hover {
  transform: none !important;
  border-color: rgba(44, 69, 125, 0.22);
  box-shadow: 0 12px 28px rgba(41, 43, 78, 0.08);
}

.faq-section.calc-page-faq .faq-question,
body.calc-tool-page .faq-section .faq-question,
.calculators-hub .faq-section .faq-question {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--black);
}

.faq-section.calc-page-faq .faq-question::before,
body.calc-tool-page .faq-section .faq-question::before,
.calculators-hub .faq-section .faq-question::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 0.45em;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-fisagency) 0%, var(--orange-red) 100%);
}

.faq-section.calc-page-faq .faq-answer,
body.calc-tool-page .faq-section .faq-answer,
.calculators-hub .faq-section .faq-answer {
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--body-display);
}

.faq-section.calc-page-faq .faq-answer p,
body.calc-tool-page .faq-section .faq-answer p,
.calculators-hub .faq-section .faq-answer p {
  margin: 0 0 10px;
}

.faq-section.calc-page-faq .faq-answer p:last-child,
body.calc-tool-page .faq-section .faq-answer p:last-child,
.calculators-hub .faq-section .faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-section.calc-page-faq .faq-list,
body.calc-tool-page .faq-section .faq-list,
.calculators-hub .faq-section .faq-list {
  margin: 10px 0 0;
  padding-left: 0;
  list-style: none;
}

.faq-section.calc-page-faq .faq-list li,
body.calc-tool-page .faq-section .faq-list li,
.calculators-hub .faq-section .faq-list li {
  position: relative;
  margin: 0 0 8px;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--body-display);
}

.faq-section.calc-page-faq .faq-list li:last-child,
body.calc-tool-page .faq-section .faq-list li:last-child,
.calculators-hub .faq-section .faq-list li:last-child {
  margin-bottom: 0;
}

.faq-section.calc-page-faq .faq-list li::before,
body.calc-tool-page .faq-section .faq-list li::before,
.calculators-hub .faq-section .faq-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-fisagency);
}

.faq-source-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-subtle);
  background: var(--calc-accent-muted);
  font-size: 12px;
  line-height: 1.55;
  color: var(--body-display);
}

/* Contact panel (funnel optimizer + tool pages) */
.contact-section.calc-contact-panel,
body.calc-tool-page .contact-section {
  position: relative;
  margin: 48px 0 0;
  padding: 28px 28px 30px;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--border-subtle);
  background: var(--panel-bg);
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
}

.contact-section.calc-contact-panel::before,
body.calc-tool-page .contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--blue-fisagency) 0%, var(--orange-red) 100%);
  opacity: 0.9;
}

.contact-section.calc-contact-panel .contact-header,
body.calc-tool-page .contact-section .contact-header {
  text-align: left;
  max-width: 720px;
  margin: 0 0 24px;
  padding: 0;
}

.contact-section.calc-contact-panel .contact-header h2,
body.calc-tool-page .contact-section .contact-header h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--black);
}

.contact-section.calc-contact-panel .contact-header h2::after,
body.calc-tool-page .contact-section .contact-header h2::after {
  display: none;
}

.contact-section.calc-contact-panel .contact-header .body-display,
.contact-section.calc-contact-panel .contact-header > p,
body.calc-tool-page .contact-section .contact-header > p {
  margin: 0;
  max-width: 58ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--body-display);
}

.calc-contact-form,
body.calc-tool-page .contact-form {
  max-width: none;
  margin: 0;
}

.calc-contact-form .form-row,
body.calc-tool-page .contact-form .form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
  animation: none !important;
}

.calc-contact-form .form-group,
body.calc-tool-page .contact-form .form-group {
  display: grid;
  gap: 8px;
  margin: 0;
  min-width: 0;
}

.calc-contact-form .form-group label,
body.calc-tool-page .contact-form .form-group label {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
}

.calc-contact-form .form-group:focus-within label,
body.calc-tool-page .contact-form .form-group:focus-within label {
  color: var(--black);
}

.calc-contact-form .form-group input,
.calc-contact-form .form-group textarea,
body.calc-tool-page .contact-form .form-group input,
body.calc-tool-page .contact-form .form-group textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid rgba(136, 158, 168, 0.28);
  border-radius: var(--r-pill);
  background: var(--surface-elevated);
  color: var(--black);
  font-family: var(--calc-font);
  font-size: 15px;
  box-shadow: none;
  box-sizing: border-box;
  transition: border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}

.calc-contact-form .form-group textarea,
body.calc-tool-page .contact-form .form-group textarea {
  min-height: 132px;
  border-radius: var(--r-lg);
  resize: vertical;
}

.calc-contact-form .form-group input:focus,
.calc-contact-form .form-group textarea:focus,
body.calc-tool-page .contact-form .form-group input:focus,
body.calc-tool-page .contact-form .form-group textarea:focus {
  outline: none;
  border-color: rgba(44, 69, 125, 0.46);
  box-shadow: var(--ring);
  transform: none;
}

.calc-contact-form .input-hint,
body.calc-tool-page .contact-form .input-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--body-display);
  opacity: 1;
}

.calc-contact-form .form-status,
body.calc-tool-page .contact-form .form-status {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  font-size: 14px;
  line-height: 1.5;
}

.calc-contact-form .form-status.error,
body.calc-tool-page .contact-form .form-status.error {
  display: block;
  border: 1px solid color-mix(in oklab, var(--orange-red) 35%, var(--border-subtle));
  background: color-mix(in oklab, var(--orange-red) 8%, var(--surface));
  color: var(--black);
}

.calc-contact-form .form-status.success,
body.calc-tool-page .contact-form .form-status.success {
  display: block;
  border: 1px solid color-mix(in oklab, var(--calc-success) 35%, var(--border-subtle));
  background: color-mix(in oklab, var(--calc-success) 10%, var(--surface));
  color: var(--black);
}

.calc-contact-form .form-buttons,
body.calc-tool-page .contact-form .form-buttons {
  display: flex;
  justify-content: flex-start;
  margin-top: 8px;
  animation: none !important;
}

.calc-contact-form .calculate-button,
body.calc-tool-page .contact-form .calculate-button {
  min-width: 0;
  min-height: 48px;
  padding: 0 22px;
}

.calc-contact-form .calculate-button::before,
body.calc-tool-page .contact-form .calculate-button::before {
  display: none !important;
  content: none !important;
}

.service-badge.is-muted {
  background: var(--surface-2);
  border-color: var(--border-subtle);
}

.service-badge.is-muted .badge-text {
  color: var(--body-display);
}

@media (max-width: 768px) {
  .calc-shell-bar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .calc-shell-inner {
    padding: 0 14px;
    min-height: auto;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .calc-shell-nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .calc-shell-right {
    width: 100%;
    justify-content: space-between;
  }

  .calc-result-lead {
    flex-direction: column;
    align-items: stretch;
  }

  .calc-result-lead-btn {
    width: 100%;
  }

  .cta-section.calc-page-cta .cta-content,
  body.calc-tool-page .cta-section .cta-content,
  .calculators-hub .cta-section .cta-content {
    grid-template-columns: 1fr;
  }

  .cta-section.calc-page-cta .calc-page-cta-btn,
  .cta-section.calc-page-cta .link-arrow,
  body.calc-tool-page .cta-section .calc-page-cta-btn,
  body.calc-tool-page .cta-section .link-arrow,
  .calculators-hub .cta-section .calc-page-cta-btn,
  .calculators-hub .cta-section .link-arrow {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }

  .faq-section.calc-page-faq .faq-grid,
  body.calc-tool-page .faq-section .faq-grid,
  .calculators-hub .faq-section .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-section.calc-page-faq .faq-header,
  body.calc-tool-page .faq-section .faq-header,
  .calculators-hub .faq-section .faq-header {
    margin-bottom: 22px;
  }

  .calc-contact-form .form-row,
  body.calc-tool-page .contact-form .form-row {
    grid-template-columns: 1fr;
  }

  .calc-contact-form .form-buttons,
  body.calc-tool-page .contact-form .form-buttons {
    width: 100%;
  }

  .calc-contact-form .calculate-button,
  body.calc-tool-page .contact-form .calculate-button {
    width: 100%;
  }

  .calc-site-footer-main {
    grid-template-columns: 1fr;
  }

  .calc-site-footer-nav {
    justify-content: flex-start;
  }

  .calc-site-footer-bottom {
    align-items: flex-start;
    text-align: left;
  }

  .calc-site-footer-meta {
    justify-content: flex-start;
  }
}

/* Unified site footer (hub + all calculator tools) */
.footer-section.calc-site-footer {
  position: relative;
  margin-top: 64px;
  padding: 0;
  border-top: none;
  background: transparent;
}

.calc-site-footer-inner {
  position: relative;
  width: min(92%, 1400px);
  margin: 0 auto;
  padding: 48px 0 40px;
  border-top: 1px solid var(--border-subtle);
}

.calc-site-footer-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--blue-fisagency) 0%, var(--orange-red) 100%);
  opacity: 0.9;
}

.calc-site-footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px 40px;
  align-items: start;
  padding-top: 28px;
}

.calc-site-footer-brand {
  display: grid;
  gap: 10px;
}

.calc-site-footer-logo {
  display: inline-block;
  width: fit-content;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--black);
  text-decoration: none;
  transition: color var(--t-med) var(--ease);
}

.calc-site-footer-logo:hover {
  color: var(--blue-fisagency);
}

.calc-site-footer-tagline {
  margin: 0;
  max-width: 42ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--body-display);
}

.calc-site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  align-self: center;
}

.calc-site-footer-bottom {
  display: grid;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(136, 158, 168, 0.12);
  text-align: center;
  justify-items: center;
}

.calc-site-footer-contact {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(136, 158, 168, 0.18);
  background: var(--surface-elevated);
  color: var(--black);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(41, 43, 78, 0.05);
  transition: transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}

.calc-site-footer-contact:hover {
  transform: translateY(-1px);
  border-color: rgba(44, 69, 125, 0.28);
  box-shadow: 0 12px 22px rgba(41, 43, 78, 0.08);
}

.calc-site-footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
}

.calc-site-footer-link {
  color: var(--body-display);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--t-med) var(--ease);
}

.calc-site-footer-link:hover {
  color: var(--black);
}

.calc-site-footer-divider {
  color: rgba(136, 158, 168, 0.55);
  font-size: 13px;
  user-select: none;
}

.calc-site-footer-copy {
  margin: 0;
  font-size: 12px;
  color: rgba(136, 158, 168, 0.85);
}
