:root {
  --bg: #f3f7fa;
  --card: rgba(255, 255, 255, 0.94);
  --card-solid: #ffffff;
  --ink: #17202a;
  --muted: #66737f;
  --accent: #064c86;
  --accent-strong: #073865;
  --accent-soft: #eaf3fb;
  --critical: #c8152d;
  --critical-strong: #9f1024;
  --major: #b97014;
  --minor: #d6a049;
  --observation: #3f82b4;
  --border: #dbe5ec;
  --line: rgba(102, 115, 127, 0.18);
  --good: #064c86;
  --warning: #b97014;
  --danger: #c8152d;
  --shadow: 0 18px 44px rgba(6, 76, 134, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(6, 76, 134, 0.12), transparent 24rem),
    radial-gradient(circle at top right, rgba(200, 21, 45, 0.08), transparent 22rem),
    linear-gradient(135deg, #f7fafc 0%, #eef5f9 55%, #f9fbfc 100%);
}

.shell {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.hero-card,
.panel,
.stat-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-card,
.panel {
  padding: 30px;
}

.narrow {
  max-width: 460px;
  margin: 48px auto 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  letter-spacing: -0.02em;
  font-weight: 600;
}

h1,
h2 {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(2rem, 3vw, 3.5rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.45rem, 1.8vw, 2rem);
}

.page-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
  padding: 22px 24px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(234, 243, 251, 0.94), rgba(255, 255, 255, 0.98));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.brand-lockup {
  display: flex;
  gap: 24px;
  align-items: center;
}

.logo-card {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 168px;
  min-height: 96px;
  padding: 18px;
  border-radius: 18px;
  background: var(--card-solid);
  border: 1px solid var(--border);
  box-shadow: none;
}

.brand-lockup img {
  width: 146px;
  height: auto;
  display: block;
  border-radius: 0;
  box-shadow: none;
}

.action-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.button.primary,
.button.secondary:first-child {
  color: white;
  background: var(--accent);
  border: 0;
}

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

.danger-button {
  color: white;
  background: linear-gradient(180deg, var(--critical), var(--critical-strong));
  border: 0;
}

.stats-grid,
.content-grid,
.executive-grid {
  display: grid;
  gap: 20px;
}

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

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 20px;
}

.stat-card {
  min-height: 132px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 1), rgba(255, 253, 248, 0.92));
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
}

.stat-card span {
  display: block;
  font-size: clamp(2rem, 2.2vw, 3.2rem);
  line-height: 0.95;
  font-weight: 600;
  color: var(--ink);
}

.stat-card p {
  max-width: 150px;
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.executive-grid {
  grid-template-columns: 1.25fr 1fr 1fr;
  margin-bottom: 20px;
}

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

.wide {
  grid-column: 1 / -1;
}

.token-grid {
  grid-template-columns: 1.2fr 0.8fr;
  margin-bottom: 18px;
}

.inset-panel {
  padding: 24px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: none;
}

.culture-hero {
  background:
    linear-gradient(135deg, rgba(234, 243, 251, 0.98), rgba(255, 255, 255, 0.96));
}

.culture-hero .eyebrow,
.culture-hero p {
  color: var(--muted);
}

.culture-hero h2 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: clamp(4rem, 7vw, 7rem);
  line-height: 0.85;
}

.meter-track,
.bar-track {
  overflow: hidden;
  border-radius: 999px;
  background: rgba(20, 38, 74, 0.12);
}

.meter-track {
  height: 18px;
  margin-top: 22px;
  background: rgba(6, 76, 134, 0.12);
}

.meter-fill {
  height: 100%;
  min-width: 5px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--critical), var(--major), var(--accent));
}

.compact-list {
  display: grid;
  gap: 8px;
}

.compact-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.compact-list div:last-child {
  border-bottom: 0;
}

.compact-list strong {
  color: var(--ink);
}

.compact-list span {
  color: var(--muted);
  font-weight: 900;
}

.note-box,
.row-card,
.bar-row,
.comment-group {
  margin-top: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.bar-list,
.comment-groups {
  display: grid;
  gap: 16px;
}

.bar-row {
  margin-top: 0;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.bar-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(20, 38, 74, 0.09);
}

.bar-row p {
  margin: 10px 0 0;
  color: var(--muted);
}

.bar-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}

.bar-label strong {
  color: var(--ink);
}

.bar-track {
  height: 14px;
  background: rgba(6, 76, 134, 0.12);
}

.bar-fill {
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: var(--good);
}

.bar-fill.score {
  background: var(--accent);
}

.bar-fill.good {
  background: linear-gradient(90deg, var(--good), #3f82b4);
}

.bar-fill.watch {
  background: linear-gradient(90deg, var(--warning), #d6a049);
}

.bar-fill.high {
  background: linear-gradient(90deg, var(--critical), var(--critical-strong));
}

.status-pill {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
}

.status-pill.good {
  color: var(--good);
  background: rgba(6, 76, 134, 0.12);
}

.status-pill.watch {
  color: var(--warning);
  background: rgba(185, 112, 20, 0.14);
}

.status-pill.high {
  color: var(--critical);
  background: rgba(200, 16, 46, 0.12);
}

.danger strong {
  color: var(--critical);
}

.muted,
blockquote {
  color: var(--muted);
}

blockquote {
  margin: 12px 0 0;
  padding-left: 14px;
  border-left: 4px solid rgba(6, 76, 134, 0.22);
}

.comment-group {
  margin-top: 0;
}

.comment-group h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.05rem;
}

.comment-group blockquote {
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(6, 76, 134, 0.08), rgba(255, 255, 255, 0.4)),
    white;
  border-left-color: var(--accent);
  border-radius: 16px;
  padding: 14px 16px;
}

.tag-strip,
.comment-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tag-strip {
  margin: 16px 0 8px;
}

.comment-tags {
  margin: 10px 0 0;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
}

.tag-chip.subtle {
  background: rgba(20, 38, 74, 0.06);
  color: var(--muted);
}

.stack-form {
  display: grid;
  gap: 16px;
}

.stack-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.copy-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
}

.copy-field {
  flex: 1 1 420px;
  min-width: 0;
  font-size: 0.95rem;
  color: var(--accent-strong);
  background: rgba(234, 243, 251, 0.8);
}

.copy-button {
  min-height: 46px;
  white-space: nowrap;
}

.mail-panel {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.mail-panel summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-weight: 800;
}

.mail-body {
  margin-top: 12px;
  min-height: 360px;
  background: rgba(247, 250, 252, 0.98);
}

.link-state-note {
  font-size: 0.9rem;
  font-weight: 700;
}

input,
textarea {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: white;
  font: inherit;
}

textarea {
  width: 100%;
  resize: vertical;
  min-height: 110px;
}

.error {
  color: var(--critical);
  font-weight: 900;
}

.notice {
  color: var(--accent-strong);
  font-weight: 800;
}

.respondent-card {
  margin-bottom: 20px;
}

.respondent-header {
  margin-bottom: 20px;
}

.respondent-header h1 {
  max-width: none;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.respondent-intro {
  max-width: 620px;
  margin: 8px 0 0;
  font-size: 1rem;
}

.respondent-card p {
  max-width: 860px;
}

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

.survey-question h2 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.35;
}

.scale-help {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.scale-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.scale-option {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  font-weight: 900;
  color: var(--ink);
}

.scale-option input {
  margin: 0;
}

.large-button {
  min-height: 56px;
  width: 100%;
}

@media (max-width: 1180px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .executive-grid {
    grid-template-columns: 1fr;
  }

  .token-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 28px, 720px);
    padding-top: 18px;
  }

  .stats-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .scale-grid {
    grid-template-columns: 1fr;
  }

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

  .brand-lockup {
    align-items: flex-start;
    flex-direction: column;
  }

  .action-row {
    justify-content: stretch;
  }

  .button {
    flex: 1;
  }
}
