:root {
  --ink: #17212b;
  --muted: #647180;
  --line: #dce4ea;
  --paper: #fffdf8;
  --surface: #ffffff;
  --blue: #4fa3e3;
  --blue-dark: #1f6fa9;
  --yellow: #f4b800;
  --green: #2e9f6f;
  --coral: #f06f53;
  --shadow: 0 24px 70px rgba(23, 33, 43, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: start;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px 5vw;
  background: rgba(255, 253, 248, 0.92);
  border-bottom: 1px solid rgba(220, 228, 234, 0.8);
  backdrop-filter: blur(18px);
}

.brand img {
  width: 220px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a {
  padding: 8px 0;
}

.nav-links a:hover,
.text-link:hover {
  color: var(--blue-dark);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(31, 111, 169, 0.24);
  border-radius: 8px;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.72);
}

.language-switch:hover {
  background: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(380px, 0.8fr);
  grid-template-areas: "copy visual";
  gap: 44px;
  align-items: center;
  min-height: min(720px, calc(100vh - 76px));
  padding: 48px 5vw;
  background:
    linear-gradient(115deg, rgba(79, 163, 227, 0.12), rgba(244, 184, 0, 0.16)),
    var(--paper);
}

.page-hero {
  position: relative;
  overflow: hidden;
}

.neural-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.68;
}

.hero > :not(.neural-canvas),
.page-hero > :not(.neural-canvas) {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0;
  font-size: 4.5rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero__content {
  grid-area: copy;
  max-width: 760px;
  justify-self: start;
  align-self: start;
  padding-top: 56px;
}

.hero__lead {
  max-width: 720px;
  margin: 26px 0 0;
  color: #425061;
  font-size: 1.28rem;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 800;
  border: 1px solid transparent;
}

.button--primary {
  color: #101820;
  background: var(--yellow);
  box-shadow: 0 10px 24px rgba(244, 184, 0, 0.28);
}

.button--ghost {
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(31, 111, 169, 0.24);
}

.hero__visual {
  grid-area: visual;
  min-height: 0;
  display: grid;
  place-items: center;
  justify-self: center;
  align-self: start;
  width: 100%;
  padding-top: 12px;
}

.ai-console {
  position: relative;
  width: min(100%, 500px);
  min-height: 420px;
  padding: 18px;
  border: 1px solid rgba(220, 228, 234, 0.92);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 250, 247, 0.92)), #fff;
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.ai-console:hover {
  box-shadow: 0 30px 90px rgba(23, 33, 43, 0.18);
}

.ai-console__bar {
  display: flex;
  gap: 7px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.ai-console__bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--coral);
}

.ai-console__bar span:nth-child(2) {
  background: var(--yellow);
}

.ai-console__bar span:nth-child(3) {
  background: var(--green);
}

.ai-console__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 225px;
}

.ai-console__grid::before,
.ai-console__grid::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 32%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--blue), var(--blue) 10px, transparent 10px, transparent 18px);
  animation: routePulse 1.8s linear infinite;
}

.ai-console__grid::before {
  left: 22%;
}

.ai-console__grid::after {
  right: 22%;
  background: repeating-linear-gradient(90deg, var(--yellow), var(--yellow) 10px, transparent 10px, transparent 18px);
}

.ai-console__grid img {
  width: 120px;
  z-index: 1;
  margin: 0 auto;
  filter: drop-shadow(0 20px 34px rgba(23, 33, 43, 0.18));
  animation: logoBreathe 4.5s ease-in-out infinite;
}

.ai-chip {
  z-index: 1;
  min-height: 126px;
  padding: 16px;
  border: 1px solid rgba(220, 228, 234, 0.88);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
}

.ai-chip span,
.savings-meter span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.ai-chip strong,
.savings-meter strong {
  display: block;
  margin-top: 5px;
  line-height: 1.25;
}

.ai-chip--local {
  border-top: 4px solid var(--blue);
}

.ai-chip--paid {
  border-top: 4px solid var(--yellow);
}

.token-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 8px 0 18px;
}

.token-flow span {
  height: 38px;
  border: 1px solid rgba(31, 111, 169, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(79, 163, 227, 0.18), rgba(244, 184, 0, 0.18)),
    repeating-linear-gradient(90deg, transparent, transparent 10px, rgba(23, 33, 43, 0.05) 10px, rgba(23, 33, 43, 0.05) 11px);
  animation: tokenScan 2.8s ease-in-out infinite;
}

.token-flow span:nth-child(2) { animation-delay: 0.12s; }
.token-flow span:nth-child(3) { animation-delay: 0.24s; }
.token-flow span:nth-child(4) { animation-delay: 0.36s; }
.token-flow span:nth-child(5) { animation-delay: 0.48s; }

.savings-meter {
  width: 100%;
  padding: 18px;
  border: 1px solid rgba(46, 159, 111, 0.22);
  border-top: 4px solid var(--green);
  border-radius: var(--radius);
  background: #f4faf7;
}

.savings-meter strong {
  color: var(--green);
  font-size: 2rem;
}

[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes routePulse {
  from { background-position-x: 0; }
  to { background-position-x: 36px; }
}

@keyframes logoBreathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.025); }
}

@keyframes tokenScan {
  0%, 100% { transform: translateY(0); opacity: 0.72; }
  50% { transform: translateY(-6px); opacity: 1; }
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.trust-strip span {
  padding: 18px;
  background: var(--surface);
  text-align: center;
  color: #415061;
  font-weight: 800;
}

.section {
  padding: 84px 5vw;
}

.section__header {
  max-width: 780px;
  margin-bottom: 34px;
}

.section__header--row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
}

.section h2,
.page-hero h1,
.article__header h1 {
  margin: 0;
  font-size: 2.55rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.section__header p:not(.eyebrow),
.section--split > div > p,
.page-hero p,
.guide p,
.article__header p {
  color: var(--muted);
  font-size: 1.08rem;
}

.method-grid,
.posts-grid,
.route-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.method-grid article,
.post-card,
.route-grid a,
.calculator,
.guide article,
.article-cta {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 36px rgba(23, 33, 43, 0.07);
}

.method-grid article {
  padding: 28px;
}

.method-grid span,
.guide span {
  color: var(--coral);
  font-weight: 900;
}

.method-grid h3,
.post-card h3,
.route-grid strong {
  margin: 10px 0;
  font-size: 1.36rem;
  line-height: 1.2;
}

.method-grid p,
.post-card p,
.route-grid span {
  color: var(--muted);
}

.section--split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 46px;
  align-items: start;
  background: #f4faf7;
  border-block: 1px solid rgba(46, 159, 111, 0.18);
}

.calculator {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 22px;
}

.calculator label {
  display: grid;
  gap: 8px;
  color: #405061;
  font-size: 0.92rem;
  font-weight: 800;
}

.calculator input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fbfdff;
  font: inherit;
}

.calculator input[type="range"] {
  padding-inline: 0;
  accent-color: var(--green);
}

.calculator output {
  color: var(--green);
}

.calculator label:nth-child(5),
.calculator__result {
  grid-column: 1 / -1;
}

.calculator__result {
  padding: 18px;
  border-radius: var(--radius);
  background: #142019;
  color: #effaf4;
}

.calculator__result span,
.calculator__result small {
  display: block;
  color: rgba(239, 250, 244, 0.72);
}

.calculator__result strong {
  display: block;
  margin-top: 4px;
  color: var(--yellow);
  font-size: 2.4rem;
  line-height: 1.1;
}

.calculator__link {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(31, 111, 169, 0.24);
  color: var(--blue-dark);
  font-weight: 900;
  background: #fff;
}

.page-hero--calculator {
  min-height: 340px;
}

.tool-shell {
  width: min(1180px, calc(100% - 10vw));
  margin: 0 auto;
  padding: 54px 0 92px;
}

.tool-notice {
  display: flex;
  gap: 14px;
  align-items: start;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(244, 184, 0, 0.34);
  border-left: 4px solid var(--yellow);
  border-radius: var(--radius);
  color: #4d5660;
  background: #fff9df;
}

.tool-notice strong {
  color: #101820;
}

.tool-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.tool-tabs button {
  min-height: 40px;
  padding: 9px 14px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.tool-tabs button.is-active {
  color: #101820;
  background: var(--yellow);
}

.tool-panel {
  display: none;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 48px rgba(23, 33, 43, 0.08);
}

.tool-panel.is-active {
  display: block;
}

.token-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(270px, 0.75fr);
  gap: 22px;
  align-items: stretch;
}

.token-input label,
.tool-field label {
  display: block;
  margin-bottom: 8px;
  color: #405061;
  font-size: 0.92rem;
  font-weight: 900;
}

.token-input textarea,
.tool-field input,
.tool-field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fbfdff;
  font: inherit;
}

.token-input textarea {
  min-height: 300px;
  resize: vertical;
  padding: 16px;
  line-height: 1.55;
}

.tool-field input,
.tool-field select {
  min-height: 46px;
  padding: 11px 12px;
}

.tool-field input[type="range"] {
  padding-inline: 0;
  accent-color: var(--green);
}

.tool-field output,
.tool-field small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.85rem;
}

.input-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.metric-grid,
.local-result {
  display: grid;
  gap: 12px;
}

.metric {
  padding: 18px;
  border: 1px solid rgba(79, 163, 227, 0.2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #f6fbff);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 4px;
  color: #101820;
  font-size: 1.65rem;
  line-height: 1.15;
}

.tool-grid {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.tool-grid--models {
  grid-template-columns: repeat(3, 1fr);
}

.comparison-table {
  overflow-x: auto;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.comparison-table table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  background: #fff;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  color: #405061;
  background: #f5f8fb;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.comparison-table td small {
  display: block;
  max-width: 280px;
  margin-top: 4px;
  color: var(--muted);
}

.flow-grid,
.local-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 24px;
}

.flow-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.flow-result {
  padding: 24px;
  border-radius: var(--radius);
  color: #effaf4;
  background:
    linear-gradient(145deg, rgba(46, 159, 111, 0.22), transparent),
    #142019;
}

.flow-result span {
  display: block;
  color: rgba(239, 250, 244, 0.72);
  font-weight: 900;
}

.flow-result strong {
  display: block;
  margin: 2px 0 16px;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1.1;
}

.flow-result strong.saving {
  color: var(--yellow);
  font-size: 2.4rem;
}

.flow-result p,
.local-result p {
  margin: 10px 0 0;
  color: var(--muted);
}

.flow-result p {
  color: rgba(239, 250, 244, 0.78);
}

.section--contrast {
  background: #17212b;
  color: #fff;
}

.section--contrast .eyebrow {
  color: var(--yellow);
}

.section--contrast h2,
.section--contrast strong {
  color: #fff;
}

.route-grid {
  grid-template-columns: repeat(4, 1fr);
}

.route-grid a {
  padding: 22px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.route-grid span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.68);
}

.posts-grid--wide {
  grid-template-columns: repeat(3, 1fr);
}

.post-card {
  padding: 24px;
}

.post-card__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.post-card h3 a:hover {
  color: var(--blue-dark);
}

.post-card__tags,
.article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.post-card__tags span,
.article__tags span {
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(79, 163, 227, 0.12);
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.text-link {
  color: var(--blue-dark);
  font-weight: 900;
}

.page-hero {
  min-height: 280px;
  padding: 58px 5vw 46px;
  background:
    linear-gradient(115deg, rgba(23, 33, 43, 0.82), rgba(31, 111, 169, 0.7)),
    linear-gradient(115deg, rgba(79, 163, 227, 0.28), rgba(244, 184, 0, 0.22));
  color: #fff;
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
}

.page-hero .eyebrow {
  color: var(--yellow);
}

.page-hero .neural-canvas {
  opacity: 0.9;
  mix-blend-mode: screen;
}

.guide {
  max-width: 920px;
  margin: 0 auto;
  padding: 62px 5vw 92px;
}

.guide article {
  padding: 30px;
  margin-bottom: 18px;
}

.article {
  max-width: 960px;
  margin: 0 auto;
  padding: 74px 5vw 96px;
}

.article__header {
  margin-bottom: 42px;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 18px;
}

.article__body {
  max-width: 760px;
}

.article__body h2 {
  margin: 48px 0 8px;
  font-size: 1.8rem;
  line-height: 1.2;
}

.article__body h3 {
  margin: 34px 0 8px;
}

.article__body p,
.article__body li {
  color: #344354;
  font-size: 1.08rem;
}

.article__body a {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article__body code {
  padding: 2px 5px;
  border-radius: 6px;
  background: #eef4f8;
  color: #b3432c;
}

.article__body pre {
  position: relative;
  overflow-x: auto;
  margin: 28px 0;
  padding: 48px 22px 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(79, 163, 227, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 42px),
    #111c26;
  box-shadow: 0 18px 42px rgba(17, 28, 38, 0.16);
}

.article__body pre::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 18px 0 0 var(--yellow), 36px 0 0 var(--green);
}

.article__body pre::after {
  content: "snippet";
  position: absolute;
  top: 11px;
  right: 18px;
  color: rgba(237, 247, 255, 0.54);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.article__body pre code {
  display: block;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #edf7ff;
  font-size: 0.95rem;
  line-height: 1.75;
  white-space: pre;
  tab-size: 2;
}

.article__body pre code.language-python {
  color: #d8f3ff;
}

.article__body pre code.language-csv,
.article__body pre code.language-text {
  color: #f7ead0;
}

.article__body blockquote {
  margin: 28px 0;
  padding: 6px 0 6px 18px;
  border-left: 4px solid var(--yellow);
}

.article__body figure {
  margin: 30px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 36px rgba(23, 33, 43, 0.07);
}

.article__body figure img {
  width: 100%;
  border-radius: 6px;
}

.article__body figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.article-cta {
  max-width: 760px;
  margin-top: 52px;
  padding: 28px;
  background: #f4faf7;
}

.article-cta h2 {
  margin-top: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 36px 5vw;
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer img {
  width: 52px;
}

.site-footer > div:first-child {
  display: flex;
  gap: 14px;
  align-items: center;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

.site-footer > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero,
  .section--split {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-areas:
      "copy"
      "visual";
    min-height: auto;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .hero__visual {
    min-height: auto;
  }

  .method-grid,
  .posts-grid,
  .posts-grid--wide,
  .route-grid,
  .token-workbench,
  .flow-grid,
  .local-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .token-workbench,
  .flow-grid,
  .local-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .site-nav {
    min-height: 68px;
  }

  .brand img {
    width: 176px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    inset: 68px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 5vw 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 12px 0;
  }

  .hero,
  .section,
  .page-hero,
  .article {
    padding-inline: 22px;
  }

  .hero h1 {
    font-size: 2.45rem;
  }

  .hero__content,
  .hero__visual {
    padding-top: 0;
  }

  .hero__lead,
  .section__header p:not(.eyebrow),
  .page-hero p,
  .article__body p,
  .article__body li {
    font-size: 1rem;
  }

  .section h2,
  .page-hero h1,
  .article__header h1 {
    font-size: 2rem;
  }

  .method-grid,
  .posts-grid,
  .posts-grid--wide,
  .route-grid,
  .calculator,
  .tool-grid--models,
  .flow-form,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .tool-shell {
    width: calc(100% - 44px);
  }

  .tool-panel {
    padding: 18px;
  }

  .tool-tabs {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .ai-console {
    min-height: auto;
  }

  .ai-console__grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 22px 0;
  }

  .ai-console__grid::before,
  .ai-console__grid::after {
    display: none;
  }

  .ai-console__grid img {
    width: 96px;
  }

  .section__header--row,
  .site-footer {
    display: block;
  }

  .site-footer > div:last-child {
    margin-top: 22px;
  }
}
