:root {
  --bg: #f3f7fb;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --text: #17324f;
  --muted: #637b95;
  --line: rgba(30, 95, 168, 0.12);
  --line-strong: rgba(30, 95, 168, 0.22);
  --primary: #1e5fa8;
  --primary-deep: #133f72;
  --primary-soft: #e9f2fb;
  --success: #139b63;
  --danger: #d24d57;
  --warning: #d87a16;
  --shadow: 0 28px 80px rgba(18, 56, 98, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --font-display: "Baskerville", "Palatino Linotype", "Songti SC", serif;
  --font-body: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(30, 95, 168, 0.14), transparent 24%),
    radial-gradient(circle at 90% 10%, rgba(19, 155, 99, 0.12), transparent 20%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
  color: var(--text);
  font-family: var(--font-body);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(30, 95, 168, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 95, 168, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 90%);
}

.page-shell {
  width: min(1540px, calc(100% - 28px));
  margin: 14px auto 36px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(420px, 0.82fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}

.hero-copy,
.hero-panel,
.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-copy {
  display: grid;
  align-content: center;
  padding: 22px 26px;
  min-height: 168px;
}

.hero-copy::after,
.hero-panel::after,
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), transparent 42%);
}

.eyebrow,
.panel-kicker {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 100%;
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: clamp(1.85rem, 2.8vw, 2.8rem);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-text {
  max-width: 70ch;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.hero-meta span,
.pill,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.hero-meta span {
  color: var(--primary-deep);
  background: rgba(30, 95, 168, 0.08);
}

.hero-panel {
  display: grid;
  align-content: center;
  padding: 20px 22px;
}

.hero-panel-title {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
}

.signal-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.signal-list li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 17px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.signal-list li:last-child {
  margin-bottom: 0;
}

.signal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #59b1ff);
}

.app-grid {
  display: grid;
  grid-template-columns: 392px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.panel {
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 16px 44px rgba(18, 56, 98, 0.08);
}

.input-panel {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 18px;
  scrollbar-width: thin;
}

.input-panel::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.input-panel::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(30, 95, 168, 0.22);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.panel-header.compact {
  margin-bottom: 10px;
}

.panel-header h2 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.15;
}

.panel-note {
  color: var(--muted);
  font-size: 13px;
}

.form-stack {
  display: grid;
  gap: 12px;
}

.section-label {
  margin-bottom: -4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mode-toggle {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mode-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 86px;
  padding: 13px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.mode-btn strong {
  font-size: 14px;
  line-height: 1.2;
}

.mode-btn span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.mode-btn.active {
  border-color: rgba(30, 95, 168, 0.5);
  background:
    linear-gradient(135deg, rgba(30, 95, 168, 0.13), rgba(255, 255, 255, 0.92)),
    #fff;
  box-shadow: inset 4px 0 0 var(--primary), inset 0 0 0 1px rgba(30, 95, 168, 0.12);
}

.mode-btn:hover,
.solid-btn:hover,
.ghost-btn:hover,
.history-item:hover,
.history-delete:hover {
  transform: translateY(-1px);
}

.section-block {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
}

.calc-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(247, 251, 255, 0.94);
  box-shadow: 0 12px 28px rgba(18, 56, 98, 0.08);
}

.calc-cta-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.calc-cta-copy strong {
  font-size: 13px;
  line-height: 1.25;
}

.calc-cta-copy span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.calc-btn {
  min-width: 104px;
  padding-inline: 14px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.section-title-row h3 {
  margin: 0;
  font-size: 0.98rem;
}

.section-hint {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  text-align: right;
}

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

.field.full {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  font-size: 12px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: rgba(30, 95, 168, 0.44);
  box-shadow: 0 0 0 4px rgba(30, 95, 168, 0.12);
}

input:disabled,
select:disabled {
  background: rgba(234, 243, 252, 0.68);
  color: var(--muted);
  cursor: not-allowed;
}

.field-message {
  display: none;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.field.has-message .field-message {
  display: block;
}

.results-column {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.result-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: center;
  padding: 16px 20px;
  background:
    radial-gradient(circle at right top, rgba(30, 95, 168, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(233, 242, 251, 0.92));
}

.result-intro h2 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.25;
}

.result-copy {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.result-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.result-pills span {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(30, 95, 168, 0.08);
  color: var(--primary-deep);
  font-size: 12px;
  font-weight: 700;
}

.result-copy,
.result-pills {
  display: none;
}

.insight-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(560px, 1.3fr);
  gap: 14px;
  align-items: start;
}

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

.analysis-tile {
  min-height: 104px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: none;
}

.analysis-tile .label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.analysis-tile strong {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.analysis-tile small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.summary-main {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.ring-wrap {
  display: flex;
  justify-content: center;
}

.cost-ring {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: conic-gradient(var(--primary) 0deg 180deg, #7fc8ff 180deg 250deg, #8cd7a7 250deg 300deg, #f6b565 300deg 334deg, #dee8f3 334deg 360deg);
}

.cost-ring::before {
  content: "成本拆解";
  position: absolute;
  inset: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-deep);
  text-align: center;
}

.summary-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.metric-card {
  display: grid;
  gap: 7px;
  align-content: start;
  min-height: 74px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: none;
}

.metric-card .name {
  color: var(--muted);
  font-size: 12px;
}

.metric-card .value {
  display: block;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.metric-card:has(.value-positive) {
  background: rgba(19, 155, 99, 0.08);
  border-color: rgba(19, 155, 99, 0.22);
}

.metric-card:has(.value-negative) {
  background: rgba(210, 77, 87, 0.08);
  border-color: rgba(210, 77, 87, 0.22);
}

.metric-card:has(.value-positive) .value,
.metric-card:has(.value-negative) .value {
  font-size: 1.35rem;
}

.table-wrap {
  overflow: auto;
  max-height: min(520px, calc(100vh - 180px));
  border-radius: 18px;
  border: 1px solid rgba(30, 95, 168, 0.08);
  background: rgba(255, 255, 255, 0.55);
}

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

thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px;
  background: rgba(243, 247, 251, 0.95);
  color: var(--muted);
  font-size: 12px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

thead th:last-child {
  right: 0;
  z-index: 2;
  text-align: right;
}

tbody td {
  padding: 15px 12px;
  border-top: 1px solid rgba(30, 95, 168, 0.08);
  vertical-align: top;
}

tbody td:nth-child(4),
tbody td:nth-child(5),
tbody td:nth-child(6),
tbody td:nth-child(7),
.metric-card .value {
  font-variant-numeric: tabular-nums;
}

tbody tr {
  cursor: pointer;
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

tbody tr:hover {
  background: rgba(30, 95, 168, 0.04);
}

tbody tr.active {
  position: relative;
  background:
    linear-gradient(90deg, rgba(30, 95, 168, 0.18), rgba(30, 95, 168, 0.07) 42%, rgba(255, 255, 255, 0.9)),
    rgba(30, 95, 168, 0.08);
  box-shadow: inset 5px 0 0 var(--primary), inset 0 1px 0 rgba(30, 95, 168, 0.2), inset 0 -1px 0 rgba(30, 95, 168, 0.18);
}

tbody tr.active:hover {
  background:
    linear-gradient(90deg, rgba(30, 95, 168, 0.22), rgba(30, 95, 168, 0.09) 44%, rgba(255, 255, 255, 0.92)),
    rgba(30, 95, 168, 0.1);
}

tbody tr.active td:first-child {
  padding-left: 18px;
}

tbody tr.active td:first-child::after {
  content: "已选";
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(30, 95, 168, 0.24);
}

tbody tr.active .table-main strong {
  color: var(--primary-deep);
}

tbody td:nth-child(4),
tbody td:nth-child(5),
tbody td:nth-child(6),
tbody td:nth-child(7) {
  white-space: nowrap;
}

.row-action-cell {
  position: sticky;
  right: 0;
  z-index: 1;
  width: 76px;
  background: rgba(255, 255, 255, 0.92);
  text-align: right;
}

tbody tr.active .row-action-cell {
  background: rgba(224, 238, 251, 0.96);
}

.row-save-btn {
  min-height: 34px;
  border: 1px solid rgba(30, 95, 168, 0.16);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(30, 95, 168, 0.08);
  color: var(--primary-deep);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.row-save-btn:hover,
.row-save-btn:focus {
  outline: none;
  border-color: rgba(30, 95, 168, 0.32);
  background: rgba(30, 95, 168, 0.14);
}

.table-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.table-main strong {
  font-size: 15px;
}

.tag-row {
  display: flex;
  flex: 1 0 100%;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 5px 10px;
}

.tag.success {
  color: var(--success);
  background: rgba(19, 155, 99, 0.12);
}

.tag.primary {
  color: var(--primary);
  background: rgba(30, 95, 168, 0.12);
}

.tag.accent {
  color: var(--warning);
  background: rgba(216, 122, 22, 0.12);
}

.value-positive {
  color: var(--success);
}

.value-negative {
  color: var(--danger);
}

.warning-copy {
  display: block;
  margin-top: 8px;
  color: var(--warning);
  font-size: 12px;
  line-height: 1.5;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 16px;
  border: 1px solid rgba(19, 155, 99, 0.22);
  border-radius: 14px;
  background: rgba(239, 253, 247, 0.96);
  color: #0f6b46;
  box-shadow: 0 18px 48px rgba(18, 56, 98, 0.18);
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.history-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.history-item {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
}

.history-restore {
  flex: 1;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.history-delete {
  align-self: center;
  flex: 0 0 auto;
  border: 1px solid rgba(210, 77, 87, 0.2);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(210, 77, 87, 0.08);
  color: var(--danger);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.history-title {
  font-weight: 800;
}

.history-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.solid-btn,
.ghost-btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.solid-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #2d79d0);
  box-shadow: 0 14px 30px rgba(30, 95, 168, 0.25);
}

.ghost-btn {
  color: var(--primary-deep);
  background: rgba(30, 95, 168, 0.08);
}

.compact-action {
  flex: 0 0 auto;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1;
}

.context-menu {
  position: fixed;
  z-index: 20;
  display: none;
  min-width: 148px;
  padding: 6px;
  border: 1px solid rgba(30, 95, 168, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(18, 56, 98, 0.18);
  backdrop-filter: blur(14px);
}

.context-menu.open {
  display: block;
}

.context-menu button {
  width: 100%;
  border: 0;
  border-radius: 9px;
  padding: 10px 12px;
  background: transparent;
  color: var(--primary-deep);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.context-menu button:hover,
.context-menu button:focus {
  outline: none;
  background: rgba(30, 95, 168, 0.1);
}

.empty-state {
  padding: 18px;
  border-radius: 16px;
  background: rgba(30, 95, 168, 0.05);
  color: var(--muted);
  line-height: 1.7;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1320px) {
  .insight-grid,
  .summary-main {
    grid-template-columns: 1fr;
  }

  .ring-wrap {
    display: none;
  }
}

@media (max-width: 1180px) {
  .hero,
  .app-grid,
  .insight-grid,
  .summary-main,
  .result-intro {
    grid-template-columns: 1fr;
  }

  .page-shell {
    width: min(100% - 24px, 1440px);
  }

  .hero {
    gap: 14px;
  }

  .hero-copy {
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 5vw, 2.45rem);
  }

  .input-panel {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .cost-ring {
    width: 112px;
    height: 112px;
  }

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

@media (max-width: 720px) {
  .page-shell {
    margin-top: 14px;
  }

  .hero-copy,
  .hero-panel,
  .panel {
    padding: 16px;
    border-radius: 18px;
  }

  .hero {
    margin-bottom: 14px;
  }

  .input-panel {
    padding: 16px;
  }

  .panel-header {
    margin-bottom: 12px;
  }

  .mode-btn {
    min-height: 78px;
    padding: 11px;
  }

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

  .table-wrap {
    max-height: none;
    overflow: visible;
    border: 0;
    background: transparent;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  thead {
    display: none;
  }

  tbody {
    display: grid;
    gap: 12px;
  }

  tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
  }

  tbody tr.active {
    background:
      linear-gradient(135deg, rgba(30, 95, 168, 0.14), rgba(255, 255, 255, 0.94)),
      #fff;
    box-shadow: inset 4px 0 0 var(--primary), 0 12px 28px rgba(18, 56, 98, 0.08);
  }

  tbody tr:hover {
    background: rgba(255, 255, 255, 0.88);
  }

  tbody td {
    padding: 0;
    border: 0;
  }

  tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
  }

  tbody td:first-child,
  tbody td:nth-child(3),
  tbody td:nth-child(8) {
    grid-column: 1 / -1;
  }

  tbody tr.active td:first-child {
    padding-left: 0;
  }

  tbody tr.active td:first-child::after {
    margin-left: 8px;
    margin-top: 0;
    vertical-align: middle;
  }

  .row-action-cell {
    position: static;
    width: 100%;
    background: transparent;
    text-align: left;
  }

  .row-save-btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

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

  .calc-cta {
    flex-direction: column;
    align-items: stretch;
    position: static;
    box-shadow: none;
  }

  .calc-cta-copy {
    display: none;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(1.6rem, 8vw, 2.15rem);
    line-height: 1.16;
  }

  .hero-text {
    font-size: 14px;
    line-height: 1.55;
  }

  .hero-meta {
    margin-top: 12px;
  }

  .hero-meta span {
    padding: 7px 10px;
  }

  .signal-list li {
    font-size: 13px;
    line-height: 1.5;
  }

  .action-row {
    width: 100%;
  }

  .result-pills {
    justify-content: flex-start;
  }

  .action-row .solid-btn,
  .action-row .ghost-btn,
  .calc-btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

@media (max-width: 360px) {
  .analysis-grid,
  .summary-metrics {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
