:root {
  --ink: #1d2733;
  --muted: #5a6776;
  --paper: #ffffff;
  --soft: #f3f6f9;
  --line: #dde3ea;
  --brand: #0f5f73;
  --brand-ink: #ffffff;
  --accent: #e8f3f6;
  --warn: #fff6e5;
  --warn-line: #f0c36d;
  --good: #e9f7ef;
  --good-line: #9fd3b5;
  --max: 68rem;
  --measure: 44rem;
}

* { box-sizing: border-box; }

html { font-size: 112.5%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

a { color: var(--brand); }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
main > .wrap > :not(.hero):not(.trust-strip):not(.feature-split):not(.learning-path):not(.chooser):not(.progress-panel):not(.mini-game):not(.tool-dashboard):not(.cards) {
  max-width: var(--measure);
}

header.site {
  background: var(--brand);
  color: var(--brand-ink);
}
header.site .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem 1rem; padding-top: .75rem; padding-bottom: .75rem;
}
header.site a { color: var(--brand-ink); text-decoration: none; }
.brand { font-weight: 700; font-size: 1.15rem; letter-spacing: .01em; }
nav.site a { margin-left: 1rem; font-size: .95rem; }
nav.site a:first-child { margin-left: 0; }

main { padding: 1.5rem 0 2.5rem; }

h1 { font-size: 1.75rem; line-height: 1.25; margin: .5rem 0 1rem; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 2rem 0 .75rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: .35rem; }

.lead { font-size: 1.1rem; color: var(--muted); }
.eyebrow { color: var(--brand); font-size: .82rem; font-weight: 800; letter-spacing: .08em; margin-bottom: .6rem; text-transform: uppercase; }
.meta { font-size: .85rem; color: var(--muted); margin-bottom: 1.5rem; }

.hero {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  margin: 1rem 0 1.75rem;
}
.hero-copy { max-width: 40rem; }
.hero h1 { font-size: clamp(2rem, 4vw, 3.45rem); line-height: 1.08; margin-top: 0; }
.hero .lead { font-size: 1.17rem; max-width: 36rem; }
.hero-media { max-width: 32rem; margin: 0; border-radius: .5rem; overflow: hidden; box-shadow: 0 1.2rem 3rem rgba(29, 39, 51, .16); }
.hero-media img, .section-photo img, .page-art img { display: block; width: 100%; height: auto; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; margin-top: 1rem; }

.page-art {
  margin: .5rem 0 1.25rem;
  border-radius: .5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--soft);
}
.page-art img { aspect-ratio: 3 / 1.35; object-fit: cover; }

.trust-strip {
  display: grid;
  gap: .75rem;
  margin: 1.25rem 0 1.5rem;
}
.trust-strip div {
  background: var(--good);
  border: 1px solid var(--good-line);
  border-radius: .5rem;
  padding: .85rem .95rem;
}
.trust-strip strong { display: block; color: var(--ink); line-height: 1.2; }
.trust-strip span { display: block; color: var(--muted); font-size: .9rem; line-height: 1.35; margin-top: .15rem; }

.chooser, .progress-panel, .mini-game, .next-rail {
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: linear-gradient(135deg, #ffffff 0%, #f4faf7 100%);
  padding: 1rem;
  margin: 1.5rem 0;
}
.chooser h2, .progress-panel h2, .mini-game h2, .next-rail h2 { margin-top: 0; }
.choice-buttons { display: grid; gap: .6rem; margin: 1rem 0; }
.choice-buttons button {
  width: 100%;
  min-height: 3rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: .7rem .8rem;
  text-align: left;
}
.choice-buttons button:hover, .choice-buttons button.active {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}
.choice-result {
  display: grid;
  gap: .35rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: .45rem;
  padding: .85rem .95rem;
}
.choice-result span { color: var(--muted); }
.mini-cta {
  justify-self: start;
  color: var(--brand-ink);
  background: var(--brand);
  border-radius: .4rem;
  font-weight: 700;
  margin-top: .25rem;
  padding: .45rem .7rem;
  text-decoration: none;
}
.progress-meter {
  height: .75rem;
  overflow: hidden;
  border-radius: 999px;
  background: #dce7df;
  margin: 1rem 0;
}
.progress-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #2d9b70);
  transition: width .25s ease;
}
.progress-list { list-style: none; padding: 0; margin: 0; }
.progress-list li { margin: 0; border-top: 1px solid var(--line); }
.progress-list li:first-child { border-top: 0; }
.progress-list label { display: flex; gap: .6rem; align-items: flex-start; padding: .7rem 0; cursor: pointer; }
.progress-list input { margin-top: .35rem; accent-color: var(--brand); }
.progress-panel.complete { border-color: var(--good-line); background: var(--good); }
.pill-links { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .75rem; }
.pill-links a {
  border: 1px solid var(--brand);
  border-radius: 999px;
  color: var(--brand);
  font-weight: 700;
  padding: .45rem .75rem;
  text-decoration: none;
}
.pill-links a:hover { background: var(--brand); color: var(--brand-ink); }

.tool-dashboard {
  display: grid;
  gap: 1rem;
  align-items: stretch;
  margin: 1.5rem 0;
}
.dash-copy {
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--soft);
  padding: 1rem;
}
.dash-copy h2 { margin-top: 0; }
.mini-charts { display: grid; gap: .8rem; }
.chart-card {
  display: grid;
  gap: .45rem;
  align-content: start;
  min-height: 14rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--paper);
  color: var(--ink);
  padding: .95rem;
  text-decoration: none;
}
.chart-card:hover { border-color: var(--brand); box-shadow: 0 .5rem 1.5rem rgba(29, 39, 51, .08); }
.chart-title { color: var(--brand); font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.chart-card strong { color: var(--ink); line-height: 1.25; }
.chart-card small { color: var(--muted); font-size: .86rem; line-height: 1.35; }
.donut {
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: conic-gradient(#c83e35 calc(var(--pct) * 1%), #f0c36d 0 82%, #dce7df 0);
  margin: .2rem 0;
}
.donut b {
  display: grid;
  place-items: center;
  width: 3.45rem;
  height: 3.45rem;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: .95rem;
}
.scan-bars { display: grid; gap: .45rem; margin: .4rem 0 .55rem; }
.scan-bars i {
  display: block;
  height: .65rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand) 0 18%, #dce7df 18% 100%);
}
.scan-bars i:nth-child(2) { background: linear-gradient(90deg, #f0c36d 0 46%, #dce7df 46% 100%); }
.scan-bars i:nth-child(3) { background: linear-gradient(90deg, #2d9b70 0 70%, #dce7df 70% 100%); }
.scan-bars i:nth-child(4) { background: linear-gradient(90deg, #c83e35 0 28%, #dce7df 28% 100%); }
.timeline-chart {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .35rem;
  align-items: end;
  height: 5rem;
  margin: .2rem 0 .55rem;
}
.timeline-chart i {
  display: block;
  border-radius: .35rem .35rem 0 0;
  background: var(--brand);
}
.timeline-chart i:nth-child(1) { height: 35%; opacity: .45; }
.timeline-chart i:nth-child(2) { height: 65%; opacity: .75; }
.timeline-chart i:nth-child(3) { height: 95%; background: #2d9b70; }

.box { background: var(--soft); border: 1px solid var(--line); border-radius: .5rem; padding: 1rem 1.1rem; margin: 1.25rem 0; }
.box > :last-child { margin-bottom: 0; }
.box.warn { background: var(--warn); border-color: var(--warn-line); }
.box.note { background: var(--accent); border-color: #bfe0e8; }

.cards { display: grid; gap: .9rem; grid-template-columns: 1fr; margin: 1rem 0 1.5rem; }
@media (min-width: 40rem) { .cards { grid-template-columns: 1fr 1fr; } }
.card { display: block; border: 1px solid var(--line); border-radius: .5rem; padding: .9rem 1rem; text-decoration: none; color: var(--ink); background: var(--paper); }
.card:hover { border-color: var(--brand); }
.card strong { display: block; color: var(--brand); margin-bottom: .25rem; }
.card span { font-size: .92rem; color: var(--muted); }

.feature-split, .learning-path {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  margin: 2rem 0;
}
.feature-split h2, .learning-path h2 { margin-top: 0; }
.section-photo { margin: 0; border-radius: .5rem; overflow: hidden; border: 1px solid var(--line); background: var(--soft); }
.steps { display: grid; gap: .75rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.steps li { border-left: 4px solid var(--brand); background: var(--soft); padding: .75rem .9rem; margin: 0; border-radius: .4rem; }
.steps strong { display: block; color: var(--ink); }
.steps span { display: block; color: var(--muted); font-size: .92rem; line-height: 1.45; margin-top: .15rem; }

.affiliate-note { font-size: .88rem; color: var(--muted); border-left: 3px solid var(--warn-line); padding-left: .75rem; margin: 0 0 1.5rem; }

footer.site { border-top: 1px solid var(--line); background: var(--soft); font-size: .88rem; color: var(--muted); }
footer.site .wrap { padding-top: 1.25rem; padding-bottom: 1.5rem; }
footer.site p { margin-bottom: .6rem; }
footer.site nav a { margin-right: 1rem; }

/* tools */
form.tool { background: var(--soft); border: 1px solid var(--line); border-radius: .5rem; padding: 1rem 1.1rem; margin: 1.25rem 0; }
form.tool label { display: block; font-weight: 600; margin: .75rem 0 .3rem; }
form.tool label.check { font-weight: 400; display: flex; gap: .5rem; align-items: center; }
form.tool select, form.tool input[type=number] { width: 100%; font: inherit; padding: .55rem .6rem; border: 1px solid var(--line); border-radius: .4rem; background: var(--paper); color: var(--ink); }
form.tool .row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
form.tool button { font: inherit; font-weight: 600; margin-top: 1rem; padding: .65rem 1.2rem; border: 0; border-radius: .4rem; background: var(--brand); color: var(--brand-ink); cursor: pointer; }
form.tool button.secondary { background: transparent; color: var(--brand); border: 1px solid var(--brand); margin-right: .5rem; }
form.tool .hint { font-size: .9rem; color: var(--muted); margin: .5rem 0 0; }
.result:not(:empty) { margin-top: 1rem; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: .4rem; padding: .8rem 1rem; }
.result .big { font-size: 1.1rem; }
.result > :last-child { margin-bottom: 0; }
.fine { font-size: .85rem; color: var(--muted); }
.result-graph { display: grid; gap: .65rem; margin: 1rem 0; }
.util-bar {
  display: grid;
  gap: .35rem;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: .45rem;
  padding: .65rem;
}
.util-bar div { display: flex; flex-wrap: wrap; gap: .35rem .6rem; justify-content: space-between; }
.util-bar span { color: var(--muted); font-size: .88rem; }
.util-bar i {
  display: block;
  height: .7rem;
  overflow: hidden;
  border-radius: 999px;
  background: #dce7df;
}
.util-bar b { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.util-bar.good b { background: #2d9b70; }
.util-bar.ok b { background: #73b97c; }
.util-bar.warn b { background: #f0c36d; }
.util-bar.bad b { background: #c83e35; }
.goal-markers { display: grid; grid-template-columns: .7fr 1.4fr 2.8fr 1.2fr; color: var(--muted); font-size: .75rem; line-height: 1; }
.date-graph {
  display: grid;
  gap: .45rem;
  margin: 1rem 0;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: var(--soft);
}
.date-line {
  position: relative;
  height: .85rem;
  border-radius: 999px;
  background: #dce7df;
}
.date-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #2d9b70);
}
.date-line b {
  position: absolute;
  top: 1rem;
  transform: translateX(-50%);
  color: var(--brand);
  font-size: .75rem;
}
.date-labels {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: .82rem;
  padding-top: .85rem;
}

/* analyzer */
div.tool { background: var(--soft); border: 1px solid var(--line); border-radius: .5rem; padding: 1rem 1.1rem; margin: 1rem 0 1.5rem; }
div.tool label { display: block; font-weight: 600; margin: .5rem 0 .4rem; }
div.tool input[type=file] { font: inherit; width: 100%; padding: .6rem; background: var(--paper); border: 2px dashed var(--brand); border-radius: .4rem; }
div.tool details { margin-top: 1rem; }
div.tool summary { cursor: pointer; color: var(--brand); font-weight: 600; }
div.tool textarea { width: 100%; font: .85rem ui-monospace, Menlo, Consolas, monospace; padding: .5rem; border: 1px solid var(--line); border-radius: .4rem; }
div.tool button, p.no-print button { font: inherit; font-weight: 600; margin-top: .75rem; padding: .6rem 1.1rem; border: 0; border-radius: .4rem; background: var(--brand); color: var(--brand-ink); cursor: pointer; }
p.no-print button.secondary { background: transparent; color: var(--brand); border: 1px solid var(--brand); margin-right: .5rem; }
.report { border-top: 3px solid var(--brand); margin-top: 1.5rem; padding-top: .5rem; }
.report h3 { margin-top: 1.4rem; }
.report h3.sev-high { color: #a3261b; }
.report h3.sev-medium { color: #8a5a00; }
.table { overflow-x: auto; }
.report table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.report th, .report td { text-align: left; border-bottom: 1px solid var(--line); padding: .45rem .5rem; vertical-align: top; }
.report th { background: var(--soft); }
ul.checklist { list-style: "☐  "; }
@media print {
  header.site, footer.site, .tool, .no-print, .lead, .box.note, h2:not(.report h2), .report ~ h2, .report ~ ul, .report ~ p { display: none !important; }
  body { font-size: 11pt; }
  a { color: inherit; }
}

a.cta { display: inline-block; background: var(--brand); color: var(--brand-ink); text-decoration: none; font-weight: 700; padding: .8rem 1.3rem; border-radius: .5rem; margin: .5rem 0 .25rem; }
a.cta:hover { filter: brightness(1.1); }
a.cta.secondary { background: transparent; color: var(--brand); border: 1px solid var(--brand); }

@media (min-width: 44rem) {
  .trust-strip { grid-template-columns: repeat(3, 1fr); }
  .choice-buttons { grid-template-columns: 1fr 1fr; }
  .mini-charts { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 56rem) {
  .hero { grid-template-columns: minmax(0, .9fr) minmax(22rem, 1.1fr); gap: 2rem; }
  .hero-media { max-width: none; }
  .tool-dashboard { grid-template-columns: .72fr 1.28fr; gap: 1.25rem; }
  .feature-split, .learning-path { grid-template-columns: minmax(0, 1fr) minmax(18rem, .78fr); gap: 2rem; }
  .learning-path { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); }
  .learning-path > div { order: 2; }
}

@media (max-width: 34rem) {
  html { font-size: 106.25%; }
  header.site .wrap { align-items: flex-start; }
  nav.site { display: flex; flex-wrap: wrap; gap: .35rem .75rem; }
  nav.site a { margin-left: 0; }
  .hero { margin-top: .5rem; }
  .hero h1 { font-size: 2rem; }
  .actions { display: grid; }
  a.cta { text-align: center; width: 100%; }
}
