:root {
  --posteros-black: #121215;
  --deep-purple: #251e33;
  --panel-purple: #312f51;
  --accent-purple: #6f57ff;
  --lavender: #eeedff;
  --soft-gray: #fafafa;
  --border: #f2f2f3;
  --muted: #7e7e84;
  --risk: #d65a4a;
  --alnylam-blue: #0067a6;
  --alnylam-teal: #00a5a7;
  --alnylam-navy: #112d4e;
  --success: #16856f;
  --warning: #a36c08;
  --white: #ffffff;
  --shadow: 0 16px 34px rgba(18, 18, 21, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  color: var(--posteros-black);
  background: var(--soft-gray);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button {
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--posteros-black);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

button.primary {
  border-color: transparent;
  color: var(--white);
  background: linear-gradient(135deg, var(--alnylam-blue), var(--alnylam-teal));
}

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  padding: 24px 18px;
  background: var(--white);
  border-right: 1px solid var(--border);
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  margin-bottom: 22px;
}

.logo-block img {
  width: 116px;
  height: auto;
  display: block;
}

.logo-block span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.client-card {
  padding: 18px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: var(--shadow);
}

.client-card h1 {
  margin: 7px 0 8px;
  color: var(--alnylam-navy);
  font-size: 30px;
  line-height: 1;
}

.client-card p,
.rail-panel p,
.hero p,
.decision-card p,
.endpoint-grid p,
.competitor p,
.message-card p,
.study p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.meta {
  color: var(--accent-purple);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

nav {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
}

nav a {
  display: block;
  padding: 11px 12px;
  border-radius: 8px;
  color: #4f4f57;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

nav a.active,
nav a:hover {
  color: var(--white);
  background: linear-gradient(135deg, #2b266b, #655ecc);
}

.rail-panel {
  padding: 15px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
}

.rail-panel strong {
  display: block;
  margin: 7px 0 7px;
  font-size: 15px;
}

.rail-panel.tone {
  color: var(--white);
  background: var(--deep-purple);
  border-color: var(--deep-purple);
}

.rail-panel.tone .meta {
  color: #cfc9ff;
}

.rail-panel.tone strong,
.rail-panel.tone p {
  color: var(--white);
}

main {
  padding: 28px 32px 72px;
}

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

.topbar {
  margin-bottom: 18px;
}

.topbar h2 {
  max-width: 960px;
  margin: 7px 0 0;
  color: var(--posteros-black);
  font-size: 31px;
  line-height: 1.12;
}

.top-actions {
  display: flex;
  gap: 9px;
  padding-top: 6px;
}

.brief-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 14px;
  margin-bottom: 26px;
}

.hero,
.decision-card,
.section,
.endpoint-grid article,
.competitor,
.message-card,
.study {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 255px;
  gap: 20px;
  padding: 22px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--alnylam-blue), var(--alnylam-teal), var(--accent-purple));
}

.hero h3 {
  max-width: 860px;
  margin: 8px 0 12px;
  color: var(--alnylam-navy);
  font-size: 27px;
  line-height: 1.16;
}

.hero p {
  max-width: 82ch;
  font-size: 16px;
  line-height: 1.55;
}

.signal-stack {
  display: grid;
  gap: 10px;
}

.signal-stack div {
  padding: 14px;
  border-radius: 8px;
  color: var(--white);
  background: var(--deep-purple);
}

.signal-stack span {
  display: block;
  color: #d8d2ff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.signal-stack strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
}

.decision-card {
  padding: 22px;
}

.decision-card h3 {
  margin: 8px 0 11px;
  color: var(--alnylam-blue);
  font-size: 22px;
  line-height: 1.15;
}

.decision-card button {
  margin-top: 20px;
}

.section {
  margin-bottom: 26px;
  padding: 22px;
}

.section-head {
  margin-bottom: 17px;
}

.section-head h3 {
  margin: 6px 0 0;
  font-size: 24px;
  line-height: 1.14;
}

.status {
  white-space: nowrap;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--lavender);
  color: var(--deep-purple);
  font-size: 12px;
  font-weight: 800;
}

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

.endpoint-grid article {
  min-height: 176px;
  padding: 17px;
  box-shadow: none;
}

.endpoint-grid span,
.competitor .comp-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.endpoint-grid strong {
  display: block;
  margin: 9px 0 10px;
  color: var(--alnylam-navy);
  font-size: 18px;
  line-height: 1.18;
}

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

.competitor {
  padding: 18px;
  box-shadow: none;
}

.comp-head {
  padding-bottom: 13px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 13px;
}

.comp-head strong {
  display: block;
  margin-top: 5px;
  color: var(--alnylam-navy);
  font-size: 18px;
}

.competitor h4 {
  margin: 14px 0 6px;
  font-size: 13px;
  color: var(--posteros-black);
}

.counter {
  margin-top: 14px;
  padding: 13px;
  border-radius: 8px;
  background: var(--lavender);
}

.counter span {
  color: var(--accent-purple);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.counter p {
  margin-top: 7px;
  color: var(--posteros-black);
  font-weight: 700;
}

.competitor.pressure {
  color: var(--white);
  background: var(--panel-purple);
  border-color: var(--panel-purple);
}

.competitor.pressure .comp-head {
  border-color: rgba(255, 255, 255, 0.18);
}

.competitor.pressure .comp-head span,
.competitor.pressure .comp-head strong {
  color: var(--white);
}

.competitor.pressure ul,
.study.questions ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.65;
  font-size: 14px;
}

.strategy-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr 0.95fr;
  gap: 14px;
}

.message-card {
  padding: 18px;
  box-shadow: none;
}

.message-card h4,
.study h4 {
  margin: 8px 0 10px;
  color: var(--alnylam-navy);
  font-size: 19px;
  line-height: 1.2;
}

.document-impact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding: 15px;
  border-radius: 8px;
  background: #f7f7fb;
  border: 1px solid var(--border);
}

.document-impact h4 {
  margin: 5px 22px 5px 0;
  font-size: 16px;
}

.asset-chip {
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--posteros-black);
  font-size: 12px;
  font-weight: 800;
}

.asset-chip.high {
  color: var(--white);
  border-color: var(--risk);
  background: var(--risk);
}

.studio {
  background: var(--deep-purple);
  border-color: var(--deep-purple);
}

.studio .section-head h3 {
  color: var(--white);
}

.studio .meta {
  color: #cfc9ff;
}

.studio .status {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.95fr;
  gap: 14px;
}

.study {
  padding: 18px;
  box-shadow: none;
}

.study.selected {
  border-color: var(--alnylam-teal);
  background: #effafa;
}

.study-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.study-meta b {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--success);
  border: 1px solid #c9eee8;
  background: var(--white);
  font-size: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
}

th,
td {
  padding: 15px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 13px;
  line-height: 1.4;
}

th {
  color: var(--muted);
  background: #fbfbfd;
  font-size: 11px;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

td:last-child {
  color: var(--success);
  font-weight: 900;
}

@media (max-width: 1120px) {
  body {
    grid-template-columns: 1fr;
  }

  .rail {
    position: static;
    height: auto;
  }

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

  .brief-grid,
  .hero,
  .endpoint-grid,
  .competitor-grid,
  .strategy-layout,
  .studio-grid,
  .topbar,
  .section-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .top-actions {
    padding-top: 0;
  }

  .status {
    white-space: normal;
  }
}

@media (max-width: 680px) {
  main {
    padding: 22px 18px 52px;
  }

  .topbar h2 {
    font-size: 26px;
  }

  .hero h3 {
    font-size: 23px;
  }
}
