@charset "UTF-8";

:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --ink: #101d34;
  --muted: #647187;
  --line: #dfe6ef;
  --accent: #356df3;
  --accent-rgb: 53, 109, 243;
  --accent-dark: #2453c6;
  --accent-soft: #edf3ff;
  --success: #167a68;
  --shadow: 0 24px 80px rgba(20, 42, 78, 0.12), 0 4px 18px rgba(20, 42, 78, 0.05);
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 14px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

body[data-audience="seller"] {
  --accent: #167a68;
  --accent-rgb: 22, 122, 104;
  --accent-dark: #105f52;
  --accent-soft: #eaf7f3;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 10%, rgba(var(--accent-rgb), 0.08), transparent 34rem),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 52%, #eef3f8 100%);
  color: var(--ink);
  transition: background 280ms ease;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
  opacity: 0.55;
}
.ambient-one {
  width: 360px;
  height: 360px;
  top: -190px;
  right: -120px;
  background: rgba(var(--accent-rgb), 0.15);
}
.ambient-two {
  width: 420px;
  height: 260px;
  bottom: -170px;
  left: -130px;
  background: rgba(16, 29, 52, 0.05);
}

.site-header {
  width: min(1120px, calc(100% - 40px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 7px 18px rgba(var(--accent-rgb), 0.22);
  transition: background 250ms ease;
}
.brand-mark svg { width: 21px; height: 27px; }
.brand-name {
  font-size: 19px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: -0.55px;
}
.brand-name span { color: var(--accent); transition: color 250ms ease; }
.product-name {
  color: #66748a;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.page-shell {
  width: min(680px, calc(100% - 28px));
  margin: clamp(18px, 5vh, 52px) auto 28px;
  position: relative;
}
.preview-ribbon {
  width: max-content;
  max-width: 100%;
  margin: 0 auto 12px;
  padding: 8px 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-align: center;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}
.take-card {
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(220, 228, 239, 0.9);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  transition: opacity 120ms ease, transform 120ms ease, border-color 250ms ease;
}
.take-card.is-switching { opacity: 0.4; transform: translateY(4px); }
.screen {
  min-height: 520px;
  padding: clamp(30px, 7vw, 56px);
  animation: screen-in 280ms ease both;
}
@keyframes screen-in {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1 {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: clamp(34px, 7vw, 48px);
  line-height: 1.06;
  font-weight: 850;
  letter-spacing: -0.045em;
}
.lede {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}
.screen-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 23px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: 18px;
  background: var(--accent-soft);
  font-size: 27px;
}

.identify-form { margin-top: 32px; }
.field-label,
.audience-fieldset legend {
  display: block;
  margin-bottom: 9px;
  color: #3f4f67;
  font-size: 13px;
  font-weight: 750;
}
.email-input {
  width: 100%;
  min-height: 56px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  outline: none;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.email-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.12);
}
.email-input::placeholder { color: #9aa5b5; }
.audience-fieldset {
  min-width: 0;
  margin: 23px 0 0;
  padding: 0;
  border: 0;
}
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.audience-choice {
  min-height: 94px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}
.audience-choice > span { font-size: 25px; }
.audience-choice strong { font-size: 14px; line-height: 1.35; }
.audience-choice:hover { transform: translateY(-2px); border-color: rgba(var(--accent-rgb), 0.45); }
.audience-choice.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.09);
}
.honeypot { position: absolute !important; left: -9999px !important; opacity: 0 !important; }

.primary-button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 24px;
  padding: 0 21px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px rgba(var(--accent-rgb), 0.22);
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 150ms ease, background 150ms ease, opacity 150ms ease;
}
.identify-form .primary-button { width: 100%; }
.primary-button:hover:not(:disabled) { transform: translateY(-2px); background: var(--accent-dark); }
.primary-button:disabled { cursor: not-allowed; opacity: 0.45; box-shadow: none; }
.primary-button.is-loading { color: transparent; position: relative; }
.primary-button.is-loading::after {
  content: "";
  position: absolute;
  width: 19px;
  height: 19px;
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.privacy-note {
  margin: 12px 8px 0;
  color: #8994a5;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.question-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.question-count {
  margin: 0;
  color: #7d899b;
  font-size: 12px;
  font-weight: 750;
}
.progress-track {
  width: 100%;
  height: 7px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eef5;
}
.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 300ms cubic-bezier(.22,.8,.3,1), background 250ms ease;
}
.progress-20 { width: 20%; }
.progress-40 { width: 40%; }
.progress-60 { width: 60%; }
.progress-80 { width: 80%; }
.progress-100 { width: 100%; }
.micro-thanks {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}
.question-title {
  margin-top: 8px;
  max-width: 560px;
  font-size: clamp(31px, 6vw, 44px);
}
.question-helper {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-top: 30px;
}
.answer-card {
  min-height: 76px;
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr 24px;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}
.answer-card:nth-child(5) { grid-column: 1 / -1; }
.answer-card:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), 0.5);
  background: #fff;
  box-shadow: 0 10px 22px rgba(25, 46, 78, 0.07);
}
.answer-card:focus-visible,
.audience-choice:focus-visible,
.primary-button:focus-visible,
.back-button:focus-visible,
.text-button:focus-visible {
  outline: 3px solid rgba(var(--accent-rgb), 0.28);
  outline-offset: 2px;
}
.answer-card.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.09);
}
.answer-card:disabled { cursor: default; }
.answer-emoji {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(30, 50, 80, 0.06);
  font-size: 20px;
}
.answer-label {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 760;
}
.answer-check {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid #d4dce7;
  border-radius: 999px;
  color: transparent;
  font-size: 12px;
  font-weight: 900;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.answer-card.is-selected .answer-check {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.question-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 25px;
}
.back-button,
.text-button {
  border: 0;
  background: transparent;
  color: #627086;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}
.back-button { padding: 9px 3px; }
.back-button:disabled { opacity: 0; cursor: default; }
.autosave-note {
  color: #8994a4;
  font-size: 11px;
  font-weight: 650;
}
.autosave-note span { color: var(--success); }

.completed-screen,
.error-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.success-mark {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin-bottom: 23px;
  border-radius: 24px;
  background: var(--accent-soft);
  transform: rotate(-4deg);
}
.success-mark span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 23px;
  font-weight: 900;
  transform: rotate(4deg);
}
.completed-screen h1,
.error-screen h1 { max-width: 540px; }
.completed-screen .lede,
.error-screen .lede { max-width: 470px; }
.completed-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 6px;
}
.completed-actions .text-button {
  margin-top: 16px;
  padding: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.thank-you-note {
  margin-top: 28px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: #69768a;
  font-size: 12px;
  font-weight: 700;
}

.loading-state { padding: 56px; }
.loading-logo,
.loading-line,
.loading-options div {
  background: linear-gradient(90deg, #edf1f6 25%, #f8fafc 50%, #edf1f6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.25s infinite linear;
}
.loading-logo { width: 52px; height: 52px; border-radius: 16px; }
.loading-line { width: 58%; height: 17px; margin-top: 15px; border-radius: 8px; }
.loading-line-wide { width: 82%; height: 39px; margin-top: 29px; }
.loading-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 44px; }
.loading-options div { height: 74px; border-radius: 14px; }
.loading-options div:last-child { grid-column: 1 / -1; }
@keyframes shimmer { to { background-position: -200% 0; } }

.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 26px;
  max-width: min(440px, calc(100% - 28px));
  padding: 13px 16px;
  border-radius: 12px;
  background: #101d34;
  color: #fff;
  box-shadow: 0 16px 40px rgba(10, 24, 45, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.site-footer {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #7b8798;
  font-size: 12px;
}
.site-footer a { text-underline-offset: 3px; }

@media (max-width: 620px) {
  .site-header { width: min(100% - 28px, 680px); min-height: 70px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .brand-name { font-size: 17px; }
  .product-name { font-size: 11px; }
  .page-shell { margin-top: 12px; }
  .take-card, .screen { min-height: 540px; }
  .screen { padding: 30px 22px; }
  .audience-grid, .answer-grid { grid-template-columns: 1fr; }
  .answer-card:nth-child(5) { grid-column: auto; }
  .answer-card { min-height: 70px; }
  .loading-state { padding: 34px 24px; }
  .loading-options { grid-template-columns: 1fr; }
  .loading-options div:last-child { grid-column: auto; }
}

@media (max-width: 390px) {
  .product-name { display: none; }
  .question-footer { align-items: flex-end; }
  .autosave-note { max-width: none; white-space: nowrap; text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
