/* VibroCalm standalone brand system.
   Source: VibroCalm Figma tokens + selected Product-First Preview direction.
   Poppins 400/500/600 · navy/teal surfaces · white pill CTA · 20px cards. */
:root{
  --quiz:#2C5771;
  --quiz-deep:#17394F;
  --dark:#091417;
  --dark-2:#0F2025;
  --surface:#152B32;
  --deep:#10466A;
  --blue:#7DB9E8;
  --paleblue:#BFD9EE;
  --white:#FFFFFF;
  --text:#F4F7F9;
  --dim:#A9BCC6;
  --muted:#718893;
  --line:rgba(255,255,255,.13);
  --card:20px;
  --chip:16px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{min-height:100dvh;overflow-x:hidden;background:var(--dark);color:var(--text);font-family:'Poppins',system-ui,sans-serif;-webkit-font-smoothing:antialiased}
body[data-page="quiz"]{background:var(--quiz)}
[hidden]{display:none!important}
button,a{font:inherit}
button{border:0;background:none;color:inherit;cursor:pointer}
a{color:var(--paleblue)}
img{display:block;max-width:100%}
fieldset{border:0;min-width:0}

.ui-icon{display:block;width:22px;height:22px;object-fit:contain;filter:brightness(0) invert(1)}
.tint-blue{filter:brightness(0) saturate(100%) invert(73%) sepia(24%) saturate(873%) hue-rotate(170deg) brightness(96%) contrast(91%)}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
h1[tabindex="-1"]:focus,h2[tabindex="-1"]:focus{outline:none}
.shell{position:relative;z-index:2;width:100%;max-width:480px;min-height:100dvh;margin:0 auto;padding:0 22px;display:flex;flex-direction:column}

.brand{min-height:66px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:env(safe-area-inset-top)}
.mark,.quiz-wordmark{display:inline-flex;align-items:center;gap:9px;color:var(--white);font-size:17px;font-weight:600;text-decoration:none;letter-spacing:.01em}
.mark img,.quiz-wordmark img{width:28px;height:28px;border-radius:8px}
.brand .side{font-size:11.5px;color:rgba(255,255,255,.66)}

h1{font-size:clamp(29px,8vw,36px);font-weight:600;line-height:1.18;letter-spacing:-.02em}
h2{font-size:clamp(23px,6.5vw,29px);font-weight:600;line-height:1.24;letter-spacing:-.015em}
.kick{font-size:11.5px;line-height:1.4;letter-spacing:.16em;text-transform:uppercase;color:var(--paleblue);font-weight:600}
.sub{margin-top:12px;color:var(--dim);font-size:15px;line-height:1.68}
body[data-page="quiz"] .sub{color:rgba(255,255,255,.80)}

.btn{width:100%;min-height:58px;padding:16px 24px;border-radius:999px;display:flex;align-items:center;justify-content:center;gap:10px;font-size:16px;font-weight:600;text-decoration:none;transition:transform .16s ease,opacity .2s ease,box-shadow .2s ease}
.btn:active{transform:scale(.98)}
.btn-white{background:var(--white);color:var(--deep);box-shadow:0 10px 30px rgba(0,0,0,.24)}
.btn[disabled]{opacity:.48;pointer-events:none;box-shadow:none}
.btn:focus-visible,.icon-button:focus-visible,.opt:focus-within,.text-button:focus-visible,.plan:focus-visible,a:focus-visible,summary:focus-visible{outline:2.5px solid #79C2FF;outline-offset:3px}

/* Hero */
.hero-photo{position:fixed;inset:0;z-index:0;pointer-events:none;background:var(--quiz-deep)}
.hero-photo img{width:100%;height:100%;object-fit:cover;object-position:center 47%;filter:saturate(.88) brightness(.72)}
.hero-photo::after{content:"";position:absolute;inset:0;background:rgba(10,28,37,.36)}
.hero-screen{min-height:calc(100dvh - 66px);display:flex;align-items:flex-end;padding:52px 0 calc(22px + env(safe-area-inset-bottom))}
.hero-copy{width:100%}
.hero-copy h1{max-width:420px;margin-top:11px;font-size:clamp(32px,9vw,41px)}
.hero-sub{max-width:410px;margin-top:13px;font-size:15px;line-height:1.58;color:rgba(255,255,255,.84)}
.hero-copy .btn{margin-top:24px}
.hint{margin-top:11px;text-align:center;font-size:12px;line-height:1.5;color:rgba(255,255,255,.69)}

/* Quiz navigation */
.quiz-nav{position:fixed;z-index:10;top:0;left:50%;width:100%;max-width:480px;transform:translateX(-50%);padding:calc(10px + env(safe-area-inset-top)) 22px 14px;background:rgba(44,87,113,.97)}
.quiz-nav-row{height:42px;display:grid;grid-template-columns:44px 1fr 44px;align-items:center}
.icon-button{width:44px;height:44px;display:flex;align-items:center;justify-content:flex-start;gap:5px;border-radius:999px;color:rgba(255,255,255,.88)}
.back-label{display:none;font-size:13.5px;font-weight:500}
.quiz-wordmark{justify-self:center;font-size:15px}
.quiz-wordmark img{width:24px;height:24px}
.qcount{justify-self:end;font-size:12px;color:rgba(255,255,255,.72);font-variant-numeric:tabular-nums}
.quiz-nav progress{width:100%;height:4px;display:block;margin-top:5px;border:0;border-radius:999px;overflow:hidden;background:rgba(255,255,255,.25);appearance:none}
.quiz-nav progress::-webkit-progress-bar{background:rgba(255,255,255,.25)}
.quiz-nav progress::-webkit-progress-value{background:var(--white);border-radius:999px;transition:width .28s ease}
.quiz-nav progress::-moz-progress-bar{background:var(--white);border-radius:999px}
.quiz-nav.without-progress{background:transparent}
.quiz-nav.without-progress .quiz-nav-row{grid-template-columns:72px 1fr 72px}
.quiz-nav.without-progress .icon-button{width:72px}
.quiz-nav.without-progress .back-label{display:inline}
.quiz-nav.without-progress .quiz-wordmark img{display:none}
.quiz-nav.without-progress .quiz-wordmark{filter:drop-shadow(0 2px 12px rgba(0,0,0,.4))}
body.in-quiz .brand,body.in-quiz .hero-photo,body.in-quiz footer{display:none}
#quizWrap{min-height:100dvh;padding:calc(82px + env(safe-area-inset-top)) 0 calc(30px + env(safe-area-inset-bottom))}

.enter{animation:enter .42s cubic-bezier(.16,1,.3,1) both}
@keyframes enter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.question-screen{min-height:calc(100dvh - 112px - env(safe-area-inset-top));display:flex;flex-direction:column;padding-top:22px}
.question-screen h1{margin-top:10px;max-width:420px}
.question-form{display:flex;min-height:0;flex:1;flex-direction:column}
.opts{display:grid;gap:10px;margin-top:23px}
.opt{position:relative;min-height:59px;padding:14px 16px 14px 18px;border:1.2px solid rgba(255,255,255,.68);border-radius:var(--card);display:grid;grid-template-columns:1fr 27px;gap:14px;align-items:center;background:rgba(255,255,255,.08);color:var(--white);cursor:pointer;transition:background .18s ease,border-color .18s ease,transform .14s ease}
.opt:active{transform:scale(.985)}
.opt input{position:absolute;opacity:0;pointer-events:none}
.opt-label{font-size:15px;line-height:1.4}
.choice-mark{width:25px;height:25px;border:1.5px solid rgba(255,255,255,.82);border-radius:50%;display:flex;align-items:center;justify-content:center}
.choice-mark .ui-icon{width:15px;height:15px;opacity:0}
.opt.selected{border-color:var(--white);background:var(--white);color:var(--deep);font-weight:600}
.opt.selected .choice-mark{border-color:var(--deep);background:var(--deep);color:var(--white)}
.opt.selected .choice-mark .ui-icon{opacity:1}
.quiz-cta{margin-top:22px}

/* Selected product-first preview */
body.preview-mode{background:var(--dark)}
body.preview-mode .shell{padding:0 22px}
body.preview-mode #quizWrap{padding:0}
.preview-screen{width:100%;min-height:100dvh;padding-bottom:calc(22px + env(safe-area-inset-bottom));display:flex;flex-direction:column}
.preview-media{height:56dvh;min-height:410px;max-height:490px;margin:0 -22px;overflow:hidden;background:var(--dark-2)}
.preview-media img{width:100%;height:100%;object-fit:cover;object-position:center 48%;transform:scale(1.01)}
.preview-media.playing img{animation:photoPulse 2s ease-in-out infinite}
@keyframes photoPulse{0%,100%{transform:scale(1.01);filter:brightness(1)}50%{transform:scale(1.035);filter:brightness(1.08)}}
.preview-copy{position:relative;z-index:2;margin-top:-1px;padding-top:16px;display:flex;flex-direction:column;flex:1;text-align:center}
.preview-copy h1{margin-top:8px}
.preview-copy .sub{margin-top:8px;line-height:1.55}
.preview-player{position:relative;min-height:64px;margin-top:14px;border:1px solid var(--line);border-radius:var(--chip);display:grid;grid-template-columns:46px 72px 1fr;align-items:center;overflow:hidden;background:rgba(255,255,255,.045);text-align:left}
.preview-play-icon{width:46px;height:46px;margin-left:10px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#24577A}
.preview-play-icon .ui-icon{width:25px;height:25px}
.preview-duration{padding-left:14px;font-size:15px;color:var(--text);font-variant-numeric:tabular-nums}
.preview-label{padding-left:16px;border-left:1px solid var(--line);font-size:14px;color:var(--paleblue)}
.preview-progress{position:absolute;left:0;right:0;bottom:0;width:100%;height:3px;border:0;appearance:none;background:transparent}
.preview-progress::-webkit-progress-bar{background:transparent}
.preview-progress::-webkit-progress-value{background:var(--blue)}
.preview-progress::-moz-progress-bar{background:var(--blue)}
.preview-copy>.btn{margin-top:14px}
.text-button{min-height:44px;margin:5px auto 0;padding:8px 14px;color:var(--blue);font-size:14px}
.preview-note{margin-top:auto;padding-top:4px;text-align:center;font-size:12px;line-height:1.45;color:#8FA6B0}

.analyzing-screen{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:42px 0;text-align:center}
.analyzing-icon{width:88px;height:88px;border-radius:24px;margin-bottom:28px;animation:softPulse 1.8s ease-in-out infinite}
.analyzing-screen h2{margin-top:10px}
.analyzing-screen .sub{max-width:320px}
@keyframes softPulse{0%,100%{transform:scale(1);opacity:.82}50%{transform:scale(1.045);opacity:1}}

/* Personalized result */
.landing-shell{max-width:480px}
.result-empty{padding:100px 0 60px}
.result-empty h1{margin-top:10px}
.result-empty .btn{margin-top:24px}
.result-hero{padding:64px 0 34px}
.result-hero h1{margin-top:10px}
.result-hero>.sub{max-width:420px}
.matched-session{position:relative;height:262px;margin-top:24px;overflow:hidden;border:1px solid var(--line);border-radius:26px;background:var(--surface)}
.matched-session>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.matched-scrim{position:absolute;inset:0;background:rgba(5,15,19,.28);border-bottom:120px solid rgba(5,15,19,.62)}
.matched-copy{position:absolute;z-index:2;left:20px;right:20px;bottom:18px}
.matched-label{font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--paleblue);font-weight:600}
.matched-copy h2{margin-top:5px;font-size:25px}
.matched-copy p{margin-top:3px;color:rgba(255,255,255,.78);font-size:13.5px}
.answer-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.answer-summary>span{min-height:48px;padding:11px 13px;border:1px solid var(--line);border-radius:var(--chip);display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.04);font-size:12px;color:var(--dim)}
.answer-summary .ui-icon{width:19px;height:19px}
.answer-summary b{font-weight:500;color:var(--text)}

.offer-section{padding:20px 0 48px}
.offer{padding:25px 20px;border:1px solid rgba(125,185,232,.25);border-radius:28px;background:var(--dark-2)}
.offer h2{margin-top:8px}
.benefit-list{display:grid;gap:11px;margin-top:18px}
.benefit-list p{display:flex;align-items:flex-start;gap:9px;color:var(--dim);font-size:13.5px;line-height:1.55}
.benefit-list .ui-icon{flex:none;width:19px;height:19px;margin-top:1px}
.plans{display:grid;gap:11px;margin-top:24px}
.plan{position:relative;width:100%;min-height:76px;padding:17px 16px;border:1.2px solid var(--line);border-radius:var(--card);display:grid;grid-template-columns:1fr 28px;gap:12px;align-items:center;text-align:left;background:rgba(255,255,255,.035)}
.plan[aria-checked="true"]{border-color:var(--white);background:rgba(255,255,255,.09)}
.plan-copy{display:flex;flex-direction:column;gap:3px}
.plan-copy b{font-size:16px;font-weight:600}
.plan-copy small{font-size:12.5px;color:var(--dim)}
.plan-check{width:27px;height:27px;border:1.5px solid rgba(255,255,255,.45);border-radius:50%;display:flex;align-items:center;justify-content:center}
.plan-check .ui-icon{width:16px;height:16px;opacity:0;filter:brightness(0) saturate(100%) invert(22%) sepia(32%) saturate(1447%) hue-rotate(158deg) brightness(92%) contrast(93%)}
.plan[aria-checked="true"] .plan-check{border-color:var(--white);background:var(--white)}
.plan[aria-checked="true"] .plan-check .ui-icon{opacity:1}
.savebadge{position:absolute;top:-10px;left:15px;padding:4px 10px;border-radius:999px;background:var(--paleblue);color:var(--deep);font-size:9.5px;font-weight:600;letter-spacing:.04em}
.offer>.btn{margin-top:17px}
.secure-note{margin-top:13px;display:flex;align-items:center;justify-content:center;gap:6px;text-align:center;color:#8FA6B0;font-size:12px;line-height:1.5}
.secure-note .ui-icon{width:15px;height:15px;opacity:.72}

.trust-section,.faq-section{padding:48px 0;border-top:1px solid rgba(255,255,255,.08)}
.trust-grid{display:grid;gap:10px;margin-top:18px}
.trust-grid article{padding:16px 17px;border:1px solid rgba(255,255,255,.09);border-radius:var(--chip);display:grid;grid-template-columns:54px 1fr;gap:12px;align-items:center;background:rgba(255,255,255,.035)}
.trust-grid b{font-size:24px;color:var(--paleblue)}
.trust-grid span{font-size:13px;line-height:1.5;color:var(--dim)}
.faq-section h2{font-size:24px}
.faq{display:grid;gap:9px;margin-top:18px}
.faq details{overflow:hidden;border:1px solid rgba(255,255,255,.09);border-radius:var(--chip);background:rgba(255,255,255,.035)}
.faq summary{min-height:56px;padding:15px 17px;display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none;font-size:14px;font-weight:600}
.faq summary::-webkit-details-marker{display:none}
.faq-icon{flex:none;color:var(--blue);transition:transform .18s ease}
.faq details[open] .faq-icon{transform:rotate(45deg)}
.faq .a{padding:0 17px 16px;color:var(--dim);font-size:13px;line-height:1.65}

footer{margin-top:auto;padding:26px 0 calc(30px + env(safe-area-inset-bottom));border-top:1px solid rgba(255,255,255,.08)}
footer p{color:var(--muted);font-size:11.5px;line-height:1.7}
footer a{color:var(--dim)}
.footer-link{padding:2px;color:var(--dim);text-decoration:underline;text-underline-offset:2px}
.footer-link:focus-visible{outline:2.5px solid #79C2FF;outline-offset:3px;border-radius:4px}

/* Consent and privacy */
.consent-banner{position:fixed;z-index:1000;left:50%;bottom:12px;width:calc(100% - 24px);max-width:560px;max-height:calc(100dvh - 24px);overflow:auto;transform:translateX(-50%);padding:20px 18px calc(18px + env(safe-area-inset-bottom));border:1px solid rgba(125,185,232,.30);border-radius:24px;background:#102229;color:var(--text);box-shadow:0 24px 70px rgba(0,0,0,.48)}
.consent-copy h2{font-size:20px;line-height:1.3}
.consent-copy p{margin-top:8px;color:var(--dim);font-size:12.5px;line-height:1.6}
.consent-copy a{color:var(--paleblue)}
.consent-options{display:grid;gap:9px;margin-top:15px}
.consent-options label{min-height:58px;padding:11px 12px;border:1px solid var(--line);border-radius:14px;display:grid;grid-template-columns:22px 1fr;gap:10px;align-items:start;background:rgba(255,255,255,.035);cursor:pointer}
.consent-options input{width:18px;height:18px;margin-top:2px;accent-color:#7DB9E8}
.consent-options span{display:grid;gap:2px}
.consent-options b{font-size:13px}
.consent-options small{color:var(--dim);font-size:11.5px;line-height:1.45}
.consent-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin-top:16px}
.consent-button{min-height:44px;padding:10px 13px;border:1px solid var(--line);border-radius:999px;display:inline-flex;align-items:center;justify-content:center;text-align:center;font-size:12px;font-weight:600;text-decoration:none;cursor:pointer}
.consent-button-primary{border-color:var(--white);background:var(--white);color:var(--deep)}
.consent-button-secondary{background:transparent;color:var(--text)}
.consent-button-choice{border-color:rgba(255,255,255,.72);background:rgba(255,255,255,.06);color:var(--white)}
.consent-button:focus-visible{outline:2.5px solid #79C2FF;outline-offset:3px}

body[data-page="privacy"]{background:var(--dark)}
.privacy-shell{max-width:760px;padding-bottom:64px}
.privacy-document{padding:54px 0 40px}
.privacy-document>h1{max-width:620px;margin-top:10px}
.privacy-lead{max-width:650px;margin-top:16px;color:var(--dim);font-size:16px;line-height:1.7}
.privacy-section{padding:28px 0;border-top:1px solid var(--line)}
.privacy-section:first-of-type{margin-top:40px}
.privacy-section h2{font-size:21px}
.privacy-section p{margin-top:11px;color:var(--dim);font-size:14px;line-height:1.75}
.privacy-section a{color:var(--paleblue)}
.privacy-table-wrap{margin-top:20px;overflow-x:auto;border:1px solid var(--line);border-radius:16px}
.privacy-table-wrap:focus-visible{outline:2.5px solid #79C2FF;outline-offset:3px}
.privacy-table{width:100%;min-width:620px;border-collapse:collapse;text-align:left}
.privacy-table th,.privacy-table td{padding:13px 14px;border-bottom:1px solid var(--line);vertical-align:top;color:var(--dim);font-size:12px;line-height:1.55}
.privacy-table th{color:var(--text);font-weight:600;background:rgba(255,255,255,.04)}
.privacy-table tr:last-child td{border-bottom:0}
.privacy-table code{color:var(--paleblue);font-size:11.5px}
.privacy-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:28px}

.redirect-shell{max-width:420px;align-items:center;justify-content:center;text-align:center;padding-top:40px;padding-bottom:40px}
.redirect-icon{width:82px;height:82px;margin-bottom:24px;border-radius:22px}
.redirect-shell h1{margin-top:8px}
.redirect-shell .sub{max-width:340px}
.redirect-shell .btn{margin-top:24px}

@media(max-width:360px){
  .shell{padding-left:18px;padding-right:18px}
  .quiz-nav{padding-left:18px;padding-right:18px}
  .preview-media{margin-left:-18px;margin-right:-18px}
  .preview-copy h1{font-size:29px}
  .preview-label{font-size:12.5px;padding-left:12px}
  .preview-player{grid-template-columns:44px 65px 1fr}
  .opt{min-height:55px;padding-top:12px;padding-bottom:12px}
  .consent-banner{bottom:8px;width:calc(100% - 16px);padding-left:15px;padding-right:15px;border-radius:20px}
  .consent-actions{grid-template-columns:1fr}
  .privacy-actions{grid-template-columns:1fr}
}

@media(min-width:700px){
  body[data-page="quiz"]::after{content:"";position:fixed;inset:0;z-index:1;pointer-events:none;background:rgba(0,0,0,.14)}
  .hero-photo img{object-position:center 52%}
  .preview-media{height:445px}
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .enter,.analyzing-icon,.preview-media.playing img{animation:none}
  .btn,.opt{transition:none}
}
