/* Advanced features — components only. Each concept's theme.css maps its
   palette/type onto these --a-* tokens. Headings, .btn and .wrap come from the
   concept's own stylesheet so everything looks native to that concept. */
:root {
  --a-bg: #fff; --a-alt: #f4f4f4; --a-surface: #fff; --a-text: #111; --a-muted: #666; --a-line: #ddd;
  --a-accent: #111; --a-accent-ink: #fff; --a-highlight: #b07a52; --a-good: #2f7a4f;
  --a-display: inherit; --a-body: inherit; --a-radius: 8px; --a-pill: 999px;
}
.a-eyebrow { font: 700 .7rem/1.2 var(--a-body); letter-spacing: .2em; text-transform: uppercase; color: var(--a-highlight); margin: 0 0 .9em; }
.a-muted { color: var(--a-muted); }
.a-fine { font-size: .86rem; color: var(--a-muted); }
.a-center { text-align: center; }
.a-note { font-size: .9rem; color: var(--a-muted); border-left: 3px solid var(--a-highlight); padding: 10px 14px; background: color-mix(in srgb, var(--a-highlight) 8%, transparent); }
.a-h3 { font-size: 1.4rem; margin: 0; }
.a-h4 { font: 700 .74rem/1.2 var(--a-body); letter-spacing: .16em; text-transform: uppercase; color: var(--a-muted); margin: 26px 0 10px; }
.a-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 18px; }
.a-row-end { display: flex; justify-content: flex-end; margin-top: 24px; }
.a-row-center { display: flex; justify-content: center; margin-top: 20px; }
.a-btn-block { width: 100%; text-align: center; justify-content: center; }
.btn.a-btn-alt { background: transparent; color: var(--a-text); border: 1px solid var(--a-line); }
.btn.a-btn-alt:hover { border-color: var(--a-accent); color: var(--a-text); background: transparent; }
.a-link-btn { all: unset; cursor: pointer; font: 700 .78rem/1.2 var(--a-body); letter-spacing: .12em; text-transform: uppercase; color: var(--a-accent); padding: 8px 0; }
.a-link-btn:hover { text-decoration: underline; text-underline-offset: 4px; }
.a-link-btn:focus-visible, .a-mini-btn:focus-visible, .a-chip:focus-visible { outline: 2px solid var(--a-accent); outline-offset: 3px; }
.a-mini-btn { all: unset; cursor: pointer; font: 600 .82rem/1 var(--a-body); padding: 10px 14px; border: 1px solid var(--a-line); border-radius: var(--a-pill); color: var(--a-text); }
.a-mini-btn:hover { border-color: var(--a-accent); }
[data-adv], .a-dialog { -webkit-tap-highlight-color: transparent; }

/* Page intro */
.a-hero { padding: clamp(48px, 8vw, 104px) 0 clamp(24px, 4vw, 48px); max-width: 820px; }
.a-hero .a-lead { font-size: 1.15rem; color: var(--a-muted); max-width: 56ch; }
.a-section { padding-bottom: clamp(56px, 8vw, 112px); }
.a-band { background: var(--a-alt); padding: clamp(48px, 7vw, 88px) 0; }
.a-band-in { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.a-band-in h2 { margin: 0; }

/* Cards, chips, badges */
.a-card { background: var(--a-surface); border: 1px solid var(--a-line); border-radius: var(--a-radius); padding: clamp(20px, 3vw, 30px); }
.a-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 24px; }
.a-chips-label { font-size: .85rem; color: var(--a-muted); margin-right: 4px; }
.a-chip { all: unset; box-sizing: border-box; cursor: pointer; font: 600 .86rem/1 var(--a-body); padding: 11px 16px; border-radius: var(--a-pill); border: 1px solid var(--a-line); background: var(--a-surface); color: var(--a-text); min-height: 40px; display: inline-flex; align-items: center; gap: 8px; }
.a-chip:hover { border-color: var(--a-accent); }
.a-chip[aria-pressed="true"] { background: var(--a-accent); border-color: var(--a-accent); color: var(--a-accent-ink); }
.a-chip-ghost { background: transparent; }
.a-badge { display: inline-block; font: 700 .68rem/1 var(--a-body); letter-spacing: .12em; text-transform: uppercase; padding: 6px 9px; border-radius: var(--a-pill); background: var(--a-accent); color: var(--a-accent-ink); }
.a-badge-soft { background: color-mix(in srgb, var(--a-accent) 12%, transparent); color: var(--a-text); }
.a-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 0; margin: 18px 0; border-top: 1px solid var(--a-line); }
.a-facts div { padding: 12px 0; border-bottom: 1px solid var(--a-line); }
.a-facts dt { font: 700 .66rem/1.4 var(--a-body); letter-spacing: .14em; text-transform: uppercase; color: var(--a-muted); }
.a-facts dd { margin: 2px 0 0; font-weight: 600; }

/* Programmes */
.a-prog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.a-prog { display: flex; flex-direction: column; }
.a-prog-top { display: flex; gap: 6px; margin-bottom: 18px; }
.a-prog-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.a-price { font: 600 1.6rem/1 var(--a-display); }
.a-phases { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.a-phases li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.a-phases span { color: var(--a-muted); }
.a-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.a-table th, .a-table td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--a-line); }
.a-table thead th { font: 700 .68rem/1.4 var(--a-body); letter-spacing: .14em; text-transform: uppercase; color: var(--a-muted); }

/* Dialog */
.a-dialog { border: 0; padding: 0; border-radius: var(--a-radius); background: var(--a-surface); color: var(--a-text); width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); box-shadow: 0 30px 80px rgb(0 0 0 / .3); font-family: var(--a-body); }
.a-dialog-wide { width: min(760px, calc(100vw - 24px)); }
.a-dialog::backdrop { background: rgb(10 10 10 / .5); backdrop-filter: blur(3px); }
.a-dialog[open] { animation: a-pop .25s ease both; }
@keyframes a-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .a-dialog[open] { animation: none; } }
.a-dialog-body { padding: clamp(24px, 5vw, 40px); overflow-y: auto; max-height: calc(100dvh - 24px); box-sizing: border-box; }
.a-dialog-x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--a-text); font-size: 1.1rem; cursor: pointer; z-index: 2; }
.a-dialog-x:hover { background: color-mix(in srgb, var(--a-text) 8%, transparent); }
.a-dlg-title { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 10px; padding-right: 40px; }
.a-dlg-actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 26px; }
html.dialog-open { overflow: hidden; }
.a-summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-block: 1px solid var(--a-line); margin: 18px 0; }
.a-form { display: grid; gap: 16px; }
.a-form label { display: grid; gap: 6px; font: 600 .74rem/1.3 var(--a-body); letter-spacing: .1em; text-transform: uppercase; color: var(--a-muted); }
.a-form input:not([type=checkbox]):not([type=radio]), .a-form select, .a-form textarea, .a-plan select {
  font-family: inherit; font-size: 16px; line-height: 1.4; letter-spacing: 0; text-transform: none; color: var(--a-text);
  background: var(--a-bg); border: 1px solid var(--a-line); border-radius: min(var(--a-radius), 12px); padding: 11px 12px; width: 100%; box-sizing: border-box;
}
.a-form input:focus, .a-form select:focus, .a-form textarea:focus, .a-plan select:focus { outline: none; border-color: var(--a-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--a-accent) 22%, transparent); }
.a-check { display: flex !important; gap: 10px; align-items: flex-start; text-transform: none !important; letter-spacing: 0 !important; font: 400 .95rem/1.5 var(--a-body) !important; color: var(--a-text) !important; margin: 14px 0; cursor: pointer; }
.a-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--a-accent); flex: none; }
.a-err { color: #c0392b; margin: 0; }
.a-processing { display: flex; align-items: center; gap: 14px; padding: 40px 0; justify-content: center; }
.a-spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--a-line); border-top-color: var(--a-accent); animation: a-spin .8s linear infinite; }
@keyframes a-spin { to { transform: rotate(360deg); } }
.a-done { text-align: center; padding: 10px 0; }
.a-tick { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--a-accent); color: var(--a-accent-ink); font-size: 1.5rem; }

/* Toast */
.a-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 100;
  background: var(--a-text); color: var(--a-bg); padding: 12px 18px; border-radius: var(--a-pill); font: 600 .92rem/1.2 var(--a-body); transition: opacity .25s, transform .25s; box-shadow: 0 10px 30px rgb(0 0 0 / .25); }
.a-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Kitchen: tabs */
.a-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--a-line); margin-bottom: 28px; overflow-x: auto; scrollbar-width: none; }
.a-tabs [role=tab] { all: unset; cursor: pointer; white-space: nowrap; padding: 14px 16px; font: 700 .8rem/1 var(--a-body); letter-spacing: .1em; text-transform: uppercase; color: var(--a-muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.a-tabs [role=tab][aria-selected="true"] { color: var(--a-text); border-bottom-color: var(--a-accent); }
.a-tabs [role=tab]:focus-visible { outline: 2px solid var(--a-accent); outline-offset: -2px; }
.a-tabpanel:focus { outline: none; }

/* Kitchen: recipes */
.a-recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.a-recipe { display: flex; flex-direction: column; }
.a-recipe h3 { font-size: 1.35rem; }
.a-macros { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 12px 0; border-block: 1px solid var(--a-line); }
.a-macros div { padding: 10px 0; text-align: center; }
.a-macros div + div { border-left: 1px solid var(--a-line); }
.a-macros dt { font: 700 .62rem/1.3 var(--a-body); letter-spacing: .12em; text-transform: uppercase; color: var(--a-muted); }
.a-macros dd { margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.a-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.a-tags span { font-size: .75rem; padding: 4px 9px; border-radius: var(--a-pill); background: color-mix(in srgb, var(--a-accent) 10%, transparent); }
.a-recipe-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.a-ing { list-style: none; padding: 0; margin: 0; }
.a-ing li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--a-line); }
.a-ing li span:last-child { color: var(--a-muted); white-space: nowrap; }
.a-steps { padding-left: 1.2em; margin: 0; display: grid; gap: 8px; }

/* Kitchen: planner */
.a-plan-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; align-items: center; margin-bottom: 18px; }
.a-plan-bar .a-chips { margin: 0; }
.a-plan { display: grid; gap: 8px; }
.a-plan-day { background: var(--a-surface); border: 1px solid var(--a-line); border-radius: var(--a-radius); padding: 14px 16px; display: grid; gap: 10px 14px; align-items: end;
  grid-template-columns: 110px repeat(4, minmax(0, 1fr)) 120px; }
.a-plan-dayname { font-size: 1.05rem; margin: 0; align-self: center; }
.a-plan-slot { display: grid; gap: 4px; font: 700 .62rem/1.3 var(--a-body); letter-spacing: .12em; text-transform: uppercase; color: var(--a-muted); }
.a-plan select { padding: 8px; font-size: 16px; }
.a-plan-total { margin: 0; font-size: .82rem; color: var(--a-muted); align-self: center; }
.a-plan-total strong { color: var(--a-text); }
@media (max-width: 1000px) {
  .a-plan { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
  .a-plan-day { grid-template-columns: 1fr; align-content: start; }
  .a-plan-total { border-top: 1px solid var(--a-line); padding-top: 8px; }
}
.a-empty { text-align: center; padding: 40px 0; }

/* Kitchen: shopping + basket chart */
.a-shop-head { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 26px; }
.a-stat { background: var(--a-surface); border: 1px solid var(--a-line); border-radius: var(--a-radius); padding: 18px 20px; display: grid; gap: 4px; }
.a-stat-label { font: 700 .66rem/1.3 var(--a-body); letter-spacing: .14em; text-transform: uppercase; color: var(--a-muted); }
.a-stat-big { font: 600 2rem/1.1 var(--a-display); font-variant-numeric: tabular-nums; }
.a-stat .a-muted { font-size: .86rem; }
@media (max-width: 760px) { .a-shop-head { grid-template-columns: 1fr; } }
.a-figure { margin: 0 0 18px; }
.a-figure figcaption { margin-bottom: 12px; font-size: .95rem; }
.a-bars { display: grid; gap: 2px; }
.a-bar-row { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 112px minmax(0, 1fr) 152px; align-items: center; gap: 12px; padding: 8px 6px; border-radius: 6px; position: relative; cursor: default; }
button.a-bar-row { cursor: pointer; }
button.a-bar-row:hover, button.a-bar-row.is-selected { background: color-mix(in srgb, var(--a-accent) 7%, transparent); }
button.a-bar-row:focus-visible { outline: 2px solid var(--a-accent); outline-offset: 1px; }
.a-bar-label { font-weight: 600; font-size: .92rem; display: grid; }
.a-bar-label small { font-weight: 400; font-size: .72rem; color: var(--a-muted); }
.a-bar-track { height: 14px; display: block; }
.a-bar-fill { display: block; height: 100%; width: var(--w, 0%); border-radius: 0 4px 4px 0; background: color-mix(in srgb, var(--a-accent) 38%, var(--a-surface)); transition: width .6s cubic-bezier(.2,.7,.2,1); }
.is-cheapest .a-bar-fill { background: var(--a-accent); }
.a-bar-val { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .95rem; display: flex; gap: 8px; align-items: baseline; white-space: nowrap; }
.a-bar-val em { font-style: normal; font: 700 .62rem/1 var(--a-body); letter-spacing: .1em; text-transform: uppercase; color: var(--a-accent-ink); background: var(--a-accent); padding: 4px 6px; border-radius: 4px; }
.a-bar-row[data-tip]:hover::after, button.a-bar-row[data-tip]:focus-visible::after {
  content: attr(data-tip); position: absolute; left: 124px; bottom: calc(100% - 2px); z-index: 5; white-space: nowrap;
  background: var(--a-text); color: var(--a-bg); font: 500 .8rem/1.2 var(--a-body); padding: 7px 10px; border-radius: 6px; pointer-events: none;
}
.a-bars-compact .a-bar-row { grid-template-columns: 92px minmax(0, 1fr) 146px; padding: 5px 0; }
.a-bars-compact .a-bar-track { height: 10px; }
@media (max-width: 520px) {
  .a-bar-row, .a-bars-compact .a-bar-row { grid-template-columns: 84px minmax(0, 1fr) 72px; gap: 8px; }
  .a-bar-val em { display: none; }
  .a-bar-row.is-cheapest .a-bar-label::after { content: "cheapest"; font: 700 .6rem/1 var(--a-body); letter-spacing: .08em; text-transform: uppercase; color: var(--a-accent); margin-top: 3px; }
  .a-bar-row[data-tip]:hover::after { left: 0; }
}
.a-list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 24px 0 8px; }
.a-shoplist { list-style: none; padding: 0; margin: 0 0 18px; border-top: 1px solid var(--a-line); }
.a-shoplist li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--a-line); }
.a-sl-name { display: grid; font-weight: 600; }
.a-sl-name small, .a-sl-price small { font-weight: 400; font-size: .8rem; color: var(--a-muted); }
.a-sl-price { text-align: right; display: grid; font-weight: 700; font-variant-numeric: tabular-nums; }
.a-sl-price small.a-good { color: var(--a-accent); font-weight: 600; }
.a-sl-links { grid-column: 1 / -1; display: flex; gap: 16px; font-size: .8rem; }
.a-sl-links a { color: var(--a-accent); text-underline-offset: 3px; padding: 6px 0; }
.a-details { margin: 8px 0 18px; border: 1px solid var(--a-line); border-radius: var(--a-radius); padding: 0 16px; background: var(--a-surface); }
.a-details summary { cursor: pointer; padding: 16px 0; font-weight: 600; }
.a-scroll { overflow-x: auto; margin: 0 -16px; padding: 0 16px 16px; }
.a-matrix { min-width: 720px; font-variant-numeric: tabular-nums; font-size: .88rem; }
.a-matrix th[scope=row] { font-weight: 600; }
.a-matrix td.is-best { font-weight: 700; color: var(--a-accent); }
.a-matrix tfoot th, .a-matrix tfoot td { border-top: 2px solid var(--a-text); font-weight: 700; }

/* Homepage "full system" section */
.a-system { padding: clamp(64px, 9vw, 120px) 0; background: var(--a-alt); }
.a-system-head { max-width: 700px; margin-bottom: clamp(32px, 5vw, 56px); }
.a-system-head .a-lead { color: var(--a-muted); font-size: 1.1rem; }
.a-system-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.a-sys-card { text-decoration: none; color: inherit; background: var(--a-surface); border: 1px solid var(--a-line); border-radius: var(--a-radius); padding: 26px 22px; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.a-sys-card:hover { border-color: var(--a-accent); transform: translateY(-3px); }
.a-sys-card:focus-visible { outline: 2px solid var(--a-accent); outline-offset: 3px; }
.a-sys-n { font: 600 .8rem/1 var(--a-body); color: var(--a-highlight); margin-bottom: 26px; }
.a-sys-card p { color: var(--a-muted); }
.a-sys-card .a-go { margin-top: auto; font: 700 .74rem/1.2 var(--a-body); letter-spacing: .12em; text-transform: uppercase; color: var(--a-accent); }
.a-teaser { margin-top: 18px; background: var(--a-surface); border: 1px solid var(--a-line); border-radius: var(--a-radius); padding: 24px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px 40px; align-items: center; }
.a-teaser-head { margin: 0 0 12px; display: grid; gap: 4px; }
.a-teaser-head strong { font: 600 1.6rem/1.15 var(--a-display); }
.a-teaser-copy h3 { margin-bottom: .3em; }
.a-teaser-copy p { color: var(--a-muted); }
@media (max-width: 960px) { .a-system-grid { grid-template-columns: 1fr 1fr; } .a-teaser { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .a-system-grid { grid-template-columns: 1fr; } }

/* Membership */
.a-billing { display: flex; justify-content: center; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.a-save { font-size: .72rem; opacity: .8; }
.a-tiers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; align-items: stretch; }
.a-tier { display: flex; flex-direction: column; position: relative; }
.a-tier.is-featured { border-color: var(--a-accent); box-shadow: 0 0 0 1px var(--a-accent); }
.a-flag { position: absolute; top: -12px; left: 20px; margin: 0; background: var(--a-accent); color: var(--a-accent-ink); font: 700 .66rem/1 var(--a-body); letter-spacing: .14em; text-transform: uppercase; padding: 6px 10px; border-radius: var(--a-pill); }
.a-tier h3 { font-size: 1.35rem; }
.a-tier-price { margin: 4px 0 12px; }
.a-tier-price strong { font: 600 2.2rem/1 var(--a-display); }
.a-tier-price span { color: var(--a-muted); font-size: .9rem; }
.a-feats { list-style: none; padding: 0; margin: 4px 0 24px; display: grid; gap: 9px; font-size: .93rem; flex: 1; align-content: start; }
.a-feats li { padding-left: 22px; position: relative; }
.a-feats li::before { content: "✓"; position: absolute; left: 0; color: var(--a-accent); font-weight: 700; }
@media (max-width: 1200px) { .a-tiers { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .a-tiers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .a-tiers { grid-template-columns: 1fr; } }

/* Portal */
.a-portal-banner { background: #f4e7c6; color: #4a3b12; padding: 10px 14px; border-radius: 8px; font-size: .88rem; margin-bottom: 28px; }
.a-portal-hello { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.a-portal-h { margin: 0 0 .2em; }
.a-progress-ring { --p: 37.5%; width: 92px; height: 92px; border-radius: 50%; flex: none; display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, var(--a-bg) 76%, transparent 77% 100%), conic-gradient(var(--a-accent) var(--p), var(--a-line) 0); }
.a-progress-ring span { font: 600 1.4rem/1 var(--a-display); }
.a-progress-ring small { font-size: .7rem; color: var(--a-muted); }
.a-portal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.a-pc h3 { margin: 0 0 .2em; font-size: 1.6rem; }
.a-pc-wide { grid-column: 1 / -1; }
.a-pc-next { background: var(--a-accent); color: var(--a-accent-ink); border-color: var(--a-accent); }
.a-pc-next .a-eyebrow, .a-pc-next .a-muted, .a-pc-next .a-link-btn { color: inherit; opacity: .85; }
.a-pc-next .btn { background: var(--a-accent-ink); color: var(--a-accent); border-color: var(--a-accent-ink); }
.a-sessions { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.a-sessions label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; cursor: pointer; border-bottom: 1px solid var(--a-line); }
.a-sessions input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--a-accent); flex: none; }
.a-sessions span { display: grid; }
.a-sessions small { color: var(--a-muted); font-size: .82rem; }
.a-sessions input:checked + span strong { text-decoration: line-through; text-decoration-color: var(--a-muted); }
.a-today { list-style: none; padding: 0; margin: 0; }
.a-today li { display: grid; grid-template-columns: 90px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--a-line); }
.a-today span { color: var(--a-muted); font-size: .86rem; }
.a-msg { margin: 0; font: italic 400 1.15rem/1.5 var(--a-display); }
.a-checkin { grid-template-columns: repeat(3, 1fr); align-items: end; }
.a-checkin .a-wide { grid-column: 1 / -1; }
.a-scale { border: 0; padding: 0; margin: 0; display: flex; gap: 6px; }
.a-scale legend { font: 600 .74rem/1.3 var(--a-body); letter-spacing: .1em; text-transform: uppercase; color: var(--a-muted); margin-bottom: 6px; padding: 0; }
.a-scale label { display: block; }
.a-scale input { position: absolute; opacity: 0; }
.a-scale span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--a-line); cursor: pointer; font-weight: 700; color: var(--a-text); letter-spacing: 0; }
.a-scale input:checked + span { background: var(--a-accent); color: var(--a-accent-ink); border-color: var(--a-accent); }
.a-scale input:focus-visible + span { outline: 2px solid var(--a-accent); outline-offset: 2px; }
@media (max-width: 760px) { .a-portal-grid { grid-template-columns: 1fr; } .a-checkin { grid-template-columns: 1fr; } }

/* Line chart */
.a-line-box { position: relative; }
.a-line-box { min-height: 220px; }
.a-line svg { width: 100%; height: 220px; display: block; overflow: visible; touch-action: pan-y; }
.a-grid { stroke: var(--a-line); stroke-width: 1; }
.a-axis { fill: var(--a-muted); font: 500 11px/1 var(--a-body); }
.a-series { fill: none; stroke: var(--a-accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.a-dot { fill: var(--a-accent); stroke: var(--a-surface); stroke-width: 2; vector-effect: non-scaling-stroke; }
.a-dot.is-on { r: 6.5; }
.a-cross { stroke: var(--a-muted); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.a-hit { fill: transparent; cursor: crosshair; }
.a-tip { position: absolute; transform: translate(-50%, calc(-100% - 12px)); background: var(--a-text); color: var(--a-bg); font: 600 .8rem/1 var(--a-body); padding: 7px 10px; border-radius: 6px; pointer-events: none; white-space: nowrap; }

/* Scope note on Kitchen */
.a-scope { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; margin-bottom: 32px; }
.a-scope-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--a-accent); color: var(--a-accent-ink); font-weight: 700; }
.a-scope p { margin: 0; font-size: .92rem; color: var(--a-muted); }

/* Nav: six items on the plus sites — tighten between tablet and desktop */
@media (min-width: 861px) and (max-width: 1180px) {
  .header .nav { gap: 1.1rem; font-size: .7rem; }
  .header .nav .nav-cta { padding-inline: 16px; }
}
.nav a[aria-current="page"] { color: var(--a-accent); }

/* Sub-page headings: concept h1s are sized for heroes — keep inner pages calmer */
.a-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
.a-band h2, .a-system h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.a-sys-card h3 { font-size: 1.6rem; margin-bottom: .3em; }
.a-teaser-copy h3 { font-size: 1.6rem; }
.a-portal-wrap { padding-top: clamp(28px, 5vw, 56px); }
.a-portal-h { font-size: clamp(2rem, 5vw, 3.2rem); }

.a-tiers + .a-fine { margin-top: 28px; }

/* ── Personal plan (from Anna's coach app) + session player ─────────────── */
.a-plan-days { list-style: none; padding: 0; margin: 0 0 8px; display: grid; }
.a-plan-days li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--a-line); }
.a-plan-days li > span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.a-plan-days small { color: var(--a-muted); font-size: .82rem; }
.a-plan-days li.is-done strong { color: var(--a-good); }
.a-btn-start { flex: none; padding: 12px 18px !important; font-size: .8rem !important; }
.a-dialog-play .a-dialog-body { padding: clamp(18px, 4vw, 32px); }
@media (max-width: 600px) {
  .a-dialog.a-dialog-play { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .a-dialog-play .a-dialog-body { max-height: 100dvh; height: 100%; padding: 14px 16px calc(20px + env(safe-area-inset-bottom)); }
}
.a-play-top { padding-right: 44px; }
.a-play-top .a-eyebrow { margin-bottom: 8px; }
.a-play-prog { height: 4px; background: var(--a-line); border-radius: 2px; overflow: hidden; }
.a-play-prog i { display: block; height: 100%; width: var(--p); background: var(--a-highlight); transition: width .3s; }
.lib-player { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--a-radius, 10px); overflow: hidden; margin: 14px 0; }
.lib-player video, .lib-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.lib-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 16px; color: var(--a-muted);
  background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--a-text) 6%, var(--a-alt)) 0 10px, var(--a-alt) 10px 20px); }
.lib-ph svg { width: 64px; height: 64px; flex: none; fill: none; stroke: var(--a-highlight); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lib-ph strong { display: block; color: var(--a-text); font-family: var(--a-display); font-size: 1.15rem; line-height: 1.1; margin-bottom: 4px; }
.lib-ph small { font-size: .8rem; }
.a-play-h { display: flex; align-items: center; gap: 12px; }
.a-play-h .a-dlg-title { margin: 0; padding: 0; }
.a-play-lbl { flex: none; min-width: 40px; height: 40px; padding: 0 6px; display: grid; place-items: center; background: var(--a-accent); color: var(--a-accent-ink); border-radius: var(--a-radius); font-weight: 800; font-family: var(--a-display); }
.a-play-note { margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid var(--a-highlight); background: color-mix(in srgb, var(--a-highlight) 9%, transparent); font-size: .92rem; }
.a-play-cues { margin: 12px 0 0; }
.a-play-cues summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.a-play-cues ol { margin: 4px 0 0; padding-left: 20px; color: var(--a-muted); }
.a-play-sets { width: 100%; border-collapse: collapse; margin: 14px 0 6px; table-layout: fixed; }
.a-play-sets th { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--a-muted); text-align: left; padding: 0 4px 6px; font-weight: 700; }
.a-play-sets th:nth-child(1) { width: 52px; } .a-play-sets th:nth-child(5) { width: 52px; }
.a-play-sets td { padding: 6px 4px; border-top: 1px solid var(--a-line); vertical-align: middle; font-size: .9rem; }
.a-play-sets td small { display: block; color: var(--a-muted); font-size: .7rem; }
.a-play-sets td:first-child { font-weight: 700; }
.a-play-sets input { width: 100%; min-width: 0; box-sizing: border-box; font: 16px/1.2 var(--a-body); padding: 9px 8px; border: 1px solid var(--a-line); border-radius: calc(var(--a-radius) / 1.5); background: var(--a-bg); color: var(--a-text); }
.a-play-sets input::placeholder { color: var(--a-muted); opacity: .75; }
.a-play-sets input:focus { outline: 2px solid var(--a-highlight); outline-offset: 0; }
.a-play-sets tr.is-done td { background: color-mix(in srgb, var(--a-good) 9%, transparent); }
.a-tick { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--a-line); background: transparent; color: var(--a-muted); font-size: 1.1rem; font-weight: 800; cursor: pointer; }
.a-tick[aria-pressed="true"] { background: var(--a-good); border-color: var(--a-good); color: #fff; }
.a-tick:focus-visible { outline: 2px solid var(--a-highlight); outline-offset: 2px; }
.a-rest { position: relative; display: flex; align-items: center; gap: 12px; margin: 12px 0 0; padding: 12px 14px; border-radius: var(--a-radius); background: var(--a-accent); color: var(--a-accent-ink); overflow: hidden; }
.a-rest[hidden] { display: none; }
.a-rest span { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.a-rest strong { font-family: var(--a-display); font-size: 1.6rem; line-height: 1; font-variant-numeric: tabular-nums; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-rest i { position: absolute; left: 0; bottom: 0; height: 3px; width: var(--p); background: currentColor; opacity: .5; }
.a-rest .a-link-btn { color: inherit; }
.a-play-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.a-play-nav .a-link-btn:disabled { visibility: hidden; }
.a-play-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0 20px; }
.a-play-stats div { border: 1px solid var(--a-line); border-radius: var(--a-radius); padding: 12px; display: grid; gap: 4px; min-width: 0; }
.a-play-stats b { font-family: var(--a-display); font-size: 1.7rem; line-height: 1; }
.a-play-stats span { font-size: .78rem; color: var(--a-muted); overflow-wrap: anywhere; }
.a-play-done { display: grid; gap: 14px; }
.a-play-done label { display: grid; gap: 6px; }
.a-play-done .a-row-end { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
@media (max-width: 480px) {
  .a-play-sets th:nth-child(1) { width: 36px; } .a-play-sets th:nth-child(5) { width: 48px; }
  .a-play-sets td { padding: 6px 2px; font-size: .84rem; }
  .a-play-sets input { padding: 9px 6px; }
  .a-tick { width: 42px; height: 42px; }
  .lib-ph { gap: 10px; } .lib-ph svg { width: 48px; height: 48px; }
}
