@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;700;800;900&display=swap");

:root {
  color-scheme: dark;
  --ink: #f2f8fc;
  --muted: #797979;
  --line: rgba(242, 248, 252, 0.16);
  --line-strong: rgba(242, 248, 252, 0.34);
  --panel: rgba(7, 11, 13, 0.84);
  --panel-solid: #080d0f;
  --soft: #151515;
  --brand: #6f9ceb;
  --brand-dark: #4f78c7;
  --accent: #6f9ceb;
  --warn: #d7a15f;
  --good: #90d7af;
  --shadow: none;
  --display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--body);
}

/* Minimal Agency Branding */
.form-branding-card {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(180px, 1fr) minmax(150px, 0.8fr) minmax(150px, 0.8fr) auto;
  align-items: end;
  gap: 16px;
  margin: 0 0 28px;
  border: 1px solid #e8e3dc;
  border-radius: 14px;
  background: #fffefa;
  padding: 18px;
  color: #252528;
}

.form-branding-copy h2,
.form-branding-copy p,
.form-branding-status {
  margin: 0;
}

.form-branding-copy h2 {
  font: 750 1rem/1.2 var(--body);
  text-transform: none;
}

.form-branding-copy p,
.form-branding-status {
  margin-top: 5px;
  color: #6f6c66;
  font-size: 0.78rem;
}

.form-branding-card label {
  display: grid;
  gap: 6px;
  color: #6f6c66;
  font-size: 0.75rem;
}

.form-branding-color > span {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 7px;
}

.form-branding-color input[type="color"] {
  width: 38px;
  height: 38px;
  border: 1px solid #d8d1c6;
  border-radius: 8px;
  background: #fff;
  padding: 3px;
}

.form-branding-card input:not([type="color"]) {
  min-width: 0;
  height: 38px;
  border: 1px solid #d8d1c6;
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
  color: #252528;
}

.form-branding-actions {
  display: grid;
  min-width: 132px;
}

.agency-brand-mark {
  display: grid;
  justify-items: center;
  gap: 7px;
  margin: 0 auto 22px;
  text-align: center;
}

.agency-brand-name {
  max-width: min(80ch, 100%);
  overflow: hidden;
  color: #252528;
  font: 700 0.9rem/1.25 var(--body);
  overflow-wrap: anywhere;
}

.agency-brand-lines {
  display: grid;
  width: 76px;
  gap: 3px;
}

.agency-brand-line {
  display: block;
  height: 2px;
  border-radius: 999px;
}

.agency-brand-line-primary {
  background: var(--agency-primary);
}

.agency-brand-line-accent {
  background: var(--agency-accent);
}

@media (max-width: 900px) {
  .form-branding-card {
    grid-template-columns: 1fr 1fr;
  }

  .form-branding-copy,
  .form-branding-name,
  .form-branding-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .form-branding-card {
    grid-template-columns: 1fr;
    padding: 15px;
  }

  .form-branding-color {
    grid-column: 1;
  }

  .agency-brand-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

* { box-sizing: border-box; }

html { background: #151515; }

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, transparent 0, transparent calc(25% - 1px), rgba(242, 248, 252, 0.07) calc(25% - 1px), rgba(242, 248, 252, 0.07) 25%, transparent 25%, transparent calc(50% - 1px), rgba(242, 248, 252, 0.07) calc(50% - 1px), rgba(242, 248, 252, 0.07) 50%, transparent 50%, transparent calc(75% - 1px), rgba(242, 248, 252, 0.07) calc(75% - 1px), rgba(242, 248, 252, 0.07) 75%, transparent 75%),
    linear-gradient(#151515, #151515);
  color: var(--ink);
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  z-index: 0;
}

body::before {
  opacity: 0.42;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(242, 248, 252, 0.18), transparent 1px),
    radial-gradient(circle at 71% 43%, rgba(242, 248, 252, 0.12), transparent 1px),
    radial-gradient(circle at 44% 79%, rgba(111, 156, 235, 0.14), transparent 1px);
  background-size: 13px 13px, 17px 17px, 23px 23px;
  mix-blend-mode: screen;
}

body::after {
  border-left: 1px solid rgba(242, 248, 252, 0.08);
  border-right: 1px solid rgba(242, 248, 252, 0.08);
  margin: 0 30px;
}

button,
input,
select,
textarea { font: inherit; }

button,
a { cursor: pointer; }

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  align-content: start;
  gap: 22px;
  height: 100vh;
  padding: 22px 16px;
  border-right: 1px solid rgba(214, 207, 196, 0.9);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(246, 243, 238, 0.94)),
    #f6f3ee;
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  margin: 0;
}

.sidebar .logo-container {
  color: #252528;
  font-size: 1.26rem;
  transform: none;
}

.sidebar .logo-dot,
.sidebar .logo-pill-dot {
  border-color: #252528;
}

.sidebar .logo-i-pill {
  border-color: #252528;
  background: #252528;
}

.logo-container {
  display: flex;
  align-items: flex-end;
  gap: 1px;
  font-family: 'Inter', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  line-height: 1;
  padding-bottom: 2px;
  transform: scale(1.15);
  transform-origin: left bottom;
  user-select: none;
}

.logo-text {
  text-transform: uppercase;
  line-height: 1;
  font-weight: 800;
}

.logo-symbol {
  position: relative;
  width: 28px;
  height: 24px;
  margin-left: -7px;
  margin-right: 0;
}

.logo-dot {
  width: 3.5px;
  height: 3.5px;
  background-color: var(--brand);
  border: 0.8px solid #ffffff;
  border-radius: 50%;
  box-sizing: border-box;
}

.logo-dot-level2 {
  position: absolute;
  bottom: 9.25px;
  left: 14.25px;
}

.logo-dot-level3-1 {
  position: absolute;
  bottom: 2.25px;
  left: 0.25px;
}

.logo-dot-level3-2 {
  position: absolute;
  bottom: 2.25px;
  left: 7.25px;
}

.logo-dot-level3-3 {
  position: absolute;
  bottom: 2.25px;
  left: 14.25px;
}

.logo-i-dot {
  width: 3.5px;
  height: 3.5px;
  background-color: currentColor;
  border: 0.8px solid currentColor;
  border-radius: 50%;
  box-sizing: border-box;
  position: absolute;
  bottom: 17.25px;
  left: 21.25px;
}

.logo-i-pill {
  width: 8px;
  height: 13px;
  border: 1px solid #ffffff;
  border-radius: 3px;
  background: rgba(10, 12, 12, 0.4);
  position: absolute;
  bottom: 2px;
  left: 19px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 1.5px 0;
  box-sizing: border-box;
}

.logo-pill-dot {
  width: 3.5px;
  height: 3.5px;
  background-color: var(--brand);
  border: 0.8px solid #ffffff;
  border-radius: 50%;
  box-sizing: border-box;
}

/* Sidebar Logo Responsive Adjustments */
.logo-sidebar {
  font-size: 1.3rem;
  padding-bottom: 0px;
}

.logo-sidebar .logo-symbol {
  width: 24px;
  height: 20px;
  margin-left: -5px;
  margin-right: 0;
}

.logo-sidebar .logo-dot {
  width: 2.8px;
  height: 2.8px;
}

.logo-sidebar .logo-dot-level2 {
  bottom: 8px;
  left: 12.5px;
}

.logo-sidebar .logo-dot-level3-1 {
  bottom: 2px;
  left: 0.25px;
}

.logo-sidebar .logo-dot-level3-2 {
  bottom: 2px;
  left: 6.4px;
}

.logo-sidebar .logo-dot-level3-3 {
  bottom: 2px;
  left: 12.5px;
}

.logo-sidebar .logo-i-dot {
  width: 2.8px;
  height: 2.8px;
  bottom: 14.5px;
  left: 18.4px;
}

.logo-sidebar .logo-i-pill {
  width: 6.8px;
  height: 11px;
  bottom: 1.7px;
  left: 16.5px;
  padding: 1px 0;
  border-radius: 2px;
  border-width: 0.8px;
}

.logo-sidebar .logo-pill-dot {
  width: 2.8px;
  height: 2.8px;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand h1 {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-list {
  display: grid;
  gap: 4px;
}

.nav-button {
  border: 0;
  border-radius: 12px;
  padding: 9px 10px;
  background: transparent;
  color: #3f3e3a;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
}

.nav-button:hover,
.nav-button.is-active {
  background: #ebe6dc;
  color: #252528;
}

.nav-button:focus-visible,
.primary-button:focus-visible,
.secondary-button:focus-visible {
  outline: 1px solid var(--brand);
  outline-offset: 4px;
}

.workspace {
  position: relative;
  min-width: 0;
  padding: 34px;
}

.workspace::before {
  display: none;
  margin: 0;
  color: transparent;
  content: "REFERRAL ENGINE";
  font-family: var(--body);
  font-size: 0;
  line-height: 0;
  text-transform: none;
}

.topbar,
.section-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
}

.topbar {
  min-height: 72px;
  margin-bottom: 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.topbar h2,
.surface h3,
.section-header h3,
.lead-page h3,
.mobile-flow h3,
.survey-complete h3 {
  margin: 3px 0 0;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topbar h2 {
  max-width: 940px;
  font-family: var(--body);
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  font-weight: 800;
  line-height: 1.1;
  text-transform: none;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.app-shell.is-light-workspace .workspace {
  color-scheme: light;
  background: linear-gradient(180deg, #fffefa 0, #fffefa 340px, #fbfaf7 100%);
  color: #252528;
}

.app-shell.is-light-workspace .topbar {
  min-height: 58px;
  margin-bottom: 24px;
  border-bottom: 1px solid #e8e3dc;
  background: rgba(255, 254, 251, 0.92);
  padding: 0 0 18px;
}

.app-shell.is-light-workspace .topbar h2 {
  color: #252528;
  font-size: clamp(1rem, 1.45vw, 1.25rem);
  font-weight: 760;
}

.app-shell.is-light-workspace .section-kicker {
  color: #6d8fea;
}

.app-shell.is-light-workspace .account-icon-button {
  border-color: #ded8cf;
  background: #fffdfa;
  color: #252528;
}

.app-shell.is-light-workspace .primary-button,
.app-shell.is-light-workspace .secondary-button {
  border: 1px solid #ded8cf;
  border-radius: 10px;
  background: #fffdfa;
  color: #252528;
  box-shadow: 0 1px 2px rgba(45, 38, 28, 0.04);
  text-transform: none;
}

.app-shell.is-light-workspace .primary-button {
  border-color: #5d7de6;
  background: #6d8fea;
  color: #081225;
}

.app-shell.is-light-workspace .secondary-button:hover,
.app-shell.is-light-workspace .secondary-button:focus-visible {
  border-color: #d8d1c6;
  background: #f7f4ee;
  color: #252528;
}

.app-shell.is-light-workspace .primary-button:hover,
.app-shell.is-light-workspace .primary-button:focus-visible {
  border-color: #4f6fda;
  background: #5f82e7;
  color: #081225;
}

.app-shell.is-light-workspace button:disabled {
  color: #625d56;
  opacity: 0.52;
}

.app-shell.is-light-workspace .surface,
.app-shell.is-light-workspace .builder-panel,
.app-shell.is-light-workspace .question-card,
.app-shell.is-light-workspace .results-panel,
.app-shell.is-light-workspace .response-detail,
.app-shell.is-light-workspace .answer-card,
.app-shell.is-light-workspace .response-list-item {
  border: 1px solid #e8e3dc;
  border-radius: 8px;
  background: #fffefa;
  color: #252528;
  box-shadow: 0 1px 2px rgba(45, 38, 28, 0.035);
}

.app-shell.is-light-workspace .surface::before,
.app-shell.is-light-workspace .question-card::before {
  display: none;
}

.app-shell.is-light-workspace .surface h3,
.app-shell.is-light-workspace .section-header h3 {
  color: #252528;
  font-family: var(--body);
  text-transform: none;
}

.app-shell.is-light-workspace .muted,
.app-shell.is-light-workspace .surface p,
.app-shell.is-light-workspace .toggle-row small,
.app-shell.is-light-workspace .response-list-meta small,
.app-shell.is-light-workspace .response-preview b,
.app-shell.is-light-workspace .answer-card-title small {
  color: #6f6c66;
}

.app-shell.is-light-workspace label {
  color: #6f6c66;
  font-weight: 720;
  text-transform: none;
}

.app-shell.is-light-workspace input:not([type="checkbox"]):not([type="radio"]),
.app-shell.is-light-workspace select,
.app-shell.is-light-workspace textarea {
  border: 1px solid #ded8cf;
  border-radius: 8px;
  background: #fffdfa;
  color: #252528;
  box-shadow: none;
}

.app-shell.is-light-workspace input::placeholder,
.app-shell.is-light-workspace textarea::placeholder {
  color: #8a8580;
}

.app-shell.is-light-workspace input:focus-visible,
.app-shell.is-light-workspace select:focus-visible,
.app-shell.is-light-workspace textarea:focus-visible {
  border-color: #6d8fea;
  outline: 2px solid rgba(109, 143, 234, 0.34);
}

.app-shell.is-light-workspace .toggle-row {
  border-top-color: #eee8df;
}

.app-shell.is-light-workspace .toggle-row input[type="checkbox"],
.app-shell.is-light-workspace .checkbox-row input[type="checkbox"] {
  accent-color: #6d8fea;
}

.app-shell.is-light-workspace .toggle-row strong {
  color: #252528;
  text-transform: none;
}

.app-shell.is-light-workspace .settings-status {
  border-color: #ded8cf;
  border-radius: 999px;
  background: #f7f4ee;
  color: #625d56;
  text-transform: none;
}

.app-shell.is-light-workspace .settings-status.is-on {
  border-color: #c9ead6;
  background: #eaf8ef;
  color: #3f7a57;
}

.app-shell.is-light-workspace .settings-status.is-off {
  border-color: #ead6c5;
  background: #fff4ea;
  color: #8f5f24;
}

.app-shell.is-light-workspace .response-list-item:hover,
.app-shell.is-light-workspace .response-list-item.is-active {
  border-color: #6d8fea;
  background: #f4f7ff;
}

.app-shell.is-light-workspace .response-preview span {
  color: #4f4b45;
}

.app-shell.is-light-workspace .answer-card p {
  color: #252528;
}

.app-shell.is-light-workspace .question-card-header strong {
  color: #6d8fea;
  font-family: var(--body);
  font-size: 1.35rem;
  font-weight: 780;
}

.app-shell.is-light-workspace .other-option-editor-row input[disabled],
.app-shell.is-light-workspace .question-answer-format input,
.app-shell.is-light-workspace .question-answer-format textarea {
  border-color: #ded8cf;
  background: #f7f4ee;
  color: #6f6c66;
}

.auth-panel,
.auth-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.account-badge {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.account-icon-button {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(7, 11, 13, 0.72);
  color: var(--ink);
}

.account-icon-button:hover,
.account-icon-button:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
  outline: none;
}

.account-icon-button svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.home-account-panel {
  min-height: 320px;
}

.account-home {
  --account-home-ink: #111114;
  --account-home-muted: #6f6c66;
  --account-home-page: #fbfaf7;
  --account-home-panel: #f1f0ed;
  --account-home-line: #ded8cf;
  --account-home-line-soft: #e9e4dc;
  --account-home-blue: #6f9ceb;
  --account-home-blue-dark: #4f78c7;
  --account-home-warn: #8f5f24;
  min-height: calc(100vh - 120px);
  margin: -24px;
  padding: clamp(46px, 7vh, 86px) clamp(22px, 5vw, 72px) 78px;
  background: var(--account-home-page);
  color: var(--account-home-ink);
}

.account-home-hero {
  display: grid;
  justify-items: center;
  gap: 28px;
  margin: 0 auto 54px;
  text-align: center;
}

.account-home-hero h1 {
  max-width: 1060px;
  margin: 0;
  color: #050609;
  font-size: clamp(3rem, 5.1vw, 6.15rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.12;
}

.agency-setup {
  margin: 0 auto 56px;
  max-width: 1180px;
}

.agency-setup-heading {
  margin-bottom: 18px;
}

.agency-setup-heading h2 {
  margin: 4px 0 0;
  color: var(--account-home-ink);
  font-size: clamp(1.5rem, 3vw, 2.35rem);
}

.agency-setup-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
}

.agency-setup-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--account-home-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(17, 17, 20, 0.06);
}

.agency-setup-card h3,
.agency-setup-card p {
  margin: 0;
}

.agency-setup-card label:not(.referral-toggle-row) {
  display: grid;
  gap: 7px;
  color: var(--account-home-ink);
  font-weight: 700;
}

.agency-setup-card input:not([type="checkbox"]),
.agency-setup-card textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--account-home-line);
  border-radius: 12px;
  background: #fbfaf7;
  color: var(--account-home-ink);
}

.agency-setup-card input[type="color"] {
  min-height: 46px;
  padding: 5px;
}

.agency-color-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.agency-color-control {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) 88px;
  gap: 8px;
}

.form-branding-card.agency-setup-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  align-items: stretch;
  margin: 0;
}

.form-branding-card.agency-setup-card .form-branding-copy,
.form-branding-card.agency-setup-card .form-branding-name,
.form-branding-card.agency-setup-card .form-branding-actions {
  grid-column: 1 / -1;
}

.form-branding-card.agency-setup-card .form-branding-color > span {
  grid-template-columns: minmax(70px, 1fr) 88px;
  gap: 8px;
}

.form-branding-card.agency-setup-card .form-branding-color input[type="color"] {
  width: 100%;
  height: 46px;
}

.agency-setup-card .agency-color-code {
  padding-inline: 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.referral-toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.referral-toggle-row input {
  width: 20px;
  height: 20px;
}

.referral-message-preview {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 14px;
  background: var(--account-home-panel);
}

.referral-message-preview > span {
  color: var(--account-home-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agency-setup-status {
  min-height: 1.35em;
  color: var(--account-home-blue-dark);
  font-weight: 700;
}

.account-step-bubble {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 1280px;
  margin: 0 auto;
  border-radius: 30px;
}

.account-step-card {
  position: relative;
  display: grid;
  min-height: 360px;
  overflow: visible;
  border: 1px solid rgba(222, 216, 207, 0.74);
  border-radius: 28px;
  background:
    radial-gradient(circle at 62% 52%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.15) 26%, transparent 47%),
    linear-gradient(180deg, #f5f4f1, var(--account-home-panel));
  padding: 30px;
  box-shadow: 0 12px 50px rgba(45, 38, 28, 0.05);
}

.account-step-card:first-child {
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
}

.account-step-card:last-child {
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
}

.account-step-kicker {
  display: block;
  margin-bottom: 12px;
  color: #3a3936;
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.account-step-title {
  max-width: 330px;
  margin: 0;
  color: #08090b;
  font-size: clamp(1.42rem, 1.7vw, 1.92rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.22;
}

.account-step-visual {
  position: relative;
  min-height: 132px;
  margin: 24px 0 18px;
}

.account-step-visual::before,
.account-step-visual::after {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  filter: blur(2px);
  content: "";
}

.account-step-visual::before {
  inset: 30px 36px auto 36px;
  height: 62px;
}

.account-step-visual::after {
  right: 56px;
  bottom: 6px;
  width: 136px;
  height: 12px;
}

.account-form-visual {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 0;
  height: 128px;
  border: 1px solid rgba(222, 216, 207, 0.74);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 42px rgba(45, 38, 28, 0.07);
}

.account-form-visual::before,
.account-form-visual::after {
  position: absolute;
  left: 34px;
  right: 34px;
  height: 10px;
  border-radius: 999px;
  background: #ecebe8;
  content: "";
}

.account-form-visual::before {
  bottom: 38px;
}

.account-form-visual::after {
  right: 76px;
  bottom: 20px;
}

.account-timing-visual {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 128px;
  height: 148px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: -18px 14px 0 rgba(255, 255, 255, 0.52), 0 22px 46px rgba(45, 38, 28, 0.08);
  transform: translateX(-50%) rotate(-8deg);
}

.account-timing-visual::before {
  position: absolute;
  top: 48px;
  left: 48px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--account-home-line);
  border-radius: 50%;
  background: #fffefa;
  color: var(--account-home-blue-dark);
  content: "✓";
  font-weight: 800;
}

.account-reward-visual {
  position: absolute;
  top: 46px;
  left: 50%;
  display: grid;
  gap: 8px;
  transform: translateX(-50%) rotate(-4deg);
}

.account-reward-tag {
  width: max-content;
  border-radius: 9px;
  background: #fff;
  padding: 10px 20px;
  box-shadow: 0 16px 34px rgba(45, 38, 28, 0.08);
  color: #141414;
  font-size: 0.92rem;
  font-weight: 500;
}

.account-reward-tag.main {
  justify-self: center;
  background: #050609;
  color: #fff;
}

.account-step-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.account-micro-pill {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  border: 1px solid var(--account-home-line-soft);
  border-radius: 999px;
  background: #fff;
  padding: 0 24px;
  color: #191919;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 12px 30px rgba(45, 38, 28, 0.045);
}

.account-expand-button {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--account-home-line-soft);
  border-radius: 50%;
  background: #ffffff;
  color: #171812;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 12px 30px rgba(45, 38, 28, 0.05);
}

.account-expand-button span {
  transition: transform 160ms ease;
}

.account-step-card.is-open .account-expand-button span {
  transform: rotate(45deg);
}

.account-between-button {
  position: absolute;
  top: 52%;
  right: -31px;
  z-index: 4;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 12px solid rgba(251, 250, 247, 0.76);
  border-radius: 50%;
  background: var(--account-home-blue);
  color: #fff;
  font-size: 1.2rem;
  transform: translateY(-50%);
}

.account-step-card:last-child .account-between-button {
  display: none;
}

.account-detail-panel {
  display: none;
  grid-column: 1 / -1;
  gap: 14px;
  margin-top: 18px;
  border: 1px solid var(--account-home-line-soft);
  border-radius: 20px;
  background: rgba(255, 254, 250, 0.82);
  padding: 16px;
}

.account-step-card.is-open .account-detail-panel {
  display: grid;
}

.account-detail-panel p {
  margin: 0;
  color: var(--account-home-muted);
  font-size: 0.96rem;
  line-height: 1.48;
}

.account-detail-panel strong {
  color: #171717;
  font-weight: 760;
}

.account-soon {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid #ead6c5;
  border-radius: 999px;
  background: #fff4ea;
  padding: 5px 10px;
  color: var(--account-home-warn);
  font-size: 0.72rem;
  font-weight: 760;
  text-transform: uppercase;
}

.account-thesis {
  max-width: 920px;
  margin: clamp(58px, 7vw, 96px) auto 0;
  border-top: 1px solid var(--account-home-line);
  padding-top: clamp(34px, 5vw, 58px);
}

.account-thesis h2 {
  margin: 0 0 22px;
  color: #050609;
  font-size: clamp(2rem, 3.2vw, 3.5rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.08;
}

.account-thesis p {
  margin: 0;
  color: var(--account-home-muted);
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  line-height: 1.72;
}

.account-thesis p + p {
  margin-top: 18px;
}

.account-thesis .account-thesis-lede {
  max-width: 760px;
  margin-bottom: 28px;
  color: #171717;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  font-weight: 500;
  line-height: 1.32;
}

@media (max-width: 1220px) {
  .account-step-bubble {
    grid-template-columns: 1fr;
    max-width: 680px;
  }

  .account-between-button {
    display: none;
  }
}

@media (max-width: 760px) {
  .agency-setup-grid,
  .agency-color-fields {
    grid-template-columns: 1fr;
  }

  .form-branding-card.agency-setup-card {
    grid-template-columns: 1fr;
  }

  .form-branding-card.agency-setup-card .form-branding-color {
    grid-column: 1;
  }

  .agency-setup-card {
    border-radius: 18px;
  }

  .account-home {
    margin: -18px;
    padding: 42px 14px 72px;
  }

  .account-home-hero {
    margin: 0 auto 34px;
  }

  .account-home-hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.6rem);
  }

  .account-step-card,
  .account-step-card:first-child,
  .account-step-card:last-child {
    min-height: 330px;
    border-radius: 24px;
    padding: 22px;
  }
}

.home-account-menu {
  position: relative;
  display: inline-flex;
}

.home-account-menu::after {
  position: absolute;
  top: 100%;
  right: 0;
  width: min(300px, calc(100vw - 48px));
  height: 14px;
  content: "";
}

.home-account-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  width: min(300px, calc(100vw - 48px));
  gap: 14px;
  border: 1px solid #ded8cf;
  border-radius: 8px;
  background: #fffefa;
  padding: 14px;
  color: #252528;
  box-shadow: 0 18px 36px rgba(45, 38, 28, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.home-account-menu:hover .home-account-popover,
.home-account-menu:focus-within .home-account-popover,
.home-account-menu.is-open .home-account-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.home-account-email {
  margin: 0;
  color: #4f4b45;
  font-size: 0.88rem;
  font-weight: 720;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.home-account-popover .secondary-button {
  justify-self: start;
}

.auth-required {
  overflow: hidden;
}

.auth-required .sidebar,
.auth-required .workspace > :not(.topbar),
.auth-required .topbar > div:first-child {
  visibility: hidden;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 20%, rgba(111, 156, 235, 0.16), transparent 34%),
    var(--bg);
}

.auth-card {
  width: min(100%, 520px);
  border: 1px solid var(--line-strong);
  background: rgba(10, 13, 18, 0.96);
  padding: 34px;
}

.auth-card h2,
.auth-title {
  margin: 6px 0 10px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 64px;
  font-weight: 400;
  line-height: 0.9;
  text-transform: uppercase;
}

.auth-card p {
  margin: 0 0 22px;
  color: var(--muted);
}

.google-auth-button {
  width: 100%;
  min-height: 52px;
  margin-bottom: 16px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}

.auth-card .auth-form {
  display: grid;
  gap: 14px;
  justify-content: stretch;
}

.auth-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-card .auth-form input {
  width: 100%;
  min-height: 52px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 22px 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.google-auth-panel {
  display: grid;
  margin-top: 22px;
}

.auth-tabs .tab,
.btn {
  min-height: 48px;
  border: 0;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.auth-tabs .tab.active,
.btn.primary {
  background: var(--brand);
  color: #01080f;
}

.btn.google {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.auth-message {
  display: none;
  margin: 18px 0 0;
  border: 1px solid var(--line);
  padding: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.auth-message.is-active {
  display: block;
}

.auth-status {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.auth-form input {
  width: 190px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font: inherit;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  padding: 0 15px;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.primary-button {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #01080f;
}

.secondary-button {
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.danger-button {
  border-color: rgba(215, 161, 95, 0.76);
  color: var(--warn);
}

.primary-button:hover,
.secondary-button:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #01080f;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.36;
}

.view { display: none; }
.view.is-active { display: block; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
}

.metric-card,
.surface,
.action-item,
.check-item {
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--panel);
  box-shadow: none;
}

.metric-card {
  min-height: 188px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(111, 156, 235, 0.08), transparent 45%),
    rgba(7, 11, 13, 0.82);
}

.metric-card span,
.action-item span,
.check-item span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin-top: 24px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 74px;
  font-weight: 400;
  line-height: 0.9;
}

.metric-card small,
.muted,
.timeline p,
.action-item p,
.check-item p,
.lead-page p {
  color: var(--muted);
}

.two-column,
.flow-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.76fr);
  gap: 18px;
}

.surface {
  position: relative;
  overflow: hidden;
  padding: 22px;
}

.coming-soon-panel {
  display: grid;
  min-height: 320px;
  align-content: center;
  gap: 12px;
}

.coming-soon-panel h3 {
  max-width: 760px;
}

.coming-soon-panel p {
  max-width: 560px;
}

.campaign-outreach-panel {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.campaign-outreach-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 14px;
}

.campaign-outreach-grid h4 {
  margin: 0 0 8px;
  color: #27282d;
  font-size: 0.95rem;
}

.campaign-outreach-grid p {
  margin: 0;
}

.campaign-plan-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(89, 96, 108, 0.16);
  border-radius: 8px;
  background: #ffffff;
}

.campaign-mini-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: #4d535f;
}

.campaign-message-section {
  display: grid;
  gap: 12px;
}

.campaign-message-section h4 {
  margin: 0;
  color: #27282d;
}

.campaign-template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 14px;
}

.message-template {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(89, 96, 108, 0.18);
  border-radius: 8px;
  background: #f8fafc;
  color: #27282d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.64);
}

.message-template strong {
  color: #27282d;
}

.surface::before,
.metric-card::before,
.question-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(242, 248, 252, 0.06) calc(50% - 1px), rgba(242, 248, 252, 0.06) 50%, transparent 50%),
    linear-gradient(transparent calc(50% - 1px), rgba(242, 248, 252, 0.04) calc(50% - 1px), rgba(242, 248, 252, 0.04) 50%, transparent 50%);
  content: "";
}

.section-header h3,
.surface h3 {
  font-size: 38px;
  line-height: 0.95;
}

.timeline {
  display: grid;
  gap: 0;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.timeline li {
  display: grid;
  grid-template-columns: 52px minmax(0, 0.36fr) minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  border-left: 0;
  padding: 13px 0;
}

.timeline li.complete span,
.timeline li.current span,
.flow-step,
.status-pill.ready,
.status-pill.sent,
.check-item.passed span { color: var(--brand); }

.timeline span,
.flow-step {
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline strong {
  display: block;
  color: var(--ink);
  text-transform: uppercase;
}

.timeline p { margin: 0; }

.action-list,
.check-list,
.form-stack,
.mobile-flow {
  display: grid;
  gap: 12px;
}

.action-list { margin-top: 20px; }

.action-item,
.check-item {
  padding: 16px;
  background: rgba(242, 248, 252, 0.035);
}

.action-item strong,
.check-item strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  text-transform: uppercase;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.full-row { grid-column: 1 / -1; }

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.checkbox-row {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 12px;
  background: rgba(1, 8, 15, 0.78);
  color: var(--ink);
}

input::placeholder,
textarea::placeholder { color: rgba(121, 121, 121, 0.74); }

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--brand);
  outline: 1px solid var(--brand);
  outline-offset: 2px;
}

textarea { resize: vertical; }

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 10px;
  color: var(--ink);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

td span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

tr.is-selected {
  background: rgba(111, 156, 235, 0.08);
}

.master-view {
  display: grid;
  gap: 18px;
}

.master-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.master-search {
  max-width: 520px;
}

.master-section {
  display: grid;
  gap: 12px;
}

.master-agency-layout {
  display: grid;
  gap: 24px;
}

.compact-header {
  margin-bottom: -4px;
}

.master-response-explorer {
  min-height: 460px;
}

.master-question-panel,
.master-question-list {
  display: grid;
  gap: 12px;
}

.table-link-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(111, 156, 235, 0.55);
  text-underline-offset: 4px;
}

.table-link-button:hover,
.table-link-button:focus-visible {
  color: var(--brand);
}

.expand-icon {
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid currentColor;
  transform: translateY(1px);
}

.expand-icon.is-open {
  transform: rotate(90deg) translateX(1px);
}

.response-list-meta strong {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.collapse-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.phone-frame {
  position: sticky;
  top: 120px;
  max-width: 430px;
  min-height: 680px;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  padding: 12px;
  background: #03070a;
}

.phone-screen {
  min-height: 654px;
  overflow: hidden;
  border: 1px solid rgba(242, 248, 252, 0.12);
  border-radius: 18px;
  padding: 22px;
  background:
    linear-gradient(90deg, transparent calc(33% - 1px), rgba(242, 248, 252, 0.11) calc(33% - 1px), rgba(242, 248, 252, 0.11) 33%, transparent 33%, transparent calc(66% - 1px), rgba(242, 248, 252, 0.11) calc(66% - 1px), rgba(242, 248, 252, 0.11) 66%, transparent 66%),
    radial-gradient(circle at 55% 42%, rgba(111, 156, 235, 0.2), transparent 22%),
    #01080f;
}

.phone-screen .sd-root-modern,
.customer-form .sd-root-modern {
  --sjs-primary-backcolor: var(--brand);
  --sjs-primary-backcolor-dark: var(--brand-dark);
  --sjs-primary-backcolor-light: rgba(111, 156, 235, 0.14);
  --sjs-primary-forecolor: #01080f;
  --sjs-general-backcolor: transparent;
  --sjs-general-backcolor-dim: transparent;
  --sjs-general-backcolor-dim-light: rgba(242, 248, 252, 0.04);
  --sjs-general-forecolor: var(--ink);
  --sjs-general-forecolor-light: rgba(242, 248, 252, 0.72);
  --sjs-border-default: rgba(242, 248, 252, 0.26);
  --sjs-font-family: var(--body);
  background: transparent;
  color: var(--ink);
}

.phone-screen .sd-container-modern,
.phone-screen .sd-root-modern,
.phone-screen .sd-header,
.phone-screen .sd-header__text,
.phone-screen .sd-body,
.phone-screen .sd-body__page,
.phone-screen .sd-page,
.phone-screen .sd-page__row,
.phone-screen .sd-row,
.phone-screen .sd-question,
.phone-screen .sd-question__content,
.phone-screen .sd-panel,
.phone-screen .sd-completedpage,
.customer-form .sd-container-modern,
.customer-form .sd-root-modern,
.customer-form .sd-header,
.customer-form .sd-header__text,
.customer-form .sd-body,
.customer-form .sd-body__page,
.customer-form .sd-page,
.customer-form .sd-page__row,
.customer-form .sd-row,
.customer-form .sd-question,
.customer-form .sd-question__content,
.customer-form .sd-panel,
.customer-form .sd-completedpage {
  background: transparent !important;
  box-shadow: none !important;
}

.phone-screen .sd-body,
.phone-screen .sd-page,
.customer-form .sd-body,
.customer-form .sd-page { padding: 0; }

.phone-screen .sd-title,
.customer-form .sd-title {
  color: var(--ink);
  font-family: var(--display);
  font-size: 46px;
  line-height: 0.92;
  text-transform: uppercase;
}

.phone-screen .sd-description,
.phone-screen .sd-question__description,
.phone-screen .sd-question__title,
.phone-screen .sd-element__title,
.phone-screen .sd-page__title,
.phone-screen .sd-dropdown__value,
.customer-form .sd-description,
.customer-form .sd-question__description,
.customer-form .sd-question__title,
.customer-form .sd-element__title,
.customer-form .sd-page__title,
.customer-form .sd-dropdown__value { color: rgba(242, 248, 252, 0.72) !important; }

.phone-screen .sd-question__required-text,
.customer-form .sd-question__required-text { color: var(--brand) !important; }

.phone-screen .sd-input,
.phone-screen .sd-dropdown,
.phone-screen .sd-comment,
.phone-screen .sd-selectbase__label,
.customer-form .sd-input,
.customer-form .sd-dropdown,
.customer-form .sd-comment,
.customer-form .sd-selectbase__label {
  border-radius: 0;
  background: rgba(1, 8, 15, 0.72);
  color: var(--ink) !important;
}

.phone-screen .sd-title,
.phone-screen .sd-completedpage h3,
.customer-form .sd-title,
.customer-form .sd-completedpage h3 {
  color: var(--ink) !important;
}

.respondent-form-shell {
  width: min(100%, 760px);
  margin: 0 auto;
}

.customer-form {
  min-height: 640px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(90deg, transparent calc(33% - 1px), rgba(242, 248, 252, 0.08) calc(33% - 1px), rgba(242, 248, 252, 0.08) 33%, transparent 33%, transparent calc(66% - 1px), rgba(242, 248, 252, 0.08) calc(66% - 1px), rgba(242, 248, 252, 0.08) 66%, transparent 66%),
    #01080f;
  padding: 30px;
}

.survey-complete {
  display: grid;
  min-height: 420px;
  align-content: center;
  gap: 12px;
}

.survey-complete h3 {
  margin: 0;
  font-size: 48px;
  line-height: 0.95;
}

.survey-complete p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.data-preview {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(242, 248, 252, 0.035);
}

.builder-stack,
.builder-panel,
.question-list,
.results-panel,
.form-tab-panel {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.form-workspace {
  position: relative;
  overflow: hidden;
  border: 1px solid #e8e3dc;
  border-radius: 8px;
  background: #fffefa;
  color: #252528;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(45, 38, 28, 0.035);
}

.form-workspace .section-header {
  align-items: flex-start;
  gap: 18px;
}

.form-workspace .section-header h3 {
  margin: 5px 0 0;
  color: #252528;
  font-family: var(--body);
  font-size: clamp(1.2rem, 1.65vw, 1.65rem);
  font-weight: 720;
  line-height: 1.1;
  text-transform: none;
}

.form-workspace .section-kicker {
  color: #6f6c66;
  font-size: 0.72rem;
  font-weight: 720;
  text-transform: none;
}

.form-workspace .primary-button,
.form-workspace .secondary-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 0.78rem;
  font-weight: 680;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: none;
}

.form-workspace .primary-button {
  border: 1px solid #5d7de6;
  background: #6d8fea;
  color: #081225;
  box-shadow: 0 1px 2px rgba(45, 38, 28, 0.04);
}

.form-workspace .secondary-button {
  border: 1px solid #e2ddd5;
  background: #fffdfa;
  color: #343330;
  box-shadow: 0 1px 2px rgba(45, 38, 28, 0.04);
}

.app-shell.is-light-workspace .form-workspace .discovery-create-button,
.form-workspace .discovery-create-button {
  border-color: #4f78c7;
  background: #6f9ceb;
  color: #081225;
}

.form-workspace .primary-button:hover,
.form-workspace .secondary-button:hover {
  border-color: #d8d1c6;
  background: #ebe6dc;
  color: #252528;
}

.app-shell.is-light-workspace .form-workspace .discovery-create-button:hover,
.app-shell.is-light-workspace .form-workspace .discovery-create-button:focus-visible,
.form-workspace .discovery-create-button:hover,
.form-workspace .discovery-create-button:focus-visible {
  border-color: #3f66b0;
  background: #5f8dde;
  color: #081225;
}

.app-shell.is-light-workspace .form-workspace .discovery-create-button:disabled,
.form-workspace .discovery-create-button:disabled {
  border-color: #9eb6e6;
  background: #b9cef6;
  color: #394760;
}

.form-tabs {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0;
  margin-top: 22px;
  border-bottom: 1px solid #e8e3dc;
}

.form-tab {
  display: inline-flex;
  position: relative;
  z-index: 3;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  pointer-events: auto;
  padding: 13px 18px;
  background: transparent;
  color: #76746f;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.form-tab:hover,
.form-tab.is-active {
  border-color: var(--brand);
  color: #252528;
}

.builder-panel,
.question-card,
.results-panel {
  position: relative;
  padding: 14px;
  border: 1px solid #e8e3dc;
  border-radius: 8px;
  background: #fffefa;
}

.settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-grid .builder-panel:last-child {
  grid-column: 1 / -1;
}

.forms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.discovery-table-panel {
  overflow: auto;
  border: 1px solid #e8e3dc;
  border-radius: 8px;
  background: #fffefa;
}

.discovery-table {
  min-width: 860px;
}

.discovery-table-row {
  display: grid;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid #f0ebe4;
}

.discovery-table-row:last-child {
  border-bottom: 0;
}

.discovery-table-row > * {
  min-width: 0;
  padding: 6px 12px;
}

.discovery-row-selector {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.discovery-row-checkbox {
  appearance: none;
  display: block;
  width: 18px;
  height: 18px;
  border: 1px solid #ded8cf;
  border-radius: 7px;
  background: #fffdfa;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.discovery-row-checkbox:checked {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: inset 0 0 0 4px #fffdfa;
}

.discovery-row-checkbox:focus-visible {
  outline: 3px solid rgba(96, 111, 255, 0.22);
  outline-offset: 2px;
}

.discovery-table-head {
  min-height: 48px;
  background: #fffefa;
}

.discovery-table-head strong {
  color: #252528;
  font-size: 0.76rem;
  font-weight: 820;
  text-transform: none;
}

.discovery-form-table .discovery-table-row {
  grid-template-columns: 42px minmax(250px, 1fr) 190px 112px 112px minmax(260px, 0.72fr);
}

.discovery-form-table .settings-status {
  min-height: 22px;
  width: fit-content;
  border-color: #c9ead6;
  border-radius: 999px;
  background: #eaf8ef;
  color: #3f7a57;
  padding: 0 8px;
  font-size: 0.68rem;
  font-weight: 720;
  text-transform: none;
}

.discovery-form-table .settings-status.is-off {
  border-color: #d9e5fb;
  background: #eef4ff;
  color: #4268a6;
}

.discovery-table-row strong {
  overflow: hidden;
  color: #252528;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discovery-table-row small {
  overflow: hidden;
  color: #76746f;
  font-size: 0.76rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discovery-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.discovery-table-row.is-active {
  background: #fbf8f2;
}

.discovery-table-actions .primary-button,
.discovery-table-actions .secondary-button {
  border-color: #e2ddd5;
  min-height: 34px;
  padding: 0 12px;
  background: #fffdfa;
  color: #252528;
  font-size: 0.74rem;
  box-shadow: 0 1px 1px rgba(45, 38, 28, 0.03);
}

.discovery-table-actions .danger-button {
  color: #8f5f24;
}

.discovery-table-actions .discovery-delete-button {
  border-color: transparent;
  background: transparent;
  color: #7b746b;
  opacity: 0.68;
  box-shadow: none;
}

.discovery-table-actions .primary-button:hover,
.discovery-table-actions .secondary-button:hover {
  border-color: #d8d1c6;
  background: #ebe6dc;
  color: #252528;
}

.discovery-response-count {
  display: inline-flex;
  min-width: 22px;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-color: transparent;
  border-radius: 7px;
  background: transparent;
  color: #5f5b55;
  padding: 0 5px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
}

.discovery-response-count:hover,
.discovery-response-count:focus-visible {
  border-color: #d8d1c6;
  background: #f4f0e8;
  color: #252528;
}

.form-card {
  display: grid;
  gap: 14px;
  align-content: space-between;
  min-height: 230px;
  border: 1px solid var(--line);
  background: rgba(242, 248, 252, 0.035);
  padding: 14px;
}

.form-card.is-active {
  border-color: var(--brand);
  background: rgba(111, 156, 235, 0.10);
}

.form-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
}

.form-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.form-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.form-card-meta span {
  border: 1px solid var(--line);
  padding: 6px 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.settings-status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.settings-status {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid var(--line-strong);
  padding: 0 10px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.settings-status.is-on {
  border-color: rgba(144, 215, 175, 0.58);
  color: var(--good);
}

.settings-status.is-off {
  border-color: rgba(215, 161, 95, 0.58);
  color: var(--warn);
}

.response-actions {
  display: flex;
  justify-content: flex-end;
}

.response-explorer {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 14px;
  min-height: 560px;
}

.response-list {
  display: grid;
  align-content: start;
  gap: 10px;
  max-height: 680px;
  overflow: auto;
  padding-right: 4px;
}

.response-list-item {
  display: grid;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 12px;
  background: rgba(242, 248, 252, 0.035);
  color: var(--ink);
  text-align: left;
}

.response-list-item:hover,
.response-list-item.is-active {
  border-color: var(--brand);
  background: rgba(111, 156, 235, 0.12);
}

.response-list-meta,
.response-preview,
.answer-stack {
  display: grid;
  gap: 8px;
}

.response-list-meta strong {
  font-size: 0.9rem;
}

.response-list-meta small,
.response-preview b,
.answer-card-title small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.response-preview span {
  display: grid;
  gap: 3px;
  color: rgba(242, 248, 252, 0.76);
  font-size: 0.86rem;
  line-height: 1.35;
}

.response-detail {
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(242, 248, 252, 0.035);
  padding: 14px;
}

.response-detail-header {
  display: flex;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.response-detail-header h4 {
  margin: 0;
  font-size: 1rem;
}

.answer-stack {
  margin-top: 14px;
}

.answer-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(2, 8, 15, 0.24);
  padding: 14px;
}

.answer-card-title {
  display: flex;
  gap: 9px;
  align-items: baseline;
}

.answer-card-title small {
  color: var(--brand);
}

.answer-card p {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.toggle-row {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  text-transform: none;
}

.toggle-row:first-of-type {
  margin-top: 12px;
}

.toggle-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.toggle-row strong {
  display: block;
  color: var(--ink);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.toggle-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.share-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.builder-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.45fr);
  gap: 12px;
}

.add-question-collapsed {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-top: 18px;
}

.add-question-action {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.add-question-feedback {
  color: var(--good);
  font-size: 0.9rem;
  font-weight: 700;
}

.success-message {
  margin: 14px 0 0;
  border: 1px solid color-mix(in srgb, var(--good) 45%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--good) 10%, transparent);
  color: var(--good);
  padding: 12px 14px;
  font-size: 0.92rem;
  font-weight: 700;
}

.form-save-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.agency-discovery-response-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.form-workspace .discovery-fill-button {
  min-height: 42px;
  border-color: #4f78c7;
  background: #6f9ceb;
  color: #081225;
}

.respondent-form-shell:not(.is-hidden) {
  display: block;
}

body:not(.respondent-mode) .respondent-form-shell {
  max-width: 860px;
}

body:not(.respondent-mode) .customer-form {
  padding: 20px;
  border: 1px solid #e8e3dc;
  border-radius: 8px;
  background: #fffefa;
  color: #252528;
}

body:not(.respondent-mode) .customer-form .mobile-flow {
  max-width: none;
}

body:not(.respondent-mode) .customer-form .respondent-survey-header h3,
body:not(.respondent-mode) .customer-form .respondent-question-title span {
  color: #252528;
}

body:not(.respondent-mode) .customer-form .respondent-survey-header p,
body:not(.respondent-mode) .customer-form label,
body:not(.respondent-mode) .customer-form .respondent-question-title small {
  color: #6f6c66;
}

.agency-discovery-response-error {
  margin: 0 0 12px;
}

.settings-grid .form-save-footer {
  grid-column: 1 / -1;
}

.question-card {
  display: grid;
  gap: 12px;
}

.question-options-editor,
.question-answer-format {
  display: grid;
  gap: 10px;
}

.question-answer-format span,
.options-header,
.option-editor-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.question-answer-format span,
.options-header {
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.option-editor-list {
  display: grid;
  gap: 9px;
}

.option-editor-row input {
  min-width: 0;
}

.other-option-editor-row input[readonly] {
  flex: 0 0 112px;
}

.other-option-editor-row input[disabled] {
  border-style: dashed;
  color: rgba(242, 248, 252, 0.62);
  cursor: default;
}

.question-answer-format input,
.question-answer-format textarea {
  border-style: dashed;
  color: rgba(242, 248, 252, 0.62);
  cursor: default;
}

.option-indicator {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border: 2px solid var(--brand);
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 900;
}

.radio-option .option-indicator {
  border-radius: 999px;
}

.checkbox-option .option-indicator {
  border-radius: 4px;
}


.question-card-header,
.question-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.question-card-header strong {
  color: var(--brand);
  font-family: var(--display);
  font-size: 28px;
  font-weight: 400;
}

.question-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.icon-button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.72rem;
}

.compact-checkbox {
  align-content: end;
  padding-bottom: 11px;
}

.is-hidden { display: none; }

.compact-table th,
.compact-table td {
  min-width: 120px;
  padding: 10px 8px;
  font-size: 0.82rem;
}

dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

dl div {
  display: grid;
  gap: 3px;
}

dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

dd { margin: 0; }

.lead-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: center;
  min-height: 600px;
  padding: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background:
    linear-gradient(90deg, transparent calc(25% - 1px), rgba(242, 248, 252, 0.1) calc(25% - 1px), rgba(242, 248, 252, 0.1) 25%, transparent 25%, transparent calc(50% - 1px), rgba(242, 248, 252, 0.1) calc(50% - 1px), rgba(242, 248, 252, 0.1) 50%, transparent 50%, transparent calc(75% - 1px), rgba(242, 248, 252, 0.1) calc(75% - 1px), rgba(242, 248, 252, 0.1) 75%, transparent 75%),
    #01080f;
  color: var(--ink);
}

.lead-page h3 {
  max-width: 760px;
  font-size: 92px;
  line-height: 0.86;
}

.lead-page p {
  max-width: 620px;
  font-size: 1rem;
}

.lead-proof {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(242, 248, 252, 0.04);
}

.status-pill {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 5px 8px;
  background: transparent;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-pill.locked { color: var(--muted); }
.status-pill.pending,
.check-item.failed span { color: var(--warn); }

.respondent-mode .sidebar,
.respondent-mode .topbar,
.respondent-mode .workspace::before { display: none; }

.respondent-mode .app-shell {
  display: block;
  min-height: 100vh;
}

.respondent-mode .view[data-panel="discovery"] {
  display: block;
}

.respondent-mode .respondent-form-shell {
  width: 100%;
  max-width: none;
  margin: 0;
}

.respondent-mode {
  color-scheme: light;
  --respondent-ink: #1d1d1f;
  --respondent-muted: #424245;
  --respondent-tertiary: #6e6e73;
  --respondent-border: #d2d2d7;
  --respondent-surface: #fbfbfd;
  --respondent-surface-secondary: #f5f5f7;
  --respondent-link: #0066cc;
  --respondent-link-hover: #004f9f;
  --respondent-error: #b42318;
  --respondent-error-surface: #fff2f2;
}

.respondent-mode,
.respondent-mode html {
  background: var(--respondent-surface);
}

.respondent-mode::before,
.respondent-mode::after {
  display: none;
}

.respondent-mode .workspace {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.respondent-mode .customer-form {
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--respondent-ink);
  padding: 0;
  box-shadow: none;
  backdrop-filter: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

.respondent-mode .customer-form .mobile-flow {
  gap: 0;
}

.respondent-mode .customer-form .respondent-survey-header {
  position: relative;
  width: 100%;
  min-height: min(760px, calc(100vh - 44px));
  display: grid;
  grid-template-rows: auto auto 1fr;
  justify-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 72%, rgba(120, 120, 124, 0.34), transparent 34%),
    linear-gradient(180deg, #000000 0%, #161617 62%, #fbfbfd 62%, #fbfbfd 100%);
  padding: clamp(34px, 4vw, 54px) 22px 0;
  text-align: center;
}

.respondent-mode .customer-form .respondent-survey-header > .agency-brand-mark {
  position: relative;
  z-index: 2;
  width: min(560px, 78vw);
  min-height: 138px;
  align-content: center;
  gap: 12px;
  margin: 0 auto 22px;
  border: 1px solid rgba(245, 245, 247, 0.2);
  border-radius: 999px;
  background: rgba(245, 245, 247, 0.09);
  padding: 24px 52px;
  color: #fff;
  backdrop-filter: blur(20px);
}

.respondent-mode .customer-form .respondent-survey-header > .agency-brand-mark .agency-brand-name {
  max-width: 100%;
  color: inherit;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.08;
}

.respondent-mode .customer-form .respondent-survey-header > .agency-brand-mark .agency-brand-lines {
  width: min(360px, 100%);
  gap: 5px;
}

.respondent-mode .customer-form .respondent-survey-header > .agency-brand-mark .agency-brand-line {
  height: 3px;
}

.respondent-mode .customer-form .respondent-survey-header > .agency-brand-mark.is-light-surface {
  border-color: rgba(29, 29, 31, 0.12);
  background: #fbfbfd;
  color: #1d1d1f;
}

.respondent-mode .customer-form .respondent-survey-header > .agency-brand-mark.is-light-surface .agency-brand-line {
  box-shadow: 0 0 0 1px rgba(29, 29, 31, 0.18);
}

.respondent-mode .customer-form .respondent-hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 820px;
  color: #f5f5f7;
}

.respondent-mode .customer-form .respondent-hero-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.respondent-mode .customer-form .respondent-time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border: 1px solid rgba(245, 245, 247, 0.22);
  border-radius: 999px;
  background: rgba(245, 245, 247, 0.12);
  padding: 6px 11px;
  color: rgba(245, 245, 247, 0.72);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.respondent-mode .customer-form .respondent-product-stage {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  min-height: 330px;
  align-self: end;
  display: grid;
  place-items: center;
  margin-top: clamp(28px, 5vw, 54px);
}

.respondent-mode .customer-form .respondent-product-stage::before,
.respondent-mode .customer-form .respondent-product-stage::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.respondent-mode .customer-form .respondent-product-stage::before {
  width: min(680px, 90vw);
  height: min(680px, 90vw);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.9), rgba(235, 238, 242, 0.36) 26%, rgba(245, 245, 247, 0) 58%),
    radial-gradient(circle at 58% 58%, rgba(41, 151, 255, 0.22), transparent 42%);
  filter: blur(0.2px);
}

.respondent-mode .customer-form .respondent-product-stage::after {
  bottom: 28px;
  width: min(560px, 76vw);
  height: 34px;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.16);
  filter: blur(18px);
}

.respondent-mode .customer-form .respondent-product-device {
  position: relative;
  z-index: 1;
  width: min(420px, 78vw);
  min-height: 246px;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 245, 247, 0.82)),
    #ffffff;
  padding: 32px 28px;
  color: var(--respondent-ink);
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.respondent-mode .customer-form .respondent-product-device span {
  width: 52px;
  height: 5px;
  border-radius: 999px;
  background: #d2d2d7;
}

.respondent-mode .customer-form .respondent-product-device strong {
  margin-top: 36px;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 600;
  line-height: 1.05;
}

.respondent-mode .customer-form .respondent-product-device small {
  color: var(--respondent-tertiary);
  font-size: 17px;
  line-height: 1.25;
}

.respondent-mode .customer-form .respondent-product-device i {
  width: min(230px, 60%);
  height: 9px;
  margin-top: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0066cc 0 var(--respondent-progress, 20%), #d2d2d7 var(--respondent-progress, 20%) 100%);
}

.respondent-mode .customer-form .respondent-form-panel {
  width: min(100% - 44px, 920px);
  display: grid;
  gap: clamp(28px, 4vw, 52px);
  margin: 0 auto;
  padding: clamp(54px, 7vw, 96px) 0 clamp(42px, 7vw, 86px);
}

.respondent-mode .customer-form .respondent-question-list {
  display: grid;
  gap: 0;
  border-top: 0;
  border-bottom: 0;
}

.respondent-mode .customer-form .respondent-question {
  display: grid;
  gap: clamp(22px, 3.2vw, 34px);
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: clamp(42px, 6vw, 76px) 0;
  box-shadow: none;
}

.respondent-mode .customer-form .respondent-wizard .respondent-question {
  display: none;
}

.respondent-mode .customer-form .respondent-wizard .respondent-question.is-active {
  display: grid;
}

.respondent-mode .customer-form .respondent-question + .respondent-question {
  border-top: 1px solid #d7d7dc;
}

.respondent-mode .customer-form .respondent-question.has-error {
  border-color: var(--respondent-error);
  background: linear-gradient(90deg, var(--respondent-error-surface), transparent 52%);
  box-shadow: inset 3px 0 0 var(--respondent-error);
}

.field-error {
  margin: 0;
  color: var(--respondent-error);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.respondent-mode .customer-form .respondent-question-title,
.respondent-mode .customer-form .respondent-question > label > span {
  display: flex;
  gap: 12px;
  align-items: baseline;
  color: var(--respondent-ink);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.08;
}

.respondent-mode .customer-form .respondent-question-title small,
.respondent-mode .customer-form .respondent-question > label > span small {
  color: var(--respondent-tertiary);
  font-size: 15px;
  font-weight: 600;
}

.respondent-mode .customer-form .respondent-question em {
  color: var(--respondent-link);
  font-style: normal;
}

.respondent-mode .customer-form .respondent-required-note {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.respondent-mode .customer-form .respondent-choice-list {
  display: grid;
  gap: 16px;
}

.respondent-mode .customer-form .respondent-choice {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 70px;
  border: 2px solid #8e8e93;
  border-radius: 16px;
  background: #ffffff;
  padding: 15px 24px;
  color: var(--respondent-ink);
  font-size: clamp(18px, 2.1vw, 23px);
  font-weight: 600;
  line-height: 1.18;
  text-transform: none;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.respondent-mode .customer-form .respondent-choice {
  font-size: clamp(18px, 2.1vw, 23px);
  font-weight: 600;
  line-height: 1.18;
}

.respondent-mode .customer-form .respondent-checkbox-choice {
  grid-template-columns: 24px minmax(0, 1fr);
}

.respondent-mode .customer-form .respondent-choice:hover {
  border-color: #6e6e73;
  background: #ffffff;
  box-shadow: none;
}

.respondent-mode .customer-form .respondent-choice:has(input:checked) {
  border-color: #1d1d1f;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #1d1d1f;
}

.respondent-mode .customer-form .respondent-choice > input[type="radio"],
.respondent-mode .customer-form .respondent-choice > input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--respondent-link);
  box-shadow: none;
}

.respondent-mode .customer-form .respondent-choice:not(.respondent-checkbox-choice) > input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.respondent-mode .customer-form .respondent-other-choice {
  align-items: start;
}

.respondent-mode .customer-form .respondent-other-choice textarea {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 96px;
  max-height: 260px;
  overflow: auto;
  resize: vertical;
  field-sizing: content;
  color: var(--respondent-ink);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.4;
  text-transform: none;
}

.respondent-mode .customer-form .respondent-question-title small {
  display: block;
  margin-top: 8px;
  color: rgba(29, 29, 31, 0.62);
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 600;
  line-height: 1.35;
}

.respondent-mode .customer-form .ranked-reward-choice {
  display: grid;
  gap: 18px;
}

.respondent-mode .customer-form .ranked-reward-selected-values {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.respondent-mode .customer-form .ranked-reward-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.respondent-mode .customer-form .ranked-reward-card {
  position: relative;
  display: block;
  min-width: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid rgba(29, 29, 31, 0.12);
  border-radius: 24px;
  background: #f5f5f7;
  padding: 0;
  color: var(--respondent-ink);
  cursor: pointer;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.11);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.respondent-mode .customer-form .ranked-reward-card:hover,
.respondent-mode .customer-form .ranked-reward-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(0, 113, 227, 0.54);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.16);
}

.respondent-mode .customer-form .ranked-reward-card:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.28);
  outline-offset: 4px;
}

.respondent-mode .customer-form .ranked-reward-card.is-selected {
  border-color: #0071e3;
  box-shadow:
    0 22px 52px rgba(0, 113, 227, 0.18),
    inset 0 0 0 2px rgba(255, 255, 255, 0.82);
}

.respondent-mode .customer-form .ranked-reward-card.rank-pulse {
  animation: rankedRewardPulse 0.26s ease-out;
}

.respondent-mode .customer-form .ranked-reward-photo {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.22)),
    var(--reward-image);
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
  transition: transform 0.24s ease, filter 0.24s ease;
}

.respondent-mode .customer-form .ranked-reward-card:hover .ranked-reward-photo,
.respondent-mode .customer-form .ranked-reward-card:focus-visible .ranked-reward-photo,
.respondent-mode .customer-form .ranked-reward-card.is-selected .ranked-reward-photo {
  transform: scale(1.045);
}

.respondent-mode .customer-form .ranked-reward-card.is-selected .ranked-reward-photo {
  filter: saturate(1.06) contrast(1.03);
}

.respondent-mode .customer-form .ranked-reward-label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: grid;
  gap: 3px;
  min-height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  padding: 11px 13px;
  text-align: left;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px) saturate(1.22);
}

.respondent-mode .customer-form .ranked-reward-title {
  overflow-wrap: anywhere;
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
}

.respondent-mode .customer-form .ranked-reward-detail {
  color: rgba(29, 29, 31, 0.72);
  font-size: clamp(12px, 1.2vw, 14px);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: 0;
}

.respondent-mode .customer-form .ranked-reward-rank {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  background: rgba(0, 113, 227, 0.92);
  color: #ffffff;
  font-size: 20px;
  font-weight: 850;
  box-shadow: 0 12px 28px rgba(0, 80, 160, 0.28);
  backdrop-filter: blur(14px);
}

.respondent-mode .customer-form .ranked-reward-other-field {
  display: grid;
  gap: 10px;
}

.respondent-mode .customer-form .ranked-reward-other-field[hidden] {
  display: none;
}

.respondent-mode .customer-form .ranked-reward-other-field span {
  color: rgba(29, 29, 31, 0.68);
  font-size: 14px;
  font-weight: 750;
}

.respondent-mode .customer-form .ranked-reward-other-field textarea {
  width: 100%;
  min-height: 104px;
}

@keyframes rankedRewardPulse {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.018);
  }
  100% {
    transform: scale(1);
  }
}

.respondent-mode .customer-form .flow-step {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  border-radius: 999px;
  background: rgba(245, 245, 247, 0.12);
  padding: 6px 11px;
  color: rgba(245, 245, 247, 0.72);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

.respondent-mode .customer-form h3,
.respondent-mode .customer-form .mobile-flow h3,
.respondent-mode .customer-form .survey-complete h3 {
  color: #f5f5f7;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  max-width: 820px;
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: 0;
  text-transform: none;
}

.respondent-mode .customer-form .survey-complete h3 {
  color: var(--respondent-ink);
}

.respondent-mode .customer-form .survey-complete p {
  color: var(--respondent-muted);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.35;
}

.respondent-mode .customer-form .discovery-referral-complete {
  width: min(100% - 44px, 760px);
  min-height: min(720px, 100vh);
  justify-items: center;
  margin: 0 auto;
  padding: clamp(72px, 11vw, 132px) 0;
  text-align: center;
}

.respondent-mode .customer-form .discovery-referral-complete .flow-step {
  border: 1px solid var(--respondent-border);
  background: #ffffff;
  color: var(--respondent-tertiary);
}

.respondent-mode .customer-form .discovery-referral-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 0.42fr);
  gap: 14px;
  width: min(100%, 560px);
  margin-top: 22px;
}

.respondent-mode .customer-form .discovery-referral-actions .primary-button,
.respondent-mode .customer-form .discovery-referral-actions .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border-radius: 999px;
  padding: 0 24px;
  font-size: clamp(18px, 2.2vw, 23px);
  font-weight: 500;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: none;
}

.respondent-mode .customer-form .discovery-referral-status {
  min-height: 1.35em;
  margin: 2px 0 0;
  font-size: 16px;
}

.respondent-mode .customer-form .discovery-referral-introduction {
  display: grid;
  gap: 8px;
  width: min(100%, 560px);
  text-align: left;
}

.respondent-mode .customer-form .discovery-referral-introduction span {
  font-size: 16px;
  font-weight: 600;
}

.respondent-mode .customer-form .discovery-referral-introduction textarea {
  min-height: 120px;
  resize: vertical;
}

.respondent-mode .customer-form .discovery-referral-actions .secondary-button {
  border: 2px solid #8e8e93;
  background: #ffffff;
  color: var(--respondent-ink);
  box-shadow: none;
}

.respondent-mode .customer-form p,
.respondent-mode .customer-form .muted {
  color: rgba(245, 245, 247, 0.78);
  max-width: 720px;
  font-size: clamp(21px, 2.3vw, 28px);
  font-weight: 400;
  line-height: 1.18;
}

.respondent-mode .customer-form label {
  color: var(--respondent-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.35;
  text-transform: none;
}

.respondent-mode .customer-form input,
.respondent-mode .customer-form select,
.respondent-mode .customer-form textarea {
  min-height: 58px;
  border: 2px solid #8e8e93;
  border-radius: 16px;
  background: #ffffff;
  color: var(--respondent-ink);
  padding: 13px 20px;
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.22;
  box-shadow: none;
}

.respondent-mode .customer-form input,
.respondent-mode .customer-form select {
  height: 58px;
}

.respondent-mode .customer-form .respondent-question textarea:not([data-other-answer]) {
  height: 118px !important;
  min-height: 118px !important;
}

body.respondent-mode .app-shell.is-light-workspace .customer-form input:not([type="checkbox"]):not([type="radio"]),
body.respondent-mode .app-shell.is-light-workspace .customer-form select,
body.respondent-mode .app-shell.is-light-workspace .customer-form textarea {
  border: 2px solid #8e8e93;
  border-radius: 16px;
  background: #ffffff;
  color: var(--respondent-ink);
  box-shadow: none;
}

.respondent-mode .customer-form input:focus-visible,
.respondent-mode .customer-form select:focus-visible,
.respondent-mode .customer-form textarea:focus-visible {
  border-color: #ffcc00;
  outline: 0;
  outline-offset: 1px;
  background: #ffffff;
}

body.respondent-mode .app-shell.is-light-workspace .customer-form input:not([type="checkbox"]):not([type="radio"]):focus-visible,
body.respondent-mode .app-shell.is-light-workspace .customer-form select:focus-visible,
body.respondent-mode .app-shell.is-light-workspace .customer-form textarea:focus-visible {
  border-color: #ffcc00;
  outline: 0;
  box-shadow: none;
}

.respondent-mode .customer-form .respondent-privacy-note {
  border-top: 1px solid #d7d7dc;
  border-radius: 0;
  background: transparent;
  padding: 34px 0 0;
  color: var(--respondent-tertiary) !important;
  font-size: clamp(18px, 2.5vw, 24px) !important;
  font-weight: 400;
  line-height: 1.28 !important;
}

.respondent-mode .customer-form .primary-button {
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  background: var(--respondent-link);
  color: #ffffff;
  font-size: clamp(18px, 2.2vw, 23px);
  font-weight: 500;
  justify-self: center;
  width: min(100%, 780px);
  text-transform: none;
  box-shadow: none;
}

.respondent-mode .customer-form .respondent-wizard-controls {
  display: grid;
  grid-template-columns: minmax(0, 0.44fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: min(100%, 780px);
  margin: 0 auto;
}

.respondent-mode .customer-form .respondent-wizard-controls [hidden],
.respondent-mode .customer-form .respondent-privacy-note[hidden] {
  display: none !important;
}

.respondent-mode .customer-form .respondent-wizard-controls .secondary-button {
  min-height: 56px;
  border: 2px solid #8e8e93;
  border-radius: 999px;
  background: #ffffff;
  color: var(--respondent-ink);
  font-size: clamp(18px, 2.2vw, 23px);
  font-weight: 500;
  box-shadow: none;
}

.respondent-mode .customer-form .respondent-wizard-controls .primary-button {
  width: 100%;
}

.respondent-mode .customer-form .respondent-wizard-controls .respondent-back-button[hidden] + .respondent-next-button,
.respondent-mode .customer-form .respondent-wizard-controls .respondent-back-button[hidden] ~ .respondent-submit-button {
  grid-column: 1 / -1;
}

.respondent-mode .customer-form .primary-button:hover {
  background: var(--respondent-link-hover);
  color: #ffffff;
}

.respondent-mode .customer-form .sd-root-modern {
  --sjs-general-backcolor: #ffffff;
  --sjs-general-backcolor-dim: #ffffff;
  --sjs-general-backcolor-dim-light: #f6f8fc;
  --sjs-general-forecolor: #111827;
  --sjs-general-forecolor-light: #4b5563;
  --sjs-primary-backcolor: var(--brand);
  --sjs-primary-backcolor-dark: var(--brand-dark);
  --sjs-primary-forecolor: #06111f;
  --sjs-border-default: rgba(15, 23, 42, 0.22);
  color: #111827;
}

.respondent-mode .customer-form .sd-title,
.respondent-mode .customer-form .sd-page__title,
.respondent-mode .customer-form .sd-question__title,
.respondent-mode .customer-form .sd-element__title,
.respondent-mode .customer-form .sd-dropdown__value,
.respondent-mode .customer-form .sd-input,
.respondent-mode .customer-form .sd-comment {
  color: #111827 !important;
}

.respondent-mode .customer-form .sd-title {
  font-family: var(--body);
  font-size: 42px;
  font-weight: 900;
  line-height: 1.05;
  text-transform: none;
}

.respondent-mode .customer-form .sd-description,
.respondent-mode .customer-form .sd-question__description {
  color: #4b5563 !important;
}

.respondent-mode .customer-form .sd-input,
.respondent-mode .customer-form .sd-dropdown,
.respondent-mode .customer-form .sd-comment,
.respondent-mode .customer-form .sd-selectbase__label {
  border: 2px solid #9aa4b2 !important;
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12) !important;
}

.respondent-mode .customer-form .sd-input:focus,
.respondent-mode .customer-form .sd-dropdown:focus-within,
.respondent-mode .customer-form .sd-comment:focus {
  border-color: var(--brand-dark) !important;
  box-shadow: 0 0 0 3px rgba(111, 156, 235, 0.24) !important;
}

.respondent-mode .customer-form .sd-dropdown input,
.respondent-mode .customer-form .sd-dropdown .sd-input,
.respondent-mode .customer-form .sd-dropdown__value {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 1180px) {
  .workspace::before { font-size: 122px; }
  .topbar h2 { font-size: 84px; }
  .lead-page h3 { font-size: 70px; }
  .metric-grid,
  .master-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    grid-template-columns: 1fr;
    border-right: 0;
    border-bottom: 1px solid rgba(214, 207, 196, 0.9);
  }

  .nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .two-column,
  .flow-shell,
  .campaign-outreach-grid,
  .lead-page { grid-template-columns: 1fr; }

  .phone-frame {
    position: static;
    max-width: none;
  }
}

@media (max-width: 640px) {
  body::after { margin: 0 14px; }

  .workspace { padding: 18px; }
  .workspace::before { font-size: 64px; }

  .topbar,
  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    min-height: auto;
    padding-top: 10px;
  }

  .topbar-actions,
  .auth-panel {
    width: 100%;
    justify-content: flex-end;
  }

  .home-account-menu::after {
    display: none;
  }

  .home-account-popover {
    position: fixed;
    top: calc(88px + env(safe-area-inset-top));
    right: 14px;
    bottom: auto;
    left: 14px;
    z-index: 70;
    width: auto;
    max-height: calc(100dvh - 112px - env(safe-area-inset-top));
    overflow-y: auto;
  }

  .home-account-popover .secondary-button {
    width: 100%;
    justify-content: center;
  }

  .topbar h2 { font-size: 58px; }
  .section-header h3,
  .surface h3 { font-size: 32px; }

  .metric-grid,
  .master-metrics,
  .form-grid,
  .builder-row,
  .settings-grid,
  .response-explorer,
  .share-link-row { grid-template-columns: 1fr; }

  .form-tabs { overflow-x: auto; }

  .form-workspace {
    padding-bottom: 86px;
  }

  .agency-discovery-response-footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    margin: 0;
    border-top: 1px solid rgba(214, 207, 196, 0.9);
    background: linear-gradient(180deg, rgba(250, 249, 245, 0.78), #faf9f5 34%);
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  }

  .form-workspace .discovery-fill-button {
    width: 100%;
    justify-content: center;
    white-space: normal;
  }

  .metric-card { min-height: 150px; }
  .metric-card strong { font-size: 58px; }

  .timeline li { grid-template-columns: 42px minmax(0, 1fr); }
  .timeline p { grid-column: 2; }

  .phone-frame { min-height: auto; }
  .phone-screen { min-height: 560px; }
  .phone-screen .sd-title { font-size: 38px; }

  .lead-page { padding: 22px; }
  .lead-page h3 { font-size: 50px; }

  .respondent-mode .workspace {
    padding: 0 0 calc(18px + env(safe-area-inset-bottom));
  }

  .respondent-mode .customer-form {
    border-radius: 0;
    padding: 0;
  }

  .respondent-mode .customer-form .respondent-survey-header {
    min-height: 720px;
    background:
      radial-gradient(circle at 50% 70%, rgba(120, 120, 124, 0.32), transparent 35%),
      linear-gradient(180deg, #000000 0%, #161617 63%, #fbfbfd 63%, #fbfbfd 100%);
    padding: 22px 8px 0;
  }

  .respondent-mode .customer-form .respondent-survey-header > .agency-brand-mark {
    width: calc(100% - 32px);
    min-height: 142px;
    gap: 12px;
    margin-bottom: 22px;
    border-radius: 18px;
    padding: 24px;
  }

  .respondent-mode .customer-form .respondent-survey-header > .agency-brand-mark .agency-brand-name {
    font-size: clamp(2rem, 9vw, 2.5rem);
  }

  .respondent-mode .customer-form .respondent-survey-header > .agency-brand-mark .agency-brand-lines {
    width: 100%;
  }

  .respondent-mode .customer-form .respondent-hero-topline {
    align-items: center;
    flex-direction: row;
  }

  .respondent-mode .customer-form .respondent-time {
    width: auto;
  }

  .respondent-mode .customer-form h3,
  .respondent-mode .customer-form .mobile-flow h3 {
    font-size: clamp(42px, 12vw, 56px);
  }

  .respondent-mode .customer-form .respondent-product-stage {
    min-height: 280px;
    margin-top: 26px;
  }

  .respondent-mode .customer-form .respondent-product-device {
    width: min(330px, 82vw);
    min-height: 210px;
    border-radius: 30px;
    padding: 26px 22px;
  }

  .respondent-mode .customer-form .respondent-form-panel {
    width: min(100% - 56px, 920px);
    gap: 34px;
    padding-top: 46px;
  }

  .respondent-mode .customer-form .respondent-question {
    gap: 24px;
    padding: 54px 0;
  }

  .respondent-mode .customer-form .respondent-question-title,
  .respondent-mode .customer-form .respondent-question > label > span {
    gap: 10px;
    font-size: clamp(32px, 9.2vw, 46px);
    line-height: 1.1;
  }

  .respondent-mode .customer-form .respondent-choice-list {
    gap: 12px;
  }

  .respondent-mode .customer-form .respondent-choice {
    min-height: 62px;
    border-radius: 16px;
    padding: 14px 16px;
    font-size: clamp(18px, 4.8vw, 21px);
  }

  .respondent-mode .customer-form .respondent-choice {
    font-size: clamp(18px, 4.8vw, 21px);
  }

  .respondent-mode .customer-form .respondent-checkbox-choice {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .respondent-mode .customer-form .respondent-choice > input[type="radio"],
  .respondent-mode .customer-form .respondent-choice > input[type="checkbox"] {
    width: 19px;
    height: 19px;
  }

  .respondent-mode .customer-form .ranked-reward-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .respondent-mode .customer-form .ranked-reward-card {
    border-radius: 20px;
  }

  .respondent-mode .customer-form .ranked-reward-label {
    right: 8px;
    bottom: 8px;
    left: 8px;
    min-height: 58px;
    border-radius: 15px;
    padding: 9px 10px;
  }

  .respondent-mode .customer-form .ranked-reward-rank {
    top: 9px;
    right: 9px;
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .respondent-mode .customer-form input,
  .respondent-mode .customer-form select,
  .respondent-mode .customer-form textarea {
    min-height: 56px;
    border-radius: 16px;
    padding: 12px 16px;
    font-size: clamp(18px, 4.8vw, 21px);
  }

  .respondent-mode .customer-form input,
  .respondent-mode .customer-form select {
    height: 56px;
  }

  .respondent-mode .customer-form .respondent-question textarea:not([data-other-answer]) {
    height: 112px !important;
    min-height: 112px !important;
  }

  .respondent-mode .customer-form .primary-button {
    min-height: 56px;
    width: 100%;
    font-size: 20px;
  }

  .respondent-mode .customer-form .discovery-referral-complete {
    width: min(100% - 56px, 760px);
    min-height: calc(100vh - 36px);
    padding: 58px 0;
  }

  .respondent-mode .customer-form .discovery-referral-actions {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 12px;
  }

  .respondent-mode .customer-form .discovery-referral-actions .primary-button,
  .respondent-mode .customer-form .discovery-referral-actions .secondary-button {
    width: 100%;
    min-height: 56px;
    font-size: 20px;
  }

  .respondent-mode .customer-form .respondent-wizard-controls {
    grid-template-columns: minmax(96px, 0.42fr) minmax(0, 1fr);
    gap: 12px;
    width: 100%;
  }

  .respondent-mode .customer-form .respondent-wizard-controls .secondary-button {
    min-height: 56px;
    font-size: 20px;
  }
}

/* Landing Page */
.hidden { display: none !important; }

.landing-wrapper {
  display: none;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  z-index: 10;
  background: transparent;
  width: 100%;
}

.landing-wrapper.is-active {
  display: block;
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 100vh;
  padding: 40px;
  gap: 40px;
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.landing-header {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.landing-login-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  background: rgba(7, 11, 13, 0.72);
  color: var(--ink);
  padding: 0 22px;
  font-family: var(--display);
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.landing-login-button:hover,
.landing-login-button:focus-visible {
  border-color: var(--brand);
  background: var(--brand);
  color: #071016;
  outline: none;
}

.landing-hero {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  margin-bottom: 80px;
  margin-top: 40px;
  position: relative;
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(4rem, 8vw, 9rem);
  line-height: 0.85;
  color: var(--ink);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 600px;
  margin-top: 30px;
  font-weight: 400;
  margin-left: auto;
  margin-right: auto;
}

.landing-hero-button {
  margin-top: 30px;
  min-height: 58px;
  padding: 0 34px;
  font-size: 32px;
}

.global-dot-pyramid {
  position: absolute;
  top: 580px;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  opacity: 1;
  overflow: visible;
  width: max-content;
}

.global-dot-pyramid .dot-row {
  display: flex;
  gap: 40px;
}

.global-dot-pyramid .dot {
  width: 40px;
  height: 40px;
  background-color: #ffffff;
  border-radius: 50%;
  border: 1px solid #ffffff;
  box-shadow: 
    0 0 20px #ffffff, 
    0 0 50px rgba(255, 255, 255, 0.85),
    0 0 100px rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(2px);
}

/* How It Works Section */
.how-it-works {
  grid-column: 1 / -1;
  margin-top: 120px;
  margin-bottom: 80px;
  border-top: 1px solid var(--line-strong);
  padding-top: 60px;
}

.how-title {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 50px;
  text-align: center;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.how-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--line-strong);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  backdrop-filter: blur(10px);
}

.how-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--ink);
  transform: translateY(-5px);
}

.how-num {
  font-family: var(--display);
  font-size: 3rem;
  color: var(--muted);
  line-height: 1;
  opacity: 0.2;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.how-card:hover .how-num {
  opacity: 1;
  color: var(--ink);
}

.how-step-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.how-step-desc {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 960px) {
  .how-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .how-grid {
    grid-template-columns: 1fr;
  }
}

.isometric-stats {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 500px;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.iso-cube {
  position: absolute;
  width: 220px;
  height: 140px;
  background: #f2f8fc;
  color: #080d0f;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: rotateX(45deg) rotateZ(-30deg);
  box-shadow: -15px 15px 0px #9aa4b2, -30px 30px 20px rgba(0,0,0,0.8);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid #d1d5db;
}

.iso-cube:hover {
  transform: rotateX(45deg) rotateZ(-30deg) translateZ(30px);
}

.iso-stack-label {
  position: absolute;
  top: -140px;
  left: calc(10% - 50px);
  width: 320px;
  text-align: center;
  color: #ffffff;
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 4;
}

.iso-3 { top: -90px; left: 10%; z-index: 3; }
.iso-2 { top: 20px; left: 10%; z-index: 2; background: var(--brand); color: #fff; box-shadow: -15px 15px 0px var(--brand-dark), -30px 30px 20px rgba(0,0,0,0.8); }
.iso-1 { top: 130px; left: 10%; z-index: 1; }

.iso-scale-label {
  position: absolute;
  top: -140px;
  right: calc(10% - 50px);
  width: 320px;
  text-align: center;
  color: #ffffff;
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 4;
}

.iso-scale-card {
  position: absolute;
  top: -90px;
  right: calc(10% - 10px);
  width: 240px;
  height: 380px;
  background: rgba(242, 248, 252, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px 15px;
  transform: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  backdrop-filter: blur(8px);
  z-index: 2;
}

.iso-scale-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.scale-svg-container {
  width: 100%;
  height: 240px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  margin-top: 5px;
}

.scale-svg-container svg {
  display: block;
  width: min(100%, 280px);
  height: auto;
}

.scale-equation {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 900;
  color: #ffffff;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 5px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  letter-spacing: 0.03em;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.scale-eq-op {
  font-size: 2.2rem;
  color: var(--brand);
  line-height: 0.8;
  margin: 2px 0;
}

.iso-val {
  font-family: var(--display);
  font-size: 5rem;
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.iso-lbl {
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.cta-container {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 80px;
  margin-bottom: 80px;
}

.crosshair-btn {
  background: transparent;
  border: none;
  color: var(--brand);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}

.crosshair-btn:hover {
  color: var(--ink);
  transform: scale(1.05);
}

.crosshair-circle {
  width: 140px;
  height: 140px;
  border: 2px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.crosshair-text {
  font-family: var(--display);
  font-size: 1.8rem;
  letter-spacing: 0.1em;
}

@media (max-width: 1100px) {
  .iso-cube { width: 160px; height: 100px; }
  .iso-val { font-size: 3.5rem; }
  .dot-pyramid-container { padding: 40px 20px; }
  
  .iso-scale-card { width: 180px; height: 290px; right: calc(10% - 10px); padding: 15px 10px; }
  .scale-svg-container { height: 150px; }
  .scale-equation { font-size: 1.2rem; margin-top: 8px; padding: 6px 8px; }
  .scale-eq-op { font-size: 1.5rem; margin: 0; }
}

@media (max-width: 840px) {
  .landing-grid { grid-template-columns: 1fr; gap: 28px; padding: 20px; }
  .landing-hero { grid-column: 1 / -1; margin-top: 20px; margin-bottom: 48px; }
  .hero-title .indent-1 { margin-left: 0; }
  .dot-pyramid-container, .isometric-stats { grid-column: 1 / -1; }
  
  .isometric-stats { min-height: auto; flex-direction: column; gap: 20px; padding: 40px 0; perspective: none; transform-style: flat; }
  .iso-cube { position: relative; top: auto; left: auto; transform: none !important; box-shadow: none !important; width: 100%; height: auto; padding: 30px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
  .iso-2 { background: var(--panel); color: var(--brand); }
  
  .iso-scale-card { position: relative; top: auto; right: auto; transform: none !important; box-shadow: none !important; width: 100%; height: auto; padding: 30px 20px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
  .scale-svg-container { height: 180px; color: var(--ink); }
  .scale-equation { font-size: 1.4rem; margin-top: 15px; padding: 8px 10px; border: 1px dashed var(--line); background: rgba(0, 0, 0, 0.05); color: var(--ink); }
  .scale-eq-op { font-size: 1.8rem; margin: 0; }
  
  .iso-stack-label, .iso-scale-label {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    text-align: center;
    margin: 20px 0 10px 0;
    font-size: 1.6rem;
  }
}

@media (max-width: 520px) {
  .landing-header {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 4px;
  }

  .landing-header .brand {
    justify-content: center;
  }

  .landing-header .logo-container {
    transform: none;
  }

  .landing-login-button {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    font-size: 24px;
  }

  .landing-hero-button {
    width: min(100%, 320px);
    min-height: 52px;
    padding: 0 18px;
    font-size: 28px;
    margin-top: 14px;
  }

  .landing-hero {
    gap: 14px;
    margin-top: 16px;
    margin-bottom: 28px;
  }

  .hero-title {
    font-size: 3.7rem;
    letter-spacing: 0;
    line-height: 0.9;
  }

  .hero-subtitle {
    margin-top: 14px;
    font-size: 1.05rem;
  }

  .global-dot-pyramid {
    top: 430px;
    gap: 18px;
  }

  .global-dot-pyramid .dot-row {
    gap: 7px;
  }

  .global-dot-pyramid .dot {
    width: 14px;
    height: 14px;
    box-shadow:
      0 0 10px #ffffff,
      0 0 24px rgba(255, 255, 255, 0.76),
      0 0 48px rgba(255, 255, 255, 0.42);
  }

  .isometric-stats {
    gap: 14px;
    padding: 22px 0 28px;
  }

  .iso-cube {
    padding: 22px;
  }

  .iso-val {
    font-size: 3rem;
  }

  .iso-lbl {
    font-size: 0.86rem;
  }

  .iso-stack-label,
  .iso-scale-label {
    margin: 10px 0 4px 0;
    font-size: 1.45rem;
  }

  .iso-scale-card {
    padding: 22px 16px;
  }

  .scale-svg-container {
    height: auto;
    min-height: 170px;
    color: var(--ink);
    margin-top: 0;
  }

  .scale-svg-container svg {
    width: min(100%, 260px);
  }

  .scale-equation {
    font-size: 1.15rem;
    line-height: 1.08;
  }

  .how-it-works {
    margin-top: 48px;
    margin-bottom: 48px;
    padding-top: 42px;
  }

  .how-title {
    margin-bottom: 28px;
    font-size: 3rem;
    letter-spacing: 0;
  }

  .how-card {
    gap: 18px;
    padding: 28px 22px;
  }

  .how-step-title {
    font-size: 1.25rem;
  }

  .how-step-desc {
    font-size: 0.96rem;
  }

  .cta-container {
    margin-top: 48px;
    margin-bottom: 54px;
  }

  .crosshair-circle {
    width: 112px;
    height: 112px;
  }

  .crosshair-text {
    font-size: 1.45rem;
    letter-spacing: 0.04em;
  }
}

@media (max-width: 360px) {
  .landing-grid {
    gap: 24px;
    padding: 16px;
  }

  .hero-title {
    font-size: 3.25rem;
  }

  .global-dot-pyramid {
    top: 410px;
    gap: 15px;
  }

  .global-dot-pyramid .dot-row {
    gap: 6px;
  }

  .global-dot-pyramid .dot {
    width: 12px;
    height: 12px;
  }
}
