:root {
  --canvas: #f6f8fb;
  --surface: #ffffff;
  --surface-muted: #f1f5f9;
  --surface-blue: #eff6ff;
  --surface-blue-strong: #dbeafe;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border: #d9e2ec;
  --border-strong: #b6c4d3;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --success: #0f766e;
  --success-soft: #ccfbf1;
  --warning: #b45309;
  --warning-soft: #fef3c7;
  --error: #b42318;
  --error-soft: #fee4e2;
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 18px 42px rgba(15, 23, 42, 0.09);
  --shadow-focus: 0 0 0 4px rgba(37, 99, 235, 0.18);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--canvas);
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: var(--surface-blue-strong);
  color: var(--text-primary);
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  box-shadow: var(--shadow-focus);
}

[hidden] {
  display: none !important;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow-wrap {
  width: min(780px, calc(100% - 40px));
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--text-primary);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  overflow-x: clip;
  border-bottom: 1px solid rgba(217, 226, 236, 0.92);
  background: rgba(246, 248, 251, 0.94);
  backdrop-filter: blur(16px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text-primary);
  text-decoration: none;
}

.brand {
  flex: 0 0 auto;
}

.brand-mark {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.brand-copy {
  display: block;
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.brand-copy small {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-left: auto;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.87rem;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.primary-nav a:hover {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.language-switcher {
  position: relative;
}

.language-switcher summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  list-style: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.language-switcher summary::-webkit-details-marker {
  display: none;
}

.language-switcher summary:hover,
.language-switcher[open] summary {
  border-color: var(--primary);
  background: var(--surface-blue);
  color: var(--primary-dark);
}

.language-switcher summary svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.language-name {
  max-width: 78px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.language-chevron,
.summary-chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 180ms ease;
}

.language-switcher[open] .language-chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  display: grid;
  min-width: 150px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.language-menu a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}

.language-menu a:hover,
.language-menu a[aria-current="page"] {
  background: var(--surface-blue);
  color: var(--primary-dark);
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-primary);
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle[aria-expanded="true"] {
  border-color: var(--primary);
  background: var(--surface-blue);
  color: var(--primary-dark);
}

.mobile-menu-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.hero-section {
  padding: 48px 0 20px;
  background:
    radial-gradient(circle at 12% 12%, rgba(219, 234, 254, 0.62), transparent 31%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(246, 248, 251, 0));
}

.hero-inner {
  max-width: 900px;
  text-align: center;
}

.eyebrow,
.section-label,
.panel-kicker,
.card-label {
  margin: 0;
  color: var(--primary-dark);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.04);
}

.eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  content: "";
}

.hero-section h1 {
  max-width: 780px;
  margin: 17px auto 12px;
  color: var(--text-primary);
  font-size: clamp(2.35rem, 5.2vw, 4.2rem);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.hero-lead {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.07rem;
  line-height: 1.7;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 0;
  margin: 19px 0 0;
  list-style: none;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text-secondary);
  font-size: 0.83rem;
  font-weight: 650;
}

.trust-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

.tool-section {
  padding: 8px 0 54px;
}

.salary-tool-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.salary-input-panel,
.salary-result-panel {
  min-width: 0;
  padding: 31px 32px;
}

.salary-input-panel {
  border-right: 1px solid var(--border);
  background: var(--surface);
}

.salary-result-panel {
  background: linear-gradient(145deg, #ffffff 0%, var(--surface-blue) 100%);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.panel-heading h2,
.schedule-heading h3 {
  margin: 4px 0 0;
  color: var(--text-primary);
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid #bfdbfe;
  border-radius: 11px;
  background: var(--surface-blue-strong);
  color: var(--primary-dark);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
}

.step-index-accent {
  border-color: #99f6e4;
  background: var(--success-soft);
  color: var(--success);
}

.panel-intro {
  margin: 18px 0 22px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.62;
}

.salary-form {
  display: grid;
  gap: 18px;
}

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

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

.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-height: 22px;
  margin-bottom: 7px;
}

.field-label {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 700;
}

.field-state {
  color: var(--text-muted);
  font-size: 0.73rem;
}

.field-group input,
.field-group select {
  display: block;
  width: 100%;
  height: 48px;
  min-height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.2;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.field-group input {
  padding: 11px 13px;
  font-variant-numeric: tabular-nums;
}

.field-group select {
  padding: 10px 35px 10px 12px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 20px, calc(100% - 12px) 20px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  cursor: pointer;
}

.field-group input:hover,
.field-group select:hover {
  border-color: var(--primary);
}

.field-group input:focus,
.field-group select:focus {
  border-color: var(--primary);
  box-shadow: var(--shadow-focus);
  outline: none;
}

.input-with-prefix,
.input-with-suffix {
  display: flex;
  align-items: stretch;
}

.input-prefix,
.input-suffix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  border: 1px solid var(--border-strong);
  background: var(--surface-muted);
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 700;
}

.input-prefix {
  border-right: 0;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.input-suffix {
  min-width: 61px;
  border-left: 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--sans);
  font-size: 0.78rem;
}

.input-with-prefix input {
  border-left: 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.input-with-suffix input {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.field-helper,
.field-error,
.field-warning,
.required-note {
  margin: 7px 0 0;
  font-size: 0.76rem;
  line-height: 1.45;
}

.field-helper,
.required-note {
  color: var(--text-muted);
}

.field-error {
  color: var(--error);
  font-weight: 650;
}

.field-warning {
  color: var(--warning);
  font-weight: 650;
}

.field-group.has-error input,
.field-group.has-error select,
.field-group.has-error .input-prefix,
.field-group.has-error .input-suffix {
  border-color: var(--error);
  background: #fffafa;
}

.schedule-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-top: 5px;
  border-top: 1px solid var(--border);
}

.schedule-heading h3 {
  font-size: 1rem;
}

.schedule-heading > p {
  max-width: 270px;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.45;
  text-align: right;
}

.advanced-settings {
  padding: 13px 14px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}

.advanced-settings summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.87rem;
  font-weight: 700;
  list-style: none;
}

.advanced-settings summary::-webkit-details-marker {
  display: none;
}

.summary-chevron,
.faq-chevron {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 180ms ease;
}

.advanced-settings[open] .summary-chevron,
.faq-item[open] .faq-chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.advanced-settings > .field-helper {
  max-width: 590px;
  margin-bottom: 13px;
}

.form-error-summary {
  padding: 10px 12px;
  border: 1px solid #f2b8b5;
  border-radius: var(--radius-sm);
  background: var(--error-soft);
  color: var(--error);
  font-size: 0.82rem;
  font-weight: 650;
}

.form-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.primary-button,
.secondary-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.primary-button {
  gap: 9px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.18);
}

.primary-button:hover {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
  transform: translateY(-1px);
}

.primary-button svg,
.secondary-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.secondary-button {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-secondary);
}

.secondary-button:hover {
  border-color: var(--primary);
  background: var(--surface-blue);
  color: var(--primary-dark);
  transform: translateY(-1px);
}

.text-button {
  min-height: 44px;
  padding: 8px 5px;
  border: 0;
  background: transparent;
  color: var(--primary-dark);
}

.text-button:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.required-note {
  margin-top: -5px;
}

.result-live {
  padding-top: 20px;
  animation: result-fade-in 180ms ease-out;
}

.result-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 750;
}

.result-live[data-state="warning"] .result-status {
  color: var(--warning);
}

.status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--success-soft);
}

.result-live[data-state="warning"] .status-icon {
  background: var(--warning-soft);
}

.status-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.result-label {
  margin: 23px 0 2px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 650;
}

.result-number {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--text-primary);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.result-number strong {
  font-size: clamp(2.7rem, 6vw, 4.25rem);
  font-weight: 760;
  letter-spacing: -0.07em;
  line-height: 1.05;
}

.result-number span {
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: 700;
}

.result-summary {
  max-width: 410px;
  margin: 11px 0 17px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.55;
}

.gross-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-sm);
  background: rgba(236, 253, 245, 0.84);
  color: #115e59;
  font-size: 0.78rem;
  line-height: 1.45;
}

.gross-note svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.metrics-table {
  display: grid;
  gap: 0;
  margin-top: 17px;
  border-top: 1px solid var(--border);
}

.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 36px;
  border-bottom: 1px solid rgba(217, 226, 236, 0.74);
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.metric-row strong {
  color: var(--text-primary);
  font-family: var(--mono);
  font-size: 0.87rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.assumptions-box,
.formula-box {
  display: grid;
  gap: 4px;
  margin-top: 17px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
}

.assumptions-box span,
.formula-box span {
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.assumptions-box strong,
.formula-box code {
  color: var(--text-primary);
  font-family: var(--mono);
  font-size: 0.77rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.formula-box {
  background: rgba(239, 246, 255, 0.8);
}

.result-actions {
  margin-top: 17px;
}

.result-actions .secondary-button {
  min-height: 42px;
  padding: 8px 12px;
  font-size: 0.82rem;
}

.result-actions .text-button {
  font-size: 0.82rem;
}

.copy-feedback {
  margin: 8px 0 0;
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 650;
}

.result-empty {
  display: grid;
  justify-items: start;
  gap: 9px;
  padding: 34px 0 10px;
  color: var(--text-secondary);
}

.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface-blue-strong);
  color: var(--primary-dark);
}

.empty-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.result-empty strong {
  color: var(--text-primary);
  font-size: 1rem;
}

.result-empty p {
  max-width: 330px;
  margin: 0;
  font-size: 0.86rem;
}

.formula-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 13px 16px;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  background: var(--surface-blue);
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.formula-strip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 9px;
  background: var(--surface);
  color: var(--primary-dark);
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 700;
}

.formula-strip p {
  margin: 0;
  line-height: 1.5;
}

.formula-strip strong {
  color: var(--text-primary);
}

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

.content-section-tinted {
  border-top: 1px solid rgba(217, 226, 236, 0.7);
  border-bottom: 1px solid rgba(217, 226, 236, 0.7);
  background: #f0f5fb;
}

.section-intro {
  max-width: 740px;
  margin-bottom: 30px;
}

.section-intro h2 {
  margin: 8px 0 10px;
  color: var(--text-primary);
  font-size: clamp(1.75rem, 3.5vw, 2.45rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.section-intro > p:last-child {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.72;
}

.steps-grid,
.three-column-grid,
.two-column-grid {
  display: grid;
  gap: 16px;
}

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

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

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

.step-card,
.detail-card,
.formula-card,
.example-card {
  min-width: 0;
  padding: 23px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.step-card {
  position: relative;
  padding-top: 52px;
}

.step-number,
.detail-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--surface-blue-strong);
  color: var(--primary-dark);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 800;
}

.step-number {
  position: absolute;
  top: 21px;
  left: 23px;
}

.step-card h3,
.detail-card h3,
.example-card h3 {
  margin: 0 0 8px;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.step-card p,
.detail-card p,
.example-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.68;
}

.formula-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 16px;
}

.formula-card,
.example-card {
  padding: 27px;
}

.large-formula {
  display: block;
  padding: 15px 0 12px;
  color: var(--primary-dark);
  font-family: var(--mono);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.formula-card > p:not(.card-label),
.example-card > p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.68;
}

.formula-rows {
  display: grid;
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid var(--border);
}

.formula-row {
  display: grid;
  grid-template-columns: minmax(135px, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(217, 226, 236, 0.75);
}

.formula-row strong {
  color: var(--text-primary);
  font-size: 0.82rem;
}

.formula-row code {
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.comparison-tag {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 6px;
  background: var(--success-soft);
  color: var(--success);
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.example-card h3 {
  margin-top: 15px;
}

.example-equation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 21px 0 17px;
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.equation-emphasis {
  padding: 7px 8px;
  border-radius: 7px;
  background: var(--surface-blue-strong);
  color: var(--primary-dark);
  font-weight: 800;
}

.example-note,
.table-note {
  color: var(--text-muted) !important;
  font-size: 0.78rem !important;
}

.prose-content {
  display: grid;
  gap: 16px;
}

.prose-content p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.78;
}

.callout-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 24px;
  padding: 15px 16px;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  background: var(--surface-blue);
  color: var(--text-secondary);
}

.callout-note svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: none;
  stroke: var(--primary-dark);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.callout-note p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.6;
}

.detail-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.detail-card > div {
  min-width: 0;
}

.detail-card code {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--primary-dark);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 750;
}

.use-case-card {
  min-height: 150px;
}

.limitation-card {
  display: block;
  border-left: 3px solid #bfdbfe;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.conversion-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.conversion-table th,
.conversion-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(217, 226, 236, 0.82);
  text-align: right;
  white-space: nowrap;
}

.conversion-table thead th {
  background: var(--surface-muted);
  color: var(--text-secondary);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.conversion-table thead th:first-child,
.conversion-table tbody th {
  text-align: left;
}

.conversion-table tbody th {
  color: var(--text-primary);
  font-family: var(--mono);
  font-weight: 750;
}

.conversion-table tbody td {
  color: var(--text-secondary);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.conversion-table tbody tr:last-child th,
.conversion-table tbody tr:last-child td {
  border-bottom: 0;
}

.table-note {
  margin: 12px 0 0;
}

.faq-section .section-intro {
  margin-bottom: 26px;
}

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

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.035);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 56px;
  padding: 15px 17px;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.93rem;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item > p {
  padding: 0 17px 17px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.72;
}

.closing-section {
  padding: 66px 0;
  background: var(--canvas);
}

.closing-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 30px;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #ffffff, #eff6ff);
  box-shadow: var(--shadow-sm);
}

.closing-card h2 {
  margin: 8px 0 8px;
  color: var(--text-primary);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.closing-card p:last-child {
  max-width: 650px;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.65;
}

.closing-button {
  flex: 0 0 auto;
}

.closing-button svg {
  width: 18px;
  height: 18px;
  margin-left: 7px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.noscript-note {
  padding-bottom: 32px;
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.site-footer {
  padding: 42px 0 20px;
  border-top: 1px solid var(--border);
  background: #eaf0f7;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 50px;
}

.footer-logo {
  font-size: 1rem;
  font-weight: 800;
}

.footer-logo img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.footer-brand > p {
  max-width: 440px;
  margin: 16px 0 0;
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.65;
}

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

.footer-group {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-group > p {
  margin: 0 0 4px;
  color: var(--text-primary);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.footer-group a,
.footer-group span {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.5;
  text-decoration: none;
}

.footer-group a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-note-group span {
  max-width: 220px;
  color: var(--text-muted);
}

.footer-bottom {
  padding-top: 27px;
  margin-top: 32px;
  border-top: 1px solid rgba(182, 196, 211, 0.7);
}

.footer-bottom p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.error-page {
  padding: 120px 0;
}

.error-card {
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.error-card h1 {
  margin: 10px 0;
  font-size: 2.3rem;
  letter-spacing: -0.04em;
}

.error-card p:not(.section-label) {
  max-width: 520px;
  margin: 0 auto 24px;
  color: var(--text-secondary);
}

@keyframes result-fade-in {
  from {
    opacity: 0.7;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .primary-nav a {
    padding-inline: 9px;
    font-size: 0.82rem;
  }

  .salary-input-panel,
  .salary-result-panel {
    padding-inline: 24px;
  }

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

  .footer-inner {
    gap: 30px;
  }
}

@media (max-width: 760px) {
  .wrap,
  .narrow-wrap {
    width: min(100% - 32px, 680px);
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-copy {
    font-size: 0.96rem;
  }

  .brand-copy small {
    font-size: 0.55rem;
  }

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

  .language-switcher summary {
    padding-inline: 8px;
  }

  .language-name {
    max-width: 62px;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
  }

  .primary-nav.is-mobile-open {
    display: flex;
  }

  .primary-nav a {
    justify-content: flex-start;
    min-height: 44px;
    padding: 10px 12px;
  }

  .hero-section {
    padding-top: 36px;
  }

  .hero-section h1 {
    font-size: clamp(2.25rem, 11vw, 3.25rem);
  }

  .hero-lead {
    font-size: 1rem;
  }

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

  .salary-input-panel {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .steps-grid,
  .three-column-grid,
  .two-column-grid {
    grid-template-columns: 1fr;
  }

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

  .closing-card {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
  }

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

  .footer-nav {
    max-width: 520px;
  }
}

@media (max-width: 480px) {
  .wrap,
  .narrow-wrap {
    width: calc(100% - 24px);
  }

  .hero-section {
    padding-top: 28px;
  }

  .trust-list {
    align-items: stretch;
    flex-direction: column;
    max-width: 250px;
    margin-right: auto;
    margin-left: auto;
  }

  .trust-list li {
    justify-content: center;
  }

  .salary-input-panel,
  .salary-result-panel {
    padding: 24px 18px;
  }

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

  .schedule-heading {
    display: block;
  }

  .schedule-heading > p {
    max-width: none;
    margin-top: 8px;
    text-align: left;
  }

  .form-actions,
  .form-actions .primary-button,
  .form-actions .secondary-button {
    width: 100%;
  }

  .result-number strong {
    font-size: 3rem;
  }

  .result-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .result-actions .secondary-button,
  .result-actions .text-button {
    width: 100%;
  }

  .formula-card,
  .example-card,
  .step-card,
  .detail-card {
    padding: 19px;
  }

  .step-card {
    padding-top: 50px;
  }

  .step-number {
    top: 18px;
    left: 19px;
  }

  .formula-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Reference visual system: calm pastel utility interface with paper surfaces and ink outlines. */
:root {
  --canvas: #fff7fb;
  --surface: #fffdf8;
  --surface-muted: #fff3e5;
  --surface-blue: #f5edff;
  --surface-blue-strong: #eadfff;
  --text-primary: #372733;
  --text-secondary: #78626f;
  --text-muted: #967f8d;
  --border: rgba(55, 39, 51, 0.16);
  --border-strong: #372733;
  --primary: #9a80ff;
  --primary-dark: #6f55df;
  --success: #187a55;
  --success-soft: #e9fff6;
  --warning: #b66b35;
  --warning-soft: #fff0b8;
  --error: #b34767;
  --error-soft: #ffe2eb;
  --shadow-sm: 3px 3px 0 rgba(55, 39, 51, 0.09);
  --shadow-md: 4px 4px 0 rgba(55, 39, 51, 0.09);
  --shadow-focus: 0 0 0 4px rgba(154, 128, 255, 0.28);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 26px;
  --line: #372733;
  --paper: #fffdf8;
  --cream: #fff0b8;
  --lavender: #eadfff;
  --mint: #4edfa6;
  --sun: #ffd45f;
  --peach: #ff9f82;
  --sky: #79dfff;
  --pink: #ff8fca;
  --lime: #c8ef73;
  --wash: #fff3e5;
  --bounce: cubic-bezier(.2, 1.65, .47, .76);
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  isolation: isolate;
  background: var(--canvas);
  color: var(--text-primary);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  opacity: 0.1;
  background:
    linear-gradient(135deg, rgba(255, 212, 95, 0.11) 0 12%, transparent 12% 100%),
    linear-gradient(45deg, transparent 0 49%, rgba(154, 128, 255, 0.08) 49% 51%, transparent 51%),
    radial-gradient(var(--line) 0.6px, transparent 0.9px);
  background-size: 260px 260px, 72px 72px, 28px 28px;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.2;
  background:
    repeating-linear-gradient(90deg, transparent 0 70px, rgba(255, 143, 202, 0.08) 70px 72px),
    repeating-linear-gradient(0deg, transparent 0 80px, rgba(78, 223, 166, 0.08) 80px 82px);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 78%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 78%);
}

::selection {
  background: var(--cream);
  color: var(--text-primary);
}

.wrap {
  width: min(1180px, calc(100% - 32px));
}

.skip-link {
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--text-primary);
  box-shadow: 4px 4px 0 rgba(55, 39, 51, 0.16);
}

.site-header {
  border-bottom: 0;
  background: transparent;
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 74px;
  padding: 16px 0 10px;
}

.header-inner::before {
  position: absolute;
  inset: 0 -18px 0;
  z-index: -1;
  border: 1px solid rgba(55, 39, 51, 0.08);
  border-right: 0;
  border-left: 0;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.76), rgba(255, 253, 248, 0.46));
  box-shadow: 0 10px 24px rgba(55, 39, 51, 0.045);
  content: "";
}

.brand {
  font-weight: 950;
  letter-spacing: 0;
  transition: transform 0.35s var(--bounce);
}

.brand:hover {
  transform: rotate(-1.5deg) translateY(-1px);
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: none;
  filter: drop-shadow(4px 4px 0 var(--line));
  animation: salary-theme-mark-bob 4.6s ease-in-out infinite;
}

.brand-copy {
  font-weight: 950;
  letter-spacing: 0;
}

.brand-copy small {
  color: var(--text-secondary);
  font-weight: 850;
}

.header-actions {
  gap: 8px;
}

.primary-nav {
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(55, 39, 51, 0.1);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 8px 22px rgba(55, 39, 51, 0.04);
}

.primary-nav a {
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.primary-nav a:hover {
  transform: translateY(-1px);
  border-color: rgba(55, 39, 51, 0.1);
  background: transparent;
  color: var(--text-primary);
  box-shadow: 0 8px 18px rgba(55, 39, 51, 0.08);
}

.primary-nav a:nth-child(1):hover {
  background: rgba(255, 212, 95, 0.56);
}

.primary-nav a:nth-child(2):hover {
  background: rgba(154, 128, 255, 0.18);
}

.primary-nav a:nth-child(3):hover {
  background: rgba(78, 223, 166, 0.22);
}

.primary-nav a:nth-child(4):hover {
  background: rgba(255, 143, 202, 0.22);
}

.mobile-menu-toggle {
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 3px 3px 0 rgba(55, 39, 51, 0.12);
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle[aria-expanded="true"] {
  border-color: var(--line);
  background: var(--cream);
  color: var(--text-primary);
  box-shadow: 4px 4px 0 rgba(55, 39, 51, 0.14);
}

.language-menu {
  position: relative;
  display: block;
  flex: 0 0 auto;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  z-index: 50;
}

.language-menu summary {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 118px;
  min-height: 42px;
  padding: 9px 14px;
  border: 1.5px solid rgba(55, 39, 51, 0.16);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 8px 20px rgba(55, 39, 51, 0.08);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 850;
  line-height: 1;
  list-style: none;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.language-menu summary::marker {
  content: "";
  font-size: 0;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-menu summary::after {
  width: 0;
  height: 0;
  border-top: 5px solid currentColor;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  content: "";
  flex: 0 0 auto;
  opacity: 0.58;
  transition: transform 180ms ease;
}

.language-menu summary:hover,
.language-menu[open] summary {
  transform: translateY(-1px);
  border-color: rgba(55, 39, 51, 0.3);
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(55, 39, 51, 0.12);
}

.language-menu[open] summary::after {
  transform: rotate(180deg);
}

.language-menu summary svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--primary-dark);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 180ms ease, stroke 180ms ease;
}

.language-menu summary:hover svg,
.language-menu[open] summary svg {
  stroke: var(--primary-dark);
  transform: rotate(8deg);
}

.language-current {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.language-current-short {
  display: none;
}

.language-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  display: grid;
  gap: 3px;
  min-width: 160px;
  max-width: calc(100vw - 28px);
  padding: 7px;
  border: 1px solid rgba(55, 39, 51, 0.14);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(55, 39, 51, 0.16);
}

.language-option,
.language-options a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms ease, color 150ms ease;
}

.language-option:hover,
.language-options a:hover {
  background: var(--wash);
  color: var(--text-primary);
  text-decoration: none;
}

.language-option.is-current {
  background: var(--cream);
  color: var(--text-primary);
  cursor: default;
}

.hero-section {
  padding: 56px 0 24px;
  background: transparent;
}

.hero-inner {
  max-width: 900px;
}

.eyebrow,
.section-label,
.panel-kicker,
.card-label {
  color: var(--text-primary);
  font-weight: 950;
}

.eyebrow {
  gap: 8px;
  padding: 7px 13px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 2px 2px 0 rgba(55, 39, 51, 0.12);
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  margin-right: 27px;
  background: var(--mint);
  box-shadow: 14px 0 0 var(--sun), 28px 0 0 var(--violet, #9a80ff);
}

.hero-section h1 {
  max-width: 900px;
  margin: 20px auto 17px;
  color: var(--text-primary);
  font-size: clamp(3rem, 6vw, 4.8rem);
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 0.96;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.9);
}

.hero-lead {
  max-width: 760px;
  font-weight: 650;
}

.trust-list {
  gap: 9px;
  margin-top: 20px;
}

.trust-list li,
.trust-list li:nth-child(1),
.trust-list li:nth-child(2),
.trust-list li:nth-child(3) {
  min-height: 36px;
  padding: 6px 11px;
  border: 1px solid rgba(55, 39, 51, 0.2);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: none;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 850;
  transform: none;
}

.trust-list li:nth-child(1) .trust-dot {
  background: var(--sun);
}

.trust-list li:nth-child(2) .trust-dot {
  background: var(--mint);
}

.trust-list li:nth-child(3) .trust-dot {
  background: var(--violet, #9a80ff);
}

.trust-dot {
  background: var(--text-primary);
}

.tool-section {
  padding: 8px 0 54px;
}

.salary-tool-card {
  max-width: 980px;
  margin: 0 auto;
  border: 1.5px solid var(--line);
  border-radius: 26px;
  background: var(--paper);
  box-shadow: 4px 4px 0 rgba(55, 39, 51, 0.09);
}

.salary-input-panel {
  border-right: 1.5px solid rgba(55, 39, 51, 0.13);
  background: rgba(255, 253, 248, 0.74);
}

.salary-result-panel {
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(245, 237, 255, 0.98));
}

.panel-heading h2,
.schedule-heading h3 {
  font-weight: 950;
  letter-spacing: -0.035em;
}

.step-index,
.detail-index,
.step-number {
  border: 2px solid var(--line);
  border-radius: 12px;
  box-shadow: 2px 2px 0 rgba(55, 39, 51, 0.12);
}

.step-index {
  background: var(--sun);
  color: var(--text-primary);
}

.step-index-accent,
.detail-index {
  background: var(--mint);
  color: #10281c;
}

.panel-kicker,
.section-label,
.card-label {
  color: var(--primary-dark);
}

.field-group input,
.field-group select {
  border-width: 1.5px;
  border-color: var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--text-primary);
}

.field-group select {
  background-color: #ffffff;
}

.field-group input:hover,
.field-group select:hover {
  border-color: var(--primary-dark);
}

.field-group input:focus,
.field-group select:focus {
  border-color: var(--primary-dark);
  box-shadow: var(--shadow-focus);
}

.input-prefix,
.input-suffix {
  border-width: 1.5px;
  border-color: var(--line);
  background: var(--wash);
  color: var(--text-secondary);
}

.input-prefix {
  border-right: 0;
  border-radius: 14px 0 0 14px;
}

.input-suffix {
  border-left: 0;
  border-radius: 0 14px 14px 0;
}

.input-with-prefix input {
  border-left: 0;
  border-radius: 0 14px 14px 0;
}

.input-with-suffix input {
  border-radius: 14px 0 0 14px;
}

.advanced-settings {
  border: 1.5px solid rgba(55, 39, 51, 0.16);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.72);
}

.advanced-settings summary {
  color: var(--text-primary);
}

.field-error {
  color: var(--error);
}

.field-warning {
  color: var(--warning);
}

.field-group.has-error input,
.field-group.has-error select,
.field-group.has-error .input-prefix,
.field-group.has-error .input-suffix {
  border-color: var(--error);
  background: var(--error-soft);
}

.primary-button,
.secondary-button,
.text-button {
  border-width: 2px;
  border-radius: 18px;
  font-weight: 950;
  transition: transform 0.24s var(--bounce), box-shadow 0.24s var(--bounce), background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.primary-button {
  border-color: var(--line);
  background: var(--mint);
  color: #10281c;
  box-shadow: 2px 3px 0 rgba(55, 39, 51, 0.1);
}

.primary-button:hover {
  border-color: var(--line);
  background: var(--lime);
  color: #10281c;
  transform: translateY(-1px);
  box-shadow: 3px 4px 0 rgba(55, 39, 51, 0.12);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.secondary-button {
  border-color: var(--line);
  background: var(--paper);
  color: var(--text-primary);
  box-shadow: 2px 3px 0 rgba(55, 39, 51, 0.1);
}

.secondary-button:hover {
  border-color: var(--line);
  background: var(--cream);
  color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: 3px 4px 0 rgba(55, 39, 51, 0.11);
}

.text-button {
  border-color: transparent;
  background: transparent;
  color: var(--primary-dark);
  box-shadow: none;
}

.text-button:hover {
  border-color: transparent;
  background: transparent;
  color: var(--text-primary);
  transform: translateY(-1px);
}

.result-live {
  padding: 24px;
  border: 1.5px solid var(--line);
  border-radius: 24px;
  background: rgba(234, 223, 255, 0.58);
  box-shadow: 3px 3px 0 rgba(55, 39, 51, 0.08);
}

.result-live[data-state="error"] {
  border-color: var(--error);
  background: var(--error-soft);
}

.result-status {
  color: #187a55;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.result-live[data-state="warning"] .result-status {
  color: var(--warning);
}

.status-icon {
  border: 2px solid var(--line);
  background: var(--mint);
  color: var(--text-primary);
}

.result-live[data-state="warning"] .status-icon {
  background: var(--sun);
}

.result-number strong {
  text-shadow: 3px 3px 0 rgba(255, 255, 255, 0.72);
}

.result-number span,
.large-formula {
  color: var(--primary-dark);
}

.gross-note {
  border: 1.5px solid rgba(55, 39, 51, 0.18);
  border-radius: 16px;
  background: rgba(78, 223, 166, 0.22);
  color: #187a55;
  box-shadow: none;
}

.metrics-table {
  border-top-color: rgba(55, 39, 51, 0.18);
}

.metric-row {
  border-bottom-color: rgba(55, 39, 51, 0.13);
}

.metric-row strong,
.assumptions-box strong,
.formula-box code {
  color: var(--text-primary);
}

.assumptions-box,
.formula-box {
  border: 1px solid rgba(55, 39, 51, 0.18);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: none;
}

.assumptions-box span,
.formula-box span {
  color: var(--text-muted);
}

.formula-box {
  background: rgba(255, 253, 248, 0.78);
}

.result-empty {
  min-height: 270px;
  place-items: center;
  align-content: center;
  padding: 28px;
  border: 1.5px dashed rgba(55, 39, 51, 0.38);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.7);
  text-align: center;
}

.empty-icon {
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--sun);
  color: var(--text-primary);
  box-shadow: 3px 3px 0 rgba(55, 39, 51, 0.12);
}

.copy-feedback {
  color: #187a55;
}

.formula-strip {
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 240, 184, 0.72);
  box-shadow: 2px 2px 0 rgba(55, 39, 51, 0.08);
}

.formula-strip-icon {
  border: 1.5px solid var(--line);
  background: var(--violet, #9a80ff);
  color: #ffffff;
}

.content-section {
  padding: 78px 0;
  border-top: 2px dashed rgba(55, 39, 51, 0.13);
}

.content-section-tinted,
.faq-section,
.closing-section {
  border-bottom: 0;
  background: rgba(255, 253, 248, 0.56);
}

.section-intro {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-intro h2 {
  font-weight: 800;
}

.section-intro > p:last-child {
  color: var(--text-secondary);
}

.step-card,
.detail-card,
.formula-card,
.example-card {
  border: 1.5px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 3px 3px 0 rgba(55, 39, 51, 0.09);
  transition: transform 0.28s var(--bounce), box-shadow 0.28s var(--bounce);
}

.step-card:hover,
.detail-card:hover,
.formula-card:hover,
.example-card:hover {
  transform: translateY(-4px);
  box-shadow: 6px 6px 0 rgba(55, 39, 51, 0.12);
}

.step-card:nth-child(n),
.detail-card:nth-child(n) {
  background: var(--paper);
  transform: none;
}

.step-card:hover,
.detail-card:hover {
  transform: translateY(-4px);
}

.detail-card {
  position: relative;
  display: block;
  padding-left: 68px;
}

.detail-index {
  position: absolute;
  top: 20px;
  left: 20px;
}

.limitation-card {
  padding-left: 23px;
}

.detail-index {
  box-shadow: 2px 2px 0 rgba(55, 39, 51, 0.12);
}

.formula-card,
.example-card {
  box-shadow: 4px 4px 0 rgba(55, 39, 51, 0.09);
}

.formula-row {
  border-bottom-color: rgba(55, 39, 51, 0.13);
}

.comparison-tag {
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 2px 2px 0 rgba(55, 39, 51, 0.1);
  color: var(--text-primary);
}

.example-equation {
  border: 1px solid rgba(55, 39, 51, 0.18);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.78);
}

.equation-emphasis {
  background: var(--mint);
  color: #10281c;
}

.callout-note {
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--mint);
  color: #10281c;
  box-shadow: 3px 3px 0 rgba(55, 39, 51, 0.08);
}

.callout-note svg {
  stroke: #10281c;
}

.limitation-card {
  border-left: 5px solid var(--primary-dark);
}

.table-wrap {
  border: 1.5px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 3px 3px 0 rgba(55, 39, 51, 0.09);
}

.conversion-table th,
.conversion-table td {
  border-bottom-color: rgba(55, 39, 51, 0.16);
}

.conversion-table thead th {
  background: var(--cream);
  color: var(--text-primary);
}

.conversion-table tbody th {
  color: var(--primary-dark);
}

.conversion-table tbody td {
  color: var(--text-primary);
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  overflow: hidden;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 2px 2px 0 rgba(55, 39, 51, 0.08);
}

.faq-item summary {
  min-height: 62px;
  color: var(--text-primary);
  font-weight: 900;
}

.faq-chevron {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--cream);
  transform: none;
}

.faq-chevron::before,
.faq-chevron::after {
  position: absolute;
  top: 8px;
  left: 4px;
  width: 8px;
  height: 1.5px;
  border: 0;
  background: var(--text-primary);
  content: "";
  transition: transform 180ms ease;
}

.faq-chevron::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-chevron::after {
  transform: rotate(0);
}

.faq-item[open] .faq-chevron {
  transform: none;
}

.closing-section {
  padding: 38px 0 78px;
}

.closing-card {
  border: 1.5px solid var(--line);
  border-radius: 28px;
  background: var(--lavender);
  box-shadow: 4px 4px 0 rgba(55, 39, 51, 0.09);
}

.closing-button {
  background: var(--sun);
}

.noscript-note {
  border: 2px solid var(--warning);
  border-radius: 16px;
  background: var(--warning-soft);
  box-shadow: 3px 3px 0 rgba(55, 39, 51, 0.1);
}

.site-footer {
  margin-top: 18px;
  border-top: 2px solid var(--line);
  background: var(--paper);
  color: var(--text-primary);
}

.footer-logo {
  color: var(--text-primary);
  font-weight: 950;
}

.footer-logo img {
  filter: drop-shadow(3px 3px 0 var(--line));
}

.footer-group a,
.footer-group span {
  color: var(--text-secondary);
}

.footer-group a:hover {
  color: var(--text-primary);
}

@keyframes salary-theme-mark-bob {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-2px) rotate(-1.5deg);
  }
}

@media (max-width: 960px) {
  .primary-nav a {
    padding-inline: 9px;
    font-size: 0.8rem;
  }
}

@media (max-width: 760px) {
  .wrap,
  .narrow-wrap {
    width: min(100% - 28px, 620px);
  }

  .header-inner {
    align-items: center;
    flex-wrap: wrap;
    column-gap: 10px;
    row-gap: 0;
    padding: 12px 0 10px;
  }

  .header-inner::before {
    inset: 0 -14px 0;
  }

  .header-actions {
    order: 2;
    width: auto;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    margin-left: auto;
  }

  .primary-nav {
    order: 3;
    flex: 1 0 100%;
    width: 100%;
    display: none;
    gap: 4px;
    margin-top: 8px;
    padding: 8px;
    border: 2px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
    box-shadow: 5px 5px 0 rgba(55, 39, 51, 0.12);
  }

  .primary-nav.is-mobile-open {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
  }

  .primary-nav.is-mobile-open a {
    justify-content: flex-start;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.95rem;
  }

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

  .hero-section {
    padding-top: 50px;
  }

  .hero-section h1 {
    font-size: clamp(2.75rem, 12vw, 4.4rem);
    letter-spacing: -0.07em;
  }

  .salary-tool-card {
    border-radius: 22px;
    box-shadow: 3px 3px 0 rgba(55, 39, 51, 0.09);
  }

  .salary-input-panel {
    border-right: 0;
    border-bottom: 2px solid rgba(55, 39, 51, 0.13);
  }

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

  .closing-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .closing-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .header-inner {
    column-gap: 6px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-copy {
    font-size: 0.96rem;
  }

  .brand-copy small {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .language-menu summary {
    min-width: 0;
    padding-inline: 10px;
    gap: 6px;
    font-size: 0.8rem;
  }

  .language-menu summary svg {
    width: 15px;
    height: 15px;
  }

  .language-current-full {
    display: none;
  }

  .language-current-short {
    display: inline;
  }

  .primary-nav.is-mobile-open a {
    font-size: 0.92rem;
  }

  .salary-input-panel,
  .salary-result-panel {
    padding: 18px 14px;
  }

  .result-live {
    padding: 18px;
  }

  .result-number strong {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .formula-card,
  .example-card,
  .step-card,
  .detail-card {
    padding: 18px;
  }

  .detail-card {
    padding-left: 62px;
  }

  .limitation-card {
    padding-left: 18px;
  }

  .step-card {
    padding-top: 50px;
  }

  .step-number {
    top: 18px;
    left: 18px;
  }

  .step-card:nth-child(n),
  .detail-card:nth-child(n) {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark {
    animation: none;
  }
}
