/* Accademica pricing page: conversion-oriented hierarchy, shared with the production design system. */
.pricing-page {
  --price-shadow: 0 24px 70px rgba(31, 24, 18, 0.07);
  --price-shadow-dark: 0 28px 90px rgba(0, 0, 0, 0.22);
  --base-card-accent: #dce8f8;
}
html[data-theme="dark"] .pricing-page {
  --base-card-accent: #202a3b;
}
.pricing-page .material-symbols-rounded {
  font-variation-settings:
    "FILL" 1,
    "wght" 600,
    "GRAD" 200,
    "opsz" 20;
}

/* ---------- Hero ---------- */
.price-hero {
  position: relative;
  padding-top: 176px;
  padding-bottom: 112px;
  text-align: center;
  isolation: isolate;
}
.price-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(760px, 78vw);
  height: 360px;
  left: 50%;
  top: 88px;
  transform: translateX(-50%);
  /* background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 68%); */
  filter: blur(8px);
  pointer-events: none;
}
.price-hero .eyebrow {
  margin-bottom: 17px;
  letter-spacing: 0em;
}
.production-page .price-hero h1 {
  margin: 0 auto;
  max-width: 980px;
  font-size: clamp(44px, 4.4vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}
.price-hero h1 > span {
  color: var(--accent);
}
.production-page .price-lead {
  max-width: 720px;
  margin: 23px auto 0 !important;
  font-size: 16px;
  line-height: 1.65;
}
.price-proof {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 24px;
  color: var(--copy);
}
.price-proof > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  white-space: nowrap;
}
.price-proof .material-symbols-rounded {
  color: var(--accent);
  font-size: 17px;
}

/* ---------- Shared controls ---------- */
.segmented {
  display: inline-flex;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 15px;
  gap: 4px;
  background: var(--soft);
}
.production-page .segmented button {
  min-height: 44px;
  padding: 10px 21px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--copy);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  box-shadow: none;
  transform: none;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    box-shadow 0.16s ease;
}
.production-page .segmented button:hover {
  color: var(--ink);
  filter: none;
}
.production-page .segmented button[aria-selected="true"],
.production-page .pricing-billing-switch button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 3px 12px rgba(28, 24, 18, 0.08);
}
.tab-hint {
  margin-left: 7px;
  font-size: 9px;
  color: var(--copy);
  opacity: 0.86;
}

/* ---------- Main content band ---------- */
.price-selection {
  position: relative;
  z-index: 0;
  padding-bottom: 82px;
  scroll-margin-top: 105px;
}
.price-selection::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  border-top: 1px solid var(--soft-line);
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--soft) 72%, var(--canvas)) 0,
      var(--canvas) 260px
    ),
    var(--canvas);
}
.price-main-tabs {
  display: flex;
  width: fit-content;
  margin: 0 auto 50px;
  transform: translateY(-27px);
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(30, 24, 18, 0.07);
}
html[data-theme="dark"] .price-main-tabs {
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.2);
}

.pricing-mode-head {
  max-width: 720px;
  margin: 0 auto 31px;
  text-align: center;
}
.pricing-mode-head .eyebrow {
  margin-bottom: 13px;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.production-page .pricing-mode-head h2 {
  margin: 0;
  font-size: clamp(34px, 3.6vw, 47px);
  line-height: 1.06;
}
.production-page .pricing-mode-head > p {
  max-width: 650px;
  margin: 16px auto 0;
  font-size: 14px;
  line-height: 1.65;
}

/* ---------- Subscription billing ---------- */
.billing-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.pricing-page .pricing-billing-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 310px);
}
.production-page .pricing-billing-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-inline: 15px;
}
.billing-save {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  color: var(--accent);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.production-page .billing-explainer {
  min-height: 18px;
  margin: 0;
  font-size: 11px;
  color: var(--copy);
}

/* ---------- Subscription plans: one unified matrix ---------- */
.subscription-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--price-shadow);
}
html[data-theme="dark"] .subscription-grid {
  box-shadow: var(--price-shadow-dark);
}
.subscription-card {
  position: relative;
  min-width: 0;
  padding: 40px 42px 38px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.subscription-card:first-child {
  border-right: 1px solid var(--line);
}
.subscription-pro {
  background:
    radial-gradient(
      circle at 80% 0%,
      color-mix(in srgb, var(--accent) 16%, transparent),
      transparent 38%
    ),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--peach) 62%, var(--surface)) 0%,
      var(--surface) 54%
    );
}
.subscription-pro::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent);
}
.plan-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 31px;
  margin-bottom: 20px;
}
.plan-name {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.plan-heading > .material-symbols-rounded {
  color: var(--copy);
  font-size: 24px;
}
.plan-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 36%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
  color: var(--accent);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.production-page .subscription-card h2 {
  max-width: 410px;
  min-height: 66px;
  margin: 0;
  font-size: clamp(26px, 2.35vw, 33px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 25px;
}
.plan-price strong {
  font-size: clamp(48px, 4.2vw, 59px);
  font-weight: 520;
  letter-spacing: -0.055em;
  line-height: 0.95;
}
.plan-price > span {
  color: var(--copy);
  font-size: 13px;
}
.production-page .plan-billing {
  min-height: 18px;
  margin-top: 10px;
  font-size: 11px;
}
.production-page .plan-description {
  min-height: 49px;
  max-width: 430px;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.65;
}
.plan-cta {
  width: 100%;
  min-height: 52px !important;
  margin: 24px 0 30px;
}
.plan-includes {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.plan-includes > span {
  display: block;
  color: var(--copy);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.12em;
}
.plan-includes ul,
.pass-benefits {
  display: grid;
  gap: 13px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}
.plan-includes li,
.pass-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
}
.plan-includes li > .material-symbols-rounded,
.pass-benefits li > .material-symbols-rounded {
  flex: 0 0 18px;
  color: var(--accent);
  font-size: 18px;
  line-height: 1.25;
}
.plan-includes b {
  font-weight: 600;
}
.production-page .price-text-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  margin-top: 17px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  box-shadow: none;
  font-size: 13px;
  font-weight: 550;
  text-align: left;
  cursor: pointer;
}
.production-page .price-text-button:hover {
  transform: none;
  box-shadow: none;
  filter: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Risk reversal / compare ---------- */
.free-start {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
  margin-top: 18px;
  padding: 19px 21px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--soft) 75%, var(--surface));
}
.free-start-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.free-start-icon .material-symbols-rounded {
  color: var(--accent);
  font-size: 21px;
}
.free-start strong {
  font-size: 15px;
  font-weight: 600;
}
.production-page .free-start p {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.5;
}
.free-start .text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
}
.free-start .text-link .material-symbols-rounded {
  font-size: 16px;
}
.plan-comparison {
  margin-top: 38px;
}
.production-page .plan-comparison-title {
  margin: 0;
  padding: 0 8px 21px;
  font-size: clamp(22px, 2.2vw, 29px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.025em;
}
.comparison-rows {
  border-top: 1px solid var(--line);
}
.comparison-row {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  gap: 20px;
  padding: 18px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.45;
}
.comparison-row:last-child {
  border-bottom: 0;
}
.comparison-row strong {
  font-weight: 550;
}
.comparison-row > span {
  color: var(--copy);
}
.comparison-head {
  color: var(--copy);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.comparison-row small {
  display: none;
}

/* ---------- Pass ---------- */
.pass-heading {
  display: block;
  margin-bottom: 25px;
}
.pass-oneoff {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 17px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--copy);
  font-size: 10px;
  line-height: 1.2;
}
.pass-oneoff .material-symbols-rounded {
  color: var(--accent);
  font-size: 16px;
}
.pass-type-tabs {
  display: flex;
  width: fit-content;
  margin: 0 auto 26px;
}
.pass-configurator {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--price-shadow);
}
html[data-theme="dark"] .pass-configurator {
  box-shadow: var(--price-shadow-dark);
}
.pass-input-side {
  padding: 39px 41px;
}
.pass-input-side .eyebrow {
  margin-bottom: 13px;
  color: var(--accent);
}
.production-page .pass-input-side h3 {
  max-width: 500px;
  margin: 0;
  font-size: clamp(29px, 3vw, 38px);
  line-height: 1.08;
}
.production-page .pass-input-side [role="tabpanel"] > p {
  max-width: 550px;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.65;
}
.date-label {
  display: block;
  margin-top: 28px;
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 600;
}
#pass-date {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 11px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  color-scheme: light;
  font: inherit;
  font-size: 15px;
}
.date-input-wrap {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: min(100%, 370px);
  min-height: 54px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--canvas);
}
.date-input-wrap > .material-symbols-rounded {
  color: var(--accent);
  font-size: 20px;
}
.date-input-wrap:focus-within {
  border-color: color-mix(in srgb, var(--accent) 65%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}
html[data-theme="dark"] #pass-date {
  color-scheme: dark;
}
#pass-date[aria-invalid="true"] {
  color: var(--accent);
}
.date-input-wrap.is-invalid {
  border-color: var(--accent);
}
}
.production-page .pass-input-side .field-help {
  margin-top: 8px;
  font-size: 10px;
}
.production-page .inline-error {
  margin-top: 9px;
  color: var(--accent);
  font-size: 11px;
  line-height: 1.5;
}
.inline-error:empty {
  display: none;
}
.early-start {
  display: block;
  margin-top: 29px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: color-mix(in srgb, var(--soft) 76%, var(--surface));
}
.early-start-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--line);
  font-size: 20px;
}
.production-page .early-start h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.production-page .early-start h4 .material-symbols-rounded {
  flex: 0 0 auto;
  font-size: 24px;
}
.production-page .early-start p {
  max-width: 475px;
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.55;
}
.pass-summary {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 36px;
  border-left: 1px solid var(--line);
  background:
    radial-gradient(
      circle at 80% 0%,
      color-mix(in srgb, var(--accent) 15%, transparent),
      transparent 42%
    ),
    color-mix(in srgb, var(--soft) 70%, var(--surface));
}
.pass-summary::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent);
}
.pass-summary .eyebrow {
  margin-bottom: 22px;
  color: var(--accent);
}
.production-page .pass-empty {
  margin: 0;
  color: var(--ink);
  font-size: clamp(25px, 2.4vw, 32px);
  line-height: 1.14;
  letter-spacing: -0.035em;
}
.production-page .summary-helper {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.6;
}
.pass-summary .pill {
  width: 100%;
  min-height: 52px;
  margin-top: 27px;
}
.production-page .payment-note {
  margin-top: 11px;
  text-align: center;
  font-size: 9px;
}
.pass-benefits {
  margin-top: auto;
  padding-top: 35px;
}
.pass-benefits li {
  font-size: 11px;
}
.pass-range {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.42;
}
.production-page .pass-duration {
  margin-top: 7px;
  font-size: 12px;
}
.production-page .pass-microcopy {
  margin-top: 16px;
  color: var(--ink);
  font-size: 11px;
}
.quote-price {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.quote-price > span {
  display: block;
  color: var(--copy);
  font-size: 10px;
}
.quote-price > strong {
  display: block;
  margin-top: 7px;
  font-size: clamp(42px, 4.3vw, 59px);
  font-weight: 530;
  letter-spacing: -0.055em;
  line-height: 1;
}
.production-page .quote-price > p,
.production-page .quote-saving,
.production-page .quote-bonus {
  margin-top: 8px;
  font-size: 11px;
}
.production-page .quote-saving {
  margin-top: 12px;
  color: var(--ink);
}
.production-page .quote-bonus {
  margin-top: 16px;
}
.production-page .pass-availability {
  margin-top: 13px;
  text-align: center;
  font-size: 9px;
}
.school-end {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 25px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--soft);
}
.school-end > span {
  color: var(--accent);
}
.school-end strong {
  font-size: 13px;
  font-weight: 600;
}
.production-page .school-end p {
  margin-top: 5px;
  font-size: 11px;
}

/* ---------- Decision helper ---------- */
.pricing-decision {
  padding-block: 92px;
}
.pricing-section-head {
  margin-bottom: 34px;
}
.pricing-section-head .eyebrow {
  margin-bottom: 13px;
  color: var(--accent);
}
.production-page .pricing-section-head h2 {
  margin: 0;
  font-size: clamp(34px, 3.8vw, 46px);
}
.production-page .pricing-section-head > p {
  max-width: 600px;
  margin: 15px auto 0;
  font-size: 13px;
}
.decision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.decision-grid article {
  min-height: 235px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.decision-grid article:last-child {
  background: color-mix(in srgb, var(--peach) 55%, var(--surface));
}
.decision-label {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.11em;
}
.production-page .decision-grid h3 {
  max-width: 420px;
  font-size: 26px;
}
.production-page .decision-grid p {
  max-width: 430px;
  margin-top: 11px;
  font-size: 13px;
}

/* ---------- Pass explainer ---------- */
.pass-how {
  position: relative;
  overflow: hidden;
  padding: 78px 0;
  border-block: 1px solid var(--line);
  background: var(--soft);
}
.pass-how::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  pointer-events: none;
}
.pass-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.pass-steps article {
  min-height: 255px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
}
.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 31px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.step-top > span:first-child {
  color: var(--copy);
  font-size: 10px;
}
.step-top .material-symbols-rounded {
  color: var(--accent);
  font-size: 21px;
}
.production-page .pass-steps h3 {
  font-size: 22px;
  line-height: 1.14;
}
.production-page .pass-steps p {
  margin-top: 12px;
  font-size: 12px;
}

/* ---------- FAQ refinements ---------- */
.pricing-page .faq-layout {
  padding-top: 88px;
  padding-bottom: 100px;
}
.pricing-page .faq-layout > div:first-child .eyebrow {
  color: var(--accent);
}
.pricing-page .mk-faq details {
  transition: background 0.16s ease;
}
.pricing-page .mk-faq details:hover {
  background: color-mix(in srgb, var(--soft) 40%, transparent) !important;
}

/* ---------- Accessibility / state ---------- */
.pricing-page [role="tabpanel"]:focus-visible {
  outline-offset: 6px;
}
.pricing-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.pricing-page button:disabled {
  cursor: not-allowed;
  opacity: 0.64;
  transform: none;
}

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .price-hero {
    padding-top: 116px;
    padding-bottom: 67px;
  }
  .subscription-card {
    padding: 32px 28px;
  }
  .production-page .subscription-card h2 {
    min-height: 60px;
  }
  .production-page .plan-description {
    min-height: 64px;
  }
  .pass-configurator {
    grid-template-columns: 1fr;
  }
  .pass-input-side,
  .pass-summary {
    padding: 31px;
  }
  .pass-summary {
    min-height: 420px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .pass-summary::before {
    display: none;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 650px) {
  .price-hero {
    padding-top: 105px;
    padding-bottom: 61px;
  }
  .price-hero::before {
    width: 100vw;
    height: 300px;
    top: 76px;
  }
  .production-page .price-hero h1 {
    font-size: clamp(38px, 10.8vw, 50px);
    line-height: 1.03;
  }
  .production-page .price-lead {
    margin-top: 19px !important;
    font-size: 14px;
  }
  .price-proof {
    gap: 9px 14px;
    margin-top: 21px;
  }
  .price-proof > span {
    font-size: 10px;
  }
  .price-proof > span:nth-child(3) {
    display: none;
  }
  .price-selection {
    padding-bottom: 68px;
  }
  .price-main-tabs {
    width: 100%;
    margin-bottom: 39px;
    transform: translateY(-24px);
  }
  .segmented {
    width: 100%;
  }
  .production-page .segmented button {
    flex: 1;
    min-width: 0;
    padding-inline: 10px;
    font-size: 13px;
  }
  .tab-hint {
    display: none;
  }
  .pricing-mode-head {
    margin-bottom: 26px;
  }
  .production-page .pricing-mode-head h2 {
    font-size: 33px;
  }
  .production-page .pricing-mode-head > p {
    font-size: 13px;
  }
  .billing-row {
    margin-bottom: 22px;
  }
  .pricing-page .pricing-billing-switch {
    width: 100%;
  }
  .billing-save {
    font-size: 8px;
    padding-inline: 5px;
  }
  .subscription-grid {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }
  .subscription-card {
    padding: 28px 23px 30px;
  }
  .subscription-card:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .production-page .subscription-card h2,
  .production-page .plan-description {
    min-height: 0;
  }
  .production-page .subscription-card h2 {
    font-size: 29px;
  }
  .plan-price {
    margin-top: 22px;
  }
  .plan-price strong {
    font-size: 49px;
  }
  .plan-cta {
    margin-top: 21px;
    margin-bottom: 27px;
  }
  .plan-includes li {
    font-size: 12px;
  }
  .free-start {
    grid-template-columns: auto 1fr;
    padding: 17px;
  }
  .free-start .text-link {
    grid-column: 2;
    margin-top: 1px;
  }
  .production-page .plan-comparison-title {
    padding-inline: 0;
    font-size: 21px;
  }
  .comparison-rows {
    padding-inline: 0;
  }
  .comparison-row {
    grid-template-columns: 1fr 1fr;
    gap: 11px;
    padding: 16px 0;
  }
  .comparison-row > strong {
    grid-column: 1 / -1;
  }
  .comparison-head {
    display: none;
  }
  .comparison-row small {
    display: block;
    margin-bottom: 3px;
    color: var(--ink);
    font-size: 11px;
  }
  .pass-oneoff {
    font-size: 9px;
  }
  .pass-type-tabs {
    width: 100%;
  }
  .pass-configurator {
    border-radius: 20px;
  }
  .pass-input-side,
  .pass-summary {
    padding: 25px 22px;
  }
  .production-page .pass-input-side h3 {
    font-size: 29px;
  }
  #pass-date {
    max-width: none;
  }
  .date-input-wrap {
    width: 100%;
  }
  .early-start {
    padding: 17px;
  }
  .early-start-icon {
    width: 34px;
    height: 34px;
  }
  .pass-summary {
    min-height: 390px;
  }
  .pricing-decision {
    padding-block: 68px;
  }
  .decision-grid {
    grid-template-columns: 1fr;
  }
  .decision-grid article {
    min-height: 0;
    padding: 23px;
  }
  .pass-how {
    padding-block: 62px;
  }
  .pass-steps {
    grid-template-columns: 1fr;
  }
  .pass-steps article {
    min-height: 0;
  }
  .pricing-page .faq-layout {
    padding-top: 66px;
    padding-bottom: 75px;
  }
}

@media (max-width: 380px) {
  .production-page .pricing-billing-switch button {
    gap: 5px;
  }
  .billing-save {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pricing-page *,
  .pricing-page *::before,
  .pricing-page *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* ---------- Pricing refinements v3: lighter hierarchy, standalone cards ---------- */
.pricing-page.production-page .mk-nav {
  min-height: 88px;
  padding-block: 14px;
}

.price-hero {
  padding-top: 176px;
  padding-bottom: 112px;
}

.pricing-mode-head {
  scroll-margin-top: 118px;
}

.billing-row {
  gap: 0;
  margin-bottom: 31px;
}

/* Standalone plan cards inspired by editorial pricing cards: no outer borders,
   separation comes from surface colour, depth and whitespace. */
.subscription-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html[data-theme="dark"] .subscription-grid {
  box-shadow: none;
}
.subscription-card,
.subscription-card:first-child {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1.5px solid color-mix(in srgb, var(--ink) 10%, transparent);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 18px 46px rgba(31, 24, 18, 0.07);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
html[data-theme="dark"] .subscription-card {
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.18);
}
html[data-theme="light"] .subscription-card,
html[data-theme="light"] .subscription-card:first-child {
  border-color: color-mix(in srgb, var(--ink) 5%, transparent);
}
.subscription-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 58px rgba(31, 24, 18, 0.1);
}
html[data-theme="dark"] .subscription-card:hover {
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.24);
}
.plan-card-top {
  padding: 39px 40px 29px;
}
.subscription-base .plan-card-top {
  background:
    radial-gradient(
      circle at 52% -12%,
      color-mix(in srgb, var(--base-card-accent) 88%, transparent),
      transparent 42%
    ),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--soft) 70%, var(--surface)) 0%,
      var(--surface) 78%
    );
}
.subscription-pro {
  background: var(--surface);
}
.subscription-pro::before {
  display: none;
}
.subscription-pro .plan-card-top {
  background:
    radial-gradient(
      circle at 52% -12%,
      color-mix(in srgb, var(--accent) 26%, transparent),
      transparent 43%
    ),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--peach) 78%, var(--surface)) 0%,
      var(--surface) 79%
    );
}
.plan-name-pro {
  color: var(--accent);
}
.plan-badge {
  border: 0;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
}
.plan-includes {
  flex: 1;
  padding: 27px 40px 35px;
  border-top: 0;
  background: color-mix(in srgb, var(--soft) 34%, var(--surface));
}
.subscription-pro .plan-includes {
  background: color-mix(in srgb, var(--peach) 20%, var(--surface));
}
.plan-cta {
  margin-bottom: 0;
}

/* Secondary conversion surfaces follow the same no-border visual language. */
.free-start {
  border: 0;
  background: color-mix(in srgb, var(--soft) 82%, var(--surface));
}
.free-start-icon {
  border: 0;
  background: var(--surface);
}
.pass-configurator {
  border: 0;
  background: var(--surface);
}
.pass-summary {
  border-left: 0;
  background:
    radial-gradient(
      circle at 82% 0%,
      color-mix(in srgb, var(--accent) 13%, transparent),
      transparent 43%
    ),
    color-mix(in srgb, var(--peach) 28%, var(--soft));
}
.early-start,
.school-end {
  border: 0;
}
.early-start-icon {
  border: 0;
}
.decision-grid article {
  border: 0;
  background: var(--soft);
}
.decision-grid article:last-child {
  background: color-mix(in srgb, var(--peach) 72%, var(--surface));
}

/* "Come funziona il Pass" stays part of the page instead of becoming a boxed band. */
.pass-how {
  overflow: visible;
  padding: 82px 0 90px;
  border-block: 0;
  background: transparent;
}
.pass-how::after {
  display: none;
}
.pass-steps {
  gap: 16px;
}
.pass-steps article {
  border: 0;
  border-radius: 20px;
  box-shadow: none;
}
.pass-steps article:nth-child(1) {
  background: var(--mint);
}
.pass-steps article:nth-child(2) {
  background: var(--peach);
}
.pass-steps article:nth-child(3) {
  background: var(--soft);
}

@media (max-width: 650px) {
  .pricing-page.production-page .mk-nav {
    min-height: 82px;
    padding-block: 12px;
  }
  .price-hero {
    padding-top: 138px;
    padding-bottom: 88px;
  }
  .subscription-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .subscription-card:first-child {
    border: 1.5px solid color-mix(in srgb, var(--ink) 10%, transparent);
  }
  .plan-card-top {
    padding: 29px 24px 24px;
  }
  .plan-includes {
    padding: 24px 24px 29px;
  }
  .pass-summary {
    border-top: 0;
  }
}
