/* Workoutable home page (front-page.php). Loaded on the home page only. Uses the theme tokens. */

.wk-home h2 { font-size: var(--fc-step-3); line-height: 1.05; margin: 0 0 12px; max-width: 22ch; }
.wk-home h3 { font-size: var(--fc-step-1); margin: 0 0 8px; }
.wk-intro { color: var(--fc-muted); max-width: 60ch; margin: 0 0 28px; }

/* ---------- Hero: the promise on the left, a real session on the right ---------- */
.wk-hero { background: var(--fc-ink); color: var(--fc-on-ink); padding: 40px 0 56px; }
.wk-hero__grid { display: grid; gap: 36px; align-items: center; }
.wk-hero h1 { color: var(--fc-on-ink); font-size: clamp(2.5rem, 9vw, 4.25rem); line-height: 0.98; margin: 0 0 18px; max-width: 13ch; }
.wk-hero__lead { color: var(--fc-on-ink-muted); font-size: 1.125rem; line-height: 1.55; max-width: 46ch; margin: 0 0 24px; }
.wk-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.wk-hero__actions .fc-btn { min-height: 54px; padding-inline: 26px; font-size: 1.0625rem; }
.wk-hero__alt { color: var(--fc-on-ink); font-weight: 600; text-underline-offset: 4px; }
.wk-hero__alt:hover { color: var(--fc-action); }
.wk-hero__proof { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--fc-on-ink-muted); font-size: var(--fc-step--1); }
.wk-hero__proof li { display: inline-flex; align-items: center; gap: 8px; }
.wk-hero__proof li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--fc-action); }

/* The session card reads like a page from the plan itself. */
.wk-session { margin: 0; background: var(--fc-bg); color: var(--fc-ink); border-radius: var(--fc-radius); padding: 20px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 48px -24px rgba(0, 0, 0, 0.6); }
.wk-session__head { display: flex; gap: 14px; align-items: center; padding-bottom: 14px; border-bottom: 2px solid var(--fc-ink); }
.wk-session__title { margin: 0; font: 800 var(--fc-step-2)/1 var(--fc-font-head); font-stretch: var(--fc-head-stretch); }
.wk-session__meta { margin: 4px 0 0; color: var(--fc-muted); font-size: var(--fc-step--1); }
.wk-session__table { width: 100%; border-collapse: collapse; margin: 0; background: none; font-size: 1rem; }
.wk-session__table th { text-align: left; font-size: var(--fc-step--1); font-weight: 600; color: var(--fc-muted); padding: 12px 0 6px; border: 0; background: none; }
.wk-session__table th:last-child,
.wk-session__table td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wk-session__table td { padding: 12px 0; border: 0; border-top: 1px solid var(--fc-line); font-weight: 600; background: none; }
.wk-session__table tr { background: none; }
.wk-session__foot { margin-top: 12px; color: var(--fc-muted); font-size: var(--fc-step--1); }

/* ---------- Bands ---------- */
.wk-band { padding: 56px 0; }
.wk-band--plain { background: var(--fc-surface); border-block: 1px solid var(--fc-line); }

/* Two planners: the workout planner is the main offer, so it carries the weight. */
.wk-plans { display: grid; gap: 18px; align-items: start; }
.wk-plan { background: var(--fc-surface); border: 1px solid var(--fc-line); border-radius: var(--fc-radius); padding: 24px; }
.wk-plan--main { border: 2px solid var(--fc-ink); }
.wk-plan > p { color: var(--fc-muted); margin: 0 0 16px; }
.wk-plan__note { margin: 12px 0 0 !important; font-size: var(--fc-step--1); }
.wk-ticks { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.wk-ticks li { position: relative; padding-left: 26px; font-weight: 600; }
.wk-ticks li::before { content: "\2713"; position: absolute; left: 0; color: var(--fc-good); font-weight: 800; }

/* Steps: a real sequence, so the rank plates count it. */
.wk-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 28px; }
.wk-steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: start; }
.wk-steps .fc-plate { grid-row: span 2; }
.wk-steps h3 { margin: 4px 0 4px; }
.wk-steps p { margin: 0; color: var(--fc-muted); }

/* Free plans: the two Kit forms. */
.wk-forms { display: grid; gap: 18px; align-items: start; }
.wk-form { margin: 0; min-width: 0; }
.wk-form .formkit-form { max-width: 100% !important; }
@media (min-width: 1100px) { .wk-forms { grid-template-columns: 1fr 1fr; } }

/* Coach */
.wk-coach { display: grid; gap: 20px; align-items: center; }
.wk-coach__img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; }
.wk-coach h2 { margin-bottom: 8px; }
.wk-coach__name { margin: 0 0 10px; }
.wk-coach p { max-width: 62ch; }

/* Learn: a plain list of links, each with one line on what you'll find. */
.wk-learn { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--fc-line); }
.wk-learn li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--fc-line); }
.wk-learn a { font-weight: 700; font-size: 1.125rem; color: var(--fc-ink); text-decoration-color: var(--fc-action); text-underline-offset: 4px; }
.wk-learn a:hover { color: var(--fc-link); }
.wk-learn span { color: var(--fc-muted); font-size: 1rem; }
.wk-learn__all { margin: 18px 0 0; font-weight: 700; }

/* Closing band */
.wk-close { background: var(--fc-ink); color: var(--fc-on-ink); padding: 56px 0; }
.wk-close h2 { color: var(--fc-on-ink); max-width: 18ch; margin-bottom: 24px; }

.wk-home .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (min-width: 760px) {
	.wk-hero { padding: 72px 0 88px; }
	.wk-hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; }
	.wk-session { padding: 26px; transform: rotate(1.2deg); }
	.wk-band, .wk-close { padding: 80px 0; }
	.wk-plans { grid-template-columns: 1.1fr 0.9fr; }
	.wk-plan { padding: 30px; }
	.wk-steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
	.wk-coach { grid-template-columns: auto 1fr; gap: 32px; }
	.wk-coach__img { width: 160px; height: 160px; }
	.wk-learn { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
}
/* Sections switched off in Customize: what's left fills the space. */
.wk-hero__grid.is-single { grid-template-columns: minmax(0, 1fr); }
.wk-plans.is-single { grid-template-columns: minmax(0, 40rem); }
.wk-coach__more { margin: 12px 0 0; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
	.wk-session { transform: none; }
}
