/* HaulPass billing — dark theme to match yourhaulpass.com */
:root {
  --bg: #0a0c10;
  --surface: #11151c;
  --surface-2: #171c26;
  --line: #232b38;
  --line-soft: #1a212c;
  --ink: #eef2f8;
  --muted: #8a97a9;
  --accent: #0878f9;
  --accent-hi: #3b93ff;
  --accent-soft: #0878f924;
  --orange: #f3a33b;
  --danger: #ff7a70;
  --paper: #ffffff;       /* Stripe's embedded form is light, so its frame stays white */
  --paper-ink: #0b1628;
  --paper-muted: #5b6b7f;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 50% -80px, #0878f92e, transparent 70%),
    radial-gradient(600px 300px at 100% 20%, #f3a33b0d, transparent 70%),
    var(--bg);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px max(5vw, 24px);
  color: var(--ink);
  background: #0a0c10d9;
  border-bottom: 1px solid var(--line-soft);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.header-logo {
  display: block;
  width: 190px;
  height: 40px;
  object-fit: contain;
  object-position: left center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  font-size: 19px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  color: var(--bg);
  background: var(--orange);
  font-weight: 900;
}

.header-label,
.header-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.header-link {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.header-link:hover {
  color: var(--ink);
  border-color: #334052;
  background: var(--surface);
}

/* ---------- Layout ---------- */

main {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 64px 28px 56px;
}

.intro {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}

.eyebrow,
.plan-label {
  margin: 0 0 12px;
  color: var(--accent-hi);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid #0878f94d;
  border-radius: 999px;
  background: var(--accent-soft);
}

h1 {
  margin: 0;
  font-size: clamp(32px, 5.4vw, 52px);
  letter-spacing: -1.8px;
  line-height: 1.08;
}

h1 em {
  font-style: italic;
  font-weight: 700;
  background: linear-gradient(100deg, var(--accent-hi), #7cc0ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent-hi);
}

.intro-copy {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

/* ---------- Plan cards ---------- */

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 28px 26px 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 55%);
  box-shadow: 0 1px 0 #ffffff08 inset, 0 18px 40px #00000040;
  transition: transform 160ms ease, border-color 160ms ease;
}

.plan-grid .plan-card:hover {
  transform: translateY(-3px);
  border-color: #334052;
}

.plan-card.featured {
  border-color: var(--accent);
  background:
    radial-gradient(420px 200px at 50% -40px, #0878f933, transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface) 60%);
  box-shadow: 0 0 0 1px #0878f966, 0 22px 54px #0878f91f;
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  padding: 5px 14px;
  border-radius: 999px;
  color: #0a0c10;
  background: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
}

.plan-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
}

.plan-heading h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.5px;
  line-height: 1.3;
}

.price {
  margin: 26px 0 22px;
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -2.4px;
  line-height: 1;
  white-space: nowrap;
}

.currency {
  margin-right: 2px;
  font-size: 24px;
  vertical-align: 14px;
  color: var(--muted);
}

.period {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

.plan-includes {
  display: grid;
  gap: 13px;
  min-height: 76px;
  margin-bottom: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.plan-includes p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: #cdd6e3;
  font-size: 13.5px;
  line-height: 1.5;
}

.check {
  display: inline-grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  margin-top: 1px;
  border-radius: 50%;
  color: var(--accent-hi);
  background: var(--accent-soft);
  font-size: 11px;
  font-weight: 800;
}

/* ---------- Buttons ---------- */

.plan-button {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 12px 16px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 22px #0878f940;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

a.plan-button:hover,
button.plan-button:hover:not(:disabled) {
  background: #1d86ff;
  box-shadow: 0 10px 28px #0878f95c;
  transform: translateY(-1px);
}

.plan-button:focus-visible,
.brand:focus-visible,
.header-link:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.plan-button:disabled {
  color: var(--muted);
  background: var(--surface-2);
  box-shadow: none;
  cursor: not-allowed;
}

.plan-button.secondary {
  color: var(--ink);
  background: transparent;
  border: 1px solid #334052;
  box-shadow: none;
}

a.plan-button.secondary:hover,
button.plan-button.secondary:hover:not(:disabled) {
  background: var(--surface-2);
  box-shadow: none;
}

.plan-button[hidden] {
  display: none;
}

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

.addon-section {
  margin-top: 56px;
}

.addon-section h2 {
  margin: 0 0 6px;
  font-size: 26px;
  letter-spacing: -0.8px;
  text-align: center;
}

.addon-section > p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.addon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.addon-card {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color 160ms ease;
}

.addon-card:hover {
  border-color: #334052;
}

.addon-card strong {
  display: block;
  font-size: 14px;
}

.addon-card .addon-price {
  margin-top: 8px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -1px;
}

.addon-card .addon-price span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.addon-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

/* ---------- Enterprise ---------- */

.enterprise-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 56px;
  padding: 30px 32px;
  border: 1px solid #0878f94d;
  border-radius: 18px;
  color: var(--ink);
  background:
    radial-gradient(500px 220px at 0% 0%, #0878f92b, transparent 70%),
    var(--surface);
}

.enterprise-card .plan-label {
  color: var(--orange);
}

.enterprise-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: -0.7px;
}

.enterprise-card p:last-child {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.enterprise-card .plan-button {
  width: auto;
  flex: 0 0 auto;
  margin-top: 0;
  padding: 12px 22px;
}

/* ---------- Notes ---------- */

.setup-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.setup-note code {
  color: var(--ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
}

.secure-note {
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.secure-note span {
  margin-right: 5px;
  color: #34d399;
  font-size: 10px;
}

/* ---------- Success page ---------- */

.success-card {
  width: min(560px, 100%);
  margin: 24px auto 0;
  padding: 44px 34px 34px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 60%);
  box-shadow: 0 24px 60px #00000055;
  text-align: center;
}

.success-icon {
  display: inline-grid;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 50%;
  color: #34d399;
  background: #34d3991f;
  box-shadow: 0 0 0 8px #34d3990d;
  font-size: 28px;
  font-weight: 800;
}

.success-steps {
  display: grid;
  gap: 14px;
  margin: 28px 0;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--bg);
  text-align: left;
}

.success-steps p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #cdd6e3;
  font-size: 13.5px;
  line-height: 1.5;
}

.success-card .plan-button {
  width: auto;
  display: inline-flex;
  padding: 12px 34px;
}

.success-help {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.success-help a {
  color: var(--accent-hi);
  font-weight: 700;
}

/* ---------- Cart / checkout ---------- */

.checkout-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  width: min(1040px, 100%);
}

.cart-card {
  padding: 32px;
}

.plan-grid .cart-card:hover,
.cart-card:hover {
  transform: none;
}

.cart-head {
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.cart-head .plan-label {
  color: var(--accent-hi);
}

.cart-title {
  margin: 0;
  font-size: 30px;
  letter-spacing: -1.1px;
}

.cart-sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
  gap: 28px;
  align-items: start;
}

.cart-items {
  display: grid;
  gap: 10px;
}

.cart-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line strong {
  display: block;
  font-size: 14px;
}

.cart-line small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.cart-items .cart-line {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}

.cart-items .cart-line.cart-plan {
  border-color: #0878f980;
  background:
    linear-gradient(100deg, #0878f91f, transparent 70%),
    var(--surface-2);
}

.cart-plan strong {
  font-size: 16px;
}

.cart-plan .cart-amount {
  font-size: 18px;
}

.cart-amount {
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.cart-subhead {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.cart-summary {
  position: sticky;
  top: 96px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
}

.summary-heading {
  margin: 0 0 16px;
  font-size: 16px;
  letter-spacing: -0.3px;
}

.summary-title {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.6px;
}

.cart-email {
  margin-top: 16px;
}

.cart-email label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
}

.cart-email input {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #334052;
  border-radius: 10px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  font-size: 14px;
}

.cart-email input::placeholder {
  color: #5d6b7e;
}

.cart-email input:focus {
  border-color: var(--accent);
  outline: 3px solid #0878f940;
}

.cart-email input:disabled {
  color: var(--muted);
  background: var(--surface-2);
}

.cart-email small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.cart-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 18px 0;
  color: var(--muted);
  font-size: 13px;
}

.cart-total strong {
  color: var(--ink);
  font-size: 26px;
  letter-spacing: -1px;
}

.cart-summary .cart-total {
  margin: 22px 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.cart-summary .cart-total strong {
  font-size: 34px;
}

.cart-summary .plan-button + .plan-button {
  margin-top: 10px;
}

.stepper {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  border: 1px solid #334052;
  border-radius: 10px;
  background: var(--bg);
}

.stepper button {
  width: 36px;
  height: 36px;
  border: 0;
  color: var(--accent-hi);
  background: transparent;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.stepper button:hover:not(:disabled) {
  background: var(--accent-soft);
}

.stepper button:disabled {
  color: #3a4657;
  cursor: not-allowed;
}

.step-value {
  min-width: 28px;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

/* ---------- Payment overlay (Stripe's form is light, so its frame stays white) ---------- */

.checkout-panel {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
}

#payment-panel:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 50;
  width: 100%;
  max-width: none;
  overflow-y: auto;
  padding: 32px max(5vw, 16px);
  border: 0;
  border-radius: 0;
  background: #05070bd9;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

#payment-panel > * {
  width: min(560px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.payment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid #e3e9f0;
  border-radius: 16px 16px 0 0;
  color: var(--paper-ink);
  background: var(--paper);
}

.payment-close {
  border: 0;
  color: var(--accent);
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

#payment-panel #checkout {
  padding: 8px 14px;
  background: var(--paper);
}

#payment-panel .secure-note {
  margin-top: 0;
  padding: 0 0 16px;
  border-radius: 0 0 16px 16px;
  color: var(--paper-muted);
  background: var(--paper);
}

.checkout-status {
  margin: 0;
  padding: 36px 12px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

#payment-panel .checkout-status {
  color: var(--paper-muted);
}

.checkout-status.error,
#payment-panel .checkout-status.error {
  color: #d92d20;
}

/* ---------- Responsive ---------- */

@media (max-width: 850px) {
  main {
    padding-top: 44px;
  }

  .plan-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .plan-card {
    padding: 24px 22px;
  }

  .plan-includes {
    min-height: 0;
  }

  .plan-card.featured {
    margin-top: 10px;
  }

  .enterprise-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .enterprise-card p:last-child {
    max-width: none;
  }

  .checkout-main {
    grid-template-columns: 1fr;
  }

  .cart-card {
    padding: 22px;
  }

  .cart-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cart-summary {
    position: static;
  }
}

@media (max-width: 480px) {
  .site-header {
    min-height: 66px;
    padding: 12px 18px;
  }

  .header-logo {
    width: 150px;
  }

  main {
    padding: 36px 18px;
  }

  .header-label {
    font-size: 12px;
  }

  .price {
    font-size: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
