/* ScreenCrate pricing page
   Editorial pricing with an explicit distinction between the free beta,
   planned paid plans, and the private Team pilot. */

.page-pricing {
  --pricing-rule: rgba(16, 22, 19, 0.13);
  --pricing-card: rgba(255, 254, 250, 0.78);
  background:
    radial-gradient(circle at 78% 1%, rgba(49, 92, 245, 0.1), transparent 22rem),
    var(--bone);
}

.page-pricing .site-header {
  background: rgba(243, 240, 232, 0.88);
}

.page-pricing .nav-links a {
  position: relative;
}

.page-pricing .nav-links a.is-active,
.page-pricing .nav-links a[aria-current="page"] {
  color: var(--ink);
  font-weight: 650;
}

.page-pricing .nav-links a.is-active::after,
.page-pricing .nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -16px;
  width: 4px;
  height: 4px;
  background: var(--cobalt);
  border-radius: 50%;
  transform: translateX(-50%);
}

.subpage-hero.pricing-hero {
  position: relative;
  padding: 126px 0 86px;
  overflow: hidden;
  border-bottom: 1px solid var(--pricing-rule);
}

.subpage-hero.pricing-hero::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  right: -230px;
  top: -240px;
  border: 1px solid rgba(49, 92, 245, 0.14);
  border-radius: 50%;
  box-shadow:
    0 0 0 80px rgba(49, 92, 245, 0.025),
    0 0 0 160px rgba(49, 92, 245, 0.018);
  pointer-events: none;
}

.pricing-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.55fr);
  align-items: end;
  gap: clamp(70px, 9vw, 148px);
}

.pricing-hero-copy {
  min-width: 0;
}

.pricing-hero-copy h1 {
  max-width: 930px;
  margin-top: 34px;
  font-family: var(--display);
  font-size: clamp(68px, 7.1vw, 106px);
  font-weight: 410;
  line-height: 0.91;
  letter-spacing: -0.059em;
}

.pricing-hero-copy h1 span,
.pricing-hero-copy h1 em {
  display: block;
}

.pricing-hero-copy h1 em {
  color: var(--cobalt);
  font-weight: 330;
}

.pricing-hero-copy .subpage-lede {
  max-width: 690px;
  margin-top: 34px;
  color: #515a54;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -0.024em;
}

.beta-pricing-note {
  position: relative;
  min-height: 238px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: #f1f4f1;
  background:
    linear-gradient(135deg, rgba(49, 92, 245, 0.18), transparent 45%),
    var(--dark);
  border: 1px solid rgba(16, 22, 19, 0.65);
  border-radius: 13px;
  box-shadow:
    0 28px 58px rgba(16, 22, 19, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

.beta-pricing-note::before {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -92px;
  top: -100px;
  border: 1px solid rgba(200, 243, 74, 0.28);
  border-radius: 50%;
  box-shadow: 0 0 0 36px rgba(200, 243, 74, 0.025);
}

.beta-pricing-note::after {
  content: "";
  position: absolute;
  right: 25px;
  top: 25px;
  width: 7px;
  height: 7px;
  background: var(--signal);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(200, 243, 74, 0.09);
}

.beta-pricing-note .note-index {
  position: relative;
  z-index: 1;
  color: #8f9a93;
  font: 500 8px/1 var(--mono);
  letter-spacing: 0.1em;
}

.beta-pricing-note > div {
  position: relative;
  z-index: 1;
}

.beta-pricing-note strong {
  display: block;
  color: #fff;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 430;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.beta-pricing-note p {
  margin-top: 13px;
  color: #9aa59e;
  font-size: 10px;
  line-height: 1.65;
}

.pricing-section {
  padding: 92px 0 168px;
  background:
    radial-gradient(circle at 50% 24%, rgba(49, 92, 245, 0.055), transparent 32rem),
    #f7f4ed;
}

.pricing-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 36px;
}

.section-kicker {
  color: #747c77;
  font: 500 8px/1 var(--mono);
  letter-spacing: 0.12em;
}

.section-kicker.light {
  color: #8f9a93;
}

.pricing-toolbar h2 {
  max-width: 690px;
  margin-top: 14px;
  font-family: var(--display);
  font-size: clamp(42px, 4.5vw, 64px);
  font-weight: 420;
  line-height: 0.98;
  letter-spacing: -0.047em;
}

.billing-toggle {
  padding: 5px;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  background: rgba(232, 227, 217, 0.9);
  border: 1px solid rgba(16, 22, 19, 0.12);
  border-radius: 11px;
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.55) inset;
}

.billing-toggle button {
  min-width: 108px;
  min-height: 42px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #747b77;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 650;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.billing-toggle button small {
  padding: 4px 5px;
  color: #415600;
  background: var(--signal);
  border-radius: 4px;
  font: 600 6px/1 var(--mono);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.billing-toggle button:hover {
  color: var(--ink);
}

.billing-toggle button.is-active,
.billing-toggle button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--paper-white);
  border-color: rgba(16, 22, 19, 0.08);
  box-shadow: 0 5px 14px rgba(16, 22, 19, 0.08);
}

.billing-announcement {
  min-height: 18px;
  margin-top: 18px;
  color: #858d88;
  font: 400 8px/1.5 var(--mono);
  text-align: right;
}

.plan-matrix-meta {
  margin-top: 43px;
  padding: 0 3px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  color: #8a928d;
  border-bottom: 1px solid rgba(16, 22, 19, 0.22);
  font: 500 7px/1.2 var(--mono);
  letter-spacing: 0.1em;
}

.plan-matrix-meta span:last-child {
  color: #6e7671;
  text-align: right;
}

.pricing-cards {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
  background: rgba(255, 254, 250, 0.42);
  border-bottom: 1px solid rgba(16, 22, 19, 0.22);
}

.pricing-card {
  position: relative;
  min-width: 0;
  min-height: 672px;
  padding: 38px 35px 42px;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(16, 22, 19, 0.13);
  border-radius: 0;
  box-shadow: none;
  transition: background 220ms ease;
}

.pricing-card:hover {
  background: rgba(255, 255, 255, 0.36);
}

.pricing-card-featured {
  color: #f1f4f1;
  background:
    radial-gradient(circle at 100% 0, rgba(49, 92, 245, 0.34), transparent 16rem),
    linear-gradient(145deg, #151c19, #0e1311 72%);
  border-right-color: rgba(16, 22, 19, 0.82);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.09) inset;
}

.pricing-card-featured:hover {
  background:
    radial-gradient(circle at 100% 0, rgba(49, 92, 245, 0.4), transparent 16rem),
    linear-gradient(145deg, #151c19, #0e1311 72%);
}

.pricing-card-team {
  background:
    linear-gradient(145deg, rgba(231, 235, 255, 0.42), transparent 42%);
  border-right: 0;
}

.plan-ribbon {
  position: absolute;
  right: 18px;
  top: 18px;
  padding: 6px 8px;
  color: #324100;
  background: var(--signal);
  border-radius: 2px;
  font: 600 6px/1 var(--mono);
  letter-spacing: 0.08em;
}

.plan-head {
  padding-right: 78px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
}

.plan-number {
  width: auto;
  height: auto;
  padding-top: 4px;
  display: block;
  color: var(--cobalt);
  border: 0;
  border-radius: 0;
  font: 500 8px/1 var(--mono);
  letter-spacing: 0.08em;
}

.plan-number::after {
  content: " /";
  color: #a3aaa5;
}

.pricing-card-featured .plan-number {
  color: var(--signal);
}

.plan-name {
  color: var(--ink);
  font-family: var(--display);
  font-size: 31px;
  font-weight: 480;
  line-height: 1;
  letter-spacing: -0.03em;
}

.pricing-card-featured .plan-name {
  color: #fff;
}

.plan-for {
  max-width: 235px;
  margin-top: 9px;
  color: #757d78;
  font-size: 9px;
  line-height: 1.5;
}

.pricing-card-featured .plan-for {
  color: #89948d;
}

.plan-price {
  min-height: 122px;
  margin-top: 49px;
  display: flex;
  align-items: flex-end;
  color: var(--ink);
}

.pricing-card-featured .plan-price {
  color: #fff;
}

.plan-price .currency {
  align-self: center;
  margin: 2px 4px 0 0;
  color: #6e7771;
  font-family: var(--display);
  font-size: 25px;
}

.pricing-card-featured .plan-price .currency {
  color: #aeb8b1;
}

.plan-price > strong {
  font-family: var(--display);
  font-size: 100px;
  font-weight: 330;
  line-height: 0.84;
  letter-spacing: -0.07em;
  font-variant-numeric: tabular-nums;
}

.plan-price .price-term {
  max-width: 100px;
  margin: 0 0 5px 12px;
  color: #707873;
  font-size: 9px;
  line-height: 1.3;
}

.pricing-card-featured .plan-price .price-term {
  color: #89948d;
}

.plan-price-pilot {
  min-height: 112px;
  align-items: flex-end;
}

.plan-price-pilot > strong {
  max-width: 280px;
  font-size: clamp(46px, 3.8vw, 60px);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.plan-caption {
  min-height: 36px;
  margin-top: 16px;
  color: #7b837e;
  font-size: 9px;
  line-height: 1.55;
}

.pricing-card-featured .plan-caption {
  color: #87928b;
}

.plan-button {
  width: 100%;
  min-height: 48px;
  margin-top: 20px;
  justify-content: space-between;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(16, 22, 19, 0.24);
  border-radius: 4px;
}

.plan-button:hover {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.pricing-card-featured .plan-button {
  color: var(--ink);
  background: var(--signal);
  border-color: var(--signal);
  box-shadow: 0 12px 26px rgba(200, 243, 74, 0.1);
}

.pricing-card-featured .plan-button:hover {
  color: var(--ink);
  background: #d5ff5a;
  border-color: #d5ff5a;
  box-shadow: 0 16px 32px rgba(200, 243, 74, 0.16);
}

.plan-button b {
  font-size: 17px;
  font-weight: 400;
}

.plan-rule {
  height: 1px;
  margin: 31px 0 25px;
  background: rgba(16, 22, 19, 0.12);
}

.pricing-card-featured .plan-rule {
  background: rgba(255, 255, 255, 0.12);
}

.included-label {
  color: #858d88;
  font: 500 7px/1 var(--mono);
  letter-spacing: 0.1em;
}

.pricing-card-featured .included-label {
  color: #727e76;
}

.plan-features {
  margin: 19px 0 0;
  padding: 0;
  display: grid;
  gap: 13px;
  list-style: none;
}

.plan-features li {
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  color: #4f5852;
  font-size: 10px;
  line-height: 1.48;
}

.plan-features i {
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  color: var(--cobalt);
  background: rgba(49, 92, 245, 0.08);
  border-radius: 50%;
  font-size: 7px;
  font-style: normal;
}

.pricing-card-featured .plan-features li {
  color: #acb5af;
}

.pricing-card-featured .plan-features i {
  color: var(--signal);
  background: rgba(200, 243, 74, 0.09);
}

.usage-section {
  position: relative;
  overflow: hidden;
  background: var(--bone);
}

.usage-section::after {
  content: "LOCAL / CLOUD / CONTEXT";
  position: absolute;
  right: -4px;
  bottom: 28px;
  color: rgba(16, 22, 19, 0.035);
  font-family: var(--mono);
  font-size: clamp(42px, 7vw, 104px);
  font-weight: 500;
  letter-spacing: -0.07em;
  white-space: nowrap;
  pointer-events: none;
}

.usage-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(70px, 9vw, 140px);
}

.usage-heading h2 {
  max-width: 550px;
  margin-top: 36px;
  font-family: var(--display);
  font-size: clamp(51px, 5vw, 72px);
  font-weight: 410;
  line-height: 0.96;
  letter-spacing: -0.052em;
}

.usage-heading h2 span,
.usage-heading h2 em {
  display: block;
}

.usage-heading h2 em {
  color: var(--cobalt);
  font-weight: 340;
}

.usage-heading > p {
  max-width: 520px;
  margin-top: 28px;
  color: #5d6660;
  font-size: 13px;
  line-height: 1.72;
  letter-spacing: -0.012em;
}

.usage-notes {
  counter-reset: usage;
  border-top: 1px solid var(--pricing-rule);
}

.usage-notes article {
  counter-increment: usage;
  min-height: 154px;
  padding: 27px 0;
  display: grid;
  grid-template-columns: 82px minmax(150px, 0.78fr) minmax(200px, 1fr);
  align-items: start;
  gap: 26px;
  border-bottom: 1px solid var(--pricing-rule);
}

.usage-notes article > span {
  padding-top: 3px;
  color: var(--cobalt);
  font: 500 7px/1 var(--mono);
  letter-spacing: 0.09em;
}

.usage-notes article > span::before {
  content: "0" counter(usage) " / ";
  color: #a3aaa5;
}

.usage-notes strong {
  color: #2b332f;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.usage-notes p {
  color: #68716b;
  font-size: 10px;
  line-height: 1.7;
}

.comparison-section {
  background: var(--bone-soft);
  border-top: 1px solid var(--pricing-rule);
  border-bottom: 1px solid var(--pricing-rule);
}

.comparison-heading {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(380px, 1.35fr) minmax(250px, 0.58fr);
  align-items: end;
  gap: 44px;
}

.comparison-heading h2 {
  font-family: var(--display);
  font-size: clamp(46px, 4.5vw, 64px);
  font-weight: 420;
  line-height: 0.98;
  letter-spacing: -0.047em;
}

.comparison-heading > p {
  padding-bottom: 5px;
  color: #727a75;
  font-size: 10px;
  line-height: 1.65;
}

.comparison-swipe-hint {
  display: none;
}

.comparison-table-wrap {
  max-width: 100%;
  margin-top: 62px;
  overflow-x: auto;
  background: transparent;
  border: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid rgba(16, 22, 19, 0.22);
  border-radius: 0;
  box-shadow: none;
  scrollbar-color: rgba(49, 92, 245, 0.45) transparent;
  scrollbar-width: thin;
}

.comparison-table-wrap:focus-visible {
  outline-offset: 5px;
}

.comparison-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  table-layout: fixed;
}

.comparison-table thead {
  color: var(--ink);
  background: transparent;
}

.comparison-table thead th {
  height: 76px;
  padding: 0 24px;
  border-right: 0;
  border-bottom: 1px solid rgba(16, 22, 19, 0.2);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 450;
  letter-spacing: -0.02em;
  text-align: center;
}

.comparison-table thead th:first-child {
  width: 43%;
  color: #747c77;
  font: 500 8px/1 var(--mono);
  letter-spacing: 0.1em;
  text-align: left;
}

.comparison-table thead th:nth-child(3) {
  color: var(--cobalt);
}

.comparison-table tbody th,
.comparison-table tbody td {
  min-height: 59px;
  padding: 19px 24px;
  border-right: 0;
  border-bottom: 1px solid rgba(16, 22, 19, 0.1);
  font-size: 10px;
  line-height: 1.45;
}

.comparison-table tbody th {
  color: #3f4842;
  font-weight: 560;
  text-align: left;
}

.comparison-table tbody td {
  color: #626b65;
  text-align: center;
}

.comparison-table tr > *:last-child {
  border-right: 0;
}

.comparison-table tbody tr:last-child > * {
  border-bottom: 0;
}

.comparison-table .table-group th {
  padding: 15px 24px;
  color: #5f6862;
  background: rgba(232, 227, 217, 0.68);
  font: 500 7px/1 var(--mono);
  letter-spacing: 0.11em;
}

.comparison-table tbody tr:not(.table-group):hover > * {
  background: rgba(49, 92, 245, 0.035);
}

.comparison-table tbody tr:not(.table-group) > *:nth-child(3) {
  background: rgba(49, 92, 245, 0.022);
}

.pricing-privacy {
  padding: 34px 0;
  background: var(--bone);
}

.pricing-privacy-panel {
  min-height: 230px;
  padding: 38px 44px;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  align-items: center;
  gap: 44px;
  overflow: hidden;
  color: #e9eee9;
  background:
    radial-gradient(circle at 88% 10%, rgba(49, 92, 245, 0.27), transparent 19rem),
    var(--dark);
  border-radius: 15px;
  box-shadow: 0 30px 72px rgba(16, 22, 19, 0.15);
}

.privacy-mark {
  position: relative;
  width: 86px;
  height: 86px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.privacy-mark::before,
.privacy-mark::after {
  content: "";
  position: absolute;
  inset: 15px;
  border: 1px solid rgba(200, 243, 74, 0.5);
  border-radius: 50%;
}

.privacy-mark::after {
  inset: 32px;
  background: var(--signal);
  border: 0;
  box-shadow: 0 0 0 7px rgba(200, 243, 74, 0.08);
}

.privacy-mark span {
  position: absolute;
  left: 50%;
  top: -7px;
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.35);
  transform-origin: 50% 50px;
}

.privacy-mark span:nth-child(2) { transform: rotate(120deg); }
.privacy-mark span:nth-child(3) { transform: rotate(240deg); }

.pricing-privacy-panel h2 {
  margin-top: 14px;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(38px, 3.7vw, 52px);
  font-weight: 420;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.pricing-privacy-panel p {
  max-width: 700px;
  margin-top: 14px;
  color: #8e9992;
  font-size: 10px;
  line-height: 1.7;
}

.text-link {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
}

.text-link b {
  font-size: 15px;
  font-weight: 400;
  transition: transform 180ms var(--ease);
}

.text-link:hover b {
  transform: translate(2px, -2px);
}

.text-link.light {
  color: #fff;
}

.page-pricing .faq-section {
  padding-top: 132px;
  padding-bottom: 146px;
  background: var(--bone);
}

.page-pricing .faq-heading h2 {
  max-width: 350px;
}

.page-pricing .faq-list summary {
  min-height: 102px;
  padding-left: 54px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 470;
  line-height: 1.2;
}

.page-pricing .faq-list details p {
  max-width: 750px;
  padding: 0 55px 31px 54px;
  font-size: 12px;
}

.page-pricing .faq-list {
  counter-reset: pricing-faq;
  border-top-color: rgba(16, 22, 19, 0.25);
}

.page-pricing .faq-list details {
  counter-increment: pricing-faq;
}

.page-pricing .faq-list summary::before {
  content: "0" counter(pricing-faq);
  position: absolute;
  left: 2px;
  top: 50%;
  color: var(--cobalt);
  font: 500 7px/1 var(--mono);
  letter-spacing: 0.08em;
  transform: translateY(-50%);
}

@media (min-width: 961px) {
  .page-pricing .faq-heading {
    position: sticky;
    top: 126px;
    align-self: start;
  }
}

.final-cta.pricing-final-cta {
  padding: 0 0 34px;
  background: var(--bone);
}

.final-cta-panel {
  position: relative;
  min-height: 370px;
  padding: 64px 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 60px;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 8%, rgba(200, 243, 74, 0.68), transparent 13rem),
    linear-gradient(145deg, #eef0ff, #dce3ff 62%, #d1dafa);
  border: 1px solid rgba(49, 92, 245, 0.23);
  border-radius: 16px;
}

.final-cta-panel::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -90px;
  top: -180px;
  border: 1px solid rgba(49, 92, 245, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 54px rgba(49, 92, 245, 0.04), 0 0 0 108px rgba(49, 92, 245, 0.025);
}

.final-cta-panel > * {
  position: relative;
  z-index: 1;
}

.final-cta-panel h2 {
  max-width: 770px;
  margin-top: 17px;
  font-family: var(--display);
  font-size: clamp(55px, 5.6vw, 78px);
  font-weight: 410;
  line-height: 0.91;
  letter-spacing: -0.055em;
}

.final-cta-panel h2 span,
.final-cta-panel h2 em {
  display: block;
}

.final-cta-panel h2 em {
  color: var(--cobalt);
  font-weight: 340;
}

.final-cta-panel > div:first-child > p {
  max-width: 570px;
  margin-top: 24px;
  color: #5b6371;
  font-size: 12px;
  line-height: 1.65;
}

.final-cta-actions {
  min-width: 235px;
  display: grid;
  justify-items: stretch;
  gap: 21px;
}

.final-cta-actions .button {
  min-width: 235px;
}

.final-cta-actions .text-link {
  justify-self: center;
}

@media (max-width: 1180px) {
  .pricing-hero-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
    gap: 60px;
  }

  .pricing-card {
    padding: 25px;
  }

  .plan-head {
    padding-right: 58px;
  }

  .plan-price > strong {
    font-size: 78px;
  }

  .plan-price-pilot > strong {
    font-size: 45px;
  }

  .usage-grid {
    gap: 70px;
  }

  .usage-notes article {
    grid-template-columns: 68px minmax(140px, 0.78fr) minmax(180px, 1fr);
    gap: 20px;
  }

  .comparison-heading {
    grid-template-columns: 190px minmax(360px, 1fr) 220px;
    gap: 32px;
  }

  .pricing-privacy-panel {
    grid-template-columns: 90px minmax(0, 1fr) auto;
    gap: 32px;
  }

  .final-cta-panel {
    padding: 54px;
  }
}

@media (max-width: 960px) {
  .page-pricing .nav-links a.is-active::after,
  .page-pricing .nav-links a[aria-current="page"]::after {
    display: none;
  }

  .page-pricing .mobile-menu a[aria-current="page"] {
    color: #fff;
    background: var(--cobalt);
  }

  .subpage-hero.pricing-hero {
    padding: 92px 0 70px;
  }

  .pricing-hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .pricing-hero-copy h1 {
    max-width: 790px;
    font-size: clamp(65px, 10.2vw, 91px);
  }

  .pricing-hero-copy .subpage-lede {
    max-width: 650px;
  }

  .beta-pricing-note {
    min-height: 180px;
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    align-items: end;
    gap: 25px;
  }

  .pricing-section {
    padding: 70px 0 110px;
  }

  .pricing-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-card-featured {
    border-right: 0;
  }

  .pricing-card-team {
    grid-column: 1 / -1;
    min-height: 490px;
    border-top: 1px solid rgba(16, 22, 19, 0.18);
  }

  .pricing-card-team .plan-for,
  .pricing-card-team .plan-price-pilot > strong {
    max-width: 400px;
  }

  .pricing-card-team .plan-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 30px;
  }

  .usage-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .usage-heading h2,
  .usage-heading > p {
    max-width: 670px;
  }

  .usage-notes article {
    grid-template-columns: 80px minmax(180px, 0.72fr) minmax(220px, 1fr);
  }

  .comparison-heading {
    grid-template-columns: 1fr 2fr;
    gap: 28px;
  }

  .comparison-heading > p {
    grid-column: 2;
  }

  .pricing-privacy-panel {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .pricing-privacy-panel .text-link {
    grid-column: 2;
  }

  .page-pricing .faq-section {
    padding-top: 110px;
    padding-bottom: 115px;
  }

  .final-cta-panel {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .final-cta-actions {
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-items: start;
  }

  .final-cta-actions .text-link {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .subpage-hero.pricing-hero {
    padding: 66px 0 56px;
  }

  .subpage-hero.pricing-hero::before {
    width: 280px;
    height: 280px;
    right: -190px;
    top: -110px;
  }

  .pricing-hero-copy .eyebrow {
    max-width: 100%;
  }

  .pricing-hero-copy h1 {
    margin-top: 28px;
    font-size: clamp(50px, 15vw, 68px);
    line-height: 0.94;
  }

  .pricing-hero-copy .subpage-lede {
    margin-top: 25px;
    font-size: 14px;
  }

  .beta-pricing-note {
    min-height: 220px;
    padding: 22px;
    display: flex;
  }

  .beta-pricing-note strong {
    font-size: 23px;
  }

  .pricing-section {
    padding: 58px 0 88px;
  }

  .pricing-toolbar {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .pricing-toolbar h2 {
    font-size: 42px;
  }

  .billing-toggle {
    width: 100%;
  }

  .billing-toggle button {
    min-width: 0;
    padding-inline: 10px;
  }

  .billing-announcement {
    text-align: left;
  }

  .plan-matrix-meta {
    margin-top: 31px;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .plan-matrix-meta span:last-child {
    text-align: left;
  }

  .pricing-cards {
    margin-top: 27px;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pricing-card,
  .pricing-card-team {
    grid-column: auto;
    min-height: 0;
    padding: 24px 21px 26px;
    border-right: 0;
    border-bottom: 1px solid rgba(16, 22, 19, 0.15);
  }

  .pricing-card-team {
    border-bottom: 0;
  }

  .plan-head {
    padding-right: 65px;
  }

  .plan-price {
    min-height: 93px;
    margin-top: 34px;
  }

  .plan-price > strong {
    font-size: 78px;
  }

  .plan-price-pilot > strong {
    font-size: 45px;
  }

  .plan-caption {
    min-height: auto;
  }

  .pricing-card-team .plan-features {
    grid-template-columns: 1fr;
  }

  .usage-section::after {
    display: none;
  }

  .usage-heading h2 {
    margin-top: 27px;
    font-size: 47px;
  }

  .usage-notes article {
    min-height: 0;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px 18px;
  }

  .usage-notes article p {
    grid-column: 2;
  }

  .comparison-heading {
    grid-template-columns: 1fr;
  }

  .comparison-heading h2 {
    font-size: 43px;
  }

  .comparison-heading > p {
    grid-column: auto;
  }

  .comparison-table-wrap {
    margin-top: 40px;
    border-radius: 0;
  }

  .comparison-swipe-hint {
    margin-top: 28px;
    display: block;
    color: #69716c;
    font: 500 7px/1.4 var(--mono);
    letter-spacing: 0.06em;
  }

  .comparison-table {
    min-width: 670px;
  }

  .comparison-table thead th,
  .comparison-table tbody th,
  .comparison-table tbody td {
    padding-inline: 17px;
  }

  .pricing-privacy {
    padding: 14px 0;
  }

  .pricing-privacy-panel {
    min-height: 0;
    padding: 35px 25px;
    grid-template-columns: 1fr;
    gap: 30px;
    border-radius: 12px;
  }

  .privacy-mark {
    width: 70px;
    height: 70px;
  }

  .privacy-mark::before { inset: 13px; }
  .privacy-mark::after { inset: 27px; }

  .privacy-mark span {
    transform-origin: 50% 42px;
  }

  .privacy-mark span:nth-child(2) { transform: rotate(120deg); }
  .privacy-mark span:nth-child(3) { transform: rotate(240deg); }

  .pricing-privacy-panel h2 {
    font-size: 41px;
  }

  .pricing-privacy-panel .text-link {
    grid-column: auto;
    white-space: normal;
  }

  .page-pricing .faq-section {
    padding-top: 83px;
    padding-bottom: 88px;
  }

  .page-pricing .faq-grid {
    gap: 54px;
  }

  .page-pricing .faq-list summary {
    min-height: 78px;
    padding-left: 42px;
    font-size: 17px;
  }

  .page-pricing .faq-list details p {
    padding-left: 42px;
  }

  .final-cta.pricing-final-cta {
    padding-bottom: 14px;
  }

  .final-cta-panel {
    min-height: 0;
    padding: 45px 25px;
    gap: 40px;
    border-radius: 12px;
  }

  .final-cta-panel h2 {
    font-size: 50px;
  }

  .final-cta-actions {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .final-cta-actions .button,
  .final-cta-actions .text-link {
    width: 100%;
  }

  .final-cta-actions .text-link {
    justify-content: center;
  }
}

@media (max-width: 390px) {
  .pricing-hero-copy .eyebrow-beta {
    display: none;
  }

  .pricing-hero-copy h1 {
    font-size: 49px;
  }

  .billing-toggle button {
    font-size: 10px;
  }

  .billing-toggle button small {
    font-size: 5px;
  }

  .plan-head {
    grid-template-columns: 29px minmax(0, 1fr);
    gap: 10px;
  }

  .plan-number {
    width: 28px;
    height: 28px;
  }

  .plan-price > strong {
    font-size: 70px;
  }

  .plan-price .price-term {
    margin-left: 8px;
  }

  .usage-notes article {
    grid-template-columns: 62px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pricing-card,
  .billing-toggle button,
  .text-link b {
    transition: none;
  }
}
