/* The sales pages (residency/, watch/): the home page's tokens (rez.css), a few page parts. */

.sales-h1 {
  margin: 14px 0 20px; max-width: 22em;
  font-size: clamp(30px, 4.4vw, 48px); line-height: 1.1; font-weight: 500;
  letter-spacing: -0.03em; color: var(--lumen); text-wrap: balance;
}
.sales-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 28px 0 0; }
.sales-fine { margin: 18px 0 0; max-width: 46em; font: 400 var(--fs-meta)/1.6 var(--font-mono); color: var(--muted); }
.sales-fine a { color: var(--soft); }

.sales-steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: var(--sp-8);
}
@media (max-width: 960px) { .sales-steps { grid-template-columns: minmax(0, 1fr); } }
.sales-steps article {
  border-radius: var(--radius); background: var(--panel); box-shadow: inset 0 0 0 1px var(--hair);
  padding: 22px;
}
.sales-steps__when { font: 500 var(--fs-meta)/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.sales-steps h3 { margin: 14px 0 10px; font-size: 19px; font-weight: 500; color: var(--lumen); }
.sales-steps p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.sales-list { max-width: 760px; margin-top: var(--sp-8); }

/* watch/: the video, or its placeholder until LINKS.vslVideo is set. */
.vsl {
  position: relative; aspect-ratio: 16 / 9; width: 100%; max-width: 960px; margin: 28px 0 0;
  border-radius: var(--radius); overflow: hidden; background: var(--panel); box-shadow: inset 0 0 0 1px var(--hair-cyan);
}
.vsl iframe, .vsl video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vsl__hold {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; padding: 24px; text-align: center;
}
.vsl__hold b { font-size: 18px; font-weight: 500; color: var(--lumen); }
.vsl__hold span { font: 400 var(--fs-meta)/1.6 var(--font-mono); color: var(--muted); max-width: 34em; }
.vsl__play {
  width: 64px; height: 64px; margin: 0 auto 6px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--cyan);
  display: grid; place-items: center; color: var(--cyan); font-size: 22px;
}
.vsl-beats { list-style: none; margin: var(--sp-8) 0 0; padding: 0; max-width: 760px; counter-reset: beat; }
.vsl-beats li { counter-increment: beat; position: relative; padding: 14px 0 14px 44px; border-top: 1px solid var(--hair); color: var(--soft); }
.vsl-beats li::before {
  content: counter(beat, decimal-leading-zero); position: absolute; left: 0; top: 15px;
  font: 500 var(--fs-meta)/1 var(--font-mono); color: var(--cyan);
}
.sales-paid { min-height: 70vh; }

/* gift/: the person receiving it chooses, and chooses the weekly note. */
.gift-share {
  display: flex; gap: 12px; align-items: flex-start; max-width: 40em; margin: 28px 0 0; padding: 16px 18px;
  border-radius: var(--radius); background: var(--panel); box-shadow: inset 0 0 0 1px var(--hair);
  color: var(--muted); font-size: 14.5px; line-height: 1.55; cursor: pointer;
}
.gift-share input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--cyan); flex: none; }
.gift-share b { color: var(--lumen); font-weight: 500; }
/* gift/: "Email me this". */
.gift-lead { max-width: 40em; margin-top: 24px; }
.gift-lead input[type="email"], .gift-lead input[type="tel"] {
  height: 48px; padding: 0 14px; border: 0; border-radius: var(--radius-sm); min-width: 0; width: 100%;
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); font: 400 15px var(--font-sans); color: var(--text);
}
.gift-lead input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--cyan); }
.gift-lead input::placeholder { color: var(--ghost); }
.gift-lead__phone { margin-top: 8px; }
.gift-lead__sms { margin-top: 12px; font-size: 13.5px; }
.gift-lead .btn:disabled { opacity: .55; cursor: default; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
button.plan__alt { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.sales-cta button:disabled { opacity: .55; cursor: default; }
[hidden] { display: none !important; }

/* checkout/: one column, one question at a time, one price on screen (the one the button charges). */
.co__title { margin-bottom: var(--sp-8); }
.co__flow { max-width: 640px; }
.co__group { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
.co__group legend { padding: 0; margin-bottom: 12px; font: 500 var(--fs-meta)/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }

/* A two-way switch: who it's for, and once or monthly inside the chosen plan. */
.co__seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.co__seg-option {
  display: flex; gap: 10px; align-items: flex-start; padding: 14px; cursor: pointer; min-width: 0;
  border-radius: var(--radius-sm); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow var(--dur-base) var(--ease-out);
}
.co__seg-option:hover { box-shadow: inset 0 0 0 1px var(--hair-cyan); }
.co__seg-option:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--cyan); background: rgba(var(--cyan-rgb), .05); }
.co__seg-option:has(input:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 2px; }
.co__seg-option input { margin-top: 3px; accent-color: var(--cyan); flex: none; }
.co__seg-body { display: grid; gap: 4px; min-width: 0; }
.co__seg-body b { color: var(--lumen); font-weight: 500; }
.co__seg-body small { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
#whom .co__seg-option { align-items: center; }
#whom .co__seg-option input { margin-top: 0; }
@media (max-width: 420px) { .co__seg--pay { grid-template-columns: minmax(0, 1fr); } }

/* The chosen plan is a card; the other is a quiet row. */
.co__plans { display: grid; gap: 12px; }
.co__plan { padding: 18px; border-radius: var(--radius); background: var(--panel); box-shadow: inset 0 0 0 1px var(--hair); }
.co__plan.is-on { box-shadow: inset 0 0 0 1px var(--hair-cyan); }
.co__plan--row { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 14px 18px; background: transparent; }
.co__row-text { min-width: 0; }
.co__row-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin: 0; }
.co__row-head b { color: var(--soft); font-weight: 500; }
.co__row-price { color: var(--muted); font: 400 var(--fs-meta)/1.4 var(--font-mono); }
.co__row-line { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.co__row-act { flex: none; white-space: nowrap; }
@media (max-width: 420px) { .co__plan--row { flex-direction: column; align-items: flex-start; gap: 8px; } }
.co__line { margin: 14px 0 16px; color: var(--lumen); font-size: 17px; line-height: 1.4; }
.co__items { margin: 18px 0 0; }

.co__date {
  height: 48px; padding: 0 14px; border: 0; border-radius: var(--radius-sm); width: 100%; max-width: 280px;
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); font: 400 15px var(--font-sans); color: var(--text); color-scheme: dark;
}
.co__date:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--cyan); }
.co__hint { margin: 8px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
#pay-error { color: var(--amber); }
.co__summary { margin-top: 4px; padding: 20px 18px; border-radius: var(--radius); background: var(--panel); box-shadow: inset 0 0 0 1px var(--hair-cyan); }
.co__charge { margin: 0 0 16px; color: var(--lumen); font-size: 18px; line-height: 1.45; font-weight: 500; letter-spacing: -0.01em; }
.co__terms { margin: 16px 0 10px; color: var(--soft); font-size: 14px; line-height: 1.55; }
.co__pay { width: 100%; justify-content: center; }
.co__closed { margin: 0; color: var(--soft); font-size: 14.5px; }
.co__next { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--hair); }
.co__next ol { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; line-height: 1.6; }
