:root {
  --bg: #f4f8fe;
  --panel: #ffffff;
  --ink: #071d3d;
  --muted: #586a82;
  --line: #d5e1f0;
  --blue: #276ef1;
  --blue-soft: #edf4ff;
  --teal: #0aaaa6;
  --amber: #b86900;
  --red: #d92d3a;
  --shadow: 0 18px 48px rgba(34, 72, 126, 0.10);
  --shadow-soft: 0 8px 24px rgba(34, 72, 126, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(69, 126, 205, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 126, 205, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 12% 0%, rgba(39, 110, 241, 0.09), transparent 32rem);
  background-size: 48px 48px, 48px 48px, auto;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.site-brand img {
  display: block;
  flex: 0 0 auto;
}

.brand-svg {
  color: var(--blue);
}

.brand-name {
  color: #111827;
}

.content-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.share-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.share-links span {
  font-weight: 700;
}

.share-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #2359c4;
  padding: 4px 9px;
  font-weight: 650;
  text-decoration: none;
}

.share-links a:hover {
  border-color: #9ab9eb;
  background: var(--blue-soft);
  color: #174398;
}

.content-nav a,
.content-main a {
  color: #2359c4;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.content-nav a {
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.content-nav a:hover,
.content-main a:hover {
  color: #174398;
  text-decoration: underline;
}

/* Standalone information and guide pages */
.content-page {
  min-height: 100%;
  background:
    linear-gradient(rgba(69, 126, 205, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 126, 205, 0.055) 1px, transparent 1px),
    radial-gradient(circle at top right, rgba(39, 110, 241, 0.12), transparent 34rem),
    var(--bg);
  background-size: 48px 48px, 48px 48px, auto, auto;
}

.content-header {
  position: relative;
  z-index: 100;
  background: rgba(250, 253, 255, 0.88);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(34, 72, 126, 0.06);
  backdrop-filter: blur(16px);
}

.content-header-inner {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-decoration: none;
  white-space: nowrap;
}

.site-menu-label {
  display: none;
}

.site-navigation,
.content-nav {
  display: flex;
  align-items: center;
}

.content-nav {
  gap: 18px;
}

site-header,
site-footer {
  display: block;
}

site-header {
  min-height: 70px;
}

site-footer {
  min-height: 230px;
}

.layout-fallback-link {
  min-height: 70px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--blue);
  padding: 0 20px;
  font-weight: 750;
  text-decoration: none;
}

.content-nav a[aria-current="page"] {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.content-main {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 80px;
}

.content-main.wide {
  width: min(1080px, calc(100% - 40px));
}

.content-hero {
  margin-bottom: 40px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.content-main h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(34px, 7vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.content-main h2 {
  margin: 38px 0 12px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.content-main h3 {
  margin: 24px 0 8px;
  font-size: 18px;
}

.lede {
  max-width: 740px;
  margin: 18px 0 0;
  color: #405164;
  font-size: 19px;
  line-height: 1.65;
}

.content-main p,
.content-main li {
  color: #334155;
  font-size: 16px;
  line-height: 1.75;
}

.content-main p {
  margin: 0 0 16px;
}

.content-main ul,
.content-main ol {
  margin: 12px 0 22px;
  padding-left: 24px;
}

.content-main li {
  margin-bottom: 8px;
}

.content-main code {
  color: #8a4f00;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.9em;
}

.content-main pre {
  overflow-x: auto;
  margin: 18px 0 24px;
  border: 1px solid #26364a;
  border-radius: 12px;
  background: #152033;
  color: #ecf3ff;
  padding: 18px;
}

.content-main pre code {
  color: inherit;
}

.info-card,
.guide-card,
.callout {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.info-card,
.callout {
  padding: 22px;
}

.callout {
  margin: 28px 0;
  border-left: 4px solid var(--blue);
}

.callout p:last-child,
.info-card p:last-child {
  margin-bottom: 0;
}

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

.guide-card {
  display: block;
  padding: 24px;
  color: inherit;
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.guide-card:hover {
  transform: translateY(-2px);
  border-color: #9fb9eb;
  box-shadow: 0 16px 36px rgba(25, 38, 54, 0.12);
  text-decoration: none !important;
}

.guide-card h2,
.guide-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
}

.guide-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.guide-card .guide-topic {
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calculator-hero {
  max-width: 940px;
}

.calculator-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: start;
  margin: 34px 0 68px;
}

.calculator-controls,
.calculator-results {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  padding: 24px;
}

.calculator-controls fieldset {
  min-width: 0;
  margin: 0 0 22px;
  border: 0;
  padding: 0;
}

.calculator-controls legend {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 780;
}

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

.calculator-field-grid.four-up {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.calculator-field-grid .field-span-two {
  grid-column: span 2;
}

.calculator-controls label {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: #405164;
  font-size: 12px;
  font-weight: 720;
}

.calculator-controls input,
.calculator-controls select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid #b8c9df;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 550;
}

.calculator-controls input:focus-visible,
.calculator-controls select:focus-visible,
.calculator-reset:focus-visible {
  outline: 3px solid rgba(39, 110, 241, 0.25);
  outline-offset: 2px;
  border-color: var(--blue);
}

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

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

.point-input-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid #d5e1f0;
  border-radius: 12px;
  background: #f8fbff;
  padding: 12px;
}

.point-input-group h3 {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink);
  font-size: 13px;
}

.range-field input[type="range"] {
  min-height: 30px;
  padding: 0;
  accent-color: var(--blue);
}

.calculator-reset {
  min-height: 42px;
  border: 1px solid #b8c9df;
  border-radius: 9px;
  background: var(--blue-soft);
  color: #174398;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.calculator-reset:hover {
  border-color: #87a9dd;
  background: #e1ecff;
}

.calculator-results {
  position: sticky;
  top: 24px;
}

.calculator-preview-wrap {
  overflow: hidden;
  border: 1px solid #c5d5e8;
  border-radius: 14px;
  background:
    linear-gradient(rgba(69, 126, 205, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 126, 205, 0.07) 1px, transparent 1px),
    #f9fcff;
  background-size: 24px 24px;
}

.calculator-preview {
  width: 100%;
  min-height: 260px;
  max-height: 420px;
  display: block;
}

.coordinate-preview {
  aspect-ratio: 3 / 2;
}

.bezier-preview {
  aspect-ratio: 16 / 11;
}

.preview-frame {
  fill: rgba(39, 110, 241, 0.06);
  stroke: #6e91c2;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.preview-axis {
  fill: none;
  stroke: #aebdd0;
  stroke-dasharray: 5 5;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.preview-point {
  stroke: #fff;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.source-point,
.anchor-point {
  fill: var(--blue);
}

.converted-point,
.control-point {
  fill: var(--amber);
}

.curve-point {
  fill: var(--teal);
}

.preview-handle {
  stroke: #91a5bf;
  stroke-dasharray: 5 4;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.preview-curve {
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-width: 4;
  vector-effect: non-scaling-stroke;
}

.preview-tangent {
  stroke: var(--teal);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.preview-key {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  border-top: 1px solid #d5e1f0;
  background: rgba(255, 255, 255, 0.92);
  padding: 9px 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.preview-key span::before {
  content: "";
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.preview-key .converted-key::before,
.preview-key .control-key::before {
  background: var(--amber);
}

.preview-key .curve-key::before {
  background: var(--teal);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
}

.result-grid > div {
  min-width: 0;
  border: 1px solid #d5e1f0;
  border-radius: 10px;
  background: #f8fbff;
  padding: 12px;
}

.result-grid .result-span {
  grid-column: 1 / -1;
}

.result-grid dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.result-grid dd {
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 730;
  line-height: 1.45;
}

.calculator-status {
  min-height: 21px;
  margin: 12px 0 0 !important;
  color: #427160 !important;
  font-size: 12px !important;
  font-weight: 700;
}

.calculator-invalid .calculator-status {
  color: var(--red) !important;
}

.calculator-article {
  width: min(820px, 100%);
  margin: 0 auto;
}

.content-main.wide > section + section {
  margin-top: 56px;
}

.content-main.wide > section > h2 {
  margin-top: 8px;
}

.guide-start {
  margin-top: 64px !important;
}

.breadcrumbs {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: inherit;
}

.article-meta {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.article-byline {
  margin: -20px 0 36px;
  border-left: 3px solid var(--teal);
  background: rgba(255, 255, 255, 0.72);
  padding: 12px 16px;
}

.article-byline p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.step-list {
  counter-reset: guide-step;
  list-style: none;
  padding-left: 0 !important;
}

.step-list > li {
  counter-increment: guide-step;
  position: relative;
  min-height: 44px;
  padding-left: 56px;
  margin-bottom: 22px;
}

.step-list > li::before {
  content: counter(guide-step);
  position: absolute;
  top: 1px;
  left: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 750;
}

.landing-hero {
  max-width: 900px;
  margin-bottom: 34px;
}

.landing-hero h1 {
  max-width: 900px;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.landing-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 10px 18px;
  font-weight: 750;
  text-decoration: none !important;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.landing-button:hover {
  transform: translateY(-1px);
}

.landing-button-primary {
  background: var(--blue);
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(39, 110, 241, 0.23);
}

.landing-button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink) !important;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px !important;
  padding: 0 !important;
  list-style: none;
}

.trust-list li {
  position: relative;
  margin: 0;
  padding-left: 19px;
  color: var(--muted);
  font-size: 14px;
}

.trust-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 800;
}

.landing-preview {
  margin: 0 0 72px;
}

.landing-preview img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(34, 72, 126, 0.16);
}

.landing-preview figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.landing-feature-grid h3 {
  margin-top: 0;
}

.landing-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 34px;
  align-items: start;
  margin-top: 68px;
}

.landing-free-note {
  margin: 0;
}

.landing-free-note h2 {
  margin-top: 0;
}

.faq-list {
  margin-top: 68px;
}

.faq-list details {
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  padding: 0 18px;
}

.faq-list summary {
  cursor: pointer;
  padding: 16px 0;
  color: var(--ink);
  font-weight: 720;
}

.faq-list details p {
  margin: -2px 0 16px;
}

.landing-final-cta {
  margin-top: 68px;
  border: 1px solid #c9d9f4;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(39, 110, 241, 0.1), rgba(64, 175, 167, 0.08)), #fff;
  padding: clamp(26px, 5vw, 46px);
}

.landing-final-cta h2 {
  margin-top: 0;
}

.page-footer {
  border-top: 1px solid var(--line);
  background: rgba(250, 253, 255, 0.92);
  padding: 30px 20px 18px;
}

.page-footer-inner {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) minmax(0, 2fr);
  gap: 28px 52px;
}

.footer-brand-block p,
.footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.footer-brand {
  margin-bottom: 9px;
  font-size: 15px;
}

.footer-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.footer-menu-grid nav {
  display: grid;
  align-content: start;
  gap: 7px;
}

.footer-menu-grid h2 {
  margin: 0 0 2px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-menu-grid a {
  width: max-content;
  max-width: 100%;
  color: #2359c4;
  font-size: 12.5px;
  line-height: 1.35;
  text-decoration: none;
}

.footer-privacy-control {
  width: max-content;
  max-width: 100%;
  margin: 0;
  border: 0;
  background: transparent;
  color: #2359c4;
  padding: 0;
  font: inherit;
  font-size: 12.5px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.footer-privacy-control:hover {
  color: #174398;
  text-decoration: underline;
}

.footer-privacy-control[hidden] {
  display: none;
}

.footer-menu-grid a:hover {
  color: #174398;
  text-decoration: underline;
}

.footer-bottom {
  grid-column: 1 / -1;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.article-ad {
  position: relative;
  min-height: 282px;
  display: block;
  margin: 44px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px 0 0;
  color: var(--muted);
  text-align: center;
  overflow: visible;
}

.article-ad .ad-label {
  position: absolute;
  top: 9px;
  left: 0;
  right: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.article-ad .adsbygoogle {
  width: 100%;
  height: 250px;
}

.article-ad:not(.ad-slot-active)::before,
.article-ad.ad-slot-unfilled::before {
  content: "Reserved ad space";
  position: absolute;
  inset: 30px 0 0;
  display: grid;
  place-items: center;
  border: 1px dashed #c8d5e5;
  border-radius: 10px;
  color: #7a8da6;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-ad.ad-slot-unfilled .adsbygoogle {
  visibility: hidden;
}

@media (max-width: 900px) {
  .content-header-inner {
    width: min(100% - 28px, 1080px);
    min-height: 58px;
    padding: 10px 0;
    align-items: center;
    gap: 12px;
  }

  .site-navigation {
    position: relative;
  }

  .site-menu-label {
    min-width: 44px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    padding: 0 11px;
    list-style: none;
    user-select: none;
  }

  .site-menu-label::-webkit-details-marker {
    display: none;
  }

  .site-menu-icon {
    position: relative;
    width: 20px;
    height: 16px;
    flex: 0 0 20px;
  }

  .site-menu-icon > span {
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: top 160ms ease, transform 160ms ease, opacity 120ms ease;
  }

  .site-menu-icon > span:nth-child(1) { top: 1px; }
  .site-menu-icon > span:nth-child(2) { top: 7px; }
  .site-menu-icon > span:nth-child(3) { top: 13px; }

  .site-menu[open] .site-menu-icon > span:nth-child(1) {
    top: 7px;
    transform: rotate(45deg);
  }

  .site-menu[open] .site-menu-icon > span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0.2);
  }

  .site-menu[open] .site-menu-icon > span:nth-child(3) {
    top: 7px;
    transform: rotate(-45deg);
  }

  .site-menu-close-text {
    display: none;
  }

  .site-menu[open] .site-menu-open-text {
    display: none;
  }

  .site-menu[open] .site-menu-close-text {
    display: inline;
  }

  .site-menu:not([open]) + .content-nav {
    display: none;
  }

  .site-menu + .content-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 50;
    width: min(270px, calc(100vw - 28px));
    display: grid;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 55px rgba(18, 52, 96, 0.2);
    padding: 8px;
  }

  .site-menu + .content-nav a {
    min-height: 40px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    padding: 0 12px;
  }

  .site-menu + .content-nav a[aria-current="page"] {
    background: var(--blue-soft);
    text-decoration: none;
  }

  site-header {
    min-height: 58px;
  }

  .calculator-shell {
    grid-template-columns: 1fr;
  }

  .calculator-results {
    position: static;
  }

  .calculator-field-grid.four-up,
  .point-input-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 720px) {

  site-footer {
    min-height: 520px;
  }

  .content-main,
  .content-main.wide {
    width: min(100% - 28px, 900px);
    padding: 44px 0 60px;
  }

  .article-ad {
    margin: 36px 0;
  }

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

  .calculator-controls,
  .calculator-results {
    padding: 18px;
  }

  .calculator-pair,
  .calculator-field-grid,
  .calculator-field-grid.four-up,
  .point-input-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .calculator-field-grid .field-span-two,
  .result-grid .result-span {
    grid-column: auto;
  }

  .calculator-preview {
    min-height: 220px;
  }

  .landing-split {
    grid-template-columns: 1fr;
  }

  .landing-actions .landing-button {
    width: 100%;
  }

  .page-footer {
    padding: 26px 14px 16px;
  }

  .page-footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-menu-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    border-top: 1px solid var(--line);
    padding-top: 22px;
  }

  .footer-menu-grid nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 18px;
  }

  .footer-menu-grid h2 {
    grid-column: 1 / -1;
  }

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