:root {
  --navy: #000528;
  --yellow: #f9d400;
  --red: #e00b48;
  --orange: #f75000;
  --aqua: #00aca3;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-soft: rgba(247, 249, 255, 0.9);
  --surface-dark: rgba(0, 5, 40, 0.96);
  --stroke: rgba(0, 5, 40, 0.1);
  --text: #09133f;
  --muted: #54607f;
  --shadow: 0 18px 42px rgba(0, 5, 40, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  width: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(0, 172, 163, 0.14), transparent 26%),
    radial-gradient(circle at top right, rgba(249, 212, 0, 0.16), transparent 24%),
    linear-gradient(180deg, #eef2fb 0%, #f8f9fd 100%);
  overflow-x: clip;
}

button,
input,
select {
  font: inherit;
}

img,
svg,
canvas {
  max-width: 100%;
}

.page-shell {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 24px 26px;
  margin-bottom: 20px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(0, 5, 40, 0.97), rgba(0, 20, 77, 0.92));
  color: white;
  box-shadow: 0 28px 60px rgba(0, 5, 40, 0.24);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -36% auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 212, 0, 0.24), transparent 68%);
  pointer-events: none;
}

.hero-brand {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  min-width: 0;
  width: 100%;
}

.hero-brand > div,
.section-heading > div,
.input-section-header > div,
.chart-header > div {
  min-width: 0;
}

.hero-logo {
  width: 136px;
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 800;
}

.eyebrow {
  color: rgba(249, 212, 0, 0.92);
}

.section-kicker {
  color: var(--orange);
}

.hero h1,
.section-heading h2,
.input-section-header h3,
.chart-header h3 {
  margin: 0;
  line-height: 1.06;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(2rem, 3.7vw, 3.15rem);
}

.hero-copy {
  max-width: 640px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.55;
}

.hero-badge {
  min-width: 164px;
  padding: 18px 20px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(249, 212, 0, 0.18), rgba(0, 172, 163, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-badge span,
.hero-badge strong {
  display: block;
}

.hero-badge span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
}

.hero-badge strong {
  margin-top: 8px;
  font-size: 1.9rem;
  color: white;
}

.layout {
  display: grid;
  grid-template-columns: minmax(380px, 430px) minmax(0, 1fr);
  gap: 20px;
}

.panel,
.headline-block,
.milestones-block,
.payback-block,
.yearly-roi-block,
.insights-block,
.strategy-block,
.assumptions-block,
.chart-card,
.table-card {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  max-width: 100%;
}

.panel {
  padding: 24px;
  min-width: 0;
}

.section-heading,
.input-section-header,
.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.input-section-header p,
.chart-header p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.simulator-form {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.input-section {
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 5, 40, 0.08);
  background: var(--surface-soft);
  backdrop-filter: blur(14px);
  min-width: 0;
}

.scenario-buttons,
.franchise-model-grid,
.products-grid,
.financial-grid,
.summary-grid,
.charts-grid,
.insights-list {
  display: grid;
  gap: 14px;
}

.franchise-model-grid {
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 12px;
}

.franchise-model-card {
  padding: 0;
  border: 1px solid rgba(0, 5, 40, 0.08);
  border-radius: 22px;
  overflow: hidden;
  background: white;
  box-shadow: 0 10px 24px rgba(0, 5, 40, 0.07);
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
  min-width: 0;
}

.franchise-model-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 5, 40, 0.12);
}

.franchise-model-card.is-active {
  border-color: rgba(0, 172, 163, 0.5);
  transform: scale(1.015);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(244, 250, 250, 0.98));
  box-shadow:
    0 18px 36px rgba(0, 5, 40, 0.15),
    0 0 0 1px rgba(0, 172, 163, 0.2),
    0 0 26px rgba(0, 172, 163, 0.12);
}

.franchise-model-image-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 146px;
  background: linear-gradient(135deg, rgba(0, 5, 40, 0.97), rgba(0, 20, 77, 0.92));
}

.franchise-model-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.franchise-model-content {
  padding: 12px 13px 14px;
  min-width: 0;
}

.franchise-model-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.franchise-model-label,
.franchise-model-state {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.franchise-model-label {
  background: rgba(0, 5, 40, 0.06);
  color: var(--navy);
}

.franchise-model-state {
  padding-inline: 9px;
  background: rgba(0, 5, 40, 0.05);
  color: rgba(0, 5, 40, 0.62);
}

.franchise-model-card:not(.is-active) .franchise-model-state {
  display: none;
}

.franchise-model-card.is-active .franchise-model-state {
  background: rgba(0, 172, 163, 0.14);
  color: var(--aqua);
}

.franchise-model-content h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.franchise-model-content p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.franchise-model-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 11px;
}

.franchise-model-metrics span {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0, 5, 40, 0.05);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
}

.scenario-buttons {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.scenario-button,
.ghost-button,
.primary-button {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.scenario-button:hover,
.ghost-button:hover,
.primary-button:hover {
  transform: translateY(-1px);
}

.scenario-button {
  padding: 16px;
  border: 1px solid rgba(0, 5, 40, 0.08);
  border-radius: 18px;
  background: white;
  text-align: left;
  min-height: 100%;
  min-width: 0;
}

.scenario-button strong,
.scenario-button span {
  display: block;
}

.scenario-button strong {
  font-size: 0.98rem;
}

.scenario-button span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.scenario-button.is-active {
  border-color: rgba(0, 172, 163, 0.28);
  background: linear-gradient(145deg, rgba(0, 172, 163, 0.12), rgba(255, 255, 255, 0.98));
  box-shadow: 0 12px 24px rgba(0, 5, 40, 0.08);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 5, 40, 0.08);
  border-radius: 999px;
  padding: 11px 16px;
  background: rgba(249, 212, 0, 0.18);
  color: var(--navy);
  font-weight: 800;
  text-align: center;
  white-space: normal;
  line-height: 1.2;
}

.primary-button {
  border: none;
  border-radius: 999px;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--navy), #112975);
  color: white;
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(0, 5, 40, 0.16);
}

.form-actions {
  display: flex;
  margin-top: 4px;
}

.products-grid {
  margin-top: 14px;
}

.product-card,
.input-card,
.summary-card,
.insight-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 5, 40, 0.08);
  background: white;
  min-width: 0;
}

.product-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.product-card h3 {
  margin: 0;
  overflow-wrap: anywhere;
}

.product-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 172, 163, 0.12);
  color: var(--aqua);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.product-meta {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.input-card span,
.product-card label span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
  font-weight: 700;
}

.input-card input,
.product-card input,
.input-card select {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(0, 5, 40, 0.12);
  border-radius: 12px;
  background: white;
}

.input-card {
  position: relative;
}

.input-card select {
  appearance: auto;
  -webkit-appearance: menulist;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

.total-card input[readonly] {
  background: rgba(0, 5, 40, 0.04);
  color: var(--navy);
  font-weight: 800;
}

.financial-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.financial-wide {
  grid-column: 1 / -1;
}

.headline-block,
.milestones-block,
.payback-block,
.yearly-roi-block,
.insights-block,
.strategy-block,
.assumptions-block,
.chart-card,
.table-card {
  margin-top: 16px;
  padding: 20px;
}

.headline-block {
  background: linear-gradient(135deg, var(--navy), #00145a);
  color: white;
  padding: 24px 24px 26px;
}

.headline-label {
  margin: 0 0 8px;
  color: rgba(249, 212, 0, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 800;
}

.headline-value {
  font-size: clamp(2.6rem, 5.2vw, 4.5rem);
  line-height: 0.98;
  font-weight: 800;
  color: white;
  letter-spacing: -0.04em;
}

.headline-helper {
  max-width: 760px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.milestones-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.milestone-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 5, 40, 0.08);
  background: white;
}

.milestone-card.is-featured {
  background: linear-gradient(135deg, var(--navy), #00145a);
  color: white;
  box-shadow: 0 18px 36px rgba(0, 5, 40, 0.18);
}

.milestone-label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.milestone-card.is-featured .milestone-label {
  color: rgba(249, 212, 0, 0.96);
}

.milestone-value {
  display: block;
  font-size: 2rem;
  line-height: 1.02;
}

.milestone-helper {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.5;
}

.milestone-card.is-featured .milestone-helper {
  color: rgba(255, 255, 255, 0.82);
}

.payback-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.payback-metric {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 5, 40, 0.08);
  background: white;
}

.payback-metric span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.payback-metric strong {
  display: block;
  margin-top: 10px;
  font-size: 1.65rem;
  line-height: 1.05;
}

.payback-metric.is-positive strong {
  color: var(--aqua);
}

.payback-metric.is-neutral strong {
  color: var(--orange);
}

.payback-helper {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.summary-card {
  min-height: 144px;
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.summary-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.summary-card strong {
  display: block;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.summary-card small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.summary-card[data-tone="success"] strong {
  color: var(--aqua);
}

.summary-card[data-tone="debit"] strong {
  color: var(--red);
}

.summary-card[data-tone="highlight"] strong {
  color: var(--navy);
}

.summary-card[data-tone="highlight"] {
  background: linear-gradient(180deg, rgba(249, 212, 0, 0.12), rgba(255, 255, 255, 0.98));
}

.yearly-roi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.roi-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 5, 40, 0.08);
  background: white;
  min-width: 0;
}

.roi-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.roi-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.5rem;
  color: var(--aqua);
}

.roi-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.insights-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.insight-card {
  border-left: 4px solid var(--yellow);
  padding: 14px 16px;
  min-height: 100%;
}

.insight-title {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.insight-card p,
.strategy-summary p {
  margin: 0;
  line-height: 1.5;
}

.strategy-summary {
  margin-top: 14px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(0, 172, 163, 0.08), rgba(249, 212, 0, 0.1));
  border: 1px solid rgba(0, 5, 40, 0.06);
}

.assumptions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.assumption-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 5, 40, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 255, 0.96));
  min-width: 0;
}

.assumption-label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.assumption-card strong {
  display: block;
  font-size: 1.25rem;
  line-height: 1.1;
  color: var(--navy);
}

.assumption-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.assumptions-helper {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.charts-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

canvas {
  width: 100%;
  margin-top: 14px;
  display: block;
  border-radius: 18px;
}

.table-wrap {
  overflow: auto;
  margin-top: 18px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 4px;
  max-width: 100%;
}

table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;
  text-align: right;
  border-bottom: 1px solid rgba(0, 5, 40, 0.08);
  white-space: nowrap;
}

th:first-child,
td:first-child {
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.year-divider-row td {
  padding: 12px;
  text-align: left;
  background: rgba(0, 172, 163, 0.08);
  color: var(--navy);
  font-weight: 800;
  border-bottom: 1px solid rgba(0, 172, 163, 0.1);
}

tbody tr:hover {
  background: rgba(0, 172, 163, 0.04);
}

.zebra-row {
  background: rgba(0, 5, 40, 0.024);
}

.scale-step-row {
  background: rgba(249, 212, 0, 0.12);
}

.scale-step-row td {
  border-top: 1px solid rgba(249, 212, 0, 0.32);
  border-bottom: 1px solid rgba(249, 212, 0, 0.32);
}

.negative-value {
  color: var(--red);
  font-weight: 700;
}

.positive-value {
  color: var(--aqua);
  font-weight: 700;
}

.payback-row {
  background: rgba(0, 172, 163, 0.1);
}

.payback-row td {
  border-top: 1px solid rgba(0, 172, 163, 0.3);
  border-bottom: 1px solid rgba(0, 172, 163, 0.3);
}

.row-tag {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 172, 163, 0.14);
  color: var(--aqua);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 1220px) {
  .layout,
  .summary-grid,
  .charts-grid,
  .insights-list,
  .assumptions-grid,
  .payback-metrics,
  .yearly-roi-grid,
  .milestones-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 1440px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .franchise-model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .charts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-shell {
    padding: 16px 12px 24px;
  }

  .hero,
  .panel,
  .headline-block,
  .milestones-block,
  .payback-block,
  .yearly-roi-block,
  .insights-block,
  .strategy-block,
  .assumptions-block,
  .chart-card,
  .table-card {
    padding: 16px;
    border-radius: 20px;
  }

  .hero-brand,
  .product-card-top,
  .section-heading,
  .chart-header,
  .input-section-header {
    flex-direction: column;
  }

  .hero {
    gap: 18px;
    margin-bottom: 18px;
    padding: 20px 18px;
  }

  .hero::after {
    width: 180px;
    height: 180px;
    inset: auto -16% -30% auto;
  }

  .hero-logo {
    width: 112px;
  }

  .hero h1 {
    font-size: clamp(1.72rem, 8vw, 2.5rem);
  }

  .hero-copy {
    margin-top: 12px;
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .hero-badge {
    min-width: 0;
    width: 100%;
    padding: 14px 16px;
    border-radius: 18px;
  }

  .section-heading,
  .input-section-header,
  .chart-header {
    gap: 10px;
  }

  .simulator-form {
    gap: 14px;
    margin-top: 14px;
  }

  .input-section {
    padding: 14px;
  }

  .section-heading h2,
  .input-section-header h3,
  .chart-header h3 {
    font-size: 1.08rem;
    line-height: 1.18;
  }

  .input-section-header p,
  .chart-header p,
  .product-meta,
  .headline-helper,
  .payback-helper,
  .strategy-summary p {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .scenario-buttons,
  .financial-grid,
  .franchise-model-grid {
    grid-template-columns: 1fr;
  }

  .franchise-model-image-wrap {
    max-height: 124px;
  }

  .franchise-model-card.is-active {
    transform: none;
  }

  .franchise-model-content {
    padding: 11px 12px 12px;
  }

  .franchise-model-content h3 {
    font-size: 0.96rem;
  }

  .franchise-model-content p {
    font-size: 0.85rem;
  }

  .franchise-model-metrics span,
  .product-chip,
  .row-tag {
    font-size: 0.72rem;
  }

  .scenario-buttons {
    gap: 10px;
  }

  .scenario-button {
    padding: 13px 14px;
  }

  .scenario-button strong {
    font-size: 0.93rem;
  }

  .scenario-button span {
    font-size: 0.84rem;
  }

  .products-grid,
  .financial-grid,
  .summary-grid,
  .insights-list {
    gap: 10px;
  }

  .product-card,
  .input-card,
  .summary-card,
  .insight-card,
  .roi-card,
  .milestone-card,
  .payback-metric {
    padding: 14px;
  }

  .input-card input,
  .product-card input,
  .input-card select {
    padding: 12px;
  }

  .headline-block {
    padding: 20px 18px 22px;
  }

  .headline-value {
    font-size: 2.5rem;
  }

  .summary-grid,
  .milestones-grid,
  .yearly-roi-grid,
  .payback-metrics,
  .insights-list,
  .assumptions-grid,
  .charts-grid {
    grid-template-columns: 1fr;
  }

  .summary-card {
    min-height: 0;
  }

  .summary-card p {
    margin-bottom: 14px;
    font-size: 0.84rem;
  }

  .summary-card strong {
    font-size: 1.8rem;
  }

  .roi-card strong,
  .payback-metric strong,
  .milestone-value {
    font-size: 1.35rem;
  }

  .insight-title {
    margin-bottom: 6px;
    font-size: 0.72rem;
  }

  .insight-card p {
    font-size: 0.9rem;
  }

  .form-actions {
    margin-top: 2px;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
    justify-content: center;
    min-height: 50px;
  }

  .ghost-button {
    padding-inline: 14px;
  }

  .table-wrap {
    margin-top: 14px;
    margin-inline: 0;
    padding: 0 0 8px;
  }

  table {
    min-width: 760px;
  }

  th,
  td {
    padding: 11px 10px;
    font-size: 0.82rem;
  }

  th:first-child,
  td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: rgba(248, 249, 253, 0.98);
  }

  .year-divider-row td:first-child,
  .scale-step-row td:first-child,
  .payback-row td:first-child,
  .zebra-row td:first-child {
    background: inherit;
  }

  .year-divider-row td {
    position: sticky;
    left: 0;
    z-index: 2;
  }
}

@media (max-width: 480px) {
  .page-shell {
    padding: 12px 10px 18px;
  }

  .hero,
  .panel,
  .headline-block,
  .milestones-block,
  .payback-block,
  .yearly-roi-block,
  .insights-block,
  .strategy-block,
  .assumptions-block,
  .chart-card,
  .table-card {
    padding: 14px;
    border-radius: 18px;
  }

  .hero-logo {
    width: 96px;
  }

  .hero-brand {
    gap: 14px;
  }

  .eyebrow,
  .section-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .hero h1 {
    font-size: 1.58rem;
    max-width: 12ch;
  }

  .hero-badge {
    padding: 12px 14px;
  }

  .hero-badge strong {
    font-size: 1.45rem;
  }

  .hero-copy,
  .input-section-header p,
  .chart-header p,
  .headline-helper,
  .payback-helper,
  .strategy-summary p,
  .product-meta {
    font-size: 0.88rem;
  }

  .input-section {
    padding: 12px;
  }

  .section-heading h2,
  .input-section-header h3,
  .chart-header h3 {
    font-size: 1rem;
  }

  .franchise-model-image-wrap {
    max-height: 96px;
  }

  .franchise-model-content {
    padding: 10px 11px 11px;
  }

  .franchise-model-label,
  .franchise-model-state,
  .franchise-model-metrics span,
  .product-chip,
  .row-tag {
    font-size: 0.68rem;
  }

  .franchise-model-content h3 {
    font-size: 0.92rem;
  }

  .franchise-model-content p,
  .scenario-button span,
  .insight-card p {
    font-size: 0.84rem;
  }

  .franchise-model-content h3,
  .scenario-button strong,
  .product-card h3,
  .section-heading h2,
  .input-section-header h3,
  .chart-header h3 {
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .scenario-button,
  .product-card,
  .input-card,
  .summary-card,
  .insight-card,
  .assumption-card,
  .roi-card,
  .milestone-card,
  .payback-metric {
    padding: 12px;
  }

  .headline-value {
    font-size: 2.15rem;
  }

  .summary-card strong {
    font-size: 1.55rem;
  }

  .roi-card strong,
  .payback-metric strong,
  .milestone-value {
    font-size: 1.2rem;
  }

  .primary-button,
  .ghost-button {
    min-height: 48px;
    padding: 14px 16px;
  }

  .ghost-button {
    font-size: 0.92rem;
    width: 100%;
  }

  .headline-block {
    padding: 18px 16px 20px;
  }

  .headline-label {
    font-size: 0.7rem;
  }

  .input-card span,
  .product-card label span {
    font-size: 0.86rem;
  }

  table {
    min-width: 700px;
  }

  th,
  td {
    padding: 10px 9px;
    font-size: 0.78rem;
  }
}
