/* fyrvo — marketing site + signed-in app shell (feed / profile).
   Reuses the "Refined ember" tokens, buttons (.button*) and .muted from
   styles.css. Marketing pages use the top nav (.site-nav); the in-app pages
   (feed, profile) use the three-column app shell (sidebar · main · rail). */

/* ===========================================================
   Marketing top nav (landing + legal)
   =========================================================== */
.site-nav {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; height: 64px; padding: 0 24px;
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--border);
}
.site-nav-inner { width: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-brand { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: 0.04em; color: var(--text-strong); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; }
.site-brand img { width: 26px; height: 26px; border-radius: 7px; }
.site-nav-links { display: flex; align-items: center; gap: 22px; }
.site-nav-links a { color: var(--muted-strong); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.site-nav-links a:hover { color: var(--text); }
.site-avatar { width: 36px; height: 36px; border-radius: 999px; object-fit: cover; border: 1px solid var(--border-strong); background: var(--surface-soft); }
.site-avatar-btn { display: inline-flex; padding: 0; border-radius: 999px; }
.site-menu { position: relative; }
.site-menu-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; background: var(--surface-elev); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; display: none; }
.site-menu-pop.open { display: block; }
.site-menu-pop a, .site-menu-pop button { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-size: 0.92rem; font-weight: 600; }
.site-menu-pop a:hover, .site-menu-pop button:hover { background: var(--surface-soft); }
.site-menu-head { padding: 10px 12px 4px; }
.site-menu-head strong { display: block; }
.site-menu-head small { color: var(--muted); }
.site-menu-sep { height: 1px; background: var(--border); margin: 6px 4px; }

/* ===========================================================
   App shell (feed + profile): sidebar · main · rail
   =========================================================== */
.app-shell {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr) 324px;
    gap: 26px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 22px 24px 72px;
    align-items: start;
}

/* ---- Sidebar ---- */
.app-sidebar { position: sticky; top: 22px; display: flex; flex-direction: column; gap: 4px; max-height: calc(100vh - 44px); }
.sb-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.05em; color: var(--text-strong); text-decoration: none; padding: 6px 8px 14px; }
.sb-brand img { width: 30px; height: 30px; border-radius: 8px; }

.sb-search { position: relative; margin-bottom: 12px; }
.sb-search input { width: 100%; padding: 11px 12px 11px 38px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-size: 0.92rem; }
.sb-search input:focus { outline: none; border-color: var(--border-strong); background: var(--surface-soft); }
.sb-search .si { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); fill: none; stroke: currentColor; stroke-width: 2; }
.sb-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface-elev); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; z-index: 60; max-height: 340px; overflow: auto; }
.sb-results:empty { display: none; }
.sb-results a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; }
.sb-results a:hover { background: var(--surface-soft); }
.sb-results .avatar-xs, .suggest-row .avatar-xs, .feed-head .avatar-xs { width: 34px; height: 34px; border-radius: 999px; object-fit: cover; background: var(--surface-soft); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: var(--primary); flex: 0 0 auto; }
.sb-results small { color: var(--muted); }

.snav { display: flex; flex-direction: column; gap: 3px; }
.snav-link { display: flex; align-items: center; gap: 13px; padding: 11px 14px; border-radius: var(--radius); color: var(--muted-strong); font-weight: 600; font-size: 0.98rem; text-decoration: none; }
.snav-link:hover { background: var(--surface-soft); color: var(--text); }
.snav-link.active { background: var(--primary-soft); color: var(--primary); }
.snav-link svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

.sb-spacer { flex: 1; min-height: 16px; }

.sb-getapp { background: linear-gradient(150deg, var(--primary-soft), var(--surface)); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; margin-bottom: 12px; }
.sb-getapp strong { display: block; margin-bottom: 4px; }
.sb-getapp p { margin: 0 0 12px; color: var(--muted); font-size: 0.82rem; line-height: 1.45; }
.sb-getapp .button { width: 100%; min-height: 40px; }

.sb-user { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius); background: var(--surface); }
.sb-user .avatar-sm { width: 38px; height: 38px; border-radius: 999px; object-fit: cover; background: var(--surface-soft); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: var(--primary); flex: 0 0 auto; }
.sb-user .meta { flex: 1; min-width: 0; }
.sb-user .meta strong { display: block; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user .meta small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.sb-user .icon-button { min-height: 36px; width: 36px; }
.sb-user .icon-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Main column ---- */
.app-main { min-width: 0; }
.app-title { font-size: 1.7rem; margin: 4px 0 18px; color: var(--text-strong); }

/* ---- Right rail ---- */
.app-rail { position: sticky; top: 22px; display: flex; flex-direction: column; gap: 18px; }
.rail-card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 20px; }
.rail-card h3 { margin: 0 0 12px; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.rail-me { text-align: center; }
.rail-me .ava { width: 88px; height: 88px; border-radius: 999px; object-fit: cover; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 800; color: var(--primary); background: var(--surface-soft); border: 2px solid var(--border-strong); }
.rail-me .name { font-size: 1.15rem; font-weight: 800; }
.rail-me .handle { color: var(--muted); font-size: 0.88rem; margin-bottom: 14px; }
.rail-stats { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; }
.rail-stats > div { flex: 1; }
.rail-stats b { display: block; font-size: 1.1rem; }
.rail-stats span { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }
.rail-me .button { width: 100%; }

.suggest-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.suggest-row + .suggest-row { border-top: 1px solid var(--border); }
.suggest-row .meta { flex: 1; min-width: 0; }
.suggest-row .meta strong { display: block; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-row .meta a { color: inherit; text-decoration: none; }
.suggest-row .meta small { color: var(--muted); }
.suggest-row .follow-mini { padding: 6px 14px; min-height: 34px; font-size: 0.82rem; border-radius: 999px; }

/* ===========================================================
   Session cards (feed + profile)
   =========================================================== */
.session-list { display: flex; flex-direction: column; gap: 16px; }
.session-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 18px 20px 8px;
    transition: box-shadow 0.18s ease, transform 0.08s ease;
}
.session-card.tappable { cursor: pointer; }
.session-card.tappable:hover { box-shadow: var(--shadow-lg); }

.feed-head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.feed-head .avatar-xs { width: 40px; height: 40px; }
.feed-head .fh-meta { line-height: 1.25; }
.feed-head .fh-meta a { color: var(--text); text-decoration: none; }
.feed-head .fh-meta a:hover { color: var(--primary); }
.feed-head .fh-meta small { color: var(--muted); font-size: 0.8rem; }

.sc-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.session-card h3 { margin: 0; font-size: 1.2rem; color: var(--text-strong); }
.sc-date { color: var(--muted); font-size: 0.82rem; white-space: nowrap; }
.sc-kind { display: inline-block; margin: 4px 0 0; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--secondary); font-weight: 700; }

/* headline stats row (Duration · Volume · Sets / Distance · Pace) */
.sc-stats { display: flex; gap: 26px; margin: 14px 0 4px; }
.sc-stats .st span { display: block; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2px; }
.sc-stats .st b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.sc-stats .st .pr { color: var(--accent); }

/* collapsed exercise preview rows */
.sc-exrows { list-style: none; margin: 14px 0 6px; padding: 0; }
.sc-exrows li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 0.95rem; }
.sc-exrows li:first-child { border-top: 0; }
.sc-exrows .ex-ico { width: 38px; height: 38px; border-radius: var(--radius-sm); background: var(--surface-soft); color: var(--secondary); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.sc-exrows .ex-ico svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sc-exrows .ex-name { flex: 1; min-width: 0; }
.sc-exrows .ex-top { color: var(--muted-strong); font-size: 0.85rem; white-space: nowrap; }
.sc-more { color: var(--muted); font-size: 0.85rem; padding: 8px 0 2px; }

.sc-detail { margin-top: 6px; }
.sc-photo { margin-bottom: 14px; border-radius: var(--radius); overflow: hidden; background: var(--surface-soft); }
.sc-photo img { display: block; width: 100%; max-height: 420px; object-fit: cover; }
.sc-exlist { list-style: none; margin: 0; padding: 0; }
.sc-exlist li { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--border); font-size: 0.93rem; }
.sc-exlist li .num { width: 20px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sc-exlist li .top { margin-left: auto; color: var(--muted-strong); }

.sc-tiles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sc-tile { flex: 1; min-width: 84px; text-align: center; padding: 12px 6px; background: var(--surface-soft); border-radius: var(--radius); }
.sc-tile b { display: block; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.sc-tile span { color: var(--muted); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; }
.sc-map { height: 220px; border-radius: var(--radius); overflow: hidden; margin-top: 14px; background: var(--surface-soft); }

/* like / comment action bar */
.sc-social { display: flex; gap: 8px; margin: 14px 0 10px; border-top: 1px solid var(--border); padding-top: 12px; }
.sc-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; color: var(--muted-strong); font-size: 0.88rem; font-weight: 600; background: transparent; }
.sc-pill:hover { background: var(--surface-soft); color: var(--text); }
.sc-pill.active { color: var(--primary); }
.sc-comments { margin: 4px 0 12px; }
.sc-comment { display: flex; gap: 9px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 0.92rem; }
.sc-comment .ca { font-weight: 700; }
.sc-composer { display: flex; gap: 8px; margin-top: 12px; }
.sc-composer input { flex: 1; padding: 10px 14px; border-radius: 999px; background: var(--surface-soft); border: 1px solid var(--border); color: var(--text); }
.sc-composer input:focus { outline: none; border-color: var(--border-strong); }

a.userlink { color: inherit; text-decoration: none; }
a.userlink:hover { color: var(--primary); }
.state-msg { text-align: center; padding: 56px 20px; color: var(--muted); }
.state-msg .button { margin-top: 12px; }

/* ===========================================================
   Profile header (top of the profile main column)
   =========================================================== */
.profile-cover {
    background: linear-gradient(150deg, var(--primary-soft), var(--surface) 70%);
    border-radius: var(--radius-lg); box-shadow: var(--shadow);
    padding: 24px; margin-bottom: 20px;
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.profile-cover .ava { width: 96px; height: 96px; border-radius: 999px; object-fit: cover; border: 3px solid var(--surface-elev); background: var(--surface-soft); display: flex; align-items: center; justify-content: center; font-size: 2.2rem; font-weight: 800; color: var(--primary); flex: 0 0 auto; }
.profile-cover .pid { flex: 1; min-width: 200px; }
.profile-cover h1 { margin: 0 0 2px; font-size: 1.7rem; }
.profile-cover .handle { color: var(--muted); font-weight: 600; }
.profile-cover .pstats { display: flex; gap: 26px; margin-top: 12px; }
.profile-cover .pstats b { font-size: 1.15rem; }
.profile-cover .pstats span { color: var(--muted); font-size: 0.8rem; display: block; }
.profile-cover .pactions { display: flex; gap: 10px; }

/* ===========================================================
   Marketing landing (kept from before, refreshed)
   =========================================================== */
.site-main { max-width: 1080px; margin: 0 auto; padding: 0 20px 80px; }
.site-narrow { max-width: 720px; }
.hero-x { text-align: center; padding: 96px 16px 32px; max-width: 900px; margin: 0 auto; }
.hero-x .eyebrow { display: inline-block; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; padding: 7px 15px; border: 1px solid var(--border); border-radius: 999px; background: var(--primary-soft); }
.hero-x h1 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em; font-size: clamp(2.9rem, 8vw, 5.4rem); line-height: 0.96; margin: 0 0 20px; color: var(--text-strong); }
.hero-x h1 .accent { color: var(--primary); }
.hero-x p.lead { font-size: clamp(1.05rem, 2.6vw, 1.32rem); color: var(--muted-strong); max-width: 620px; margin: 0 auto 32px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: 0.85rem; }
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 18px; color: var(--text); min-height: 54px; box-shadow: var(--shadow-sm); }
.store-badge:hover { border-color: var(--border-strong); background: var(--surface-soft); }
.store-badge .sb-sub { display: block; font-size: 0.62rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.store-badge .sb-main { display: block; font-weight: 800; font-size: 1.05rem; }
.store-badge svg { width: 22px; height: 22px; }
.section { padding: 20px 0 64px; }
.section h2 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.01em; font-weight: 400; font-size: clamp(2rem, 4.5vw, 2.7rem); margin: 0 0 10px; text-align: center; color: var(--text-strong); }
.section .sub { text-align: center; color: var(--muted); max-width: 580px; margin: 0 auto 56px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature { background: var(--surface); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); }
.feature .ficon { width: 46px; height: 46px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 14px; }
.feature .ficon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin: 0 0 6px; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--muted-strong); font-size: 0.94rem; line-height: 1.5; }
.cta-band { text-align: center; background: linear-gradient(135deg, var(--primary-soft), transparent); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 56px 24px; margin: 32px 0 64px; }
.cta-band h2 { font-family: var(--font-display); text-transform: uppercase; font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 10px; color: var(--text-strong); }
.cta-band p.sub { max-width: 520px; margin: 0 auto 28px; }
.site-footer { border-top: 1px solid var(--border); padding: 36px 20px; color: var(--muted); }
.site-footer-inner { max-width: 1080px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.site-footer a { color: var(--muted-strong); text-decoration: none; margin-left: 18px; }
.site-footer a:hover { color: var(--text); }

/* ---- Modal (username claim) ---- */
.fy-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.fy-modal { background: var(--surface-elev); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); }
.fy-modal h2 { margin: 0 0 6px; font-size: 1.3rem; }
.fy-modal p { color: var(--muted); margin: 0 0 16px; font-size: 0.92rem; }
.fy-modal input { width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); color: var(--text); margin-bottom: 10px; }
.fy-modal .err { color: var(--danger); font-size: 0.85rem; min-height: 18px; margin-bottom: 8px; }
.fy-modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ---- Legal pages ---- */
.legal { max-width: 760px; margin: 0 auto; padding: 40px 20px 80px; }
.legal h1 { font-size: 2rem; margin-bottom: 4px; }
.legal .updated { color: var(--muted); margin-bottom: 28px; }
.legal h2 { margin-top: 32px; font-size: 1.25rem; }
.legal p, .legal li { color: var(--muted-strong); line-height: 1.65; }
.legal .note { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; color: var(--muted); font-size: 0.88rem; }

/* ===========================================================
   Landing hero showcase (v2) — phone mockup cycling through
   Spot / Grind / New PR, alternating feature rows, AI components.
   =========================================================== */
@keyframes fyrvo-fade-through { 0% { opacity: 0; transform: scale(0.96); } 12%, 88% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(0.985); } }
@keyframes fyrvo-orb-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes fyrvo-trophy-bounce { 0% { transform: scale(0.4) translateY(10px); opacity: 0; } 55% { transform: scale(1.15) translateY(-4px); opacity: 1; } 100% { transform: scale(1) translateY(0); opacity: 1; } }
@keyframes fyrvo-think-wave { 0%, 100% { opacity: 0.3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }

.showcase { max-width: 1180px; margin: 0 auto; padding: 24px 20px 90px; display: flex; flex-direction: column; align-items: center; }
.showcase-phone-wrap { position: relative; width: min(300px, 78vw); filter: drop-shadow(0 30px 60px rgba(0,0,0,0.55)); }
.showcase-phone-glow { position: absolute; inset: -60px; background: radial-gradient(ellipse at 50% 30%, rgba(var(--primary-rgb), 0.28), transparent 65%); pointer-events: none; z-index: 0; }
.phone-frame {
    position: relative; z-index: 1;
    width: 100%; aspect-ratio: 300 / 620;
    border-radius: 44px; background: #000;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08), inset 0 0 0 6px #0a0a0c;
    overflow: hidden;
}
.phone-island { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; border-radius: 18px; background: #000; z-index: 20; box-shadow: 0 0 0 1px rgba(255,255,255,0.06); }
.phone-home { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 100px; height: 4px; border-radius: 999px; background: rgba(255,255,255,0.55); z-index: 20; }
.phone-screen {
    position: absolute; inset: 6px; border-radius: 38px;
    background: #000; overflow: hidden;
    display: flex; flex-direction: column;
}
.phone-status { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 2px; position: relative; z-index: 5; color: #fff; }
.phone-status .ps-time { font-size: 0.85rem; font-weight: 700; }
.phone-status .ps-icons { display: flex; align-items: center; gap: 5px; }
.phone-navbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 2px; }
.phone-pill {
    width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
    background: rgba(120,120,128,0.28); backdrop-filter: blur(8px) saturate(1.6);
    display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7);
}
.phone-pill.dots { width: 38px; }
.phone-title { padding: 6px 16px 12px; font-family: -apple-system, BlinkMacSystemFont, var(--font-body); font-weight: 700; font-size: 1.6rem; color: #fff; margin: 0; }
.phone-content { position: relative; flex: 1; padding: 0 12px 16px; }
.phone-panel { animation: fyrvo-fade-through 4.2s ease-in-out; display: flex; flex-direction: column; gap: 6px; min-height: 100%; }
.phone-panel[hidden] { display: none; }
.phone-panel-title { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.phone-panel-title > span:last-child { font-family: var(--font-display); text-transform: uppercase; font-size: 1.1rem; color: var(--text-strong); }
.phone-panel .caption-bottom { margin-top: auto; text-align: center; color: var(--muted); font-size: 0.8rem; }

.showcase-dots { display: flex; gap: 8px; margin-top: 28px; }
.showcase-dots span { display: block; height: 6px; border-radius: 999px; background: var(--border-strong); transition: all 0.3s ease; width: 6px; }
.showcase-dots span.active { width: 22px; background: var(--primary); }
.showcase-caption { margin-top: 18px; color: var(--muted); font-size: 0.92rem; text-align: center; min-height: 1.4em; }

/* AI orb — living gradient-flame sphere, replaces a static chat icon */
.ai-orb {
    border-radius: 50%; background: var(--gradient-flame);
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px var(--primary-glow);
    flex-shrink: 0;
}
.ai-orb.active { animation: fyrvo-orb-pulse 1.8s ease-in-out infinite; }
.ai-orb .material-symbols-rounded { color: #fff; }

/* Chat bubbles — AI gets a gradient-glow border, user stays plain ember-soft */
.chat-bubble { padding: 10px 14px; border-radius: var(--radius); font-size: 0.9rem; line-height: 1.45; max-width: 100%; }
.chat-bubble-user { background: var(--primary-soft); color: var(--text); margin-left: auto; width: fit-content; max-width: 85%; }
.chat-bubble-ai { background: var(--surface); border: 1px solid transparent; background-clip: padding-box; position: relative; color: var(--text); }
.chat-bubble-ai::before {
    content: ""; position: absolute; inset: 0; border-radius: var(--radius); padding: 1px;
    background: var(--gradient-flame); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.55; pointer-events: none;
}

/* Thinking indicator — breathing 3-dot wave instead of a spinner */
.thinking-indicator { display: inline-flex; gap: 5px; align-items: center; padding: 4px 0; }
.thinking-indicator[hidden] { display: none; }
.thinking-indicator span { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); animation: fyrvo-think-wave 1.1s ease-in-out infinite; }
.thinking-indicator span:nth-child(2) { animation-delay: 0.15s; }
.thinking-indicator span:nth-child(3) { animation-delay: 0.3s; }
.thinking-indicator em { font-style: normal; color: var(--muted); font-size: 0.8rem; margin-left: 2px; }

/* PR pill with trophy glyph */
.pill-icon { display: inline-flex; align-items: center; gap: 6px; }
.pill-icon .material-symbols-rounded { font-size: 15px; }
.pr-trophy-badge {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--gradient-flame); display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 28px var(--primary-glow);
    animation: fyrvo-trophy-bounce 0.6s ease-out;
}
.pr-trophy-badge .material-symbols-rounded { font-size: 34px; color: #fff; }

/* Alternating feature rows */
.flow-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 72px; }
.flow-row:last-child { margin-bottom: 0; }
.flow-row-rev > *:first-child { order: 2; }
.flow-copy .ficon-lg { width: 52px; height: 52px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.flow-copy .ficon-lg.flame { background: var(--gradient-flame); box-shadow: 0 6px 20px var(--primary-glow); }
.flow-copy .ficon-lg.soft-primary { background: var(--primary-soft); color: var(--primary); }
.flow-copy .ficon-lg.soft-secondary { background: var(--secondary-soft); color: var(--secondary); }
.flow-copy h3 { font-size: 1.5rem; margin: 0 0 10px; color: var(--text-strong); }
.flow-copy p { color: var(--muted-strong); line-height: 1.6; margin: 0 0 16px; }
.flow-demo { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); }
.flow-demo.pr-demo { display: flex; align-items: center; gap: 20px; padding: 24px; }
.flow-demo.sets-demo { display: flex; flex-direction: column; gap: 12px; }
.set-demo-row { display: flex; align-items: center; gap: 12px; }
.set-demo-row .sidx {
    width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.68rem; font-weight: 800; font-family: var(--font-display);
    color: #fff;
}
.set-demo-row .sidx.warmup { background: var(--accent); }
.set-demo-row .sidx.failure { background: var(--danger); }
.set-demo-row .sidx-num { width: 22px; flex-shrink: 0; text-align: center; color: var(--muted); font-weight: 700; font-size: 0.85rem; }
.set-demo-row span.line { color: var(--muted-strong); font-size: 0.9rem; }
.set-demo-row.emph span.line { color: var(--text); font-weight: 600; }

/* Phone Grind panel — real Stepper look: −/value+unit/+ */
.grind-demo-row { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px; margin-top: 14px; }
.grind-setnum { color: var(--muted); font-weight: 800; font-size: 0.82rem; width: 14px; text-align: center; flex-shrink: 0; }
.grind-stepper { flex: 1; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 8px; background: var(--surface-soft); }
.grind-stepper .gs-btn { color: var(--muted-strong); font-size: 1rem; font-weight: 700; width: 18px; text-align: center; }
.grind-stepper .gs-val-wrap { text-align: center; flex: 1; }
.grind-stepper .gs-val { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--text-strong); }
.grind-stepper .gs-unit { display: block; font-size: 0.6rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 1px; }

@media (max-width: 860px) { .flow-row { grid-template-columns: 1fr; gap: 24px; } .flow-row-rev > *:first-child { order: 2; } }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 1180px) {
    .app-shell { grid-template-columns: 240px minmax(0, 1fr); }
    .app-rail { display: none; }
}
@media (max-width: 820px) {
    .app-shell { grid-template-columns: 1fr; gap: 0; padding: 0 0 80px; }
    .app-sidebar {
        position: sticky; top: 0; z-index: 50; flex-direction: row; align-items: center; gap: 8px;
        max-height: none; padding: 10px 14px; overflow-x: auto;
        background: color-mix(in srgb, var(--bg) 90%, transparent);
        backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
        border-bottom: 1px solid var(--border);
    }
    .sb-brand { padding: 0 6px 0 2px; font-size: 1.35rem; }
    .sb-search { display: none; }
    .snav { flex-direction: row; gap: 2px; }
    .snav-link { padding: 9px 12px; font-size: 0.9rem; }
    .snav-link span { display: none; }
    .sb-spacer, .sb-getapp { display: none; }
    .sb-user { padding: 4px; background: transparent; }
    .sb-user .meta { display: none; }
    .app-main { padding: 18px 16px 0; }
    .app-title { font-size: 1.4rem; }
    .profile-cover { flex-direction: column; text-align: center; }
    .profile-cover .pstats, .profile-cover .pactions { justify-content: center; width: 100%; }
    .site-nav-links a.hide-sm { display: none; }
}
