/* Pricing and signup. One loud number per plan, more room between plans than inside them,
   one filled button, and only the recommended plan raised. */

.page.wide { max-width: 1120px; padding-inline: var(--m); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.page-head nav a[aria-current="page"] { color: var(--accent); }

.price-intro { max-width: 720px; }
.price-intro h1 { font-size: clamp(44px, 6.4vw, 88px); line-height: .98; letter-spacing: -.035em; margin: 28px 0 18px; }
.price-intro .lede { color: var(--muted); font-size: var(--lead); line-height: 1.45; }

/* Monthly / yearly switch */
.billing {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin: 40px 0 0; padding: 4px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.billing label { position: relative; z-index: 1; cursor: pointer; }
.billing input { position: absolute; opacity: 0; pointer-events: none; }
.billing span { display: block; padding: 10px 22px; border-radius: 999px; font-size: 16px; font-weight: 650; text-align: center; white-space: nowrap; color: var(--muted); transition: color .3s var(--ease); }
.billing em { font-style: normal; font-weight: 600; color: var(--good); }
.billing input:checked + span { color: var(--ink); }
.billing input:checked + span em { color: var(--ink); opacity: .75; }
.billing input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.billing-thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  background: var(--accent); border-radius: 999px; transition: transform .3s var(--ease);
}
.billing:has(input[value="yearly"]:checked) .billing-thumb { transform: translateX(100%); }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 64px); align-items: start; margin-top: 36px; }
.plan {
  position: relative; display: flex; flex-direction: column; padding: clamp(24px, 3vw, 36px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
}
.plan h2 { font-size: 28px; letter-spacing: -.02em; }
.plan-for { margin-top: 6px; color: var(--muted); font-size: 17px; line-height: 1.4; min-height: 2.8em; }
.plan.pick {
  background: var(--raised); border: 2px solid var(--accent); transform: translateY(-12px);
  box-shadow: 0 30px 60px -28px rgb(255 210 63 / .32), 0 18px 40px -20px rgb(0 0 0 / .7);
}
.tag {
  position: absolute; top: -14px; left: clamp(24px, 3vw, 36px); padding: 4px 12px;
  background: var(--accent); color: var(--ink); border-radius: 999px; font-size: 14px; font-weight: 700;
}

.sport-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 22px 0 0; padding: 0; border: 0; }
.sport-pick legend { padding: 0; margin-bottom: 8px; font-size: 14px; color: var(--muted); }
.sport-pick label { cursor: pointer; }
.sport-pick input { position: absolute; opacity: 0; pointer-events: none; }
.sport-pick span {
  display: block; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; line-height: 1.25;
  transition: border-color .1s, background .1s, transform .1s;
}
.sport-pick b, .league-row b { display: block; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: .04em; }
.sport-pick label:hover span { border-color: #5f6b72; }
.sport-pick label:active span { transform: scale(.98); }
.sport-pick input:checked + span { border-color: var(--accent); background: rgb(255 210 63 / .08); }
.sport-pick input:checked + span b { color: var(--accent); }
.sport-pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.league-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.league-row li { padding: 10px 12px; border-radius: 10px; background: rgb(255 255 255 / .04); font-size: 15px; line-height: 1.25; }
.league-row b { color: var(--accent); }

.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-top: 28px; }
.amount { font-size: clamp(56px, 6vw, 76px); line-height: 1; font-weight: 750; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.amount.tick { animation: tick .3s var(--ease); }
.per { font-size: 17px; color: var(--muted); }
.was { order: -1; flex-basis: 100%; font-size: 18px; color: var(--muted); text-decoration-thickness: 2px; text-decoration-color: var(--bad); }
.was[hidden] { display: none; }
.price-note { margin-top: 8px; min-height: 1.5em; font-size: 15px; color: var(--muted); }
@keyframes tick { from { opacity: .2; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.plan-cta {
  display: block; margin-top: 24px; padding: 15px 20px; border-radius: 10px; text-align: center; text-decoration: none;
  font-size: 17px; font-weight: 700; background: var(--accent); color: var(--ink);
  transition: transform .1s var(--ease), background .1s, border-color .1s;
}
.plan-cta:hover { background: #ffe07a; }
.plan-cta:active { transform: scale(.98); }
.plan-cta.ghost { background: none; color: var(--text); border: 1px solid #5f6b72; }
.plan-cta.ghost:hover { border-color: var(--text); background: rgb(255 255 255 / .04); }

.perks { margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 12px; font-size: 16px; line-height: 1.4; }
.perks li { position: relative; padding-left: 28px; }
.perks li::before {
  content: ""; position: absolute; left: 2px; top: .3em; width: 14px; height: 8px;
  border-left: 2.5px solid var(--good); border-bottom: 2.5px solid var(--good); transform: rotate(-45deg);
}
.pick .perks li::before { border-color: var(--accent); }

.fine-line { max-width: 70ch; margin-top: 36px; font-size: 15px; color: var(--muted); }

.faq { margin-top: 72px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 48px; align-items: start; }
.faq h2 { font-size: clamp(30px, 3.4vw, 44px); margin: 0; letter-spacing: -.03em; }
.faq dl { display: grid; gap: 0; margin: 0; }
.faq dl div { padding: 20px 0; border-top: 1px solid var(--line); }
.faq dt { font-size: 19px; font-weight: 700; }
.faq dd { margin: 6px 0 0; color: var(--muted); max-width: 62ch; }
.faq dd a { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--accent); }

/* Signup */
.signup { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 80px); align-items: start; margin-top: 28px; }
.signup h1 { font-size: clamp(40px, 5.4vw, 72px); line-height: 1; letter-spacing: -.035em; margin: 0 0 14px; }
.signup .lede { color: var(--muted); }
.signup-form { display: grid; gap: 26px; margin-top: 32px; }
.signup-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.signup-form legend, .field > span { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 650; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.choice label { cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: block; height: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 16px; line-height: 1.3;
  transition: border-color .1s, background .1s, transform .1s;
}
.choice small { display: block; color: var(--muted); font-size: 14px; }
.choice label:hover span { border-color: #5f6b72; }
.choice label:active span { transform: scale(.98); }
.choice input:checked + span { border-color: var(--accent); background: rgb(255 210 63 / .08); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice b { display: block; font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 500; font-size: 13px; color: var(--muted); }
.choice input:checked + span b { color: var(--accent); }
[data-sports][hidden] { display: none; }

.page .field input {
  width: 100%; height: 52px; padding: 0 14px; font-size: 17px; background: var(--surface); border: 1px solid #5f6b72; border-radius: 10px;
}
.page .field input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgb(255 210 63 / .25); }
.page .field input[aria-invalid="true"] { border-color: var(--bad); }
.checks { display: grid; gap: 12px; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 16px; line-height: 1.4; cursor: pointer; }
.page .check input { width: 22px; height: 22px; margin: 1px 0 0; padding: 0; accent-color: var(--accent); }
.check a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.page .submit {
  width: 100%; min-height: 56px; border-radius: 10px; font-size: 18px; font-weight: 750; transition: transform .1s var(--ease), background .1s;
}
.page .submit:hover { background: #ffe07a; }
.page .submit:active { transform: scale(.98); }
.page .submit[aria-busy="true"] { opacity: .7; cursor: progress; }
.form-error { min-height: 1.5em; color: var(--bad); font-size: 16px; }
.small-print { font-size: 14px; color: var(--muted); }

.signup-main { grid-column: 1; grid-row: 1; }
.summary {
  grid-column: 2; grid-row: 1; position: sticky; top: 24px; padding: clamp(22px, 3vw, 32px); background: var(--raised); border: 2px solid var(--accent); border-radius: 16px;
  box-shadow: 0 30px 60px -28px rgb(255 210 63 / .28), 0 18px 40px -20px rgb(0 0 0 / .7);
}
.summary h2 { font-size: 16px; font-weight: 650; color: var(--muted); letter-spacing: 0; }
.summary .plan-line { margin-top: 10px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.summary .price { margin-top: 18px; }
.summary .perks { margin-top: 20px; padding-top: 18px; }
.summary .swap { display: inline-block; margin-top: 18px; font-size: 15px; color: var(--muted); text-underline-offset: 3px; }

.done { padding: clamp(24px, 4vw, 40px); margin-top: 32px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--good); border-radius: 12px; }
.done h2 { font-size: clamp(28px, 3vw, 40px); margin: 0 0 10px; }
.done p + p { margin-top: 10px; }
.done[hidden] { display: none; }
.done:focus { outline: none; }

@media (max-width: 860px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan.pick { transform: none; }
  .plan-for { min-height: 0; }
  .faq { grid-template-columns: minmax(0, 1fr); margin-top: 56px; }
  .signup { grid-template-columns: minmax(0, 1fr); }
  .summary, .signup-main { grid-column: 1; grid-row: auto; }
  .summary { position: static; }
  .summary .perks { display: none; }
}
@media (max-width: 520px) {
  .billing { display: grid; width: 100%; }
  .billing span { padding: 10px 8px; font-size: 15px; }
  .choice.four { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .billing-thumb, .billing span, .plan-cta, .sport-pick span, .choice span { transition: none; }
  .amount.tick { animation: none; }
}
.signup-form #email-help { margin-top: -18px; }
