/* Exit survey card, shown by /js/exit-survey.js after the Paddle checkout is closed. */

.xs-shade {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center; padding: 16px;
  background: rgba(0,0,0,.62);
  animation: xs-fade 180ms ease-out;
}
.xs-card {
  position: relative;
  width: min(420px, 100%);
  padding: var(--ar-s-6) var(--ar-s-6) var(--ar-s-5);
  background: var(--ar-panel); border: 1px solid var(--ar-line-2); border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
  color: var(--ar-text); font-family: var(--ar-font-sans); text-align: left;
  display: grid; gap: var(--ar-s-3);
  animation: xs-in 220ms ease-out;
}
@keyframes xs-fade { from { opacity: 0; } }
@keyframes xs-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .xs-shade, .xs-card { animation: none; } }
@media (max-width: 520px) { .xs-card { padding: var(--ar-s-5) var(--ar-s-4) var(--ar-s-4); } }

.xs-card:focus { outline: none; }
.xs-kicker { display: flex; align-items: center; gap: 8px; }
.xs-title { margin: 0; padding-right: var(--ar-s-5); font-family: var(--ar-font-display); font-size: 22px; font-weight: 600; letter-spacing: var(--ar-tracking-display); line-height: 1.2; text-wrap: balance; }
.xs-sub { margin: 0 0 var(--ar-s-2); font-size: 14px; color: var(--ar-text-2); }

.xs-x {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px;
  background: none; border: 0; border-radius: 6px;
  color: var(--ar-text-2); font-size: 20px; line-height: 1; cursor: pointer;
}
.xs-x:hover { color: var(--ar-text); }

.xs-opts { display: grid; gap: 6px; }
.xs-opt {
  min-height: 44px; padding: 10px var(--ar-s-4);
  background: var(--ar-ink); border: var(--ar-border); border-radius: 6px;
  color: var(--ar-text); font: 15px/1.3 var(--ar-font-sans); text-align: left; cursor: pointer;
  transition: border-color 120ms, background 120ms;
}
.xs-opt:hover { border-color: var(--ar-blue); background: #161b22; }

.xs-x:focus-visible, .xs-opt:focus-visible, .xs-other input:focus-visible {
  outline: var(--ar-focus); outline-offset: var(--ar-focus-offset);
}

.xs-other { display: flex; gap: var(--ar-s-2); }
.xs-other[hidden] { display: none; }
.xs-other input {
  flex: 1; min-width: 0; height: 40px; padding: 0 var(--ar-s-3);
  background: var(--ar-ink); border: var(--ar-border); border-radius: 6px;
  color: var(--ar-text); font: 14px var(--ar-font-sans);
}
.xs-other .btn { min-height: 40px; min-width: 0; }

/* Reply step: optional email after an answer. */
.xs-email input[type=email]:focus-visible { outline: var(--ar-focus); outline-offset: var(--ar-focus-offset); }
.xs-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.xs-err { margin: 0; font-size: 13.5px; color: var(--ar-red, #E0655C); }
.xs-err[hidden] { display: none; }
.xs-skip {
  justify-self: start; padding: 4px 0; background: none; border: 0;
  color: var(--ar-text-2); font: 14px var(--ar-font-sans); cursor: pointer; text-decoration: underline;
}
.xs-skip:hover { color: var(--ar-text); }
.xs-skip:focus-visible { outline: var(--ar-focus); outline-offset: var(--ar-focus-offset); }

/* Team price form (js/team-price.js), same card. */
.tp-form { display: grid; gap: var(--ar-s-3); }
.tp-form label { display: grid; gap: 4px; font-size: 13.5px; color: var(--ar-text-2); }
.tp-form input, .tp-form textarea {
  width: 100%; box-sizing: border-box; padding: 9px var(--ar-s-3);
  background: var(--ar-ink); border: var(--ar-border); border-radius: 6px;
  color: var(--ar-text); font: 14px var(--ar-font-sans);
}
.tp-form textarea { resize: vertical; }
.tp-form input:focus-visible, .tp-form textarea:focus-visible { outline: var(--ar-focus); outline-offset: var(--ar-focus-offset); }
.tp-opt { color: var(--ar-text-3, var(--ar-text-2)); font-size: 12.5px; }
.tp-form .btn { justify-self: start; }
.price-box .team-btn { display: flex; justify-content: center; width: 240px; min-width: 0; padding-left: 8px; padding-right: 8px; margin-top: var(--ar-s-2); box-sizing: border-box; }
@media (max-width: 640px) { .price-box .team-btn { width: 100%; min-width: 0; } }
.team-link { margin: var(--ar-s-3) 0 0; font-size: 14px; color: var(--ar-text-2); }

/* "For me | For a company" switch at the top of the /pricing price box. */
.price-box .buyer-switch { margin: 0 0 var(--ar-s-5); }
.buyer-tab { font-size: 12.5px; letter-spacing: .04em; padding: 12px 14px; }
.price-box #bizBtn { display: inline-flex; justify-content: center; }
