:root {
  --ink: #101527;
  --muted: #5d6475;
  --paper: #f4f3ed;
  --surface: #ffffff;
  --line: #d8d9d4;
  --blue: #2555f4;
  --blue-dark: #1736a8;
  --acid: #dfff49;
  --coral: #ff6f59;
  --shadow: 0 22px 55px rgba(16, 21, 39, 0.09);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(16, 21, 39, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 21, 39, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 4px;
  z-index: 100;
  background: linear-gradient(90deg, var(--blue) 0 46%, var(--acid) 46% 74%, var(--coral) 74% 100%);
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-160%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(16, 21, 39, 0.1);
  background: rgba(244, 243, 237, 0.9);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-decoration: none;
  font-size: 1.15rem;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: white;
  background: var(--blue);
  border-radius: 9px 9px 9px 2px;
  font: 800 1rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  transform: rotate(-3deg);
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  padding: 9px 13px;
  border-radius: 10px;
  color: #343a4a;
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--blue-dark);
  background: white;
}

.nav-cta {
  color: white !important;
  background: var(--ink) !important;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  cursor: pointer;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--blue-dark);
  font: 800 0.76rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 3px;
  background: var(--coral);
  border-radius: 99px;
}

.hero {
  padding: 86px 0 54px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 54px;
  align-items: center;
}

.hero h1,
.page-hero h1,
.category-hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.15rem, 8vw, 7.25rem);
  font-weight: 500;
  line-height: 0.91;
  letter-spacing: -0.065em;
}

.hero h1 em,
.category-hero h1 em {
  color: var(--blue);
  font-style: italic;
  text-decoration: underline;
  text-decoration-color: var(--acid);
  text-decoration-thickness: 0.16em;
  text-underline-offset: -0.08em;
  text-decoration-skip-ink: none;
}

.hero-copy {
  max-width: 710px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 13px;
  background: transparent;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 rgba(16, 21, 39, 0.12);
}

.button-primary {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}

.button-light {
  background: white;
  border-color: var(--line);
}

.hero-board {
  position: relative;
  min-height: 400px;
  padding: 26px;
  overflow: hidden;
  color: white;
  background: var(--ink);
  border-radius: 10px 44px 10px 44px;
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}

.hero-board::after {
  content: "%";
  position: absolute;
  right: -12px;
  bottom: -74px;
  color: rgba(223, 255, 73, 0.92);
  font: 500 15rem/1 Georgia, serif;
}

.board-label {
  font: 700 0.72rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.board-number {
  margin-top: 45px;
  font: 500 clamp(5rem, 12vw, 8.4rem)/0.86 Georgia, serif;
  letter-spacing: -0.08em;
}

.board-unit {
  color: var(--acid);
  font-size: 1.1rem;
  font-weight: 850;
}

.board-rule {
  width: 72%;
  height: 1px;
  margin: 28px 0 16px;
  background: rgba(255, 255, 255, 0.24);
}

.board-note {
  max-width: 240px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.section {
  padding: 72px 0;
}

.section-tight {
  padding: 42px 0 72px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.section-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}

.section-intro {
  max-width: 560px;
  margin: 10px 0 0;
  color: var(--muted);
}

.search-box {
  position: relative;
  width: min(100%, 390px);
}

.search-box input {
  width: 100%;
  min-height: 50px;
  padding: 12px 46px 12px 16px;
  border: 1px solid var(--line);
  outline: none;
  background: white;
  border-radius: 14px;
}

.search-box input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 85, 244, 0.12);
}

.search-box::after {
  content: "⌕";
  position: absolute;
  top: 8px;
  right: 15px;
  color: var(--blue);
  font-size: 1.65rem;
  pointer-events: none;
}

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

.calc-card {
  position: relative;
  min-height: 292px;
  padding: 25px 25px 94px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 0 rgba(16, 21, 39, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.calc-card[data-tone="blue"] {
  background: linear-gradient(145deg, #ffffff 0 68%, #e9eeff 68% 100%);
}

.calc-card[data-tone="acid"] {
  background: linear-gradient(145deg, #ffffff 0 68%, #f3ffd1 68% 100%);
}

.calc-card[data-tone="coral"] {
  background: linear-gradient(145deg, #ffffff 0 68%, #fff0ec 68% 100%);
}

.calc-card:hover {
  z-index: 1;
  border-color: var(--blue);
  box-shadow: 0 16px 32px rgba(16, 21, 39, 0.09);
  transform: translateY(-5px) rotate(-0.35deg);
}

.calc-card a {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-index {
  color: var(--blue);
  font: 800 0.8rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.card-tag {
  padding: 6px 9px;
  color: #474d5b;
  background: var(--paper);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.calc-card h3 {
  margin: 31px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.card-preview {
  position: absolute;
  right: 72px;
  bottom: 21px;
  left: 25px;
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--ink);
  white-space: nowrap;
}

.card-preview strong {
  font: 500 2.6rem/0.85 Georgia, "Times New Roman", serif;
  letter-spacing: -0.07em;
}

.card-preview span {
  color: var(--muted);
  font: 800 0.7rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.card-arrow {
  position: absolute;
  right: 19px;
  bottom: 17px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: white;
  background: var(--ink);
  border-radius: 50%;
  font-size: 1.25rem;
}

.calc-card:nth-child(3n + 2) .card-arrow {
  color: var(--ink);
  background: var(--acid);
}

.calc-card:nth-child(3n + 3) .card-arrow {
  background: var(--coral);
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--ink);
  background: var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.category-block {
  min-height: 250px;
  padding: 30px;
  color: white;
  background: var(--ink);
  text-decoration: none;
}

.category-block + .category-block {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.category-block:hover {
  color: var(--ink);
  background: var(--acid);
}

.category-kicker {
  font: 700 0.75rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.category-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  color: var(--ink);
  background: var(--acid);
  border-radius: 12px;
  font-size: 1.35rem;
  font-weight: 850;
}

.category-block:hover .category-icon {
  color: white;
  background: var(--blue);
}

.category-block h3 {
  margin: 36px 0 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.category-block p {
  margin: 0;
  opacity: 0.72;
}

.method-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: start;
}

.method-note {
  padding: 30px;
  background: var(--acid);
  border: 1px solid var(--ink);
  border-radius: 40px 12px 40px 12px;
  transform: rotate(-1deg);
}

.method-note strong {
  display: block;
  margin-bottom: 10px;
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
}

.method-list {
  display: grid;
  gap: 10px;
}

.method-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
}

.method-item:first-child {
  border-top: 1px solid var(--line);
}

.method-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: white;
  background: var(--blue);
  border-radius: 11px;
  font: 800 0.8rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.method-item h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.method-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.category-hero,
.page-hero {
  padding: 72px 0 44px;
}

.category-hero h1,
.page-hero h1 {
  max-width: 940px;
  font-size: clamp(3rem, 7vw, 6.35rem);
}

.page-hero h1 {
  max-width: 1000px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.breadcrumb a {
  text-decoration: none;
}

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

.page-lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.88fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 74px;
}

.calculator-panel,
.results-panel,
.content-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.calculator-panel {
  padding: clamp(22px, 4vw, 38px);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.panel-heading h2 {
  margin: 0;
  font: 500 1.8rem/1.1 Georgia, serif;
  letter-spacing: -0.035em;
}

.privacy-pill {
  flex: 0 0 auto;
  padding: 6px 9px;
  color: #355300;
  background: #efffc1;
  border: 1px solid #cce36e;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 850;
}

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

.field {
  min-width: 0;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.84rem;
  font-weight: 800;
}

.field-control {
  position: relative;
}

.field input,
.field select {
  width: 100%;
  min-height: 54px;
  padding: 12px 52px 12px 14px;
  color: var(--ink);
  border: 1px solid #c9ccd4;
  outline: none;
  background: #fbfbf8;
  border-radius: 12px;
  font-weight: 750;
}

.field select {
  padding-right: 35px;
}

.field input:focus,
.field select:focus {
  border-color: var(--blue);
  background: white;
  box-shadow: 0 0 0 4px rgba(37, 85, 244, 0.12);
}

.field-unit {
  position: absolute;
  top: 50%;
  right: 13px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  transform: translateY(-50%);
  pointer-events: none;
}

.field-help {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.72rem;
}

.form-actions {
  display: flex;
  grid-column: 1 / -1;
  gap: 10px;
  padding-top: 7px;
}

.form-actions .button {
  flex: 1;
}

.reset-button {
  flex: 0 0 auto !important;
}

.results-panel {
  position: sticky;
  top: 98px;
  overflow: hidden;
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 23px 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.result-header h2 {
  margin: 0;
  font: 500 1.45rem/1 Georgia, serif;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.65);
  font: 700 0.7rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
}

.live-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--acid);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(223, 255, 73, 0.12);
}

.results-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.result-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
  padding: 20px 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.result-item-primary {
  display: block;
  padding-top: 28px;
  padding-bottom: 28px;
  color: var(--ink);
  background: var(--acid);
}

.result-label {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
  font-weight: 750;
}

.result-item-primary .result-label {
  color: rgba(16, 21, 39, 0.7);
}

.result-value {
  text-align: right;
  font: 500 1.45rem/1 Georgia, serif;
}

.result-item-primary .result-value {
  display: block;
  margin-top: 9px;
  text-align: left;
  font-size: clamp(3.35rem, 8vw, 5.3rem);
  line-height: 0.85;
  letter-spacing: -0.075em;
}

.result-context {
  max-width: 34ch;
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  line-height: 1.4;
}

.result-item-cost {
  background: rgba(255, 255, 255, 0.035);
}

.result-item-cost .result-label,
.result-item-cost .result-value {
  color: rgba(255, 255, 255, 0.58);
}

.result-note {
  margin: 0;
  padding: 21px 26px 25px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.8rem;
}

.content-panel {
  padding: clamp(24px, 5vw, 48px);
  margin-bottom: 28px;
  box-shadow: none;
}

.content-panel h2 {
  margin: 0 0 18px;
  font: 500 clamp(2rem, 4vw, 3rem)/1 Georgia, serif;
  letter-spacing: -0.045em;
}

.content-panel h3 {
  margin: 30px 0 9px;
  font-size: 1rem;
}

.content-panel p,
.content-panel li {
  color: var(--muted);
}

.calculator-guide > p,
.calculator-guide > ul {
  max-width: 850px;
}

.calculator-guide ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.guide-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 8px;
}

.example-box {
  padding: 20px 22px;
  color: var(--ink) !important;
  background: #f3ffd1;
  border-left: 4px solid var(--blue);
  border-radius: 0 14px 14px 0;
}

.formula-box {
  margin: 22px 0;
  padding: 20px;
  overflow-x: auto;
  color: white;
  background: var(--blue);
  border-radius: 14px;
  font: 700 0.86rem/1.7 ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

.faq-list details {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.faq-list summary {
  padding: 18px 20px;
  font-weight: 850;
  cursor: pointer;
}

.faq-list details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.empty-state {
  display: none;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  background: white;
  border: 1px dashed var(--line);
  border-radius: 16px;
}

.site-footer {
  margin-top: 34px;
  color: rgba(255, 255, 255, 0.76);
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 0.7fr);
  gap: 36px;
  padding: 58px 0 42px;
}

.footer-brand {
  color: white;
}

.footer-copy {
  max-width: 380px;
  margin: 16px 0 0;
  font-size: 0.9rem;
}

.footer-title {
  margin: 0 0 14px;
  color: white;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a {
  font-size: 0.88rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--acid);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.75rem;
}

.legal-shell {
  max-width: 820px;
  padding: 64px 0 90px;
}

.legal-shell h1 {
  margin: 0 0 28px;
  font: 500 clamp(3rem, 8vw, 5.6rem)/0.95 Georgia, serif;
  letter-spacing: -0.06em;
}

.legal-shell h2 {
  margin: 34px 0 8px;
  font-size: 1.2rem;
}

.legal-shell p,
.legal-shell li {
  color: var(--muted);
}

@media (max-width: 920px) {
  .hero-grid,
  .method-grid,
  .calculator-layout {
    grid-template-columns: 1fr;
  }

  .hero-board {
    min-height: 310px;
  }

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

  .results-panel {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .nav-shell {
    min-height: 66px;
  }

  .menu-button {
    display: grid;
    place-items: center;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    padding: 12px 16px 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 28px rgba(16, 21, 39, 0.09);
  }

  .main-nav.is-open {
    display: grid;
  }

  .main-nav a {
    padding: 13px;
  }

  .hero {
    padding-top: 54px;
  }

  .hero h1,
  .category-hero h1,
  .page-hero h1 {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .hero-board {
    transform: none;
  }

  .section {
    padding: 54px 0;
  }

  .section-head {
    display: grid;
    align-items: start;
  }

  .search-box {
    width: 100%;
  }

  .calculator-grid,
  .category-strip,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .category-block + .category-block {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 0;
  }

  .category-block {
    min-height: 210px;
  }

  .category-block h3 {
    margin-top: 55px;
  }

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

  .field-wide,
  .form-actions {
    grid-column: auto;
  }

  .form-actions {
    flex-direction: column;
  }

  .reset-button {
    flex: 1 !important;
  }

  .footer-grid > :first-child {
    grid-column: auto;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.compact-hero {
  padding-bottom: 34px;
}

.compact-hero h1 {
  max-width: 980px;
  font-size: clamp(2.8rem, 7vw, 6rem);
}

.filter-row {
  display: flex;
  gap: 9px;
  margin: -4px 0 28px;
  padding: 4px 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.filter-chip {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 9px 15px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.filter-chip:hover,
.filter-chip:focus-visible,
.filter-chip.is-active {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}

.scalable-categories {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.scalable-categories .category-block {
  border-bottom: 1px solid rgba(255,255,255,.18);
}

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

.related-section {
  margin-top: 46px;
}

.related-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.metric-grid article {
  display: grid;
  gap: 6px;
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.metric-grid strong {
  color: var(--blue);
  font-size: 1.5rem;
}

.metric-grid span {
  color: var(--muted);
}

.result-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.result-actions .button { padding: 10px 14px; font-size: .9rem; }
.copy-status { min-height: 1.5em; margin: 8px 0 0; color: var(--muted); font-size: .88rem; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--line); border-radius: 14px; background: white; padding: 0 18px; }
.faq-list summary { cursor: pointer; font-weight: 800; padding: 16px 28px 16px 0; }
.faq-list details p { margin: 0; padding: 0 0 16px; color: var(--muted); }
.water-families { padding: 28px 0 6px; }
.water-family-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.water-family { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: linear-gradient(145deg, white, #f4f8ff); }
.water-family > span { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); }
.water-family h2 { font-size: 1.2rem; margin: 8px 0; }
.water-family p { color: var(--muted); min-height: 3.2em; }
.water-family > div { display: grid; gap: 7px; }
.water-family a { color: var(--ink); font-weight: 750; text-decoration: none; }
.water-family a:hover { text-decoration: underline; }
.family-coming { font-size: .86rem; color: var(--muted); font-weight: 650; }

@media (max-width: 920px) {
  .scalable-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .water-family-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .compact-hero { padding-top: 42px; }
  .compact-hero h1 { font-size: clamp(2.65rem, 13vw, 4.4rem); }
  .scalable-categories,
  .compact-grid,
  .metric-grid { grid-template-columns: 1fr; }
  .related-actions { width: 100%; }
  .related-actions .button { flex: 1 1 100%; }
  .guide-columns { grid-template-columns: 1fr; gap: 0; }
  .water-family-grid { grid-template-columns: 1fr; }
  .water-family p { min-height: 0; }
  .result-actions .button { flex: 1; }
}
