@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .menu-button { display: block; }
  .mobile-nav.open { display: block; }
  .hero, .content-grid, .calculator-layout, .footer-grid, .stage-two-hero, .advanced-tool-layout {
    grid-template-columns: 1fr;
  }
  .tool-grid, .featured-grid, .chart-grid, .news-grid, .page-news-grid, .finance-info-grid, .advanced-metrics-grid, .advanced-insight-grid, .advanced-charts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .advanced-summary-card {
    position: static;
  }
  .hero-visual { min-height: 360px; }
  .header-calc { display: none; }
}

@media (max-width: 620px) {
  *, *::before, *::after { box-sizing: border-box; }
  html, body, .public-body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }
  .public-body {
    min-width: 0;
  }
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-height: 66px;
    padding: 0 12px;
    overflow: hidden;
  }
  .brand {
    max-width: calc(100vw - 76px);
    overflow: hidden;
  }
  .brand img { width: 38px; height: 38px; }
  .brand span {
    overflow: hidden;
    font-size: .95rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ghost-link { display: none; }
  .desktop-nav { display: none !important; }
  .header-actions {
    position: absolute;
    top: 11px;
    right: 12px;
    justify-self: end;
    flex: 0 0 auto;
    width: 44px;
    margin-left: 0;
  }
  .header-actions .header-calc,
  .header-actions .ghost-link {
    display: none !important;
  }
  .menu-button {
    display: block !important;
    flex: 0 0 44px;
    min-width: 44px;
  }
  .mobile-nav.open {
    display: grid;
    gap: 2px;
    width: 100%;
    max-width: 100%;
  }
  .indicator-strip {
    width: 100%;
    max-width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }
  .indicator-note {
    display: none;
  }
  .site-main {
    margin: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    overflow: hidden;
    padding: 24px 12px 56px;
  }
  .site-main > *,
  .hero,
  .stage-two-hero {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
  }
  .ad-slot,
  .site-footer {
    width: 100% !important;
    max-width: 100% !important;
  }
  .hero,
  .stage-two-hero {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .hero,
  .stage-two-hero,
  .hero-copy,
  .hero-panel,
  .hero-visual,
  .page-hero,
  .content-grid,
  .calculator-layout,
  .advanced-tool-layout,
  .featured-card,
  .tool-card,
  .chart-card,
  .advanced-chart-card,
  .news-card,
  .panel,
  .result-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .hero-copy, .hero-panel {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
  }
  .hero-copy > *, .hero-panel > * {
    max-width: calc(100vw - 64px) !important;
  }
  .hero-copy p {
    width: auto !important;
    white-space: normal !important;
  }
  .hero-copy, .hero-panel { overflow: hidden; }
  .hero-copy h1, .hero-copy p, .hero-copy .eyebrow { max-width: 100%; }
  .stage-two-hero .hero-copy { background-image: none; }
  .stage-two-hero h1 {
    width: calc(100vw - 64px) !important;
    max-width: calc(100vw - 64px) !important;
    font-size: clamp(1.95rem, 8vw, 2.35rem) !important;
    line-height: 1.05 !important;
    word-break: break-word;
  }
  .hero-visual {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    min-height: auto;
    padding: 20px;
  }
  .finance-slider {
    min-height: 430px;
    padding: 0;
  }
  .finance-slide {
    padding: 24px;
  }
  .finance-slider__dots {
    left: 24px;
    top: 22px;
  }
  .hero-api-strip {
    align-items: flex-start;
  }
  .visual-grid { grid-template-columns: 1fr; }
  .visual-top { align-items: flex-start; }
  .visual-top strong {
    font-size: 1.15rem;
    overflow-wrap: anywhere;
  }
  .radar-card__header {
    display: grid;
    gap: 14px;
  }
  .radar-score {
    width: 88px;
  }
  .radar-status {
    align-items: flex-start;
  }
  .radar-meter {
    grid-template-columns: 1fr auto;
  }
  .radar-meter i {
    grid-column: 1 / -1;
  }
  .radar-metrics {
    grid-template-columns: 1fr;
  }
  .radar-actions {
    display: grid;
  }
  .radar-actions .button {
    width: 100%;
    justify-content: center;
  }
  .salary-bars { margin: 20px 0; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .section-title { display: block; }
  .hero p, .page-hero p { overflow-wrap: anywhere; }
  .hero-copy, .page-hero.compact, .panel { padding: 20px; }
  .tool-grid, .featured-grid, .chart-grid, .news-grid, .page-news-grid, .metric-grid, .calculator-form, .finance-info-grid, .advanced-field-grid, .advanced-metrics-grid, .advanced-insight-grid, .advanced-charts-grid {
    grid-template-columns: 1fr;
  }
  .form-section-label,
  .calculator-form .field-full,
  .advanced-field-grid label.field-full {
    grid-column: 1 / -1;
  }
  .calculator-form input,
  .calculator-form select,
  .advanced-field-grid input,
  .advanced-field-grid select {
    min-height: 48px;
    font-size: 16px;
  }
  .calculator-form .button,
  .advanced-tool-form .button {
    width: 100%;
    min-height: 48px;
  }
  .result-card strong,
  .advanced-summary-card strong {
    font-size: clamp(1.7rem, 11vw, 2.35rem);
  }
  .advanced-output__head {
    display: grid;
  }
  .advanced-chart-card > div:first-child {
    display: grid;
  }
  .advanced-chart-card {
    min-height: 320px;
  }
  .advanced-chart-box,
  .advanced-chart-box canvas {
    min-height: 230px;
    height: 230px !important;
  }
  .featured-card { grid-template-columns: 1fr; }
  .chart-card, .news-card { padding: 18px; }
  .donut-demo { width: 136px; }
  .mini-bars { height: 120px; }
  .related-tools { padding: 18px; }
  .footer-legal-owner {
    align-items: flex-start;
  }
  .footer-bottom { flex-direction: column; }
  .hero h1,
  .page-hero h1 {
    font-size: clamp(1.95rem, 8vw, 2.35rem);
    line-height: 1.05;
    overflow-wrap: break-word;
  }
}
