:root {
  --ink: #172127;
  --muted: #5c6870;
  --line: #d9e0e2;
  --paper: #fbfcfb;
  --panel: #ffffff;
  --red: #cf1f31;
  --red-strong: #9f1724;
  --red-soft: #f8e8eb;
  --gold: #d6a12f;
  --green: #2f7d5a;
  --shadow: 0 18px 48px rgba(23, 33, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.5;
}

button,
input,
textarea {
  font: inherit;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(217, 224, 226, 0.85);
  background: rgba(251, 252, 251, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: min(330px, 65vw);
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav a:hover {
  color: var(--red);
}

.ghost-button,
.text-button,
.primary-button,
.secondary-button {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
}

.ghost-button {
  padding: 0 16px;
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(720px, calc(100vh - 72px));
  background: #080606;
  overflow: hidden;
}

.hero-image,
.hero-overlay,
.hero-content {
  grid-area: 1 / 1;
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 6, 6, 0.82) 0%, rgba(8, 6, 6, 0.66) 42%, rgba(8, 6, 6, 0.12) 100%),
    linear-gradient(0deg, rgba(8, 6, 6, 0.3), rgba(8, 6, 6, 0.04));
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(720px, 100%);
  padding: 70px clamp(22px, 5vw, 72px) 110px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3.4rem, 10vw, 7.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 800;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: #eef5f7;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 0 20px;
}

.primary-button {
  background: var(--red);
  color: #fff;
  box-shadow: var(--shadow);
}

.secondary-button {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(8, 6, 6, 0.72);
  color: #fff;
}

.overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 170px;
  gap: 14px;
  width: min(1180px, calc(100% - 36px));
  margin: -64px auto 0;
  padding: 16px;
  border: 1px solid rgba(217, 224, 226, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.cycle-editor {
  display: grid;
  gap: 8px;
}

.cycle-editor label,
.review-grid label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

input {
  min-height: 52px;
  padding: 0 14px;
  font-weight: 700;
}

textarea {
  min-height: 140px;
  padding: 14px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(207, 31, 49, 0.12);
}

.cycle-score {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}

.cycle-score span {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
}

.cycle-score small {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  text-transform: uppercase;
}

.section-block,
.split-section {
  width: min(1180px, calc(100% - 36px));
  margin: 86px auto 0;
}

.section-heading {
  margin-bottom: 26px;
}

.section-heading.compact h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

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

.metric-card,
.priority-item,
.side-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(23, 33, 39, 0.06);
}

.metric-card {
  display: grid;
  min-height: 220px;
  padding: 18px;
}

.metric-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.metric-name {
  min-width: 0;
  border: 0;
  padding: 0;
  font-size: 1rem;
}

.metric-value {
  width: 72px;
  min-height: 42px;
  text-align: center;
}

.meter {
  align-self: end;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edef;
}

.meter span {
  display: block;
  width: var(--score);
  height: 100%;
  border-radius: inherit;
  background: var(--meter-color);
}

.metric-card p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
}

.priority-list {
  display: grid;
  gap: 12px;
}

.priority-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 104px;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 14px;
}

.priority-item input[type='checkbox'] {
  width: 22px;
  height: 22px;
  accent-color: var(--red);
}

.priority-item input[type='text'] {
  border: 0;
  padding: 0;
}

.owner-pill {
  display: inline-flex;
  justify-content: center;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red-strong);
  font-size: 0.78rem;
  font-weight: 800;
}

.text-button {
  margin-top: 14px;
  padding: 0 16px;
  background: var(--ink);
  color: #fff;
}

.side-panel {
  padding: 22px;
}

.review-band {
  padding: 42px;
  border-radius: 8px;
  background: #eef4f2;
}

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

.review-grid label {
  display: grid;
  gap: 10px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 36px));
  margin: 72px auto 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer span:first-child {
  color: var(--ink);
  font-weight: 800;
}

.is-hidden {
  display: none !important;
}

.assessment-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 54px auto 0;
}

.assessment-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.65fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}

.assessment-intro h1 {
  max-width: 11ch;
}

.account-panel,
.assessment-card,
.assessment-results {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(23, 33, 39, 0.06);
}

.account-panel {
  overflow: hidden;
}

.account-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.account-tabs button {
  min-height: 52px;
  border: 0;
  background: #f3f6f7;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.account-tabs button.is-active {
  background: #fff;
  color: var(--red);
}

.respondent-form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

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

.consent-row {
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  color: var(--ink) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  line-height: 1.35;
  text-transform: none !important;
}

.consent-row input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--red);
}

.verified-start,
.verification-notice {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.verified-start p,
.verification-notice p,
.account-status {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-status {
  min-height: 24px;
  padding: 0 22px 22px;
}

.assessment-card,
.assessment-results {
  padding: clamp(22px, 4vw, 42px);
}

.assessment-progress {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edef;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--red);
  transition: width 180ms ease;
}

.question-area {
  min-height: 230px;
  padding: clamp(30px, 5vw, 62px) 0 24px;
}

.question-area h2 {
  max-width: 900px;
  font-size: clamp(2rem, 4vw, 4.2rem);
}

.answer-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.answer-options legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.answer-options label {
  display: grid;
  min-height: 86px;
  place-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

.answer-options input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--red);
}

.assessment-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.assessment-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.result-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.result-summary div {
  display: grid;
  min-height: 128px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}

.result-summary span {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
}

.result-summary small {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
  text-transform: uppercase;
}

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

.attribute-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.attribute-section h3 {
  margin: 0;
  padding: 14px 16px;
  background: var(--red-soft);
  color: var(--red-strong);
  font-size: 1rem;
}

.attribute-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 10px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.attribute-row strong {
  color: var(--ink);
  text-align: right;
}

.submission-status {
  margin: 22px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.review-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 54px auto 0;
}

.review-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.review-header h1 {
  max-width: none;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
}

.review-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(23, 33, 39, 0.06);
}

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

.review-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.review-table th,
.review-table td {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.review-table th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.review-table td {
  color: var(--ink);
  font-weight: 700;
}

.compact-button {
  min-height: 34px;
  margin: 0;
  padding: 0 12px;
}

.answer-review {
  margin-top: 30px;
}

.answer-review h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.answer-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.answer-item p {
  margin: 6px 0 0;
  color: var(--muted);
}

.answer-item span {
  justify-self: end;
  color: var(--red-strong);
  font-weight: 800;
  text-align: right;
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .overview,
  .metric-grid,
  .split-section,
  .review-grid,
  .assessment-intro,
  .answer-options,
  .result-summary,
  .attribute-grid {
    grid-template-columns: 1fr;
  }

  .cycle-score {
    min-height: 118px;
  }

  .question-area {
    min-height: 260px;
  }

  .review-header {
    align-items: start;
    flex-direction: column;
  }

  .answer-item {
    grid-template-columns: 1fr;
  }

  .answer-item span {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .topbar {
    padding: 12px 16px;
  }

  .brand {
    max-width: 250px;
  }

  .ghost-button {
    min-width: 78px;
  }

  .hero {
    min-height: 680px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(8, 6, 6, 0.88) 0%, rgba(8, 6, 6, 0.62) 68%, rgba(8, 6, 6, 0.34) 100%);
  }

  .hero-content {
    justify-content: flex-start;
    padding-top: 64px;
  }

  h1 {
    font-size: 3.15rem;
  }

  .overview {
    margin-top: -42px;
  }

  .priority-item {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .owner-pill {
    grid-column: 2;
    justify-self: start;
  }

  .review-band {
    padding: 24px 18px;
  }

  .footer {
    flex-direction: column;
  }
}
