/* Base component styles. These replace the utility-framework layer that the
   original project loaded at build time, so the page needs no CSS toolchain. */

*, *::before, *::after { box-sizing: border-box; }
button { padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
svg { display: block; }

/* buttons */
.ui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) - 2px);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.ui-btn svg { width: 16px; height: 16px; }
.ui-btn-default { color: var(--primary-foreground); background: var(--primary); }
.ui-btn-default:hover { background: #005468; }
.ui-btn-outline { color: var(--ink); background: var(--surface); border-color: var(--input); }
.ui-btn-outline:hover { background: var(--accent); }
.ui-btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

/* inputs */
.ui-input {
  width: 100%;
  height: 36px;
  padding: 0 11px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--input);
  border-radius: calc(var(--radius) - 2px);
  outline: none;
}
.ui-input:focus { border-color: var(--ring); box-shadow: 0 0 0 3px rgba(96, 163, 168, .25); }

/* slider */
.ui-slider {
  position: relative;
  display: flex;
  align-items: center;
  height: 20px;
  touch-action: none;
  user-select: none;
  cursor: pointer;
}
.ui-slider-track { position: relative; width: 100%; height: 6px; overflow: hidden; background: var(--secondary); border-radius: 999px; }
.ui-slider-range { position: absolute; top: 0; left: 0; height: 100%; background: var(--primary); border-radius: 999px; }
.ui-slider-thumb {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transform: translate(-50%, -50%);
}
.ui-slider-thumb:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }

/* tabs */
.ui-tabs-list { display: flex; align-items: center; }
.ui-tab-trigger { position: relative; padding: 8px 12px; font-size: 14px; color: var(--muted-ink); }
.ui-tab-trigger::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 0; background: transparent; border-radius: 999px; }
.ui-tab-trigger:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

/* tables */
.ui-table-wrap { width: 100%; overflow-x: auto; }
.ui-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ui-th {
  padding: 10px 12px;
  color: var(--muted-ink);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.ui-td { padding: 12px; color: var(--ink); border-bottom: 1px solid var(--line); }
.ui-tbody .ui-tr:last-child .ui-td { border-bottom: 0; }

/* help trigger + tooltip */
.help-trigger { padding: 0; }
.ui-tooltip {
  position: fixed;
  z-index: 60;
  max-width: 20rem;
  padding: 9px 12px;
  color: #fff;
  background: var(--ink);
  border-radius: 9px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .24);
  font-size: 12px;
  line-height: 1.25rem;
  pointer-events: none;
}

/* charts */
.chart-root { position: relative; width: 100%; height: 100%; }
.chart-svg { display: block; }
.chart-legend {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  color: var(--muted-ink);
  font-size: 12px;
}
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.chart-legend i, .chart-tooltip-row i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.chart-tooltip {
  position: absolute;
  z-index: 5;
  min-width: 178px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(28, 70, 67, .16);
  font-size: 12px;
  pointer-events: none;
}
.chart-tooltip-title { margin: 0 0 6px; color: var(--deep); font-weight: 800; }
.chart-tooltip-row { display: flex; align-items: center; gap: 8px; margin: 4px 0; color: var(--muted-ink); }
.chart-tooltip-row b { margin-left: auto; color: var(--ink); }

/* Let grid tracks shrink below their content so wide tables scroll inside
   their card instead of stretching the page. */
.calculator-layout > *,
.scenario-results > *,
.weights-card,
.table-card,
.ltv-table-card { min-width: 0; }
.ui-table-wrap { max-width: 100%; }


/* ---- Project styles (from the original globals.css) ---- */
:root {
  --ink: #12312f;
  --muted-ink: #5b6f6c;
  --deep: #003f4d;
  --teal: #007f8f;
  --green: #4f8b47;
  --gold: #d29c46;
  --blue: #2570a7;
  --cream: #f7f8f3;
  --surface: #ffffff;
  --line: #d8e3e0;
  --warning: #a24b37;
  --warning-bg: #fff6f0;
  --background: #edf3f2;
  --foreground: var(--ink);
  --card: #ffffff;
  --card-foreground: var(--ink);
  --popover: #ffffff;
  --popover-foreground: var(--ink);
  --primary: var(--deep);
  --primary-foreground: #ffffff;
  --secondary: #e7efed;
  --secondary-foreground: var(--ink);
  --muted: #edf3f2;
  --muted-foreground: var(--muted-ink);
  --accent: #e2efec;
  --accent-foreground: var(--ink);
  --destructive: #a33a2e;
  --border: var(--line);
  --input: #cfdcda;
  --ring: #60a3a8;
  --radius: 0.75rem;
}



* { box-sizing: border-box; }
html { background: var(--background); }
body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 0%, rgba(0, 127, 143, 0.09), transparent 28rem),
    var(--background);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}
button, input { font: inherit; }

.app-shell { min-height: 100vh; }
.topbar {
  min-height: 80px;
  padding: 16px clamp(18px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(247, 248, 243, 0.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand-lockup { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, var(--deep), var(--teal));
  border-radius: 12px 12px 18px 12px;
  box-shadow: 0 10px 30px rgba(0, 63, 77, 0.18);
}
.brand-kicker { margin: 0 0 2px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.brand-lockup h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(21px, 2vw, 29px); font-weight: 600; letter-spacing: -.02em; }
.period-chip { padding: 8px 12px; color: var(--muted-ink); background: white; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; white-space: nowrap; }

.workspace { width: min(1510px, calc(100% - 32px)); margin: 0 auto; padding: 20px 0 42px; }
.nav-tabs {
  width: 100%;
  height: auto !important;
  padding: 0 4px 12px !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}
.nav-tabs button { min-width: max-content; flex: 0 0 auto !important; padding: 8px 13px; color: var(--muted-ink); }
.nav-tabs button[data-state="active"] { color: var(--deep); font-weight: 800; }
.nav-tabs button[data-state="active"]::after { background: var(--teal) !important; height: 3px !important; bottom: -13px !important; }
.tab-panel { padding-top: 22px; outline: none; }

.section-kicker, .eyebrow { margin: 0; font-size: 11px; font-weight: 800; line-height: 1.3; letter-spacing: .13em; text-transform: uppercase; }
.section-kicker { color: var(--teal); }
.eyebrow { color: var(--muted-ink); }

.executive-hero {
  min-height: 390px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, .72fr);
  gap: clamp(28px, 5vw, 78px);
  align-items: center;
  padding: clamp(32px, 5vw, 72px);
  overflow: hidden;
  color: white;
  background:
    linear-gradient(115deg, rgba(0, 63, 77, .98) 0%, rgba(0, 86, 98, .97) 58%, rgba(34, 115, 103, .93) 100%),
    var(--deep);
  border-radius: 28px 28px 70px 28px;
  box-shadow: 0 25px 70px rgba(0, 63, 77, .18);
}
.executive-hero .section-kicker { color: #aad9cd; }
.hero-copy h2 { max-width: 930px; margin: 10px 0 18px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(36px, 4.1vw, 66px); font-weight: 500; line-height: 1.02; letter-spacing: -.035em; }
.hero-summary { max-width: 870px; margin: 0; color: rgba(255,255,255,.78); font-size: clamp(16px, 1.4vw, 20px); line-height: 1.55; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 27px; }
.focus-button { height: 42px !important; color: var(--deep) !important; background: #d8eddf !important; border-radius: 999px !important; font-weight: 800 !important; }
.focus-button:hover { background: white !important; }
.model-badge { display: inline-flex; align-items: center; width: fit-content; padding: 7px 10px; color: #dcece8; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.model-warning { color: #7b5221; background: #fff6d8; border-color: #eed79f; }

.executive-simple { padding: clamp(26px, 4vw, 48px); background: white; border: 1px solid var(--line); border-radius: 26px 26px 52px 26px; box-shadow: 0 22px 65px rgba(0, 63, 77, .08); }
.executive-story { padding: clamp(28px, 4vw, 52px); color: white; background: linear-gradient(115deg, #003f4d 0%, #005f6c 62%, #277567 100%); border-radius: 20px 20px 42px 20px; }
.executive-story .section-kicker { color: #add8cf; }
.executive-story > h2 { max-width: 980px; margin: 10px 0 16px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 4.5vw, 62px); font-weight: 500; line-height: 1.02; letter-spacing: -.035em; }
.executive-lead { max-width: 1100px; margin: 0; color: rgba(255,255,255,.8); font-size: clamp(15px, 1.35vw, 19px); line-height: 1.62; }
.executive-thesis-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 30px; }
.executive-thesis-grid article { min-height: 190px; padding: 20px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 14px 14px 26px 14px; }
.executive-thesis-grid article > span { color: #a8d7cc; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.executive-thesis-grid h3 { margin: 13px 0 8px; font-size: 17px; line-height: 1.2; }
.executive-thesis-grid p { margin: 0; color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.55; }
.executive-thesis-grid .term-label { color: white; font-weight: 800; }
.executive-thesis-grid .help-trigger { color: white; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); }
.executive-simple-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.executive-story + .executive-simple-header { margin-top: 34px; }
.executive-simple-copy h2 { margin: 7px 0 9px; color: var(--deep); font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 4.2vw, 56px); font-weight: 500; line-height: 1.02; letter-spacing: -.03em; }
.executive-simple-copy > p:last-child { max-width: 650px; margin: 0; color: var(--muted-ink); font-size: 15px; line-height: 1.5; }
.executive-simple-toggle { min-width: 430px; padding: 16px; background: #f1f6f4; border: 1px solid #dce8e5; border-radius: 18px 18px 30px 18px; }
.executive-simple-toggle .plan-toggle { margin: 9px 0 0; }
.executive-toggle-group + .executive-toggle-group { margin-top: 14px; padding-top: 14px; border-top: 1px solid #d6e3e0; }
.executive-six { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.executive-six .metric-card { min-height: 205px; display: block; padding: 20px; }
.executive-six .metric-icon { margin-bottom: 18px; }
.executive-six .metric-value { font-size: clamp(28px, 2.3vw, 38px); }
.executive-baseline-note { margin: 20px 0 0; padding: 14px 16px; color: #5f6f6c; background: #f6f9f8; border-left: 4px solid var(--teal); border-radius: 6px 12px 12px 6px; font-size: 12px; line-height: 1.55; }
.executive-baseline-note strong { color: var(--deep); }
.dependencies-block { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.dependencies-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 18px; }
.dependencies-heading h3 { margin: 7px 0 0; color: var(--deep); font-family: Georgia, "Times New Roman", serif; font-size: clamp(26px, 2.5vw, 36px); font-weight: 500; line-height: 1.08; }
.dependencies-heading > p { max-width: 510px; margin: 0; color: var(--muted-ink); font-size: 12px; line-height: 1.55; text-align: right; }
.dependency-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dependency-grid article { min-height: 285px; padding: 22px; display: flex; flex-direction: column; background: #f8faf9; border: 1px solid var(--line); border-radius: 17px 17px 30px 17px; }
.dependency-grid article > svg { width: 35px; height: 35px; margin: 22px 0 15px; padding: 8px; color: var(--deep); background: #e5f0ed; border-radius: 10px; }
.dependency-type { width: fit-content; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.dependency-type.technical { color: #00566a; background: #dceff2; }
.dependency-type.strategic { color: #536b2f; background: #e9f1dc; }
.dependency-grid h4 { margin: 0 0 10px; color: var(--deep); font-size: 18px; line-height: 1.2; }
.dependency-grid article > p { margin: 0; color: var(--muted-ink); font-size: 12px; line-height: 1.6; }
.dependency-grid footer { margin-top: auto; padding-top: 18px; color: var(--teal); font-size: 11px; font-weight: 800; }

.decision-card { padding: 24px; color: var(--ink); background: rgba(255,255,255,.94); border-radius: 22px 22px 42px 22px; box-shadow: 0 20px 55px rgba(0,0,0,.14); }
.plan-toggle { margin: 14px 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.plan-toggle button { min-height: 42px; border-radius: 999px; font-size: 11px; font-weight: 900; }
.decision-budget { margin: 5px 0 15px; color: var(--deep); font-family: Georgia, "Times New Roman", serif; font-size: 46px; line-height: 1; }
.budget-stack { height: 38px; display: flex; overflow: hidden; color: white; border-radius: 8px 8px 16px 8px; font-size: 11px; font-weight: 800; }
.budget-stack div { display: grid; place-items: center; min-width: 34px; }
.stack-awareness { background: var(--teal); }
.stack-podcast { background: var(--green); }
.stack-app { background: var(--blue); }
.stack-testing { background: var(--gold); }
.budget-legend { margin: 16px 0 0; display: grid; gap: 9px; }
.budget-legend div { display: flex; justify-content: space-between; gap: 12px; }
.budget-legend dt { display: flex; align-items: center; gap: 8px; color: var(--muted-ink); font-size: 12px; }
.budget-legend dd { margin: 0; font-size: 12px; font-weight: 800; }
.dot { width: 8px; height: 8px; border-radius: 99px; }
.dot-awareness { background: var(--teal); }
.dot-podcast { background: var(--green); }
.dot-app { background: var(--blue); }
.dot-testing { background: var(--gold); }

.metrics-grid { display: grid; gap: 14px; margin-top: 16px; }
.four-up { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-card { min-height: 148px; display: grid; grid-template-columns: 40px 1fr; gap: 15px; padding: 22px; background: white; border: 1px solid var(--line); border-radius: 18px 18px 30px 18px; box-shadow: 0 10px 35px rgba(28, 70, 67, .045); }
.metric-icon { width: 40px; height: 40px; display: grid; place-items: center; color: var(--deep); background: #e5f0ed; border-radius: 12px; }
.metric-good .metric-icon { color: #2f6c3c; background: #e8f3e5; }
.metric-warning .metric-icon { color: var(--warning); background: #fff0e8; }
.metric-value { margin: 6px 0 4px; color: var(--deep); font-family: Georgia, "Times New Roman", serif; font-size: clamp(27px, 2.4vw, 38px); line-height: 1; }
.metric-detail { margin: 0; color: var(--muted-ink); font-size: 12px; line-height: 1.45; }
.executive-results-block { margin-top: 16px; padding: clamp(22px, 3vw, 34px); background: white; border: 1px solid var(--line); border-radius: 22px 22px 38px 22px; }
.results-heading { margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.results-heading h3 { margin: 5px 0 0; color: var(--deep); font-family: Georgia, "Times New Roman", serif; font-size: 30px; }
.executive-results { margin-top: 0; }
.performance-measurement-block { margin-top: 26px; padding-top: 8px; border-top: 1px solid var(--line); }

.executive-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.narrative-card, .chart-card, .table-card, .channel-plan-card, .app-path-card, .definitions-card, .source-card, .quality-card { padding: clamp(22px, 3vw, 34px); background: white; border: 1px solid var(--line); border-radius: 22px 22px 36px 22px; }
.warning-card { background: var(--warning-bg); border-color: #efd6c8; }
.card-heading, .panel-title { display: flex; align-items: flex-start; gap: 13px; }
.card-heading > svg, .panel-title > svg { flex: 0 0 auto; margin-top: 2px; color: var(--teal); }
.warning-card .card-heading > svg { color: var(--warning); }
.card-heading h3, .panel-title h3, .chart-heading h3 { margin: 4px 0 0; color: var(--deep); font-size: clamp(18px, 1.7vw, 25px); line-height: 1.2; }
.evidence-list { margin: 20px 0 0; padding: 0; display: grid; gap: 12px; list-style: none; }
.evidence-list li { position: relative; padding-left: 20px; color: var(--muted-ink); font-size: 14px; line-height: 1.55; }
.evidence-list li::before { content: ""; position: absolute; top: .65em; left: 0; width: 7px; height: 7px; background: var(--green); border-radius: 50%; }
.warning-card .evidence-list li::before { background: var(--warning); }

.recommendation-strip { margin-top: 16px; padding: 18px 24px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; color: white; background: var(--ink); border-radius: 14px 14px 28px 14px; }
.recommendation-strip span:not(.connector) { color: #9fc1bc; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.recommendation-strip strong { font-size: 13px; }
.recommendation-strip strong .term-label { color: white; font-size: 13px; letter-spacing: 0; text-transform: none; }
.connector { width: 28px; height: 1px; margin: 0 5px; background: #718d89; }

.section-header { margin: 8px 0 20px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-header h2 { max-width: 960px; margin: 7px 0 0; color: var(--deep); font-family: Georgia, "Times New Roman", serif; font-size: clamp(32px, 4vw, 52px); font-weight: 500; line-height: 1.03; letter-spacing: -.025em; }
.section-header > p { max-width: 370px; margin: 0; color: var(--muted-ink); font-size: 12px; line-height: 1.5; text-align: right; }
.calculator-header { align-items: center; }

.chart-heading { margin-bottom: 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.chart-note { padding: 7px 10px; color: #7d4f2d; background: #fff3e4; border-radius: 999px; font-size: 11px; font-weight: 700; }
.chart-wrap { width: 100%; height: 360px; }
.app-chart-wrap { height: 400px; }
.table-card { margin-top: 16px; }
.num { text-align: right !important; }
.negative { color: var(--warning) !important; font-weight: 800; }
.show-name { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; }
.show-name > span { width: 9px; height: 9px; border-radius: 99px; }
.help-trigger { width: 23px; height: 23px; display: inline-grid; place-items: center; flex: 0 0 auto; color: var(--muted-ink); background: #edf3f2; border: 1px solid #dbe6e3; border-radius: 99px; cursor: help; }
.term-label { display: inline-flex; align-items: center; gap: 5px; }
.term-label .help-trigger { width: 19px; height: 19px; }

.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.comparison-card { padding: clamp(24px, 3vw, 36px); background: white; border: 1px solid var(--line); border-top: 7px solid var(--teal); border-radius: 22px 22px 42px 22px; box-shadow: 0 12px 40px rgba(28, 70, 67, .055); }
.comparison-scale { border-top-color: var(--gold); }
.comparison-card > header { margin-bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.comparison-card > header h3 { margin: 4px 0 0; color: var(--deep); font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 4vw, 58px); line-height: 1; }
.comparison-card > header > span { padding: 7px 10px; color: var(--deep); background: var(--cream); border: 1px solid var(--line); border-radius: 999px; font-size: 11px; font-weight: 800; }
.comparison-budget-list { margin: 20px 0 0; display: grid; gap: 9px; }
.comparison-budget-list > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted-ink); font-size: 13px; }
.comparison-budget-list dt { min-width: 0; }
.comparison-budget-list dd { margin: 0; color: var(--deep); font-weight: 900; }
.comparison-outcomes { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: 14px 14px 26px 14px; gap: 1px; }
.comparison-outcomes > div { min-height: 128px; padding: 18px; display: grid; align-content: center; gap: 6px; background: var(--cream); }
.comparison-outcomes > div:last-child { grid-column: 1 / -1; }
.comparison-outcomes span { color: var(--muted-ink); font-size: 12px; font-weight: 800; }
.comparison-outcomes strong { color: var(--deep); font-family: Georgia, "Times New Roman", serif; font-size: clamp(28px, 3vw, 40px); }
.comparison-outcomes small { color: var(--muted-ink); font-size: 10px; }
.comparison-rule { margin: 22px 0 0; padding-top: 18px; color: var(--deep); border-top: 1px solid var(--line); font-size: 14px; font-weight: 800; line-height: 1.5; }
.comparison-readout { margin-top: 16px; padding: 28px 32px; display: grid; grid-template-columns: minmax(300px, .8fr) 1.2fr; gap: 42px; align-items: center; color: white; background: var(--deep); border-radius: 18px 18px 34px 18px; }
.comparison-readout .eyebrow { color: #9fc5be; }
.comparison-readout h3 { margin: 6px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 28px; line-height: 1.15; }
.comparison-readout > p { margin: 0; color: #c9ddda; font-size: 14px; line-height: 1.6; }

.ltv-explainer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.ltv-formula-card, .ltv-warning-card, .ltv-calculator-card { padding: 26px; background: white; border: 1px solid var(--line); border-radius: 18px 18px 32px 18px; }
.ltv-formula { margin: 18px 0; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 12px; }
.ltv-formula span, .ltv-formula strong { min-height: 74px; padding: 14px; display: grid; place-items: center; text-align: center; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; font-size: 12px; }
.ltv-formula strong { color: white; background: var(--teal); border-color: var(--teal); }
.ltv-formula b { color: var(--teal); font-size: 22px; }
.ltv-formula-card > p:last-child, .ltv-warning-card p { margin: 0; color: var(--muted-ink); font-size: 13px; line-height: 1.55; }
.ltv-warning-card { display: grid; grid-template-columns: 42px 1fr; gap: 16px; background: var(--warning-bg); border-color: #efd6c8; }
.ltv-warning-card > svg { width: 42px; height: 42px; padding: 9px; color: white; background: var(--warning); border-radius: 12px; }
.ltv-warning-card h3 { margin: 7px 0 10px; color: var(--warning); font-family: Georgia, "Times New Roman", serif; font-size: 26px; line-height: 1.15; }
.ltv-calculator-card { margin-top: 16px; display: grid; grid-template-columns: minmax(270px, 1.2fr) 210px 1fr 1fr; gap: 20px; align-items: center; background: var(--deep); border-color: var(--deep); color: white; }
.ltv-calculator-card .eyebrow { color: #9fc5be; }
.ltv-calculator-card h3 { margin: 6px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 26px; }
.ltv-calculator-card p { margin: 0; color: #c9ddda; font-size: 12px; line-height: 1.55; }
.ltv-calculator-card .term-label { color: white; }
.ltv-calculator-card .help-trigger { color: #c6ddda; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.known-people-input { display: grid; gap: 9px; }
.known-people-input > span { display: flex; align-items: center; gap: 6px; color: #c9ddda; font-size: 11px; font-weight: 800; }
.known-people-input input { height: 44px; color: white; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); font-size: 18px; font-weight: 800; }
.ltv-input-stack { display: grid; gap: 13px; }
.ltv-output { min-height: 112px; padding: 18px; display: grid; align-content: center; gap: 6px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; }
.ltv-output > span { color: #c9ddda; font-size: 11px; font-weight: 800; }
.ltv-output strong { color: #d5e9de; font-family: Georgia, "Times New Roman", serif; font-size: 31px; }
.ltv-output small { color: #9fc5be; }
.ltv-table-card { overflow-x: auto; }
.priority-ltv-row { background: #f3f8f6; }
.priority-ltv-row .show-name small { padding: 3px 6px; color: var(--green); background: #e5f1e2; border-radius: 999px; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.ltv-total-row { color: white; background: var(--deep); font-weight: 900; }
.ltv-total-row td { color: white; }
.ltv-table-note { margin: 16px 0 0; color: var(--muted-ink); font-size: 11px; line-height: 1.55; }

.calculator-layout { display: grid; grid-template-columns: 370px minmax(0, 1fr); gap: 16px; align-items: start; }
.assumptions-panel { position: sticky; top: 16px; max-height: calc(100vh - 32px); padding: 24px; overflow-y: auto; background: var(--deep); color: white; border-radius: 22px 22px 38px 22px; }
.assumptions-panel .panel-title { margin-bottom: 22px; }
.assumptions-panel .panel-title > svg { color: #aad9cd; }
.assumptions-panel .eyebrow { color: #a6c5c0; }
.assumptions-panel h3 { color: white; }
.input-row { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.13); }
.input-label-row { margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.input-label-row label { font-size: 12px; font-weight: 800; }
.assumptions-panel .help-trigger { color: #c6ddda; background: rgba(255,255,255,.1); }
.input-control-row { display: grid; grid-template-columns: 1fr 83px; align-items: center; gap: 14px; }
.assumptions-panel [data-slot="slider-track"] { background: rgba(255,255,255,.18); }
.assumptions-panel [data-slot="slider-range"] { background: #8ac3b6; }
.assumptions-panel [data-slot="slider-thumb"] { border-color: #8ac3b6; }
.input-with-suffix, .currency-input { position: relative; }
.input-with-suffix input { height: 34px; padding-right: 25px; color: white; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.08); }
.input-with-suffix span { position: absolute; top: 50%; right: 9px; color: #a9c7c2; font-size: 11px; transform: translateY(-50%); }
.currency-input input { height: 42px; padding-left: 27px; color: white; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.08); font-size: 18px; font-weight: 800; }
.currency-input > span { position: absolute; top: 50%; left: 11px; color: #aad1cb; transform: translateY(-50%); }
.budget-input-row { border-top: 0; padding-top: 0; }

.scenario-results { display: grid; gap: 16px; }
.scenario-banner { padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: white; background: linear-gradient(100deg, var(--teal), #2c8b72); border-radius: 18px 18px 30px 18px; }
.scenario-banner .eyebrow { color: #d6efea; }
.scenario-banner h3 { margin: 4px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 500; }
.allocation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; background: var(--line); border: 1px solid var(--line); border-radius: 18px 18px 30px 18px; }
.four-allocations { grid-template-columns: repeat(4, 1fr); }
.allocation-grid > div { min-height: 116px; display: grid; align-content: center; gap: 5px; padding: 20px; background: white; }
.allocation-grid span { color: var(--muted-ink); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.allocation-grid strong { color: var(--deep); font-family: Georgia, "Times New Roman", serif; font-size: 28px; }
.allocation-grid small { color: var(--green); font-weight: 800; }
.allocation-warning { padding: 13px 16px; display: flex; align-items: center; gap: 10px; color: var(--warning); background: var(--warning-bg); border: 1px solid #efd6c8; border-radius: 12px; font-size: 13px; font-weight: 800; }
.outcome-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.modeled-cost-callout { padding: 24px; display: grid; grid-template-columns: 230px 1fr; gap: 28px; align-items: center; color: white; background: var(--ink); border-radius: 18px 18px 30px 18px; }
.modeled-cost-callout .eyebrow { color: #a6c5c0; }
.modeled-cost-callout strong { display: inline-block; margin: 6px 10px 0 0; color: #d5e9de; font-family: Georgia, "Times New Roman", serif; font-size: 37px; }
.modeled-cost-callout span { color: #a6c5c0; font-size: 12px; }
.modeled-cost-callout p:last-child { margin: 0; color: #c7d8d5; font-size: 13px; line-height: 1.55; }
.weights-card { padding: 24px; background: white; border: 1px solid var(--line); border-radius: 18px 18px 30px 18px; }
.weight-inputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.weight-inputs > label { padding: 13px; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; }
.weight-inputs > label > span { display: flex; align-items: center; gap: 7px; color: var(--muted-ink); font-size: 11px; font-weight: 800; }
.weight-inputs i { width: 8px; height: 8px; border-radius: 99px; }
.weight-inputs label > div { margin-top: 9px; display: flex; align-items: center; gap: 6px; }
.weight-inputs input { font-weight: 800; }
.weight-inputs b { color: var(--muted-ink); font-size: 12px; }
.modeled-cell { color: #91632a; font-weight: 800; }

.strategy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.app-strategy-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.strategy-card { position: relative; min-height: 235px; padding: 24px; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 18px 18px 32px 18px; }
.strategy-number { position: absolute; top: 11px; right: 16px; color: #e4ecea; font-family: Georgia, "Times New Roman", serif; font-size: 54px; line-height: 1; }
.strategy-card .eyebrow { position: relative; z-index: 1; }
.strategy-card h3 { position: relative; z-index: 1; margin: 10px 0 12px; color: var(--deep); font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 500; line-height: 1.08; }
.strategy-card > p:last-child { position: relative; z-index: 1; margin: 0; color: var(--muted-ink); font-size: 13px; line-height: 1.6; }
.podcast-plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.podcast-plan-card { position: relative; min-height: 760px; padding: 26px; overflow: hidden; display: flex; flex-direction: column; background: white; border: 1px solid var(--line); border-top: 5px solid var(--show-color); border-radius: 18px 18px 36px 18px; }
.plan-rank { position: absolute; top: 14px; right: 18px; color: #e2ebe9; font-family: Georgia, "Times New Roman", serif; font-size: 64px; line-height: 1; }
.plan-title { position: relative; z-index: 1; min-height: 100px; }
.plan-title > span { color: var(--show-color); font-size: 11px; font-weight: 900; letter-spacing: .13em; }
.plan-title h3 { max-width: 290px; margin: 9px 0 0; color: var(--deep); font-family: Georgia, "Times New Roman", serif; font-size: 28px; line-height: 1.04; }
.plan-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden; margin: 12px 0 22px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; }
.plan-stats > div { padding: 11px; background: var(--cream); }
.plan-stats span { display: flex; align-items: center; min-height: 34px; color: var(--muted-ink); font-size: 8px; font-weight: 800; line-height: 1.25; text-transform: uppercase; }
.plan-stats .term-label { gap: 3px; }
.plan-stats .term-label .help-trigger { width: 16px; height: 16px; }
.plan-stats strong { color: var(--deep); font-size: 15px; }
.podcast-plan-card > p { color: var(--muted-ink); font-size: 14px; line-height: 1.55; }
.plan-playbook { display: grid; gap: 16px; }
.plan-playbook > div { padding-top: 14px; border-top: 1px solid var(--line); }
.plan-playbook span { display: block; margin-bottom: 5px; color: var(--show-color); font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.plan-playbook p { margin: 0; color: var(--muted-ink); font-size: 12px; line-height: 1.55; }
.podcast-plan-card footer { margin-top: auto; padding-top: 22px; display: flex; align-items: center; gap: 8px; color: var(--show-color); border-top: 1px solid var(--line); font-size: 12px; font-weight: 800; }
.podcast-plan-card footer .term-label { color: var(--show-color); }
.channel-plan-card { margin-top: 16px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px 55px; }
.channel-bars { display: grid; gap: 12px; }
.channel-row { display: grid; grid-template-columns: 190px 1fr 42px; gap: 12px; align-items: center; }
.channel-row > span { color: var(--muted-ink); font-size: 12px; font-weight: 800; }
.channel-row > div { height: 10px; overflow: hidden; background: #edf3f2; border-radius: 99px; }
.channel-row i { display: block; height: 100%; border-radius: 99px; }
.channel-row strong { text-align: right; }
.channel-note { grid-column: 1 / -1; margin: 0; padding-top: 18px; color: var(--muted-ink); border-top: 1px solid var(--line); font-size: 12px; line-height: 1.55; }
.roadmap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.roadmap-grid article { padding: 22px; background: white; border: 1px solid var(--line); border-radius: 16px 16px 28px 16px; }
.roadmap-grid span { color: var(--teal); font-size: 11px; font-weight: 900; letter-spacing: .1em; }
.roadmap-grid h3 { margin: 7px 0; color: var(--deep); font-size: 19px; }
.roadmap-grid p { margin: 0; color: var(--muted-ink); font-size: 12px; line-height: 1.5; }

.app-path-card { margin-top: 16px; }
.app-path { margin: 28px 0 22px; display: grid; grid-template-columns: 1fr 34px 1fr 34px 1fr 34px 1fr; align-items: center; gap: 9px; }
.app-path > div { min-height: 135px; padding: 18px; background: var(--cream); border: 1px solid var(--line); border-radius: 14px 14px 24px 14px; }
.app-path > div > span { width: 25px; height: 25px; display: grid; place-items: center; color: white; background: var(--teal); border-radius: 50%; font-size: 11px; font-weight: 900; }
.app-path strong { display: block; margin: 16px 0 6px; color: var(--deep); font-size: 14px; }
.app-path small { color: var(--muted-ink); line-height: 1.4; }
.app-path > i { height: 1px; background: var(--teal); }

.funnel-card { padding: 24px; display: grid; grid-template-columns: 1fr 42px 1fr 65px 1fr 42px 1fr; align-items: center; gap: 8px; background: white; border: 1px solid var(--line); border-radius: 20px 20px 36px 20px; }
.five-step { grid-template-columns: 1fr 30px 1fr 50px 1fr 30px 1fr 30px 1fr; }
.funnel-step { min-height: 125px; padding: 16px; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-content: center; position: relative; background: var(--cream); border: 1px solid var(--line); border-radius: 13px; }
.funnel-step > span { width: 28px; height: 28px; display: grid; place-items: center; color: white; background: var(--deep); border-radius: 50%; font-size: 10px; font-weight: 900; }
.funnel-step strong, .funnel-step small { display: block; }
.funnel-step strong { color: var(--deep); font-size: 13px; }
.funnel-step small { margin-top: 4px; color: var(--muted-ink); font-size: 10px; line-height: 1.35; }
.funnel-step > svg { position: absolute; top: 10px; right: 10px; width: 16px; color: var(--green); }
.funnel-step.future > svg { color: var(--teal); }
.funnel-link { height: 2px; background: #93aaa6; }
.complete-link { background: var(--green); }
.broken-link { position: relative; height: 2px; background: repeating-linear-gradient(90deg, var(--warning) 0 6px, transparent 6px 11px); }
.broken-link b { position: absolute; top: -24px; left: 50%; color: var(--warning); font-size: 9px; white-space: nowrap; text-transform: uppercase; transform: translateX(-50%); }
.measurement-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.measurement-card { padding: 26px; background: white; border: 1px solid var(--line); border-radius: 18px 18px 30px 18px; }
.measurement-card h3 { margin: 7px 0 18px; color: var(--deep); font-size: 22px; }
.measurement-card ul { margin: 0; padding-left: 18px; color: var(--muted-ink); font-size: 13px; line-height: 1.9; }
.accent-card { background: #eaf4f1; border-color: #c7dfd8; }
.dark-card { color: white; background: var(--deep); border-color: var(--deep); }
.dark-card .eyebrow { color: #9fc5be; }
.dark-card h3 { color: white; }
.dark-card ul { color: #c9ddda; }
.definitions-card, .source-card, .quality-card { margin-top: 16px; }
.definition-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 22px; }
.definition-grid > div { padding-left: 14px; border-left: 3px solid var(--teal); }
.definition-grid strong { color: var(--deep); font-size: 13px; }
.definition-grid p { margin: 6px 0 0; color: var(--muted-ink); font-size: 12px; line-height: 1.5; }
.source-columns { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; margin-top: 16px; }
.source-columns strong { color: var(--deep); font-size: 13px; }
.source-columns p { margin: 7px 0 0; color: var(--muted-ink); font-size: 12px; line-height: 1.55; }
.source-columns a { display: block; width: fit-content; margin-bottom: 7px; color: var(--teal); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.quality-card { background: var(--warning-bg); border-color: #efd6c8; }
.quality-card .card-heading > svg { color: var(--warning); }
.quality-card ol { margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; list-style: none; counter-reset: issue; }
.quality-card li { counter-increment: issue; display: grid; grid-template-columns: 56px 1fr; gap: 10px; color: #694d45; font-size: 12px; line-height: 1.5; }
.quality-card li span { height: fit-content; padding: 3px 6px; color: white; background: var(--warning); border-radius: 999px; font-size: 8px; font-weight: 900; text-align: center; text-transform: uppercase; }

.app-footer { padding: 22px clamp(18px, 4vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #6b807c; border-top: 1px solid var(--line); font-size: 11px; }

@media (max-width: 1180px) {
  .four-up { grid-template-columns: repeat(2, 1fr); }
  .executive-hero { grid-template-columns: 1fr; }
  .executive-six { grid-template-columns: repeat(3, 1fr); }
  .executive-thesis-grid, .app-strategy-grid { grid-template-columns: repeat(2, 1fr); }
  .decision-card { max-width: 620px; }
  .calculator-layout { grid-template-columns: 320px minmax(0, 1fr); }
  .four-allocations, .outcome-grid { grid-template-columns: repeat(2, 1fr); }
  .podcast-plan-grid { grid-template-columns: 1fr; }
  .podcast-plan-card { min-height: 330px; }
  .plan-title { min-height: 80px; }
  .channel-plan-card { grid-template-columns: 1fr; }
  .app-path { grid-template-columns: 1fr; }
  .app-path > i { width: 1px; height: 24px; justify-self: center; }
  .five-step { grid-template-columns: 1fr; }
  .five-step .funnel-link { width: 2px; height: 22px; justify-self: center; }
  .five-step .broken-link { background: repeating-linear-gradient(180deg, var(--warning) 0 6px, transparent 6px 11px); }
  .five-step .broken-link b { top: 5px; left: 12px; transform: none; }
}

@media (max-width: 860px) {
  .topbar { align-items: flex-start; }
  .period-chip { display: none; }
  .workspace { width: min(100% - 20px, 1510px); }
  .executive-hero { padding: 32px 24px; border-radius: 22px 22px 44px 22px; }
  .executive-simple-header { align-items: stretch; flex-direction: column; }
  .executive-simple-toggle { min-width: 0; }
  .hero-copy h2 { font-size: clamp(34px, 10vw, 48px); }
  .executive-grid, .executive-thesis-grid, .strategy-grid, .dependency-grid, .three-up, .measurement-grid, .roadmap-grid, .definition-grid, .source-columns, .quality-card ol, .comparison-grid, .comparison-readout { grid-template-columns: 1fr; }
  .ltv-explainer-grid, .ltv-calculator-card { grid-template-columns: 1fr; }
  .calculator-layout { grid-template-columns: 1fr; }
  .assumptions-panel { position: static; max-height: none; }
  .allocation-grid, .four-allocations, .outcome-grid { grid-template-columns: 1fr 1fr; }
  .weight-inputs { grid-template-columns: 1fr; }
  .modeled-cost-callout { grid-template-columns: 1fr; gap: 10px; }
  .section-header { align-items: flex-start; flex-direction: column; }
  .section-header > p { text-align: left; }
  .dependencies-heading { align-items: flex-start; flex-direction: column; }
  .dependencies-heading > p { text-align: left; }
  .results-heading { align-items: flex-start; flex-direction: column; }
  .chart-wrap { height: 310px; }
  .channel-row { grid-template-columns: 140px 1fr 36px; }
}

@media (max-width: 560px) {
  .topbar { min-height: 68px; padding: 12px 15px; }
  .brand-mark { width: 39px; height: 39px; }
  .brand-kicker { font-size: 9px; }
  .brand-lockup h1 { font-size: 20px; }
  .workspace { padding-top: 10px; }
  .nav-tabs { padding-bottom: 8px !important; }
  .nav-tabs button { padding: 7px 9px; font-size: 12px; }
  .nav-tabs button[data-state="active"]::after { bottom: -9px !important; }
  .tab-panel { padding-top: 14px; }
  .hero-copy h2 { font-size: 35px; }
  .hero-summary { font-size: 15px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .decision-budget { font-size: 38px; }
  .plan-toggle { grid-template-columns: 1fr; }
  .executive-six { grid-template-columns: 1fr; }
  .four-up, .metrics-grid, .allocation-grid, .four-allocations, .outcome-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 130px; }
  .recommendation-strip { align-items: flex-start; flex-direction: column; }
  .connector { width: 1px; height: 13px; margin-left: 5px; }
  .section-header h2 { font-size: 36px; }
  .chart-card, .table-card, .narrative-card, .channel-plan-card, .app-path-card, .definitions-card, .source-card, .quality-card { padding: 20px; }
  .chart-heading { align-items: flex-start; flex-direction: column; }
  .chart-wrap { height: 270px; }
  .input-control-row { grid-template-columns: 1fr 75px; }
  .scenario-banner { align-items: flex-start; flex-direction: column; }
  .plan-stats { grid-template-columns: 1fr; }
  .podcast-plan-card { min-height: 450px; }
  .channel-row { grid-template-columns: 1fr 36px; }
  .channel-row > span { grid-column: 1 / -1; }
  .funnel-card { grid-template-columns: 1fr; }
  .funnel-link { width: 2px; height: 22px; justify-self: center; }
  .broken-link { background: repeating-linear-gradient(180deg, var(--warning) 0 6px, transparent 6px 11px); }
  .broken-link b { top: 5px; left: 12px; transform: none; }
  .app-footer { align-items: flex-start; flex-direction: column; }
  .ltv-formula { grid-template-columns: 1fr; }
  .ltv-formula b { text-align: center; }
}
