:root {
  --ink: #1f2a32;
  --muted: #63707a;
  --line: #d9e1e6;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --blue: #163a5f;
  --teal: #28766f;
  --coral: #c96045;
  --amber: #c79a31;
  --green: #557c44;
  --shadow: 0 18px 55px rgba(24, 45, 63, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(31, 42, 50, 0.09);
  background: rgba(251, 250, 246, 0.93);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 1 auto;
  min-width: 0;
}

.brand-mark-logo {
  display: block;
  width: 46px;
  height: 42px;
  object-fit: contain;
}

.brand-wordmark {
  display: block;
  width: clamp(168px, 19vw, 248px);
  height: auto;
  max-height: 42px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--ink);
}

.button,
.ghost-button,
.text-button,
.icon-button {
  border: 0;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 750;
  box-shadow: none;
}

.button.primary {
  background: var(--blue);
}

.button.accent {
  background: var(--teal);
}

.button.small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

.button.full {
  width: 100%;
}

.ghost-button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-weight: 700;
}

.text-button {
  padding: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 800;
}

.icon-button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #eef3f1;
  color: var(--ink);
  font-weight: 800;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: clamp(26px, 5vw, 74px);
  align-items: center;
  padding: clamp(38px, 6vw, 82px) clamp(18px, 4vw, 56px) 34px;
  background: var(--paper);
}

.hero-copy {
  width: 100%;
  max-width: 760px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.2;
}

.lede {
  max-width: 660px;
  color: #4b5963;
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 26px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(31, 42, 50, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #42515b;
  font-size: 13px;
  font-weight: 760;
}

.preview-board {
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 520px;
  padding: 28px;
  border: 1px solid rgba(31, 42, 50, 0.08);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.86)),
    url("assets/summerworthy-decision-board.png") center/cover;
}

.preview-panel {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.mini-compare {
  display: grid;
  gap: 10px;
}

.mini-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.mini-row strong {
  display: block;
}

.mini-row span {
  color: var(--muted);
  font-size: 13px;
}

.score-chip {
  padding: 6px 9px;
  border-radius: 999px;
  background: #eaf3f1;
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
}

.section {
  padding: clamp(50px, 7vw, 92px) clamp(18px, 4vw, 56px);
}

.section.tight {
  padding-top: 34px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-head.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.grid-3,
.program-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.card,
.program-card,
.detail-block,
.brief-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(31, 42, 50, 0.03);
}

.card,
.detail-block,
.brief-card {
  padding: 22px;
}

.card p,
.detail-block p,
.program-card p {
  color: var(--muted);
}

.step {
  position: relative;
  min-height: 190px;
}

.step-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 850;
}

.compare-preview,
.compare-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #f3f6f3;
  color: #34434c;
  font-size: 13px;
  text-transform: uppercase;
}

td:first-child {
  color: var(--muted);
  font-weight: 760;
}

.band {
  background: #eef5f2;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: start;
  background: #edf2ef;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.check-list li {
  padding-left: 28px;
  position: relative;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--teal);
}

.page-shell {
  padding: clamp(32px, 5vw, 72px) clamp(18px, 4vw, 56px);
}

.page-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}

.program-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
  padding: 18px;
}

.program-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f0f3f4;
  color: #53616a;
  font-size: 12px;
  font-weight: 760;
}

.meta.good {
  background: #e8f3ee;
  color: var(--green);
}

.meta.warn {
  background: #fbf2dd;
  color: #84611c;
}

.meta.caution {
  background: #fbeae3;
  color: var(--coral);
}

.program-card .actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
}

.teaser {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7faf8;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-weight: 800;
  font-size: 14px;
}

.form-error {
  color: var(--coral);
  font-weight: 750;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(24, 32, 38, 0.5);
}

.modal {
  width: min(780px, 100%);
  max-height: min(850px, 94vh);
  overflow: auto;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
  padding: 24px 24px 14px;
}

.modal-head h2 {
  margin-bottom: 0;
  font-size: clamp(25px, 4vw, 36px);
}

.progress-shell {
  height: 8px;
  background: #edf1f2;
}

.progress-bar {
  width: 0;
  height: 100%;
  background: var(--teal);
  transition: width 180ms ease;
}

.diagnostic-form {
  padding: 22px 24px 26px;
}

.question-copy {
  color: var(--muted);
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 24px;
}

.option {
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  font-weight: 740;
}

.option.selected {
  border-color: var(--teal);
  background: #eaf5f1;
}

.diagnostic-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.hidden {
  display: none !important;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: stretch;
}

.verdict {
  border-left: 5px solid var(--teal);
}

.admin-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 20px;
}

.admin-list {
  max-height: 620px;
  overflow: auto;
}

.admin-item {
  width: 100%;
  padding: 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.admin-item.active {
  background: #eaf3f1;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 130;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.report-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.metric-card {
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.metric-card strong {
  display: block;
  margin-top: 14px;
  color: var(--blue);
  font-size: 34px;
  line-height: 1;
}

.breakdown-list {
  display: grid;
  gap: 10px;
}

.breakdown-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.breakdown-row span {
  color: var(--muted);
}

.report-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

@media (max-width: 920px) {
  .site-header {
    align-items: start;
  }

  .brand-wordmark {
    width: clamp(150px, 28vw, 220px);
  }

  .nav-links {
    display: none;
  }

  .hero,
  .split-band,
  .detail-hero,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .preview-board {
    min-height: auto;
  }

  .grid-3,
  .program-grid,
  .feature-grid,
  .grid-2,
  .report-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
    padding: 12px 16px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark-logo {
    width: 38px;
    height: 34px;
  }

  .brand-wordmark {
    width: min(42vw, 180px);
    max-height: 34px;
  }

  .site-header .button {
    display: none;
  }

  .option-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .program-card .actions {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 36px;
    line-height: 1.04;
  }

  .hero {
    padding-right: 20px;
    padding-left: 20px;
    width: 100%;
    max-width: 100vw;
  }

  .hero-copy {
    max-width: calc(100vw - 40px);
  }

  .preview-board {
    padding: 16px;
  }

  .preview-panel {
    padding: 16px;
  }

  .mini-row {
    grid-template-columns: 1fr;
  }

  .lede {
    max-width: min(100%, 330px);
    font-size: 17px;
  }
}
