/* =========================================================================
   CoLateral website - plan cards and pack cards
   -------------------------------------------------------------------------
   The one source of the look for the markup apps/web/scripts/plan-cards.mjs
   renders: the license ladder (#planGrid), the expansion pack cards
   (#packGrid) and the pack add-on tick (#packAddOns). The home page and
   /pricing both link this sheet, so the cards look the same wherever they
   appear. A page must not restate these rules in its own <style>.

   It resolves against the page palette (--ink, --muted, --quiet, --line,
   --blue, --blue-ink, --on-blue, --badge-*) with a light fallback for each,
   and against the atmosphere tokens (--atm-*) from site-atmosphere.css.

   Why the surfaces are set through custom properties: site-prefs.css is
   injected after every page sheet and, in dark, paints .plan-card,
   .pack-card, .pack-addons and .pack-addon with
   `background: var(--atm-card)`, `border-color: var(--atm-card-line)` and
   `box-shadow: var(--atm-card-halo)` (the last through an :is() list that
   carries id specificity). Setting those tokens on the card itself keeps one
   design in both themes without an arms race of selectors.

   Motion: hover lift only, 4px, and none under reduced motion. The glow
   behind the card on sale is static; nothing here pulses.
   ========================================================================= */

/* ---- The ladder -------------------------------------------------------- */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  max-width: 1160px;
  margin: 0 auto;
  text-align: left;
}

.plan-card {
  --pc-bg: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  --pc-line: rgba(15, 23, 42, 0.09);
  --pc-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 18px 44px -18px rgba(15, 23, 42, 0.18);
  --atm-card: var(--pc-bg);
  --atm-card-line: var(--pc-line);
  --atm-card-shadow: var(--pc-shadow);
  --atm-card-halo: var(--pc-shadow);
  --card-soft: var(--pc-bg);
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 30px 28px 28px;
  border: 1px solid var(--pc-line);
  border-radius: var(--atm-radius, 18px);
  background: var(--pc-bg);
  box-shadow: var(--pc-shadow);
  color: var(--ink, #182130);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.plan-name {
  margin: 0;
  font-size: 12.5px;
  font-weight: 850;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--muted, #42597a);
}

.plan-price {
  margin: 18px 0 0;
  font-size: clamp(34px, 3.4vw, 42px);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--ink, #182130);
  font-variant-numeric: tabular-nums;
  overflow-wrap: break-word;
}

.plan-price .plan-unit {
  margin-left: 2px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--quiet, #526988);
}

.plan-range {
  display: inline-flex;
  align-self: flex-start;
  margin: 16px 0 0;
  padding: 4px 10px;
  border: 1px solid var(--line, rgba(15, 23, 42, 0.1));
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--muted, #42597a);
}

.plan-sub {
  margin: 14px 0 26px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted, #42597a);
  text-wrap: pretty;
}

.plan-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: var(--site-btn-h, 48px);
  margin-top: auto;
  padding: 12px 18px;
  border: 1px solid var(--line-strong, rgba(0, 120, 212, 0.45));
  border-radius: var(--site-btn-radius, 12px);
  background: transparent;
  color: var(--ink, #182130);
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, filter 0.2s ease;
}

.plan-card > .plan-cta,
.plan-card > .plan-status {
  margin-top: auto;
}


.plan-cta::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s ease;
}

.plan-cta:hover {
  transform: translateY(-1px);
}

.plan-cta:hover::after {
  transform: translateX(3px);
}

.plan-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 13px 16px;
  border: 1px dashed var(--line, rgba(15, 23, 42, 0.14));
  border-radius: 12px;
  color: var(--quiet, #526988);
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.3;
  text-align: center;
}

.pc-ic {
  flex: none;
  width: 15px;
  height: 15px;
}

/* The badge sits on the top edge of the card on sale. */
.plan-badge {
  position: absolute;
  top: -12px;
  left: 26px;
  max-width: calc(100% - 44px);
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--badge-fill, #003f75);
  color: var(--on-badge, #fff);
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 8px 22px -6px rgba(0, 63, 117, 0.5);
}

/* ---- The card on sale: lit, ringed, and the one filled button ---------- */
.plan-card.is-current {
  --pc-bg: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  --pc-line: rgba(0, 103, 192, 0.42);
  --pc-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 0 0 1px rgba(0, 103, 192, 0.1), 0 30px 70px -26px rgba(0, 103, 192, 0.45), 0 0 110px -30px rgba(112, 96, 255, 0.35);
  padding-top: 38px;
}

.plan-card.is-current .plan-name {
  color: var(--blue-ink, #005a9e);
}

.plan-card.is-current .plan-price {
  font-size: clamp(52px, 5.2vw, 68px);
  letter-spacing: -0.055em;
}

.plan-card.is-current .plan-price .plan-unit {
  font-size: 15px;
}

.plan-card.is-current .plan-range {
  border-color: var(--badge-line, rgba(0, 63, 117, 0.45));
  background: var(--badge-fill-soft, rgba(0, 63, 117, 0.08));
  color: var(--badge-ink, #003f75);
}

/* The one primary blue of the whole site (site-chrome.css), so the buy button
   on a card is the same button as the one in the hero. */
.plan-card.is-featured .plan-cta {
  border-color: transparent;
  background: var(--site-primary, var(--blue, #0067c0));
  color: var(--site-primary-ink, var(--on-blue, #fff));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 16px 34px -12px rgba(0, 103, 192, 0.55);
}

.plan-card.is-featured .plan-cta:hover {
  background: var(--site-primary-hover, var(--blue, #0067c0));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 20px 40px -12px rgba(0, 103, 192, 0.65);
}

/* ---- Rungs that are not on sale: quieter, flatter, clearly not an offer - */
.plan-card.is-later,
.plan-card.is-sold {
  --pc-bg: rgba(255, 255, 255, 0.55);
  --pc-line: rgba(15, 23, 42, 0.1);
  --pc-shadow: none;
}

.plan-card.is-later .plan-price,
.plan-card.is-sold .plan-price {
  color: var(--quiet, #526988);
}

.plan-card.is-sold .plan-price > span:not(.plan-unit) {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.plan-status.is-sold {
  border-style: solid;
}

/* ---- Dark ------------------------------------------------------------- */
html[data-site-theme="dark"] .plan-card,
html[data-site-theme="dark"] .pack-card {
  --pc-bg: linear-gradient(180deg, rgba(20, 29, 48, 0.92) 0%, rgba(12, 18, 32, 0.92) 100%);
  --pc-line: rgba(148, 178, 220, 0.12);
  --pc-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --pk-bg: var(--pc-bg);
  --pk-line: var(--pc-line);
  --pk-shadow: var(--pc-shadow);
}

html[data-site-theme="dark"] .plan-card.is-current {
  --pc-bg: linear-gradient(180deg, rgba(24, 38, 64, 0.96) 0%, rgba(12, 19, 34, 0.96) 100%);
  --pc-line: rgba(77, 166, 255, 0.5);
  --pc-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 0 100px -18px rgba(77, 166, 255, 0.45), 0 0 140px -40px rgba(120, 96, 255, 0.4);
}

html[data-site-theme="dark"] .plan-card.is-later,
html[data-site-theme="dark"] .plan-card.is-sold {
  --pc-bg: linear-gradient(180deg, rgba(16, 24, 40, 0.6) 0%, rgba(10, 15, 27, 0.6) 100%);
  --pc-line: rgba(148, 178, 220, 0.12);
  --pc-shadow: none;
}

html[data-site-theme="dark"] .plan-badge {
  box-shadow: 0 8px 26px -6px rgba(77, 166, 255, 0.55);
}

html[data-site-theme="dark"] .plan-card.is-featured .plan-cta {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 16px 38px -12px rgba(77, 166, 255, 0.6);
}

/* ---- Hover: the card you can act on lifts. -------------------------------- */
.plan-card.is-current:hover {
  transform: translateY(-4px);
  --pc-line: rgba(0, 103, 192, 0.6);
}

html[data-site-theme="dark"] .plan-card.is-current:hover {
  --pc-line: rgba(120, 180, 255, 0.7);
}

/* ---- The pack add-on tick under the ladder ---------------------------- */
.pack-addons {
  --atm-card: var(--pa-bg);
  --atm-card-line: var(--pa-line);
  --atm-card-shadow: none;
  --atm-card-halo: none;
  --pa-bg: rgba(255, 255, 255, 0.72);
  --pa-line: rgba(15, 23, 42, 0.09);
  display: grid;
  gap: 10px;
  max-width: 1160px;
  margin: 20px auto 0;
  padding: 18px 20px;
  border: 1px solid var(--pa-line);
  border-radius: 16px;
  background: var(--pa-bg);
  box-shadow: none;
  scroll-margin-top: 96px;
  text-align: left;
}

.pack-addons-lead {
  margin: 0;
  font-size: 11.5px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-ink, #005a9e);
}

.pack-addon {
  --atm-card: var(--pa-row);
  --atm-card-line: var(--pa-line);
  --atm-card-shadow: none;
  --atm-card-halo: none;
  --pa-row: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--pa-line);
  border-radius: 12px;
  background: var(--pa-row);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.pack-addon:hover,
.pack-addon:focus-within {
  border-color: var(--line-strong, rgba(0, 120, 212, 0.45));
}

.pack-addon input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--blue, #0067c0);
}

.pack-addon-name {
  font-weight: 750;
  color: var(--ink, #182130);
}

.pack-addon-price {
  margin-left: auto;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  color: var(--muted, #42597a);
}

.pack-addons-total {
  margin: 2px 0 0;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted, #42597a);
}

html[data-site-theme="dark"] .pack-addons {
  --pa-bg: rgba(12, 18, 32, 0.72);
  --pa-line: rgba(148, 178, 220, 0.12);
}

html[data-site-theme="dark"] .pack-addon {
  --pa-row: rgba(18, 27, 45, 0.9);
}

/* ---- Expansion pack cards -----------------------------------------------
   One pack per row. A pack you can add is the wide card: what it does on the
   left, the price and the one button in a panel on the right. A pack that is
   not for sale drops below it as a slim dashed strip: named, marked coming
   soon, its planned price a footnote, and nothing to press. */
.pack-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  max-width: 1160px;
  margin: 0 auto;
  text-align: left;
}

.pack-card {
  --pk-bg: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  --pk-line: rgba(15, 23, 42, 0.09);
  --pk-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 18px 44px -18px rgba(15, 23, 42, 0.18);
  --atm-card: var(--pk-bg);
  --atm-card-line: var(--pk-line);
  --atm-card-shadow: var(--pk-shadow);
  --atm-card-halo: var(--pk-shadow);
  --card-soft: var(--pk-bg);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.8fr);
  gap: 36px;
  align-items: stretch;
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--pk-line);
  border-radius: var(--atm-radius, 18px);
  background: var(--pk-bg);
  box-shadow: var(--pk-shadow);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.pack-card:not(.is-planned) {
  align-items: start;
}

.pack-card:not(.is-planned):hover {
  transform: translateY(-4px);
  --pk-line: rgba(0, 103, 192, 0.35);
}

html[data-site-theme="dark"] .pack-card:not(.is-planned) {
  align-items: start;
}

.pack-card:not(.is-planned):hover {
  --pk-line: rgba(120, 180, 255, 0.4);
}

.pack-feature-main {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}

.pack-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.pack-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line, rgba(15, 23, 42, 0.1));
  border-radius: 12px;
  background: rgba(0, 120, 212, 0.07);
  color: var(--blue-ink, #005a9e);
}

.pack-icon .pc-ic {
  width: 20px;
  height: 20px;
}

.pack-count {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 4px 11px;
  border: 1px solid var(--badge-line, rgba(0, 63, 117, 0.45));
  border-radius: 999px;
  background: var(--badge-fill-soft, rgba(0, 63, 117, 0.08));
  color: var(--badge-ink, #003f75);
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
}

.pack-count::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.pack-count.is-planned {
  border-style: dashed;
  background: transparent;
}

.pack-name {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--ink, #182130);
}

.pack-sub {
  margin: 0;
  max-width: 620px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted, #42597a);
  text-wrap: pretty;
}

.pack-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 22px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted, #42597a);
}

.pack-points li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.pack-points .pc-ic {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--blue, #0067c0);
}

/* The price panel. */
.pack-feature-side {
  --atm-card: var(--pk-panel);
  --atm-card-line: var(--line, rgba(15, 23, 42, 0.1));
  --atm-card-shadow: none;
  --atm-card-halo: none;
  --pk-panel: linear-gradient(180deg, rgba(0, 120, 212, 0.06), rgba(0, 120, 212, 0.015));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line, rgba(15, 23, 42, 0.1));
  border-radius: 14px;
  background: var(--pk-panel);
  box-shadow: none;
}

.pack-price-block {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.pack-price {
  margin: 0;
  font-size: 36px;
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--ink, #182130);
  font-variant-numeric: tabular-nums;
}

.pack-price .plan-unit {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--quiet, #526988);
}

.pack-price-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted, #42597a);
}

.pack-status {
  margin: 0;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.5;
  color: var(--badge-ink, #003f75);
  text-wrap: pretty;
}

.pack-card .plan-cta {
  margin-top: 10px;
  padding: 12px 16px;
  border-color: transparent;
  background: var(--site-primary, var(--blue, #0067c0));
  color: var(--site-primary-ink, var(--on-blue, #fff));
  font-size: 14px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 14px 30px -12px rgba(0, 103, 192, 0.55);
}

.pack-card .plan-cta:hover {
  background: var(--site-primary-hover, var(--blue, #0067c0));
}

/* A pack that cannot be bought: a slim dashed strip after the one you can. */
.pack-card.is-planned {
  --pk-bg: rgba(255, 255, 255, 0.45);
  --pk-line: rgba(15, 23, 42, 0.16);
  --pk-shadow: none;
  order: 2;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 32px;
  align-items: center;
  padding: 18px 24px;
  border-style: dashed;
}

.pack-card.is-planned .pack-feature-main {
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 2px;
  align-items: center;
}

.pack-card.is-planned .pack-top {
  display: contents;
}

.pack-card.is-planned .pack-icon {
  grid-row: span 2;
  background: transparent;
  color: var(--quiet, #526988);
}

.pack-card.is-planned .pack-name {
  font-size: 16px;
  letter-spacing: -0.015em;
}

.pack-card.is-planned .pack-sub {
  grid-column: 2;
  font-size: 13.5px;
}

/* The strip's summary already opens with "Coming soon" and its status pill
   says it is not for sale, so the third saying of it is dropped here. */
.pack-card.is-planned .pack-count {
  display: none;
}

.pack-card.is-planned .pack-feature-side {
  --pk-panel: transparent;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 4px 14px;
  padding: 0;
  border: 0;
  text-align: right;
}

.pack-card.is-planned .pack-price-block {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.pack-card.is-planned .pack-price {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0;
  color: var(--quiet, #526988);
}

.pack-card.is-planned .pack-price .plan-unit {
  font-size: 13px;
}

.pack-card.is-planned .pack-price-note {
  display: none;
}

.pack-card.is-planned .pack-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border: 1px dashed var(--badge-line, rgba(0, 63, 117, 0.45));
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

html[data-site-theme="dark"] .pack-feature-side {
  --pk-panel: linear-gradient(180deg, rgba(77, 166, 255, 0.08), rgba(77, 166, 255, 0.02));
}

html[data-site-theme="dark"] .pack-card.is-planned {
  --pk-bg: rgba(12, 18, 32, 0.45);
  --pk-line: rgba(148, 178, 220, 0.18);
}

html[data-site-theme="dark"] .pack-card.is-planned .pack-feature-side {
  --pk-panel: transparent;
}

html[data-site-theme="dark"] .pack-icon {
  background: rgba(77, 166, 255, 0.1);
}

html[data-site-theme="dark"] .pack-card.is-planned .pack-icon {
  background: transparent;
}

html[data-site-theme="dark"] .pack-card .plan-cta {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 14px 32px -12px rgba(77, 166, 255, 0.55);
}

/* ---- Focus ------------------------------------------------------------ */
.plan-cta:focus-visible {
  outline: 2px solid var(--focus-ring, #00437c);
  outline-offset: 3px;
}

/* ---- Narrow ----------------------------------------------------------- */
/* Three columns get tight before they get too narrow: trim the padding so the
   buttons and status lines keep to one line down to 1024. */
@media (max-width: 1180px) {
  .plan-card {
    padding: 28px 22px 22px;
  }

  .plan-card.is-current {
    padding-top: 36px;
  }

  .plan-cta {
    padding: 13px 12px;
    font-size: 14px;
  }

  .plan-status {
    padding: 12px 10px;
    font-size: 12px;
  }
}

/* Tablet: the tier on sale takes the whole first row, laid out wide, and the
   later tiers sit side by side under it. */
@media (min-width: 761px) and (max-width: 1023px) {
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan-card.is-current {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "name sub"
      "price sub"
      "range cta";
    column-gap: 36px;
    align-items: start;
    padding: 36px 30px 28px;
  }

  .plan-card.is-current .plan-name { grid-area: name; }
  .plan-card.is-current .plan-price { grid-area: price; }
  .plan-card.is-current .plan-range { grid-area: range; justify-self: start; }

  .plan-card.is-current .plan-sub {
    grid-area: sub;
    align-self: end;
    margin: 0 0 18px;
    font-size: 15px;
  }

  .plan-card.is-current .plan-cta {
    grid-area: cta;
    align-self: end;
  }
}

@media (max-width: 760px) {
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .plan-card {
    padding: 26px 22px 22px;
  }

  .plan-card.is-current {
    padding-top: 34px;
  }

  /* A tier that is not on sale folds to a compact row on a phone: name and
     range on the left, the price on the right, the status underneath. */
  .plan-card.is-later,
  .plan-card.is-sold {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name price"
      "range price"
      "sub sub"
      "status status";
    column-gap: 16px;
    align-items: center;
    padding: 20px;
  }

  .plan-card.is-later .plan-name,
  .plan-card.is-sold .plan-name { grid-area: name; }

  .plan-card.is-later .plan-price,
  .plan-card.is-sold .plan-price {
    grid-area: price;
    margin: 0;
    font-size: 30px;
    text-align: right;
  }

  .plan-card.is-later .plan-price .plan-unit,
  .plan-card.is-sold .plan-price .plan-unit {
    display: block;
    margin: 4px 0 0;
    font-size: 12px;
  }

  .plan-card.is-later .plan-range,
  .plan-card.is-sold .plan-range {
    grid-area: range;
    justify-self: start;
    margin-top: 8px;
  }

  .plan-card.is-later .plan-sub,
  .plan-card.is-sold .plan-sub {
    grid-area: sub;
    margin: 12px 0 14px;
    font-size: 13.5px;
  }

  .plan-card.is-later .plan-status,
  .plan-card.is-sold .plan-status {
    grid-area: status;
    padding: 10px;
  }

  .pack-card {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px;
  }

  .pack-points {
    grid-template-columns: 1fr;
  }

  .pack-card.is-planned {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 20px;
  }

  .pack-card.is-planned .pack-feature-side {
    justify-content: flex-start;
    text-align: left;
  }

  .pack-card.is-planned .pack-status {
    white-space: normal;
    border-radius: 12px;
  }

  .pack-addon {
    flex-wrap: wrap;
  }

  .pack-addon-price {
    margin-left: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .plan-card,
  .pack-card,
  .plan-cta,
  .plan-cta::after {
    transition: none;
  }

  .plan-card.is-current:hover,
  .pack-card:not(.is-planned):hover,
  .plan-cta:hover,
  .plan-cta:hover::after {
    transform: none;
  }
}
