/* ============================================================
   Plans (/pricing) and the waitlist confirmation, from Josh's
   designs PLN-1 and CKO-5. Uses the homepage's tokens and motion
   (home.css), so it loads after it.
   ============================================================ */

/* ---------- plans ---------- */
body.v2.home main > section.plans { padding: 150px 80px 110px !important; }
.plans { max-width: 1440px; margin: 0 auto; }
.plans__head { text-align: center; }
.plans h1 { margin: 22px 0 0; color: var(--ink); font: 700 clamp(44px, 4.6vw, 66px)/1 var(--font-heading); letter-spacing: -0.045em; }
.plans__sub { max-width: 660px; margin: 22px auto 0; color: var(--muted); font: 400 19px/1.55 var(--font-body); text-wrap: balance; }
.plans__grid { display: grid; grid-template-columns: 1fr 1.08fr 1fr; gap: 20px; align-items: stretch; margin-top: 56px; }
.tier {
  --r: 30px; position: relative; display: flex; flex-direction: column; padding: 32px; background: #fff; box-shadow: var(--card-shadow); color: var(--ink);
  transition: translate 450ms var(--spring), box-shadow 450ms var(--ease);
}
.tier--sky { background: linear-gradient(180deg, #0F2E91 0%, #1A44C8 45%, #2457E0 100%); color: #fff; box-shadow: 0 40px 70px -40px rgba(31, 79, 216, 0.75); }
.tier__top { display: flex; justify-content: space-between; align-items: center; min-height: 30px; }
.tier__tag { --r: 8px; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; font: 600 13px/1 var(--font-body); }
.tier__tag--grey { background: #F2F3F7; color: var(--ink); }
.tier__tag--lime { background: var(--lime); color: var(--navy); }
.tier__note { color: var(--muted); font: 500 13px/1 var(--font-body); }
.tier h2 { margin: 22px 0 0; font: 700 30px/1.1 var(--font-heading); letter-spacing: -1px; color: inherit; }
.tier__desc { margin: 10px 0 0; min-height: 3em; color: var(--muted); font: 400 16px/1.5 var(--font-body); }
.tier--sky .tier__desc, .tier--sky .tier__fine { color: var(--unit); }
.tier__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; margin: 28px 0 0; }
.tier__price b { font: 800 clamp(44px, 4vw, 58px)/1 var(--font-heading); letter-spacing: -0.05em; }
.tier--sky .tier__price b { color: var(--lime); }
.tier__price s { color: rgba(207, 220, 255, 0.8); font: 700 20px/1 var(--font-body); }
.tier__price span { color: var(--muted); font: 400 16px/1 var(--font-body); }
.tier--sky .tier__price span { color: var(--unit); }
.tier__fine { margin: 14px 0 0; color: var(--muted); font: 400 14px/1.4 var(--font-body); }
.tier__btn {
  --r: 14px; display: flex; align-items: center; justify-content: center; height: 56px; margin-top: 26px; font: 700 17px/1 var(--font-body); text-decoration: none;
  transition: scale 380ms var(--spring), translate 380ms var(--spring), background-color 200ms var(--ease), box-shadow 300ms var(--ease);
}
.tier__btn:active { scale: 0.97; transition-duration: 90ms; }
.tier__btn--ink { background: var(--ink); color: #fff; }
.tier__btn--lime { background: var(--lime); color: var(--navy); }
.tier__btn--blue { background: var(--blue); color: #fff; }
.tier__wl { --r: 16px; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 26px; padding: 6px; background: #F5F6FA; box-shadow: inset 0 0 0 1px #E6E9F0; transition: box-shadow 250ms var(--ease); }
.tier__wl:focus-within { box-shadow: inset 0 0 0 2px var(--blue); }
.tier__wl input[type=email] { flex: 1; min-width: 0; height: 48px; padding: 0 12px; border: 0; background: none; color: var(--ink); font: 400 16px/1.25 var(--font-body); outline: none; }
.tier__wl button { --r: 11px; height: 48px; padding: 0 20px; border: 0; background: var(--ink); color: #fff; font: 700 15px/1 var(--font-body); cursor: pointer; transition: scale 380ms var(--spring), background-color 200ms var(--ease); }
.tier__wl button:active { scale: 0.96; transition-duration: 90ms; }
.tier__consent { display: flex; gap: 8px; flex-basis: 100%; padding: 6px 6px 2px; color: var(--muted); font: 400 12px/1.4 var(--font-body); cursor: pointer; }
.tier__consent input { flex: none; width: 16px; height: 16px; margin-top: 1px; accent-color: var(--blue); }
.plan__status { flex-basis: 100%; margin: 0; padding: 0 6px; font: 500 13px/1.4 var(--font-body); }
.plan__status:empty { display: none; }
.plan__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tier__list { margin: 26px 0 0; padding: 26px 0 0; border-top: 1px solid #EEF0F5; list-style: none; }
.tier--sky .tier__list { border-color: rgba(255, 255, 255, 0.18); }
.tier__list li { position: relative; padding-left: 32px; font: 500 15px/1.45 var(--font-body); }
.tier__list li + li { margin-top: 12px; }
.tier__list li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: #EEF3FF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233070FF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.tier--sky .tier__list li::before, .plans__app li::before {
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A1A4F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.plans__app { --r: 24px; display: flex; align-items: center; gap: 40px; margin-top: 28px; padding: 26px 32px; background: #fff; box-shadow: var(--card-shadow); }
.plans__app-label { flex: none; color: var(--blue-ink); font: 700 13px/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; }
.plans__app ul { display: flex; flex-wrap: wrap; gap: 14px 30px; margin: 0; padding: 0; list-style: none; }
.plans__app li { position: relative; padding-left: 32px; color: var(--ink); font: 500 15px/22px var(--font-body); }
.plans__app li::before { content: ""; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; }
.plans__guar { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; margin: 36px 0 0; color: var(--muted); font: 400 15px/1.5 var(--font-body); }
.plans__guar a { color: var(--blue-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- waitlist confirmation ---------- */
.wlt {
  position: relative; overflow: hidden; min-height: 100vh; padding: 130px 16px 110px !important; color: #fff; text-align: center;
  background:
    radial-gradient(700px 480px at 50% 30%, rgba(36, 87, 224, 0.45), transparent 70%),
    radial-gradient(640px 420px at 85% 85%, rgba(91, 70, 220, 0.35), transparent 70%),
    #060B22;
}
.wlt__field .cghost { opacity: 0.1; }
.wlt__inner { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; }
.wlt__badge { --r: 12px; display: inline-flex; align-items: center; gap: 10px; height: 44px; margin: 0; padding: 0 16px 0 7px; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); font: 600 15px/1 var(--font-body); }
.wlt__badge > span { --r: 8px; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; background: var(--lime); }
.wlt h1 { margin: 26px 0 0; color: #fff; font: 700 clamp(48px, 6.4vw, 90px)/1 var(--font-heading); letter-spacing: -0.045em; }
.wlt__lime { color: var(--lime); }
.wlt__sub { max-width: 620px; margin: 26px auto 0; color: rgba(207, 220, 255, 0.85); font: 400 19px/1.6 var(--font-body); }
.wlt__stats {
  --r: 28px; display: grid; grid-template-columns: repeat(4, 1fr); max-width: 960px; margin: 44px auto 0; padding: 24px 0;
  background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.wlt__stats div { padding: 4px 12px; }
.wlt__stats div + div { border-left: 1px solid rgba(255, 255, 255, 0.12); }
.wlt__stats dt { font: 800 clamp(30px, 3vw, 42px)/1.1 var(--font-heading); letter-spacing: -0.04em; }
.wlt__stats dd { margin: 6px 0 0; color: rgba(207, 220, 255, 0.8); font: 400 14px/1.3 var(--font-body); }
.wlt__next { margin: 52px 0 0; color: var(--lime); font: 700 13px/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; }
.wlt__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0 0; padding: 0; list-style: none; text-align: left; }
.wlt__steps li {
  --r: 22px; padding: 22px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  transition: translate 450ms var(--spring), background-color 300ms var(--ease);
}
.wlt__steps i { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--lime); }
.wlt__steps b { display: block; margin-top: 18px; font: 700 18px/1.3 var(--font-heading); }
.wlt__steps span { display: block; margin-top: 6px; color: rgba(207, 220, 255, 0.8); font: 400 14px/1.5 var(--font-body); }
.wlt__cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hbtn--lime { background: var(--lime); color: var(--navy); }
.wlt__cta button { border: 0; cursor: pointer; }
.wlt__toast { margin: 16px 0 0; color: var(--lime); font: 600 14px/1 var(--font-body); }

@media (hover: hover) and (pointer: fine) {
  .tier:hover { translate: 0 -6px; box-shadow: 0 40px 70px -40px rgba(14, 20, 36, 0.4); }
  .tier--sky:hover { box-shadow: 0 50px 80px -40px rgba(31, 79, 216, 0.85); }
  .tier__btn:hover { translate: 0 -1px; box-shadow: 0 14px 28px -14px rgba(10, 26, 79, 0.45); }
  .tier__btn--ink:hover, .tier__wl button:hover { background: #1E2640; }
  .tier__btn--blue:hover { background: #1F5BFF; }
  .plans__guar a:hover { text-decoration-thickness: 2px; }
  .wlt__steps li:hover { translate: 0 -4px; background: rgba(255, 255, 255, 0.1); }
  .hbtn--lime:hover { translate: 0 -1px; box-shadow: 0 14px 28px -14px rgba(212, 255, 58, 0.5); }
}

@media (max-width: 1100px) {
  body.v2.home main > section.plans { padding: 130px 40px 90px !important; }
  .plans__grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .tier--sky { order: -1; }
  .tier__desc { min-height: 0; }
  .plans__app { flex-direction: column; align-items: flex-start; gap: 16px; max-width: 560px; margin-inline: auto; }
  .wlt__steps { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}
@media (max-width: 699px) {
  body.v2.home main > section.plans { padding: 110px 16px 70px !important; }
  .plans__sub { font-size: 17px; }
  .tier { padding: 24px; }
  .wlt { padding: 110px 16px 80px !important; }
  .wlt__field { display: none; }
  .wlt__sub { font-size: 17px; }
  .wlt__stats { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .wlt__stats div:nth-child(3) { border-left: 0; }
  .wlt__cta { flex-direction: column; align-items: stretch; max-width: 360px; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .tier, .tier__btn, .tier__wl button, .wlt__steps li { transition: none; }
}

/* Plans on phones: a swipeable row, Unlimited first, the next card peeking. */
@media (max-width: 699px) {
  .plans__grid {
    display: flex; gap: 12px; margin: 40px -16px 0; padding: 4px 16px 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
    scrollbar-width: none; overscroll-behavior-x: contain; max-width: none;
  }
  .plans__grid::-webkit-scrollbar { display: none; }
  .plans__grid > .tier { flex: none; width: calc(100vw - 56px); scroll-snap-align: start; }
  .plans__dots { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
  .plans__dots[hidden] { display: none; }
  .plans__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: #C9CFDB; cursor: pointer; transition: width 300ms var(--spring), background-color 250ms var(--ease); }
  .plans__dots button.is-on { width: 24px; background: var(--blue); }
  .plans__dots button::before { content: ""; display: block; margin: -18px -6px; height: 44px; }
}
@media (min-width: 700px) { .plans__dots { display: none; } }

/* body text at 16px (test pass) */
.tier__list li, .plans__app li { font-size: 16px; }
.plans__guar { text-align: center; }

/* ---------- plans: the guarantee as a card, and its sheet ---------- */
.pguar {
  --r: 28px; position: relative; display: flex; align-items: center; gap: 20px; max-width: 760px; margin: 28px auto 0; padding: 22px 24px; overflow: hidden;
  background: radial-gradient(260px 200px at 60px 50%, rgba(48, 112, 255, 0.35), transparent 70%), #0A1033; color: #fff;
}
.pguar__shield { flex: none; display: grid; place-items: center; width: 64px; height: 64px; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.35)); }
.pguar__copy { flex: 1; min-width: 0; }
.pguar__copy b { display: block; font: 700 20px/1.2 var(--font-heading); letter-spacing: -0.3px; }
.pguar__copy span { display: block; margin-top: 4px; color: rgba(207, 220, 255, 0.85); font: 400 15px/1.4 var(--font-body); }
.pguar__btn {
  --r: 12px; flex: none; height: 44px; padding: 0 18px; border: 0; background: var(--lime); color: var(--navy); font: 700 15px/1 var(--font-body); cursor: pointer;
  transition: scale 380ms var(--spring), translate 380ms var(--spring), box-shadow 380ms var(--ease);
}
.pguar__btn:active { scale: 0.96; transition-duration: 90ms; }
@media (hover: hover) and (pointer: fine) { .pguar__btn:hover { translate: 0 -1px; box-shadow: 0 12px 24px -12px rgba(212, 255, 58, 0.55); } }
.pguar__btn:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

.sheet { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 16px; border: 0; background: transparent; display: none; }
.sheet[open] { display: grid; place-items: end center; }
@media (min-width: 700px) { .sheet[open] { place-items: center; } }
.sheet::backdrop { background: rgba(10, 16, 51, 0.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: sheet-fade 300ms var(--ease); }
.sheet__card {
  --r: 30px; position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto; padding: 32px 28px 28px;
  background: #fff; color: var(--ink); box-shadow: 0 30px 80px -20px rgba(10, 26, 79, 0.45); animation: sheet-up 420ms var(--spring);
}
.sheet.is-closing .sheet__card { animation: sheet-down 260ms var(--ease) forwards; }
.sheet.is-closing::backdrop { animation: sheet-fade 260ms var(--ease) reverse forwards; }
@keyframes sheet-up { from { translate: 0 40px; opacity: 0; } }
@keyframes sheet-down { to { translate: 0 40px; opacity: 0; } }
@keyframes sheet-fade { from { opacity: 0; } }
.sheet__x { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #F2F3F7; color: var(--ink); cursor: pointer; transition: scale 300ms var(--spring); }
.sheet__x:active { scale: 0.92; }
.sheet__eyebrow { margin: 0; color: var(--blue); font: 700 13px/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; }
.sheet h2 { margin: 12px 0 0; font: 700 34px/1.05 var(--font-heading); letter-spacing: -1px; color: var(--ink); }
.sheet__lead { margin: 10px 0 0; font: 600 18px/1.4 var(--font-body); }
.sheet p { margin: 12px 0 0; color: var(--muted); font: 400 16px/1.55 var(--font-body); }
.sheet__lead, .sheet h2 + p.sheet__lead { color: var(--ink) !important; }
.sheet__steps { margin: 20px 0 0; padding: 0; list-style: none; counter-reset: s; }
.sheet__steps li { position: relative; padding: 14px 0 14px 46px; border-top: 1px solid #EEF0F5; counter-increment: s; }
.sheet__steps li::before { content: counter(s); position: absolute; left: 0; top: 14px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--lime); color: var(--navy); font: 700 14px/1 var(--font-body); }
.sheet__steps b { display: block; font: 700 16px/1.3 var(--font-body); }
.sheet__steps span { display: block; margin-top: 4px; color: var(--muted); font: 400 15px/1.5 var(--font-body); }
.sheet__fine a { color: var(--blue-ink, #1F5BFF); font-weight: 600; }
@media (max-width: 699px) {
  .pguar { flex-wrap: wrap; gap: 14px 16px; padding: 20px; }
  .pguar__shield { width: 52px; height: 52px; }
  .pguar__btn { width: 100%; }
  .sheet { padding: 8px; }
  .sheet__card { --r: 26px; padding: 28px 20px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .sheet__card, .sheet::backdrop, .sheet.is-closing .sheet__card { animation: none; }
}

/* ---------- phones: the plan cards' shadows and glow aren't cut off by the row ---------- */
@media (max-width: 699px) {
  .plans__grid { padding-top: 24px; padding-bottom: 72px; margin-top: 16px; margin-bottom: -48px; }
}
