: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));
  overflow: hidden;
}

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

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

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(251, 252, 251, 0.96) 0%, rgba(251, 252, 251, 0.83) 42%, rgba(251, 252, 251, 0.22) 100%),
    linear-gradient(0deg, rgba(23, 33, 39, 0.2), rgba(23, 33, 39, 0.02));
}

.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: #35434b;
  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(23, 33, 39, 0.22);
  background: rgba(255, 255, 255, 0.68);
}

.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;
}

@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 {
    grid-template-columns: 1fr;
  }

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

@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(251, 252, 251, 0.96) 0%, rgba(251, 252, 251, 0.84) 68%, rgba(251, 252, 251, 0.45) 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;
  }
}
