/* ============================================================ai-coach.css — the AI Coach preview page. Camera demo panel,live accuracy ring, guidance cues, "what it checks" grid andthe on-device privacy note. Pairs with flow-studio.css (shared.fs-topnav / .fs-hero / .fs-next) + theme.css tokens.============================================================ */
/* ---------- Hero video ---------- */
.ai-hero-grid {
grid-template-columns: minmax(0, 0.95fr) minmax(360px, 460px);
align-items: start;
margin-top: 0.6rem;
}
.ai-hero-media {
align-self: center;
justify-self: center;
width: min(460px, 100%);
}
.ai-guide-video {
position: relative;
margin: 0;
width: 100%;
overflow: hidden;
border-radius: 22px;
background: #11261f;
border: 1px solid rgba(136, 119, 196, 0.24);
box-shadow: 0 26px 60px -26px rgba(27, 19, 43, 0.7);
isolation: isolate;
}
.ai-guide-video__titlebar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
padding: 0.7rem 0.85rem;
font: 700 0.82rem/1.2 var(--font-body);
letter-spacing: 0.02em;
color: #fff;
background: rgba(26, 61, 40, 0.76);
backdrop-filter: blur(10px);
}
.ai-guide-video__stage {
position: relative;
aspect-ratio: 16 / 11;
overflow: hidden;
background: #10251e;
}
.ai-guide-video__stage::after {
content: "";
position: absolute;
inset: 0;
z-index: 2;
background: linear-gradient(180deg, rgba(9, 10, 18, 0.02), rgba(9, 10, 18, 0.05) 46%, rgba(9, 10, 18, 0.46));
pointer-events: none;
}
.ai-guide-video__video {
position: absolute;
inset: 0;
z-index: 1;
display: block;
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
background: #10251e;
}
.ai-guide-video__note {
margin: 0;
padding: 0.72rem 0.85rem 0.8rem;
font: 600 0.78rem/1.45 var(--font-body);
color: rgba(255, 255, 255, 0.82);
background: rgba(26, 61, 40, 0.84);
}
.ai-guide-video__play {
position: absolute;
left: 14px;
bottom: 14px;
z-index: 6;
width: 38px;
height: 38px;
border: 0;
border-radius: 50%;
display: grid;
place-items: center;
background: rgba(255, 255, 255, 0.92);
color: #1a3d28;
box-shadow: 0 12px 26px -14px rgba(0, 0, 0, 0.55);
cursor: pointer;
transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
.ai-guide-video__play:hover,
.ai-guide-video__play:focus-visible {
transform: translateY(-1px);
background: #fff;
outline: none;
}
.ai-guide-video__play span {
display: grid;
place-items: center;
width: 100%;
height: 100%;
}
.ai-guide-video__play svg {
grid-area: 1 / 1;
width: 17px;
height: 17px;
fill: currentColor;
}
.ai-guide-video__ico-pause,
.ai-guide-video.is-playing .ai-guide-video__ico-play {
display: none;
}
.ai-guide-video.is-playing .ai-guide-video__ico-pause {
display: block;
}
.ai-guide-video.is-muted-run .ai-guide-video__play {
opacity: 0.92;
}
.ai-guide-video__mini {
width: 34px;
height: 34px;
border: 1px solid rgba(255, 255, 255, 0.28);
border-radius: 50%;
display: grid;
place-items: center;
background: rgba(255, 255, 255, 0.1);
color: #fff;
cursor: pointer;
transition: background 0.2s ease, transform 0.2s ease;
}
.ai-guide-video__mini:hover,
.ai-guide-video__mini:focus-visible {
background: rgba(255, 255, 255, 0.2);
transform: translateY(-1px);
outline: none;
}
.ai-guide-video__mini svg {
width: 17px;
height: 17px;
fill: none;
stroke: currentColor;
stroke-width: 2.2;
stroke-linecap: round;
stroke-linejoin: round;
}
.ai-guide-video__seek {
position: absolute;
left: 62px;
right: 14px;
bottom: 22px;
z-index: 6;
height: 20px;
display: flex;
align-items: center;
}
.ai-guide-video__seek-range {
width: 100%;
height: 5px;
border-radius: 999px;
appearance: none;
background: linear-gradient(90deg, #6ecba0 var(--seek-progress, 0%), rgba(255, 255, 255, 0.34) var(--seek-progress, 0%));
cursor: pointer;
}
.ai-guide-video__seek-range::-webkit-slider-thumb {
appearance: none;
width: 14px;
height: 14px;
border-radius: 50%;
background: #fff;
box-shadow: 0 0 0 3px rgba(110, 203, 160, 0.28);
}
.ai-guide-video__seek-range::-moz-range-thumb {
width: 14px;
height: 14px;
border: 0;
border-radius: 50%;
background: #fff;
box-shadow: 0 0 0 3px rgba(110, 203, 160, 0.28);
}
.ai-video-modal {
position: fixed;
inset: 0;
z-index: 1000;
display: none;
align-items: center;
justify-content: center;
padding: clamp(1rem, 4vw, 3rem);
}
.ai-video-modal.is-open {
display: flex;
}
.ai-video-modal__backdrop {
position: absolute;
inset: 0;
background: rgba(12, 21, 18, 0.72);
backdrop-filter: blur(10px);
}
.ai-video-modal__card {
position: relative;
z-index: 1;
width: min(820px, 92vw, 82vh);
border-radius: 22px;
overflow: hidden;
background: #10251e;
box-shadow: 0 34px 90px -32px rgba(0, 0, 0, 0.75);
}
.ai-video-modal__video {
display: block;
width: 100%;
aspect-ratio: 1 / 1;
object-fit: cover;
background: #10251e;
}
.ai-video-modal__close {
position: absolute;
top: 12px;
right: 12px;
z-index: 3;
border: 0;
border-radius: 999px;
padding: 0.45rem 0.75rem;
font: 700 0.78rem/1 var(--font-body);
background: rgba(255, 255, 255, 0.92);
color: #1a3d28;
cursor: pointer;
}
@media (max-width: 760px) {
.ai-hero-grid { grid-template-columns: 1fr; }
.ai-hero-media { width: min(520px, 100%); }
.ai-guide-video__seek {
left: 58px;
}
}
/* ---------- Live demo section ---------- */
.ai-demo {
max-width: var(--maxw);
margin: 0 auto;
padding: clamp(3rem, 7vw, 5.5rem) 1.25rem;
}
.ai-demo__head { text-align: center; max-width: 640px; margin: 0 auto 2.6rem; }
.ai-demo__inner {
display: grid;
grid-template-columns: 1.05fr 0.95fr;
gap: clamp(1.5rem, 4vw, 3rem);
align-items: center;
}
/* ---------- Camera panel ---------- */
.ai-cam {
position: relative;
border-radius: var(--radius);
overflow: hidden;
background: var(--grad-power);
box-shadow: var(--shadow);
aspect-ratio: 4 / 5;
isolation: isolate;
}
.ai-cam__scan {
position: absolute;
inset: 0;
background: linear-gradient(180deg, transparent 0%, rgba(111, 191, 214, 0.16) 50%, transparent 100%);
height: 40%;
animation: ai-scan 3.6s ease-in-out infinite;
pointer-events: none;
z-index: 2;
}
@keyframes ai-scan {
0%, 100% { transform: translateY(-20%); opacity: 0.35; }
50% { transform: translateY(180%); opacity: 0.9; }
}
.ai-cam__svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
/* skeleton joints pulse gently */
.ai-joint { animation: ai-pulse 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.ai-joint:nth-child(2n) { animation-delay: 0.4s; }
.ai-joint:nth-child(3n) { animation-delay: 0.8s; }
@keyframes ai-pulse {
0%, 100% { opacity: 0.8; }
50% { opacity: 1; r: 6; }
}
/* live top-left status pill */
.ai-cam__live {
position: absolute;
top: 14px; left: 14px;
z-index: 3;
display: inline-flex;
align-items: center;


gap: 0.4rem;
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.06em;
color: #fff;
background: rgba(224, 123, 95, 0.9);
padding: 0.32rem 0.6rem;
border-radius: 999px;
}
.ai-cam__live::before {
content: "";
width: 8px; height: 8px;
border-radius: 50%;
background: #fff;
animation: ai-blink 1.4s ease-in-out infinite;
}
@keyframes ai-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
/* accuracy ring, bottom-right of camera */
.ai-cam__score {
position: absolute;
bottom: 14px; right: 14px;
z-index: 3;
width: 92px; height: 92px;
display: grid;
place-items: center;
text-align: center;
}
.ai-cam__score svg { position: absolute; inset: 0; }
.ai-cam__score-num {
font-family: var(--font-heading);
font-weight: 700;
font-size: 1.5rem;
color: #fff;
line-height: 1;
}
.ai-cam__score-lbl {
font-size: 0.56rem;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--text-inv-soft);
margin-top: 2px;
}
/* ---------- Cues column ---------- */
.ai-cues__title { font-size: 1.5rem; margin-bottom: 0.35rem; }
.ai-cues__sub { color: var(--text-soft); margin-bottom: 1.4rem; }
.ai-cue-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.ai-cue {
display: flex;
align-items: center;
gap: 0.8rem;
background: var(--paper);
border: 1px solid rgba(27, 19, 43, 0.08);
border-radius: var(--radius-sm);
padding: 0.75rem 0.9rem;
box-shadow: var(--shadow-sm);
transition: border-color 0.25s, transform 0.25s;
}
.ai-cue.is-good { border-color: rgba(85, 136, 106, 0.5); }
.ai-cue.is-fix { border-color: rgba(224, 168, 105, 0.6); }
.ai-cue__icon {
flex: none;


width: 34px; height: 34px;
border-radius: 10px;
display: grid;
place-items: center;
font-size: 1.05rem;
}
.ai-cue.is-good .ai-cue__icon { background: rgba(123, 166, 134, 0.18); }
.ai-cue.is-fix .ai-cue__icon { background: rgba(224, 168, 105, 0.2); }
.ai-cue__body b { display: block; font-size: 0.98rem; }
.ai-cue__body span { font-size: 0.85rem; color: var(--text-soft); }
/* ---------- What it checks grid ---------- */
.ai-checks {
background: var(--sand);
padding: clamp(3rem, 7vw, 5rem) 1.25rem;
}
.ai-checks__inner { max-width: var(--maxw); margin: 0 auto; }
.ai-checks__head { text-align: center; max-width: 620px; margin: 0 auto 2.4rem; }
.ai-checks__grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 1rem;
}
.ai-check {
background: var(--paper);
border-radius: var(--radius-sm);
padding: 1.2rem;
box-shadow: var(--shadow-sm);
border-top: 3px solid var(--nc, var(--violet));
}
.ai-check__icon { font-size: 1.6rem; }
.ai-check h3 { font-size: 1.05rem; margin: 0.5rem 0 0.3rem; }
.ai-check p { font-size: 0.88rem; color: var(--text-soft); }
/* ---------- Privacy callout ---------- */
.ai-privacy {
max-width: 900px;
margin: clamp(3rem, 6vw, 4.5rem) auto;
padding: 0 1.25rem;
}
.ai-privacy__card {
display: flex;
align-items: center;
gap: 1.2rem;
background: var(--grad-power);
color: var(--text-inv);
border-radius: var(--radius);
padding: clamp(1.5rem, 4vw, 2.2rem);
box-shadow: var(--shadow);
}
.ai-privacy__icon { font-size: 2.4rem; flex: none; }
.ai-privacy__card h3 { color: #fff; font-size: 1.3rem; margin-bottom: 0.3rem; }
.ai-privacy__card p { color: var(--text-inv-soft); font-size: 0.95rem; }
/* ---------- Responsive ---------- */
@media (max-width: 820px) {
.ai-demo__inner { grid-template-columns: 1fr; }
.ai-cam { max-width: 420px; margin: 0 auto; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {


.ai-cam__scan, .ai-joint, .ai-cam__live::before { animation: none !important; }
}

/* ---- Yogaverse Plus offer pop-up (js/plus-offer.js) ---- */
.yv-plus {
position: fixed;
inset: 0;
z-index: 99998;
display: grid;
place-items: center;
padding: 16px;
background: rgba(27, 19, 43, 0.48);
}
.yv-plus__card {
width: min(580px, 100%);
max-height: calc(100vh - 32px);
overflow: auto;
background: var(--paper, #fff);
color: var(--text, #1c3a28);
border-radius: var(--radius, 20px);
padding: 1.4rem;
box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}
.yv-plus__title { margin: 0 0 0.5rem; color: var(--ink-900, #1e4d32); }
.yv-plus__lead { margin: 0 0 1rem; }
.yv-plus__signin { color: var(--sage-dk, #2f8055); font-weight: 700; }
.yv-plus__offer {
background: var(--sand, #edf7f1);
border-radius: var(--radius-sm, 12px);
padding: 1rem 1.1rem;
margin-bottom: 1.1rem;
}
.yv-plus__plan { margin: 0 0 0.3rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.yv-plus__badge {
display: inline-block;
padding: 0.15rem 0.65rem;
border-radius: 999px;
background: var(--gold, #d4a017);
color: #fff;
font-weight: 700;
}
.yv-plus__price { margin: 0 0 0.6rem; font-weight: 600; }
.yv-plus__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; }
.yv-plus__list li::before { content: "\2713"; color: var(--sage-dk, #2f8055); font-weight: 700; margin-right: 0.5rem; }
.yv-plus__actions { display: flex; gap: 0.75rem; }
.yv-plus__btn { flex: 1 1 0; justify-content: center; text-align: center; flex-direction: column; gap: 0.2rem; min-height: 48px; padding-left: 1rem; padding-right: 1rem; }
.yv-plus__soon {
display: inline-block;
white-space: nowrap;
padding: 0.05rem 0.55rem;
border-radius: 999px;
background: var(--gold, #d4a017);
color: #fff;
font-weight: 700;
}
.yv-plus__btn:disabled { cursor: default; transform: none; }
.yv-plus__thanks { display: grid; gap: 0.9rem; }
.yv-plus__thanks[hidden], .yv-plus__actions[hidden] { display: none; }
.yv-plus__thanks-text { margin: 0; font-weight: 600; }
@media (max-width: 520px) {
.yv-plus__card { padding: 1.1rem; }
.yv-plus__actions { display: grid; grid-auto-rows: 1fr; }
.yv-plus__actions[hidden] { display: none; }
.yv-plus__btn { width: 100%; }
}
