.study-card {
    color:var(--ink);
    background:#fffefa;
    border:1px solid #d7d9cc;
    border-radius:20px;
    box-shadow:0 24px 90px #23362b29,0 3px 12px #243a2d0d;
}
.study-card h1,.study-card h2 {
    margin:0;
    font-weight:500;
    font-size:clamp(30px,5vw,43px);
    line-height:1.06;
    letter-spacing:-.045em;
    text-wrap:balance;
}
.study-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:24px }
.study-primary,.study-secondary {
    display:inline-flex;
    min-height:46px;
    align-items:center;
    justify-content:center;
    gap:12px;
    padding:12px 19px;
    border-radius:7px;
    font:inherit;
    font-size:15px;
    font-weight:600;
    text-decoration:none;
}
.study-primary { color:white; background:#203a32; border:1px solid #203a32 }
.study-primary:hover { background:#0b5140 }
.study-secondary { color:#243c36; background:transparent; border:1px solid #b8c2b8 }
.study-secondary:hover { background:#edf2e9 }
.study-primary svg,.study-primary span[aria-hidden] { transition:transform .18s ease-out }
.study-primary:hover svg,.study-primary:hover span[aria-hidden] { transform:translateX(3px) }

.participation-page { background:#fafaf8; min-height:100svh }
.tour-preview { position:fixed; inset:0; overflow:hidden; pointer-events:none; user-select:none }
.tour-preview .conversation-button { display:inline-flex; justify-content:center; align-items:center }
.gate-layout {
    position:relative;
    isolation:isolate;
    display:grid;
    align-content:safe center;
    justify-items:center;
    grid-template-columns:minmax(0,1fr);
    min-height:100svh;
    max-width:none;
    padding:24px clamp(16px,4vw,80px);
}
.gate-layout::before {
    content:""; position:fixed; z-index:-1; inset:0;
    background:rgb(24 42 37 / 38%); backdrop-filter:blur(2px);
}
.participation-card { width:min(100%,424px); padding:clamp(20px,3vw,30px); animation:survey-arrive .24s ease-out both }
.participation-card h1 { font-size:clamp(26px,4vw,36px); line-height:1.12 }
.participation-card .study-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:stretch }
.gate-header { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:16px }
.tour-step { display:flex; align-items:center; flex-wrap:wrap; gap:10px; color:#43564b; font-size:13px; font-weight:600 }
.tour-dots { display:flex; gap:3px }
.tour-dots b { width:15px; height:4px; border-radius:4px; background:#d9e1d8 }
.tour-dots b:first-child,
.participation-card[data-step="2"] .tour-dots b:nth-child(2),
.participation-card[data-step="3"] .tour-dots b { background:#387150 }
.tour-art {
    display:grid; place-items:center; position:relative; isolation:isolate; overflow:hidden;
    height:94px; margin-bottom:18px; border-radius:12px;
    background:#e1eaff; color:#bfcee6;
}
.participation-card[data-step="2"] .tour-art { background:#deedcb; color:#bed7a7 }
.tour-art::before {
    content:""; position:absolute; z-index:-1; width:185px; height:185px;
    border:1px solid currentColor; border-radius:50%; outline:1px solid currentColor; outline-offset:14px;
}
.tour-art svg { width:125px; height:75px }
.participation-card .tour-description { margin:12px 0 20px }
#tour-back { display:inline-flex; align-items:center; min-height:44px; padding:0 10px; margin-left:6px; color:#35483e; font-size:14px; text-underline-offset:3px }
.participation-card[data-step="3"] #tour-back { margin:5px 0 -8px; padding:0 }
.gate-language { position:relative; margin-left:auto; font-size:13px; color:#33453d }
.gate-language summary,.data-details summary { cursor:pointer; padding:9px 0; font-weight:600 }
.gate-language nav {
    position:absolute; right:0; z-index:1; padding:4px; min-width:134px;
    display:grid; border:1px solid var(--line); background:white; border-radius:8px;
    box-shadow:0 5px 16px #243a2d19;
}
.gate-language a { color:inherit; padding:8px 10px; text-decoration:none }
.gate-language a:hover,.gate-language a[aria-current] { background:#edf3ec; border-radius:4px }
.participation-card p { margin:14px 0; line-height:1.5; font-size:15px }
.gate-reminder { font-weight:600 }
.data-details { border-block:1px solid var(--line); margin:18px 0 0; font-size:14px }
.data-details summary { padding:13px 0 }
.data-details p { font-size:14px; color:#45534a }
.about-demo a { color:inherit; text-underline-offset:3px; font-size:13px }

.survey-prompt {
    padding:0;
    width:min(450px,calc(100% - 32px));
    max-width:none;
    max-height:calc(100dvh - 32px);
    overflow:auto;
    overscroll-behavior:contain;
}
.survey-prompt::backdrop { background:#172a25a1; backdrop-filter:blur(4px) }
.survey-prompt[open] { animation:survey-arrive .38s cubic-bezier(.2,.8,.2,1) both }
.survey-prompt-body { padding:clamp(22px,5vw,32px) }
.study-duration { margin:0 0 12px; color:#44604c; font-size:13px; font-weight:600 }
#survey-prompt-description { margin:14px 0 0; font-size:16px; line-height:1.5; color:#435048 }
.survey-art {
    height:125px; position:relative; overflow:hidden; display:grid; place-items:center;
    background:#dcecad; border-bottom:1px solid #ccdc9c;
}
.survey-orbit {
    position:absolute; width:320px; height:320px; border:1px solid #bfd28c;
    border-radius:50%; box-shadow:0 0 0 24px #dcecad,0 0 0 25px #c4d98e;
}
.survey-drawing { width:150px; height:96px; position:relative }
.reply-card { display:grid; align-content:center; position:absolute; border:2px solid #1f4332; border-radius:16px; }
.reply-back { width:76px; height:55px; left:17px; top:17px; gap:5px; padding:0 14px; background:#fdfbf0; transform:rotate(-12deg) }
.reply-back i { width:32px; height:3px; background:#536c5a; border-radius:4px }
.reply-back i:last-child { width:21px }
.reply-front { width:76px; height:59px; left:62px; top:29px; justify-items:center; background:#86cead; transform:rotate(9deg); box-shadow:3px 4px 0 #344f3e }
.reply-front::after { content:""; position:absolute; right:11px; bottom:-7px; width:12px; height:10px; border:solid #1f4332; border-width:0 2px 2px 0; background:inherit; transform:skewY(33deg) }
.reply-front svg { width:37px; fill:none; stroke:#183d30; stroke-width:4.5; stroke-linecap:round; stroke-linejoin:round }
.reply-spark { position:absolute; height:3px; width:10px; border-radius:3px; background:#345841; }
.spark-a { left:1px; top:57px; rotate:-13deg }
.spark-b { right:9px; top:12px; rotate:-50deg }
.spark-c { right:0; top:22px; rotate:-15deg }
.survey-prompt[open] .reply-back { animation:reply-arrive .46s cubic-bezier(.2,.85,.3,1.15) both }
.survey-prompt[open] .reply-front { animation:reply-arrive .49s .08s cubic-bezier(.2,.9,.3,1.2) both }
.survey-prompt[open] .reply-front path { stroke-dasharray:1; animation:draw-check .32s .36s ease-out both }
.survey-prompt[open] .reply-spark { animation:reply-arrive .3s .45s ease-out both }
@keyframes survey-arrive { from { opacity:0; transform:translateY(12px) scale(.97) } }
@keyframes reply-arrive { from { opacity:0; translate:0 9px; scale:.85 } }
@keyframes draw-check { from { stroke-dashoffset:1 } to { stroke-dashoffset:0 } }
@media (min-width:701px) {
    .participation-card { width:min(100%,640px); padding:clamp(30px,3vw,44px) }
    .participation-card h1 { font-size:clamp(36px,3.4vw,44px) }
    .participation-card .tour-description { font-size:17px; line-height:1.55 }
    .gate-header { margin-bottom:20px }
    .tour-art { height:132px; margin-bottom:24px }
    .tour-art svg { width:165px; height:99px }
}
@media (max-width:700px) {
    .gate-layout { align-content:safe end; padding:16px }
    .gate-layout::before { background:rgb(24 42 37 / 35%); backdrop-filter:blur(1.5px) }
    .tour-art { height:74px }
    .tour-art svg { height:62px }
}
@media (max-width:430px) {
    .gate-layout { padding:12px }
    .study-actions { display:grid; grid-template-columns:1fr }
    .study-actions .study-secondary { min-height:44px }
    .survey-art { height:106px }
}
@media (prefers-reduced-motion:reduce) {
    .study-card,.study-card * { animation:none!important; transition:none!important }
    .study-primary:hover svg,.study-primary:hover span[aria-hidden] { transform:none }
}
