:root {
  --paper: #f6efe4;
  --paper-2: #efe4d4;
  --ink: #1f2320;
  --muted: #5b625c;
  --panel: #fffaf2;
  --line: #d8ccba;
  --teal: #166b5f;
  --teal-2: #0f5147;
  --coral: #bb4a43;
  --gold: #d99a2b;
  --violet: #5a50a0;
  --good: #2f7555;
  --warn: #a56b16;
  --bad: #a63636;
  --shadow: 0 18px 44px rgba(42, 35, 25, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 28px;
  background: rgba(246, 239, 228, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: #fffaf2;
  font-size: 13px;
}

nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

nav a:hover {
  background: var(--panel);
  color: var(--ink);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: 44px;
  min-height: calc(100vh - 64px);
  padding: 54px 6vw 44px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 64px;
  line-height: 0.96;
}

h2 {
  margin-bottom: 12px;
  font-size: 38px;
  line-height: 1.05;
}

h3 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.2;
}

.lede {
  max-width: 560px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 20px;
}

.hero-actions,
.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
}

.button.primary {
  background: var(--teal);
  color: #fffaf2;
}

.button.primary:hover {
  background: var(--teal-2);
}

.button.secondary {
  background: var(--panel);
  border-color: var(--line);
  color: var(--ink);
}

.button.secondary:hover {
  border-color: var(--teal);
}

.button.full {
  width: 100%;
}

.hero-visual {
  align-self: stretch;
  min-height: 420px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  object-fit: cover;
}

.support-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.support-strip > div {
  padding: 18px 6vw;
  background: var(--panel);
}

.support-strip strong,
.support-strip span {
  display: block;
}

.support-strip span {
  color: var(--muted);
}

.support-strip a {
  color: var(--teal);
  font-weight: 800;
}

.workbench,
.patterns,
.plan,
.resources,
.calculator {
  padding: 76px 6vw;
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.section-head.compact {
  margin-bottom: 20px;
}

.tool-grid,
.plan-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 20px;
}

.panel,
.card,
.resource {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(42, 35, 25, 0.06);
}

.panel {
  padding: 22px;
}

.checklist {
  display: grid;
  gap: 10px;
}

.checklist button {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font-weight: 700;
}

.checklist button:hover {
  border-color: var(--teal);
}

.checklist button.active {
  border-color: var(--teal);
  background: #e9f1ed;
  color: var(--teal-2);
}

.score-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.score-label {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.meter {
  --angle: calc(var(--score) * 18deg);
  display: grid;
  width: 152px;
  height: 152px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--teal) var(--angle), var(--paper-2) 0);
}

.meter span {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border-radius: 50%;
  background: var(--panel);
  font-size: 42px;
  font-weight: 900;
}

.score-panel p:not(.score-label) {
  color: var(--muted);
}

.calculator {
  padding-top: 20px;
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
}

.exposure {
  display: grid;
  min-height: 72px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fffaf2;
  font-size: 28px;
  font-weight: 900;
}

.patterns {
  background: #fcf7ef;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.card {
  padding: 20px;
}

.tag {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--violet);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
}

.plan-output textarea {
  width: 100%;
  min-height: 270px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
  color: var(--ink);
}

.micro {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.resources {
  background: var(--paper-2);
}

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

.resource {
  display: grid;
  gap: 8px;
  min-height: 146px;
  padding: 20px;
  text-decoration: none;
}

.resource:hover {
  border-color: var(--teal);
}

.resource span {
  color: var(--muted);
}

footer {
  padding: 28px 6vw 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

footer p {
  max-width: 980px;
  margin-bottom: 8px;
}

footer a {
  color: var(--teal);
  font-weight: 800;
}

@media (max-width: 980px) {
  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 32px;
  }

  .hero,
  .tool-grid,
  .plan-grid,
  .support-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 320px;
  }

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

@media (max-width: 640px) {
  .topbar {
    position: static;
    align-items: flex-start;
    padding: 14px 18px;
  }

  nav {
    justify-content: flex-start;
  }

  .hero,
  .workbench,
  .patterns,
  .plan,
  .resources,
  .calculator,
  footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 28px;
  }

  .lede {
    font-size: 18px;
  }

  .cards,
  .resource-grid,
  .calc-grid {
    grid-template-columns: 1fr;
  }

  .support-strip > div {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-actions .button,
  .button-row .button {
    width: 100%;
  }
}
