:root {
  --ink: #172554;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --surface-soft: #fffaf4;
  --surface-blue: #f5f8ff;
  --orange: #f97316;
  --orange-dark: #c2410c;
  --orange-soft: #ffedd5;
  --blue: #2563eb;
  --blue-soft: #dbeafe;
  --green: #15803d;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 24px 64px rgba(30, 41, 59, 0.10);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 8vw, 4.75rem);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 5vw, 2.7rem);
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.narrow-container {
  max-width: 940px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 3px;
}

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(255, 255, 255, 0.94);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand img {
  flex: 0 0 auto;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 26px;
}

.main-nav a {
  color: #475569;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--blue);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 64px;
  background:
    radial-gradient(circle at 10% 5%, rgba(249, 115, 22, 0.10), transparent 30%),
    radial-gradient(circle at 90% 20%, rgba(37, 99, 235, 0.09), transparent 28%),
    linear-gradient(180deg, #fffaf4 0%, #ffffff 72%);
}

.hero::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(23, 37, 84, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 37, 84, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 62%);
}

.hero .container {
  position: relative;
}

.hero-copy {
  max-width: 840px;
  margin: 0 auto 36px;
  text-align: center;
}

.eyebrow,
.section-kicker,
.mini-label {
  margin-bottom: 10px;
  color: var(--orange-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  background: rgba(255, 237, 213, 0.72);
  border: 1px solid #fed7aa;
  border-radius: 99px;
}

.eyebrow span {
  color: var(--green);
  font-size: 0.6rem;
}

.hero-lead {
  max-width: 720px;
  margin: 0 auto;
  color: #475569;
  font-size: clamp(1.05rem, 2.8vw, 1.24rem);
}

.tool-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(203, 213, 225, 0.82);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.tool-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
  border-bottom: 1px solid var(--line);
}

.tool-heading h2 {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.8rem);
}

.tool-heading .section-kicker,
.chart-header .section-kicker,
.difference-heading .section-kicker {
  margin-bottom: 5px;
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
}

.tool-layout {
  display: grid;
}

.controls-panel,
.visualization-panel {
  min-width: 0;
  padding: 20px;
}

.visualization-panel {
  background: var(--surface-blue);
  border-top: 1px solid var(--line);
}

.unit-switcher {
  min-width: 0;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

.unit-switcher legend {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.83rem;
  font-weight: 750;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px;
  background: #f1f5f9;
  border-radius: 12px;
}

.segmented-control label {
  position: relative;
  cursor: pointer;
}

.segmented-control input {
  position: absolute;
  opacity: 0;
}

.segmented-control span {
  display: block;
  padding: 8px 10px;
  color: var(--muted);
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 750;
  text-align: center;
}

.segmented-control input:checked + span {
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.segmented-control input:focus-visible + span {
  outline: 3px solid rgba(37, 99, 235, 0.3);
}

.list-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 10px;
}

.list-toolbar p {
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
}

.list-toolbar p span {
  color: var(--muted);
  font-size: 0.73rem;
}

.text-button,
.reset-button {
  padding: 5px;
  color: var(--blue);
  background: transparent;
  border: 0;
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
}

.people-list {
  display: grid;
  gap: 10px;
  min-height: 312px;
}

.person-row {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 36px;
  gap: 9px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.color-field {
  display: grid;
  place-items: center;
}

.color-field input {
  width: 36px;
  height: 36px;
  padding: 3px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  cursor: pointer;
}

.person-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.field-group {
  min-width: 0;
}

.field-group label,
.feet-fields label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field-group input,
.feet-fields input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 7px 9px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  font-size: 0.9rem;
  font-weight: 650;
}

input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.field-group input:focus,
.feet-fields input:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(37, 99, 235, 0.12);
}

.height-field {
  position: relative;
}

.unit-suffix {
  position: absolute;
  right: 10px;
  bottom: 7px;
  color: var(--muted);
  font-size: 0.77rem;
  pointer-events: none;
}

.height-field input {
  padding-right: 34px;
}

.feet-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.feet-input-wrap {
  position: relative;
}

.feet-input-wrap input {
  padding-right: 27px;
}

.delete-button {
  align-self: center;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #94a3b8;
  background: transparent;
  border: 0;
  border-radius: 9px;
  font-size: 1.25rem;
  cursor: pointer;
}

.delete-button:hover:not(:disabled) {
  color: #b91c1c;
  background: #fef2f2;
}

.delete-button:disabled {
  opacity: 0.34;
  cursor: not-allowed;
}

.add-button {
  width: 100%;
  margin-top: 10px;
  padding: 11px 14px;
  color: var(--blue);
  background: #eff6ff;
  border: 1px dashed #93c5fd;
  border-radius: 12px;
  font-weight: 750;
  cursor: pointer;
}

.add-button:hover:not(:disabled) {
  background: #dbeafe;
}

.add-button:disabled {
  color: #94a3b8;
  background: #f8fafc;
  border-color: #cbd5e1;
  cursor: not-allowed;
}

.tool-actions {
  display: grid;
  grid-template-columns: 1fr 0.72fr 0.72fr;
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.20);
}

.button-primary:hover {
  background: #1d4ed8;
}

.button-secondary {
  color: var(--ink);
  background: #fff;
  border-color: #cbd5e1;
}

.button-secondary:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.reset-button {
  display: block;
  margin: 8px auto 0;
  color: var(--muted);
}

.status-message {
  min-height: 20px;
  margin: 4px 0 0;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 650;
  text-align: center;
}

.status-message.is-error {
  color: #b91c1c;
}

.chart-header,
.difference-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.chart-header h3,
.difference-heading h3 {
  margin: 0;
  font-size: 1.1rem;
}

.scale-badge {
  flex: 0 0 auto;
  padding: 5px 9px;
  color: #1d4ed8;
  background: var(--blue-soft);
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 750;
}

.height-figure {
  margin: 14px 0 18px;
}

.chart-scroll {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  scrollbar-color: #cbd5e1 transparent;
}

#height-chart {
  width: 100%;
  min-width: 540px;
  height: auto;
  aspect-ratio: 720 / 520;
}

.height-figure figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

.difference-card {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.difference-heading > strong {
  color: var(--orange-dark);
  font-size: 1.06rem;
  white-space: nowrap;
}

.difference-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.difference-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  color: #475569;
  border-top: 1px solid #f1f5f9;
  font-size: 0.82rem;
}

.difference-list strong {
  color: var(--ink);
  white-space: nowrap;
}

.calculator-disclaimer {
  margin: 12px 2px 0;
  color: var(--muted);
  font-size: 0.74rem;
  text-align: center;
}

.calculator-disclaimer strong {
  color: #475569;
}

.noscript-message {
  margin: 0;
  padding: 12px;
  color: #92400e;
  background: #fffbeb;
  text-align: center;
}

.trust-strip {
  border-block: 1px solid var(--line);
  background: #fff;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.trust-grid > div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 10px;
}

.trust-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 50%;
  font-weight: 850;
}

.trust-grid p {
  display: flex;
  flex-direction: column;
  margin: 0;
  line-height: 1.3;
}

.trust-grid strong {
  color: var(--ink);
  font-size: 0.81rem;
}

.trust-grid p span {
  color: var(--muted);
  font-size: 0.7rem;
}

.content-section {
  padding: 72px 0;
}

.content-section h2 {
  max-width: 720px;
}

.section-intro {
  max-width: 720px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 1.05rem;
}

.steps-grid {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps-grid li {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.steps-grid li > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  background: var(--orange);
  border-radius: 11px;
  font-weight: 850;
}

.steps-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.tinted-section {
  background: var(--surface-soft);
}

.split-content {
  display: grid;
  gap: 32px;
}

.split-content > div > p:not(.section-kicker) {
  max-width: 680px;
}

.info-card {
  align-self: start;
  padding: 24px;
  background: #fff;
  border: 1px solid #fed7aa;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.info-card dl {
  margin: 0 0 18px;
}

.info-card dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.info-card dt {
  color: var(--ink);
  font-weight: 750;
}

.info-card dd {
  margin: 0;
  color: var(--orange-dark);
  font-weight: 800;
}

.info-card > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.use-cases-grid {
  display: grid;
  gap: 14px;
}

.use-cases-grid article {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.use-cases-grid h3 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.use-cases-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.example-layout {
  display: grid;
  gap: 30px;
}

.example-layout > div:first-child p:not(.section-kicker) {
  max-width: 680px;
}

.comparison-table-wrap {
  overflow-x: auto;
  align-self: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.comparison-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table caption {
  padding: 18px 20px 12px;
  color: var(--ink);
  font-weight: 800;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 13px 20px;
  border-top: 1px solid var(--line);
}

.comparison-table thead th {
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.comparison-table tbody th {
  color: var(--ink);
  font-weight: 750;
}

.comparison-table tbody td:last-child {
  color: var(--orange-dark);
  font-weight: 750;
}

.comparison-table-wrap > p {
  margin: 0;
  padding: 14px 20px 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

.accuracy-card h3 {
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.accuracy-card > p:not(.mini-label) {
  color: var(--muted);
  font-size: 0.86rem;
}

.accuracy-card > p:last-child {
  margin-top: 14px;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.faq-list details {
  padding: 0 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

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

.faq-list details p {
  margin-bottom: 18px;
  color: var(--muted);
}

.bottom-cta {
  padding: 30px 0 72px;
}

.bottom-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 24px;
  padding: 30px;
  color: #dbeafe;
  background: var(--ink);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.bottom-cta h2 {
  margin-bottom: 8px;
  color: #fff;
}

.bottom-cta p {
  margin-bottom: 0;
}

.bottom-cta .section-kicker {
  margin-bottom: 8px;
  color: #fdba74;
}

.site-footer {
  padding: 48px 0 20px;
  color: #94a3b8;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  gap: 32px;
}

.footer-brand {
  margin-bottom: 12px;
  color: #fff;
}

.footer-grid > div p {
  max-width: 390px;
  margin: 0;
  font-size: 0.87rem;
}

.footer-grid > div .footer-contact {
  margin-top: 8px;
}

.footer-contact a {
  color: #cbd5e1;
  font-size: 0.82rem;
  text-decoration: none;
}

.footer-contact a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-grid nav {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 8px;
}

.footer-grid nav h2 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-grid nav a {
  color: #cbd5e1;
  font-size: 0.84rem;
  text-decoration: none;
}

.footer-grid nav a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid #1e293b;
  font-size: 0.76rem;
}

.footer-bottom p {
  margin: 0;
}

/* Páginas informativas */
.page-hero {
  padding: 64px 0 48px;
  background: var(--surface-soft);
  border-bottom: 1px solid #ffedd5;
}

.page-hero .container {
  max-width: 860px;
}

.page-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(2.25rem, 7vw, 3.7rem);
}

.page-hero p:last-child {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.prose-section {
  padding: 56px 0 80px;
}

.prose {
  max-width: 800px;
}

.prose h2 {
  margin-top: 42px;
  font-size: 1.55rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 28px;
}

.prose p,
.prose li {
  color: #475569;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose li + li {
  margin-top: 8px;
}

.notice-box {
  margin: 28px 0;
  padding: 18px 20px;
  color: #713f12;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 14px;
}

.notice-box strong {
  color: #78350f;
}

.fact-grid {
  display: grid;
  gap: 12px;
  margin: 28px 0;
}

.fact-card {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.fact-card h2,
.fact-card h3 {
  margin: 0 0 7px;
  font-size: 1rem;
}

.fact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 30px;
  font-weight: 750;
  text-decoration: none;
}

.error-page {
  display: grid;
  min-height: 70vh;
  place-items: center;
  padding: 50px 0;
  text-align: center;
}

.error-code {
  margin: 0;
  color: var(--orange);
  font-size: clamp(5rem, 20vw, 10rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.08em;
}

@media (min-width: 540px) {
  .people-list {
    min-height: 184px;
  }

  .person-fields {
    grid-template-columns: minmax(0, 1.25fr) minmax(110px, 0.75fr);
  }

  .person-row.is-imperial .person-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

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

@media (min-width: 720px) {
  .main-nav {
    display: flex;
  }

  .hero {
    padding-top: 72px;
  }

  .tool-heading {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
  }

  .controls-panel,
  .visualization-panel {
    padding: 28px;
  }

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

  .trust-grid > div {
    justify-content: center;
    padding: 22px 10px;
  }

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

  .steps-grid li {
    flex-direction: column;
  }

  .use-cases-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .example-layout {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
    align-items: center;
    gap: 48px;
  }

  .split-content {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
    align-items: center;
    gap: 56px;
  }

  .bottom-cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 42px 48px;
  }

  .bottom-cta-inner .button {
    flex: 0 0 auto;
  }

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

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

@media (min-width: 980px) {
  .site-header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(16px);
  }

  .tool-layout {
    grid-template-columns: minmax(340px, 0.82fr) minmax(0, 1.45fr);
  }

  .visualization-panel {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .controls-panel {
    max-height: 810px;
    overflow-y: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .controls-panel,
  .trust-strip,
  .content-section,
  .bottom-cta,
  .site-footer {
    display: none !important;
  }

  .hero {
    padding: 0;
    background: #fff;
  }

  .hero-copy,
  .tool-heading {
    display: none;
  }

  .tool-card {
    border: 0;
    box-shadow: none;
  }
}
