/* The two billing pages: the guest page (billing/guest-pricing, behind
   layouts/pricing-signup, light only) and the signed-in page
   (billing/member-billing, inside the app shell, light and dark). Both are
   built on billing/partials/pricing-meter and pricing-addons and on
   public/js/pricing-calculator.js; the .mb section near the end holds what
   only the signed-in page has.

   One bold element: the navy price meter, whose slider track is drawn as the
   real price tiers. Everything around it stays quiet. Motion only answers
   what the visitor did. */

.pricing-signup-body {
  margin: 0;
  background: #f8fafc;
  color: #0f172a;
  font-family: var(--font-ui, "Inter", system-ui, sans-serif);
  -webkit-font-smoothing: antialiased;
}

.pricing-signup-main:focus {
  outline: none;
}

.gp {
  --gp-blue: var(--rentals-blue, #0057ba);
  --gp-blue-hover: #003e83;
  --gp-blue-deep: #0d2b52;
  --gp-blue-soft: #d6e4f7;
  --gp-navy: var(--rentals-navy, #071527);
  --gp-navy-raised: #0b1b2f;
  --gp-ink: #0f172a;
  --gp-text-2: #475569;
  --gp-muted: #64748b;
  --gp-line: #dde6ef;
  --gp-line-soft: #e9eef4;
  --gp-canvas: #f8fafc;
  --gp-surface: #fff;
  --gp-danger: #b91c1c;
  --gp-danger-soft: #fef2f2;
  --gp-warning-text: #92400e;
  --gp-warning-soft: #fffbeb;
  --gp-on-navy: #fff;
  --gp-on-navy-2: #c3d0e0;
  --gp-on-navy-line: rgba(255, 255, 255, 0.16);
  --gp-sky: #96bfe6;
  --gp-focus: var(--ops-focus-ring, #0057ba);
  --gp-radius-control: 8px;
  --gp-radius-card: 12px;
  --gp-radius-panel: 16px;
  --gp-shadow-rest: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 1px rgba(15, 23, 42, 0.04);
  --gp-shadow-raised: 0 16px 40px -20px rgba(13, 43, 82, 0.35), 0 2px 6px rgba(15, 23, 42, 0.06);
  --gp-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --gp-thumb: 28px;
  --gp-hover-line: #b9cde4;
  --gp-selected-bg: #f5f9fe;
  --gp-icon-bg: #eaf2fc;
  --gp-good: #166534;
  --gp-good-hover: #14532d;
  --gp-good-bg: #f0fdf4;
  --gp-good-line: #bbf7d0;
  --gp-good-chip: #dcfce7;
  --gp-featured-bg: #f7fbff;
  --gp-featured-line: #9cc1ea;
  --gp-warning-line: #fcd34d;
  --gp-danger-line: #fecaca;
  --gp-bar-bg: rgba(255, 255, 255, 0.97);
  /* Fills under white text: the brand blue in light, a deeper blue in dark
     where --gp-blue lightens for links. */
  --gp-action: var(--gp-blue);
  --gp-action-hover: var(--gp-blue-hover);

  box-sizing: border-box;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 16px 112px;
}

.gp *,
.gp *::before,
.gp *::after {
  box-sizing: inherit;
}

.gp :where(a, button, input, select, summary, textarea):focus-visible {
  outline: 2px solid var(--gp-focus);
  outline-offset: 2px;
}

.gp :where(a) {
  color: var(--gp-blue);
}

.gp :where(a):hover {
  color: var(--gp-blue-hover);
}

/* Resets carry no specificity, so every component rule below wins without
   !important or a longer selector. */
.gp :where(h1, h2, p, ol, ul, dl, dd, fieldset) {
  margin: 0;
}

.gp :where(ol, ul) {
  padding: 0;
  list-style: none;
}

.gp :where(fieldset) {
  border: 0;
  padding: 0;
  min-width: 0;
}

.gp .lucide-token {
  display: inline-flex;
  flex: none;
  width: 1.1em;
  height: 1.1em;
  align-items: center;
  justify-content: center;
}

/* ---- Header ------------------------------------------------------------ */

.gp-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0 24px;
}

.gp-brand img {
  display: block;
  width: auto;
  height: 32px;
}

.gp-top-note {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: var(--gp-text-2);
  font-size: 0.875rem;
  font-weight: 600;
}

.gp-signin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-left: auto;
  padding: 0 16px;
  border: 1px solid var(--gp-line);
  border-radius: 999px;
  background: var(--gp-surface);
  color: var(--gp-ink);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.gp-signin:hover {
  border-color: #c3d3e6;
}

/* ---- Notices ----------------------------------------------------------- */

.gp-notices {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.gp-notice {
  padding: 12px 16px;
  border: 1px solid;
  border-radius: var(--gp-radius-control);
  font-size: 0.9375rem;
  font-weight: 600;
}

.gp-notice-info {
  border-color: var(--gp-blue-soft);
  background: var(--gp-surface);
  color: var(--gp-blue-deep);
}

.gp-notice-warning {
  border-color: var(--gp-warning-line);
  background: var(--gp-warning-soft);
  color: var(--gp-warning-text);
}

.gp-notice-danger {
  border-color: var(--gp-danger-line);
  background: var(--gp-danger-soft);
  color: var(--gp-danger);
}

/* ---- Intro ------------------------------------------------------------- */

.gp-intro {
  max-width: 44rem;
  margin-bottom: 24px;
}

.gp-intro h1 {
  font-family: var(--font-display, "Manrope", system-ui, sans-serif);
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.08;
  color: var(--gp-ink);
  text-wrap: balance;
}

.gp-lead {
  margin-top: 12px;
  max-width: 38rem;
  color: var(--gp-text-2);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.gp-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 16px;
  color: var(--gp-text-2);
  font-size: 0.9375rem;
  font-weight: 600;
}

.gp-steps li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gp-step-number {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--gp-blue-soft);
  color: var(--gp-blue-deep);
  font-size: 0.8125rem;
  font-weight: 800;
}

/* ---- Grid -------------------------------------------------------------- */

.gp-grid {
  display: grid;
  gap: 24px;
}

.gp-plan {
  display: grid;
  gap: 24px;
  min-width: 0;
}

/* ---- Meter (the bold element) -------------------------------------------- */

.gp-meter {
  --gp-focus: var(--gp-sky);
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: var(--gp-radius-panel);
  background: var(--gp-navy);
  color: var(--gp-on-navy);
  box-shadow: var(--gp-shadow-raised);
}

.gp-meter-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}

.gp-meter h2 {
  font-family: var(--font-display, "Manrope", system-ui, sans-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gp-on-navy-2);
}

/* The thumb is always half the control, so both halves must be equal. On
   phones "Save 20%" sits under "Yearly" to keep them equal and on screen. */
.gp-interval {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px var(--gp-on-navy-line);
}

.gp-interval input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gp-interval label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  padding: 4px 16px;
  border-radius: 999px;
  color: var(--gp-on-navy-2);
  font-size: 0.9375rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: color 200ms var(--gp-ease);
}

.gp-interval input:checked + label {
  color: var(--gp-navy);
}

.gp-interval input:focus-visible + label {
  outline: 2px solid var(--gp-focus);
  outline-offset: 2px;
}

.gp-interval-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 260ms var(--gp-ease);
}

.gp-interval-thumb.is-year,
.gp-interval:has(#gp-interval-year:checked) .gp-interval-thumb {
  transform: translateX(100%);
}

.gp-save {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gp-good-chip);
  color: var(--gp-good);
  font-size: 0.75rem;
  font-weight: 800;
}

.gp-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 20px;
}

.gp-price-amount {
  font-family: var(--font-display, "Manrope", system-ui, sans-serif);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* Six figures and up would clip at 320px, so long totals step down a size
   until there is room for the full scale again. */
.gp-price-amount.is-long {
  font-size: 2rem;
}

.gp-price-period {
  color: var(--gp-on-navy-2);
  font-size: 1.125rem;
  font-weight: 600;
}

/* Reset returns the calculator to where the page starts. It appears once
   something differs, spins once when pressed, then fades away. */
.gp-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--gp-on-navy-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gp-on-navy-2);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 160ms var(--gp-ease), color 160ms var(--gp-ease), border-color 160ms var(--gp-ease);
}

/* Phones: an icon-only circle that fits on the price line. Its accessible
   name still starts with "Reset". */
.gp-reset-label {
  display: none;
}

.gp-reset:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  color: var(--gp-on-navy);
}

.gp-reset-icon {
  display: inline-grid;
  place-items: center;
  transition: transform 240ms var(--gp-ease);
}

.gp-reset:hover .gp-reset-icon {
  transform: rotate(-45deg);
}

.gp-reset.is-spinning .gp-reset-icon {
  animation: gp-spin 640ms cubic-bezier(0.3, 0.7, 0.2, 1);
}

@keyframes gp-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(-360deg);
  }
}

.gp-reset-enter {
  transition: opacity 200ms var(--gp-ease), transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gp-reset-leave {
  transition: opacity 200ms var(--gp-ease), transform 200ms var(--gp-ease);
}

.gp-reset-hidden {
  opacity: 0;
  transform: scale(0.85);
}

.gp-price-note {
  margin-top: 8px;
  color: var(--gp-on-navy-2);
  font-size: 0.9375rem;
  min-height: 1.4em;
}

.gp-tenants {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--gp-on-navy-line);
}

.gp-tenants-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gp-tenants-label {
  font-size: 1rem;
  font-weight: 700;
}

.gp-stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gp-stepper-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gp-on-navy-line);
  border-radius: var(--gp-radius-control);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.125rem;
  cursor: pointer;
  transition: background-color 160ms var(--gp-ease), border-color 160ms var(--gp-ease);
}

.gp-stepper-button:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
}

.gp-stepper-button:disabled,
.gp-stepper-button[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
}

.gp-stepper-input {
  width: 6.5rem;
  height: 44px;
  padding: 0 8px;
  border: 1px solid var(--gp-on-navy-line);
  border-radius: var(--gp-radius-control);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 1.125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

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

.gp-stepper-input[aria-invalid="true"] {
  border-color: #fca5a5;
}

/* The ruler: a range input over a track drawn as the real price tiers. The
   track is inset by half a thumb so a tier edge lines up with the thumb. */
.gp-ruler {
  position: relative;
  margin-top: 20px;
}

.gp-ruler-track {
  position: absolute;
  top: 17px;
  left: calc(var(--gp-thumb) / 2);
  right: calc(var(--gp-thumb) / 2);
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.gp-ruler-segment {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--gp-from);
  width: calc(var(--gp-to) - var(--gp-from));
  border-right: 2px solid var(--gp-navy);
}

.gp-ruler-segment:first-child {
  border-radius: 999px 0 0 999px;
}

/* The fill is the track's last child, so the last segment is second to last. */
.gp-ruler-segment:nth-last-child(2) {
  border-right: 0;
  border-radius: 0 999px 999px 0;
}

.gp-ruler-segment.is-band-0 {
  background: rgba(150, 191, 230, 0.42);
}

.gp-ruler-segment.is-band-1 {
  background: rgba(150, 191, 230, 0.26);
}

.gp-ruler-segment.is-band-2 {
  background: rgba(150, 191, 230, 0.14);
}

.gp-ruler-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--gp-fill, 0%);
  border-radius: 999px;
  background: var(--gp-sky);
  transition: width 140ms var(--gp-ease);
  animation: gp-fill-in 720ms var(--gp-ease) 120ms both;
}

@keyframes gp-fill-in {
  from {
    width: 0;
  }
}

.gp-ruler-input {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.gp-ruler-input:focus-visible {
  outline: none;
}

.gp-ruler-input::-webkit-slider-runnable-track {
  height: 44px;
  background: transparent;
}

.gp-ruler-input::-moz-range-track {
  height: 44px;
  background: transparent;
}

.gp-ruler-input::-webkit-slider-thumb {
  width: var(--gp-thumb);
  height: var(--gp-thumb);
  margin-top: calc((44px - var(--gp-thumb)) / 2);
  border: 3px solid var(--gp-navy);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 4px 12px rgba(0, 0, 0, 0.35);
  -webkit-appearance: none;
  appearance: none;
  transition: transform 160ms var(--gp-ease);
}

.gp-ruler-input::-moz-range-thumb {
  width: var(--gp-thumb);
  height: var(--gp-thumb);
  border: 3px solid var(--gp-navy);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 4px 12px rgba(0, 0, 0, 0.35);
}

.gp-ruler-input:active::-webkit-slider-thumb {
  transform: scale(1.1);
}

.gp-ruler-input:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--gp-focus);
  outline-offset: 3px;
}

.gp-ruler-input:focus-visible::-moz-range-thumb {
  outline: 2px solid var(--gp-focus);
  outline-offset: 3px;
}

/* Ticks under the track. They re-space as the scale springs, new ones grow in
   and the ones a coarser scale drops fade out, so a rescale reads as the
   ruler zooming. */
.gp-ruler-ticks {
  position: absolute;
  top: 32px;
  left: calc(var(--gp-thumb) / 2);
  right: calc(var(--gp-thumb) / 2);
  height: 4px;
  pointer-events: none;
}

.gp-ruler-tick {
  position: absolute;
  top: 0;
  width: 2px;
  height: 4px;
  margin-left: -1px;
  border-radius: 1px;
  background: rgba(150, 191, 230, 0.45);
  transform-origin: top center;
  animation: gp-tick-in 320ms var(--gp-ease) both;
  transition: opacity 280ms var(--gp-ease), transform 280ms var(--gp-ease);
}

.gp-ruler-tick.is-leaving {
  opacity: 0;
  transform: scaleY(0.2);
}

@keyframes gp-tick-in {
  from {
    opacity: 0;
    transform: scaleY(0);
  }
}

/* The thumb gives one soft ring when the scale moves it. */
@keyframes gp-thumb-pulse {
  from {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 4px 12px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(150, 191, 230, 0.6);
  }

  to {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 4px 12px rgba(0, 0, 0, 0.35), 0 0 0 16px rgba(150, 191, 230, 0);
  }
}

.gp-ruler.is-pulsing .gp-ruler-input::-webkit-slider-thumb {
  animation: gp-thumb-pulse 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gp-ruler.is-pulsing .gp-ruler-input::-moz-range-thumb {
  animation: gp-thumb-pulse 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* The count under the thumb: a caret pointing at the thumb and the number
   below it, both following the thumb as it moves or glides. */
.gp-ruler-reading {
  position: relative;
  height: 32px;
  pointer-events: none;
}

.gp-ruler-caret {
  position: absolute;
  top: 0;
  width: 0;
  height: 0;
  margin-left: -6px;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--gp-sky);
  border-left: 6px solid transparent;
}

.gp-ruler-count {
  position: absolute;
  top: 6px;
  min-width: 44px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--gp-sky);
  color: var(--gp-navy);
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
  transform: translateX(-50%);
}

.gp-ruler-scale {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  margin: 2px calc(var(--gp-thumb) / 2 - 6px) 0;
  color: var(--gp-on-navy-2);
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Milestones line up with the track, which is inset by half a thumb; the
   scale row is inset 6px less. */
.gp-ruler-marks {
  position: absolute;
  inset: 0 6px;
  pointer-events: none;
}

.gp-ruler-mark {
  position: absolute;
  top: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 6px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--gp-on-navy-2);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transform: translateX(-50%);
  transition: opacity 240ms var(--gp-ease), color 160ms var(--gp-ease), background-color 160ms var(--gp-ease);
}

.gp-ruler-mark.is-shown {
  opacity: 1;
  pointer-events: auto;
  animation: gp-mark-in 320ms var(--gp-ease) both;
}

@keyframes gp-mark-in {
  from {
    opacity: 0;
    transform: translate(-50%, 4px);
  }
}

/* The 44px button is invisible; the pill inside is what reads as pressable. */
.gp-ruler-mark-value {
  padding: 2px 9px;
  border: 1px solid rgba(150, 191, 230, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  transition: background-color 160ms var(--gp-ease), border-color 160ms var(--gp-ease), color 160ms var(--gp-ease);
}

.gp-ruler-mark:hover .gp-ruler-mark-value {
  border-color: rgba(150, 191, 230, 0.6);
  background: rgba(255, 255, 255, 0.12);
  color: var(--gp-on-navy);
}

.gp-ruler-mark:active .gp-ruler-mark-value {
  transform: scale(0.96);
}

.gp-ruler-mark.is-current .gp-ruler-mark-value,
.gp-ruler-mark.is-now .gp-ruler-mark-value {
  border-color: var(--gp-sky);
  color: var(--gp-sky);
}

.gp-ruler-mark.is-blocked .gp-ruler-mark-value {
  border-style: dashed;
  color: rgba(195, 208, 224, 0.6);
  text-decoration: line-through;
}

.gp-ruler-mark-caption {
  margin-top: 1px;
  color: var(--gp-sky);
  font-size: 0.6875rem;
  font-weight: 800;
}

.gp-ruler.is-gliding .gp-ruler-fill {
  transition: none;
}

.gp-ruler.is-rescaling .gp-ruler-fill {
  transition: none;
}

.gp-ruler-chips {
  display: inline-flex;
  margin-left: auto;
  margin-right: 6px;
}

/* "+25" pops in beside the end number, holds, then lifts away. */
.gp-ruler-chip {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--gp-sky);
  color: var(--gp-navy);
  font-size: 0.6875rem;
  font-weight: 800;
  animation: gp-chip 1300ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.gp-ruler-chip.is-down {
  background: rgba(255, 255, 255, 0.16);
  color: var(--gp-on-navy);
}

@keyframes gp-chip {
  0% {
    opacity: 0;
    transform: translateY(5px) scale(0.7);
  }

  18% {
    opacity: 1;
    transform: translateY(0) scale(1.08);
  }

  30% {
    transform: scale(1);
  }

  78% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* The end number rolls like an odometer: the new value comes up from below as
   the old one leaves through the top, or the other way when it shrinks. */
.gp-ruler-end {
  display: inline-grid;
  justify-items: end;
  overflow: hidden;
  height: 1.3em;
  line-height: 1.3em;
}

.gp-ruler-end-value {
  grid-area: 1 / 1;
  animation: gp-roll-in-up 380ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.gp-ruler-end-value.is-down {
  animation-name: gp-roll-in-down;
}

.gp-ruler-end-value.is-leaving {
  animation: gp-roll-out-up 380ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.gp-ruler-end-value.is-leaving.is-down {
  animation-name: gp-roll-out-down;
}

.gp-ruler-end-value.is-still {
  animation: none;
}

@keyframes gp-roll-in-up {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
}

@keyframes gp-roll-in-down {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
}

@keyframes gp-roll-out-up {
  to {
    opacity: 0;
    transform: translateY(-100%);
  }
}

@keyframes gp-roll-out-down {
  to {
    opacity: 0;
    transform: translateY(100%);
  }
}

.gp-ruler-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

/* Each label carries its band's swatch, so the legend reads against the track
   even though the bands are not the same width. */
.gp-ruler-legend li {
  --gp-band: rgba(150, 191, 230, 0.42);
  position: relative;
  padding-top: 14px;
  color: var(--gp-on-navy-2);
  font-size: 0.8125rem;
  line-height: 1.35;
  transition: color 200ms var(--gp-ease);
}

.gp-ruler-legend li:nth-child(2) {
  --gp-band: rgba(150, 191, 230, 0.26);
}

.gp-ruler-legend li:nth-child(3) {
  --gp-band: rgba(150, 191, 230, 0.14);
}

.gp-ruler-legend li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 6px;
  border-radius: 999px;
  background: var(--gp-band);
  box-shadow: inset 0 0 0 1px rgba(150, 191, 230, 0.35);
  transition: width 220ms var(--gp-ease), background-color 220ms var(--gp-ease);
}

.gp-ruler-legend li.is-current::before {
  width: 44px;
  background: var(--gp-sky);
}

.gp-ruler-legend strong {
  display: block;
  color: var(--gp-on-navy);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.gp-ruler-legend li.is-current {
  color: var(--gp-on-navy);
}

.gp-meter .gp-help {
  color: var(--gp-on-navy-2);
}

.gp-breakdown {
  display: grid;
  gap: 4px;
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: var(--gp-radius-card);
  background: var(--gp-navy-raised);
  box-shadow: inset 0 0 0 1px var(--gp-on-navy-line);
  font-size: 0.9375rem;
}

.gp-breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.gp-breakdown dt {
  color: var(--gp-on-navy-2);
}

.gp-breakdown dd {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---- Included ------------------------------------------------------------ */

.gp-included {
  padding: 4px 4px 0;
}

.gp-included h2,
.gp-receipt h2,
.gp-account-title {
  font-family: var(--font-display, "Manrope", system-ui, sans-serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gp-ink);
}

.gp-feature-list {
  display: grid;
  gap: 10px 24px;
  margin: 16px 0;
}

.gp-feature-list li {
  display: flex;
  gap: 10px;
  color: var(--gp-ink);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.gp-feature-list .lucide-token {
  margin-top: 2px;
  color: #15803d;
}

.gp-help {
  margin-top: 6px;
  color: var(--gp-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.gp-help.is-error {
  color: var(--gp-danger);
  font-weight: 600;
}

/* ---- Add-ons ------------------------------------------------------------- */

/* Every row is a label around a visually hidden checkbox, so the whole row is
   one tap to add or remove. The pill only shows the checkbox's state. */
.gp-addons {
  padding: 16px;
  border: 1px solid var(--gp-line);
  border-radius: var(--gp-radius-card);
  background: var(--gp-surface);
  box-shadow: var(--gp-shadow-rest);
}

.gp-addons-head h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-family: var(--font-display, "Manrope", system-ui, sans-serif);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--gp-ink);
}

.gp-addons-head .gp-help {
  margin-top: 4px;
}

.gp-optional {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gp-line-soft);
  color: var(--gp-text-2);
  font-family: var(--font-ui, "Inter", system-ui, sans-serif);
  font-size: 0.75rem;
  font-weight: 700;
}

.gp-addon-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.gp-addon {
  border: 1px solid var(--gp-line);
  border-radius: var(--gp-radius-card);
  background: var(--gp-surface);
  transition: border-color 160ms var(--gp-ease), background-color 160ms var(--gp-ease), box-shadow 160ms var(--gp-ease);
}

.gp-addon:hover {
  border-color: var(--gp-hover-line);
}

.gp-addon:has(.gp-addon-check:checked) {
  border-color: var(--gp-blue);
  background: var(--gp-selected-bg);
  box-shadow: inset 0 0 0 1px var(--gp-blue);
}

/* Checked and disabled: carried by the chosen package. */
.gp-addon:has(.gp-addon-check:disabled) {
  border-color: var(--gp-line);
  background: var(--gp-canvas);
  box-shadow: none;
}

/* Phones: the price and the pill take their own line under the text. */
.gp-addon-head {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-areas:
    "icon text"
    "side side";
  gap: 10px;
  padding: 12px 14px;
  border-radius: inherit;
  cursor: pointer;
}

.gp-addon-head:has(.gp-addon-check:focus-visible) {
  outline: 2px solid var(--gp-focus);
  outline-offset: 2px;
}

.gp-addon-head:has(.gp-addon-check:disabled) {
  cursor: default;
}

.gp-addon-check {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.gp-addon-icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--gp-radius-control);
  background: var(--gp-icon-bg);
  color: var(--gp-blue);
}

.gp-addon-text {
  grid-area: text;
  display: grid;
  gap: 2px;
  min-width: 0;
}

.gp-addon-name {
  font-weight: 700;
  color: var(--gp-ink);
}

.gp-addon-note {
  color: var(--gp-muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.gp-addon-limit {
  white-space: nowrap;
}

.gp-addon.is-blocked .gp-addon-limit {
  color: var(--gp-warning-text);
  font-weight: 600;
}

.gp-addon-saving {
  display: block;
  color: var(--gp-good);
  font-weight: 600;
}

.gp-addon-side {
  grid-area: side;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gp-addon-price {
  color: var(--gp-ink);
  font-size: 0.9375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.gp-addon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--gp-blue);
  border-radius: 999px;
  color: var(--gp-blue);
  font-size: 0.875rem;
  font-weight: 700;
  transition: background-color 160ms var(--gp-ease), color 160ms var(--gp-ease), border-color 160ms var(--gp-ease);
}

.gp-addon-pill > span {
  display: none;
  align-items: center;
  gap: 6px;
}

.gp-addon-pill .gp-addon-pill-add {
  display: inline-flex;
}

.gp-addon-head:hover .gp-addon-pill {
  background: var(--gp-icon-bg);
}

.gp-addon:has(.gp-addon-check:checked) .gp-addon-pill {
  background: var(--gp-action);
  color: #fff;
}

.gp-addon:has(.gp-addon-check:checked) .gp-addon-pill-add {
  display: none;
}

.gp-addon:has(.gp-addon-check:checked) .gp-addon-pill-added {
  display: inline-flex;
  animation: gp-pop 220ms var(--gp-ease);
}

.gp-addon:has(.gp-addon-check:disabled) .gp-addon-pill {
  border-color: var(--gp-line);
  background: transparent;
  color: var(--gp-text-2);
}

.gp-addon:has(.gp-addon-check:disabled) .gp-addon-pill-added {
  display: none;
}

.gp-addon:has(.gp-addon-check:disabled) .gp-addon-pill-included {
  display: inline-flex;
}

@keyframes gp-pop {
  from {
    transform: scale(0.9);
  }
}

/* The tier picker opens inside the row once an integration is added. */
.gp-addon-tiers {
  padding: 0 14px 14px;
}

.gp-tier-group {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.gp-tier-group legend {
  margin-bottom: 6px;
  padding: 0;
  color: var(--gp-text-2);
  font-size: 0.8125rem;
  font-weight: 700;
}

.gp-tier-option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: start;
  gap: 2px 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--gp-line);
  border-radius: var(--gp-radius-control);
  background: var(--gp-surface);
  cursor: pointer;
  transition: border-color 160ms var(--gp-ease), background-color 160ms var(--gp-ease);
}

.gp-tier-option input {
  grid-row: 1 / span 2;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--gp-blue);
  cursor: inherit;
}

.gp-tier-option:has(input:checked) {
  border-color: var(--gp-blue);
  background: var(--gp-selected-bg);
}

.gp-tier-option:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.55;
}

.gp-tier-option-name {
  color: var(--gp-ink);
  font-weight: 700;
}

.gp-tier-option-price {
  color: var(--gp-ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.gp-tier-option-fact {
  grid-column: 2 / -1;
  color: var(--gp-muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.gp-tier-note {
  margin-top: 8px;
  color: var(--gp-danger);
  font-size: 0.875rem;
  font-weight: 600;
}

/* The package offer appears when one beats what has been added so far. */
.gp-offer {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px 12px;
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--gp-good-line);
  border-radius: var(--gp-radius-card);
  background: var(--gp-good-bg);
}

.gp-offer-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--gp-radius-control);
  background: var(--gp-good-chip);
  color: var(--gp-good);
}

.gp-offer-text {
  align-self: center;
  color: var(--gp-ink);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
}

.gp-offer-button {
  grid-column: 2;
  justify-self: start;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--gp-good);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 160ms var(--gp-ease);
}

.gp-offer-button:hover {
  background: var(--gp-good-hover);
}

.gp-receipt-offer {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px solid var(--gp-good-line);
  border-radius: var(--gp-radius-control);
  background: var(--gp-good-bg);
  color: var(--gp-good);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms var(--gp-ease);
}

.gp-receipt-offer:hover {
  background: var(--gp-good-chip);
}

.gp-singles {
  margin-top: 4px;
}

.gp-group-title {
  margin-top: 20px;
  color: var(--gp-ink);
  font-size: 1rem;
  font-weight: 800;
}

.gp-group-title + .gp-help {
  margin-top: 2px;
}

.gp-packages .gp-addon-list,
.gp-singles .gp-addon-list {
  margin-top: 10px;
}

/* The recommended package: a badge and a tinted card, kept apart from the
   chosen state, which is the solid blue border. */
.gp-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gp-action);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  vertical-align: 2px;
}

.gp-addon.is-featured {
  border-color: var(--gp-featured-line);
  background: var(--gp-featured-bg);
}

.gp-addon-highlight {
  display: block;
  margin-top: 2px;
  color: var(--gp-blue-deep);
  font-weight: 600;
}

/* ---- Checkout card ------------------------------------------------------ */

.gp-checkout {
  min-width: 0;
}

.gp-checkout-card {
  display: grid;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--gp-line);
  border-radius: var(--gp-radius-panel);
  background: var(--gp-surface);
  box-shadow: var(--gp-shadow-raised);
}

.gp-receipt-lines {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.9375rem;
}

.gp-receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.gp-receipt-row dt {
  color: var(--gp-text-2);
}

.gp-receipt-row dd {
  color: var(--gp-ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.gp-receipt-row.is-discount dd,
.gp-receipt-row.is-discount dt {
  color: #15803d;
}

.gp-coupon {
  margin-top: 12px;
}

.gp-link-button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gp-blue);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.gp-coupon-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gp-text-2);
}

.gp-coupon-row {
  display: flex;
  gap: 8px;
}

.gp-coupon-row .gp-input {
  flex: 1;
  min-width: 0;
  text-transform: uppercase;
}

.gp-secondary-button {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--gp-line);
  border-radius: var(--gp-radius-control);
  background: var(--gp-surface);
  color: var(--gp-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.gp .gp-secondary-button {
  color: var(--gp-ink);
  text-decoration: none;
}

.gp-secondary-button:hover {
  border-color: var(--gp-hover-line);
  background: var(--gp-canvas);
}

.gp-due {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed #cbd5e1;
}

.gp-due-label {
  font-weight: 800;
  color: var(--gp-ink);
}

.gp-due-amount {
  font-family: var(--font-display, "Manrope", system-ui, sans-serif);
  font-size: 1.75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--gp-ink);
}

.gp-renewal {
  margin-top: 4px;
  color: var(--gp-muted);
  font-size: 0.875rem;
  text-align: right;
}

.gp-checking {
  min-height: 1.25rem;
  margin-top: 4px;
  color: var(--gp-muted);
  font-size: 0.8125rem;
  text-align: right;
}

.gp-checking > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gp-account {
  display: grid;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--gp-line-soft);
}

.gp-account legend {
  float: left;
  width: 100%;
  padding: 0;
}

.gp-account legend + * {
  clear: both;
}

.gp-error-summary {
  padding: 12px 16px;
  border: 1px solid var(--gp-danger-line);
  border-radius: var(--gp-radius-control);
  background: var(--gp-danger-soft);
  color: var(--gp-danger);
  font-size: 0.9375rem;
  font-weight: 600;
}

.gp-error-summary ul {
  display: grid;
  gap: 4px;
  margin-top: 6px;
}

.gp-error-summary a {
  color: var(--gp-danger);
}

.gp-field {
  display: grid;
  gap: 6px;
}

.gp-field > label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--gp-ink);
}

.gp-field .gp-help {
  margin-top: 0;
}

.gp-input,
.gp-select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #b6c4d6;
  border-radius: var(--gp-radius-control);
  background: var(--gp-surface);
  color: var(--gp-ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 160ms var(--gp-ease), box-shadow 160ms var(--gp-ease);
}

.gp-input:hover,
.gp-select:hover {
  border-color: #8aa0ba;
}

.gp-input:focus,
.gp-select:focus {
  border-color: var(--gp-blue);
  outline: 2px solid var(--gp-focus);
  outline-offset: 0;
}

.gp-input[aria-invalid="true"] {
  border-color: var(--gp-danger);
}

.gp-input[aria-invalid="true"]:focus {
  outline-color: #e11d48;
}

.gp-password {
  position: relative;
}

.gp-password .gp-input {
  padding-right: 80px;
}

.gp-reveal {
  position: absolute;
  top: 2px;
  right: 2px;
  bottom: 2px;
  min-width: 72px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--gp-blue);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
}

.gp-reveal:hover {
  background: var(--gp-canvas);
}

.gp-field-error {
  color: var(--gp-danger);
  font-size: 0.875rem;
  font-weight: 600;
}

.gp-details {
  border: 1px solid var(--gp-line);
  border-radius: var(--gp-radius-control);
}

.gp-details summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 12px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.gp-details summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 2px solid var(--gp-muted);
  border-bottom: 2px solid var(--gp-muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 200ms var(--gp-ease);
}

.gp-details[open] summary::after {
  transform: rotate(-135deg) translateY(-2px);
}

.gp-details-body {
  display: grid;
  gap: 16px;
  padding: 4px 12px 16px;
}

.gp-terms {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: start;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.gp-terms input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--gp-blue);
  cursor: pointer;
}

.gp-terms .gp-field-error {
  grid-column: 2;
}

.gp-terms.is-invalid input {
  outline: 2px solid var(--gp-danger);
  outline-offset: 2px;
}

.gp-block {
  padding: 12px 16px;
  border: 1px solid var(--gp-warning-line);
  border-radius: var(--gp-radius-control);
  background: var(--gp-warning-soft);
  color: var(--gp-warning-text);
  font-size: 0.9375rem;
  font-weight: 600;
}

.mb-retry {
  gap: 8px;
  justify-self: start;
}

.mb-extra-seats {
  display: block;
  margin-top: 2px;
  color: var(--gp-text-2);
  font-weight: 600;
}

.gp-pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--gp-action);
  color: #fff;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(0, 87, 186, 0.8);
  transition: background-color 160ms var(--gp-ease), transform 120ms var(--gp-ease), box-shadow 160ms var(--gp-ease);
}

.gp-pay:hover {
  background: var(--gp-action-hover);
}

.gp-pay:active {
  transform: scale(0.985);
}

.gp-pay:disabled {
  cursor: progress;
}

.gp-pay[aria-disabled="true"]:not(:disabled) {
  background: #4f6d93;
  box-shadow: none;
}

.gp-pay-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gp-spin {
  animation: gp-spin 900ms linear infinite;
}

@keyframes gp-spin {
  to {
    transform: rotate(360deg);
  }
}

.gp-assurance {
  display: flex;
  gap: 10px;
  color: var(--gp-text-2);
  font-size: 0.875rem;
  line-height: 1.5;
}

.gp-assurance .lucide-token {
  margin-top: 2px;
  color: #15803d;
}

.gp-after {
  margin-top: -8px;
  color: var(--gp-muted);
  font-size: 0.875rem;
}

/* ---- Phone total bar ---------------------------------------------------- */

.gp-mobile-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--gp-line);
  background: var(--gp-bar-bg);
  box-shadow: 0 -8px 24px -12px rgba(15, 23, 42, 0.25);
}

.gp-mobile-label {
  color: var(--gp-muted);
  font-size: 0.8125rem;
  font-weight: 700;
}

.gp-mobile-amount {
  font-family: var(--font-display, "Manrope", system-ui, sans-serif);
  font-size: 1.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.gp-pay-compact {
  width: auto;
  min-height: 48px;
  padding: 0 28px;
}

/* ---- Footer ------------------------------------------------------------- */

.gp-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--gp-line);
  color: var(--gp-muted);
  font-size: 0.875rem;
}

.gp-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.gp-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--gp-text-2);
}

/* ---- Larger screens ------------------------------------------------------ */

@media (min-width: 420px) {
  .gp-interval label {
    flex-direction: row;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
  }
}

@media (min-width: 560px) {
  .gp-addons {
    padding: 20px;
  }

  .gp-reset {
    padding: 0 14px 0 12px;
  }

  .gp-reset-label {
    display: inline;
  }

  .gp-addon-head {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    grid-template-areas: "icon text side";
    align-items: center;
    gap: 8px 12px;
    padding: 14px 16px;
  }

  .gp-addon-icon {
    width: 40px;
    height: 40px;
  }

  .gp-addon-side {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }

  .gp-addon-tiers {
    padding-left: 68px;
  }
}

@media (min-width: 640px) {
  .gp {
    padding: 20px 24px 120px;
  }

  .gp-top-note {
    display: inline-flex;
  }

  .gp-signin {
    margin-left: 0;
  }

  .gp-meter {
    padding: 28px;
  }

  .gp-intro h1 {
    font-size: 2.375rem;
  }

  .gp-price-amount,
  .gp-price-amount.is-long {
    font-size: 3.5rem;
  }

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

  .gp-checkout-card {
    padding: 24px;
  }
}

@media (min-width: 1024px) {
  .gp {
    padding: 24px 32px 48px;
  }

  .gp-top {
    padding-bottom: 32px;
  }

  .gp-intro {
    margin-bottom: 32px;
  }

  .gp-intro h1 {
    font-size: 2.75rem;
  }

  .gp-grid {
    grid-template-columns: minmax(0, 1fr) 420px;
    align-items: start;
    gap: 32px;
  }

  /* Not sticky: the card is taller than most screens, and a sticky card would
     hold its own pay button below the fold. */

  .gp-mobile-bar {
    display: none !important;
  }
}

/* ---- Signed-in billing page --------------------------------------------- */

/* Inside the app shell the page sits in the content column, so it drops the
   guest page's outer padding and lays out by the width it actually has. */
.gp.mb {
  max-width: 1240px;
  margin: 0;
  padding: 0 0 112px;
  container-type: inline-size;
  color: var(--gp-ink);
}

.mb .gp-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.mb-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 16px;
}

.mb-head h1 {
  font-family: var(--font-display, "Manrope", system-ui, sans-serif);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--gp-ink);
}

.mb-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--gp-line-soft);
  color: var(--gp-text-2);
  font-size: 0.875rem;
  font-weight: 700;
}

.mb-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.mb-status.is-ok {
  background: var(--gp-good-chip);
  color: var(--gp-good);
}

.mb-status.is-warning {
  background: var(--gp-warning-soft);
  color: var(--gp-warning-text);
}

.mb-status.is-info {
  background: var(--gp-icon-bg);
  color: var(--gp-blue);
}

.gp-notice-success {
  border-color: var(--gp-good-line);
  background: var(--gp-good-bg);
  color: var(--gp-good);
}

.mb-notice-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mb-notice-action p {
  flex: 1 1 280px;
}

.mb-unpaid {
  margin-bottom: 16px;
}

.mb-inline-notice {
  margin-top: 12px;
}

.mb-portal-form {
  display: inline-flex;
}

.mb-now-note {
  margin-top: 12px;
  color: var(--gp-text-2);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.mb-now-note.is-muted {
  color: var(--gp-muted);
  font-size: 0.875rem;
}

.mb-setup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gp-line-soft);
}

.mb-setup-label {
  color: var(--gp-text-2);
  font-size: 0.875rem;
  font-weight: 700;
}

.mb-setup-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--gp-icon-bg);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

/* How the new price compares with today's, inside the navy meter. */
.mb-delta {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  animation: gp-pop 220ms var(--gp-ease);
}

.mb-delta.is-up {
  background: rgba(150, 191, 230, 0.18);
  color: var(--gp-on-navy);
}

.mb-delta.is-down {
  background: rgba(134, 239, 172, 0.16);
  color: #bbf7d0;
}

.mb-delta-base {
  color: var(--gp-on-navy-2);
  font-weight: 600;
}

/* Counts below the active tenants: amber stripes over the track, brighter
   while the warning is up. */
.mb-floor {
  position: absolute;
  top: 17px;
  left: calc(var(--gp-thumb) / 2);
  height: 10px;
  border-radius: 999px 0 0 999px;
  background: repeating-linear-gradient(135deg, rgba(251, 191, 36, 0.45) 0 3px, transparent 3px 7px);
  pointer-events: none;
  transition: background-color 200ms var(--gp-ease);
}

.mb-floor.is-alert {
  background-color: rgba(251, 191, 36, 0.25);
  background-image: repeating-linear-gradient(135deg, rgba(251, 191, 36, 0.95) 0 3px, transparent 3px 7px);
}

/* The warning for going below the active tenants: amber on the navy panel,
   so it is the brightest thing there. */
.mb-floor-alert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  margin-top: 14px;
  padding: 12px 6px 12px 14px;
  border: 1px solid #fcd34d;
  border-left: 5px solid #f59e0b;
  border-radius: 12px;
  background: #fffbeb;
  color: #78350f;
  font-size: 0.875rem;
  line-height: 1.45;
  box-shadow: 0 10px 28px -14px rgba(245, 158, 11, 0.85);
}

.mb-floor-alert.is-shaking {
  animation: mb-floor-shake 460ms cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes mb-floor-shake {
  15%,
  85% {
    transform: translateX(-2px);
  }

  30%,
  70% {
    transform: translateX(5px);
  }

  45%,
  55% {
    transform: translateX(-6px);
  }
}

.mb-floor-enter {
  transition: opacity 220ms var(--gp-ease), transform 220ms var(--gp-ease);
}

.mb-floor-leave {
  transition: opacity 160ms var(--gp-ease), transform 160ms var(--gp-ease);
}

.mb-floor-hidden {
  opacity: 0;
  transform: translateY(-6px);
}

.mb-floor-alert-icon {
  margin-top: 1px;
  color: #b45309;
  font-size: 1.125rem;
}

.mb-floor-alert-title {
  color: #92400e;
  font-size: 0.9375rem;
  font-weight: 800;
}

.gp .mb-floor-alert-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #92400e;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mb-floor-alert-close {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -10px 0 -10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #92400e;
  cursor: pointer;
}

.mb-floor-alert-close:hover {
  background: rgba(245, 158, 11, 0.15);
}

.gp-meter .mb-floor-alert :where(a, button):focus-visible {
  outline-color: #b45309;
}

/* "Now" is a fixed pin on the ruler where the plan is today; the thumb moves
   away from it. */
.mb-now {
  position: absolute;
  top: 9px;
  z-index: 0;
  width: 2px;
  height: 26px;
  margin-left: -1px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.75);
  pointer-events: none;
}

.mb-now-label {
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-bottom: 2px;
  transform: translateX(-50%);
  color: var(--gp-sky);
  font-size: 0.6875rem;
  font-weight: 800;
  white-space: nowrap;
}

.mb-current-tag {
  display: inline-flex;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gp-line-soft);
  color: var(--gp-text-2);
  font-size: 0.75rem;
  font-weight: 700;
  vertical-align: 2px;
}

.mb-invoices {
  display: grid;
  border-top: 1px solid var(--gp-line-soft);
}

.mb-invoice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 12px;
  min-height: 52px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gp-line-soft);
}

.mb-invoice-main {
  display: grid;
  min-width: 0;
}

.mb-invoice-main small {
  color: var(--gp-muted);
  font-size: 0.8125rem;
}

.mb-invoice-amount {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.mb-invoice-status {
  color: var(--gp-muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.mb-invoice-status.is-unpaid {
  color: var(--gp-danger);
}

/* The receipt: now against new, what changes and when, and what is due. */
.mb-receipt-empty {
  margin-top: 6px;
  color: var(--gp-muted);
  font-size: 0.9375rem;
}

.mb-compare small {
  color: var(--gp-muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.mb-compare-new dt,
.mb-compare-new dd {
  color: var(--gp-blue);
  font-weight: 800;
}

.mb-changes {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gp-line-soft);
}

.mb-change {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  animation: gp-pop 220ms var(--gp-ease);
}

.mb-change-main {
  display: grid;
  min-width: 0;
}

.mb-change-main strong {
  color: var(--gp-ink);
  font-size: 0.9375rem;
}

.mb-change-main small {
  color: var(--gp-text-2);
  font-size: 0.875rem;
}

.mb-change-timing {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gp-icon-bg);
  color: var(--gp-blue);
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.mb-change-timing.is-later {
  background: var(--gp-line-soft);
  color: var(--gp-text-2);
}

.mb-discount {
  margin-top: 10px;
  color: var(--gp-good);
  font-size: 0.875rem;
  font-weight: 600;
}

.mb-due-note {
  margin-top: 4px;
  color: var(--gp-text-2);
  font-size: 0.875rem;
}

.mb-status-check {
  width: 100%;
  margin-top: 8px;
}

/* "Calculating" or "Not available" where an amount would be. */
.mb .gp-due-amount.is-text,
.mb .gp-mobile-amount.is-text {
  color: var(--gp-text-2);
  font-size: 1.125rem;
}

/* The app's support button sits in the bottom right corner on phones. */
.mb .gp-mobile-bar {
  padding-right: 84px;
}

/* Title and status on the left, the Plan / Invoices switch on the right. */
.mb-head-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.mb-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--gp-line-soft);
}

.mb-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--gp-text-2);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms var(--gp-ease), color 160ms var(--gp-ease), box-shadow 160ms var(--gp-ease);
}

.gp .mb-tab {
  color: var(--gp-text-2);
}

.gp .mb-tab:hover {
  color: var(--gp-ink);
}

.gp .mb-tab.is-current {
  background: var(--gp-surface);
  color: var(--gp-ink);
  box-shadow: var(--gp-shadow-rest);
}

.mb-tab-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--gp-danger);
  color: var(--gp-surface);
  font-size: 0.75rem;
  font-weight: 800;
}

/* Exactly what the account pays for, on one line. */
.mb-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid var(--gp-line);
  border-radius: var(--gp-radius-card);
  background: var(--gp-surface);
  box-shadow: var(--gp-shadow-rest);
}

.mb-summary-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.mb-summary-item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-height: 32px;
  padding: 5px 12px;
  border: 1px solid var(--gp-line);
  border-radius: 999px;
  color: var(--gp-ink);
  font-size: 0.875rem;
  font-weight: 700;
}

.mb-summary-item.is-core {
  border-color: transparent;
  background: var(--gp-navy);
  color: var(--gp-on-navy);
}

.mb-summary-item.is-package {
  border-color: var(--gp-featured-line);
  background: var(--gp-selected-bg);
  color: var(--gp-blue-deep);
}

.mb-summary-item.is-other {
  color: var(--gp-text-2);
}

.mb-summary-detail {
  color: var(--gp-muted);
  font-weight: 600;
}

.mb-summary-item.is-core .mb-summary-detail {
  color: var(--gp-on-navy-2);
}

.mb-summary-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 6px;
  color: var(--gp-text-2);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.mb-summary-price strong {
  color: var(--gp-ink);
  font-size: 1.0625rem;
}

.mb-summary-next {
  flex-basis: 100%;
}

/* Beside the price once there is room; on a phone it takes its own line. */
@container (min-width: 560px) {
  .mb-summary-next {
    flex-basis: auto;
    margin-left: 6px;
    padding-left: 12px;
    border-left: 1px solid var(--gp-line);
  }
}

.mb-summary-empty {
  color: var(--gp-text-2);
  font-size: 0.9375rem;
}

.mb-summary-empty strong {
  color: var(--gp-ink);
}

.mb-summary-notes {
  display: grid;
  gap: 8px;
  margin: -6px 0 16px;
  color: var(--gp-text-2);
  font-size: 0.875rem;
  line-height: 1.5;
}

.mb-usage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.mb-usage .lucide-token {
  color: var(--gp-blue);
}

.mb-usage-meter {
  position: relative;
  flex: 0 0 120px;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--gp-line-soft);
}

.mb-usage-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: var(--gp-blue);
}

.mb-summary-notes .mb-setup {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* ---- Invoices page ------------------------------------------------------- */

.mb-card {
  padding: 16px;
  border: 1px solid var(--gp-line);
  border-radius: var(--gp-radius-card);
  background: var(--gp-surface);
  box-shadow: var(--gp-shadow-rest);
}

.mb-card h2 {
  font-family: var(--font-display, "Manrope", system-ui, sans-serif);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--gp-ink);
}

.mb-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 8px;
}

.mb-invoices-layout {
  display: grid;
  gap: 16px;
  align-items: start;
}

.mb-payment {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.mb-payment-method {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gp-ink);
  font-size: 1rem;
  font-weight: 700;
}

.mb-payment-meta {
  color: var(--gp-muted);
  font-size: 0.875rem;
}

.mb-next-invoice {
  width: 100%;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--gp-line-soft);
}

.mb-next-invoice h3 {
  color: var(--gp-muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.mb-next-amount {
  margin-top: 2px;
  color: var(--gp-ink);
  font-size: 1.375rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.mb-invoice.is-unpaid .mb-invoice-amount {
  color: var(--gp-danger);
}

.mb-invoice-pay.gp-pay {
  width: auto;
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.9375rem;
}

.mb-invoice-link {
  justify-self: end;
}

/* View or Pay, then the invoice PDF when Stripe has one, on the right of the row. */
.mb-invoice-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 4px 12px;
}

.mb-history-note {
  margin-top: 10px;
}

.mb-invoices-empty {
  display: grid;
  justify-items: start;
  gap: 8px;
  max-width: 560px;
}

.mb-invoices-empty p {
  color: var(--gp-text-2);
}

.mb-empty-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--gp-radius-control);
  background: var(--gp-icon-bg);
  color: var(--gp-blue);
}

@container (min-width: 880px) {
  .mb-invoices-layout {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .mb-invoice {
    grid-template-columns: minmax(0, 1fr) 120px 110px minmax(88px, auto);
  }

  .mb-invoice-amount {
    text-align: right;
  }
}

@media (min-width: 640px) {
  .mb-card {
    padding: 20px;
  }
}

/* Two columns once the content column has room for both, whatever the
   sidebar takes. */
@container (min-width: 880px) {
  .mb .gp-grid {
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: start;
  }

  .mb .gp-mobile-bar {
    display: none !important;
  }
}

@media (min-width: 640px) {
  .mb-head h1 {
    font-size: 2rem;
  }
}

/* The app's dark theme. The guest page stays light. */
.dark .gp.mb {
  --gp-ink: #e6edf6;
  --gp-text-2: #b6c3d4;
  --gp-muted: #8b9bb0;
  --gp-line: #22344b;
  --gp-line-soft: #1a2a3e;
  --gp-canvas: #0d1828;
  --gp-surface: #101e31;
  --gp-blue: #7fb2ec;
  --gp-blue-hover: #a9cbf3;
  --gp-blue-deep: #cfe0f6;
  --gp-blue-soft: #1d3555;
  --gp-hover-line: #34506f;
  --gp-selected-bg: #13294a;
  --gp-icon-bg: #17304f;
  --gp-good: #86efac;
  --gp-good-hover: #4ade80;
  --gp-good-bg: #0f2a1d;
  --gp-good-line: #1f5236;
  --gp-good-chip: #123622;
  --gp-featured-bg: #12243b;
  --gp-featured-line: #3b6ea8;
  --gp-warning-text: #fcd34d;
  --gp-warning-soft: #2b2110;
  --gp-warning-line: #6b5216;
  --gp-danger: #fca5a5;
  --gp-danger-soft: #2c1414;
  --gp-danger-line: #6b2626;
  --gp-bar-bg: rgba(16, 30, 49, 0.97);
  --gp-action: #2563b8;
  --gp-action-hover: #1d4f94;
  --gp-navy: #050e1b;
  --gp-navy-raised: #0a1626;
  --gp-shadow-rest: 0 1px 2px rgba(0, 0, 0, 0.4);
  --gp-shadow-raised: 0 16px 40px -20px rgba(0, 0, 0, 0.7);
}

.dark .gp.mb .gp-offer-button {
  background: #1f7a45;
  color: #fff;
}

/* ---- Preferences -------------------------------------------------------- */

/* No prefers-reduced-motion override: the owner chose (2026-10-11) to play the
   page's motion for everyone. It is short, answers the visitor's own actions
   and never loops. */

@media (forced-colors: active) {
  .gp-addon:has(.gp-addon-check:checked) {
    outline: 2px solid Highlight;
  }

  .gp-meter,
  .gp-checkout-card,
  .gp-addons,
  .gp-interval {
    border: 1px solid CanvasText;
  }

  .gp-ruler-track {
    border: 1px solid CanvasText;
  }

  .gp-ruler-fill {
    background: Highlight;
  }

  .gp-interval input:checked + label {
    outline: 2px solid Highlight;
  }

  .gp :where(a, button, input, select, summary):focus-visible {
    outline-color: Highlight;
  }
}

@media print {
  .gp-mobile-bar,
  .gp-pay,
  .gp-signin {
    display: none !important;
  }

  .gp-meter {
    background: none;
    color: #000;
    box-shadow: none;
    border: 1px solid #000;
  }
}
