/* The research campaign pages: landing, feedback and the private dashboard.
   Builds on style.css (colours, Newsreader titles, buttons, phone frame, .how cards). */

.research-languages{gap:18px;font-size:14px;flex-wrap:wrap;justify-content:flex-end}
.research-languages a{display:inline-flex;align-items:center;min-height:32px;color:var(--ink)}
.research-languages a[aria-current]{font-weight:600;text-decoration:underline;text-underline-offset:4px}

.research-hero{text-align:center;padding:48px 0 36px;max-width:820px}
.research-hero h1{margin-bottom:22px}
.research-hero h1 em{color:#5541c8}
.research-hero .intro{color:#2b2930;max-width:660px;margin:0 auto 28px}

.research-offer{display:grid;grid-template-columns:1fr 1.2fr;gap:22px;padding:24px 0 70px}
.offer-card{background:#f5f3f8;border-radius:24px;padding:30px 30px 26px}
.offer-card h2{font-size:30px;margin:0 0 18px}
.included{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.included li{position:relative;padding-left:32px;font-size:16px;line-height:1.55;color:#2b2930}
.included li::before{content:"";position:absolute;left:0;top:4px;width:18px;height:18px;border-radius:50%;background:#4a2fc0}
.included li::after{content:"";position:absolute;left:6px;top:8px;width:5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.research-steps{list-style:none;margin:0;padding:0;counter-reset:step;display:grid;gap:18px}
.research-steps li{counter-increment:step;position:relative;padding-left:46px}
.research-steps li::before{content:counter(step);position:absolute;left:0;top:0;width:30px;height:30px;border-radius:50%;background:#fff;border:1px solid #ded9e7;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;color:#4a2fc0}
.research-steps h3{font-size:18px;margin:2px 0 6px}
.research-steps p{margin:0;color:var(--muted);font-size:15px;line-height:1.7}

.research-benefits{padding:20px 0 80px}
.research-benefits .feature-copy h3{margin-top:4px}

.research-demo{text-align:center;padding:0 0 80px}
.research-demo h2{margin-bottom:30px}
.demo{margin:0;display:flex;flex-direction:column;align-items:center}
.demo-phone{width:280px;transform:none}
.demo-phone video{display:block;width:100%;height:auto;background:#34343b}
.demo figcaption{margin-top:18px;font-size:14px;color:var(--muted)}
.demo .demo-soon{display:none}
.demo.no-demo .demo-caption{display:none}
.demo.no-demo .demo-soon{display:inline}

.research-join{max-width:760px;padding:10px 0 90px}
.research-join>h2{margin-bottom:10px}
.form-sub{color:var(--muted);margin:0 0 26px}
.research-form{display:grid;gap:22px}
.field{display:grid;gap:6px}
.field label{font-weight:600;font-size:16px}
.field-hint{margin:0;color:var(--muted);font-size:14px}
.field input[type=email],.field input[type=text],.field input[type=date],.field input:not([type]),.field select,.field textarea{font:inherit;font-size:16px;padding:12px 14px;border:1px solid #c9c3d6;border-radius:12px;background:#fff;color:var(--ink);width:100%;max-width:520px}
.field textarea{max-width:none;resize:vertical}
.field input[aria-invalid=true]{border-color:#c42f3a}
.field-error,.form-error{color:#b3262f;font-size:15px;margin:0}
.form-error{background:#fdecee;border:1px solid #f2c4c8;border-radius:12px;padding:12px 16px}
.question{border:0;margin:0;padding:0;min-width:0}
.question legend{font-weight:600;font-size:16px;margin-bottom:10px;padding:0}
.optional{font-weight:400;color:var(--muted);font-size:14px}
.choices{display:flex;flex-wrap:wrap;gap:8px}
.choice{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 14px;border:1px solid #d8d2e3;border-radius:99px;background:#fff;cursor:pointer;font-size:15px;line-height:1.3}
.choice input{margin:0;accent-color:#4a2fc0;width:18px;height:18px;flex:none}
.choice:has(input:checked){background:#ece6fb;border-color:#7964ac}
.choice:has(input:focus-visible){outline:3px solid #7964ac;outline-offset:2px}
.choice-scale{min-width:64px;justify-content:center}
.scale-ends{display:flex;justify-content:space-between;max-width:420px;margin:8px 0 0;font-size:14px;color:var(--muted)}
.agree .check{display:flex;gap:12px;align-items:flex-start;font-weight:400;font-size:15px;line-height:1.6}
.agree .check input{width:22px;height:22px;margin-top:2px;flex:none;accent-color:#4a2fc0}
.agree a,.research-feedback a{color:#5541c8;text-decoration:underline;text-underline-offset:2px}
.hp{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.research-submit{justify-self:start;border:0;cursor:pointer;background:#4a2fc0}
.research-submit:hover{background:#3d24a6}
.research-submit[disabled]{opacity:.7;cursor:progress}
.join-done{background:#f1edf7;border-radius:24px;padding:32px 30px;text-align:center}
.join-done h2,.join-done h1{margin:0 0 12px}
.join-done p{max-width:560px;margin:0 auto 6px;color:#2b2930}
.join-done .downloads{margin-top:22px}
.join-done:focus{outline:none}

.research-feedback{max-width:760px;padding:30px 0 90px}
.research-feedback h1{font-size:clamp(34px,4vw,46px);margin:0 0 10px}
.fb-status{color:var(--muted);margin:0 0 18px}

.research-dashboard{padding:20px 0 80px}
.research-dashboard h1{font-size:clamp(32px,4vw,44px);margin:0 0 24px}
.research-dashboard section{margin-bottom:46px}
.research-dashboard h2{font-size:26px;margin:0 0 16px}
.dash-sign-in{max-width:460px}
.funnel{display:grid;grid-template-columns:minmax(200px,max-content) 1fr;gap:8px 18px;margin:0;align-items:center}
.funnel dt{font-size:15px}
.funnel dd{margin:0;display:flex;align-items:center;gap:12px}
.funnel progress{width:100%;max-width:520px;height:14px;accent-color:#4a2fc0}
.funnel-count{font-variant-numeric:tabular-nums;font-weight:600;min-width:3ch}
.splits{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px}
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:14px}
.table-wrap:focus-visible{outline:3px solid #7964ac;outline-offset:2px}
.research-dashboard table{border-collapse:collapse;width:100%;font-size:14px}
.research-dashboard caption{text-align:left;font-weight:600;padding:12px 14px 4px}
.research-dashboard th,.research-dashboard td{padding:9px 14px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}
.research-dashboard th{font-weight:600;white-space:nowrap;background:#faf9fc}
.link-button{background:none;border:0;padding:6px 4px;min-height:32px;font:inherit;font-size:14px;color:#5541c8;text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.row-actions{display:flex;gap:6px;flex-wrap:wrap}
.contact-form{max-width:620px;margin-top:24px;background:#f5f3f8;border-radius:20px;padding:24px}
.contact-form h3{margin:0}

@media(max-width:820px){.research-offer{grid-template-columns:1fr}}
@media(max-width:640px){
.research-hero{padding:30px 0 24px}
.offer-card{padding:24px 20px}
.offer-card h2{font-size:26px}
.demo-phone{width:230px}
.choice{font-size:14px}
.research-languages{gap:12px;font-size:13px}
.funnel{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){.choice{transition:none}}
.research-benefits .section-heading{display:block}

/* Hidden means hidden, even for elements given their own display (the form after joining). */
[hidden]{display:none!important}
/* Headings the page moves the screen reader to on load need no focus box. */
[tabindex="-1"]:focus{outline:none}
/* Dashboard: section title with its action on the right; the contact form as a modal. */
.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.section-head h2{margin:0}
.contact-dialog{border:0;border-radius:24px;padding:28px;width:min(520px,calc(100% - 32px));box-shadow:0 24px 60px #1e146633}
.contact-dialog::backdrop{background:#19181d73}
.contact-dialog h2{margin:0 0 4px;font-size:28px}
.dialog-actions{display:flex;justify-content:flex-end;align-items:center;gap:16px;margin-top:4px}
/* The follow-up note gets room to read on one or two lines. */
#people td:last-child{min-width:300px}
/* What happens next, under the Join button */
.join-next{margin-top:6px;padding:20px 24px;border-radius:18px;background:#f4f1fb}
.join-next h3{margin:0 0 8px;font-size:17px}
.join-next ol{margin:0;padding-left:22px;color:var(--muted);line-height:1.7}

.contact-link { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.contact-link output { flex: 1 1 240px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9rem; word-break: break-all; padding: 8px 10px; border: 1px solid var(--line, #d9d7e0); border-radius: 8px; }
