@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --navy: #432d70;
  --navy-600: #37245d;
  --navy-100: #e9e2f6;
  --lavender: #f4edff;
  --blush: #fcebef;
  --page: #f5f7ff;
  --surface: #fdfeff;
  --soft-grey: #f3f4f6;
  --ink: #232323;
  --ink-2: #505050;
  --ink-3: #6e6e7a;
  --ink-icon: #8a8a96;
  --line-strong: #8a8a96;
  --accent-pink: #d6307f;
  --line: #e8e8f0;
  --brand-gradient: linear-gradient(135deg, #ff08f5 0%, #ffb41e 100%);

  --positive: #0b7a55;
  --positive-50: #e3f5ed;
  --negative: #c8323c;
  --negative-50: #fdecee;
  --amber: #8a4b08;
  --amber-50: #fdf1dc;
  --sky: #0369a8;
  --sky-50: #e1f2fd;

  --chart-agency: #0b7a55;
  --chart-disengagement: #56bd90;
  --chart-admin: #5f47a0;
  --chart-vacancy: #a48ae0;
  --chart-cost: rgb(200 50 60 / 55%);

  --font: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-xl: 40px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-card: 0 0.8px 2.4px -0.6px rgb(0 0 0 / 5%), 0 2.4px 7.2px -1.25px rgb(0 0 0 / 5%), 0 6.4px 19px -1.9px rgb(0 0 0 / 5%), 0 20px 60px -2.5px rgb(0 0 0 / 5%);
  --shadow-raised: 0 0.6px 1.8px -1.25px rgb(0 0 0 / 18%), 0 2.3px 6.9px -2.5px rgb(0 0 0 / 16%), 0 10px 30px -3.75px rgb(0 0 0 / 6%);
  --ring: 0 0 0 3px rgb(67 45 112 / 22%);

  --nav-height: 72px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

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

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.pkg-option:focus-visible,
.value-row:focus-visible,
.pkg-card__action:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.sprite {
  display: none;
}

.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: var(--surface);
  text-decoration: none;
  font-weight: 500;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.button:active {
  transform: translateY(1px);
}

.button--primary {
  background: var(--navy);
  color: var(--surface);
}

.button--primary:hover {
  background: var(--navy-600);
}

.button--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--navy);
}

.button--ghost:hover {
  background: var(--lavender);
  border-color: var(--navy-100);
}

.button--light {
  background: var(--surface);
  color: var(--navy);
}

.button--light:hover {
  background: var(--lavender);
}

.button--outline-light {
  background: transparent;
  border-color: rgb(253 254 255 / 40%);
  color: var(--surface);
}

.button--outline-light:hover {
  background: rgb(253 254 255 / 10%);
}

.link-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 2px;
  border: 0;
  background: none;
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
}

.link-button:hover span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 72%);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
}

.pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-gradient);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--soft-grey);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.chip[data-tone="positive"] {
  background: var(--positive-50);
  color: var(--positive);
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--lavender);
  color: var(--navy);
}

.icon-tile .icon {
  width: 20px;
  height: 20px;
}

.icon-tile--positive {
  background: var(--positive-50);
  color: var(--positive);
}

[data-tone="positive"] {
  color: var(--positive);
}

[data-tone="negative"] {
  color: var(--negative);
}

[data-tone="accent"] {
  color: var(--navy);
}

[data-tone="muted"] {
  color: var(--ink-3);
  font-weight: 400;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(245 247 255 / 82%);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgb(67 45 112 / 6%);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--nav-height);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-raised);
}

.nav__brand img {
  width: 108px;
  height: auto;
}

.nav__title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
  font-weight: 500;
  color: var(--ink-2);
}

.nav__title a {
  color: var(--ink-3);
  text-decoration: none;
}

.nav__title a:hover,
.nav__link:hover {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav__title [aria-hidden] {
  color: var(--ink-icon);
}

.nav__link {
  padding: 8px 6px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.hero {
  padding-top: 24px;
}

.hero__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(32px, 6vw, 80px) clamp(20px, 6vw, 88px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    radial-gradient(55% 75% at 18% 30%, var(--blush) 0%, rgb(252 235 239 / 0%) 100%),
    radial-gradient(45% 70% at 88% 18%, var(--lavender) 0%, rgb(244 237 255 / 0%) 100%),
    radial-gradient(50% 60% at 62% 100%, #ffebf1 0%, rgb(255 235 241 / 0%) 100%),
    var(--surface);
}

.hero__copy {
  display: grid;
  justify-items: start;
  gap: 20px;
}

.hero__title {
  max-width: 14ch;
  font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero__title em {
  font-style: normal;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  max-width: 52ch;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  color: var(--ink-2);
}

.hero__qualifier {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
}

.hero__qualifier a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 10px 28px;
  margin-top: 4px;
}

.proof li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}

.proof .icon {
  width: 20px;
  height: 20px;
  padding: 4px;
  border-radius: 50%;
  background: var(--positive-50);
  color: var(--positive);
  stroke-width: 3;
}

.headline {
  display: grid;
  gap: 6px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-raised);
}

.headline__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
}

.headline__value {
  font-size: clamp(2.25rem, 1.8rem + 2vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.headline__split {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
}

.headline__meta {
  color: var(--ink-2);
}

.headline__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.headline__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.headline .link-button {
  justify-self: start;
}

.calculator {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  padding-top: 28px;
  padding-bottom: 56px;
}

.panel {
  position: sticky;
  top: calc(var(--nav-height) + 16px);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--nav-height) - 32px);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.panel__head {
  padding: 24px 24px 18px;
  border-bottom: 1px solid var(--line);
}

.panel__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.panel__subtitle {
  margin-top: 2px;
  font-size: 14px;
  color: var(--ink-3);
}

.panel__body {
  display: grid;
  gap: 24px;
  padding: 20px 24px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--navy-100) transparent;
}

.panel__note {
  font-size: 12px;
  color: var(--ink-3);
}

.tailored {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--lavender);
}

.tailored__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.tailored__lead {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
}

.tailored__link {
  justify-self: start;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tailored__link:hover {
  text-decoration-thickness: 2px;
}

.form {
  display: grid;
  gap: 24px;
}

.form-section {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 0;
  border: 0;
}

.form-section + .form-section {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.form-section legend {
  float: left;
  width: 100%;
}

.pkg-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.pkg-option {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1px;
  padding: 10px 4px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--soft-grey);
  text-align: center;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.pkg-option:hover {
  border-color: var(--navy);
  background: var(--surface);
}

.pkg-option[aria-checked="true"] {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--surface);
}

.pkg-option__name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pkg-option__from,
.pkg-option__meta {
  font-size: 11px;
  color: var(--ink-3);
}

.pkg-option__price {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

.pkg-option__price small {
  font-size: 11px;
  font-weight: 400;
}

.pkg-option[aria-checked="true"] :is(.pkg-option__from, .pkg-option__meta) {
  color: rgb(253 254 255 / 70%);
}

.pkg-option[aria-checked="true"] .pkg-option__price {
  color: var(--surface);
}

.pkg-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--lavender);
  font-size: 14px;
  color: var(--navy);
}

.field {
  display: grid;
  gap: 8px;
}

.field__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.field__label {
  font-size: 14px;
  font-weight: 500;
}

.field__controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.field__note {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-3);
}

.field__note a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.field__hint {
  font-size: 12px;
  color: var(--ink-3);
}

.field__hint:empty {
  display: none;
}

.field__hint.is-error {
  color: var(--negative);
  font-weight: 500;
}

.slider {
  flex: 1;
  min-width: 0;
  height: 24px;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  --fill: 0%;
}

.slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: var(--radius-pill);
  background: linear-gradient(to right, var(--navy) var(--fill), var(--navy-100) var(--fill));
}

.slider::-moz-range-track {
  height: 6px;
  border-radius: var(--radius-pill);
  background: linear-gradient(to right, var(--navy) var(--fill), var(--navy-100) var(--fill));
}

.slider::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border: 3px solid var(--navy);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-raised);
  transition: transform 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 3px solid var(--navy);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-raised);
}

.slider:hover::-webkit-slider-thumb {
  transform: scale(1.12);
}

.slider:focus-visible {
  outline: none;
}

.slider:focus-visible::-webkit-slider-thumb {
  box-shadow: var(--ring);
}

.slider:focus-visible::-moz-range-thumb {
  box-shadow: var(--ring);
}

.number {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 118px;
  flex-shrink: 0;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--soft-grey);
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.number:focus-within {
  border-color: var(--navy);
  background: var(--surface);
  box-shadow: var(--ring);
}

.number.is-invalid {
  border-color: var(--negative);
  background: var(--negative-50);
}

.number.is-invalid:focus-within {
  box-shadow: 0 0 0 3px rgb(200 50 60 / 20%);
}

.number__affix {
  font-size: 13px;
  color: var(--ink-3);
}

.number__input {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  text-align: right;
  -moz-appearance: textfield;
}

.number__input:focus {
  outline: none;
}

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

.tip {
  position: relative;
  display: inline-flex;
}

.tip__trigger {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: -4px -6px -4px 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-icon);
  transition: color 0.2s, background-color 0.2s;
}

.tip__trigger:hover,
.tip.is-open .tip__trigger {
  color: var(--navy);
  background: var(--lavender);
}

.tip__body {
  position: absolute;
  top: calc(100% + 6px);
  right: -6px;
  z-index: 30;
  width: min(280px, 75vw);
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--surface);
  font-size: 13px;
  line-height: 1.5;
  box-shadow: var(--shadow-raised);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}

.tip:hover .tip__body,
.tip:focus-within .tip__body,
.tip.is-open .tip__body {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.results {
  display: grid;
  gap: 40px;
  min-width: 0;
}

.block {
  display: grid;
  gap: 16px;
}

.block__head {
  display: grid;
  gap: 2px;
}

.block__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.block__subtitle {
  font-size: 14px;
  color: var(--ink-3);
}

.block__note {
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--soft-grey);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
}

.swipe-hint {
  display: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
}

.compare {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.pkg-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pkg-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-raised);
}

.pkg-card.is-selected {
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--brand-gradient) border-box;
  box-shadow: var(--shadow-raised);
}

.pkg-card__head {
  display: grid;
  gap: 2px;
  padding: 16px;
  background: var(--lavender);
  color: var(--navy);
  transition: background-color 0.2s, color 0.2s;
}

.pkg-card.is-selected .pkg-card__head {
  background: var(--navy);
  color: var(--surface);
}

.pkg-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.pkg-card__name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pkg-card__badge {
  display: none;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--brand-gradient);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.pkg-card.is-selected .pkg-card__badge {
  display: inline-block;
}

.pkg-card__price {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.pkg-card__price small {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.7;
}

.price__from {
  margin-right: 4px;
}

.pkg-card__tag {
  display: -webkit-box;
  min-height: calc(3 * 1.45em);
  overflow: hidden;
  font-size: 12px;
  line-height: 1.45;
  opacity: 0.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.recommended-badge {
  display: inline-flex;
  visibility: hidden;
  align-items: center;
  gap: 6px;
  justify-self: start;
  margin-bottom: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px var(--accent-pink);
  font-size: 11px;
  font-weight: 700;
}

.recommended-badge::before {
  content: "★";
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pkg-card.is-recommended .recommended-badge {
  visibility: visible;
}

.pkg-card__reason {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--navy);
}

.pkg-option__star {
  position: absolute;
  top: -7px;
  right: -5px;
  display: none;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--accent-pink);
  font-size: 10px;
  line-height: 1;
  color: var(--accent-pink);
}

.pkg-option__sr {
  display: none;
}

.pkg-option.is-recommended .pkg-option__star {
  display: grid;
}

.pkg-option.is-recommended .pkg-option__sr {
  display: inline;
}

.pkg-option.is-unavailable {
  opacity: 0.65;
  cursor: not-allowed;
}

.pkg-option.is-unavailable:hover {
  border-color: var(--line);
  background: var(--soft-grey);
}

.pkg-card.is-unavailable {
  cursor: not-allowed;
}

.pkg-card.is-unavailable:hover {
  transform: none;
  box-shadow: var(--shadow-card);
}

.pkg-card.is-unavailable .pkg-card__head {
  filter: grayscale(1);
  opacity: 0.7;
}

.pkg-card__unavailable {
  margin: 6px 0 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--soft-grey);
  font-size: 13px;
  color: var(--ink-2);
}

.pkg-card__action:disabled {
  border-color: transparent;
  background: var(--soft-grey);
  color: var(--ink-3);
  cursor: not-allowed;
}

.value-row.is-unavailable {
  opacity: 0.65;
  cursor: not-allowed;
}

.value-row.is-unavailable:hover {
  background: transparent;
}

.value-row.is-unavailable .value-row__tracks,
.pkg-card.is-unavailable .pkg-card__label {
  visibility: hidden;
}

.eligibility-notice {
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--amber-50);
  font-size: 13px;
  font-weight: 500;
  color: var(--amber);
}

.matrix__band {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-3);
}

.recommendation-note {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
}

.headline__nudge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--lavender);
  font-size: 14px;
  color: var(--navy);
}

.headline__nudge .link-button {
  padding: 2px 0;
  font-weight: 700;
}

.pkg-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 16px;
}

.pkg-card__label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
}

.pkg-card__value {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.pkg-card__return {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}

.pkg-card__body .chip {
  margin-top: 6px;
}

.chip--wrap {
  border-radius: var(--radius-sm);
  white-space: normal;
}

.drivers {
  display: grid;
  gap: 4px;
  width: 100%;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--lavender);
}

.driver {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.driver dt {
  color: var(--ink-2);
}

.driver dd {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.pkg-card__action {
  width: 100%;
  margin-top: auto;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  transition: background-color 0.2s, border-color 0.2s;
}

.pkg-card__action:hover {
  background: var(--lavender);
  border-color: var(--navy-100);
}

.pkg-card__action[aria-pressed="true"] {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--surface);
  cursor: default;
}

.table-scroll {
  overflow-x: auto;
}

.projection {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
}

.projection th,
.projection td {
  padding: 11px 20px;
  text-align: right;
  white-space: nowrap;
}

.projection th[scope="row"],
.projection th[scope="colgroup"],
.projection .projection__caption {
  text-align: left;
  white-space: normal;
}

.projection thead th {
  padding-top: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.projection__caption {
  font-weight: 700;
  color: var(--navy);
}

.year-chip {
  display: inline-block;
  min-width: 76px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--soft-grey);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.year-chip.is-total {
  background: var(--lavender);
  color: var(--navy);
}

.projection .projection__span {
  text-align: center;
}

.projection .projection__sum {
  border-left: 1px solid var(--line);
}

.year-chip.is-active {
  background: var(--navy);
  color: var(--surface);
}

.projection tbody th[scope="row"] {
  min-width: 220px;
  font-weight: 400;
  color: var(--ink-2);
}

.projection tbody td {
  font-weight: 500;
}

.projection tbody tr:not(.projection__section):not(.projection__total):hover {
  background: var(--page);
}

.projection tbody tr + tr:not(.projection__section) {
  border-top: 1px solid var(--soft-grey);
}

.projection__section th {
  padding-top: 18px;
  padding-bottom: 8px;
  background: var(--surface);
}

.projection__section span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

.projection__total {
  background: linear-gradient(90deg, var(--blush), var(--lavender));
}

.projection__total th,
.projection__total td {
  padding-top: 16px;
  padding-bottom: 16px;
}

.projection__total th[scope="row"] {
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.projection [data-tone="total"] {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

.value-chart {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 20px 24px 24px;
}

.value-legend {
  display: grid;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.value-legend__title {
  font-weight: 700;
}

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

.value-legend__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.value-legend__total {
  font-size: 13px;
  font-weight: 700;
}

.value-legend__list {
  display: grid;
  gap: 4px;
}

.value-legend__item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto 3em;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
}

.value-legend__value {
  font-weight: 700;
  color: var(--ink);
  text-align: right;
}

.value-legend__share {
  color: var(--ink-3);
  text-align: right;
}

.swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.value-rows {
  display: grid;
  gap: 4px;
}

.value-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 150px;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  text-align: left;
  transition: background-color 0.2s;
}

.value-row:hover {
  background: var(--page);
}

.value-row.is-selected {
  background: var(--lavender);
}

.value-row__label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}

.recommended-chip {
  display: none;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--accent-pink);
  font-size: 10px;
  font-weight: 700;
  color: var(--navy);
}

.value-row.is-recommended .recommended-chip {
  display: inline-block;
}

.value-row.is-selected .value-row__label {
  font-weight: 700;
  color: var(--navy);
}

.value-row__tracks {
  display: grid;
  gap: 4px;
}

.value-row__bar {
  display: flex;
  gap: 2px;
  width: var(--w, 0%);
  height: 20px;
}

.value-seg {
  flex: var(--grow, 0) 1 0;
  min-width: 2px;
}

.value-row__bar > :last-child {
  border-radius: 0 4px 4px 0;
}

.value-seg--agency,
.swatch--agency {
  background: var(--chart-agency);
}

.value-seg--disengagement,
.swatch--disengagement {
  background: var(--chart-disengagement);
}

.value-seg--admin,
.swatch--admin {
  background: var(--chart-admin);
}

.value-seg--vacancy,
.swatch--vacancy {
  background: var(--chart-vacancy);
}

.value-row__cost {
  display: block;
  width: var(--w, 0%);
  height: 6px;
  border-radius: 0 3px 3px 0;
  background: var(--chart-cost);
}

.value-row__figures {
  display: grid;
  justify-items: end;
  text-align: right;
}

.value-row__total {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.value-row__cost-label {
  font-size: 12px;
  color: var(--ink-3);
}

.value-tip {
  position: absolute;
  top: var(--y, 0);
  left: var(--x, 0);
  z-index: 5;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--surface);
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 12px));
}

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

.impact {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.impact__label,
.impact__unit {
  font-size: 13px;
  color: var(--ink-3);
}

.impact__value {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--positive);
}

.disclosure {
  overflow: hidden;
}

.disclosure__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  cursor: pointer;
  list-style: none;
}

.disclosure__summary::-webkit-details-marker {
  display: none;
}

.disclosure__heading {
  display: grid;
  gap: 10px;
}

.disclosure__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.disclosure__chevron {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 50%;
  background: var(--lavender);
  color: var(--navy);
  transition: transform 0.2s;
}

.disclosure[open] > .disclosure__summary .disclosure__chevron {
  transform: rotate(180deg);
}

.matrix {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.matrix th,
.matrix td {
  padding: 10px 16px;
  text-align: center;
}

.matrix thead th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

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

.matrix tbody th {
  font-weight: 400;
  color: var(--ink-2);
}

.matrix tbody tr {
  border-top: 1px solid var(--soft-grey);
}

.matrix .matrix__group th {
  padding-top: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  text-align: left;
}

.matrix__dash {
  color: var(--ink-icon);
}

.matrix td .icon {
  width: 20px;
  height: 20px;
  margin-inline: auto;
  padding: 4px;
  border-radius: 50%;
  stroke-width: 3;
}

.matrix__on .icon {
  background: var(--positive-50);
  color: var(--positive);
}

.matrix .is-selected {
  background: var(--lavender);
}

.footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--ink-2);
}

.footer__inner {
  display: grid;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 48px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 14px;
  font-weight: 500;
}

.footer__links a {
  color: var(--ink-2);
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__legal {
  display: grid;
  gap: 6px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
}

.footer__legal strong {
  color: var(--ink-2);
  font-weight: 700;
}

.cta {
  padding-bottom: 72px;
}

.cta__panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(60% 120% at 100% 0%, rgb(255 8 245 / 28%) 0%, rgb(255 8 245 / 0%) 70%),
    radial-gradient(50% 100% at 80% 100%, rgb(255 180 30 / 22%) 0%, rgb(255 180 30 / 0%) 70%),
    var(--navy);
  color: var(--surface);
}

.cta__copy {
  display: grid;
  gap: 8px;
  max-width: 560px;
}

.cta__title {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.cta__lead {
  color: rgb(253 254 255 / 78%);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.is-updated {
  animation: value-updated 0.6s ease-out;
}

@keyframes value-updated {
  from {
    background-color: var(--lavender);
  }

  to {
    background-color: transparent;
  }
}

.headline__value,
.pkg-card__value,
.value-row__total,
.mobile-bar__value,
.projection__total td {
  font-variant-numeric: tabular-nums;
}

.headline__value,
.pkg-card__value,
.mobile-bar__value {
  border-radius: 8px;
}

.mobile-bar {
  display: none;
}

@media (max-width: 1280px) {
  .compare {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .nav__title,
  .nav__link {
    display: none;
  }

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

  .panel {
    position: static;
    max-height: none;
  }

  .panel__body {
    overflow: visible;
  }

  .form {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    column-gap: 32px;
  }

  .form-section + .form-section {
    padding-top: 0;
    border-top: 0;
  }

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

  .hero__title {
    max-width: 18ch;
  }
}

@media screen and (max-width: 760px) {
  body {
    padding-bottom: 76px;
  }

  .nav__print {
    width: 44px;
    padding: 0;
  }

  .nav__print span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .nav__print .icon {
    width: 18px;
    height: 18px;
  }

  .nav__demo {
    padding-inline: 16px;
    font-size: 14px;
  }

  .swipe-hint {
    display: block;
  }

  .compare {
    grid-template-columns: none;
    grid-auto-columns: min(85%, 320px);
    grid-auto-flow: column;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: var(--gutter);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .compare::-webkit-scrollbar {
    display: none;
  }

  .pkg-card {
    scroll-snap-align: start;
  }

  .pkg-card:hover {
    transform: none;
  }

  .projection,
  .projection tbody,
  .projection tr,
  .projection th,
  .projection td {
    display: block;
  }

  .projection {
    min-width: 0;
  }

  .projection thead {
    display: none;
  }

  .projection tbody tr:not(.projection__section) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 16px;
    padding: 12px 16px;
  }

  .projection tbody th[scope="row"] {
    grid-column: 1 / -1;
    min-width: 0;
    padding: 0;
  }

  .projection tbody td {
    display: grid;
    gap: 1px;
    padding: 0;
    text-align: left;
    white-space: normal;
  }

  .projection tbody td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 500;
    color: var(--ink-3);
  }

  .projection tbody .projection__span {
    text-align: left;
  }

  .projection .projection__later {
    display: none;
  }

  .projection .projection__sum {
    border-left: 0;
  }

  .projection__section th {
    padding: 16px 16px 4px;
  }

  .value-chart {
    padding: 16px;
  }

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

  .value-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    padding: 10px;
  }

  .value-row__label {
    grid-row: 1;
  }

  .value-row__figures {
    grid-row: 1;
    grid-column: 2;
  }

  .value-row__tracks {
    grid-row: 2;
    grid-column: 1 / -1;
  }

  .cta__actions,
  .cta__actions .button {
    width: 100%;
  }

  .hero__panel {
    border-radius: 28px;
  }

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

  .headline__cta {
    display: none;
  }

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

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

  .form-section + .form-section {
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }

  .footer__links {
    gap: 8px 18px;
  }

  .mobile-bar {
    position: fixed;
    inset: auto 12px 12px;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 10px 10px 18px;
    border-radius: 20px;
    background: rgb(253 254 255 / 94%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-raised), 0 0 0 1px var(--line);
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
  }

  .mobile-bar.is-hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(120%);
  }

  .mobile-bar__label {
    font-size: 12px;
    color: var(--ink-3);
  }

  .mobile-bar__value {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
  }
}

@media screen and (max-width: 520px) {
  .pkg-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel__head,
  .panel__body {
    padding-inline: 18px;
  }
}

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

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

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body {
    padding: 0;
    font-size: 12px;
    background: #fff;
  }

  .nav {
    position: static;
    backdrop-filter: none;
  }

  .nav__actions,
  .headline__actions,
  .link-button,
  .cta,
  .swipe-hint,
  .value-tip,
  .disclosure__chevron,
  .mobile-bar,
  .skip-link,
  .pkg-card__action,
  .tip {
    display: none !important;
  }

  .hero__panel {
    grid-template-columns: 1.4fr 1fr;
    padding: 24px;
  }

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

  .panel {
    position: static;
    max-height: none;
  }

  .panel__body {
    overflow: visible;
  }

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

  .table-scroll {
    overflow: visible;
  }

  .projection th,
  .projection td {
    padding: 8px 10px;
  }

  .projection tbody th[scope="row"] {
    min-width: 0;
  }

  .year-chip {
    min-width: 0;
  }

  .card,
  .pkg-card,
  .impact,
  .headline,
  .panel {
    box-shadow: none;
    border: 1px solid var(--line);
  }

  .pkg-card,
  .value-row,
  .matrix tr,
  .impact,
  .block__head,
  .block__note,
  .tailored,
  .projection tr {
    break-inside: avoid;
  }

  .block__head {
    break-after: avoid;
  }

  .projection {
    min-width: 0;
  }
}
