:root {
  --bg: #f5f4ef;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --surface-soft: #f2f5f1;
  --text: #112316;
  --muted: #5b6d61;
  --line: rgba(17, 35, 22, 0.12);
  --primary: #0c8a4f;
  --primary-deep: #08643a;
  --accent: #1f4fe0;
  --warning: #f2a900;
  --nl-red: #ae1c28;
  --nl-white: #ffffff;
  --nl-blue: #21468b;
  --shadow: 0 24px 60px rgba(16, 33, 21, 0.12);
  --radius-xl: 1.5rem;
  --radius-lg: 1rem;
  --header-height: 82px;
}

:root[data-theme="dark"] {
  --bg: #16181c;
  --surface: rgba(28, 31, 36, 0.92);
  --surface-strong: #20242a;
  --surface-soft: #252a31;
  --text: #f0f3f7;
  --muted: #aeb5c0;
  --line: rgba(238, 247, 241, 0.12);
  --primary: #45b97c;
  --primary-deep: #9ae4bd;
  --accent: #7b9eff;
  --warning: #f3bf43;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(31, 79, 224, 0.12), transparent 28%),
    radial-gradient(circle at 85% 8%, rgba(12, 138, 79, 0.13), transparent 24%),
    linear-gradient(180deg, #faf9f4 0%, #f1eee4 100%);
  line-height: 1.5;
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at top left, rgba(123, 158, 255, 0.15), transparent 26%),
    radial-gradient(circle at 85% 8%, rgba(69, 185, 124, 0.12), transparent 22%),
    linear-gradient(180deg, #16181c 0%, #1b1e23 100%);
}

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

button,
input {
  font: inherit;
}

.container {
  width: min(1380px, calc(100% - 1.5rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(245, 244, 239, 0.86);
  border-bottom: 1px solid rgba(17, 35, 22, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.28rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  height: 2rem;
  padding: 0 0.7rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lang-link.active {
  background: rgba(12, 138, 79, 0.12);
  color: var(--primary-deep);
}

:root[data-theme="dark"] .lang-switch {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(240, 243, 247, 0.14);
}

:root[data-theme="dark"] .lang-link {
  color: rgba(240, 243, 247, 0.7);
}

:root[data-theme="dark"] .lang-link.active {
  background: rgba(69, 185, 124, 0.2);
  color: #d8f6e6;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: "Fraunces", serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand {
  font-size: 1.8rem;
}

.brand-mark {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  filter: drop-shadow(0 6px 12px rgba(17, 35, 22, 0.12));
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-wordmark {
  display: inline-block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.site-nav a {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
}

.site-nav a:hover {
  background: rgba(17, 35, 22, 0.05);
  color: var(--text);
}

.site-nav a.active {
  background: rgba(12, 138, 79, 0.12);
  color: var(--primary-deep);
  font-weight: 700;
}

.menu-toggle {
  display: none;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--surface-strong);
  color: var(--text);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(17, 35, 22, 0.08);
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.94);
}

.theme-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
}

.theme-icon-sun {
  display: none;
  color: #0f1113;
}

:root[data-theme="dark"] .theme-toggle {
  background: rgba(33, 37, 44, 0.96);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] .theme-icon-sun {
  display: inline-flex;
  color: #f7e7a2;
}

.theme-icon-moon {
  display: inline-flex;
  color: #0f1113;
}

:root[data-theme="dark"] .theme-icon-moon {
  display: none;
}

.workspace-shell {
  padding: 1rem 0 1.5rem;
}

.workspace-grid {
  display: grid;
  grid-template-columns: 540px minmax(0, 1fr);
  gap: 1.15rem;
  min-height: calc(100vh - var(--header-height) - 2rem);
}

.control-card,
.verdict-panel,
.insight-card,
.result-card,
.bar-panel,
.explanation-panel,
.guide-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.control-card,
.verdict-panel,
.insight-card,
.result-card,
.explanation-panel,
.guide-card {
  padding: 1.15rem;
}

.control-column {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  align-self: start;
}

.control-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(233, 245, 237, 0.84)),
    var(--surface);
  position: relative;
  overflow: hidden;
}

.eyebrow,
.section-kicker,
.insight-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary-deep);
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.country-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.34rem 0.72rem;
  border: 1px solid rgba(11, 79, 55, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(17, 41, 31, 0.08);
  color: var(--primary-deep);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.country-flag {
  width: 1.2rem;
  height: 0.84rem;
  border-radius: 999px;
  background:
    linear-gradient(
      180deg,
      #c9404a 0 33.33%,
      #f7f5f1 33.33% 66.66%,
      #2d62de 66.66% 100%
    );
  box-shadow: inset 0 0 0 1px rgba(11, 24, 18, 0.08);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

h1 {
  margin-top: 0.45rem;
  max-width: 11ch;
  font-size: clamp(2.35rem, 3.5vw, 3.35rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
  text-shadow:
    1px 0 0 rgba(174, 28, 40, 0.22),
    -1px 0 0 rgba(33, 70, 139, 0.18);
}

.title-accent {
  color: var(--primary);
  text-shadow:
    1px 0 0 rgba(174, 28, 40, 0.14),
    0 0 0 rgba(33, 70, 139, 0);
}

.intro-copy,
.validation-message,
.verdict-summary,
.sub-number,
.metric-list dt,
.result-head p,
.guide-card p,
.footer-note,
.job-assumption,
.bar-panel-head p {
  color: var(--muted);
}

.intro-copy {
  margin: 0.55rem 0 0;
  max-width: 29rem;
  font-size: 0.96rem;
}

.comparison-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.95rem;
}

.how-it-works-link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.95rem;
  color: var(--primary-deep);
  font-weight: 700;
}

.how-it-works-link:hover {
  color: var(--primary);
}

.how-it-works-link::after {
  content: "↓";
  margin-left: 0.45rem;
  font-size: 0.95rem;
}

.global-controls {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.65rem;
}

.toggle-panel {
  border: 1px solid rgba(17, 35, 22, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.76);
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.toggle-help {
  margin: 0.28rem 0 0;
  font-size: 0.8rem;
  line-height: 1.28;
  color: var(--muted);
}

.field-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--muted);
}

.toggle-panel {
  padding: 0.85rem 0.95rem;
}

.toggle input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--primary);
}

.job-card {
  padding: 0.95rem;
  border: 1px solid rgba(17, 35, 22, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
}

.job-card.emphasis {
  background:
    linear-gradient(180deg, rgba(218, 228, 255, 0.62), rgba(255, 255, 255, 0.92)),
    var(--surface-strong);
  border-color: rgba(31, 79, 224, 0.16);
}

.job-card-head,
.result-head,
.verdict-panel,
.footer-layout {
  display: flex;
  justify-content: space-between;
  gap: 0.9rem;
}

.job-card-head {
  align-items: flex-start;
  margin-bottom: 0.8rem;
  min-height: 3.35rem;
}

.job-label,
.result-head h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.job-label {
  min-height: 2.3em;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 760px) {
  .job-label {
    max-width: 9ch;
    white-space: normal;
    text-wrap: balance;
  }
}

.job-chip,
.delta-badge {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.job-chip {
  background: rgba(17, 35, 22, 0.06);
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 9rem;
}

@media (min-width: 760px) {
  .job-chip {
    max-width: 6.5rem;
    white-space: normal;
    text-align: center;
    line-height: 1.1;
  }
}

.result-status {
  margin: 0.3rem 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-deep);
}

.field {
  display: grid;
  gap: 0.45rem;
}

.input-shell {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.45rem;
  padding: 0.7rem 0.85rem;
  border-radius: 1rem;
  border: 1px solid rgba(17, 35, 22, 0.14);
  background: var(--surface-strong);
}

.input-shell-text {
  gap: 0;
}

.job-card > .field + .field {
  margin-top: 0.45rem;
}

.input-shell:focus-within {
  border-color: rgba(31, 79, 224, 0.55);
  box-shadow: 0 0 0 4px rgba(31, 79, 224, 0.09);
}

.currency {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  min-height: 2.35rem;
  border-radius: 0.8rem;
  background: #ebe8dc;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--primary-deep);
}

.input-shell input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 700;
}

.input-shell input::-webkit-outer-spin-button,
.input-shell input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.job-card .toggle {
  margin-top: 0.9rem;
}

.job-assumption {
  margin: 0.65rem 0 0;
  font-size: 0.83rem;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.validation-message {
  width: 100%;
  margin: 0;
}

.validation-message {
  min-height: 1.4rem;
  font-weight: 500;
}

.validation-message.has-error {
  color: #a6401e;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.2rem;
  border: 0;
  border-radius: 0.95rem;
  padding: 0.85rem 1.18rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2440b8);
  color: #fff;
  box-shadow: 0 16px 32px rgba(31, 79, 224, 0.24);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  border: 1px solid var(--line);
}

.share-button {
  min-width: 15.5rem;
  background:
    linear-gradient(135deg, rgba(31, 79, 224, 0.08), rgba(12, 138, 79, 0.14)),
    rgba(255, 255, 255, 0.94);
  border-color: rgba(31, 79, 224, 0.16);
  box-shadow: 0 14px 28px rgba(31, 79, 224, 0.12);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.share-button:hover,
.share-button:focus-visible {
  box-shadow: 0 18px 34px rgba(31, 79, 224, 0.16);
  border-color: rgba(31, 79, 224, 0.22);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
}

.btn-icon svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.results-column {
  min-width: 0;
  align-self: stretch;
}

.results-scroll {
  height: 100%;
  min-height: calc(100vh - var(--header-height) - 0.9rem);
  overflow: auto;
  padding: 0 0.45rem 0 0.2rem;
}

.results-scroll::-webkit-scrollbar {
  width: 10px;
}

.results-scroll::-webkit-scrollbar-thumb {
  background: rgba(17, 35, 22, 0.14);
  border-radius: 999px;
}

.hero-summary {
  display: grid;
  gap: 1rem;
}

.verdict-panel {
  align-items: stretch;
  background:
    linear-gradient(130deg, rgba(12, 138, 79, 0.14), rgba(31, 79, 224, 0.08)),
    rgba(255, 255, 255, 0.9);
}

.verdict-panel.verdict-positive {
  background:
    linear-gradient(130deg, rgba(12, 138, 79, 0.18), rgba(76, 175, 80, 0.08)),
    rgba(255, 255, 255, 0.92);
  border-color: rgba(12, 138, 79, 0.22);
}

.verdict-panel.verdict-negative {
  background:
    linear-gradient(130deg, rgba(208, 65, 58, 0.15), rgba(255, 179, 179, 0.09)),
    rgba(255, 255, 255, 0.92);
  border-color: rgba(208, 65, 58, 0.2);
}

.verdict-panel.verdict-neutral {
  background:
    linear-gradient(130deg, rgba(242, 169, 0, 0.13), rgba(255, 231, 179, 0.08)),
    rgba(255, 255, 255, 0.92);
  border-color: rgba(242, 169, 0, 0.22);
}

.verdict-panel h2 {
  margin-top: 0.34rem;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
}

.verdict-hook {
  margin: 0.34rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.verdict-side {
  display: grid;
  justify-items: end;
  gap: 0.65rem;
}

.delta-badge {
  display: inline-grid;
  align-content: center;
  justify-items: center;
  gap: 0.12rem;
  min-width: 10.8rem;
  min-height: 6.25rem;
  padding: 0.58rem 0.8rem;
  background: rgba(12, 138, 79, 0.14);
  color: var(--primary-deep);
  white-space: nowrap;
  text-align: center;
}

.delta-badge strong {
  font-size: 1.28rem;
  line-height: 1.04;
}

.delta-badge small {
  font-size: 1.04rem;
  font-weight: 700;
  opacity: 0.8;
}

.verdict-metrics {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
  width: 100%;
  min-width: 8.9rem;
}

.verdict-metric {
  display: grid;
  gap: 0.16rem;
  padding: 0.68rem 0.74rem;
  border: 1px solid rgba(17, 35, 22, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.68);
  text-align: left;
}

.verdict-metric-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-deep);
}

.verdict-metric-label.is-negative {
  color: #b94c2e;
}

.verdict-metric-label.is-neutral {
  color: #8a6500;
}

.verdict-metric strong {
  font-size: 0.98rem;
  line-height: 1.1;
  color: var(--text);
}

.delta-badge.delta-badge-negative {
  background: rgba(208, 65, 58, 0.12);
  color: #a6401e;
}

.delta-badge.delta-badge-neutral {
  background: rgba(242, 169, 0, 0.12);
  color: #8a6500;
}

.insights-grid,
.quick-results-grid {
  display: grid;
  gap: 1rem;
}

.insights-grid {
  grid-template-columns: repeat(2, minmax(240px, 1fr));
}

.quick-results-grid {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
}

.insight-card {
  background: rgba(255, 255, 255, 0.78);
}

.insight-card-takeaway {
  border: 1px solid rgba(31, 79, 224, 0.14);
  background:
    linear-gradient(180deg, rgba(218, 228, 255, 0.4), rgba(255, 255, 255, 0.92)),
    var(--surface-strong);
}

.insight-card-takeaway h3 {
  font-size: clamp(1.9rem, 2.6vw, 3rem);
}

.insight-card h3,
.big-number {
  margin: 0.85rem 0 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.7rem, 2.4vw, 2.8rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.insight-meta {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-deep);
}

.insight-meta.insight-meta-negative {
  color: #a6401e;
}

.insight-meta.insight-meta-neutral {
  color: #8a6500;
}

.result-card .big-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4.1rem;
  padding: 0.95rem 1.15rem;
  border-radius: 1.15rem;
  background:
    linear-gradient(180deg, rgba(12, 138, 79, 0.1), rgba(12, 138, 79, 0.04)),
    rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(12, 138, 79, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.accent-card .big-number {
  background:
    linear-gradient(180deg, rgba(31, 79, 224, 0.14), rgba(31, 79, 224, 0.05)),
    rgba(255, 255, 255, 0.94);
  border-color: rgba(31, 79, 224, 0.16);
}

.result-card {
  background: rgba(255, 255, 255, 0.88);
}

.result-card-leading {
  border-color: rgba(12, 138, 79, 0.22);
  box-shadow: 0 16px 38px rgba(12, 138, 79, 0.12);
}

.result-card-trailing {
  border-color: rgba(17, 35, 22, 0.08);
}

.result-card-close {
  border-color: rgba(242, 169, 0, 0.2);
}

.accent-card {
  background:
    linear-gradient(180deg, rgba(218, 228, 255, 0.5), rgba(255, 255, 255, 0.88)),
    var(--surface-strong);
}

.sub-number {
  margin: 0.45rem 0 0;
}

.metric-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1.15rem 0 0;
}

.metric-list div {
  padding-top: 0.85rem;
  border-top: 1px solid rgba(17, 35, 22, 0.08);
}

.metric-list dt,
.metric-list dd {
  margin: 0;
}

.metric-list dd {
  margin-top: 0.3rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.results-section {
  margin-top: 1rem;
}

.bar-panel {
  padding: 1.3rem;
  background: rgba(255, 255, 255, 0.76);
}

.bar-panel-head h3,
.explanation-panel h3,
.guide-card h2 {
  font-size: 1.5rem;
}

.chart-delta-label {
  margin: 0.7rem 0 0;
  font-weight: 700;
  color: var(--text);
}

.bars {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.1rem;
}

.bars.columns {
  position: relative;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  padding: 1.2rem 1rem 0.9rem;
  border-radius: 1.25rem;
  background:
    linear-gradient(180deg, rgba(17, 35, 22, 0.03), rgba(17, 35, 22, 0.08)),
    repeating-linear-gradient(
      to top,
      transparent 0 2.9rem,
      rgba(17, 35, 22, 0.06) 2.9rem 3rem
    );
  border: 1px solid rgba(17, 35, 22, 0.06);
}

.chart-baseline {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0;
  border-top: 2px dashed rgba(12, 138, 79, 0.38);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 160ms ease;
}

.chart-baseline.is-visible {
  opacity: 1;
}

.chart-baseline-label {
  position: absolute;
  left: 0.9rem;
  bottom: 0.65rem;
  max-width: 9.5rem;
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
  background: rgba(12, 138, 79, 0.1);
  color: var(--primary-deep);
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.15;
}

.bar-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.bar-track {
  display: flex;
  align-items: end;
  justify-content: center;
  position: relative;
  width: min(100%, 14rem);
  height: 14rem;
  padding: 0 1rem;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.bar-fill {
  width: min(100%, 6rem);
  height: 0;
  border-radius: 1rem 1rem 0.35rem 0.35rem;
  background: linear-gradient(135deg, #0ca25d, #0a7a48);
  position: relative;
  transition: height 320ms ease, transform 180ms ease, filter 180ms ease;
  cursor: default;
}

.bar-fill.accent {
  background: linear-gradient(135deg, #1f4fe0, #132f8f);
}

.bars.columns:hover .bar-fill,
.bars.columns:focus-within .bar-fill {
  filter: saturate(0.82);
}

.bar-fill:hover,
.bar-fill:focus-visible {
  transform: translateY(-4px);
  filter: saturate(1.05) brightness(1.02) !important;
  outline: none;
}

.bar-fill::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.8rem);
  transform: translateX(-50%) translateY(8px);
  min-width: 10rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.9rem;
  background: rgba(17, 35, 22, 0.94);
  color: #f4f8f5;
  white-space: pre-line;
  text-align: center;
  font-size: 0.86rem;
  line-height: 1.4;
  box-shadow: 0 18px 36px rgba(17, 35, 22, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.bar-fill::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.35rem);
  transform: translateX(-50%) translateY(8px);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid rgba(17, 35, 22, 0.94);
  opacity: 0;
  transition: opacity 160ms ease, transform 160ms ease;
}

.bar-fill:hover::after,
.bar-fill:hover::before,
.bar-fill:focus-visible::after,
.bar-fill:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.bar-value {
  font-weight: 700;
  color: var(--text);
}

.bar-label {
  color: var(--muted);
}

.explanation-panel {
  margin-top: 1rem;
  background: rgba(17, 35, 22, 0.95);
  color: #f1f6f2;
}

.explanation-panel .section-kicker,
.explanation-panel h3,
.explanation-list {
  color: #f1f6f2;
}

.explanation-list {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  color: rgba(241, 246, 242, 0.76);
}

.guide-section {
  padding: 1.7rem 0 2.6rem;
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.guide-header {
  max-width: 46rem;
  margin-bottom: 1.1rem;
}

.guide-header h2 {
  margin-top: 0.35rem;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
}

.guide-intro {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
  margin-top: 1.35rem;
}

.guide-card {
  background: rgba(255, 255, 255, 0.88);
}

.guide-card.muted {
  background:
    linear-gradient(180deg, rgba(242, 169, 0, 0.08), rgba(255, 255, 255, 0.9)),
    var(--surface-strong);
}

.guide-list {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.seo-card p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.faq-item {
  border: 1px solid rgba(17, 35, 22, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.68);
  padding: 0.9rem 1rem;
}

.faq-item summary {
  cursor: pointer;
  font-size: 1.04rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}

.faq-item p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.site-footer {
  margin-top: 2.2rem;
  padding: 1.35rem 0 2.8rem;
  scroll-margin-top: calc(var(--header-height) + 1rem);
  background:
    linear-gradient(180deg, rgba(226, 235, 230, 0.72), rgba(245, 244, 239, 0.96)),
    rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(17, 35, 22, 0.08);
}

.seo-page-shell {
  padding: 1.25rem 0 2.8rem;
}

.seo-page {
  display: grid;
  gap: 1.2rem;
}

.seo-hero,
.seo-main-card,
.seo-side-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.seo-hero {
  padding: 1.35rem;
  background:
    linear-gradient(135deg, rgba(12, 138, 79, 0.1), rgba(31, 79, 224, 0.08)),
    rgba(255, 255, 255, 0.92);
}

.seo-hero p,
.seo-main-card p,
.seo-side-card p,
.seo-main-card li,
.related-links a,
.seo-kpi-copy {
  color: var(--muted);
}

.seo-hero h1 {
  max-width: 13ch;
}

.seo-hero-copy {
  max-width: 44rem;
  margin-top: 0.85rem;
  font-size: 1rem;
}

.seo-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}

.seo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: 1.2rem;
}

.seo-main {
  display: grid;
  gap: 1rem;
}

.seo-main-card,
.seo-side-card {
  padding: 1.15rem;
}

.seo-main-card h2,
.seo-side-card h2 {
  margin-top: 0.3rem;
  margin-bottom: 0.7rem;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.seo-main-card h3 {
  margin-top: 0.95rem;
  font-size: 1.06rem;
}

.seo-main-card ul,
.seo-main-card ol,
.seo-side-card ul {
  margin: 0.8rem 0 0;
  padding-left: 1.15rem;
}

.seo-main-card p + p,
.seo-main-card ul + p,
.seo-main-card p + ul,
.seo-main-card ul + ul {
  margin-top: 0.8rem;
}

.seo-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.seo-kpi {
  padding: 0.9rem;
  border-radius: 1rem;
  border: 1px solid rgba(17, 35, 22, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.seo-kpi-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-deep);
}

.seo-kpi strong {
  display: block;
  margin-top: 0.3rem;
  font-family: "Fraunces", serif;
  font-size: 1.6rem;
  line-height: 1;
}

.seo-kpi-copy {
  margin-top: 0.35rem;
  font-size: 0.88rem;
}

.seo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  background: var(--primary);
  color: #f7fbf8;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(12, 138, 79, 0.18);
}

.seo-cta.secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary-deep);
  border: 1px solid rgba(17, 35, 22, 0.08);
  box-shadow: none;
}

.related-links {
  display: grid;
  gap: 0.7rem;
}

.related-links a {
  display: flex;
  align-items: center;
  min-height: 6rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(12, 138, 79, 0.1), rgba(31, 79, 224, 0.08)),
    rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(17, 35, 22, 0.12);
  box-shadow: 0 10px 24px rgba(17, 35, 22, 0.06);
  line-height: 1.2;
}

.inline-link {
  color: var(--primary);
  font-weight: 700;
}

.seo-note {
  padding: 0.9rem 1rem;
  border-left: 4px solid rgba(12, 138, 79, 0.28);
  border-radius: 0 1rem 1rem 0;
  background: rgba(12, 138, 79, 0.06);
}

:root[data-theme="dark"] .site-header {
  background: rgba(22, 24, 28, 0.9);
  border-bottom-color: rgba(238, 247, 241, 0.08);
}

:root[data-theme="dark"] .site-nav a:hover {
  background: rgba(238, 247, 241, 0.06);
}

:root[data-theme="dark"] .site-nav a.active {
  background: rgba(69, 185, 124, 0.16);
  color: #eef7f1;
}

:root[data-theme="dark"] .control-card {
  background:
    linear-gradient(180deg, rgba(33, 37, 44, 0.98), rgba(29, 33, 39, 0.92)),
    var(--surface);
}

:root[data-theme="dark"] .country-badge {
  background: rgba(53, 58, 68, 0.84);
  border-color: rgba(128, 166, 255, 0.16);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  color: #eef7f1;
}

:root[data-theme="dark"] .job-card,
:root[data-theme="dark"] .result-card,
:root[data-theme="dark"] .insight-card,
:root[data-theme="dark"] .bar-panel,
:root[data-theme="dark"] .guide-card,
:root[data-theme="dark"] .footer-layout {
  background: rgba(32, 36, 42, 0.94);
}

:root[data-theme="dark"] .job-card.emphasis,
:root[data-theme="dark"] .accent-card,
:root[data-theme="dark"] .insight-card-takeaway,
:root[data-theme="dark"] .guide-card.muted,
:root[data-theme="dark"] .verdict-metric,
:root[data-theme="dark"] .faq-item {
  background:
    linear-gradient(180deg, rgba(53, 69, 110, 0.3), rgba(32, 36, 42, 0.95)),
    var(--surface-strong);
}

:root[data-theme="dark"] .result-card .big-number {
  background:
    linear-gradient(180deg, rgba(69, 185, 124, 0.16), rgba(69, 185, 124, 0.05)),
    rgba(40, 45, 52, 0.92);
  border-color: rgba(69, 185, 124, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

:root[data-theme="dark"] .accent-card .big-number {
  background:
    linear-gradient(180deg, rgba(123, 158, 255, 0.2), rgba(123, 158, 255, 0.06)),
    rgba(40, 45, 52, 0.94);
  border-color: rgba(123, 158, 255, 0.2);
}

:root[data-theme="dark"] .toggle-panel,
:root[data-theme="dark"] .input-shell,
:root[data-theme="dark"] .btn-secondary {
  background: rgba(40, 45, 52, 0.96);
}

:root[data-theme="dark"] .toggle-help,
:root[data-theme="dark"] .faq-item p {
  color: rgba(224, 229, 236, 0.72);
}

:root[data-theme="dark"] .share-button {
  background:
    linear-gradient(135deg, rgba(69, 185, 124, 0.14), rgba(86, 127, 255, 0.16)),
    rgba(41, 46, 55, 0.96);
  border-color: rgba(128, 166, 255, 0.18);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

:root[data-theme="dark"] .currency {
  background: rgba(238, 247, 241, 0.08);
  color: var(--primary-deep);
}

:root[data-theme="dark"] .job-chip {
  background: rgba(238, 247, 241, 0.07);
  color: var(--muted);
}

:root[data-theme="dark"] .bars.columns {
  background:
    linear-gradient(180deg, rgba(238, 247, 241, 0.02), rgba(238, 247, 241, 0.06)),
    repeating-linear-gradient(
      to top,
      transparent 0 2.9rem,
      rgba(238, 247, 241, 0.06) 2.9rem 3rem
    );
  border-color: rgba(238, 247, 241, 0.08);
}

:root[data-theme="dark"] .site-footer {
  background:
    linear-gradient(180deg, rgba(30, 34, 39, 0.95), rgba(22, 24, 28, 0.98)),
    rgba(32, 36, 42, 0.94);
  border-top-color: rgba(238, 247, 241, 0.08);
}

:root[data-theme="dark"] .seo-hero,
:root[data-theme="dark"] .seo-main-card,
:root[data-theme="dark"] .seo-side-card,
:root[data-theme="dark"] .seo-kpi,
:root[data-theme="dark"] .related-links a {
  background:
    linear-gradient(180deg, rgba(53, 69, 110, 0.18), rgba(32, 36, 42, 0.94)),
    rgba(32, 36, 42, 0.94);
}

:root[data-theme="dark"] .seo-cta.secondary {
  background: rgba(40, 45, 52, 0.96);
  color: var(--primary-deep);
}

:root[data-theme="dark"] .seo-note {
  background: rgba(69, 185, 124, 0.1);
}

:root[data-theme="dark"] .verdict-panel.verdict-positive {
  background:
    linear-gradient(130deg, rgba(69, 185, 124, 0.12), rgba(123, 158, 255, 0.08)),
    rgba(32, 36, 42, 0.96);
  border-color: rgba(69, 185, 124, 0.2);
}

:root[data-theme="dark"] .verdict-panel.verdict-negative {
  background:
    linear-gradient(130deg, rgba(208, 65, 58, 0.14), rgba(123, 158, 255, 0.05)),
    rgba(32, 36, 42, 0.96);
}

:root[data-theme="dark"] .verdict-panel.verdict-neutral {
  background:
    linear-gradient(130deg, rgba(243, 191, 67, 0.12), rgba(123, 158, 255, 0.05)),
    rgba(32, 36, 42, 0.96);
}

.snackbar {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  z-index: 60;
  transform: translateX(-50%) translateY(16px);
  min-width: 220px;
  max-width: min(92vw, 420px);
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: rgba(17, 35, 22, 0.94);
  color: #f4f8f5;
  text-align: center;
  box-shadow: 0 18px 40px rgba(17, 35, 22, 0.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.snackbar.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.footer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(200px, 0.7fr));
  gap: 1rem;
  align-items: start;
  padding: 1.2rem 1.2rem 1rem;
  border: 1px solid rgba(17, 35, 22, 0.08);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 48px rgba(17, 35, 22, 0.08);
}

.footer-copy {
  max-width: 48rem;
}

.footer-brand {
  margin: 0;
  font-size: 1.35rem;
}

.footer-layout p {
  margin: 0.2rem 0 0;
}

.footer-description {
  max-width: 42rem;
}

.footer-description + .footer-description {
  margin-top: 0.65rem;
}

.footer-guides {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.footer-guides-separator {
  color: rgba(62, 90, 79, 0.46);
}

.footer-link {
  color: var(--text);
  font-weight: 500;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-contact {
  grid-column: 3;
  grid-row: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.18rem;
  align-self: end;
  justify-self: end;
  margin: 0;
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  font-weight: 700;
}

.footer-contact-link::after {
  content: "↗";
  font-size: 0.86rem;
}

.footer-contact-meta {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

:root[data-theme="dark"] .footer-guides-separator {
  color: rgba(224, 229, 236, 0.34);
}

@media (max-width: 1100px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .control-column {
    position: static;
  }

  .results-scroll {
    height: auto;
    overflow: visible;
  }

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

  .insights-grid,
  .quick-results-grid,
  .guide-grid,
  .seo-grid {
    grid-template-columns: 1fr 1fr;
  }

  .seo-layout {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .workspace-shell {
    padding: 0.85rem 0 1.25rem;
  }

  .container {
    width: min(100% - 1.5rem, var(--container-max));
  }

  .control-card,
  .verdict-panel,
  .insight-card,
  .result-card,
  .bar-panel,
  .explanation-panel,
  .guide-card {
    padding: 1rem;
  }

  .comparison-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }

  .job-card {
    padding: 0.92rem;
  }

  .job-card-head {
    min-height: 0;
    margin-bottom: 0.72rem;
  }

  .job-label {
    min-height: 0;
  }

  .global-controls,
  .form-actions {
    grid-column: 1 / -1;
  }

  .toggle-help {
    font-size: 0.79rem;
  }

  .verdict-panel {
    gap: 0.9rem;
  }

  .verdict-panel h2 {
    font-size: clamp(1.95rem, 4vw, 2.45rem);
  }

  .verdict-hook {
    font-size: 0.97rem;
  }

  .verdict-summary {
    font-size: 0.94rem;
  }

  .delta-badge {
    min-width: 11.3rem;
    min-height: 6.6rem;
  }

  .delta-badge strong {
    font-size: 1.1rem;
  }

  .delta-badge small {
    font-size: 0.9rem;
  }

  .result-head h3 {
    font-size: 1.12rem;
  }

  .big-number {
    min-height: 5.35rem;
    padding: 0.9rem 1rem;
  }

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

@media (max-width: 760px) {
  .workspace-shell {
    padding: 0.7rem 0 1.1rem;
  }

  .container {
    width: min(100% - 1rem, var(--container-max));
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.65rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-actions {
    gap: 0.55rem;
  }

  .nav-wrap {
    gap: 0.7rem;
  }

  .brand-wordmark {
    font-size: 1.02rem;
  }

  .theme-toggle {
    width: 2.65rem;
    height: 2.65rem;
  }

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

  .insights-grid,
  .quick-results-grid,
  .guide-grid,
  .seo-grid,
  .metric-list,
  .seo-kpi-grid {
    grid-template-columns: 1fr;
  }

  .control-card,
  .verdict-panel,
  .insight-card,
  .result-card,
  .bar-panel,
  .explanation-panel,
  .guide-card {
    padding: 0.95rem;
    border-radius: 1.2rem;
  }

  .hero-kicker {
    gap: 0.55rem;
  }

  .country-badge {
    padding: 0.28rem 0.62rem;
    font-size: 0.71rem;
  }

  h1 {
    margin-top: 0.35rem;
    max-width: 9.5ch;
    font-size: clamp(2rem, 10vw, 2.55rem);
    line-height: 0.95;
  }

  .intro-copy {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .comparison-form {
    gap: 0.8rem;
  }

  .job-card {
    padding: 0.88rem;
  }

  .job-card-head {
    min-height: 0;
    margin-bottom: 0.68rem;
  }

  .job-label {
    min-height: 0;
    max-width: none;
  }

  .job-chip {
    font-size: 0.86rem;
  }

  .field > span:first-child,
  .toggle span {
    font-size: 0.96rem;
  }

  .input-shell {
    min-height: 4.25rem;
  }

  .currency {
    min-width: 4.4rem;
  }

  .toggle-help,
  .job-assumption {
    font-size: 0.78rem;
    line-height: 1.26;
  }

  .global-controls {
    gap: 0.5rem;
  }

  .toggle-panel {
    padding: 0.78rem 0.88rem;
  }

  .verdict-panel,
  .footer-layout {
    align-items: flex-start;
  }

  .verdict-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.9rem;
    text-align: center;
    justify-items: center;
  }

  .verdict-panel > div:first-child {
    width: 100%;
    max-width: 18rem;
    margin: 0 auto;
    text-align: center;
    display: grid;
    justify-items: center;
  }

  .verdict-panel h2 {
    max-width: 9ch;
    font-size: clamp(1.9rem, 9vw, 2.7rem);
    line-height: 0.96;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .verdict-hook {
    max-width: 15ch;
    font-size: 0.92rem;
  }

  .verdict-summary {
    max-width: 23ch;
    font-size: 0.9rem;
  }

  .verdict-side {
    width: 100%;
    justify-items: stretch;
  }

  .delta-badge {
    width: 100%;
    min-width: 0;
    min-height: 5.3rem;
    justify-items: center;
    text-align: center;
  }

  .delta-badge strong {
    font-size: 1.42rem;
  }

  .delta-badge small {
    font-size: 1.14rem;
  }

  .verdict-metrics {
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .result-head {
    gap: 0.55rem;
  }

  .result-head h3 {
    font-size: 1.08rem;
  }

  .result-status,
  .sub-number,
  .result-head p,
  .metric-list dt,
  .metric-list dd {
    font-size: 0.9rem;
  }

  .big-number {
    min-height: 5rem;
    padding: 0.85rem 0.95rem;
  }

  .guide-section {
    padding: 1.35rem 0 2rem;
  }

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

  .footer-contact {
    grid-column: 1;
    grid-row: auto;
    align-items: flex-start;
    justify-self: start;
    align-self: start;
    margin-top: 0.1rem;
  }

  .form-actions {
    align-items: stretch;
    gap: 0.65rem;
  }

  .btn,
  .share-button {
    width: 100%;
  }
}
