/* ============================================================
   LogicPoint Advisors — Modern Institutional Minimalism
   ============================================================
   Design principles:
   - Air, spacing, clarity = perceived intelligence
   - No decoration; structure communicates
   - Calm authority; no urgency
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Color */
  --navy:      #0B1F3B;
  --navy-2:    #142B4D;
  --navy-soft: #1E3458;
  --ink:       #0F1419;
  --gray-900:  #1F2937;
  --gray-700:  #374151;
  --gray-500:  #6B7280;
  --gray-400:  #9CA3AF;
  --gray-300:  #D1D5DB;
  --gray-200:  #E5E7EB;
  --gray-100:  #F3F4F6;
  --gray-50:   #F9FAFB;
  --white:     #FFFFFF;
  --off-white: #FAFBFC;

  /* Accent - used very sparingly */
  --steel:     #3B5B7E;
  --steel-2:   #2D4862;
  --gold:      #B08D3E;

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;

  /* Spacing rhythm */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-7:  3rem;
  --space-8:  4rem;
  --space-9:  6rem;
  --space-10: 8rem;

  /* Layout */
  --max-content: 1200px;
  --max-prose:   720px;
  --radius:      4px;
  --radius-lg:   8px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
  font-feature-settings: 'ss01', 'cv01';
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--navy);
  letter-spacing: -0.015em;
  font-weight: 600;
}

p { margin: 0; }
img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--steel); }

button { font-family: inherit; cursor: pointer; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--navy);
  color: var(--white);
  padding: var(--space-3) var(--space-5);
  text-decoration: none;
  z-index: 100;
}
.skip-link:focus { top: 0; }

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

/* ---------- Top navigation ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  backdrop-filter: blur(8px);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.topbar-mark {
  width: 22px;
  height: 22px;
  display: block;
}

.topbar-name { white-space: nowrap; }
.topbar-name .accent { color: var(--steel); }

.topbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-7);
}

.topbar-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-700);
  letter-spacing: -0.005em;
}
.topbar-nav a:hover { color: var(--navy); }

/* Button-styled links inside the topbar must keep their button colors —
   .topbar-nav a above otherwise overrides .btn-primary's white text. */
.topbar-nav a.btn-primary {
  color: var(--white);
}
.topbar-nav a.btn-primary:hover {
  color: var(--white);
}
.topbar-nav a.btn-ghost {
  color: var(--navy);
}

.topbar-nav .btn { margin-left: var(--space-2); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--space-2);
  color: var(--navy);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--navy-2);
  border-color: var(--navy-2);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--gray-300);
}
.btn-ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
}

/* ---------- Layout primitives ---------- */
.container {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.prose-container {
  max-width: var(--max-prose);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

section { padding: var(--space-9) 0; }

.section-tight { padding: var(--space-8) 0; }
.section-wide  { padding: var(--space-10) 0; }

/* ---------- Section header ---------- */
.section-header {
  max-width: 760px;
  margin-bottom: var(--space-8);
}

.section-eyebrow {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.section-lead {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--gray-700);
  max-width: 640px;
}

/* ---------- Hero ---------- */
.hero {
  padding: var(--space-10) 0 var(--space-9);
  background: var(--white);
}

.hero-eyebrow {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-5);
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
  max-width: 920px;
}

.hero-lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--gray-700);
  max-width: 700px;
  margin-bottom: var(--space-7);
}

.hero-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* ---------- Who We Help / Cards grid ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-5);
}

.card {
  padding: var(--space-6);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--gray-400);
}

.card-icon {
  width: 32px;
  height: 32px;
  color: var(--steel);
  margin-bottom: var(--space-5);
}

.card-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.card-body {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--gray-700);
}

/* ---------- Planning Areas list ---------- */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  border-top: 1px solid var(--gray-200);
  border-left: 1px solid var(--gray-200);
}

.area-item {
  padding: var(--space-6);
  border-right: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  background: var(--white);
  transition: background 0.2s ease;
}

.area-item:hover { background: var(--gray-50); }

.area-number {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-400);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: var(--space-3);
}

.area-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.area-body {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--gray-700);
}

/* ---------- How We Work — process timeline ---------- */
.process {
  background: var(--gray-50);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-5);
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: var(--space-6) 0 0;
  border-top: 2px solid var(--steel);
}

.process-step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--steel);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}

.process-step-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-3);
  letter-spacing: -0.005em;
}

.process-step-body {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--gray-700);
}

/* ---------- CTA section ---------- */
.cta {
  background: var(--navy);
  color: var(--white);
}
.cta .section-title { color: var(--white); }
.cta .section-lead { color: rgba(255,255,255,0.75); }
.cta .section-eyebrow { color: rgba(255,255,255,0.65); }

.cta .btn-primary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.cta .btn-primary:hover {
  background: var(--gray-100);
  border-color: var(--gray-100);
  color: var(--navy);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: var(--space-8) 0 var(--space-6);
  font-size: 0.875rem;
  color: var(--gray-700);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-7);
  margin-bottom: var(--space-7);
}

.footer-brand-name {
  font-weight: 600;
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.footer-brand-tag {
  color: var(--gray-500);
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links a {
  color: var(--gray-700);
  font-size: 0.875rem;
}
.footer-links a:hover { color: var(--navy); }

.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--gray-500);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-license {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .topbar { padding: var(--space-4); }
  .topbar-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-5);
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
  }
  .topbar-nav.is-open { display: flex; }
  .topbar-nav .btn { margin-left: 0; margin-top: var(--space-2); }

  .nav-toggle { display: block; }

  .container, .prose-container { padding: 0 var(--space-4); }
  section { padding: var(--space-7) 0; }
  .hero { padding: var(--space-8) 0 var(--space-7); }

  .footer-grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Page-level patterns — for subpages beyond the homepage
   ============================================================ */

/* Page header (smaller than homepage hero, for subpages) */
.page-header {
  padding: var(--space-9) 0 var(--space-7);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.page-header .container { max-width: var(--max-content); }
.page-header-eyebrow {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-4);
}
.page-header h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-5);
  max-width: 820px;
}
.page-header-lead {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.6;
  color: var(--gray-700);
  max-width: 680px;
}

/* Article / prose layout for content-heavy pages */
.article {
  padding: var(--space-8) 0;
  background: var(--white);
}
.article .prose-container { max-width: 760px; }

.article h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-top: var(--space-7);
  margin-bottom: var(--space-4);
  color: var(--navy);
}
.article h2:first-child { margin-top: 0; }

.article h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
  color: var(--navy);
}

.article p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: var(--space-4);
}

.article ul, .article ol {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-700);
  margin: 0 0 var(--space-5) 0;
  padding-left: var(--space-6);
}
.article li { margin-bottom: var(--space-2); }

.article a {
  color: var(--steel-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article a:hover { color: var(--navy); }

/* Defensive: button-styled links must keep their button colors regardless
   of contextual `a` rules that would otherwise override them. */
.article a.btn,
.article a.btn-primary,
.article a.btn-ghost,
.article a.btn-accent {
  text-decoration: none;
}
.article a.btn-primary { color: var(--white); }
.article a.btn-primary:hover { color: var(--white); }
.article a.btn-ghost { color: var(--navy); }
.article a.btn-ghost:hover { color: var(--navy); }
.article a.btn-accent { color: var(--white); }
.article a.btn-accent:hover { color: var(--white); }

.article hr {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: var(--space-7) 0;
}

.article-meta {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-bottom: var(--space-6);
  letter-spacing: -0.005em;
}

/* Two-column inline layout for "what we help with" + "how engagements start" patterns */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  padding: var(--space-8) 0;
}
@media (max-width: 720px) {
  .two-col { grid-template-columns: 1fr; gap: var(--space-6); padding: var(--space-6) 0; }
}

.two-col h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-4);
  letter-spacing: -0.015em;
}
.two-col p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--gray-700);
  margin-bottom: var(--space-3);
}
.two-col ul {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--gray-700);
  padding-left: var(--space-5);
  margin: 0;
}
.two-col li { margin-bottom: var(--space-2); }

/* Compact CTA at end of subpages */
.cta-inline {
  padding: var(--space-7) 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}
.cta-inline-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-3);
  letter-spacing: -0.015em;
}
.cta-inline p {
  color: var(--gray-700);
  margin-bottom: var(--space-5);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Active nav state */
.topbar-nav a.is-active {
  color: var(--navy);
  font-weight: 500;
  position: relative;
}
.topbar-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -22px;
  height: 2px;
  background: var(--steel);
}

/* Resource cards / FAQ lists */
.resource-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--gray-200);
}
.resource-item {
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--gray-200);
}
.resource-item-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}
.resource-item-body {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--gray-700);
}
.resource-empty {
  padding: var(--space-7) 0;
  text-align: center;
  color: var(--gray-500);
  font-size: 0.9375rem;
  font-style: italic;
}

/* FAQ details/summary */
.faq-list { margin: 0; padding: 0; border-top: 1px solid var(--gray-200); }
.faq-item {
  border-bottom: 1px solid var(--gray-200);
  padding: var(--space-2) 0;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--navy);
  padding: var(--space-4) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gray-400);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item-body {
  padding: 0 0 var(--space-5);
  color: var(--gray-700);
  font-size: 0.9375rem;
  line-height: 1.65;
}
.faq-item-body p { margin: 0 0 var(--space-3); }
.faq-item-body p:last-child { margin-bottom: 0; }

/* ============================================================
   Tools / Calculators — interactive assessment styling
   Adapted to LogicPoint Modern Institutional Minimalism
   ============================================================ */

/* Tools-specific page wrapper */
.tools-body {
  background: var(--off-white);
  min-height: calc(100vh - 200px);
}

/* Tool intro section (replaces FullCareAI's mkt-hero for calculator pages) */
.tool-intro {
  padding: var(--space-9) 0 var(--space-7);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}
.tool-intro-eyebrow {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-4);
}
.tool-intro h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-5);
  max-width: 760px;
}
.tool-intro-lead {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--gray-700);
  max-width: 680px;
}

/* Tool section containers */
.tool-section {
  padding: var(--space-8) 0;
}
.tool-section.alt {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.tool-container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.tool-section-header {
  margin-bottom: var(--space-6);
}
.tool-section-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}
.tool-section h2 {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin-bottom: var(--space-3);
}

/* Calculator input grid (the JS depends on .calc-grid existing) */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}
@media (max-width: 640px) {
  .calc-grid { grid-template-columns: 1fr; }
}

.calc-field {
  display: flex;
  flex-direction: column;
}
.calc-field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: var(--space-2);
  letter-spacing: -0.005em;
}
.calc-field label .calc-hint {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--gray-500);
  letter-spacing: 0;
  margin-top: 2px;
}

.calc-input-money {
  position: relative;
  display: flex;
  align-items: center;
}
.calc-input-money::before {
  content: "$";
  position: absolute;
  left: var(--space-3);
  color: var(--gray-400);
  font-size: 0.9375rem;
  pointer-events: none;
}
.calc-input-money input {
  padding-left: 1.75rem;
}

.calc-field input,
.calc-field select {
  width: 100%;
  padding: 0.625rem var(--space-3);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.calc-field input:focus,
.calc-field select:focus {
  outline: none;
  border-color: var(--steel);
  box-shadow: 0 0 0 3px rgba(59, 91, 126, 0.12);
}

.calc-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-5);
}

.reset-link {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem var(--space-3);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-500);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.reset-link:hover { color: var(--navy); }

/* Result card — the calculator output */
.calc-result,
.result-card {
  padding: var(--space-6);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin-top: var(--space-5);
}

.calc-result-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}
.calc-result-value {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: var(--space-3);
}
.calc-result-sub {
  font-size: 0.9375rem;
  color: var(--gray-700);
  line-height: 1.55;
}

.calc-breakdown {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--gray-200);
}
.calc-breakdown table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.calc-breakdown th,
.calc-breakdown td {
  padding: var(--space-2) 0;
  text-align: left;
  color: var(--gray-700);
}
.calc-breakdown th {
  font-weight: 500;
  color: var(--navy);
}
.calc-breakdown td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
  font-weight: 500;
}
.calc-breakdown tr {
  border-bottom: 1px solid var(--gray-100);
}
.calc-breakdown tr:last-child {
  border-bottom: none;
  border-top: 1px solid var(--gray-300);
  font-weight: 600;
}

.calc-disclaimer {
  margin-top: var(--space-5);
  padding: var(--space-4);
  background: var(--gray-50);
  border-left: 3px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--gray-700);
}

/* Q-progress for assessment-style tools (IUL fit, annuity fit) */
.q-progress {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  font-size: 0.8125rem;
  color: var(--gray-500);
  letter-spacing: -0.005em;
}
.q-progress-bar {
  flex: 1;
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  overflow: hidden;
}
.q-progress-fill {
  height: 100%;
  background: var(--steel);
  transition: width 0.3s ease;
}

/* Tool-specific buttons */
.btn-accent {
  background: var(--navy);
  color: var(--white);
  border: 1px solid var(--navy);
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-accent:hover {
  background: var(--navy-2);
  border-color: var(--navy-2);
  color: var(--white);
}

/* Tool prose blocks (the "what this means" text under results) */
.tool-prose {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--gray-700);
}
.tool-prose p { margin-bottom: var(--space-3); }
.tool-prose p:last-child { margin-bottom: 0; }
.tool-prose h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}
.tool-prose ul {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--gray-700);
  padding-left: var(--space-5);
  margin: 0 0 var(--space-4);
}
.tool-prose li { margin-bottom: var(--space-2); }

/* CTA block at bottom of tool pages */
.tool-cta {
  background: var(--gray-50);
  padding: var(--space-7) 0;
  border-top: 1px solid var(--gray-200);
  text-align: left;
}
.tool-cta-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-3);
}
.tool-cta-body {
  color: var(--gray-700);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: var(--space-5);
}

/* ============================================================
   Legacy class compatibility — for content ported from FullCareAI
   (compliance pages and calculator content). Styled to LogicPoint aesthetic.
   ============================================================ */

/* Info card / highlight / contact card — bordered call-out boxes */
.info-card,
.contact-card,
.highlight {
  padding: var(--space-5);
  background: var(--gray-50);
  border-left: 3px solid var(--steel);
  border-radius: var(--radius);
  margin: var(--space-5) 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--gray-700);
}
.info-card h3,
.contact-card h3,
.highlight h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 0;
  margin-bottom: var(--space-2);
}
.info-card p:last-child,
.contact-card p:last-child,
.highlight p:last-child { margin-bottom: 0; }

/* Warning box (terms.html — important call-outs) */
.warning-box {
  padding: var(--space-5);
  background: #FFF8E6;
  border-left: 3px solid #B08D3E;
  border-radius: var(--radius);
  margin: var(--space-5) 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--gray-900);
}
.warning-box h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #6B5A1E;
  margin-top: 0;
  margin-bottom: var(--space-2);
}

/* Section numbering (compliance pages — § markers) */
.section-num {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--gray-400);
  letter-spacing: 0.06em;
  margin-right: var(--space-2);
}

/* Feature grid (accessibility page — features list) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
  margin: var(--space-5) 0;
}
.feature-card {
  padding: var(--space-5);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--gray-700);
}
.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 0;
  margin-bottom: var(--space-2);
}

/* FC icon (accessibility page — feature icons) */
.fc-icon {
  width: 28px;
  height: 28px;
  color: var(--steel);
  margin-bottom: var(--space-3);
}

/* Conformance badge (accessibility — WCAG compliance pill) */
.conformance-badge {
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.005em;
  margin: var(--space-2) 0;
}

/* cta-block — legacy CTA pattern used in some tool pages */
.cta-block {
  padding: var(--space-6);
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  margin-top: var(--space-6);
  text-align: left;
}
.cta-block h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 0;
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}
.cta-block p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--gray-700);
  margin-bottom: var(--space-4);
}
