/* Codexo: "marked-up assessment" design system
   Paper + spruce ink + highlighter. Boldness lives in the hero matrix; the rest stays quiet. */

:root {
  --paper: #f4f6f1;
  --paper-2: #e7ece4;
  --ink: #18302c;
  --ink-soft: #4a5d58;
  --rule: #c9d3cb;
  --grid: #dbe3dc;
  --marker: #f2d53c;
  --marker-ink: #18302c;

  --font-head: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Newsreader", Georgia, "Times New Roman", serif;

  --max: 1120px;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #13221f;
    --paper-2: #1a2d29;
    --ink: #e9eee7;
    --ink-soft: #a9b8b2;
    --rule: #2f4540;
    --grid: #22362f;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;          /* 18px */
  line-height: 1.6;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 {
  font-family: var(--font-head);
  margin: 0;
  line-height: 1.05;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2rem, 4.4vw, 3.75rem);      /* 32 → 60 */
  font-weight: 850;
  font-variation-settings: "wdth" 112;
  letter-spacing: -0.025em;
}
h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);         /* 32 → 48 */
  font-weight: 800;
  font-variation-settings: "wdth" 112;
  letter-spacing: -0.02em;
  margin-bottom: 0.9em;
}
h3 {
  font-size: 1.3125rem;                        /* 21 */
  font-weight: 700;
  font-variation-settings: "wdth" 100;
  line-height: 1.2;
}
p { margin: 0 0 1em; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--marker);
  outline-offset: 3px;
  border-radius: 2px;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }
.narrow { max-width: 760px; }

.lead {
  font-size: 1.3125rem;                        /* 21 */
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 34em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 650;
  font-size: 1rem;
  font-variation-settings: "wdth" 106;
  line-height: 1;
  padding: 16px 22px;
  border-radius: 6px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transition: background-color .15s, color .15s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-small { padding: 10px 14px; font-size: .9375rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.nav nav { display: flex; align-items: center; gap: 28px; }
.nav nav a:not(.btn) {
  font-family: var(--font-head);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}
.nav nav a:not(.btn):hover { color: var(--ink); }
.brand {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.375rem;
  font-variation-settings: "wdth" 125;
  letter-spacing: -0.03em;
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; }
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) {
  .hero { padding: 80px 0 112px; }
  .hero-grid { grid-template-columns: 1.25fr 1fr; gap: 64px; }
}
.hero h1 { margin-bottom: 0.45em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- The matrix (the one bold element) ---------- */
.matrix {
  position: relative;
  margin: 0;
  max-width: 520px;
  width: 100%;
  justify-self: center;
}
.plot-wrap { position: relative; padding-left: 26px; }   /* room for Y axis */
.plot {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 2px solid var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 10% 10%;
  background-position: -1px -1px;
}
/* centre cross-hairs */
.plot::before, .plot::after {
  content: ""; position: absolute; background: var(--ink); z-index: 1;
}
.plot::before { left: 50%; top: 0; bottom: 0; width: 1.5px; transform: translateX(-50%); }
.plot::after  { top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%); }

.quad {
  position: absolute;
  z-index: 2;
  font-family: var(--font-head);
  font-weight: 750;
  font-size: .8125rem;
  font-variation-settings: "wdth" 110;
  padding: 10px 12px;
  color: var(--ink-soft);
}
.q-win  { top: 0; left: 0; color: var(--marker-ink); }
.q-bet  { top: 0; right: 0; }
.q-fill { bottom: 0; left: 0; }
.q-skip { bottom: 0; right: 0; }

/* highlighter wash over the quick-wins quadrant */
.wash {
  position: absolute; top: 0; left: 0; width: 50%; height: 50%;
  background: var(--marker);
  mix-blend-mode: multiply;      /* grid shows through, like real highlighter */
  z-index: 0;
}
@media (prefers-color-scheme: dark) {
  .wash { mix-blend-mode: normal; opacity: .92; }
}
/* points inside the highlighted quadrant stay dark on yellow in both modes */
.dot.win { background: var(--marker-ink); box-shadow: 0 0 0 3px var(--marker); }
.dot.win b { color: var(--marker-ink); }

.dot {
  position: absolute;
  z-index: 3;
  left: var(--x); top: var(--y);
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 3px var(--paper);
}
.dot b {
  position: absolute;
  left: 20px; top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: var(--font-head);
  font-weight: 550;
  font-size: .8125rem;
  font-variation-settings: "wdth" 96;
  line-height: 1;
  color: var(--ink);
}
.dot.left b { left: auto; right: 20px; }

.axis {
  display: flex; justify-content: space-between;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8125rem;
  color: var(--ink-soft);
}
.axis-x { margin: 8px 0 0 26px; }
.axis-y {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 18px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.matrix figcaption {
  margin-top: 14px;
  font-size: 1rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* one orchestrated moment: dots plot in, then quick wins get highlighted */
@media (prefers-reduced-motion: no-preference) {
  .dot {
    animation: plot .45s cubic-bezier(.2, .9, .3, 1.3) both;
    animation-delay: calc(300ms + var(--i) * 140ms);
  }
  .dot b {
    animation: fade .4s ease-out both;
    animation-delay: calc(450ms + var(--i) * 140ms);
  }
  .plot .wash {
    transform-origin: left center;
    animation: wash .7s cubic-bezier(.6, 0, .2, 1) both;
    animation-delay: 1.45s;
  }
}
@keyframes plot { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wash { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tint { background: var(--paper-2); }
@media (min-width: 960px) { .section { padding: 120px 0; } }

/* Outcomes: three columns, each topped by a heavy rule */
.outcomes { display: grid; gap: 40px; }
@media (min-width: 768px) { .outcomes { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.outcome { border-top: 4px solid var(--ink); padding-top: 20px; }
.outcome h3 {
  font-size: 1.75rem;
  font-weight: 800;
  font-variation-settings: "wdth" 112;
  margin-bottom: .5em;
}
.outcome p { color: var(--ink-soft); max-width: 30em; margin: 0; }

/* Steps: a real sequence, so numbered, joined by a line */
.steps {
  list-style: none; margin: 0; padding: 0;
  counter-reset: step;
  display: grid; gap: 36px;
  position: relative;
}
.steps li { counter-increment: step; position: relative; padding-left: 64px; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -4px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.125rem;
  z-index: 1;
}
.steps::before {                 /* vertical connector on mobile */
  content: ""; position: absolute;
  left: 21px; top: 20px; bottom: 20px; width: 2px;
  background: var(--ink);
}
.steps h3 { margin-bottom: .4em; }
.steps p { color: var(--ink-soft); margin: 0; max-width: 26em; }
.steps li:last-child::before { background: var(--marker); color: var(--marker-ink); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .steps li { padding-left: 0; padding-top: 68px; }
  .steps li::before { top: 0; }
  .steps::before {
    left: 22px; right: calc((100% - 96px) / 4 - 22px);
    top: 21px; bottom: auto; width: auto; height: 2px;
  }
}

/* Plans: deliberately unequal */
.plans { display: grid; gap: 24px; align-items: stretch; }
@media (min-width: 820px) { .plans { grid-template-columns: 1fr 1.12fr; } }
.plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: 36px 32px 32px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
}
.plan h3 { font-size: 1.5rem; font-weight: 800; font-variation-settings: "wdth" 110; }
.price {
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 900;
  font-variation-settings: "wdth" 120;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 18px 0 14px;
}
.plan-desc { color: var(--ink-soft); }
.plan .btn { margin-top: auto; text-align: center; }
.plan-full { background: var(--ink); color: var(--paper); }
.plan-full .plan-desc { color: color-mix(in srgb, var(--paper) 78%, var(--ink)); }
.btn-invert { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-invert:hover { background: transparent; color: var(--paper); }
.plan-full :focus-visible { outline-color: var(--marker); }
.badge {
  position: absolute; top: -15px; left: 30px;
  margin: 0;
  background: var(--marker); color: var(--marker-ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .875rem;
  padding: 5px 12px;
  border-radius: 4px;
  transform: rotate(-2deg);
}
.checks { list-style: none; padding: 0; margin: 8px 0 32px; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: .5em;
  width: 14px; height: 7px;
  border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
  transform: rotate(-45deg);
}
.note { margin-top: 32px; color: var(--ink-soft); }
.note a { color: var(--ink); font-weight: 500; }

/* Booking */
.calendly-embed {
  margin-top: 32px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
  overflow: hidden;
  min-height: 160px;
}
.placeholder { margin: 0; padding: 56px 24px; text-align: center; color: var(--ink-soft); }

/* Two-column sections: heading left, content right */
.faq-grid, .split { display: grid; gap: 8px; }
@media (min-width: 900px) {
  .faq-grid, .split { grid-template-columns: 1fr 2fr; gap: 64px; align-items: start; }
}
.split-body { max-width: 36em; }
.split-body p { color: var(--ink-soft); }
.split-body p:last-child { margin-bottom: 0; }
.tasks { list-style: none; padding: 0; margin: 0 0 1.25em; border-top: 2px solid var(--ink); }
.tasks li {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.125rem;
}

/* FAQ */
.faq-list { border-top: 2px solid var(--ink); }
details { border-bottom: 1px solid var(--rule); }
summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0;
  font-family: var(--font-head);
  font-weight: 650;
  font-size: 1.1875rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-weight: 500; font-size: 1.6rem; line-height: 1;
  transition: transform .2s ease;
}
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 24px; color: var(--ink-soft); max-width: 36em; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 32px 0; font-size: 1rem; color: var(--ink-soft); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-row p { margin: 0; }
.footer-row nav { display: flex; gap: 24px; }

/* Legal pages */
.legal { padding: 72px 0 96px; }
.legal h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); margin-bottom: .4em; }
.legal h2 { font-size: 1.5rem; margin: 2em 0 .6em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal li { margin-bottom: .4em; }
.draft-banner {
  background: var(--marker); color: var(--marker-ink);
  border-radius: 6px; padding: 12px 16px; margin-bottom: 32px; font-size: 1rem;
}

/* Mobile */
@media (max-width: 680px) {
  .nav nav { gap: 16px; }
  .nav nav a:not(.btn) { display: none; }
  .hero { padding: 48px 0 72px; }
  .lead { font-size: 1.1875rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
