/* ACE404 Club demo: ACE GYM (fictional gym). Dark, brass accent, athletic type. */
@font-face { font-family: "Changa"; font-weight: 700; font-display: swap; src: url("../fonts/changa-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Changa"; font-weight: 800; font-display: swap; src: url("../fonts/changa-arabic-800-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Changa"; font-weight: 700; font-display: swap; src: url("../fonts/changa-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Changa"; font-weight: 800; font-display: swap; src: url("../fonts/changa-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Tajawal"; font-weight: 400; font-display: swap; src: url("../fonts/tajawal-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Tajawal"; font-weight: 500; font-display: swap; src: url("../fonts/tajawal-arabic-500-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Tajawal"; font-weight: 700; font-display: swap; src: url("../fonts/tajawal-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Tajawal"; font-weight: 400; font-display: swap; src: url("../fonts/tajawal-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Tajawal"; font-weight: 700; font-display: swap; src: url("../fonts/tajawal-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url("../fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: italic; font-display: swap; src: url("../fonts/barlow-condensed-latin-800-italic.woff2") format("woff2"); }

:root {
  --bg: #09090B;
  --bg2: #121214;
  --bg3: #19191c;
  --line: #27272A;
  --fg: #F4F1EA;
  --mute: #A1A1AA;
  --gold: #E2BF63;
  --gold-dim: rgba(226, 191, 99, .14);
  --ok: #4ADE80;
  --warn: #FACC15;
  --bad: #F87171;
  --r-s: 10px;
  --r-m: 18px;
  --r-p: 999px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --t1: 120ms; --t2: 200ms; --t3: 320ms; --t4: 600ms;
  --f-head: "Changa", "Tajawal", system-ui, sans-serif;
  --f-body: "Tajawal", system-ui, sans-serif;
  --f-lat: "Barlow Condensed", "Changa", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--f-body); font-size: 17px; line-height: 1.7; overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; display: inline-block; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip { position: fixed; top: -60px; right: 12px; z-index: 100; background: var(--gold); color: #111; padding: 8px 14px; border-radius: var(--r-s); transition: top var(--t2); }
.skip:focus { top: 12px; }

/* ---------- buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: var(--r-p); background: var(--gold); color: #17130a; font-family: var(--f-head); font-weight: 700; font-size: 1rem; transition: transform var(--t1), filter var(--t2), background var(--t2); }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .92rem; }
.btn-lg { min-height: 58px; padding: 0 38px; font-size: 1.15rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--bg3); filter: none; }
.chip { min-height: 40px; padding: 0 18px; border-radius: var(--r-p); border: 1px solid var(--line); color: var(--mute); transition: all var(--t2); font-weight: 500; }
.chip:hover { color: var(--fg); border-color: #3b3b40; }
.chip.is-on { background: var(--gold-dim); border-color: rgba(226, 191, 99, .5); color: var(--gold); }
.chip:active { transform: scale(.97); }

/* ---------- top bar ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 16px 32px; border-bottom: 1px solid transparent; transition: background var(--t3), border-color var(--t3), padding var(--t3); }
.top.solid { background: rgba(9, 9, 11, .94); border-bottom-color: var(--line); padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 12px; justify-self: start; }
.brand-mark { height: 38px; width: auto; }
.brand-latin { font-family: var(--f-lat); font-weight: 800; font-style: italic; font-size: 1.45rem; letter-spacing: .1em; }
.nav { display: flex; gap: 6px; }
.nav a { display: flex; align-items: center; padding: 8px 16px; color: var(--mute); font-weight: 500; border-radius: 8px; transition: color var(--t2), background var(--t2); }
.nav a:hover { color: var(--fg); background: rgba(255, 255, 255, .05); }
.top-cta { justify-self: end; display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 18px; border: 1px solid rgba(226, 191, 99, .6); border-radius: 8px; color: var(--gold); font-family: var(--f-head); font-weight: 700; font-size: .95rem; transition: background var(--t2), color var(--t2), transform var(--t1); }
.top-cta .ic { transform: rotate(90deg); transition: transform var(--t3) var(--ease); }
.top-cta:hover { background: var(--gold); color: #17130a; }
.top-cta:hover .ic { transform: rotate(90deg) translateY(4px); }
.top-cta:active { transform: scale(.97); }

/* ---------- gate ---------- */
.gate { position: relative; height: 360vh; }
.gate-stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; background: #060607; }
.gate-video, .gate-fallback, .gate-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.gate-video { object-fit: cover; }
.gate-shade { background: linear-gradient(to bottom, rgba(0, 0, 0, .6), transparent 34%, transparent 52%, rgba(0, 0, 0, .78)); }
.gate-fallback { display: none; background: radial-gradient(60% 50% at 50% 60%, #17140c, #060607 70%); }
.no-video .gate-fallback { display: block; }

.gate-brand { position: absolute; inset: 13vh 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 20px; gap: 6px; }
.gate-logo { width: clamp(120px, 20vw, 220px); height: auto; filter: drop-shadow(0 12px 40px rgba(0, 0, 0, .6)); }
.tag { font-family: var(--f-lat); font-weight: 600; letter-spacing: .32em; font-size: .8rem; color: var(--gold); margin-top: 6px; }
.wordmark { font-family: var(--f-lat); font-weight: 800; font-style: italic; font-size: clamp(3.4rem, 13vw, 8rem); line-height: .95; letter-spacing: .08em; margin-top: 10px; text-shadow: 0 10px 50px rgba(0, 0, 0, .7); }
.gate-hint { position: absolute; bottom: 5vh; inset-inline: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--mute); font-size: .92rem; }
.gate-hint .ic { animation: bob 1.8s var(--ease) infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

.gate-line { position: absolute; inset-inline: 0; top: 40%; text-align: center; font-family: var(--f-head); font-weight: 800; font-size: clamp(2.6rem, 9vw, 7rem); line-height: 1.1; opacity: 0; text-shadow: 0 6px 40px rgba(0, 0, 0, .85); padding: 0 20px; will-change: opacity, transform; }
.gate-line-gold { color: var(--gold); }
.gate-end { position: absolute; inset-inline: 0; bottom: 10vh; display: flex; flex-direction: column; align-items: center; gap: 26px; padding: 0 22px; text-align: center; opacity: 0; pointer-events: none; }
.gate-end.on { pointer-events: auto; }
.gate-end-title { font-family: var(--f-head); font-weight: 700; font-size: clamp(1.5rem, 4.4vw, 3rem); line-height: 1.4; text-shadow: 0 6px 40px rgba(0, 0, 0, .9); }
.gate-end-title b { color: var(--gold); font-weight: 800; }

/* ---------- sections ---------- */
.sec { padding: clamp(80px, 12vw, 150px) 0; }
.sec-alt { background: var(--bg2); border-block: 1px solid var(--line); }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.kicker { font-family: var(--f-head); font-weight: 700; color: var(--gold); display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
h2 { font-family: var(--f-head); font-weight: 800; font-size: clamp(2.2rem, 5.2vw, 4.2rem); line-height: 1.22; }
h2 em { font-style: normal; color: var(--gold); }
h3 { font-family: var(--f-head); font-weight: 700; font-size: 1.25rem; }
.lead { color: var(--mute); font-size: 1.12rem; max-width: 34em; margin-top: 20px; }
.copy-wide { margin-bottom: 44px; }
.ticks { display: grid; gap: 12px; margin-top: 26px; }
.ticks li { display: flex; align-items: center; gap: 12px; }
.ticks .ic { color: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.muted { color: var(--mute); font-size: .92rem; }
.fine { color: var(--mute); font-size: .86rem; }
.stage { position: relative; display: grid; place-items: center; min-height: 560px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity var(--t4) var(--ease), transform var(--t4) var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- phone + pass ---------- */
.phone { position: relative; width: 290px; height: 590px; border-radius: 46px; background: linear-gradient(160deg, #1a1a1d, #0c0c0e); border: 1px solid #34343a; box-shadow: 0 40px 90px rgba(0, 0, 0, .6); padding: 64px 18px 0; text-align: center; }
.phone-notch { position: absolute; top: 12px; left: 50%; translate: -50% 0; width: 92px; height: 26px; border-radius: var(--r-p); background: #000; }
.lock-date { color: var(--mute); font-size: .95rem; }
.lock-time { font-family: var(--f-lat); font-weight: 800; font-size: 5.2rem; line-height: 1; letter-spacing: .02em; direction: ltr; margin-top: 4px; }
.push { margin-top: 26px; text-align: start; padding: 12px 14px; border-radius: 18px; background: rgba(60, 60, 66, .62); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .08); transition: opacity var(--t3), transform var(--t3) var(--ease); }
.push.swap { opacity: 0; transform: translateY(-10px); }
.push-app { display: flex; align-items: center; gap: 8px; color: var(--mute); font-size: .8rem; }
.push-dot { width: 14px; height: 14px; border-radius: 4px; background: var(--gold); display: inline-block; }
.push-text, .preview p { font-size: .98rem; line-height: 1.55; margin-top: 4px; }

.pass { position: absolute; inset-inline-start: 50%; bottom: 14px; translate: 20% 0; width: 300px; padding: 20px 20px 16px; border-radius: 22px; background: linear-gradient(155deg, #1b1b1e 0%, #0c0c0e 60%); border: 1px solid #3a3a40; box-shadow: 0 30px 70px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .06); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform var(--t3) var(--ease); }
.pass::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; border-radius: 22px 22px 0 0; background: var(--gold); }
.pass-top { display: flex; justify-content: space-between; align-items: center; }
.pass-brand { font-family: var(--f-lat); font-weight: 800; font-style: italic; font-size: 1.35rem; letter-spacing: .08em; }
.pass-plan { font-family: var(--f-lat); font-weight: 800; letter-spacing: .12em; font-size: .85rem; color: #17130a; background: var(--gold); padding: 0 10px; border-radius: var(--r-p); }
.pass-name { font-family: var(--f-head); font-weight: 700; font-size: 1.5rem; margin-top: 14px; }
.pass-fields { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; margin-top: 12px; gap: 8px; }
.pass-fields dt { color: var(--mute); font-size: .74rem; }
.pass-fields dd { font-weight: 700; font-size: .92rem; }
.pass-qr { position: relative; width: 168px; height: 168px; margin: 16px auto 8px; padding: 10px; background: #fff; border-radius: 14px; }
.qr { width: 100%; height: 100%; }
.qr path { fill: #09090B; }
.ring { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); rotate: -90deg; pointer-events: none; }
.ring circle { fill: none; stroke-width: 1.2; }
.ring-bg { stroke: rgba(255, 255, 255, .08); }
.ring-fg { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 119.4; }
.ring-n { position: absolute; top: -4px; right: -6px; min-width: 28px; text-align: center; font-weight: 700; font-size: .8rem; background: var(--bg); color: var(--gold); border: 1px solid #3a3a40; border-radius: var(--r-p); padding: 0 6px; line-height: 1.5; }
.pass-note { text-align: center; color: var(--mute); font-size: .8rem; }

/* ---------- scanner ---------- */
.who { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 28px; max-width: 460px; }
.who-btn { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-m); text-align: start; transition: all var(--t2); background: var(--bg); }
.who-btn:hover { border-color: #3b3b40; }
.who-btn.is-on { border-color: rgba(226, 191, 99, .55); background: var(--gold-dim); }
.who-btn:active { transform: scale(.98); }
.who-t { display: grid; line-height: 1.3; }
.who-t small { color: var(--mute); }
.av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg3); border: 1px solid var(--line); font-family: var(--f-head); font-weight: 800; color: var(--gold); flex: none; }
.av-lg { width: 54px; height: 54px; font-size: 1.4rem; }

.tablet { width: min(420px, 100%); padding: 18px; border-radius: 30px; background: linear-gradient(160deg, #19191c, #0d0d0f); border: 1px solid #34343a; box-shadow: 0 40px 90px rgba(0, 0, 0, .55); display: grid; gap: 14px; position: relative; overflow: hidden; }
.cam { position: relative; aspect-ratio: 1 / 1; border-radius: 20px; background: #050506; display: grid; place-items: center; overflow: hidden; }
.qr-cam { width: 58%; height: 58%; padding: 12px; background: #fff; border-radius: 10px; opacity: .4; transition: opacity var(--t3); }
.qr-cam path { fill: #09090B; }
.cam.on .qr-cam { opacity: 1; }
.corner { position: absolute; width: 34px; height: 34px; border: 3px solid var(--gold); }
.c1 { top: 16px; right: 16px; border-left: 0; border-bottom: 0; border-radius: 0 12px 0 0; }
.c2 { top: 16px; left: 16px; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.c3 { bottom: 16px; right: 16px; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }
.c4 { bottom: 16px; left: 16px; border-right: 0; border-top: 0; border-radius: 0 0 0 12px; }
.scanline { position: absolute; inset-inline: 14%; top: 14%; height: 2px; background: var(--gold); box-shadow: 0 0 18px 3px rgba(226, 191, 99, .6); opacity: 0; }
.cam.on .scanline { opacity: 1; animation: sweep .9s var(--ease) infinite alternate; }
@keyframes sweep { to { top: 84%; } }

.result { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; background: var(--rbg, #0d0d0f); transform: translateY(102%); transition: transform var(--t3) var(--ease), background var(--t2); }
.result[data-state="ok"], .result[data-state="bad"], .result[data-state="warn"], .result[data-state="guest"] { transform: none; }
.result[data-state="ok"] { --rbg: #0b2415; --rc: var(--ok); }
.result[data-state="bad"] { --rbg: #2a1010; --rc: var(--bad); }
.result[data-state="warn"] { --rbg: #271f08; --rc: var(--warn); }
.result[data-state="guest"] { --rbg: #14181f; --rc: var(--gold); }
.result-badge { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--rc, var(--ok)); color: #0a0a0a; }
.result-badge .ic { width: 38px; height: 38px; stroke-width: 2.4; }
.result-title { font-family: var(--f-head); font-weight: 800; font-size: 2rem; line-height: 1.2; color: var(--rc, var(--fg)); }
.result-sub { color: var(--mute); }
.result-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 22px; margin: 6px 0; }
.result-meta div { display: grid; }
.result-meta dt { color: var(--mute); font-size: .78rem; }
.result-meta dd { font-weight: 700; }

/* ---------- dashboard ---------- */
.dash { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.kpis { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--bg2); display: grid; gap: 2px; }
.kpi .ic { color: var(--gold); width: 22px; height: 22px; margin-bottom: 6px; }
.kpi .num { font-family: var(--f-lat); font-weight: 800; font-size: 3.1rem; line-height: 1; }
.kpi span { color: var(--mute); }
.kpi-warn .ic, .kpi-warn .num { color: var(--warn); }
.kpi-bad .ic, .kpi-bad .num { color: var(--bad); }
.panel { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--bg2); grid-column: span 6; }
.heat-panel { grid-column: span 7; }
.panel:nth-of-type(3) { grid-column: span 5; }
.winback { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 30px; align-content: start; }
.winback .panel-h { grid-column: 1 / -1; }
.panel-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.peak { color: var(--gold); font-weight: 700; font-size: .92rem; }

.heat { display: grid; grid-template-columns: 54px repeat(16, 1fr); gap: 4px; direction: ltr; }
.heat .d, .heat .h { color: var(--mute); font-size: .72rem; display: grid; align-items: center; }
.heat .d { justify-items: end; padding-inline-end: 8px; direction: rtl; }
.heat .h { justify-items: center; }
.heat .c { aspect-ratio: 1; border-radius: 4px; background: rgba(226, 191, 99, var(--a, .05)); transition: transform var(--t2); }
.heat .c:hover { transform: scale(1.25); outline: 1px solid var(--gold); }
.heat-scale { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--mute); font-size: .8rem; }
.heat-scale i { width: 110px; height: 8px; border-radius: var(--r-p); background: linear-gradient(to left, var(--gold), rgba(226, 191, 99, .06)); }

.rows { display: grid; }
.row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row .av { width: 36px; height: 36px; font-size: .95rem; }
.row-t { display: grid; margin-inline-end: auto; line-height: 1.35; }
.row-t small { color: var(--mute); }
.pill { font-size: .8rem; padding: 0 10px; border-radius: var(--r-p); border: 1px solid var(--line); color: var(--mute); line-height: 1.7; white-space: nowrap; }
.pill.warn { color: var(--warn); border-color: rgba(250, 204, 21, .4); }
.pill.bad { color: var(--bad); border-color: rgba(248, 113, 113, .4); }
.row .btn { min-height: 34px; padding: 0 14px; font-size: .85rem; }
.row .btn.done { background: transparent; color: var(--ok); border: 1px solid rgba(74, 222, 128, .4); }

.tones { display: flex; flex-wrap: wrap; gap: 8px; }
.field { display: grid; gap: 6px; color: var(--mute); font-size: .86rem; }
.field textarea { width: 100%; resize: none; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; padding: 12px; line-height: 1.6; }
.field textarea:focus { border-color: rgba(226, 191, 99, .6); outline: 0; }
.preview { padding: 12px 14px; border-radius: 18px; background: rgba(60, 60, 66, .5); border: 1px solid rgba(255, 255, 255, .08); }
.cap { display: flex; gap: 8px; align-items: center; color: var(--mute); font-size: .84rem; }
.forecast { min-height: 1.7em; color: var(--ok); font-weight: 700; }
.winback > * { min-width: 0; }
.winback .tones, .winback .field { grid-column: 1; }
.winback .preview { grid-column: 2; grid-row: 2 / span 2; align-self: start; }
.winback .cap, .winback .btn, .winback .forecast { grid-column: 1 / -1; }

/* ---------- streak ---------- */
.tiers { display: grid; gap: 10px; margin-top: 28px; max-width: 440px; }
.tier { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--bg); }
.tier .ic { color: var(--mute); }
.tier b { font-family: var(--f-head); }
.tier small { color: var(--mute); margin-inline-start: auto; }
.tier.on { border-color: rgba(226, 191, 99, .45); }
.tier.on .ic { color: var(--gold); }
.profile { width: min(460px, 100%); padding: 24px; border: 1px solid var(--line); border-radius: 26px; background: var(--bg); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); display: grid; gap: 20px; }
.profile-h { display: flex; align-items: center; gap: 14px; }
.profile-h > div:nth-child(2) { display: grid; line-height: 1.35; }
.profile-h small { color: var(--mute); }
.streak-n { margin-inline-start: auto; display: grid; justify-items: center; line-height: 1.1; color: var(--gold); }
.streak-n .ic { width: 26px; height: 26px; }
.streak-n b { font-family: var(--f-lat); font-weight: 800; font-size: 2.2rem; }
.streak-n small { color: var(--mute); font-size: .74rem; }
.cal { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; direction: ltr; }
.cal .w { display: grid; gap: 5px; }
.cal .c { aspect-ratio: 1; border-radius: 4px; background: rgba(226, 191, 99, var(--a, .06)); }
.bar { height: 10px; border-radius: var(--r-p); background: var(--bg3); overflow: hidden; }
.bar-fill { display: block; height: 100%; width: 0; background: var(--gold); border-radius: var(--r-p); transition: width 1.2s var(--ease); }
.bar-t { color: var(--mute); font-size: .92rem; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { grid-column: span 2; padding: 26px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--bg2); transition: border-color var(--t2), transform var(--t3) var(--ease); }
.tile:hover { border-color: rgba(226, 191, 99, .4); transform: translateY(-3px); }
.tile-lg { grid-column: span 3; }
.tile .ic { color: var(--gold); width: 28px; height: 28px; margin-bottom: 16px; }
.tile p { color: var(--mute); margin-top: 8px; }
.soon { font-family: var(--f-lat); font-weight: 600; font-size: .8rem; letter-spacing: .12em; color: var(--gold); border: 1px solid rgba(226, 191, 99, .5); border-radius: var(--r-p); padding: 0 10px; margin-inline-start: 8px; vertical-align: middle; }
.tile-soon { border-style: dashed; }

/* ---------- cta + footer ---------- */
.cta { padding: clamp(90px, 14vw, 170px) 0; background: var(--bg2); border-top: 1px solid var(--line); text-align: center; }
.cta-in { display: grid; justify-items: center; gap: 22px; }
.cta .lead { margin-top: 0; }
.foot { display: flex; justify-content: space-between; gap: 12px; padding: 22px 24px; border-top: 1px solid var(--line); color: var(--mute); font-size: .88rem; }

.toast { position: fixed; inset-inline: 0; bottom: 24px; margin-inline: auto; width: fit-content; max-width: calc(100% - 32px); padding: 12px 22px; border-radius: var(--r-p); background: var(--fg); color: #111; font-weight: 700; opacity: 0; transform: translateY(16px); pointer-events: none; transition: all var(--t3) var(--ease); z-index: 90; }
.toast.on { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .top { grid-template-columns: 1fr auto; }
  .split { grid-template-columns: 1fr; }
  .stage { min-height: 0; padding-bottom: 20px; }
  .gate { height: 280vh; }
  .phone { width: 262px; height: 540px; padding-top: 58px; }
  .lock-time { font-size: 4.4rem; }
  .pass { position: relative; inset: auto; translate: none; margin: -150px auto 0; width: min(300px, 92%); }
  .stage:has(.pass) { padding-bottom: 0; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .panel, .heat-panel, .panel:nth-of-type(3), .winback { grid-column: 1 / -1; }
  .winback { grid-template-columns: 1fr; }
  .winback .tones, .winback .field, .winback .preview, .winback .cap, .winback .btn, .winback .forecast { grid-column: 1; grid-row: auto; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile, .tile-lg { grid-column: span 2; }
  .heat { grid-template-columns: 40px repeat(16, 1fr); gap: 3px; }
  .top { padding: 12px 16px; }
  .brand-mark { height: 32px; }
  .brand-latin { font-size: 1.2rem; }
  .who { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
