:root {
  color-scheme: light;
  --bg: #FCFBF7;
  --fg: #1A1916;
  --muted: #6B6860;
  --accent: #7B5CF0;
  --soft: #F0EBFB;
  --panel: #F4F2EC;
  --border: #D6D4CE;
  --rule: #C8C5BD;
  --success: #4A8F5C;
  --warn: #B8732B;
  --danger: #B83A2B;
}

@font-face {
  font-family: "AF Another Sans";
  src: url("https://cofounder.co/fonts/af-another-sans-variable.woff2") format("woff2");
  font-weight: 100 900;
}

@font-face {
  font-family: "TT Neoris";
  src: url("https://cofounder.co/fonts/tt-neoris-variable.woff2") format("woff2");
  font-weight: 100 900;
}

@font-face {
  font-family: "Departure Mono";
  src: url("https://cofounder.co/fonts/DepartureMono-Regular.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "AF Another Sans", system-ui, sans-serif;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: end;
  border-bottom: 1px solid var(--rule);
  padding: 28px 0 24px;
  margin-bottom: 28px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.brand-lockup span {
  display: block;
  color: var(--fg);
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1;
}

.brand-lockup small {
  display: block;
  margin-top: 6px;
  color: var(--accent);
  font-family: "Departure Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: "Departure Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  max-width: 820px;
  font-family: "TT Neoris", "AF Another Sans", system-ui, sans-serif;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.98;
  font-weight: 700;
}

h2 {
  font-family: "TT Neoris", "AF Another Sans", system-ui, sans-serif;
  font-size: 22px;
  line-height: 1.2;
}

h3 {
  font-size: 18px;
}

.lede,
.intro p,
.section-note,
.prompt,
.actions p,
.success p {
  color: var(--muted);
  line-height: 1.55;
}

.status-card,
.intro,
.respondent,
.question,
.actions,
.success {
  background: var(--panel);
  border: 1px solid var(--border);
}

.status-card {
  position: fixed;
  top: 16px;
  right: max(16px, calc((100vw - 1120px) / 2));
  z-index: 10;
  width: min(260px, calc(100vw - 32px));
  padding: 16px;
  border-radius: 8px;
}

.status-card span {
  display: block;
  margin-bottom: 10px;
  font-weight: 800;
}

.progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--border);
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: var(--accent);
  transition: width 180ms ease;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
  margin-bottom: 18px;
  padding: 24px;
  border-radius: 8px;
}

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

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 3px 0 0;
  font-weight: 700;
}

.survey {
  display: grid;
  gap: 18px;
}

.respondent,
.section-block,
.actions,
.success {
  border-radius: 8px;
}

.respondent,
.actions,
.success {
  padding: 24px;
}

.section-block {
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel);
}

.section-header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--rule);
  background: var(--fg);
  color: var(--bg);
}

.section-header p {
  margin-bottom: 0;
  color: var(--rule);
}

.questions {
  display: grid;
  gap: 0;
}

.question {
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
  padding: 22px 24px;
}

.question:last-child {
  border-bottom: 0;
}

.prompt {
  margin-bottom: 12px;
}

.required {
  color: var(--danger);
}

.field-help {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.grid {
  display: grid;
  gap: 16px;
}

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

label span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
}

input,
select {
  min-height: 46px;
  padding: 0 12px;
}

textarea {
  min-height: 136px;
  resize: vertical;
  padding: 12px;
  line-height: 1.45;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid var(--soft);
  border-color: var(--accent);
}

.actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.actions div {
  display: flex;
  gap: 12px;
}

button {
  min-height: 46px;
  border: 0;
  border-radius: 7px;
  padding: 0 18px;
  background: var(--accent);
  color: var(--bg);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

button:hover {
  background: var(--fg);
}

button.secondary {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
}

button.secondary:hover {
  background: var(--panel);
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.error {
  margin-top: 8px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}

.success {
  display: grid;
  justify-items: center;
  min-height: min(620px, calc(100vh - 64px));
  margin-top: 18px;
  border-color: var(--success);
  text-align: center;
  align-content: center;
}

.success[hidden] {
  display: none;
}

.success h2 {
  max-width: 680px;
  margin-bottom: 12px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.02;
}

.success p {
  max-width: 640px;
}

.success-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 18px;
  border-radius: 999px;
  padding: 0 14px;
  background: var(--soft);
  color: var(--success);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.is-submitted .topbar,
.is-submitted .intro,
.is-submitted .survey {
  display: none;
}

@media (max-width: 780px) {
  .shell {
    width: min(100% - 24px, 1120px);
    padding-top: 18px;
  }

  .topbar,
  .intro,
  .two {
    grid-template-columns: 1fr;
  }

  .status-card {
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .actions div {
    flex-direction: column-reverse;
  }

  .success-actions {
    width: 100%;
    flex-direction: column;
  }
}
