@media (max-width: 850px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
  }

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

  .nav {
    width: 100%;
    min-width: 0;
    gap: 14px;
    padding: 18px 20px;
  }

  .brand {
    min-width: 0;
    font-size: 13px;
    letter-spacing: 0.28em;
  }

  .navlinks {
    min-width: 0;
    flex: 0 0 auto;
  }

  .auth-cta {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    font-size: 13px;
  }

  .hero,
  .letter,
  .plain,
  .demo,
  .culture,
  .dictionary,
  .range,
  .close,
  footer {
    width: 100%;
    max-width: 100%;
  }

  .hero {
    min-height: 88svh;
    padding: 124px 22px 58px;
  }

  .hero-inner,
  .letter-wrap,
  .letter-copy,
  .plain-grid,
  .demo-wrap,
  .culture-wrap,
  .dict-wrap,
  .range-wrap,
  .close-wrap,
  .footer-inner {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  h1,
  h2,
  h3,
  p,
  .dict-term,
  .costulator-static-costvalue,
  .costulator-static-energyvalue {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  h1 {
    font-size: clamp(46px, 13vw, 72px);
    line-height: 0.98;
  }

  h2 {
    font-size: clamp(38px, 10vw, 54px);
    line-height: 1.03;
  }

  .hero-deck {
    margin-top: 28px;
    font-size: 18px;
    line-height: 1.5;
  }

  .hero-actions {
    margin-top: 30px;
  }

  .btn {
    min-height: 48px;
    touch-action: manipulation;
  }

  .letter {
    padding-top: 48px;
    padding-bottom: 52px;
  }

  .letter-copy p {
    max-width: 100%;
    font-size: 17px;
    line-height: 1.58;
  }

  .rule {
    margin: 26px 0 20px;
  }

  .belief {
    display: block !important;
    width: 100%;
    max-width: 100% !important;
    margin: 0 !important;
    white-space: normal !important;
    font-size: 17px !important;
    line-height: 1.5 !important;
  }

  .belief-mark {
    display: inline !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--violet) !important;
    font-size: 30px !important;
    line-height: 0 !important;
    vertical-align: -0.12em;
  }

  .belief-author {
    display: block;
    max-width: 100%;
    margin: 18px 0 0 20px;
    white-space: normal;
    color: #66615b;
    font-size: 0.9em;
    line-height: 1.45;
  }

  .plain,
  .demo,
  .culture,
  .dictionary,
  .range,
  .close {
    padding-top: 76px;
    padding-bottom: 80px;
  }

  .plain-grid,
  .dict-wrap {
    gap: 34px;
  }

  .plain p,
  .dict-copy p,
  .range-intro p,
  .culture > .culture-wrap > p,
  .close p {
    font-size: 18px;
    line-height: 1.55;
  }

  .not-ai {
    margin-top: 28px;
    padding-top: 24px;
  }

  .not-ai div {
    font-size: 17px;
    line-height: 1.45;
  }

  .jargon-transition {
    width: 100%;
    max-width: 100%;
    height: 290px;
  }

  .demo-head,
  .mock,
  .mock-top,
  .mock-body,
  .mock-results,
  .mock-text {
    min-width: 0;
    max-width: 100%;
  }

  .mock {
    margin-top: 38px;
  }

  .mock-body {
    height: auto;
    min-height: 0;
  }

  .mock-results,
  .mock-text {
    width: 100%;
  }

  .finding {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 6px;
  }

  .finding summary,
  .finding-detail,
  .sample-post {
    overflow-wrap: anywhere;
  }

  .costulator-static,
  .costulator-static-page,
  .costulator-static-content,
  .costulator-static-intro,
  .costulator-static-hero,
  .costulator-static-cost,
  .costulator-static-intensity,
  .costulator-static-metrics,
  .costulator-static-energy,
  .costulator-static-receipt {
    min-width: 0;
    max-width: 100%;
  }

  .costulator-static-costvalue {
    white-space: normal;
  }

  .costulator-static-hash {
    max-width: 100%;
  }

  .dict-card {
    min-width: 0;
    min-height: 360px;
    padding: 30px 26px;
  }

  .dict-term {
    font-size: clamp(42px, 13vw, 66px);
  }

  .range-title {
    max-width: 100%;
  }

  .close-actions,
  .footer-links,
  .footer-meta {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 600px) {
  .nav {
    padding: 16px;
  }

  .brand {
    font-size: 12px;
    letter-spacing: 0.24em;
  }

  .auth-cta {
    min-height: 42px;
    padding: 8px 12px;
  }

  .hero {
    min-height: 84svh;
    padding: 112px 18px 52px;
  }

  .letter,
  .plain,
  .demo,
  .culture,
  .dictionary,
  .range,
  .close {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-actions,
  .close-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .btn,
  .close-actions .btn {
    width: 100%;
  }

  .letter {
    padding-top: 42px;
    padding-bottom: 46px;
  }

  .belief-author {
    margin-left: 0;
  }

  .plain,
  .demo,
  .culture,
  .dictionary,
  .range,
  .close {
    padding-top: 64px;
    padding-bottom: 68px;
  }

  .mock {
    border-radius: 12px;
  }

  .mock-results {
    padding: 12px 10px;
  }

  .mock-text {
    padding: 20px 16px;
  }

  .finding-number {
    font-size: 11px;
  }

  .costulator-static {
    width: 100%;
  }

  .costulator-static-page {
    width: 100%;
    border-radius: 10px;
  }

  .costulator-static-costvalue {
    font-size: clamp(52px, 17vw, 76px);
  }

  .costulator-static-energyvalue {
    font-size: clamp(38px, 12vw, 54px);
  }

  .costulator-static-scalelabels {
    font-size: 11px;
  }

  .costulator-static-rows > div {
    grid-template-columns: minmax(92px, 0.42fr) minmax(0, 1fr);
  }

  .dict-card {
    min-height: 330px;
  }

  footer {
    padding: 32px 18px 36px;
  }
}

@media (max-width: 420px) {
  .nav {
    padding: 14px 14px 16px;
  }

  .brand {
    font-size: 11px;
    letter-spacing: 0.22em;
  }

  .auth-cta {
    min-height: 40px;
    padding: 7px 11px;
    font-size: 12px;
  }

  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  h2 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .hero-deck,
  .plain p,
  .dict-copy p,
  .range-intro p,
  .culture > .culture-wrap > p,
  .close p {
    font-size: 17px;
  }

  .letter,
  .plain,
  .demo,
  .culture,
  .dictionary,
  .range,
  .close {
    padding-left: 16px;
    padding-right: 16px;
  }

  .belief,
  .letter-copy p {
    font-size: 16px !important;
  }

  .dict-card {
    padding: 26px 22px;
  }

  .costulator-static-content {
    padding-left: 10px;
    padding-right: 10px;
  }

  .costulator-static-cost,
  .costulator-static-intensity {
    padding-left: 12px;
    padding-right: 12px;
  }

  .costulator-static-metric {
    gap: 10px;
  }

  .costulator-static-metric .costulator-static-icon {
    width: 46px;
    height: 46px;
  }

  footer {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 360px) {
  .brand {
    max-width: 142px;
    letter-spacing: 0.18em;
  }

  .auth-cta {
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero {
    padding-left: 14px;
    padding-right: 14px;
  }

  .letter,
  .plain,
  .demo,
  .culture,
  .dictionary,
  .range,
  .close,
  footer {
    padding-left: 14px;
    padding-right: 14px;
  }
}
