/* Early-access survey: one question per screen */

.cta { margin-top: 44px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.btn-primary {
  font: 600 18px/1 'Outfit', system-ui, sans-serif;
  color: #fff; background: var(--navy);
  border: 0; border-radius: 999px;
  padding: 18px 30px; min-height: 56px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 12px;
  transition: transform .12s ease, background .2s;
}
.btn-primary:hover { background: #0841aa; }
.btn-primary:active { transform: scale(.98); }
.btn-primary:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.btn-primary .arrow { transition: transform .2s; }
.btn-primary:hover .arrow { transform: translateX(4px); }
.cta-note { margin: 0; max-width: 30rem; font-size: 15px; line-height: 1.5; color: var(--muted); }

/* Dialog shell */
dialog.sv-dialog {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--paper); color: var(--ink);
}
dialog.sv-dialog::backdrop { background: rgba(0, 37, 107, 0.4); }
.sv { height: 100%; display: flex; flex-direction: column; }
.sv-top { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.sv-top img { height: 28px; width: auto; }
.sv-progress { flex: 1; height: 6px; background: var(--line); border-radius: 6px; overflow: hidden; }
.sv-progress span { display: block; height: 100%; width: 0; background: var(--yellow); border-radius: 6px; transition: width .4s cubic-bezier(.4,0,.2,1); }
.sv-close {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center; color: var(--muted);
}
.sv-close:hover { background: #eceef2; color: var(--ink); }
.sv-close:focus-visible { outline: 3px solid var(--navy); }

.sv-body { flex: 1; overflow-y: auto; display: flex; justify-content: center; padding: 4vh 20px 24px; }
.sv-form { width: min(640px, 100%); display: flex; flex-direction: column; }
.sv-step { animation: sv-in .35s cubic-bezier(.2,.7,.2,1); }
.sv-step.back { animation-name: sv-in-back; }
@keyframes sv-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes sv-in-back { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }

.sv-count { font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); margin: 0 0 12px; }
.sv-q {
  margin: 0;
  font-family: 'Red Hat Display', 'Outfit', sans-serif; font-weight: 900;
  font-size: clamp(30px, 5vw, 46px); line-height: 1.08; letter-spacing: -0.03em;
  color: var(--navy);
}
.sv-q:focus { outline: none; }
.sv-help { margin: 12px 0 0; font-size: 17px; color: var(--muted); }
.sv-options { margin: 28px 0 0; padding: 0; border: 0; display: grid; gap: 10px; }
.sv-options.chips { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); }
.sv-options.chips .sv-opt { padding-right: 12px; gap: 12px; }

.sv-opt {
  display: flex; align-items: center; gap: 14px;
  width: 100%; min-height: 58px; padding: 12px 16px;
  font: 500 18px/1.3 'Outfit', system-ui, sans-serif; text-align: left; color: var(--ink);
  background: #fff; border: 2px solid var(--line); border-radius: 14px;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
}
.sv-opt:hover { border-color: #9fb0d6; }
.sv-opt:active { transform: scale(.99); }
.sv-opt:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.sv-opt[aria-pressed="true"] { border-color: var(--navy); background: #eef2fb; }
.sv-key {
  flex: none; width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center;
  font: 600 13px/1 'Outfit', sans-serif; color: var(--navy);
  border: 1.5px solid #b9c5e0; background: #fff;
}
.sv-opt[aria-pressed="true"] .sv-key { background: var(--navy); border-color: var(--navy); color: #fff; }
.sv-check { flex: none; margin-left: auto; opacity: 0; color: var(--navy); transition: opacity .15s; }
.sv-opt[aria-pressed="true"] .sv-check { opacity: 1; }

.sv-field { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.sv-field label { font-size: 15px; font-weight: 600; color: var(--ink); }
.sv-field input, .sv-field textarea, .sv-field select {
  font: 400 20px/1.4 'Outfit', system-ui, sans-serif; color: var(--ink);
  padding: 14px 16px; border: 2px solid var(--line); border-radius: 12px; background: #fff;
  width: 100%;
}
.sv-field textarea { min-height: 110px; resize: vertical; font-size: 18px; }
.sv-field input:focus, .sv-field textarea:focus, .sv-field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(0,53,148,.12); }
.sv-error { min-height: 22px; margin: 12px 0 0; color: #b42318; font-size: 15px; font-weight: 500; }

.sv-nav { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding-bottom: 8px; }
.sv-back {
  font: 500 16px/1 'Outfit', sans-serif; color: var(--muted);
  background: none; border: 0; padding: 14px 8px; min-height: 48px; cursor: pointer;
}
.sv-back:hover { color: var(--ink); }
.sv-back[hidden], .sv-nav[hidden] { display: none; }
.sv-next { margin-left: auto; }
.sv-hint { font-size: 13px; color: var(--muted); }
.sv-hint kbd { font: 600 12px 'Outfit', sans-serif; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; background: #fff; }
.sv-fine { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.sv-fine a { color: var(--navy); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Done screen */
.sv-done { text-align: center; padding-top: 4vh; }
.sv-done .badge {
  width: 84px; height: 84px; margin: 0 auto 24px; border-radius: 50%;
  background: var(--yellow); display: grid; place-items: center;
  animation: pop .5s cubic-bezier(.3,1.6,.5,1);
}
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.sv-done .sv-q { font-size: clamp(30px, 5vw, 44px); }
.invite {
  margin-top: 36px; padding: 28px 24px 24px;
  border-radius: 20px; background: #fff; border: 2px solid var(--line);
  text-align: left; position: relative; overflow: hidden;
}
.invite::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--navy) 0 70%, var(--yellow) 70% 100%); }
.invite-eyebrow { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.invite-title { margin: 6px 0 0; font: 900 24px/1.15 'Red Hat Display', 'Outfit', sans-serif; letter-spacing: -.02em; color: var(--ink); }
.invite-sub { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.invite-link {
  margin-top: 18px; width: 100%;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 14px 14px 18px; min-height: 56px;
  background: var(--paper); border: 2px dashed #b9c5e0; border-radius: 14px;
  font: 500 18px/1.2 'Outfit', sans-serif; color: var(--ink); cursor: pointer; text-align: left;
  transition: border-color .15s, background .15s;
}
.invite-link:hover { border-color: var(--navy); background: #eef2fb; }
.invite-link:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.invite-link.copied { border-style: solid; border-color: var(--navy); background: #eef2fb; }
.invite-url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.invite-url strong { color: var(--navy); font-weight: 700; }
.invite-copy { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--navy); }
.invite-actions { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.invite-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 14px; border-radius: 12px;
  font: 600 15px/1 'Outfit', sans-serif; color: var(--navy); text-decoration: none;
  background: #fff; border: 2px solid var(--line); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.invite-btn:hover { border-color: var(--navy); background: #eef2fb; }
.invite-btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

@media (max-width: 640px) {
  .sv-hint { display: none; }
  .sv-opt { font-size: 17px; }
  .sv-options.chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sv-options.chips .sv-opt { font-size: 15.5px; min-height: 52px; padding: 10px 10px; gap: 10px; }
  .sv-options.chips .sv-check { display: none; }
  .sv-top img { display: none; }
  .invite { padding: 24px 18px 18px; }
  .invite-link { font-size: 16px; }
  .invite-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .sv-step, .sv-done .badge { animation: none; }
}
