/* Atom Training — component styles. Every value comes from tokens.css (generated from tokens.json). */

/* ---------- Base ---------- */
html { font-feature-settings: "locl" 0; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, select, textarea { font-feature-settings: inherit; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; }
p { margin: 0; }

/* Standard Cyrillic forms everywhere: lang="bg" would switch on Bulgarian forms, which read poorly at UI sizes and heavy weights. */
.display-xl, .display-l, .display-m, .display-s, .label, .num-hero, .num-l, .num-m, .at-display { font-feature-settings: "locl" 0; }
.num-hero, .num-l, .num-m, .at-num { font-variant-numeric: tabular-nums; }
.label { text-transform: uppercase; }
.slant, .at-slant { font-variation-settings: "slnt" -10; }

/* ---------- Icon ---------- */
.at-icon { width: var(--size-icon); height: var(--size-icon); flex: none; display: inline-block; vertical-align: middle; }

/* ---------- Button ---------- */
.at-btn { appearance: none; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--size-control); padding: 0 var(--space-5); border-radius: var(--radius-md); border: 1px solid transparent; font-family: var(--font-text); font-size: 16px; line-height: 20px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; -webkit-tap-highlight-color: transparent; transition: background-color var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-standard); }
.at-btn .at-icon { width: 20px; height: 20px; }
.at-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.at-btn:active { transform: scale(0.98); }
.at-btn--primary { background: var(--accent); color: var(--on-accent); }
.at-btn--primary:hover { background: var(--accent-hover); }
.at-btn--primary:active { background: var(--accent-pressed); }
.at-btn--secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.at-btn--secondary:hover { background: var(--well); }
.at-btn--ghost { background: transparent; color: var(--accent-ink); padding: 0 var(--space-3); }
.at-btn--ghost:hover { background: var(--accent-soft); }
.at-btn--danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.at-btn--danger:hover { background: var(--danger-soft); }
.at-btn--ink { background: var(--black); color: var(--accent); }
.at-btn--ink:hover { background: var(--graphite-900); }
.at-btn--lg { min-height: var(--size-control-lg); padding: 0 var(--space-6); font-size: 17px; }
.at-btn--cta { min-height: var(--size-cta); padding: 0 var(--space-8); font-family: var(--font-display); font-feature-settings: "locl" 0; font-size: 18px; font-weight: 700; letter-spacing: 0.01em; }
.at-btn--cta .at-icon { width: 24px; height: 24px; }
.at-btn--block { display: flex; width: 100%; }
.at-btn:disabled, .at-btn[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ---------- Icon button: 48px target, 36px face ---------- */
.at-iconbtn { appearance: none; box-sizing: border-box; position: relative; flex: none; display: inline-grid; place-items: center; width: var(--size-tap); height: var(--size-tap); margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.at-iconbtn__face { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-full); transition: background-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard); }
.at-iconbtn .at-icon { width: 20px; height: 20px; }
.at-iconbtn--scrim .at-iconbtn__face { background: var(--scrim); color: var(--white); }
.at-iconbtn--scrim[aria-pressed="true"] .at-iconbtn__face { background: var(--accent); color: var(--on-accent); }
.at-iconbtn--ghost .at-iconbtn__face { color: var(--ink); }
.at-iconbtn--ghost:hover .at-iconbtn__face { background: var(--well); }
.at-iconbtn--ghost[aria-pressed="true"] .at-iconbtn__face { color: var(--accent-ink); }
.at-iconbtn--ink .at-iconbtn__face { color: var(--black); }
.at-iconbtn:focus-visible { outline: none; }
.at-iconbtn:focus-visible .at-iconbtn__face { box-shadow: var(--focus-ring); }

/* ---------- Tag: a label over video, always on scrim ---------- */
.at-tag { box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: var(--radius-full); background: var(--scrim); color: var(--white); font-family: var(--font-text); font-size: 13px; line-height: 16px; font-weight: 700; white-space: nowrap; }
.at-tag__dot { flex: none; width: 6px; height: 6px; border-radius: var(--radius-full); background: var(--accent); }

/* ---------- Chip ---------- */
.at-chip { appearance: none; box-sizing: border-box; display: inline-flex; align-items: center; gap: var(--space-1); min-height: 32px; padding: 0 var(--space-3); border-radius: var(--radius-full); border: 1px solid var(--line-strong); background: transparent; color: var(--ink-2); font-family: var(--font-text); font-size: 14px; line-height: 18px; font-weight: 600; white-space: nowrap; }
.at-chip .at-icon { width: 16px; height: 16px; }
button.at-chip { min-height: var(--size-tap); padding: 0 var(--space-4); font-size: 16px; line-height: 20px; color: var(--ink); cursor: pointer; transition: background-color var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard); }
button.at-chip .at-icon { width: 20px; height: 20px; }
button.at-chip:hover { background: var(--well); }
button.at-chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
button.at-chip:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.at-chips { display: flex; gap: var(--space-2); }
.at-chips--wrap { flex-wrap: wrap; }
.at-chips--scroll { overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--space-4) * -1); padding-inline: var(--space-4); padding-bottom: var(--space-1); }
.at-chips--scroll::-webkit-scrollbar { display: none; }

/* ---------- Badge ---------- */
.at-badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 var(--space-2); border-radius: var(--radius-xs); background: var(--well); color: var(--ink-2); font-family: var(--font-text); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; }
.at-badge .at-icon { width: 14px; height: 14px; }
.at-badge--accent { background: var(--accent-soft); color: var(--accent-ink); }
.at-badge--warning { background: var(--warning-soft); color: var(--warning); }
.at-badge--danger { background: var(--danger-soft); color: var(--danger); }

/* ---------- Card: the one surface for grouped content ---------- */
.at-card { box-sizing: border-box; display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); color: var(--ink); }
.at-card--lg { gap: var(--space-4); padding: var(--space-5); border-radius: var(--radius-lg); }
.at-card--accent { background: var(--accent-soft); border-color: var(--accent); }
.at-card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 24px; }

/* ---------- Segmented ---------- */
.at-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--well); }
.at-seg__opt { appearance: none; border: 0; min-height: var(--size-control); padding: var(--space-1) var(--space-2); border-radius: var(--radius-sm); background: transparent; color: var(--ink-2); font-family: var(--font-text); font-size: 16px; line-height: 20px; font-weight: 600; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: background-color var(--dur-base) var(--ease-standard), color var(--dur-base) var(--ease-standard); }
.at-seg__opt .at-seg__value { font-family: var(--font-display); font-feature-settings: "locl" 0; font-variant-numeric: tabular-nums; font-weight: 700; }
.at-seg__opt .at-seg__sub { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-muted); }
.at-seg__opt[aria-checked="true"] { background: var(--accent); color: var(--on-accent); }
.at-seg__opt[aria-checked="true"] .at-seg__sub { color: var(--on-accent); }
.at-seg__opt:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.at-seg--rows { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); }

/* ---------- Field ---------- */
.at-field { display: grid; gap: var(--space-2); }
.at-field__label { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.at-field__input { appearance: none; box-sizing: border-box; width: 100%; min-height: var(--size-control); padding: 0 var(--space-4); border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-family: var(--font-text); font-size: 16px; line-height: 24px; }
.at-field__input::placeholder { color: var(--ink-muted); }
.at-field__input:focus { outline: none; border-color: var(--focus); box-shadow: var(--focus-ring); }
.at-field__hint { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.at-field__error { display: flex; align-items: center; gap: 6px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--danger); }
.at-field__error .at-icon { width: 16px; height: 16px; }
.at-field--error .at-field__input { border-color: var(--danger); }

/* ---------- Scale (1–5) ---------- */
.at-scale { display: grid; gap: var(--space-3); border: 0; margin: 0; padding: 0; min-width: 0; }
.at-scale__q { font-size: 20px; line-height: 26px; font-weight: 700; color: var(--ink); padding: 0; }
.at-scale__row { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-2); }
.at-scale__opt { appearance: none; min-height: 56px; border-radius: var(--radius-md); border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font-family: var(--font-display); font-feature-settings: "locl" 0; font-size: 22px; line-height: 1; font-weight: 700; cursor: pointer; transition: background-color var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard); }
.at-scale__opt:hover { background: var(--well); }
.at-scale__opt[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.at-scale__opt:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.at-scale__ends { display: flex; justify-content: space-between; gap: var(--space-4); font-size: 14px; line-height: 20px; color: var(--ink-muted); }

/* ---------- Stepper (a number the person corrects) ---------- */
.at-stepper { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.at-stepper__btn { appearance: none; flex: none; width: 72px; height: 72px; display: grid; place-items: center; margin: 0; padding: 0; border-radius: var(--radius-full); border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font-family: var(--font-display); font-feature-settings: "locl" 0; font-size: 32px; line-height: 1; font-weight: 700; cursor: pointer; transition: background-color var(--dur-fast) var(--ease-standard); }
.at-stepper__btn:hover { background: var(--well); }
.at-stepper__btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.at-stepper__btn:disabled { opacity: 0.4; cursor: not-allowed; }
.at-stepper__value { flex: 1; min-width: 0; text-align: center; font-family: var(--font-display); font-feature-settings: "locl" 0; font-variant-numeric: tabular-nums; font-size: 112px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }

/* ---------- Steps (progress through a short flow) ---------- */
.at-steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.at-steps__seg { height: 4px; border-radius: var(--radius-full); background: var(--well); }
.at-steps__seg.is-done { background: var(--accent); }

/* ---------- Choice card (one big option) ---------- */
.at-choice { appearance: none; box-sizing: border-box; display: flex; align-items: center; gap: var(--space-4); width: 100%; min-height: 88px; margin: 0; padding: var(--space-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); color: var(--ink); font-family: var(--font-text); text-align: left; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard); }
.at-choice:hover { background: var(--surface-raised); border-color: var(--line-strong); }
.at-choice[aria-checked="true"] { background: var(--accent-soft); border-color: var(--accent); }
.at-choice:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.at-choice__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.at-choice__title { font-size: 18px; line-height: 24px; font-weight: 700; color: var(--ink); }
.at-choice__text { font-size: 14px; line-height: 20px; color: var(--ink-muted); }

/* ---------- Day picker (weekdays) ---------- */
.at-days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); }
.at-days__day { appearance: none; box-sizing: border-box; min-height: 56px; margin: 0; padding: 0; border-radius: var(--radius-md); border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font-family: var(--font-display); font-feature-settings: "locl" 0; font-size: 16px; font-weight: 700; cursor: pointer; transition: background-color var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard); }
.at-days__day:hover { background: var(--well); }
.at-days__day[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.at-days__day:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* ---------- List row ---------- */
.at-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.at-row { appearance: none; box-sizing: border-box; display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: 64px; margin: 0; padding: var(--space-2) 0; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); font-family: var(--font-text); text-align: left; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.at-row:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
.at-row__thumb { position: relative; flex: none; width: 48px; height: 48px; border-radius: var(--radius-sm); overflow: hidden; background: var(--black); }
.at-row__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.at-row__play { position: absolute; inset: 0; display: grid; place-items: center; color: var(--white); }
.at-row__play .at-icon { width: 14px; height: 14px; }
.at-row__icon { flex: none; display: inline-flex; color: var(--accent-ink); }
.at-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.at-row__title { font-size: 16px; line-height: 22px; font-weight: 600; color: var(--ink); }
.at-row__meta { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.at-row__value { flex: none; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.at-row__chev { flex: none; display: inline-flex; color: var(--ink-muted); }
.at-row--setting { min-height: 56px; }
.at-row--setting .at-row__title { font-weight: 500; }
.at-row--card { min-height: 56px; padding: var(--space-2) var(--space-3) var(--space-2) var(--space-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }

/* ---------- Workout card: today's workout on „Днес“ ---------- */
.at-wcard { box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; width: 100%; }
.at-wcard__media { position: relative; aspect-ratio: var(--wcard-ratio, 4 / 5); border-radius: var(--radius-lg); background: var(--black); display: grid; place-items: center; overflow: hidden; }
.at-wcard__media img, .at-wcard__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.at-wcard__orbits { position: absolute; inset: 0; width: 100%; height: 100%; }
.at-wcard__orbits ellipse { fill: none; stroke: var(--orbit); stroke-width: 1.5; }
.at-wcard__tag { position: absolute; top: var(--space-3); left: var(--space-3); }
.at-wcard__sound { position: absolute; top: var(--space-1); right: var(--space-1); }
.at-wcard__resume { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--scrim); }
.at-wcard__resume > span { display: block; height: 100%; background: var(--accent); }
.at-wcard__head { display: flex; align-items: center; gap: var(--space-2); }
.at-wcard__heading { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.at-wcard__title { font-family: var(--font-display); font-feature-settings: "locl" 0; font-size: 24px; line-height: 28px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.at-wcard__meta { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.at-wcard__more { flex: none; padding: 0 var(--space-1) 0 var(--space-3); }

/* ---------- Stat tile ---------- */
.at-stat { box-sizing: border-box; display: grid; gap: var(--space-1); min-width: 0; padding: var(--space-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.at-stat__label { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink-muted); }
.at-stat__value { font-family: var(--font-display); font-feature-settings: "locl" 0; font-variant-numeric: tabular-nums; font-size: 40px; line-height: 44px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.at-stat__unit { margin-left: 6px; font-family: var(--font-text); font-size: 16px; line-height: 20px; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
.at-stat__delta { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--accent-ink); }
.at-stat__delta .at-icon { width: 16px; height: 16px; }

/* ---------- Atom week ---------- */
.at-week { box-sizing: border-box; display: grid; gap: var(--space-4); padding: var(--space-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); max-width: 420px; }
.at-week__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.at-week__days { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); margin: 0; padding: 0; list-style: none; }
.at-week__days::before { content: ""; position: absolute; left: 7%; right: 7%; top: 16px; height: 1.5px; background: var(--orbit); }
.at-week__day { position: relative; display: grid; justify-items: center; gap: 6px; }
.at-week__dot { box-sizing: border-box; width: 32px; height: 32px; border-radius: var(--radius-full); display: grid; place-items: center; background: var(--well); color: var(--on-accent); }
.at-week__dot .at-icon { width: 18px; height: 18px; stroke-width: 2.5; }
.at-week__day.is-done .at-week__dot { background: var(--accent); }
.at-week__day.is-light .at-week__dot { background: var(--accent-soft); color: var(--accent-ink); }
.at-week__day.is-today .at-week__dot { background: var(--bg); border: 2px solid var(--accent); }
.at-week__day.is-today.is-done .at-week__dot { background: var(--accent); border: 0; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.at-week__name { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-muted); }
.at-week__day.is-today .at-week__name { color: var(--ink); font-weight: 700; }
.at-week__foot { font-size: 14px; line-height: 20px; color: var(--ink-muted); }

/* ---------- Week line: the atom week at a glance ---------- */
.at-weekline { appearance: none; display: inline-flex; align-items: center; gap: 10px; min-height: var(--size-tap); margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink-2); font-family: var(--font-text); font-size: 14px; line-height: 20px; text-decoration: none; cursor: pointer; }
.at-weekline:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
.at-weekline__dots { display: flex; gap: 5px; }
.at-weekline__dot { box-sizing: border-box; width: 10px; height: 10px; border-radius: var(--radius-full); background: var(--well); }
.at-weekline__dot.is-done { background: var(--accent); }
.at-weekline__dot.is-light { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.at-weekline__dot.is-today { background: transparent; box-shadow: inset 0 0 0 2px var(--accent); }
.at-weekline__dot.is-today.is-done { background: var(--accent); }

/* ---------- Month: the calendar, each week an orbit ---------- */
.at-month { box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; padding: var(--space-4) var(--space-3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.at-month__head, .at-month__week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.at-month__wd { text-align: center; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-muted); }
.at-month__week { position: relative; }
.at-month__week::before { content: ""; position: absolute; left: calc(100% / 14); right: calc(100% / 14); top: 19px; height: 2px; border-radius: 2px; background: var(--orbit); }
.at-month__week.is-atomic::before { background: var(--accent); }
.at-month__cell { position: relative; display: flex; justify-content: center; }
.at-month__cell.is-outside { opacity: 0.4; }
.at-month__day { appearance: none; position: relative; box-sizing: border-box; width: 40px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: var(--radius-full); display: grid; place-items: center; background: var(--surface); color: var(--ink-2); font-family: var(--font-display); font-feature-settings: "locl" 0; font-variant-numeric: tabular-nums; font-size: 14px; line-height: 1; font-weight: 700; cursor: pointer; }
.at-month__day::after { content: ""; position: absolute; inset: -4px; }
.at-month__day.is-done { background: var(--accent); color: var(--on-accent); }
.at-month__day.is-light { background: var(--accent-soft); color: var(--accent-ink); }
.at-month__day.is-today { background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 2px var(--accent); }
.at-month__day.is-open { color: var(--ink-muted); }
.at-month__day.is-etalon { color: var(--ink); border: 1.5px dashed var(--ink-muted); }
.at-month__day[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.at-month__day.is-today[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.at-month__day:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* ---------- Orbit levels ---------- */
.at-levels { box-sizing: border-box; display: grid; gap: var(--space-3); padding: var(--space-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); max-width: 420px; }
.at-levels svg { display: block; width: 100%; height: auto; overflow: visible; }
.at-levels__ring { fill: none; stroke: var(--orbit); stroke-width: 1.5; }
.at-levels__ring.is-done { stroke: var(--teal); stroke-width: 1.5; }
.at-levels__ring.is-current { stroke: var(--accent); stroke-width: 2.5; }
.at-levels__ring.is-next { stroke: var(--ink-muted); stroke-width: 1.5; stroke-dasharray: 2 6; stroke-linecap: round; }
.at-levels__nucleus { fill: var(--ink-2); }
.at-levels__halo { fill: var(--accent-soft); }
.at-levels__electron { fill: var(--accent); }
.at-levels__kg { fill: var(--ink-muted); font-family: var(--font-display); font-feature-settings: "locl" 0; font-size: 12px; font-weight: 600; }
.at-levels__kg.is-current { fill: var(--accent-ink); font-weight: 800; font-size: 14px; }
.at-levels__now { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.at-levels__next { font-size: 14px; line-height: 20px; color: var(--ink-2); }
.at-levels__next strong { color: var(--accent-ink); }
/* The leap ceremony: black ink on the work colour, no card. */
.at-levels--leap { padding: 0; background: transparent; border: 0; max-width: none; }
.at-levels--leap .at-levels__ring, .at-levels--leap .at-levels__ring.is-done { stroke: color-mix(in srgb, var(--black) 36%, transparent); }
.at-levels--leap .at-levels__ring.is-current { stroke: var(--black); stroke-width: 3; }
.at-levels--leap .at-levels__ring.is-next { stroke: color-mix(in srgb, var(--black) 50%, transparent); }
.at-levels--leap .at-levels__nucleus, .at-levels--leap .at-levels__electron { fill: var(--black); }
.at-levels--leap .at-levels__halo { fill: color-mix(in srgb, var(--black) 15%, transparent); }
.at-levels--leap .at-levels__kg { fill: color-mix(in srgb, var(--black) 60%, transparent); }
.at-levels--leap .at-levels__kg.is-current { fill: var(--black); }
@media (prefers-reduced-motion: no-preference) {
  .at-levels__electron, .at-levels__halo { transition: transform var(--dur-leap) var(--ease-leap); }
}

/* ---------- Compare (before → now) ---------- */
.at-compare { display: flex; align-items: center; justify-content: center; gap: var(--space-4); }
.at-compare__item { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.at-compare__dot { box-sizing: border-box; width: 112px; height: 112px; border-radius: var(--radius-full); display: grid; place-items: center; font-family: var(--font-display); font-feature-settings: "locl" 0; font-variant-numeric: tabular-nums; font-size: 48px; line-height: 1; font-weight: 800; }
.at-compare__dot--before { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-strong); color: var(--ink-2); }
.at-compare__dot--now { border: 2px dashed var(--accent); color: var(--accent-ink); }
.at-compare__dot--now.is-set { border: 0; background: var(--accent); color: var(--on-accent); }
.at-compare__label { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-muted); }
.at-compare__arrow { display: inline-flex; padding-bottom: 26px; color: var(--ink-muted); }
.at-compare__arrow .at-icon { width: 32px; height: 32px; }

/* ---------- Player ---------- */
.at-player { --pl-bg: var(--work); --pl-fg: var(--on-work); container-type: inline-size; box-sizing: border-box; position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 360px; overflow: hidden; border-radius: var(--radius-lg); background: var(--pl-bg); color: var(--pl-fg); user-select: none; -webkit-user-select: none; touch-action: manipulation; transition: background-color var(--dur-step) var(--ease-standard), color var(--dur-step) var(--ease-standard); }
.at-player--rest { --pl-bg: var(--rest); --pl-fg: var(--on-rest); }
.at-player--hot { --pl-bg: var(--hot); --pl-fg: var(--on-hot); }
.at-player--full { min-height: 0; border-radius: 0; }
.at-player__video { position: relative; flex: none; aspect-ratio: var(--pl-ratio, 9 / 13); background: var(--black); display: grid; place-items: center; overflow: hidden; }
.at-player__video video, .at-player__video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter var(--dur-leap) var(--ease-standard); }
.at-player--rest .at-player__video video, .at-player--rest .at-player__video img { filter: brightness(0.45) saturate(0.6); }
.at-player__video-ph { font-size: 12px; line-height: 16px; color: var(--graphite-400); }
.at-player__tag { position: absolute; z-index: 1; top: var(--space-4); left: var(--space-4); }
.at-player__hud { container-type: inline-size; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; padding: 5cqi 6cqi 7cqi; }
.at-player__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.at-player__total { display: inline-flex; align-items: center; gap: 0.3em; font-family: var(--font-display); font-feature-settings: "locl" 0; font-variant-numeric: tabular-nums; font-size: clamp(13px, 6cqi, 26px); line-height: 1; font-weight: 800; }
.at-player__total .at-icon { width: 0.9em; height: 0.9em; stroke-width: 2.5; }
.at-player__phase { font-family: var(--font-display); font-feature-settings: "locl" 0; font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.at-player__num { font-family: var(--font-display); font-feature-settings: "locl" 0; font-variant-numeric: tabular-nums; font-size: clamp(56px, 37cqi, 280px); line-height: 0.95; font-weight: 800; letter-spacing: -0.03em; }
.at-player__unit { font-family: var(--font-text); font-size: clamp(14px, 6cqi, 32px); font-weight: 600; letter-spacing: 0; margin-left: 0.2em; }
.at-player__step { font-size: clamp(16px, 7cqi, 32px); line-height: 1.2; font-weight: 700; }
.at-player__next { font-size: clamp(12px, 4.6cqi, 20px); line-height: 1.3; font-weight: 500; }
.at-player__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: color-mix(in srgb, var(--pl-fg) 20%, transparent); }
.at-player__bar > span { display: block; height: 100%; background: var(--pl-fg); }
.at-player__lock { position: absolute; z-index: 1; top: var(--space-3); right: var(--space-3); display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-full); background: var(--scrim); color: var(--white); }
.at-player__lock .at-icon { width: 20px; height: 20px; }
.at-player__tap { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
.at-player--side { flex-direction: row; }
.at-player--side .at-player__video { aspect-ratio: auto; flex: 1 1 62%; align-self: stretch; }
.at-player--side .at-player__hud { flex: 0 0 38%; padding: 5cqi 3cqi; }
.at-player--side .at-player__lock { right: auto; left: var(--space-3); top: auto; bottom: var(--space-3); }
@media (prefers-reduced-motion: reduce) { .at-player, .at-player__video video, .at-player__video img { transition: none; } }

/* ---------- Auto start (the 10 seconds before the player) ---------- */
.at-autostart { display: flex; align-items: center; gap: var(--space-3); }
.at-autostart__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.at-autostart__text { font-size: 14px; line-height: 20px; color: var(--ink-2); }
.at-autostart__bar { display: block; height: 4px; border-radius: var(--radius-full); background: var(--well); overflow: hidden; }
.at-autostart__bar > span { display: block; height: 100%; background: var(--accent); transition: width 1s linear; }
@media (prefers-reduced-motion: reduce) { .at-autostart__bar > span { transition: none; } }

/* ---------- Sheet (pause, short choices) ---------- */
.at-scrim { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; justify-content: flex-end; background: var(--scrim); }
.at-scrim--contained { position: absolute; }
.at-scrim--center { justify-content: center; align-items: center; }
.at-sheet { box-sizing: border-box; display: flex; flex-direction: column; gap: var(--space-3); width: 100%; padding: var(--space-6) var(--space-4) calc(var(--space-8) + env(safe-area-inset-bottom, 0px)); background: var(--surface-raised); border-top: 1px solid var(--line); border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow-pop); color: var(--ink); }
.at-scrim--center .at-sheet { width: min(360px, calc(100% - 32px)); padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.at-sheet__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); padding-bottom: var(--space-1); }
.at-sheet__aside { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
@media (prefers-reduced-motion: no-preference) {
  .at-sheet { animation: at-sheet-in var(--dur-step) var(--ease-standard); }
  @keyframes at-sheet-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ---------- Tab bar ---------- */
.at-tabbar { box-sizing: content-box; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: var(--size-tabbar); padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--surface-raised); border-top: 1px solid var(--line); box-shadow: var(--shadow-pop); }
.at-tab { appearance: none; position: relative; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: var(--size-tap); color: var(--ink-muted); font-family: var(--font-text); font-size: 12px; line-height: 16px; font-weight: 500; cursor: pointer; text-decoration: none; }
.at-tab .at-icon { width: 24px; height: 24px; }
.at-tab[aria-current="page"] { color: var(--accent-ink); font-weight: 700; }
.at-tab[aria-current="page"]::before { content: ""; position: absolute; top: 6px; width: 6px; height: 6px; border-radius: var(--radius-full); background: var(--accent); }
.at-tab:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--focus); border-radius: var(--radius-sm); }

/* ---------- Toast ---------- */
.at-toast { box-sizing: border-box; display: flex; align-items: center; gap: var(--space-3); max-width: 420px; padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-pop); font-size: 16px; line-height: 22px; font-weight: 500; }
.at-toast__icon { flex: none; width: 32px; height: 32px; border-radius: var(--radius-full); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.at-toast__icon .at-icon { width: 18px; height: 18px; }
.at-toast--warning .at-toast__icon { background: var(--warning-soft); color: var(--warning); }
.at-toast--danger .at-toast__icon { background: var(--danger-soft); color: var(--danger); }
.at-toast__text { flex: 1; min-width: 0; }
.at-toast__action { flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .at-toast { animation: at-toast-in var(--dur-base) var(--ease-standard); }
  @keyframes at-toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ---------- Member row (coach) ---------- */
.at-member { box-sizing: border-box; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: var(--space-3); min-height: 64px; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); }
.at-avatar { width: 40px; height: 40px; border-radius: var(--radius-full); display: grid; place-items: center; background: var(--well); color: var(--ink-2); font-family: var(--font-display); font-feature-settings: "locl" 0; font-size: 13px; font-weight: 700; }
.at-avatar--lg { width: 56px; height: 56px; background: var(--accent-soft); color: var(--accent-ink); font-size: 22px; font-weight: 800; }
.at-member__main { min-width: 0; }
.at-member__name { font-size: 16px; line-height: 22px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.at-member__meta { font-size: 14px; line-height: 20px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.at-member__week { font-family: var(--font-display); font-feature-settings: "locl" 0; font-variant-numeric: tabular-nums; font-size: 16px; font-weight: 700; color: var(--ink-2); }
.at-member__week small { display: block; font-family: var(--font-text); font-size: 11px; line-height: 14px; font-weight: 500; color: var(--ink-muted); text-align: center; }

/* ---------- Web: the public site (atomtraining.fit). The app does not use these. ---------- */
.at-web { container-type: inline-size; overflow-x: clip; background: var(--bg); color: var(--ink); font-family: var(--font-text); }
.at-wrap { box-sizing: border-box; width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: clamp(var(--space-4), 4cqi, var(--space-12)); }
.at-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.at-skip { position: absolute; left: -9999px; top: var(--space-3); z-index: 100; padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; }
.at-skip:focus { left: var(--space-3); outline: none; box-shadow: var(--focus-ring); }
.at-web a:focus-visible, .at-web button:focus-visible, .at-web summary:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* Web type: fluid sizes for the site only; the app keeps the fixed scale. */
.at-web-h1, .at-web-h2, .at-web-h3 { font-family: var(--font-display); font-feature-settings: "locl" 0; text-wrap: balance; margin: 0; }
.at-web-h1 { font-weight: 800; font-size: clamp(44px, 6.7cqi, 100px); line-height: 0.94; letter-spacing: -0.045em; }
.at-web-h2 { font-weight: 800; font-size: clamp(32px, 5.2cqi, 76px); line-height: 0.98; letter-spacing: -0.04em; }
.at-web-h3 { font-weight: 700; font-size: clamp(20px, 2.2cqi, 30px); line-height: 1.2; letter-spacing: -0.02em; }
.at-web-lead { max-width: 34em; font-size: clamp(18px, 1.6cqi, 22px); line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.at-web-body { max-width: 680px; font-size: clamp(17px, 1.5cqi, 20px); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.at-web-note { max-width: 260px; font-size: 16px; line-height: 1.35; color: var(--ink-2); text-wrap: balance; }
.at-web-note strong { font-family: var(--font-display); font-feature-settings: "locl" 0; font-weight: 800; color: var(--accent-ink); }
.at-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--accent-ink); }
.at-eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.at-em { color: var(--accent-ink); font-style: normal; }
.at-cite { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.at-cite a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.at-cite a:hover { color: var(--ink-2); }

/* Site header: logo, a few links, one CTA, and a thin progress line. */
.at-siteheader { --at-progress: var(--teal); position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.at-siteheader__row { display: flex; align-items: center; gap: var(--space-2); padding-block: var(--space-2); }
.at-siteheader__logo { display: block; flex: none; margin-right: auto; padding: 15px 0; border-radius: var(--radius-xs); color: var(--accent); }
.at-siteheader__logo img, .at-siteheader__logo svg { display: block; height: 18px; width: auto; }
.at-siteheader__link { display: inline-flex; align-items: center; min-height: var(--size-tap); padding: 0 var(--space-3); border-radius: var(--radius-sm); color: var(--ink-2); font-size: 16px; font-weight: 600; text-decoration: none; transition: color var(--dur-fast) var(--ease-standard); }
.at-siteheader__link:hover, .at-siteheader__link[aria-current="page"] { color: var(--ink); }
.at-siteheader__progress { height: 2px; margin-bottom: -1px; }
.at-siteheader__progress > span { display: block; width: 0; height: 100%; background: var(--at-progress); }
@container (max-width: 520px) { .at-siteheader__link--wide { display: none; } }

/* Site footer */
.at-sitefooter { border-top: 1px solid var(--line); background: var(--surface); }
.at-sitefooter__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4) var(--space-8); padding-block: var(--space-6) var(--space-8); }
.at-sitefooter__logo { display: block; color: var(--accent); }
.at-sitefooter__logo img, .at-sitefooter__logo svg { display: block; height: 20px; width: auto; }
.at-sitefooter__nav { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-5); }
.at-sitefooter__nav a { display: inline-flex; align-items: center; min-height: var(--size-tap); border-radius: var(--radius-xs); color: var(--ink-2); font-size: 16px; text-decoration: none; }
.at-sitefooter__nav a:hover { color: var(--ink); }
.at-sitefooter__copy { font-size: 14px; line-height: 20px; color: var(--ink-muted); }

/* Hero: the first screen. Copy on the left, the phone on the right; stacked on a phone. */
.at-hero { position: relative; isolation: isolate; }
.at-hero::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: clamp(120px, 14cqi, 220px); background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; }
.at-hero__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: clamp(var(--space-12), 5cqi, 80px); padding-block: clamp(40px, 6cqi, 88px) clamp(var(--space-16), 7cqi, 104px); }
.at-hero__copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: clamp(22px, 2.4cqi, var(--space-8)); }
.at-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); }
.at-hero__media { flex: 0 0 auto; width: clamp(260px, 23cqi, 330px); margin-inline: auto; position: relative; }
@container (min-width: 960px) {
  .at-hero__row { min-height: min(calc(100svh - 64px), 920px); flex-wrap: nowrap; }
  .at-hero__media { margin-inline: 0 4%; }
}

/* Glow and grain: the site only (advertising). Never in the app. */
.at-glow { position: absolute; z-index: -2; inset: 0; pointer-events: none; background: radial-gradient(42% 58% at 76% 46%, color-mix(in srgb, var(--accent) 26%, transparent) 0%, transparent 70%), radial-gradient(40% 50% at 4% 100%, color-mix(in srgb, var(--teal) 14%, transparent) 0%, transparent 70%); }
.at-grain { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; opacity: 0.06; pointer-events: none; }

/* Section: the page rhythm. */
.at-section { position: relative; padding-block: clamp(88px, 10cqi, 160px); }
.at-section--line { border-top: 1px solid var(--line); }
.at-section--accent { overflow: hidden; isolation: isolate; background: var(--accent); color: var(--on-accent); padding-block: clamp(104px, 14cqi, 220px); }
.at-section--accent .at-em, .at-section--accent .at-section__kicker { color: inherit; }
.at-section__kicker { display: block; margin-bottom: var(--space-5); color: var(--accent-ink); }
.at-section__head { display: flex; flex-direction: column; gap: var(--space-5); max-width: 880px; }
.at-section__body { margin-top: clamp(var(--space-12), 5cqi, 80px); }
.at-section__orbits { position: absolute; z-index: -1; right: -14%; top: 50%; width: min(96cqi, 1040px); transform: translateY(-50%); pointer-events: none; }
.at-section__orbits ellipse { fill: none; stroke: color-mix(in srgb, var(--black) 14%, transparent); stroke-width: 1.5; }
.at-split { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: clamp(40px, 5cqi, 80px); }
.at-split > :first-child { flex: 1 1 420px; min-width: 0; }
.at-split > :last-child { flex: 0 1 420px; min-width: 0; }

/* Big stat: one result, one number. */
.at-bigstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(var(--space-6), 3cqi, 40px); max-width: 880px; }
.at-bigstat { display: flex; flex-direction: column; gap: var(--space-3); padding-top: var(--space-5); border-top: 2px solid var(--accent); }
.at-bigstat__n { font-family: var(--font-display); font-feature-settings: "locl" 0; font-weight: 800; font-size: clamp(56px, 6.4cqi, 96px); line-height: 0.9; letter-spacing: -0.05em; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.at-bigstat__t { font-size: 18px; line-height: 26px; font-weight: 600; color: var(--ink); }

/* Phone frame: the player as it looks on a phone. */
.at-phone { position: relative; box-sizing: border-box; width: 100%; aspect-ratio: 9 / 19.5; padding: 9px; border-radius: 46px; background: linear-gradient(160deg, var(--graphite-800), var(--graphite-900) 40%, var(--black)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--white) 14%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--white) 6%, transparent), 0 60px 120px -40px color-mix(in srgb, var(--accent) 45%, transparent), 0 30px 60px -30px var(--black); }
.at-phone__screen { height: 100%; overflow: hidden; border-radius: 37px; background: var(--black); }
.at-phone__screen .at-player { min-height: 0; border-radius: 0; }

/* Weight ladder: the kettlebells from the first to the heaviest. */
.at-ladder { display: flex; align-items: flex-end; gap: 1.1em; margin: 0; padding: 0; list-style: none; font-size: clamp(8.5px, 2.3cqi, 20px); }
.at-ladder__item { --i: 0; display: flex; flex-direction: column; align-items: center; gap: 0.9em; color: var(--graphite-600); }
.at-ladder__item svg { display: block; width: calc(2.9em + var(--i) * 0.5em); height: auto; overflow: visible; }
.at-ladder__h { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.at-ladder__b { fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linejoin: round; }
.at-ladder__item.is-done .at-ladder__b, .at-ladder__item.is-now .at-ladder__b { fill: currentColor; }
.at-ladder__item.is-now { color: var(--accent); }
.at-ladder__item.is-now svg { filter: drop-shadow(0 0 22px color-mix(in srgb, var(--accent) 60%, transparent)); }
.at-ladder__item.is-next { color: var(--ink); }
.at-ladder__n { display: inline-flex; align-items: baseline; gap: 0.15em; font-family: var(--font-display); font-feature-settings: "locl" 0; font-weight: 800; font-size: 1.8em; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--ink-muted); }
.at-ladder__n small { font-family: var(--font-text); font-size: 0.45em; font-weight: 600; letter-spacing: 0; }
.at-ladder__item.is-now .at-ladder__n { color: var(--accent-ink); }
.at-ladder__item.is-next .at-ladder__n { color: var(--ink); }

/* Plan card: the subscription. Also the app's paywall later. */
.at-plan { box-sizing: border-box; display: flex; flex-direction: column; align-items: stretch; padding: clamp(var(--space-6), 2.6cqi, 36px); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--surface-raised) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--line), 0 50px 100px -50px color-mix(in srgb, var(--accent) 40%, transparent); color: var(--ink); }
.at-plan__kicker { margin-bottom: 14px; color: var(--accent-ink); }
.at-plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-3); }
.at-plan__n { font-family: var(--font-display); font-feature-settings: "locl" 0; font-weight: 800; font-size: clamp(48px, 4.6cqi, 68px); line-height: 1; letter-spacing: -0.04em; }
.at-plan__per { font-family: var(--font-display); font-feature-settings: "locl" 0; font-weight: 700; font-size: clamp(16px, 1.5cqi, 20px); color: var(--ink-2); }
.at-plan__note { margin-top: var(--space-2); font-size: 16px; line-height: 1.4; color: var(--ink-muted); }
.at-plan__list { display: flex; flex-direction: column; gap: var(--space-3); margin: var(--space-6) 0 28px; padding: var(--space-5) 0 0; list-style: none; border-top: 1px solid var(--line); }
.at-plan__list li { display: flex; align-items: center; gap: var(--space-3); font-size: 18px; line-height: 1.3; font-weight: 600; }
.at-plan__list .at-icon { flex: none; width: 22px; height: 22px; color: var(--accent-ink); }

/* FAQ: questions people ask before they start. Native details/summary: works without JS and reads as text for search. */
.at-faq { display: flex; flex-direction: column; max-width: 880px; border-top: 1px solid var(--line); }
.at-faq__item { border-bottom: 1px solid var(--line); }
.at-faq__q { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: var(--size-tap); padding-block: var(--space-5); cursor: pointer; list-style: none; border-radius: var(--radius-xs); font-family: var(--font-display); font-feature-settings: "locl" 0; font-weight: 700; font-size: clamp(18px, 1.8cqi, 24px); line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); }
.at-faq__q::-webkit-details-marker { display: none; }
.at-faq__q::marker { content: ""; }
.at-faq__q .at-icon { flex: none; color: var(--accent-ink); transition: transform var(--dur-base) var(--ease-standard); }
.at-faq__item[open] > .at-faq__q .at-icon { transform: rotate(90deg); }
.at-faq__a { max-width: 680px; padding-bottom: var(--space-6); font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.at-faq__a > * + * { margin-top: var(--space-3); }

/* Card in a row: text and an action side by side (the invite under the plan). */
.at-card--split { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5) var(--space-8); }
.at-card--split > :first-child { flex: 1 1 360px; min-width: 0; }

/* Reveal on scroll: JS adds .is-pending only to blocks below the first screen, so text is there without JS. */
.at-reveal { transition: opacity 0.9s var(--ease-standard), transform 0.9s var(--ease-standard); }
.at-reveal.is-pending { opacity: 0; transform: translateY(32px); }
@media (prefers-reduced-motion: reduce) {
  .at-reveal, .at-reveal.is-pending { transition: none; opacity: 1; transform: none; }
  .at-faq__q .at-icon { transition: none; }
}

/* ---------- Preview helpers (only for this system's previews) ---------- */
.at-demo { box-sizing: border-box; padding: var(--space-5); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.at-demo--col { flex-direction: column; align-items: stretch; max-width: 460px; }
.at-demo--top { align-items: flex-start; }
