/* ============================ PT Pro — styles ============================ */
/* Brand: committed dark "ink" with one signature accent (volt). Level metals live in index.html <defs>. */
:root {
  color-scheme: dark;
  --bg: #08090c; --surface: #111318; --surface-2: #171a20; --surface-3: #20242c;
  --line: #1f232b; --line-strong: #2c313b;
  --text: #f3f5f8; --text-2: #a8afbb; --text-3: #6c7481;
  --accent: #d4f53c; --accent-ink: #0a0b0e; --accent-soft: rgba(212, 245, 60, .10); --accent-text: #dcf86a;
  --good: #3dd68c; --good-soft: rgba(61, 214, 140, .12); --warn: #f5b83d; --warn-soft: rgba(245, 184, 61, .12); --bad: #f2555a; --bad-soft: rgba(242, 85, 90, .12);
  --info: #8b95a5; --info-soft: rgba(139, 149, 165, .12);
  --trust: #4aa8ff; --trust-soft: rgba(74, 168, 255, .12);
  --gold: #f0c860; --gold-soft: rgba(240, 200, 96, .12);
  --bronze: #d99a66; --silver: #cfd6df; --goldm: #f0c860; --platinum: #bfe0f0; --onyx: #d4f53c;
  --sore-0: #252a33; --sore-1: #4a2a1c; --sore-2: #6e3a22; --sore-3: #9c4b25; --sore-4: #d0602c; --sore-5: #f08a55;
  --body-line: #3a414d;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 8px 24px rgba(0, 0, 0, .25);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
  --r: 18px; --r-sm: 12px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Archivo", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body { font-size: 15px; line-height: 1.5; min-height: 100vh; }
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: var(--accent-text); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
.hidden { display: none !important; }
.muted { color: var(--text-2); } .faint { color: var(--text-3); }
.small { font-size: 13px; } .tiny { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }
.row { display: flex; align-items: center; gap: 10px; } .row.wrap { flex-wrap: wrap; } .row.between { justify-content: space-between; } .row.top { align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 14px; }
.stack-sm > * + * { margin-top: 8px; }
.mt { margin-top: 14px; } .mt-lg { margin-top: 24px; } .mb { margin-bottom: 14px; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
h1, h2, h3, .display { font-family: var(--display); font-stretch: 108%; }
h1 { font-size: 26px; line-height: 1.15; letter-spacing: -.015em; font-weight: 800; }
h2 { font-size: 19px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 15px; font-weight: 700; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 2px 10px; }
.section-title h2 { font-size: 16px; }

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 12px;
  padding: 11px 16px; font-weight: 600; background: var(--accent); color: var(--accent-ink); transition: filter .15s, background .15s; white-space: nowrap; }
.btn:hover { filter: brightness(1.06); } .btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.block { width: 100%; } .btn.lg { padding: 14px 18px; font-size: 16px; }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--surface-2); filter: none; }
.btn.soft { background: var(--accent-soft); color: var(--accent-text); }
.btn.good { background: var(--good); color: #fff; } .btn.bad { background: var(--bad); color: #fff; }
.btn.bad-ghost { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn.link { background: none; color: var(--accent-text); padding: 4px 2px; font-weight: 600; }
.field { display: block; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.input, select.input, textarea.input { width: 100%; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 11px; padding: 11px 13px; outline: none; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.input { resize: vertical; min-height: 84px; }
.seg { display: flex; background: var(--surface-2); border-radius: 12px; padding: 3px; gap: 3px; flex-wrap: wrap; }
.seg button { flex: 1; min-width: 44px; border: 0; background: none; padding: 9px 8px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--text-2); }
.seg-3 .seg { display: grid; grid-template-columns: repeat(3, 1fr); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
input[type=range] { width: 100%; accent-color: var(--accent); }
.range-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.value-big { font-size: 22px; font-weight: 700; }

/* ---------- cards & lists ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card.tight { padding: 12px 14px; }
.card.hl { border-color: var(--accent); }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.li { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-top: 1px solid var(--line); color: inherit; }
.li:first-child { border-top: 0; }
a.li:hover, button.li:hover { background: var(--surface-2); }
button.li { width: 100%; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; }
.li .chev { color: var(--text-3); font-size: 18px; }
.empty { text-align: center; color: var(--text-3); padding: 26px 12px; font-size: 14px; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent-text); }
.avatar.lg { width: 56px; height: 56px; font-size: 19px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--text-3); } .kv dd { font-weight: 500; }

/* ---------- status pills (always icon + label, never colour alone) ---------- */
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; line-height: 1.5; }
.pill.green { background: var(--good-soft); color: var(--good); }
.pill.amber { background: var(--warn-soft); color: var(--warn); }
.pill.red { background: var(--bad-soft); color: var(--bad); }
.pill.info, .pill.grey { background: var(--info-soft); color: var(--info); }
.pill.accent { background: var(--accent-soft); color: var(--accent-text); }
.pill.gold { background: var(--gold-soft); color: var(--gold); }
.tag { display: inline-block; font-size: 12px; padding: 3px 9px; border-radius: 8px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }
.lvl { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 8px; white-space: nowrap; }
.lvl.l0 { background: var(--info-soft); color: var(--info); }
.lvl.l1 { background: var(--accent-soft); color: var(--accent-text); }
.lvl.l2 { background: var(--good-soft); color: var(--good); }
.lvl.l3 { background: var(--warn-soft); color: var(--warn); }
.lvl.l4 { background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold); }
.flag { display: flex; gap: 10px; padding: 11px 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); }
.flag + .flag { margin-top: 8px; }
.flag .ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex-shrink: 0; margin-top: 1px; }
.flag.red { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); } .flag.red .ic { background: var(--bad); color: #fff; }
.flag.amber { border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); } .flag.amber .ic { background: var(--warn); color: #1a1200; }
.flag.info .ic { background: var(--info-soft); color: var(--info); }
.flag .t { font-weight: 650; font-size: 14px; } .flag .d { font-size: 13px; color: var(--text-2); } .flag .a { font-size: 13px; margin-top: 3px; }
.banner { border-radius: 12px; padding: 12px 14px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.banner.red { background: var(--bad-soft); color: var(--text); border: 1px solid var(--bad); }
.banner.amber { background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 50%, transparent); }
.banner.green { background: var(--good-soft); border: 1px solid color-mix(in srgb, var(--good) 40%, transparent); }
.banner.accent { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: 100%; max-width: 400px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 15px; font-weight: 900; letter-spacing: -.04em; }
.logo small { font-weight: 600; color: var(--text-3); font-size: 12px; margin-left: 2px; }
.login h1 { font-size: 28px; margin: 22px 0 6px; }
.login .lede { color: var(--text-2); margin-bottom: 22px; }
.demo { margin-top: 22px; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.demo-grid button { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; }
.demo-grid button:hover { border-color: var(--accent); }
.demo-grid b { display: block; font-size: 14px; } .demo-grid span { font-size: 12px; color: var(--text-3); }
.err { color: var(--bad); font-size: 13px; min-height: 18px; margin: 4px 0 8px; }

/* ---------- mobile shell (client / trainer) ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 680px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; gap: 10px; }
.topbar .who { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); min-width: 0; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; position: relative; flex-shrink: 0; }
.icon-btn .dot { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.page { max-width: 680px; margin: 0 auto; padding: 16px 16px 110px; }
.page.wide { max-width: 1200px; }
.bottomnav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 95%, transparent); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.bottomnav-in { max-width: 680px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); }
.bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 2px 10px; color: var(--text-3); font-size: 11px; font-weight: 600; position: relative; }
.bottomnav a svg { width: 23px; height: 23px; }
.bottomnav a.on { color: var(--accent-text); }
.bottomnav a .dot { position: absolute; top: 5px; left: calc(50% + 6px); min-width: 16px; height: 16px; border-radius: 8px; background: var(--bad); color: #fff; font-size: 10px; display: grid; place-items: center; padding: 0 4px; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); font-weight: 600; font-size: 14px; margin-bottom: 10px; }

/* ---------- desktop shell (owner / admin) ---------- */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 18px 12px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.side nav { display: flex; flex-direction: column; gap: 2px; margin-top: 22px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: 14px; }
.side nav a svg { width: 19px; height: 19px; }
.side nav a:hover { background: var(--surface-2); }
.side nav a.on { background: var(--accent-soft); color: var(--accent-text); }
.side nav a .dot { margin-left: auto; background: var(--bad); color: #fff; font-size: 11px; border-radius: 9px; padding: 0 6px; }
.side .foot { margin-top: auto; font-size: 13px; color: var(--text-3); }
.main { min-width: 0; }
.main .page { padding: 24px 28px 60px; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: sticky; height: auto; flex-direction: row; align-items: center; padding: 10px 12px; gap: 10px; z-index: 30; overflow-x: auto; }
  .side nav { flex-direction: row; margin: 0; }
  .side nav a span.lbl { display: none; }
  .side .foot { margin: 0 0 0 auto; white-space: nowrap; }
  .main .page { padding: 16px 16px 60px; }
}

/* ---------- grids / tiles ---------- */
.grid { display: grid; gap: 12px; }
.grid.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.grid.split { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 960px) { .grid.split { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .grid.split .grid.g2 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .grid.g3 { grid-template-columns: 1fr 1fr; } .grid.g2.m1 { grid-template-columns: 1fr; } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); min-width: 0; }
.tile .label { font-size: 13px; color: var(--text-2); font-weight: 500; }
.tile .value { font-size: 26px; font-weight: 650; letter-spacing: -.01em; margin-top: 4px; }
.tile .delta { font-size: 12px; font-weight: 600; margin-top: 2px; color: var(--text-3); }
.tile .delta.up { color: var(--good); } .tile .delta.down { color: var(--bad); }
.stat { text-align: center; } .stat b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; } .stat span { font-size: 12px; color: var(--text-3); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 600; color: var(--text-3); padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface); }
td { padding: 11px 12px; border-top: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
tr:first-child td { border-top: 0; }
th.r, td.r { text-align: right; }
.inbar { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.inbar .b { height: 8px; border-radius: 0 4px 4px 0; background: var(--accent); min-width: 2px; }

/* ---------- readiness ring ---------- */
.ring { position: relative; width: 92px; height: 92px; flex-shrink: 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .c { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .c b { font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.ring .c small { font-size: 11px; color: var(--text-3); display: block; }
.ring.sm { width: 46px; height: 46px; } .ring.sm .c b { font-size: 15px; }
.dotr { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dotr.green { background: var(--good); } .dotr.amber { background: var(--warn); } .dotr.red { background: var(--bad); }

/* ---------- body map ---------- */
.bodymap { width: 100%; max-width: 360px; margin: 0 auto; display: block; }
.bodymap .reg { stroke: var(--body-line); stroke-width: 1.2; transition: fill .15s; }
.bodymap.edit .reg { cursor: pointer; }
.bodymap.edit .reg:hover { stroke: var(--accent); stroke-width: 2; }
.bodymap .reg.unusual { stroke: var(--bad); stroke-width: 2.4; stroke-dasharray: 4 2; }
.bodymap .base { fill: var(--surface-3); stroke: var(--body-line); stroke-width: 1.2; }
.bodymap text { fill: var(--text-3); font-size: 11px; font-weight: 600; font-family: var(--font); }
.s0 { fill: var(--sore-0); } .s1 { fill: var(--sore-1); } .s2 { fill: var(--sore-2); } .s3 { fill: var(--sore-3); } .s4 { fill: var(--sore-4); } .s5 { fill: var(--sore-5); }
.sore-legend { display: flex; gap: 4px; align-items: center; justify-content: center; font-size: 12px; color: var(--text-3); margin-top: 6px; flex-wrap: wrap; }
.sore-legend i { width: 18px; height: 12px; border-radius: 3px; display: inline-block; border: 1px solid var(--body-line); }
.sore-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; justify-content: center; }
.sore-chip { font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); display: inline-flex; gap: 6px; align-items: center; }
.sore-chip.unusual { border-color: var(--bad); color: var(--bad); }
.sore-chip button { border: 0; background: var(--surface-2); border-radius: 6px; width: 20px; height: 20px; line-height: 1; font-weight: 800; }
.heat { display: grid; gap: 2px; font-size: 11px; }
.heat .cell { height: 18px; border-radius: 3px; }
.heat .rl { color: var(--text-2); white-space: nowrap; padding-right: 6px; display: flex; align-items: center; }

/* ---------- charts ---------- */
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .bar { fill: var(--accent); }
.chart .bar:hover, .chart .pt:hover { opacity: .75; }
.chart .bar.today { fill: var(--accent-text); }
.chart .grid-l { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--text-3); font-size: 10px; font-family: var(--font); }
.chart .ln { fill: none; stroke: var(--accent); stroke-width: 2; }
.chart .pt { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.chart .base-l { stroke: var(--text-3); stroke-dasharray: 4 3; stroke-width: 1; }
.chart-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.chart-h b { font-size: 14px; } .chart-h span { font-size: 12px; color: var(--text-3); }

/* ---------- chat ---------- */
.thread { display: flex; flex-direction: column; gap: 6px; padding-bottom: 80px; }
.bubble { max-width: 82%; padding: 9px 12px; border-radius: 16px; font-size: 14px; white-space: pre-wrap; word-wrap: break-word; }
.bubble.me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 5px; }
.bubble.them { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.bubble.sys { align-self: center; max-width: 92%; background: var(--surface-2); border: 1px dashed var(--line-strong); color: var(--text-2); font-size: 13px; border-radius: 12px; }
.bubble time { display: block; font-size: 10px; opacity: .7; margin-top: 3px; }
.composer { position: fixed; left: 0; right: 0; bottom: 64px; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 16px; z-index: 25; }
.composer-in { max-width: 680px; margin: 0 auto; display: flex; gap: 8px; }
.shell .composer { position: sticky; bottom: 0; margin: 0 -28px; padding: 12px 28px; }
.day-sep { text-align: center; font-size: 12px; color: var(--text-3); margin: 10px 0 4px; }

/* ---------- plan ---------- */
.plan-ex { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.plan-ex:first-child { border-top: 0; }
.plan-ex .n { font-weight: 650; } .plan-ex .s { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.plan-ex .m { font-size: 13px; color: var(--text-2); grid-column: 1 / -1; }
.ol { padding-left: 18px; } .ol li { margin: 4px 0; font-size: 14px; }
.engine { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--text-3); }
.engine.claude { background: var(--accent-soft); color: var(--accent-text); }
.timer { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--bad); display: inline-block; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { height: 90px; border-radius: var(--r); background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: sh 1.2s infinite; }
@keyframes sh { to { background-position: -200% 0; } }

/* ---------- misc ---------- */
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 11px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; z-index: 100; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px); }
.toast.bad { background: var(--bad); color: #fff; }
.sheet-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--surface); width: 100%; max-width: 560px; max-height: 88vh; overflow: auto; border-radius: 18px 18px 0 0; padding: 18px 16px 24px; }
@media (min-width: 700px) { .sheet-bg { align-items: center; } .sheet { border-radius: 18px; } }
.stars { display: inline-flex; gap: 2px; color: var(--gold); letter-spacing: 1px; }
.star-btns button { border: 0; background: none; font-size: 30px; color: var(--line-strong); padding: 0 2px; }
.star-btns button.on { color: var(--gold); }
.meal-score { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: 16px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.meal-score.green { background: var(--good-soft); color: var(--good); } .meal-score.amber { background: var(--warn-soft); color: var(--warn); } .meal-score.red { background: var(--bad-soft); color: var(--bad); }
.macro { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.macro div { background: var(--surface-2); border-radius: 10px; padding: 8px 4px; } .macro b { display: block; font-size: 16px; } .macro span { font-size: 11px; color: var(--text-3); }
.checklist .li .ok { color: var(--good); font-weight: 800; }
.photo-prev { width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; margin-top: 8px; }
.req { display: flex; gap: 10px; align-items: center; padding: 8px 0; font-size: 14px; border-top: 1px solid var(--line); }
.req:first-child { border-top: 0; }
.req .m { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex-shrink: 0; }
.req .m.y { background: var(--good-soft); color: var(--good); } .req .m.n { background: var(--surface-2); color: var(--text-3); border: 1px solid var(--line-strong); }
.article h3 { margin: 18px 0 6px; } .article p { color: var(--text-2); }
.kbd-note { font-size: 12px; color: var(--text-3); }

/* =====================================================================
   BRAND LAYER — logo, level emblems, badges, trainer cards, landing
   ===================================================================== */
.btn { font-weight: 700; letter-spacing: .005em; }
.btn.volt-glow { box-shadow: 0 8px 28px rgba(212, 245, 60, .22); }
.card, .list, .tile, .table-wrap { background: linear-gradient(180deg, rgba(255, 255, 255, .018), rgba(255, 255, 255, 0)) , var(--surface); }
.eyebrow { font-family: var(--display); letter-spacing: .12em; }

/* logo */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand svg.mark { flex-shrink: 0; filter: drop-shadow(0 4px 14px rgba(212, 245, 60, .18)); }
.wm { font-family: var(--display); font-weight: 900; font-stretch: 118%; letter-spacing: .01em; font-size: 20px; line-height: 1; }
.wm b { color: var(--accent); font-weight: 900; }
.wm small { display: block; font-family: var(--font); font-stretch: 100%; font-weight: 600; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-top: 3px; }

/* level emblem + tag */
.emblem { display: inline-block; flex-shrink: 0; vertical-align: middle; }
.lvl { display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-stretch: 108%; font-size: 12px; font-weight: 800; letter-spacing: .03em;
  padding: 3px 10px 3px 4px; border-radius: 999px; white-space: nowrap; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text); text-transform: uppercase; }
.lvl .emblem { width: 18px; height: 20px; }
.lvl.l0 { color: var(--text-3); }
.lvl.l1 { color: var(--bronze); border-color: rgba(217, 154, 102, .35); }
.lvl.l2 { color: var(--silver); border-color: rgba(207, 214, 223, .3); }
.lvl.l3 { color: var(--goldm); border-color: rgba(240, 200, 96, .35); }
.lvl.l4 { color: var(--platinum); border-color: rgba(191, 224, 240, .35); }
.lvl.l5 { color: var(--accent); border-color: rgba(212, 245, 60, .45); background: linear-gradient(90deg, rgba(212, 245, 60, .12), rgba(212, 245, 60, .02)); }
.lvl .ln { opacity: .6; font-weight: 700; }

/* badges ("ticks") */
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.bdg { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; padding: 4px 10px 4px 6px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); white-space: nowrap; }
.bdg svg { width: 16px; height: 16px; flex-shrink: 0; }
.bdg.verified { border-color: rgba(74, 168, 255, .45); background: var(--trust-soft); }
.bdg.reviewed { border-color: rgba(240, 200, 96, .4); background: var(--gold-soft); }
.bdg.years { border-color: rgba(191, 224, 240, .35); }
.bdg.registry { border-color: rgba(61, 214, 140, .4); background: var(--good-soft); }
.bdg.top { border-color: rgba(212, 245, 60, .55); background: var(--accent-soft); color: var(--accent-text); }
.seal { width: 20px; height: 20px; flex-shrink: 0; vertical-align: -3px; }
.seal.sm { width: 16px; height: 16px; vertical-align: -2px; }

/* avatar with tier ring */
.aring { border-radius: 50%; padding: 3px; flex-shrink: 0; background: var(--line-strong); display: inline-grid; }
.aring .avatar { border: 3px solid var(--surface); background: var(--surface-3); color: var(--text); }
.aring.m1 { background: linear-gradient(135deg, #f1c49c, #b87333 55%, #6d421f); }
.aring.m2 { background: linear-gradient(135deg, #ffffff, #b9c1cb 55%, #6f7985); }
.aring.m3 { background: linear-gradient(135deg, #fff0b8, #e0b040 55%, #8c6512); }
.aring.m4 { background: linear-gradient(135deg, #ffffff, #b9d8e8 50%, #5d8298); }
.aring.m5 { background: conic-gradient(from 210deg, #d4f53c, #6ee7b7, #d4f53c, #0a0b0e 70%, #d4f53c); box-shadow: 0 0 24px rgba(212, 245, 60, .28); }
.avatar.xl { width: 76px; height: 76px; font-size: 26px; font-family: var(--display); font-weight: 800; }
.avatar.lg { font-family: var(--display); }

/* trainer card */
.tcard { position: relative; border-radius: 22px; padding: 20px; border: 1px solid var(--line-strong); overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .05), transparent 55%), var(--surface); box-shadow: var(--shadow-lg); }
.tcard.m5 { border-color: rgba(212, 245, 60, .35); background: radial-gradient(90% 70% at 100% 0%, rgba(212, 245, 60, .13), transparent 60%), radial-gradient(80% 60% at 0% 100%, rgba(110, 231, 183, .06), transparent 60%), #0e1013; }
.tcard.m4 { border-color: rgba(191, 224, 240, .28); background: radial-gradient(90% 70% at 100% 0%, rgba(191, 224, 240, .10), transparent 60%), var(--surface); }
.tcard.m3 { border-color: rgba(240, 200, 96, .28); background: radial-gradient(90% 70% at 100% 0%, rgba(240, 200, 96, .10), transparent 60%), var(--surface); }
.tcard-top { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.tcard h2 { font-size: 22px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tcard .headline { color: var(--text-2); font-size: 14px; margin-top: 2px; }
.tcard .where { color: var(--text-3); font-size: 13px; }
.tcard .rank { text-align: center; }
.tcard .rank .emblem { width: 52px; height: 56px; }
.tcard .rank div { font-family: var(--display); font-weight: 900; font-stretch: 118%; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-top: 4px; }
.tstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.tstats div { text-align: center; } .tstats b { display: block; font-family: var(--display); font-size: 20px; font-weight: 800; } .tstats span { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 460px) { .tcard-top { grid-template-columns: auto 1fr; } .tcard .rank { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; justify-content: flex-start; } .tcard .rank div { margin: 0; } .tstats b { font-size: 17px; } }

/* credential cards */
.creds { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.cred { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface-2); }
.cred .issuer { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-stretch: 112%; font-size: 12px; letter-spacing: .02em;
  background: linear-gradient(160deg, #262b35, #15181e); border: 1px solid var(--line-strong); color: var(--text); text-align: center; line-height: 1.05; flex-shrink: 0; }
.cred .issuer.reg { color: var(--good); border-color: rgba(61, 214, 140, .35); }
.cred b { font-size: 13.5px; display: block; line-height: 1.3; }
.cred .meta { font-size: 12px; color: var(--text-3); }
.cred .ok { font-size: 11.5px; color: var(--trust); font-weight: 650; display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; }

/* specialisation chips */
.specs { display: flex; flex-wrap: wrap; gap: 6px; }
.spec { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 6px 11px; border-radius: 10px; border: 1px solid var(--line-strong); color: var(--text-2); background: var(--surface-2); }
.spec.v { color: var(--text); border-color: rgba(74, 168, 255, .45); background: var(--trust-soft); }
.spec.p { border-style: dashed; }
.spec svg { width: 14px; height: 14px; }

/* experience timeline */
.tl { position: relative; padding-left: 22px; }
.tl::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line-strong); border-radius: 2px; }
.tl-i { position: relative; padding: 2px 0 16px; }
.tl-i::before { content: ""; position: absolute; left: -21px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); }
.tl-i.v::before { border-color: var(--trust); background: var(--trust); box-shadow: 0 0 0 4px var(--trust-soft); }
.tl-i b { display: block; } .tl-i .m { font-size: 13px; color: var(--text-2); } .tl-i .d { font-size: 12px; color: var(--text-3); }

/* level ladder */
.ladder { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.rung { border: 1px solid var(--line-strong); border-radius: 16px; padding: 16px 12px; text-align: center; background: var(--surface); position: relative; }
.rung .emblem { width: 52px; height: 56px; }
.rung h3 { font-size: 15px; margin-top: 8px; text-transform: uppercase; letter-spacing: .06em; font-weight: 900; font-stretch: 115%; }
.rung .n { font-size: 11px; color: var(--text-3); letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.rung ul { list-style: none; margin-top: 10px; font-size: 12.5px; color: var(--text-2); text-align: left; }
.rung li { padding: 3px 0 3px 16px; position: relative; } .rung li::before { content: "›"; position: absolute; left: 3px; color: var(--text-3); }
.rung.l5 { border-color: rgba(212, 245, 60, .45); background: radial-gradient(100% 70% at 50% 0%, rgba(212, 245, 60, .12), transparent 70%), var(--surface); }
.rung.l5 h3 { color: var(--accent); }
@media (max-width: 900px) { .ladder { grid-template-columns: repeat(2, 1fr); } .rung.l5 { grid-column: 1 / -1; } }

/* ============================ landing ============================ */
.lp { min-height: 100vh; background:
  radial-gradient(900px 500px at 85% -5%, rgba(212, 245, 60, .10), transparent 60%),
  radial-gradient(700px 500px at -10% 20%, rgba(74, 168, 255, .07), transparent 60%), var(--bg); }
.lp-nav { max-width: 1180px; margin: 0 auto; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lp-nav nav { display: flex; gap: 22px; font-size: 14px; font-weight: 600; } .lp-nav nav a { color: var(--text-2); } .lp-nav nav a:hover { color: var(--text); }
.lp-in { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; padding: 40px 0 72px; }
.hero > div:first-child { padding-top: 56px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: .98; letter-spacing: -.03em; font-weight: 900; font-stretch: 112%; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .sub { font-size: 18px; color: var(--text-2); margin-top: 18px; max-width: 540px; }
.hero .ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.trustline { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; font-size: 13px; color: var(--text-3); }
.trustline span { display: inline-flex; align-items: center; gap: 6px; }
.sec { padding: 64px 0; border-top: 1px solid var(--line); }
.sec-h { max-width: 720px; margin-bottom: 28px; }
.sec-h h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.05; letter-spacing: -.02em; font-weight: 900; font-stretch: 110%; }
.sec-h p { color: var(--text-2); font-size: 16px; margin-top: 10px; }
.feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feat .card { padding: 20px; } .feat h3 { font-size: 17px; margin: 12px 0 6px; } .feat p { color: var(--text-2); font-size: 14px; }
.feat .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.feat .ico svg { width: 22px; height: 22px; }
.bigstat { font-family: var(--display); font-weight: 900; font-stretch: 112%; font-size: 40px; letter-spacing: -.02em; color: var(--accent); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: st; }
.steps .card { padding: 20px; } .steps .card::before { counter-increment: st; content: "0" counter(st); font-family: var(--display); font-weight: 900; color: var(--accent); font-size: 14px; letter-spacing: .1em; }
.badge-explain { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.badge-explain .card { padding: 16px; } .badge-explain p { font-size: 13.5px; color: var(--text-2); margin-top: 8px; }
.lp-foot { padding: 48px 0 64px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px; }
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(700px 400px at 50% -10%, rgba(212, 245, 60, .08), transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 420px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 20px; } .hero > div:first-child { padding-top: 0; } .feat, .steps { grid-template-columns: 1fr; } .lp-nav nav { display: none; } }

.emblem.big { width: 56px; height: 60px; }
.qtabs { display: flex; gap: 8px; flex-wrap: wrap; }
.qtabs button { border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2); border-radius: 12px; padding: 10px 14px; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
.qtabs button.on { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.qtabs .n { background: var(--bad); color: #fff; border-radius: 9px; font-size: 11px; padding: 1px 7px; }

.demo-bar { background: linear-gradient(90deg, rgba(212, 245, 60, .16), rgba(212, 245, 60, .06)); border-bottom: 1px solid rgba(212, 245, 60, .3); color: var(--text-2);
  font-size: 12.5px; padding: 7px 16px; text-align: center; }
.demo-bar b { color: var(--accent); } .demo-bar a { margin-left: 8px; font-weight: 700; color: var(--accent-text); white-space: nowrap; }
.linkbtn { background: none; border: 0; color: var(--text-2); font: inherit; font-weight: 600; font-size: 14px; padding: 0; }
.linkbtn:hover { color: var(--text); }
.feat.g2x { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .feat.g2x { grid-template-columns: 1fr; } }
.shell .side { top: 0; }
