/* assetcentral.ai · Real Estate & Hospitality vertical
   Investor-acquisition engine — shared styles
   Light theme (white surfaces, gold accents, dark-forest text).
   Brand-aligned with assetcentral.ai master site (v39).
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400;1,8..60,600;1,8..60,700&display=swap');

:root {
  /* ─── Brand accent — slate blue (legacy --gold* names retained for HTML compatibility) ─── */
  --gold: #3B5B92;        /* slate blue — primary accent */
  --gold-light: #5A7BB8;  /* lighter slate */
  --gold-dim: #2A4373;    /* deep slate */

  /* True names (use these in any new CSS) */
  --slate: #3B5B92;
  --slate-light: #5A7BB8;
  --slate-deep: #2A4373;
  --charcoal: #1A1F2E;
  --charcoal-2: #252B3D;
  --platinum: #C7CAD1;
  --platinum-warm: #DDE0E6;

  /* Semantic indicators */
  --green: #2D8060;
  --red: #B84545;

  /* Surfaces — light institutional theme (cool greys) */
  --ink: #FFFFFF;
  --ink-2: #F4F6FA;
  --ink-3: #E8ECF3;
  --ink-4: #D6DCE7;

  /* Text — charcoal on light */
  --paper: #1A1F2E;
  --paper-2: #3A4159;
  --muted: #6E7689;

  /* Lines (slate-tinted) */
  --line: rgba(59, 91, 146, 0.22);
  --line-soft: rgba(59, 91, 146, 0.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--ink);
  color: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--gold-dim); text-decoration: none; transition: color .15s; }
a:hover { color: var(--gold); }

h1, h2, h3, h4 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--paper);
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h4 { font-size: 1.05rem; font-weight: 700; }
h1 em, h2 em, h3 em, h4 em { font-style: italic; color: var(--gold); }

p { color: var(--paper-2); font-weight: 300; line-height: 1.75; }
strong { color: var(--paper); font-weight: 500; }

.container, .wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}
@media (max-width: 640px) { .container, .wrap { padding: 0 1.25rem; } }

/* TOP STATUS BAR */
#ct-xnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}
.ct-xbar {
  display: flex; align-items: stretch; height: 34px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
}
.ct-home {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0 1.2rem;
  text-decoration: none;
  border-right: 1px solid var(--line-soft);
  transition: background .15s;
  flex-shrink: 0;
}
.ct-home:hover { background: rgba(59, 91, 146, 0.06); }
.ct-home-logo {
  font-size: 0.63rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--gold);
  white-space: nowrap;
}
.ct-vertical-badge {
  display: flex; align-items: center;
  padding: 0 1rem;
  font-size: 0.58rem; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-right: 1px solid var(--line-soft);
  white-space: nowrap;
}
.ct-vertical-badge .ct-badge-sep { margin: 0 0.45rem; color: rgba(59, 91, 146, 0.4); }
.ct-vertical-badge .ct-badge-name { color: var(--paper-2); }
.ct-country {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0 0.9rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--paper-2);
  border-right: 1px solid var(--line-soft);
  white-space: nowrap; flex-shrink: 0;
}
.ct-country svg { display: block; flex-shrink: 0; border: 1px solid rgba(10, 22, 17, 0.15); }
.ct-country .ct-country-name { color: var(--paper-2); font-weight: 500; }
.ct-right { display: flex; align-items: center; margin-left: auto; flex-shrink: 0; border-left: 1px solid var(--line-soft); }
.ct-status {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0 0.9rem;
  font-size: 0.55rem; letter-spacing: 0.09em;
  text-transform: uppercase; color: #2E8051;
  border-right: 1px solid var(--line-soft);
}
.ct-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); flex-shrink: 0; animation: ct-blink 2.2s ease-in-out infinite; }
@keyframes ct-blink { 0%, 100% { opacity: 1 } 50% { opacity: 0.22 } }
.ct-getstarted {
  display: flex; align-items: center;
  padding: 0 1rem;
  font-size: 0.55rem; letter-spacing: 0.11em;
  text-transform: uppercase; color: var(--gold);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.ct-getstarted:hover { background: rgba(59, 91, 146, 0.08); color: var(--gold-dim); }
.ct-burger-btn {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; padding: 0;
  border-left: 1px solid var(--line-soft);
  -webkit-tap-highlight-color: transparent;
}
.ct-burger-btn:active { background: rgba(59, 91, 146, 0.08); }
.ct-burger-btn span { display: block; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; transition: transform .25s, opacity .25s; }
.ct-burger-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ct-burger-btn.is-open span:nth-child(2) { opacity: 0; }
.ct-burger-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Backdrop behind the drawer — full-screen dim that closes the drawer when tapped */
.ct-drawer-backdrop {
  display: none; position: fixed; inset: 0; z-index: 9997;
  background: rgba(20, 24, 30, 0.45);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .2s ease;
}
.ct-drawer-backdrop.is-open { display: block; opacity: 1; }

.ct-drawer {
  position: fixed; top: 0; left: 0; right: 0;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 34px rgba(15, 22, 38, 0.16);
  z-index: 9998; max-height: 100vh; max-height: 100dvh; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* Closed state: hidden via translateY + visibility (transition support) */
  transform: translateY(-110%);
  visibility: hidden;
  transition: transform .26s cubic-bezier(.2,.7,.2,1), visibility 0s linear .26s;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.ct-drawer.is-open {
  transform: translateY(0);
  visibility: visible;
  transition: transform .26s cubic-bezier(.2,.7,.2,1), visibility 0s;
}

/* Drawer header — close button + brand mark, sticky at the top so it's reachable
   when the drawer scrolls. */
.ct-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: #FFFFFF; z-index: 2;
  padding-top: calc(0.85rem + env(safe-area-inset-top, 0));
}
.ct-drawer-head-brand { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--gold); letter-spacing: 0.05em; text-decoration: none; }
.ct-drawer-head-brand .sub { color: var(--paper-2); margin-left: 0.45rem; }
.ct-drawer-close {
  background: none; border: 0; cursor: pointer; width: 44px; height: 44px;
  font-size: 1.7rem; line-height: 1; color: var(--paper-2);
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px; -webkit-tap-highlight-color: transparent;
}
.ct-drawer-close:active { background: rgba(59, 91, 146, 0.08); color: var(--gold); }

.ct-drawer-sep {
  padding: 0.7rem 1.2rem 0.3rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold-dim);
  background: var(--ink-2);
  border-top: 1px solid var(--line-soft);
}
.ct-drawer a:not(.ct-drawer-cta) {
  display: flex; align-items: center;
  padding: 0.95rem 1.2rem; color: var(--paper-2);
  text-decoration: none; font-family: 'Inter', sans-serif;
  font-size: 1rem; font-weight: 400; line-height: 1.3;
  border-bottom: 1px solid var(--line-soft); min-height: 52px;
  -webkit-tap-highlight-color: rgba(59, 91, 146, 0.1);
}
.ct-drawer a:not(.ct-drawer-cta):active { background: rgba(59, 91, 146, 0.08); color: var(--gold); }
.ct-drawer a.ct-live { color: var(--gold); font-weight: 600; }
.ct-drawer a.ct-live::before { content: '●'; font-size: 0.5rem; margin-right: 0.55rem; opacity: 0.85; }
.ct-drawer-cta {
  display: block !important; margin: 1.2rem 1.2rem;
  padding: 1rem; background:var(--gold); color:#FFFFFF !important;
  text-align: center; font-weight: 700;
  font-size: 0.95rem; letter-spacing: 0.06em;
  border: 0 !important; border-radius: 3px;
  text-decoration: none;
  margin-bottom: calc(1.2rem + env(safe-area-inset-bottom, 0));
}
.ct-drawer-cta:active { background: var(--gold-light) !important; }

/* Body lock when drawer open — prevents background scrolling on iOS Safari */
body.ct-drawer-locked { overflow: hidden; touch-action: none; }

/* PAGE NAV */
nav.ct-page-nav {
  position: fixed; top: 34px; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; height: 58px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.cpn-logo { display: flex; align-items: baseline; gap: 0; text-decoration: none; flex-shrink: 0; white-space: nowrap; }
.cpn-logo-main { font-family: 'JetBrains Mono', monospace; font-size: 0.88rem; color: var(--gold); letter-spacing: 0.04em; }
.cpn-logo-sep { font-family: 'JetBrains Mono', monospace; font-size: 0.88rem; color: var(--gold-dim); margin: 0 0.15em; }
.cpn-logo-vertical { font-family: 'JetBrains Mono', monospace; font-size: 0.88rem; color: var(--paper-2); letter-spacing: 0.04em; }
.cpn-links { display: flex; align-items: center; height: 100%; flex: 1; padding-left: 1.5rem; }
.cpn-item { position: relative; height: 100%; display: flex; align-items: center; }
.cpn-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.73rem; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--paper-2); text-decoration: none;
  padding: 0 0.85rem; height: 100%;
  display: flex; align-items: center; gap: 0.25rem;
  cursor: pointer; background: none; border: 0;
  white-space: nowrap; transition: color .15s, border-color .15s;
  border-bottom: 2px solid transparent;
}
.cpn-btn:hover, .cpn-item:hover > .cpn-btn { color: var(--gold-dim); }
.cpn-btn.cpn-current,
a.cpn-btn[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
.cpn-caret { font-size: 0.55rem; opacity: 0.6; line-height: 1; transition: transform .15s; }
.cpn-item:hover .cpn-caret,
.cpn-btn[aria-expanded="true"] .cpn-caret { transform: rotate(180deg); opacity: 1; }
/* Dropdown: anchored to the parent .cpn-item (which is position:relative). The 3px
   negative left offset is the difference between the dropdown's 1.05rem item padding
   and the .cpn-btn's 0.85rem outer padding, so the dropdown labels read flush under
   the parent button text rather than under the centered button frame. */
.cpn-dd {
  display: none; position: absolute; top: 100%; left: -3px;
  min-width: 240px; background: #FFFFFF;
  border: 1px solid var(--line); border-top: 2px solid var(--gold);
  padding: 0.35rem 0; z-index: 600;
  box-shadow: 0 12px 32px rgba(26, 46, 34, 0.12);
  border-radius: 0 0 3px 3px;
}
.cpn-item:hover .cpn-dd, .cpn-dd.open { display: block; }
/* Hover bridge — keeps the dropdown open while the cursor crosses the gap between the
   button and the menu (otherwise the dd flickers shut on the way down). */
.cpn-item::before {
  content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 8px;
  background: transparent;
}
.cpn-dd a {
  display: block; padding: 0.46rem 1.05rem;
  font-family: 'Inter', sans-serif; font-size: 0.77rem;
  color: var(--paper-2); text-decoration: none;
  letter-spacing: 0.02em; transition: color .12s, background .12s;
  white-space: nowrap;
}
.cpn-dd a:hover { color: var(--gold-dim); background: rgba(59, 91, 146, 0.06); }
.cpn-dd a.ct-live { color: var(--gold); }
.cpn-dd a.ct-live::before { content: '●'; font-size: 0.42rem; margin-right: 0.45rem; vertical-align: middle; opacity: 0.8; }
.cpn-dd-rule { height: 1px; background: var(--line); margin: 0.28rem 0; }
.cpn-dd-label {
  padding: 0.42rem 1.05rem 0.12rem;
  font-family: 'JetBrains Mono', monospace; font-size: 0.57rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dim);
}
.cpn-ctas { display: flex; align-items: center; gap: 0.45rem; margin-left: 0.75rem; flex-shrink: 0; }
.cpn-cta-ghost {
  font-family: 'Inter', sans-serif; font-size: 0.7rem;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--paper-2); background: none; border: 1px solid var(--line);
  padding: 0.35rem 0.8rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.cpn-cta-ghost:hover { color: var(--gold-dim); border-color: var(--gold); }
.cpn-cta-primary {
  font-family: 'Inter', sans-serif; font-size: 0.7rem;
  letter-spacing: 0.07em; text-transform: uppercase;
  color:#FFFFFF;background:var(--gold); border: none;
  padding: 0.38rem 0.95rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s;
}
.cpn-cta-primary:hover { background: var(--gold-light); color: var(--paper); }

/* Tablet — desktop nav links + CTA fold into the burger at 1080px so we never have a
   dead zone where Tools is missing but the burger isn't there yet. */
@media (max-width: 1080px) {
  .cpn-links, .cpn-ctas { display: none !important; }
  nav.ct-page-nav { padding: 0 1.2rem; height: 56px; }
  .ct-burger-btn { display: flex; }
  .ct-status, .ct-vertical-badge, .ct-country, .ct-getstarted { display: none; }
}

/* Phone — page nav padding, logo size, drawer item padding tightened */
@media (max-width: 720px) {
  nav.ct-page-nav { padding: 0 0.9rem; height: 54px; }
  .cpn-logo-main, .cpn-logo-sep, .cpn-logo-vertical { font-size: 0.78rem; }
  .ct-drawer a:not(.ct-drawer-cta) { padding: 0.85rem 1rem; min-height: 48px; }
  .ct-drawer-sep { padding: 0.6rem 1rem 0.25rem; }
  .ct-drawer-head { padding-left: 1rem; padding-right: 0.5rem; }
  .ct-drawer-cta { margin: 1rem 1rem; padding: 0.95rem; }
}

/* Compact handsets — even tighter */
@media (max-width: 380px) {
  nav.ct-page-nav { padding: 0 0.7rem; }
  .cpn-logo-vertical { display: none; } /* hide "/ Real Estate" suffix on very narrow screens */
}

/* ============================================================
   MOBILE LAYOUT POLISH — under 720px
   - Section padding tightened
   - Hero text scales down, pads less
   - Tool covers stack
   - IRR calculator: panels stack, action row wraps, stat cards 2-col
   - Tables become horizontally scrollable
   ============================================================ */
@media (max-width: 720px) {
  /* Sections / containers */
  section.sec, .sec { padding-left: 0; padding-right: 0; }
  .container, .wrap { padding-inline: 1rem; padding-left: 1rem; padding-right: 1rem; }

  /* Hero */
  .hero { min-height: auto; padding: 5rem 1.1rem 3rem; }
  .hero h1 { font-size: 2rem !important; line-height: 1.15 !important; }
  .hero-sub { font-size: 0.92rem !important; line-height: 1.5; }
  .hero-cta-row { flex-direction: column; gap: 0.6rem; align-items: stretch; }
  .hero-cta-row > * { width: 100%; text-align: center; box-sizing: border-box; }

  /* Tool cover hero (offices/retrofit calculators) */
  .page-head.cover { padding-top: 6.5rem !important; padding-bottom: 1.5rem; }
  .cover-h1 { font-size: 1.7rem !important; line-height: 1.18 !important; }
  .cover-eyebrow { font-size: 0.65rem !important; }
  .cover-stats { grid-template-columns: 1fr 1fr !important; gap: 0.6rem !important; }
  .cover-stat { padding: 0.7rem 0.8rem !important; }
  .cover-stat-num { font-size: 1rem !important; }
  .cover-stat-lbl { font-size: 0.62rem !important; }
  .cover-actions { flex-wrap: wrap; gap: 0.4rem !important; }
  .cover-btn { flex: 1 1 calc(50% - 0.2rem); min-width: 0; padding: 0.7rem 0.55rem !important; font-size: 0.62rem !important; min-height: 42px; }
  .cover-btn-primary { flex: 1 1 100%; }

  /* Tool input/output panels — already stacked at 1100px via body.irr-wide rules; here we
     reduce padding and make number inputs full-width for thumb reach. */
  body.irr-wide .tool-shell { gap: 1rem !important; }
  body.irr-wide .tool-inputs, body.irr-wide .tool-output { padding: 1.2rem 0.95rem !important; }
  .field input[type="number"], .field input[type="text"], .field input[type="email"],
  .field input[type="tel"], .field select, .field textarea { font-size: 16px; min-height: 44px; } /* iOS won't auto-zoom on >=16px */
  .seg label, .country-seg label { padding: 0.7rem 0.5rem; min-height: 44px; }

  /* IRR output sub-grids: tighter columns + smaller labels */
  body.irr-wide #officesGrid {
    grid-template-columns: minmax(0, 1.3fr) 80px 80px !important;
    font-size: 0.72rem !important;
  }
  body.irr-wide #yoyGrid {
    grid-template-columns: 36px repeat(4, minmax(0, 1fr)) !important;
    font-size: 0.65rem !important;
  }
  body.irr-wide .cmp3-cell { padding: 0.35rem 0.4rem !important; min-height: 32px !important; }

  /* Wrap any wide table */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }

  /* Three-up grids on the home page */
  .who-grid, .tools-grid, .agents-grid, .cta-grid { grid-template-columns: 1fr !important; }

  /* Section headings */
  .section-head h2 { font-size: 1.7rem !important; line-height: 1.2; }
  .section-head p { font-size: 0.92rem !important; }

  /* Page-head spacer — account for new mobile nav height (54px) + status bar if present */
  .page-head { padding-top: 5.5rem; }
  .page-head.cover { padding-top: 6rem !important; }

  /* Footer */
  footer.footer, footer { padding: 1.5rem 1rem !important; }
  .footer-links { flex-direction: column; gap: 0.5rem !important; align-items: flex-start; }
}

/* Phone landscape / very small screens */
@media (max-width: 480px) {
  .cover-stats { grid-template-columns: 1fr !important; }
  .cover-stat { text-align: left; }
  .cover-btn { flex: 1 1 100%; }
  .hero h1 { font-size: 1.7rem !important; }
}

/* SIGNAL TICKER */
.ticker {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0; overflow: hidden;
  display: flex; align-items: center; margin-top: 92px;
}
.ticker-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold);
  padding: 0 1.5rem; border-right: 1px solid var(--line);
  white-space: nowrap; flex-shrink: 0;
}
.ticker-track { flex: 1; overflow: hidden; }
.ticker-inner { display: flex; gap: 3rem; animation: ticker 38s linear infinite; width: max-content; }
.ticker-item { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; color: var(--paper-2); letter-spacing: 0.04em; white-space: nowrap; }
.ticker-item .tv { color: #2E8051; }
@keyframes ticker { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* HERO */
.hero {
  min-height: 92vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 6rem 2rem 5rem;
  position: relative; overflow: hidden; background: #FFFFFF;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(59, 91, 146, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 91, 146, 0.10) 1px, transparent 1px);
  background-size: 72px 72px;
}
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, transparent 20%, #FFFFFF 75%);
}
.hero-content { position: relative; z-index: 1; max-width: 920px; }
.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.75rem;
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: ''; display: block; width: 30px; height: 1px; background: var(--gold-dim);
}
.hero h1 { font-size: clamp(2.5rem, 6.5vw, 5.6rem); margin-bottom: 1.75rem; }
.hero-sub {
  font-size: clamp(0.95rem, 1.7vw, 1.15rem);
  font-weight: 300; color: var(--paper-2);
  line-height: 1.85; max-width: 620px; margin: 0 auto 2.5rem;
}
.hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }

/* BUTTONS */
.btn-primary {
  background:var(--gold);color:#FFFFFF;
  padding: 0.9rem 2.1rem; font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 500;
  border: none; cursor: pointer; font-family: 'Inter', sans-serif;
  transition: background .2s; text-decoration: none; display: inline-block;
}
.btn-primary:hover { background: var(--gold-light); color: var(--paper); }
.btn-ghost {
  background: transparent; color: var(--paper);
  padding: 0.9rem 2.1rem; font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 500;
  border: 1px solid var(--line); cursor: pointer; font-family: 'Inter', sans-serif;
  text-decoration: none; display: inline-block;
  transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-dim); }
@media (max-width: 640px) {
  .btn-primary, .btn-ghost { width: 100%; max-width: 340px; text-align: center; }
}

/* SECTIONS */
section.sec { padding: 6rem 2rem; background: #FFFFFF; }
section.sec.alt { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold-dim);
  margin-bottom: 1.25rem;
}
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head .section-label { display: inline-block; }
.section-head p { font-size: 1rem; margin-top: 1rem; color: var(--paper-2); }
.body-p {
  font-size: 0.95rem; font-weight: 300; color: var(--paper-2);
  line-height: 1.85; max-width: 620px; margin-bottom: 1rem;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; margin-top: 3rem; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 2.5rem; } }

.stat-stack { display: flex; flex-direction: column; gap: 1.25rem; }
.stat-box { background: #FFFFFF; border: 1px solid var(--line); padding: 1.25rem 1.5rem; display: flex; align-items: flex-start; gap: 1.25rem; }
.stat-val { font-family: 'Source Serif 4', serif; font-size: 2.2rem; font-weight: 700; color: var(--gold); white-space: nowrap; line-height: 1; }
.stat-text { font-size: 0.8rem; color: var(--paper-2); line-height: 1.65; font-weight: 300; padding-top: 0.2rem; }

.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5px; background: var(--line); margin-top: 3rem; }
@media (max-width: 900px) { .steps-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .steps-grid { grid-template-columns: 1fr; } }
.step { background: #FFFFFF; padding: 2rem 1.5rem; }
.step-num { font-family: 'JetBrains Mono', monospace; font-size: 0.63rem; color: var(--gold-dim); letter-spacing: 0.1em; margin-bottom: 0.75rem; text-transform: uppercase; }
.step-title { font-family: 'Source Serif 4', serif; font-size: 1.05rem; margin-bottom: 0.6rem; font-weight: 700; color: var(--paper); }
.step-body { font-size: 0.78rem; color: var(--paper-2); line-height: 1.7; font-weight: 300; }

.verts-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; background: var(--line); border: 1px solid var(--line); margin-top: 3rem; }
@media (max-width: 900px) { .verts-3 { grid-template-columns: 1fr; } }
.vc { background: #FFFFFF; padding: 2.25rem 1.85rem; display: flex; flex-direction: column; gap: 0.7rem; text-decoration: none; color: inherit; transition: background .2s; border-bottom: 3px solid transparent; }
.vc:hover { background: var(--ink-2); border-bottom-color: var(--gold); }
.vc-num { font-family: 'JetBrains Mono', monospace; font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-dim); }
.vc-name { font-family: 'Source Serif 4', serif; font-size: 1.4rem; font-weight: 700; line-height: 1.15; color: var(--paper); }
.vc-desc { font-size: 0.82rem; color: var(--paper-2); line-height: 1.65; font-weight: 300; flex: 1; }
.vc-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.5rem; }
.vc-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.55rem; color: var(--gold-dim); border: 1px solid var(--line); padding: 0.18rem 0.55rem; letter-spacing: 0.06em; background: #FFFFFF; }
.vc-arrow { margin-top: auto; padding-top: 1.25rem; font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; color: var(--gold); letter-spacing: 0.1em; }

.tiles-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5px; background: var(--line); border: 1px solid var(--line); margin-top: 2.5rem; }
@media (max-width: 900px) { .tiles-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tiles-4 { grid-template-columns: 1fr; } }
.tile { background: #FFFFFF; padding: 1.85rem 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; text-decoration: none; color: inherit; transition: background .2s; }
.tile:hover { background: var(--ink-2); }
.tile-icon { font-size: 1.3rem; color: var(--gold); margin-bottom: 0.2rem; }
.tile-num { font-family: 'JetBrains Mono', monospace; font-size: 0.55rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-dim); }
.tile-name { font-family: 'Source Serif 4', serif; font-size: 1.15rem; font-weight: 700; color: var(--paper); line-height: 1.2; }
.tile-desc { font-size: 0.78rem; color: var(--paper-2); line-height: 1.65; font-weight: 300; flex: 1; }
.tile-arrow { margin-top: 0.75rem; font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; color: var(--gold); letter-spacing: 0.1em; }

.quote-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 5rem 2rem; text-align: center; background: var(--ink-2); }
.quote-mark { font-family: 'Source Serif 4', serif; font-size: 4rem; color: var(--gold); line-height: 0.5; margin-bottom: 1rem; }
.quote-text { font-family: 'Source Serif 4', serif; font-size: clamp(1.25rem, 2.6vw, 1.85rem); font-style: italic; max-width: 760px; margin: 0 auto 1.5rem; line-height: 1.45; color: var(--paper); }
.quote-attr { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold-dim); }

/* PAGE HEAD */
.page-head { padding: 7rem 2rem 4rem; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; background: #FFFFFF; }
.page-head::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(59, 91, 146, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 91, 146, 0.08) 1px, transparent 1px);
  background-size: 64px 64px; z-index: 0;
}
.page-head .container { position: relative; z-index: 1; }
.page-head .crumb { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 1rem; }
.page-head .crumb a { color: var(--gold-dim); }
.page-head .crumb a:hover { color: var(--gold); }
.page-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin-bottom: 1rem; }
.page-head .sub { max-width: 720px; font-size: 1rem; font-weight: 300; color: var(--paper-2); line-height: 1.85; }

/* TOOL SHELL */
.tool-shell { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5px; background: var(--line); border: 1px solid var(--line); margin-top: 3rem; }
@media (max-width: 980px) { .tool-shell { grid-template-columns: 1fr; } }
.tool-inputs, .tool-output { background: #FFFFFF; padding: 2.5rem 2rem; }
.tool-output { background: var(--ink-2); }
.tool-inputs h3, .tool-output h3, .tool-inputs h4, .tool-output h4 { color: var(--paper); }

.field { margin-bottom: 1.6rem; }
.field label { display: block; font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 0.5rem; }
.field .help { font-size: 0.74rem; color: var(--muted); margin-top: 0.5rem; font-weight: 300; line-height: 1.55; }

input[type="text"], input[type="number"], input[type="email"], select, textarea {
  width: 100%; padding: 0.85rem 0.9rem;
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 0;
  color: var(--paper); font-family: 'Inter', sans-serif;
  font-size: 0.92rem; outline: none; transition: border-color .15s;
  min-height: 44px; box-sizing: border-box;
}
input[type="text"]:focus, input[type="number"]:focus, input[type="email"]:focus, select:focus, textarea:focus { border-color: var(--gold); }
input::placeholder { color: var(--muted); }
@media (max-width: 900px) {
  input[type="text"], input[type="number"], input[type="email"], select, textarea { font-size: 16px; }
}

input[type="range"] {
  width: 100%; -webkit-appearance: none; appearance: none;
  height: 4px; background: var(--ink-3); border-radius: 2px; outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; background: var(--gold);
  cursor: pointer; border-radius: 0;
  border: 2px solid #FFFFFF; box-shadow: 0 0 0 1px var(--line);
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; background: var(--gold);
  cursor: pointer; border-radius: 0; border: 2px solid #FFFFFF;
}

.range-row { display: flex; align-items: center; gap: 1rem; }
.range-row .val { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: var(--gold-dim); font-weight: 500; min-width: 60px; text-align: right; }

.input-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 540px) { .input-pair { grid-template-columns: 1fr; } }

.seg { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: #FFFFFF; }
.seg label {
  display: block; text-align: center; padding: 0.6rem 0.4rem;
  font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 0.06em;
  cursor: pointer; color: var(--paper-2); border-right: 1px solid var(--line);
  margin: 0; transition: background .15s, color .15s;
}
.seg label:last-child { border-right: 0; }
.seg input[type="radio"] { display: none; }
.seg input[type="radio"]:checked + label { background:var(--gold);color:#FFFFFF; font-weight: 500; }
.toggle-row { display: flex; gap: 0.5rem; }
.toggle-row .seg { flex: 1; grid-template-columns: repeat(2, 1fr); }

.advanced { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px dashed var(--line); }
.advanced summary {
  cursor: pointer; font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-dim); margin-bottom: 1rem; list-style: none;
}
.advanced summary::-webkit-details-marker { display: none; }
.advanced summary::before { content: '▸ '; }
.advanced[open] summary::before { content: '▾ '; }

.checkbox-row {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; color: var(--paper-2);
  margin-top: -0.6rem; margin-bottom: 1.25rem;
}
.checkbox-row input[type="checkbox"] { width: 14px; height: 14px; accent-color: var(--gold); }

.headline {
  background: #FFFFFF; border: 1px solid var(--line); border-top: 3px solid var(--gold);
  padding: 1.75rem 1.85rem; margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(59, 91, 146, 0.06);
}
.headline .hl-lbl { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.headline .hl-num { font-family: 'Source Serif 4', serif; font-size: clamp(2rem, 5vw, 3rem); line-height: 1; font-weight: 700; color: var(--paper); }
.headline .hl-sub { font-size: 0.82rem; font-family: 'JetBrains Mono', monospace; color: var(--muted); margin-top: 0.7rem; letter-spacing: 0.04em; }

#yieldStrip { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5px; background: var(--line); border: 1px solid var(--line); margin-bottom: 1.5rem; }
.yield-card { background: #FFFFFF; padding: 1rem 1.2rem; }
.yield-card .lbl { font-family: 'JetBrains Mono', monospace; font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dim); }
.yield-card .num { font-family: 'Source Serif 4', serif; font-size: 1.5rem; color: var(--gold); font-weight: 700; margin-top: 0.3rem; }

.pl-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.pl-table tr { border-bottom: 1px solid var(--line-soft); }
.pl-table tr:last-child { border-bottom: 0; }
.pl-table td { padding: 0.55rem 0; vertical-align: baseline; }
.pl-table td:first-child { color: var(--paper-2); font-weight: 300; font-size: 0.82rem; }
.pl-table td.amt { text-align: right; font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; font-size: 0.84rem; color: var(--paper); white-space: nowrap; }
.pl-table tr.deduction td.amt { color: #b06a1f; }
.pl-table tr.sub td:first-child { color: var(--paper); font-weight: 500; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; padding-top: 0.85rem; padding-bottom: 0.55rem; }
.pl-table tr.sub td { border-top: 1px solid var(--line); padding-top: 0.65rem; padding-bottom: 0.55rem; background: rgba(59, 91, 146, 0.05); }
.pl-table tr.sub td.amt { color: var(--paper); font-weight: 500; }
.pl-table tr.subtotal td:first-child { color: var(--paper); font-weight: 500; font-size: 0.85rem; }
.pl-table tr.subtotal td { background: rgba(59, 91, 146, 0.05); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0.65rem 0; }
.pl-table tr.subtotal td.amt { color: var(--gold-dim); font-weight: 500; }
.pl-table tr.total td:first-child { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.pl-table tr.total td { border-top: 2px solid var(--gold); padding: 1rem 0; background: rgba(59, 91, 146, 0.08); }
.pl-table tr.total td.amt { font-family: 'Source Serif 4', serif; font-size: 1.25rem; font-weight: 700; color: var(--gold-dim); }

#compStrip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5px; background: var(--line); border: 1px solid var(--line); margin-top: 1rem; }
.cmp-cell { background: #FFFFFF; padding: 1rem 0.85rem; text-align: center; }
.cmp-cell.current { background: rgba(59, 91, 146, 0.10); border-top: 2px solid var(--gold); }
.cmp-tier { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dim); font-weight: 500; }
.cmp-cell.current .cmp-tier { color: var(--gold); }
.cmp-net { font-family: 'Source Serif 4', serif; font-size: 1.15rem; color: var(--paper); font-weight: 700; margin: 0.25rem 0; }
.cmp-cell.current .cmp-net { color: var(--gold-dim); }
.cmp-fee { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; color: var(--muted); letter-spacing: 0.04em; }

.note {
  font-size: 0.78rem; font-weight: 300; color: var(--paper-2);
  margin-top: 1.5rem; padding: 1rem 1.1rem;
  background: rgba(59, 91, 146, 0.06); border-left: 2px solid var(--gold); line-height: 1.7;
}

/* COMPLIANCE CHECKLIST */
.checklist-shell { display: grid; grid-template-columns: 280px 1fr; gap: 2.5rem; margin-top: 3rem; }
@media (max-width: 900px) { .checklist-shell { grid-template-columns: 1fr; } }

.cl-progress {
  position: sticky; top: 110px; align-self: start;
  background: #FFFFFF; border: 1px solid var(--line); border-top: 2px solid var(--gold);
  padding: 1.5rem; box-shadow: 0 1px 3px rgba(59, 91, 146, 0.06);
}
.cl-progress h4 { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 1rem; font-weight: 500; }
.cl-bar { width: 100%; height: 6px; background: var(--ink-3); overflow: hidden; margin-bottom: 0.6rem; }
.cl-bar-fill { height: 100%; background: var(--gold); width: 0%; transition: width 0.3s ease; }
.cl-progress .pct { font-family: 'Source Serif 4', serif; font-size: 1.6rem; color: var(--gold); font-weight: 700; line-height: 1; }
.cl-progress .lbl { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--muted); margin-top: 0.4rem; letter-spacing: 0.04em; }
.cl-progress .reset {
  margin-top: 1rem; background: transparent; border: 1px solid var(--line);
  padding: 0.35rem 0.7rem; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 0.7rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-2);
  transition: border-color .15s, color .15s;
}
.cl-progress .reset:hover { border-color: var(--gold); color: var(--gold-dim); }

.cl-section { background: #FFFFFF; border: 1px solid var(--line); margin-bottom: 1.25rem; }
.cl-section header { padding: 1rem 1.5rem; background: var(--ink-2); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.cl-section header h3 { color: var(--paper); margin: 0; font-family: 'Inter', sans-serif; font-size: 0.88rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.cl-section header .count { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--gold); letter-spacing: 0.06em; }

.cl-item { display: grid; grid-template-columns: 22px 1fr; gap: 0.85rem; padding: 1.1rem 1.5rem; border-top: 1px solid var(--line-soft); cursor: pointer; transition: background .12s; }
.cl-item:first-child { border-top: 0; }
.cl-item:hover { background: var(--ink-2); }
.cl-item input[type="checkbox"] {
  appearance: none; width: 16px; height: 16px;
  border: 1px solid var(--gold-dim); background: #FFFFFF;
  cursor: pointer; position: relative; margin: 3px 0 0;
  transition: border-color .15s, background .15s;
}
.cl-item input[type="checkbox"]:checked { background: var(--gold); border-color: var(--gold); }
.cl-item input[type="checkbox"]:checked::after {
  content: ''; position: absolute; left: 4px; top: 0px;
  width: 5px; height: 10px; border: solid #FFFFFF; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.cl-item.done .cl-text .ttl { text-decoration: line-through; color: var(--muted); opacity: 0.7; }
.cl-text .ttl { font-weight: 500; font-size: 0.9rem; color: var(--paper); display: block; margin-bottom: 0.3rem; line-height: 1.4; }
.cl-text .desc { font-size: 0.82rem; color: var(--paper-2); font-weight: 300; line-height: 1.7; }
.cl-text .meta { display: flex; gap: 0.4rem; margin-top: 0.55rem; flex-wrap: wrap; }
.cl-text .tag { font-family: 'JetBrains Mono', monospace; font-size: 0.55rem; padding: 0.18rem 0.5rem; background: rgba(59, 91, 146, 0.08); color: var(--gold-dim); border: 1px solid var(--line); letter-spacing: 0.06em; text-transform: uppercase; }
.cl-text .tag.crit { background: rgba(201, 79, 79, 0.08); color: #b04040; border-color: rgba(201, 79, 79, 0.25); }
.cl-text .tag.deadline { background: rgba(76, 175, 122, 0.10); color: #2E8051; border-color: rgba(76, 175, 122, 0.30); }

/* CASE STUDIES */
.case { background: #FFFFFF; border: 1px solid var(--line); display: grid; grid-template-columns: 0.95fr 1.05fr; margin-bottom: 1.5rem; transition: border-color .2s; }
.case:hover { border-color: var(--gold); }
@media (max-width: 880px) { .case { grid-template-columns: 1fr; } }
.case-img { background-size: cover; background-position: center; min-height: 280px; position: relative; border-right: 1px solid var(--line); }
@media (max-width: 880px) { .case-img { border-right: 0; border-bottom: 1px solid var(--line); } }
.case-img svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.case-img .badge {
  position: absolute; top: 1rem; left: 1rem;
  background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line);
  padding: 0.3rem 0.7rem; font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem; font-weight: 500; color: var(--gold-dim);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.case-body { padding: 2.25rem 2rem; }
.case-body h3 { margin-bottom: 0.4rem; color: var(--paper); }
.case-body .loc { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1.25rem; }
.case-body p { font-size: 0.88rem; color: var(--paper-2); line-height: 1.75; }

.case-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5px; margin: 1.5rem 0; background: var(--line); border: 1px solid var(--line); }
.case-stat { background: var(--ink-2); padding: 0.95rem 1rem; }
.case-stat .n { font-family: 'Source Serif 4', serif; font-size: 1.35rem; color: var(--gold); font-weight: 700; display: block; line-height: 1; }
.case-stat .l { font-family: 'JetBrains Mono', monospace; font-size: 0.55rem; color: var(--gold-dim); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.4rem; display: block; }
.case-stat .delta { display: inline-block; font-size: 0.7rem; color: #2E8051; font-weight: 500; margin-top: 0.3rem; }

.case-quote {
  border-left: 2px solid var(--gold); padding: 0.4rem 0 0.4rem 1rem;
  font-style: italic; font-family: 'Source Serif 4', serif;
  color: var(--paper); margin: 1.25rem 0 1rem;
  font-size: 1rem; line-height: 1.55;
}
.case-quote cite { display: block; font-family: 'JetBrains Mono', monospace; font-style: normal; font-size: 0.65rem; color: var(--gold-dim); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.6rem; }

.key-takeaways { background: var(--ink-2); border: 1px solid var(--line); padding: 1rem 1.25rem; margin-top: 1.25rem; }
.key-takeaways h4 { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem; }
.key-takeaways ul { list-style: none; padding: 0; margin: 0; }
.key-takeaways li { position: relative; padding: 0.4rem 0 0.4rem 1.1rem; color: var(--paper-2); font-size: 0.82rem; font-weight: 300; line-height: 1.65; border-bottom: 1px solid var(--line-soft); }
.key-takeaways li:last-child { border-bottom: 0; }
.key-takeaways li::before { content: '▸'; position: absolute; left: 0; color: var(--gold-dim); font-size: 0.75rem; }

/* EXAMPLES */
.examples-table { background: #FFFFFF; border: 1px solid var(--line); margin-bottom: 2rem; }
.examples-table .ex-head { background: var(--ink-2); padding: 1.5rem 1.85rem; border-bottom: 1px solid var(--line); }
.examples-table .ex-head h3 { color: var(--paper); margin-bottom: 0.3rem; font-size: 1.15rem; }
.examples-table .ex-head p { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--paper-2); letter-spacing: 0.04em; margin: 0; }

.ex-body { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1px; background: var(--line); }
@media (max-width: 800px) { .ex-body { grid-template-columns: 1fr; } }
.ex-col { background: #FFFFFF; padding: 1.25rem 1.4rem; font-size: 0.84rem; }
.ex-col.label { background: var(--ink-2); }
.ex-col .col-head { font-family: 'Source Serif 4', serif; font-size: 1.2rem; color: var(--gold); font-weight: 700; margin-bottom: 0.2rem; line-height: 1; }
.ex-col .col-sub { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; color: var(--gold-dim); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1.1rem; }
.ex-col.label .col-head { color: var(--paper); font-size: 0.9rem; }
.ex-col.label .col-sub { color: var(--muted); }
.ex-col .row { padding: 0.5rem 0; border-bottom: 1px solid var(--line-soft); display: flex; justify-content: flex-end; font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; font-variant-numeric: tabular-nums; color: var(--paper); }
.ex-col.label .row { justify-content: flex-start; font-family: 'Inter', sans-serif; color: var(--paper-2); font-weight: 300; }
.ex-col .row.sub { font-family: 'JetBrains Mono', monospace; font-weight: 500; color: var(--gold-dim); background: rgba(59, 91, 146, 0.07); padding: 0.6rem 0; margin: 0.3rem -1.4rem; padding-left: 1.4rem; padding-right: 1.4rem; border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
.ex-col.label .row.sub { background: var(--ink-3); color: var(--paper); font-family: 'Inter', sans-serif; font-weight: 500; }
.ex-col .row.tot { font-family: 'Source Serif 4', serif; font-size: 1.1rem; color: var(--gold-dim); font-weight: 700; border-bottom: 0; border-top: 2px solid var(--gold); padding-top: 0.8rem; margin-top: 0.4rem; }
.ex-col.label .row.tot { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--gold); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; }
.ex-col .row.deduct { color: #b06a1f; }

.takeaway { background: #FFFFFF; border: 1px solid var(--line); border-left: 2px solid var(--gold); padding: 1rem 1.25rem; margin: 1rem 0 3rem; }
.takeaway h4 { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.takeaway p { margin: 0; font-size: 0.84rem; color: var(--paper-2); font-weight: 300; line-height: 1.75; }

/* FAQ */
.faq details { background: #FFFFFF; border: 1px solid var(--line); margin-bottom: 0.6rem; }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 1.4rem; font-weight: 500; font-size: 0.92rem; color: var(--paper); position: relative; font-family: 'Inter', sans-serif; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 1.4rem; top: 50%; transform: translateY(-50%); font-size: 1.2rem; color: var(--gold); font-weight: 300; transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details[open] summary { border-bottom: 1px solid var(--line); color: var(--gold-dim); }
.faq .answer { padding: 1rem 1.4rem 1.25rem; color: var(--paper-2); font-size: 0.86rem; font-weight: 300; line-height: 1.75; }

/* FOOTER */
footer { background: #FFFFFF; border-top: 1px solid var(--line); padding: 2rem 3rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-logo { font-family: 'JetBrains Mono', monospace; color: var(--gold); font-size: 0.88rem; letter-spacing: 0.08em; }
.footer-links { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.footer-links a { font-family: 'Inter', sans-serif; font-size: 0.74rem; color: var(--paper-2); text-decoration: none; letter-spacing: 0.06em; transition: color .15s; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; color: var(--muted); letter-spacing: 0.06em; }
@media (max-width: 700px) { footer { flex-direction: column; text-align: center; padding: 1.5rem; } }

/* CONTACT FORM */
.contact-form { background: #FFFFFF; border: 1px solid var(--line); border-top: 2px solid var(--gold); padding: 2rem 1.85rem; box-shadow: 0 1px 3px rgba(59, 91, 146, 0.06); }
.contact-form .field label { color: var(--gold-dim); }

/* UTILITIES */
.center { text-align: center; }
.muted { color: var(--muted); }
.mt-2 { margin-top: 1.5rem; } .mt-3 { margin-top: 2rem; } .mt-4 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1.5rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 2.5rem; } }

/* MOBILE */
html, body { max-width: 100vw; overflow-x: hidden; }
@media (max-width: 980px) { .tool-shell { grid-template-columns: 1fr; } }
@media (max-width: 880px) {
  section.sec { padding: 3rem 1.25rem; }
  .container, .wrap { padding: 0 1.25rem; }
  .page-head { padding: 6rem 1.25rem 2.5rem; }
  .page-head h1 { font-size: clamp(1.9rem, 6.5vw, 2.6rem); }
  .page-head .sub { font-size: 0.92rem; line-height: 1.7; }
  .hero { padding: 5rem 1.25rem 3rem; min-height: auto; }
  .hero h1 { font-size: clamp(2rem, 9vw, 3.2rem); margin-bottom: 1.25rem; }
  .hero-sub { font-size: 0.92rem; line-height: 1.7; margin-bottom: 1.75rem; }
  .hero-actions { flex-direction: column; width: 100%; align-items: stretch; gap: 0.65rem; }
  .hero-actions .btn-primary, .hero-actions .btn-ghost { width: 100%; max-width: 360px; margin: 0 auto; padding: 0.85rem 1.5rem; }
  .tool-inputs, .tool-output { padding: 1.75rem 1.25rem; }
  .cost-block { padding: 1rem 1.1rem; }
  .checklist-shell { gap: 1.5rem; }
  .cl-progress { position: static; padding: 1.1rem 1.25rem; }
  .section-head { margin: 0 auto 2rem; }
  .section-head p { font-size: 0.92rem; }
  .two-col { gap: 2rem; margin-top: 2rem; }
  .stat-stack { gap: 0.8rem; }
  .stat-box { padding: 1rem 1.15rem; gap: 0.9rem; }
  .stat-val { font-size: 1.6rem; }
  .stat-text { font-size: 0.78rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .step { padding: 1.5rem 1.25rem; }
  .verts-3 { grid-template-columns: 1fr; }
  .tiles-4 { grid-template-columns: 1fr 1fr; }
  .quote-section { padding: 3rem 1.25rem; }
  .quote-text { font-size: clamp(1.05rem, 4vw, 1.4rem); }
  .cmp3 { overflow-x: auto; -webkit-overflow-scrolling: touch; border-left: 0; border-right: 0; }
  .cmp3-grid { grid-template-columns: 180px 130px 130px 130px; min-width: 600px; font-size: 0.78rem; }
  .cmp3-cell { padding: 0.5rem 0.75rem; font-size: 0.78rem; min-height: 36px; }
  .cmp3-cell.label { font-size: 0.78rem; line-height: 1.35; }
  .cmp3-cell.hdr { padding: 0.9rem 0.75rem 0.75rem; min-height: 100px; }
  .cmp3-cell.hdr .col-num { font-size: 0.5rem; margin-bottom: 0.3rem; }
  .cmp3-cell.hdr .col-head { font-size: 0.95rem; margin-bottom: 0.25rem; }
  .cmp3-cell.hdr .col-sub { font-size: 0.5rem; }
  .cmp3-cell.tot { font-size: 1rem; padding: 0.85rem 0.75rem; }
  .cmp3-cell.sec.label { font-size: 0.55rem; }
  .cmp3-cell.na { font-size: 0.7rem; }
  .cmp3 .cmp3-head { padding: 1rem 1.25rem; }
  .cmp3-scroll-hint { display: block; font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; letter-spacing: 0.1em; color: var(--gold-dim); text-transform: uppercase; text-align: right; margin: -0.5rem 0 0.5rem; padding: 0 0.25rem; }
  .cmp-headline { grid-template-columns: 1fr; gap: 1rem; padding: 1.1rem 1.25rem; }
  .cmp-headline .lead .val { font-size: 1.2rem; }
  .cmp-headline .delta { text-align: left; }
  .cmp-headline .delta strong { font-size: 1.15rem; }
  .examples-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ex-body { grid-template-columns: 180px 110px 110px 110px; min-width: 510px; }
  .ex-col { padding: 0.85rem 0.85rem; font-size: 0.76rem; }
  .ex-col .col-head { font-size: 1rem; }
  .ex-col .col-sub { font-size: 0.55rem; margin-bottom: 0.7rem; }
  .ex-col .row { font-size: 0.74rem; padding: 0.4rem 0; }
  .ex-col .row.tot { font-size: 0.95rem; padding-top: 0.65rem; }
  .ex-col .row.sub { padding: 0.5rem 0; margin: 0.25rem -0.85rem; padding-left: 0.85rem; padding-right: 0.85rem; }
  .examples-table .ex-head { padding: 1rem 1.25rem; }
  .examples-table .ex-head h3 { font-size: 1rem; }
  .examples-table .ex-head p { font-size: 0.7rem; }
  .case { grid-template-columns: 1fr; }
  .case-img { min-height: 200px; border-right: 0; border-bottom: 1px solid var(--line); }
  .case-body { padding: 1.5rem 1.25rem; }
  .case-stats { gap: 1px; padding: 0; }
  .case-stat { padding: 0.7rem 0.75rem; }
  .case-stat .n { font-size: 1.15rem; }
  .case-stat .l { font-size: 0.5rem; }
  .pl-table td { padding: 0.45rem 0; }
  .pl-table td:first-child { font-size: 0.78rem; }
  .pl-table td.amt { font-size: 0.78rem; }
  #compStrip { grid-template-columns: 1fr 1fr; }
  #yieldStrip { grid-template-columns: 1fr 1fr; }
  .trust .row, .pillars { grid-template-columns: 1fr; }
  .faq summary { padding: 0.9rem 1.1rem; font-size: 0.88rem; }
  .faq summary::after { right: 1.1rem; }
  .faq .answer { padding: 0.85rem 1.1rem 1rem; font-size: 0.82rem; }
  .headline { padding: 1.25rem 1.25rem; }
  .headline .hl-num { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .field { margin-bottom: 1.2rem; }
  .field label { font-size: 0.62rem; letter-spacing: 0.1em; }
  .field .help { font-size: 0.72rem; line-height: 1.5; }
  .seg label { padding: 0.55rem 0.3rem; font-size: 0.7rem; }
  .warn-banner { padding: 0.95rem 1.1rem; gap: 0.7rem; grid-template-columns: 22px 1fr; }
  .warn-banner .warn-icon { font-size: 1.1rem; }
  .warn-banner .warn-text { font-size: 0.8rem; line-height: 1.65; }
  footer { padding: 1.5rem 1.25rem; flex-direction: column; align-items: center; text-align: center; gap: 0.85rem; }
  .footer-links { justify-content: center; gap: 1rem; row-gap: 0.5rem; }
  .footer-links a { font-size: 0.7rem; }
  .footer-copy { font-size: 0.6rem; }
}
.cmp3-scroll-hint { display: none; }
@media (max-width: 640px) {
  .tiles-4 { grid-template-columns: 1fr; }
  .headline .hl-num { font-size: clamp(1.4rem, 8vw, 1.9rem); }
  .cmp3-grid { grid-template-columns: 160px 115px 115px 115px; min-width: 530px; }
  .cmp3-cell.hdr .col-head { font-size: 0.9rem; }
  .ex-body { grid-template-columns: 150px 95px 95px 95px; min-width: 450px; }
  .hero-sub { font-size: 0.88rem; }
  .ticker { padding: 0.45rem 0; }
  .ticker-label { font-size: 0.55rem; padding: 0 1rem; }
  .ticker-item { font-size: 0.6rem; }
  .callout, .alt > .container > div[style*="background"] { padding: 1.5rem 1.25rem !important; }
}
@media (max-width: 420px) {
  .container, .wrap { padding: 0 1rem; }
  section.sec { padding: 2.5rem 1rem; }
  .page-head { padding: 5.5rem 1rem 2rem; }
  .hero { padding: 4.5rem 1rem 2.5rem; }
  .hero h1 { font-size: clamp(1.8rem, 9vw, 2.6rem); }
  .cmp3-grid { grid-template-columns: 145px 105px 105px 105px; min-width: 480px; }
  .ex-body { grid-template-columns: 135px 88px 88px 88px; min-width: 410px; }
}

/* WARNING / DISCLAIMER BANNER */
.warn-banner {
  background: #FFF6E0; border: 1px solid #E8C97A; border-left: 4px solid #B06A1F;
  padding: 1.1rem 1.4rem; display: grid; grid-template-columns: 28px 1fr; gap: 1rem;
  margin: 0 auto; max-width: 1100px; align-items: start;
}
.warn-banner .warn-icon { font-family: 'JetBrains Mono', monospace; font-size: 1.3rem; color: #B06A1F; font-weight: 700; line-height: 1; margin-top: 2px; }
.warn-banner .warn-text { font-size: 0.86rem; color: #5A3D14; line-height: 1.7; font-weight: 300; }
.warn-banner .warn-text strong { color: #5A3D14; font-weight: 600; font-family: 'Inter', sans-serif; }
.warn-banner .warn-tag { display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: #B06A1F; margin-bottom: 0.25rem; font-weight: 600; }

.warn-strip { background: #FFF6E0; border-top: 1px solid #E8C97A; border-bottom: 1px solid #E8C97A; padding: 0.55rem 0; }
.warn-strip .container { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; letter-spacing: 0.06em; color: #5A3D14; }
.warn-strip strong { color: #B06A1F; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }

/* 3-WAY COMPARATOR */
.cmp3 { background: #FFFFFF; border: 1px solid var(--line); margin-top: 2rem; overflow: hidden; }
.cmp3 .cmp3-head { background: var(--ink-2); padding: 1.4rem 1.85rem; border-bottom: 1px solid var(--line); }
.cmp3 .cmp3-head h3 { color: var(--paper); margin-bottom: 0.3rem; font-size: 1.15rem; }
.cmp3 .cmp3-head p { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--paper-2); letter-spacing: 0.04em; margin: 0; }

.cmp3-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; }
@media (max-width: 880px) { .cmp3-grid { grid-template-columns: 1fr; } }

.cmp3-cell {
  background: #FFFFFF; padding: 0.6rem 1.2rem;
  border-bottom: 1px solid var(--line-soft);
  font-family: 'JetBrains Mono', monospace; font-size: 0.82rem;
  font-variant-numeric: tabular-nums; color: var(--paper);
  display: flex; align-items: center; justify-content: flex-end;
  text-align: right; white-space: nowrap; min-height: 38px;
}
.cmp3-cell.label { background: var(--ink-2); justify-content: flex-start; text-align: left; font-family: 'Inter', sans-serif; font-weight: 300; font-size: 0.84rem; color: var(--paper-2); white-space: normal; line-height: 1.4; border-right: 1px solid var(--line); }
.cmp3-cell.hdr { background: var(--ink-2); flex-direction: column; align-items: flex-start; text-align: left; padding: 1.2rem 1.2rem 1rem; border-bottom: 2px solid var(--line); white-space: normal; min-height: 110px; }
.cmp3-cell.hdr .col-num { font-family: 'JetBrains Mono', monospace; font-size: 0.55rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 0.4rem; }
.cmp3-cell.hdr .col-head { font-family: 'Source Serif 4', serif; font-size: 1.2rem; font-weight: 700; color: var(--paper); line-height: 1.15; margin-bottom: 0.35rem; }
.cmp3-cell.hdr .col-sub { font-family: 'JetBrains Mono', monospace; font-size: 0.55rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-dim); }
.cmp3-cell.hdr.label .col-head { font-family: 'Inter', sans-serif; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }

.cmp3-cell.sec { background: rgba(59, 91, 146, 0.10); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-top: 0.7rem; padding-bottom: 0.7rem; min-height: 32px; }
.cmp3-cell.sec.label { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 600; background: rgba(59, 91, 146, 0.10); }
.cmp3-cell.sub { background: rgba(59, 91, 146, 0.05); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 500; color: var(--gold-dim); }
.cmp3-cell.sub.label { font-family: 'Inter', sans-serif; font-weight: 500; color: var(--paper); text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.06em; }
.cmp3-cell.deduct { color: #b06a1f; }
.cmp3-cell.deduct.label { color: var(--paper-2); }
.cmp3-cell.tot { background: rgba(59, 91, 146, 0.10); border-top: 2px solid var(--gold); border-bottom: 0; padding: 1rem 1.2rem; font-family: 'Source Serif 4', serif; font-size: 1.2rem; font-weight: 700; color: var(--gold); }
.cmp3-cell.tot.label { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.cmp3-cell.na { font-family: 'Inter', sans-serif; font-style: italic; font-size: 0.78rem; color: var(--muted); letter-spacing: 0; }
.cmp3-cell.winner-col { background: rgba(59, 91, 146, 0.04); }
.cmp3-cell.winner-col.hdr { background: rgba(59, 91, 146, 0.10); border-bottom-color: var(--gold); }
.cmp3-cell.winner-col.hdr .col-num, .cmp3-cell.winner-col.hdr .col-head { color: var(--gold-dim); }
.cmp3-cell.winner-col.tot { background: rgba(59, 91, 146, 0.16); }
.cmp3-cell.winner-col.sec { background: rgba(59, 91, 146, 0.16); }
.cmp3-cell.winner-col.sub { background: rgba(59, 91, 146, 0.10); }

.cost-block { background: var(--ink-2); border: 1px solid var(--line); padding: 1.25rem 1.4rem; margin-top: 1.5rem; }
.cost-block .cost-block-head { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem; font-weight: 600; }
.cost-block .cost-block-sub { font-size: 0.78rem; color: var(--paper-2); margin-bottom: 1.25rem; font-weight: 300; line-height: 1.6; }

/* HOMEPAGE — audience cards, deep sections, agents, proof, DD */
.hero-cta-row { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-cta-row .btn-primary, .hero-cta-row .btn-ghost { padding: 0.85rem 1.7rem; }
.aud-tag { display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); background: rgba(59, 91, 146, 0.10); padding: 0.25rem 0.7rem; margin-bottom: 0.75rem; }
.aud-grid { display: grid; grid-template-columns: 1.05fr 1.05fr 0.9fr; gap: 1.5px; background: var(--line); border: 1px solid var(--line); margin-top: 2.5rem; align-items: stretch; }
@media (max-width: 900px) { .aud-grid { grid-template-columns: 1fr; } }
.aud-card { background: #FFFFFF; padding: 1.6rem 1.4rem; display: flex; flex-direction: column; text-decoration: none; color: inherit; min-height: 100%; }
.aud-card.primary { background: var(--ink-2); border-top: 3px solid var(--gold); }
.aud-card.secondary { background: var(--ink-3); border-top: 3px solid var(--gold-dim); }
.aud-card .aud-num { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 0.5rem; }
.aud-card h3 { font-family: 'Source Serif 4', serif; font-size: 1.25rem; color: var(--paper); font-weight: 700; line-height: 1.2; margin-bottom: 0.85rem; }
.aud-card .aud-promise { font-size: 0.92rem; font-weight: 500; color: var(--paper); margin-bottom: 0.85rem; line-height: 1.45; }
.aud-card .aud-pain-head { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dim); margin: 0.65rem 0 0.3rem; font-weight: 500; }
.aud-card ul { list-style: none; padding: 0; margin: 0 0 0.85rem; }
.aud-card ul li { font-size: 0.85rem; color: var(--paper-2); font-weight: 300; line-height: 1.55; padding: 0.22rem 0 0.22rem 0.85rem; position: relative; }
.aud-card ul li::before { content: '·'; position: absolute; left: 0; color: var(--gold); font-weight: 700; font-size: 0.95rem; line-height: 1; }
.aud-card .aud-cta { margin-top: auto; padding-top: 1rem; font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--gold); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }

.deep-section { background: var(--ink-2); border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: 2.5rem 2.25rem; margin-top: 1.5rem; }
.deep-section .deep-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; }
.deep-section h3 { font-family: 'Source Serif 4', serif; font-size: clamp(1.4rem, 2.6vw, 1.8rem); font-weight: 700; color: var(--paper); margin-bottom: 1rem; line-height: 1.2; }
.deep-section h3 em { font-style: italic; color: var(--gold); }
.deep-section .deep-lead { font-size: 1rem; color: var(--paper-2); font-weight: 300; line-height: 1.7; margin-bottom: 1.5rem; max-width: 720px; }
.deep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.85rem; margin-bottom: 1.5rem; }
@media (max-width: 700px) { .deep-grid { grid-template-columns: 1fr; gap: 1rem; } }
.deep-grid .deep-col-title { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 0.5rem; font-weight: 500; }

.agents-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; background: var(--line); border: 1px solid var(--line); margin-top: 2.5rem; }
@media (max-width: 900px) { .agents-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .agents-grid { grid-template-columns: 1fr; } }
.agent { background: #FFFFFF; padding: 1.6rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; transition: background .2s; }
.agent:hover { background: var(--ink-2); }
.agent .agent-num { font-family: 'JetBrains Mono', monospace; font-size: 0.55rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-dim); font-weight: 500; }
.agent .agent-name { font-family: 'Source Serif 4', serif; font-size: 1.1rem; color: var(--paper); font-weight: 700; line-height: 1.2; }
.agent .agent-desc { font-size: 0.84rem; color: var(--paper-2); font-weight: 300; line-height: 1.55; }
.agent .agent-status { margin-top: 0.4rem; font-family: 'JetBrains Mono', monospace; font-size: 0.58rem; letter-spacing: 0.1em; color: #2E8051; }
.agent .agent-status.soon { color: var(--muted); }

.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; background: var(--line); border: 1px solid var(--line); margin-top: 2.5rem; }
@media (max-width: 900px) { .proof-grid { grid-template-columns: 1fr; } }
.proof { background: #FFFFFF; padding: 1.85rem 1.6rem; display: flex; flex-direction: column; }
.proof .proof-num { font-family: 'JetBrains Mono', monospace; font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem; }
.proof .proof-name { font-family: 'Source Serif 4', serif; font-size: 1.2rem; color: var(--paper); font-weight: 700; line-height: 1.2; margin-bottom: 0.3rem; }
.proof .proof-meta { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; letter-spacing: 0.06em; color: var(--gold-dim); margin-bottom: 0.85rem; }
.proof .proof-block { margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px solid var(--line-soft); }
.proof .proof-block .lbl { font-family: 'JetBrains Mono', monospace; font-size: 0.55rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 0.3rem; }
.proof .proof-block .body { font-size: 0.84rem; color: var(--paper-2); font-weight: 300; line-height: 1.5; }

.dd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
@media (max-width: 900px) { .dd-grid { grid-template-columns: 1fr; } }
.dd-col h4 { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.85rem; padding-bottom: 0.65rem; border-bottom: 1px solid var(--line); font-weight: 600; }
.dd-col details { background: #FFFFFF; border: 1px solid var(--line); margin-bottom: 0.5rem; }
.dd-col summary { cursor: pointer; list-style: none; padding: 0.85rem 1rem; font-weight: 500; font-size: 0.85rem; color: var(--paper); position: relative; font-family: 'Inter', sans-serif; line-height: 1.4; }
.dd-col summary::-webkit-details-marker { display: none; }
.dd-col summary::after { content: '+'; position: absolute; right: 0.85rem; top: 0.85rem; font-size: 1rem; color: var(--gold); font-weight: 300; }
.dd-col details[open] summary { color: var(--gold-dim); border-bottom: 1px solid var(--line); }
.dd-col details[open] summary::after { content: '−'; }
.dd-col .dd-answer { padding: 0.75rem 1rem 1rem; font-size: 0.82rem; color: var(--paper-2); font-weight: 300; line-height: 1.65; }

.econ-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; }
@media (max-width: 700px) { .econ-grid { grid-template-columns: 1fr; gap: 0.85rem; } }
.econ { background: #FFFFFF; border: 1px solid var(--line); border-left: 3px solid var(--gold); padding: 1.6rem 1.5rem; display: flex; flex-direction: column; gap: 0.55rem; min-height: 200px; }
.econ .num { font-family: 'JetBrains Mono', monospace; font-size: 0.55rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-dim); font-weight: 600; }
.econ .stat { font-family: 'Source Serif 4', serif; font-size: 1.85rem; font-weight: 700; color: var(--gold); line-height: 1.05; margin-top: 0.15rem; }
.econ .stat em { font-style: italic; }
.econ .lbl { font-family: 'Source Serif 4', serif; font-size: 1.05rem; font-weight: 700; color: var(--paper); letter-spacing: -0.005em; line-height: 1.25; margin-top: 0.1rem; }
.econ .body { font-size: 0.85rem; color: var(--paper-2); font-weight: 300; line-height: 1.55; margin-top: auto; padding-top: 0.6rem; border-top: 1px solid var(--line-soft); }

.benefit-rows { display: grid; grid-template-columns: 1fr; gap: 0; margin-bottom: 1rem; }
.benefit-row { display: grid; grid-template-columns: 28px 1fr; gap: 0.85rem; padding: 0.6rem 0; border-bottom: 1px solid var(--line-soft); align-items: baseline; }
.benefit-row:last-child { border-bottom: 0; }
.benefit-row .b-num { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; letter-spacing: 0.06em; color: var(--gold); font-weight: 600; }
.benefit-row .b-body { font-size: 0.92rem; color: var(--paper-2); line-height: 1.5; font-weight: 400; }
.benefit-row .b-body strong { color: var(--paper); font-weight: 600; }

/* HOMEPAGE CLEANUP */
.btn-alt { background: transparent; color: var(--paper); padding: 0.9rem 2.1rem; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; border: 1px solid var(--gold); cursor: pointer; font-family: 'Inter', sans-serif; transition: background .2s, color .2s; text-decoration: none; display: inline-block; }
.btn-alt:hover { background:var(--gold);color:#FFFFFF; }
@media (max-width: 640px) { .btn-alt { width: 100%; max-width: 340px; text-align: center; } }

.stack-strip { max-width: 980px; margin: 1.85rem auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.stack-chip { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.08em; color: var(--gold-dim); background: var(--ink-2); border: 1px solid var(--line); padding: 0.4rem 0.85rem; }
.stack-arrow { max-width: 560px; margin: 1.4rem auto 0; text-align: center; }
.stack-arrow .lbl { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-dim); }
.stack-arrow .pill { margin-top: 0.65rem; background:var(--gold);color:#FFFFFF; font-family: 'Source Serif 4', serif; font-size: 1.1rem; font-weight: 700; padding: 0.7rem 1.25rem; display: inline-block; }

.sector-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 1rem; }
.sector-chip { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-dim); background: var(--ink-2); border: 1px solid var(--line); padding: 0.45rem 0.95rem; }
.sector-chip.live { color: var(--gold); background: rgba(59, 91, 146, 0.10); border-color: var(--gold); }

.section-head { margin-bottom: 2.25rem; }

.cta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; background: var(--line); border: 1px solid var(--line); margin-top: 2.5rem; }
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; } }
.cta-card { background: var(--ink-2); border-top: 3px solid var(--gold); padding: 2rem 1.6rem; display: flex; flex-direction: column; text-decoration: none; color: inherit; min-height: 220px; transition: background .2s; }
.cta-card:hover { background: var(--ink-3); }
.cta-card.tertiary { border-top-color: var(--gold-dim); background: var(--ink-3); }
.cta-card .cta-num { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 0.5rem; }
.cta-card h3 { font-family: 'Source Serif 4', serif; font-size: 1.3rem; color: var(--paper); font-weight: 700; line-height: 1.2; margin-bottom: 0.8rem; }
.cta-card p { font-size: 0.92rem; color: var(--paper-2); line-height: 1.6; font-weight: 300; margin-bottom: 1.1rem; flex: 1; }
.cta-card .cta-link { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--gold); letter-spacing: 0.08em; font-weight: 600; margin-top: auto; }

/* COUNTRY SEGMENTED CONTROL */
.country-pick { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px dashed var(--line); min-width: 0; }
.country-pick-label { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 0.55rem; display: block; }
.country-pick-help { font-size: 0.78rem; color: var(--muted); margin-top: 0.55rem; font-weight: 300; line-height: 1.55; }
.country-seg {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px; background: var(--gold); border: 2px solid var(--gold); border-radius: 0;
  width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; overflow: hidden;
}
.country-seg input[type="radio"] { display: none; }
.country-seg label {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.85rem 0.4rem; background: #FFFFFF; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 0.88rem;
  color: var(--paper-2); font-weight: 500;
  transition: background .12s, color .12s;
  margin: 0; text-align: center; letter-spacing: 0.02em;
  /* Allow wrapping if needed; truncate with ellipsis as a last resort */
  white-space: normal; word-break: keep-all;
  min-width: 0; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.2;
}
.country-seg label svg { display: block; flex-shrink: 0; border: 1px solid rgba(10, 22, 17, 0.18); }
.country-seg label:hover { background: var(--ink-2); color: var(--paper); }
.country-seg input[type="radio"]:checked + label { background:var(--gold);color:#FFFFFF; font-weight: 600; }
/* Tablet — input panel narrower, scale label down */
@media (max-width: 900px) {
  .country-seg label { font-size: 0.82rem; padding: 0.75rem 0.3rem; gap: 0.3rem; }
  .country-seg label svg { width: 18px; height: 12px; }
}
/* Phone — even tighter */
@media (max-width: 540px) {
  .country-seg label { padding: 0.7rem 0.25rem; font-size: 0.74rem; gap: 0.28rem; }
  .country-seg label svg { width: 16px; height: 11px; }
}

/* ASSET CLASS TAXONOMY */
.asset-block { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.asset-block:first-of-type { border-top: 0; padding-top: 0; }
.asset-block-head { display: flex; align-items: baseline; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.asset-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); background: rgba(59, 91, 146, 0.10); border: 1px solid var(--gold); padding: 0.5rem 0.95rem; font-weight: 600; white-space: nowrap; }
.asset-block-lead { font-size: 0.95rem; color: var(--paper-2); font-weight: 300; line-height: 1.6; flex: 1; min-width: 280px; }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5px; background: var(--line); border: 1px solid var(--line); }
.asset-card { background: var(--ink-2); padding: 1.6rem 1.4rem; display: flex; flex-direction: column; text-decoration: none; color: inherit; border-top: 3px solid var(--ink-4); transition: background .2s, border-color .2s; min-height: 230px; }
.asset-card.live { border-top-color: var(--gold); background: var(--ink); }
.asset-card.live:hover { background: var(--ink-3); border-top-color: var(--gold-light); }
.asset-card .asset-num { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 0.5rem; }
.asset-card .asset-name { font-family: 'Source Serif 4', serif; font-size: 1.35rem; font-weight: 700; color: var(--paper); line-height: 1.15; margin-bottom: 0.7rem; }
.asset-card .asset-desc { font-size: 0.86rem; color: var(--paper-2); line-height: 1.6; font-weight: 300; margin-bottom: 1rem; flex: 1; }
.asset-card .asset-tools { font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; letter-spacing: 0.05em; color: var(--muted); padding: 0.55rem 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); margin-bottom: 0.85rem; }
.asset-card.live .asset-tools { color: var(--paper-2); }
.asset-card .asset-tools strong { color: var(--gold); }
.asset-card .asset-tools a { color: var(--gold-dim); text-decoration: underline; text-underline-offset: 2px; }
.asset-card .asset-tools a:hover { color: var(--gold); }
.asset-card .asset-cta { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 0.08em; font-weight: 600; color: var(--gold); margin-top: auto; }
.asset-card .asset-cta.asset-soon { color: var(--muted); font-style: italic; font-weight: 400; }
@media (max-width: 720px) {
  .asset-block-head { flex-direction: column; gap: 0.75rem; }
  .asset-card { min-height: 200px; padding: 1.3rem 1.1rem; }
  .asset-card .asset-name { font-size: 1.2rem; }
}

/* OFFICES CALCULATOR — output components */
.cmp-headline-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5px; background: var(--line); border: 1px solid var(--line); margin-bottom: 1.5rem; }
@media (max-width: 600px) { .cmp-headline-row { grid-template-columns: 1fr; } }
.cmp-h-item { background: var(--ink-2); border-top: 3px solid var(--gold); padding: 1.4rem 1.2rem; }
.cmp-h-item.alt { border-top-color: var(--gold-dim); background: var(--ink-3); }
.cmp-h-item .cmp-h-lbl { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-dim); display: block; margin-bottom: 0.5rem; }
.cmp-h-item .cmp-h-num { font-family: 'Source Serif 4', serif; font-size: 2rem; font-weight: 700; color: var(--paper); line-height: 1.05; display: block; }
.cmp-h-item .cmp-h-sub { font-size: 0.85rem; color: var(--paper-2); font-weight: 300; display: block; margin-top: 0.4rem; line-height: 1.4; }

.yearone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 720px) { .yearone-grid { grid-template-columns: 1fr; } }
.yo-card { background: var(--ink-2); padding: 1.3rem 1.1rem; border-top: 3px solid var(--ink-4); }
.yo-card.alt { border-top-color: var(--gold); background: var(--ink); }
.yo-card .yo-lbl { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 0.5rem; display: block; }
.yo-card .yo-num { font-family: 'Source Serif 4', serif; font-size: 1.55rem; font-weight: 700; color: var(--paper); line-height: 1.1; display: block; }
.yo-card .yo-sub { font-size: 0.78rem; color: var(--muted); font-weight: 300; margin-top: 0.4rem; display: block; line-height: 1.45; }

.yield-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 900px) { .yield-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .yield-grid { grid-template-columns: 1fr; } }
.y-card { background: var(--ink-2); padding: 1.2rem 1rem; border-top: 3px solid var(--ink-4); }
.y-card.alt { border-top-color: var(--gold); background: var(--ink); }
.y-card .y-lbl { font-family: 'JetBrains Mono', monospace; font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 0.5rem; display: block; }
.y-card .y-num { font-family: 'Source Serif 4', serif; font-size: 1.4rem; font-weight: 700; color: var(--paper); line-height: 1.1; display: block; }
.y-card .y-sub { font-size: 0.74rem; color: var(--muted); font-weight: 300; margin-top: 0.35rem; display: block; }

/* ============================================================
   COVER PAGES — shared treatment for tool hero sections
   (Office IRR Analysis + Retrofit Cost Estimate). Slate brand,
   serif headline, stat-strip, primary/alt action buttons.
   ============================================================ */
.cover { background: linear-gradient(180deg, var(--ink-2) 0%, #FFFFFF 100%); border-bottom: 1px solid var(--line); }
.cover .container, .cover > div { max-width: 1480px; }

.cover-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.4rem; display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; }
.cover-eyebrow a { color: var(--slate); text-decoration: none; transition: color .15s; }
.cover-eyebrow a:hover { color: var(--slate-deep); text-decoration: underline; text-underline-offset: 2px; }
.cover-eyebrow-sep { color: var(--muted); opacity: 0.6; }
.cover-eyebrow-current { color: var(--paper); font-weight: 600; }

.cover-h1 { font-family: 'Source Serif 4', Georgia, serif; font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 700; line-height: 1.12; color: var(--paper); letter-spacing: -0.01em; margin: 0 0 1.1rem; }
.cover-h1 em { font-style: italic; color: var(--slate); font-weight: 600; }

.cover-sub { font-family: 'Inter', sans-serif; font-size: 1rem; line-height: 1.65; color: var(--paper-2); font-weight: 300; max-width: 920px; margin: 0 0 1.6rem; }
.cover-sub strong { color: var(--paper); font-weight: 600; }

.cover-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 2px; margin: 0 0 1.6rem; max-width: 1200px; }
.cover-stat { background: #FFFFFF; padding: 0.85rem 1rem; display: flex; flex-direction: column; gap: 0.15rem; }
.cover-stat-num { font-family: 'Source Serif 4', Georgia, serif; font-size: 1.05rem; font-weight: 700; color: var(--paper); line-height: 1.15; }
.cover-stat-lbl { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 500; line-height: 1.35; }

.cover-actions { display: flex; gap: 0.55rem; flex-wrap: wrap; align-items: center; margin: 0 0 0.7rem; }
.cover-btn { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.7rem 1.15rem; background: #FFFFFF; color: var(--paper); border: 1px solid var(--line); cursor: pointer; transition: border-color .15s, color .15s, background .15s, box-shadow .15s; display: inline-flex; align-items: center; gap: 0.45rem; min-height: 42px; font-weight: 600; border-radius: 2px; }
.cover-btn:hover { border-color: var(--slate); color: var(--slate-deep); background: var(--ink-2); }
.cover-btn-primary { background: var(--slate); color: #FFFFFF; border-color: var(--slate-deep); box-shadow: 0 1px 0 rgba(26, 31, 46, 0.05); }
.cover-btn-primary:hover { background: var(--slate-deep); color: #FFFFFF; box-shadow: 0 2px 6px rgba(42, 67, 115, 0.18); }
.cover-btn-alt { background: #FFFFFF; color: var(--slate-deep); border-color: var(--slate-light); }
.cover-btn-alt:hover { background: var(--ink-2); border-color: var(--slate); }

.cover-actions-meta { font-family: 'Inter', sans-serif; font-size: 0.78rem; color: var(--muted); font-weight: 300; line-height: 1.55; max-width: 920px; margin: 0; }

@media (max-width: 720px) {
  .cover-h1 { font-size: 1.7rem; line-height: 1.15; }
  .cover-sub { font-size: 0.92rem; }
  .cover-stats { grid-template-columns: 1fr 1fr; }
  .cover-stat { padding: 0.65rem 0.8rem; }
  .cover-actions { gap: 0.4rem; }
  .cover-btn { font-size: 0.65rem; padding: 0.6rem 0.85rem; min-height: 38px; }
}

/* IRR page — anchor the container to the LEFT edge so both panels fit on
   common screen widths without being centered (and right-edge cropped on
   narrow browsers). Use the full viewport width minus a small left/right
   margin. The 50/50 grid then divides the available width into two visible
   panels. */
/* Force the tool-shell to never exceed its container */
@media (max-width: 720px) {
  }

/* Pill counter on the "Previous simulations" cover button */
.cover-btn-pill { display: inline-block; min-width: 18px; padding: 1px 6px; margin-left: 0.3rem; background: var(--slate); color: #FFFFFF; font-size: 0.62rem; font-weight: 700; border-radius: 9px; text-align: center; line-height: 1.3; font-family: 'JetBrains Mono', monospace; }
.cover-btn-primary .cover-btn-pill { background: rgba(255,255,255,0.2); }

/* Executive summary card — sits inside the cover area, action-row buddy */
.exec-card { background: var(--ink-2); border: 1px solid var(--line); border-top: 3px solid var(--slate); border-radius: 2px; padding: 1rem 1.2rem 1.1rem; margin: 1.2rem 0 0; max-width: 1100px; }
.exec-card-head { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; padding-bottom: 0.55rem; border-bottom: 1px solid var(--line); margin-bottom: 0.7rem; }
.exec-card-icon { font-size: 0.95rem; color: var(--slate); }
.exec-card-title { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate-deep); font-weight: 700; }
.exec-card-meta  { font-family: 'Inter', sans-serif; font-size: 0.7rem; color: var(--muted); font-weight: 300; }
.exec-card-sub   { font-family: 'Inter', sans-serif; font-size: 0.78rem; line-height: 1.55; color: var(--paper-2); font-weight: 300; margin: 0 0 0.85rem; }
.exec-card-body  { background: #FFFFFF; border: 1px solid var(--line); padding: 0.9rem 1rem; min-height: 80px; font-family: 'Inter', sans-serif; font-size: 0.9rem; line-height: 1.6; color: var(--paper); border-radius: 2px; margin-bottom: 0.85rem; }
.exec-card-body p { margin: 0 0 0.7rem; }
.exec-card-body p:last-child { margin-bottom: 0; }
.exec-placeholder { color: var(--muted); font-style: italic; font-weight: 300; }
.exec-card-actions { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.exec-btn { font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; letter-spacing: 0.09em; text-transform: uppercase; padding: 0.55rem 0.85rem; background: #FFFFFF; color: var(--paper); border: 1px solid var(--line); cursor: pointer; transition: border-color .15s, color .15s, background .15s; display: inline-flex; align-items: center; gap: 0.35rem; min-height: 36px; font-weight: 600; border-radius: 2px; }
.exec-btn:hover { border-color: var(--slate); color: var(--slate-deep); background: var(--ink-2); }
.exec-btn-primary { background: var(--slate); color: #FFFFFF; border-color: var(--slate-deep); }
.exec-btn-primary:hover { background: var(--slate-deep); color: #FFFFFF; }
.exec-btn-danger { color: var(--red); }
.exec-btn-danger:hover { border-color: var(--red); background: rgba(184, 69, 69, 0.06); color: var(--red); }

/* ============================================================
   IRR PAGE LAYOUT — centred wrapper + responsive 2-col grid.
   Strategy (matches the layout-audit spec):
     • Wrapper: width: min(100%, 1440px); margin-inline: auto;
       padding-inline: clamp(16px, 3vw, 32px) — balanced gutters,
       no hard-coded left/right margins.
     • Grid: minmax(420px, 0.95fr) minmax(520px, 1.05fr) on desktop,
       both children min-width: 0 so they can shrink without overflow.
     • Stack to single column at <=1100px.
     • No overflow:hidden on parents (would clip the output panel).
     • Tables wrapped in .table-scroll for safe horizontal overflow.
   ============================================================ */
body.irr-wide { margin: 0; padding: 0; min-width: 0; }
body.irr-wide .container,
body.irr-wide .wrap {
  width: min(100%, 1440px) !important;
  max-width: 1440px !important;
  margin-inline: auto !important;
  padding-inline: clamp(16px, 3vw, 32px) !important;
  padding-left: clamp(16px, 3vw, 32px) !important;
  padding-right: clamp(16px, 3vw, 32px) !important;
  box-sizing: border-box;
}
body.irr-wide .tool-shell {
  display: grid !important;
  grid-template-columns: minmax(420px, 0.95fr) minmax(520px, 1.05fr) !important;
  gap: 1.5px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
  overflow: visible !important;
}
body.irr-wide .tool-inputs,
body.irr-wide .tool-output {
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 1.6rem 1.4rem !important;
  box-sizing: border-box;
  overflow: visible !important;
}
/* Output panel sub-grids — tighter columns so all 3 fit, label gets the slack */
body.irr-wide #officesGrid {
  grid-template-columns: minmax(0, 1fr) 110px 110px !important;
  width: 100% !important; max-width: 100% !important; min-width: 0 !important;
}
body.irr-wide #yoyGrid {
  grid-template-columns: 50px repeat(4, minmax(0, 1fr)) !important;
  width: 100% !important; max-width: 100% !important; min-width: 0 !important;
  font-size: 0.72rem !important;
}
body.irr-wide #yoyGrid .cmp3-cell { padding: 0.4rem 0.45rem !important; }
body.irr-wide .cmp3-grid { min-width: 0 !important; }
body.irr-wide .cmp3-cell { padding: 0.4rem 0.55rem !important; min-height: 26px !important; }
/* Tables that exceed panel width: scroll locally instead of pushing the page */
body.irr-wide .tool-output table,
body.irr-wide .tool-inputs table { max-width: 100%; }
body.irr-wide .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
body.irr-wide .tool-output .pr-tbl,
body.irr-wide .tool-output .cmp3-grid,
body.irr-wide .tool-output svg { max-width: 100%; }

/* Stack to single column at narrower than ~1100px (covers most laptops in split view) */
@media (max-width: 1100px) {
  body.irr-wide .tool-shell {
    grid-template-columns: 1fr !important;
  }
  body.irr-wide .tool-inputs,
  body.irr-wide .tool-output { padding: 1.4rem 1.1rem !important; }
}

@media (max-width: 720px) {
  body.irr-wide .container, body.irr-wide .wrap {
    padding-inline: 1rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}


/* Cover ASK panel — context-aware prompt sitting under the headline */
.cover-ask { margin: 0 0 1.5rem; max-width: 820px; }
.cover-ask-row { display: flex; gap: 0.5rem; align-items: stretch; background: #FFFFFF; border: 1px solid var(--line); border-radius: 2px; padding: 0.5rem; }
.cover-ask textarea { flex: 1; min-height: 56px; resize: vertical; border: 0; outline: none; font-family: 'Inter', sans-serif; font-size: 0.92rem; line-height: 1.5; color: var(--paper); padding: 0.4rem 0.6rem; background: transparent; }
.cover-ask textarea::placeholder { color: var(--muted); font-weight: 300; }
.cover-ask-send { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0 1.1rem; background: var(--slate); color: #FFFFFF; border: 1px solid var(--slate-deep); border-radius: 2px; cursor: pointer; font-weight: 600; transition: background .15s; flex-shrink: 0; }
.cover-ask-send:hover { background: var(--slate-deep); }
.cover-ask-send:disabled { background: var(--muted); cursor: not-allowed; opacity: 0.7; }
.cover-ask-meta { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; letter-spacing: 0.08em; color: var(--muted); margin-top: 0.4rem; display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.cover-ask-meta a { color: var(--slate); text-decoration: underline; text-underline-offset: 2px; }
.cover-ask-meta a:hover { color: var(--slate-deep); }
.cover-ask-reply { margin-top: 0.7rem; padding: 0.85rem 1rem; background: var(--ink-2); border-left: 3px solid var(--slate); font-size: 0.88rem; line-height: 1.65; color: var(--paper-2); white-space: pre-wrap; border-radius: 2px; }
.cover-ask-reply.is-error { border-left-color: var(--red); background: rgba(184, 69, 69, 0.04); color: #5a1e1e; }

@media (max-width: 720px) {
  .cover-ask-row { flex-direction: column; }
  .cover-ask-send { width: 100%; padding: 0.7rem 1rem; min-height: 42px; }
}

/* Contact subsection inside the IRR Inputs panel — slate-tinted card with
   a header tag + meta, distinct from the regular section-label so the user
   can scan that this group of fields prints on the PDF cover. */
.contact-section { background: var(--ink-2); border: 1px solid var(--line); border-left: 3px solid var(--slate); padding: 0.95rem 1rem 0.6rem; margin: 1.4rem 0 1rem; border-radius: 2px; }
.contact-section-head { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 0.85rem; padding-bottom: 0.55rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.contact-section-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate-deep); font-weight: 700; }
.contact-section-meta { font-family: 'Inter', sans-serif; font-size: 0.74rem; color: var(--paper-2); font-weight: 300; line-height: 1.45; flex: 1; min-width: 180px; }
.contact-section .field { margin-bottom: 0.85rem; }
.contact-section .field:last-child { margin-bottom: 0; }
.contact-section .field input { width: 100%; box-sizing: border-box; }

@media (max-width: 720px) {
  .contact-section-head { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
  .contact-section-meta { font-size: 0.7rem; }
}
