:root {
  --ink: #000;
  --paper: #fff;
  --muted: #8a8a8a;
  --line: rgba(255, 255, 255, 0.16);
  --track: #2a2a2a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  background: var(--ink);
  color: var(--paper);
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.home-back {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #000;
  pointer-events: none;
}

.home-back iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100vw, calc(100dvh * 16 / 9));
  height: max(100dvh, calc(100vw * 9 / 16));
  min-width: 0;
  min-height: 0;
  border: 0;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}

body.home-video-on .home-back iframe {
  opacity: 1;
}

.home {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  min-height: 100dvh;
  padding: 48px 40px 96px;
}

.home .logo {
  order: 0;
  margin: 0;
  pointer-events: none;
  overflow: hidden;
  max-width: 100%;
}

.home .menu {
  order: 1;
  position: relative;
  z-index: 40;
  pointer-events: auto;
  margin-top: 28px;
  margin-bottom: 0;
}

.home .menu a,
.home .home-login,
.menu a,
.take {
  position: relative;
  z-index: 40;
  display: inline-block;
  pointer-events: auto;
  cursor: pointer;
  padding: 8px 0;
  min-height: 44px;
}

.logo {
  font-size: clamp(120px, 22vw, 280px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.8;
}

.langs,
.menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 48px;
}

.home .langs {
  position: fixed;
  left: max(24px, env(safe-area-inset-left));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 5;
  margin: 0;
  gap: 4px;
  pointer-events: auto;
}

.home .langs button {
  pointer-events: auto;
  cursor: pointer;
}

.home .home-login,
.home-login {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  left: auto;
  top: auto;
  z-index: 4;
  margin: 0;
  pointer-events: auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.15;
}

.home-login:hover {
  color: var(--muted);
}

.login {
  padding: 28px 40px 80px;
  max-width: 640px;
}

.login h1,
.demo-setup h1 {
  margin-top: 36px;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: -0.04em;
}

.login-choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 28px 0 8px;
}

.login-choice button {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.15;
  cursor: pointer;
  text-align: left;
}

.login-choice button.on {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.login-choice button:hover,
.login-error {
  color: var(--muted);
}

.login-error {
  margin-top: 20px;
  font-size: 15px;
}

.setup-steps {
  margin: 16px 0 20px 1.1em;
  max-width: 54ch;
  font-size: 16px;
  line-height: 1.45;
}

.setup-url {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 32px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.setup-url a {
  text-transform: none;
  letter-spacing: 0;
  font-size: 16px;
  word-break: break-all;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.demo-account {
  margin-top: 12px;
}

.mod-demos {
  margin-top: 56px;
  max-width: 52ch;
}

.mod-demos h2 {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mod-demos form {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  margin-top: 16px;
}

.mod-demos input {
  width: 160px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  padding: 8px 0;
  border-radius: 0;
}

.mod-demos button {
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-height: 44px;
  padding: 8px 0;
}

.mod-demos ul {
  list-style: none;
  margin-top: 20px;
}

.mod-demos li {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
}

.mod-demos .mod-error {
  text-align: left;
}

.menu[hidden] {
  display: none;
}

.langs button {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: clamp(11px, 1.5vw, 20px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.15;
  cursor: pointer;
  text-align: left;
}

.langs button.on {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.langs button:hover {
  color: var(--muted);
}

.menu a {
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.15;
}

.menu a:hover {
  color: var(--muted);
}

.census-head {
  display: flex;
  align-items: baseline;
  gap: 22px;
}

.take {
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
}

.take:hover {
  color: var(--muted);
}

.census-page {
  padding: 28px 36px 72px;
}

.census-page .mark {
  position: relative;
  z-index: 4;
  margin-bottom: 0;
}

.census {
  list-style: none;
  margin-top: 28px;
}

.census li {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(140px, 1fr);
  align-items: end;
  column-gap: 20px;
  min-height: clamp(62px, 8vw, 96px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
}

.census a {
  font-size: clamp(28px, 4.7vw, 68px);
  font-weight: 700;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  line-height: 0.86;
  padding-bottom: 8px;
}

.census a:hover {
  color: var(--muted);
}

.meter {
  position: relative;
  height: 52px;
}

.meter .pct {
  position: absolute;
  right: var(--share, 0%);
  bottom: 14px;
  color: #fff;
  font-size: clamp(15px, 1.5vw, 22px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  transform: translateX(-8px);
  transition: right 0.45s ease;
}

.meter .rule {
  position: absolute;
  right: 0;
  bottom: 8px;
  width: var(--share, 0%);
  height: 2px;
  background: #fff;
  transition: width 0.45s ease;
}

.mod,
.mod-tools button,
.mod-form button {
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 0;
  min-height: 44px;
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
}

.mod {
  position: fixed;
  top: 22px;
  right: max(24px, env(safe-area-inset-right));
  z-index: 4;
  background: #000;
}

.mod-form:not([hidden]),
.mod-tools:not([hidden]) {
  position: fixed;
  top: 52px;
  right: max(24px, env(safe-area-inset-right));
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #000;
}

.mod-tools:not([hidden]) {
  top: 52px;
}

.mod-form:not([hidden]) {
  top: 48px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 280px;
}

.mod-form input {
  width: 160px;
  min-height: 44px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  padding: 8px 0;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.mod-form button {
  min-width: 72px;
  pointer-events: auto;
}

.mod-tools select {
  background: #000;
  color: #fff;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 0;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-height: 44px;
  padding: 8px 0;
  -webkit-appearance: none;
  appearance: none;
}

.mod-error {
  width: 100%;
  color: #fff;
  font-size: 13px;
  text-align: right;
}

.mod-confirm {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.78);
}

.mod-confirm[hidden] {
  display: none;
}

.mod-confirm-box {
  min-width: min(320px, 88vw);
  padding: 32px 28px 24px;
  background: #000;
  color: #fff;
  border: 1px solid #fff;
  text-align: center;
}

.mod-confirm-box p {
  margin: 0 0 24px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mod-confirm-actions {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.mod-confirm-actions button {
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 0;
  min-height: 44px;
}

.mod-confirm-actions button.default {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.sheet {
  padding: 28px 40px 80px;
  max-width: 960px;
}

.mark {
  display: inline-block;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  margin-bottom: 48px;
}

h1.name {
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.9;
  text-transform: uppercase;
}

.nl {
  margin-top: 10px;
  color: var(--muted);
  font-size: 20px;
}

.persona-result {
  margin-top: 28px;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.45;
}

.persona-result .result-body {
  margin: 0;
}

.persona-result .result-list {
  margin: 1.1em 0;
  padding-left: 1.15em;
}

.persona-result .result-list li {
  margin: 0 0 4px;
}

.persona-result .result-close {
  margin: 0;
}

.persona-result strong {
  font-weight: 700;
}

.scales {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.space {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 920px;
}

.scale-top,
.axis {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.note,
.axis b {
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  font-size: 15px;
}

.note {
  margin-top: 6px;
}

.question .scale-top {
  justify-content: flex-start;
  font-size: 12px;
  letter-spacing: 0.14em;
}

.question .track {
  position: relative;
  margin-top: 10px;
  height: 2px;
  background: #3a3a3a;
}

.question .fill {
  position: absolute;
  top: 0;
  left: calc(100% * var(--from) / 3);
  width: calc(100% * var(--span) / 3);
  height: 2px;
  background: #fff;
}

.question .stops {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  column-gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.question .stops span {
  min-width: 0;
  color: #7a7a7a;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.question .stops span:nth-child(1) {
  text-align: left;
}

.question .stops span:nth-child(2) {
  text-align: center;
}

.question .stops span:nth-child(3) {
  text-align: right;
}

.question .stops span.on {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.track {
  margin-top: 8px;
  height: 6px;
  background: var(--track);
}

.fill {
  height: 100%;
  background: var(--paper);
}

.insight {
  margin-top: 40px;
  max-width: 62ch;
  font-size: 18px;
  line-height: 1.45;
}

.source {
  margin-top: 28px;
  max-width: 62ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.about,
.group {
  padding: 28px 40px 80px;
  max-width: 920px;
}

.about h1,
.about > p,
.about .about-sub,
.group h1,
.group > p,
.group h2 {
  max-width: 62ch;
}

.about .mark,
.group .mark {
  margin-bottom: 48px;
}

.about h1,
.group h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-transform: uppercase;
}

.about .about-sub {
  margin-top: 18px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.about-video {
  margin: 28px 0 8px;
  max-width: 62ch;
  background: #000;
}

.about-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
}

.group h2 {
  margin-top: 40px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.about p,
.group p {
  margin-top: 1.15em;
  font-size: 18px;
  line-height: 1.45;
}

.about .contact,
.group .contact,
.group-form .contact,
.demo-setup .contact {
  appearance: none;
  -webkit-appearance: none;
  display: inline-block;
  margin-top: 36px;
  height: 56px;
  padding: 0 24px;
  border: 1px solid var(--paper);
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 56px;
  font-family: inherit;
  cursor: pointer;
}

.about .contact:hover,
.group .contact:hover,
.group-form .contact:hover,
.demo-setup .contact:hover {
  background: transparent;
  color: var(--paper);
}

.about-contact {
  scroll-margin-top: 32px;
}

.credits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 48px;
  max-width: 36em;
  margin-top: 36px;
}

.credits p {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  color: var(--paper);
}

.credits a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.credits .credit-logo {
  display: block;
  margin-top: 12px;
  text-decoration: none;
}

.credits .credit-logo img {
  display: block;
  height: 28px;
  width: auto;
}

@media (max-width: 700px) {
  .credits {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.group-place,
.group-status {
  color: var(--muted);
}

.group-form label,
.group-label {
  display: block;
  margin-top: 28px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.group-form input {
  display: block;
  width: 100%;
  max-width: 36ch;
  margin-top: 8px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--paper);
  background: transparent;
  color: var(--paper);
  font-family: inherit;
  font-size: 18px;
  border-radius: 0;
}

.group-form input:focus {
  outline: none;
}

.gender {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.gender button {
  width: 48px;
  height: 48px;
  border: 1px solid var(--paper);
  background: transparent;
  color: var(--paper);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.gender button.on {
  background: var(--paper);
  color: var(--ink);
}

.spec {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 62ch;
  margin-top: 12px;
  font-size: 18px;
  line-height: 1.45;
}

.spec svg {
  flex-shrink: 0;
  margin-top: 6px;
}

.text-btn {
  margin: 12px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.text-btn:hover {
  color: var(--muted);
}

.group-error {
  margin-top: 16px;
  color: var(--paper);
}

.group .census {
  margin-top: 36px;
}

.dash {
  margin: 36px 0 40px;
  padding: 20px;
  background: #111;
  color: #fff;
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
}

.dash-top,
.dash-bottom {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 12px;
}

.dash-bottom {
  margin-top: 12px;
}

.dash-score,
.dash-kpis,
.dash-bars {
  border: 1px solid #fff;
  padding: 16px 18px 14px;
}

.dash-score {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  background: #fff;
  color: #111;
}

.dash-kicker {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.dash-score-copy ul {
  margin: 10px 0 0;
  padding-left: 1.1em;
  font-size: 12px;
  line-height: 1.45;
}

.dash-gauge {
  text-align: center;
}

.dash-value {
  margin-top: 2px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.dash-value span {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}

.dash-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.dash-kpi-row span {
  display: block;
  font-size: 12px;
  line-height: 1.2;
}

.dash-kpi-row b {
  display: block;
  margin-top: 6px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.dash-kpi-row em {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-style: normal;
  color: #a0a0a0;
}

.dash-sub {
  margin: 4px 0 12px;
  font-size: 12px;
  color: #a0a0a0;
}

.dash-bar {
  position: relative;
  height: 22px;
  margin-bottom: 8px;
  background: #2a2a2a;
}

.dash-bar i {
  display: block;
  height: 100%;
  background: #fff;
}

.dash-bar.grey i {
  background: #888;
}

.dash-bar span {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
}

.dash-bar.grey span {
  color: #fff;
}

.dash-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: #a0a0a0;
}

.compare {
  width: 100%;
  margin-top: 40px;
  border-collapse: collapse;
  table-layout: fixed;
}

.compare th,
.compare td {
  padding: 10px 12px 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  vertical-align: top;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 400;
  text-align: left;
}

.compare thead th {
  padding-bottom: 12px;
  border-top: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.compare tbody th {
  width: 22%;
  padding-right: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b3b3b3;
}

.compare td {
  width: 39%;
  color: var(--paper);
}

.compare a,
.compare-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.about p.compare-note,
.group p.compare-note {
  max-width: 62ch;
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.4;
}

@media (max-width: 800px) {
  .dash-top,
  .dash-bottom,
  .dash-score,
  .dash-kpi-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .home,
  .sheet,
  .about,
  .group,
  .login {
    padding-left: 24px;
    padding-right: 24px;
  }

  .compare th,
  .compare td {
    padding: 8px 8px 8px 0;
    font-size: 12px;
  }

  .compare tbody th {
    font-size: 10px;
    letter-spacing: 0.04em;
  }
}
