/* The Training checkout pages (/training-plan, /training-plan-welcome). */
/* 2026-11-19 redesign: matches the site (sunset light from golden.css, off-white buttons, no lime fills behind text). */
:root { --tp-ink:#F4F1EA; --tp-sub:rgba(244,241,234,.74); --tp-line:rgba(244,241,234,.12); --tp-card:rgba(16,15,20,.72); --tp-lime:#C4D824; }
:root[data-theme="light"] { --tp-ink:#16121C; --tp-sub:rgba(22,18,28,.72); --tp-line:rgba(22,18,28,.12); --tp-card:rgba(255,255,255,.82); --tp-lime:#5A650E; }
.tp-top { padding: clamp(1rem, 3vw, 1.75rem) var(--gutter) 0; max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.tp-logo { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }
.tp-logo img { height: 26px; width: auto; display: block; }
:root[data-theme="light"] .tp-logo img + img { filter: invert(1) hue-rotate(180deg); }
.tp-theme { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: transparent; color: var(--tp-ink); border: 1px solid var(--tp-line); cursor: pointer; }
.tp-theme .ti-sun { display: none; } :root[data-theme="light"] .tp-theme .ti-sun { display: block; } :root[data-theme="light"] .tp-theme .ti-moon { display: none; }
.tp-wrap { max-width: 1100px; margin: 0 auto; padding: clamp(1.75rem, 5vw, 4rem) var(--gutter) 5rem; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.tp-lockup { display: flex; align-items: center; gap: .55rem; margin: 0 0 1.25rem; font-weight: 600; font-size: 1.05rem; color: var(--tp-ink); }
.tp-lockup .tp-icon { width: 34px; height: 34px; border-radius: 9px; display: block; }
.tp-lockup .tp-wm { height: 1.15rem; width: auto; display: block; }
.tp-wm-ink { display: none !important; } :root[data-theme="light"] .tp-wm-ink { display: block !important; } :root[data-theme="light"] .tp-wm-lt { display: none !important; }
.tp-wrap h1 { margin: 0 0 1rem; font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem); line-height: 1.04; letter-spacing: -.025em; font-weight: 700; color: var(--tp-ink); max-width: 17ch; text-wrap: balance; }
.tp-lead { color: var(--tp-sub); font-size: 1.125rem; line-height: 1.55; margin: 0 0 2rem; max-width: 44ch; }
.tp-wrap p { color: var(--tp-sub); font-size: 1.0625rem; line-height: 1.55; }
.tp-wrap a:not(.btn) { color: var(--tp-ink); text-decoration: underline; text-decoration-color: var(--tp-lime); text-decoration-thickness: 2px; text-underline-offset: 4px; }
/* What you get: lime checks, like the pricing page */
.tp-gets { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; gap: .7rem; }
.tp-gets li { position: relative; padding-left: 1.9rem; color: var(--tp-ink); font-size: 1.0625rem; line-height: 1.45; font-weight: 500; }
.tp-gets li::before { content: ""; position: absolute; left: .1rem; top: .38em; width: .9rem; height: .5rem; border-left: 2.5px solid var(--tp-lime); border-bottom: 2.5px solid var(--tp-lime); transform: rotate(-45deg); }
/* How the 2 weeks go: a timeline with lime dots */
.tp-h2 { margin: 0 0 1.1rem; font-size: 1.25rem; font-weight: 600; color: var(--tp-ink); letter-spacing: -.01em; }
.tp-time { list-style: none; margin: 0 0 2rem; padding: 0; position: relative; }
.tp-time::before { content: ""; position: absolute; left: 6px; top: .6rem; bottom: .9rem; width: 2px; background: var(--tp-line); }
.tp-time li { position: relative; display: grid; grid-template-columns: 5.25rem minmax(0, 1fr); gap: .25rem 1rem; padding: 0 0 1.15rem 2rem; }
.tp-time li::before { content: ""; position: absolute; left: 0; top: .42rem; width: 14px; height: 14px; border-radius: 50%; background: var(--tp-lime); box-shadow: 0 0 0 4px rgba(196,216,36,.16); }
.tp-time li:not(:first-child)::before { background: transparent; box-shadow: inset 0 0 0 2px var(--tp-lime); }
.tp-time b { color: var(--tp-ink); font-weight: 600; font-size: 1.0625rem; }
.tp-time span { color: var(--tp-sub); font-size: 1.0625rem; line-height: 1.5; }
.tp-paynow { margin: 0; padding-top: 1.25rem; border-top: 1px solid var(--tp-line); }
.tp-trial-note[hidden], /* Paid plan options */
.tp-trial-link { margin: -1rem 0 1.75rem; }
.tp-options { display: grid; gap: .85rem; margin: 0 0 1.75rem; }
.tp-option { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.35rem; border-radius: 16px; background: var(--tp-card); box-shadow: 0 0 0 1px var(--tp-line); cursor: pointer; transition: box-shadow .18s, transform .3s cubic-bezier(.22,1,.36,1); }
.tp-option:hover { transform: translateY(-2px); }
.tp-option.is-on { box-shadow: 0 0 0 2px var(--tp-ink); }
.tp-option input { width: 22px; height: 22px; flex: none; accent-color: var(--tp-lime); margin: 0; }
.tp-option > div { flex: 1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .2rem 1rem; min-width: 0; }
.tp-opt-name { color: var(--tp-ink); font-weight: 600; font-size: 1.25rem; }
.tp-opt-price { color: var(--tp-ink); font-size: 1.75rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.tp-opt-price small { font-size: 1.0625rem; font-weight: 500; color: var(--tp-sub); }
.tp-opt-sub { flex-basis: 100%; color: var(--tp-sub); font-size: 1.0625rem; line-height: 1.4; }
.tp-note { margin: 0; padding: 0; list-style: none; color: var(--tp-sub); font-size: 1.0625rem; line-height: 1.5; }
.tp-note li { padding: .8rem 0; border-top: 1px solid var(--tp-line); }
/* Summary: the page's one sunset moment, off-white button */
.tp-sum { position: sticky; top: 1.5rem; background: var(--gh-dusk-d); color: var(--tp-ink); border-radius: 22px; padding: clamp(1.4rem, 3vw, 2.1rem); box-shadow: 0 0 0 1px var(--tp-line), 0 30px 60px -30px rgba(0,0,0,.6); }
.tp-sum .tp-sum-l { margin: 0; font-size: 1rem; font-weight: 600; color: var(--tp-sub); }
.tp-sum .tp-today { margin: .1rem 0 .35rem; font-size: clamp(3.75rem, 2.6rem + 4vw, 5.75rem); line-height: 1; font-weight: 700; letter-spacing: -.04em; color: var(--tp-ink); font-variant-numeric: tabular-nums; }
.tp-is-trial .tp-sum .tp-today { color: var(--tp-lime); }
:root[data-theme="light"] .tp-is-trial .tp-sum .tp-today { color: var(--tp-ink); }
.tp-sum .tp-renew { margin: 0 0 1.5rem; color: var(--tp-ink); font-size: 1.0625rem; line-height: 1.45; }
.tp-sum p { color: var(--tp-sub); }
#tp-signedout p { margin: 0 0 1.1rem; }
.tp-who { margin: 0 0 1rem; font-size: 1rem; line-height: 1.45; }
.tp-who b { color: var(--tp-ink); overflow-wrap: anywhere; }
.tp-who button { background: none; border: none; padding: 0; color: var(--tp-ink); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }
.tp-msg { margin: 0 0 1rem; padding: .85rem 1rem; border-radius: 12px; background: rgba(12,13,15,.6); color: #F4F1EA; font-size: 1rem; line-height: 1.45; }
:root[data-theme="light"] .tp-msg { background: rgba(255,255,255,.7); color: #16121C; }
.tp-wrap .tp-msg a:not(.btn) { color: inherit; }
.tp-consent { display: flex; align-items: flex-start; gap: .65rem; margin: 0 0 1rem; cursor: pointer; }
.tp-consent input { margin: .2rem 0 0; width: 22px; height: 22px; flex: none; accent-color: var(--tp-lime); }
.tp-consent span { color: var(--tp-ink); font-size: 1rem; line-height: 1.45; }
.tp-sum .tp-consent a { color: var(--tp-ink); }
.tp-actions { display: grid; gap: .65rem; }
.tp-go, .tp-sum .tp-actions a { min-height: 54px; width: 100%; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; font: inherit; font-weight: 600; font-size: 1.0625rem; cursor: pointer; text-decoration: none; }
.tp-go, .tp-sum #tp-create { background: var(--gh-btn-bg); color: var(--gh-btn-fg); border: 0; transition: background .15s, transform .3s cubic-bezier(.22,1,.36,1); }
.tp-go:hover:not(:disabled), .tp-sum #tp-create:hover { background: var(--gh-btn-bg-h); }
.tp-go:active:not(:disabled) { transform: scale(.985); }
.tp-go:focus-visible, .tp-sum .tp-actions a:focus-visible, .tp-theme:focus-visible { outline: 2px solid #C4D824; outline-offset: 2px; }
.tp-go:disabled { opacity: .45; cursor: not-allowed; }
.tp-sum #tp-signin { background: transparent; color: var(--tp-ink); border: 1.5px solid var(--tp-line); }
.tp-sum #tp-signin:hover { border-color: var(--tp-ink); }
.tp-state[hidden] { display: none; }
.tw-wrap { max-width: 640px; margin: 0 auto; padding: clamp(2rem, 7vw, 5rem) var(--gutter) 4rem; }
.tw-card { position: relative; background: var(--dark); border-radius: 22px; padding: clamp(1.5rem, 4vw, 2.75rem); box-shadow: 0 0 0 1px var(--edge), var(--shadow-2); }
.tw-wrap h1 { margin: 0 0 .6rem; font-size: clamp(1.875rem, 1.5rem + 1.6vw, 2.75rem); line-height: 1.1; font-weight: 600; color: var(--white); }
.tw-wrap .tp-lead { max-width: none; }
.tw-wrap .tw-spin { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--border-strong); border-top-color: #C4D824; margin-bottom: 1.25rem; animation: twSpin .9s linear infinite; }
@keyframes twSpin { to { transform: rotate(360deg); } }
.tw-check { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #C4D824; color: #0B0C0E; margin-bottom: 1.25rem; animation: twPop .5s cubic-bezier(.16,1,.3,1); }
.tw-check svg { width: 32px; height: 32px; }
@keyframes twPop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.tw-next { list-style: none; counter-reset: s; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .5rem; }
.tw-next li { counter-increment: s; position: relative; padding: .7rem 1rem .7rem 3.25rem; min-height: 54px; display: flex; align-items: center; border-radius: 12px; background: var(--raised); color: var(--white); font-size: 1.0625rem; line-height: 1.35; font-weight: 500; }
.tw-next li::before { content: counter(s); position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: #C4D824; color: #0B0C0E; font-weight: 700; display: grid; place-items: center; font-size: 1rem; }
.tw-wrap .tp-actions a { min-height: 52px; }
.tw-after { margin-top: 1.25rem; }
.tw-wrap a:not(.btn) { color: var(--c-action, #C4D824); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 800px) {
  .tp-wrap { grid-template-columns: minmax(0, 1fr); }
  .tp-sum { position: static; }
  .tp-wrap { row-gap: 0; }
  .tp-wrap > div:first-child { display: contents; }
  .tp-lockup, .tp-wrap h1, .tp-lead { order: 0; }
  .tp-sum { order: 1; margin-bottom: 2.5rem; }
  .tp-trial-link, .tp-options, .tp-trial-note, .tp-note { order: 2; }
  .tp-time li { grid-template-columns: minmax(0, 1fr); }
}

body[data-page="training-plan"] { min-height: 100vh; }
