/* Marcean
   Friendly product surface, built tidy: flat colour blocks, 12px corners, no shadows.
   Manrope throughout. Forest green carries the weight, mint marks what has been
   captured, and nothing on the page needs JavaScript. See DESIGN.md. */

@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --field: #F6F8F3;
  --surface: #FFFFFF;
  --ink: #1F3D2B;
  --ink-2: #4B5A51;
  --mint: #3ACE86;
  --mint-50: #EDFAF3;
  --mint-100: #D8F3E4;
  --mint-ink: #2E7D52;
  --butter: #F8ECBF;
  --line: #DEE6DF;
  --line-soft: #EDF1ED;
  --on-ink: #F4F8F4;

  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --t1: clamp(2.15rem, 1.4rem + 2.9vw, 3.55rem);
  --t2: clamp(1.7rem, 1.35rem + 1.5vw, 2.5rem);
  --t3: clamp(1.15rem, 1.06rem + 0.35vw, 1.35rem);
  --body: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --small: 0.9rem;

  --s1: 0.5rem;
  --s2: 0.85rem;
  --s3: 1.25rem;
  --s4: 2rem;
  --s5: 3.25rem;
  --s6: 5rem;
  --s7: 7.5rem;

  --wrap: 1120px;
  --measure: 62ch;
  --r: 12px;
  --r-lg: 16px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--field);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--body);
  font-weight: 500;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
}

::selection { background: var(--mint-100); color: var(--ink); }
:root { caret-color: var(--mint-ink); scrollbar-color: var(--mint-ink) var(--field); }

h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 1.04;
  text-wrap: balance;
}
h1 { font-size: var(--t1); letter-spacing: -0.038em; }
h2 { font-size: var(--t2); letter-spacing: -0.028em; }
h3 { font-size: var(--t3); letter-spacing: -0.018em; line-height: 1.25; }

p { margin: 0 0 var(--s2); max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 700; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }

:focus-visible {
  outline: 3px solid var(--mint-ink);
  outline-offset: 3px;
  border-radius: 6px;
}

img, svg { display: block; max-width: 100%; }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: var(--s2); top: var(--s2); z-index: 50;
  padding: var(--s1) var(--s3);
  background: var(--ink); color: var(--on-ink); border-radius: 8px;
}

.wrap { width: min(100% - 3rem, var(--wrap)); margin-inline: auto; }

/* ---------- header ---------- */
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: 4.75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-decoration: none;
}
.brand-mark {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--ink);
  position: relative;
  flex: 0 0 auto;
}
.brand-mark::after {
  content: "";
  position: absolute; inset: 7px;
  border-radius: 3px;
  background: var(--mint);
}
/* the head's rules live in chrome.css, with the component they belong to */

/* ---------- buttons: in chrome.css, with the component ---------- */

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 3.5rem;
  align-items: center;
  padding: var(--s5) 0 var(--s4);
}
.hero h1 { margin-bottom: var(--s3); max-width: none; text-wrap: balance; }
.hero .standfirst {
  font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.15rem);
  color: var(--ink-2);
  max-width: 42ch;
  margin-bottom: var(--s4);
}
.hero-price {
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.08rem);
  color: var(--ink); max-width: 42ch; margin-bottom: var(--s4);
}
.hero-price strong { font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: var(--s3); }
.hero-note {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: var(--small); font-weight: 600; color: var(--ink-2);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); flex: 0 0 auto; }

/* the diagram: one paper page becoming one row */
.panel {
  background: var(--mint-50);
  border: 1px solid var(--mint-100);
  border-radius: var(--r-lg);
  padding: var(--s4) var(--s3);
}
.diagram { display: flex; align-items: center; justify-content: center; gap: 1.1rem; }

.doc {
  width: 176px;
  flex: 0 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem;
  transform: rotate(-2deg);
}
.doc .lab {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; color: #55655B;
}
.doc .rule { height: 5px; border-radius: 3px; background: #E7ECE7; margin: 0.4rem 0; }
.doc .rule--short { width: 55%; }
.doc .sum {
  display: flex; justify-content: space-between;
  margin-top: 0.7rem; padding-top: 0.45rem;
  border-top: 1px dashed #D8E0D8;
  font-size: 0.62rem; font-weight: 800; color: #55655B;
}

.arrow { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; }

.capture {
  width: 300px;
  flex: 0 1 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.capture-bar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  background: var(--mint-50);
  border-bottom: 1px solid var(--line);
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em;
}
.capture-bar .ok { color: var(--mint-ink); }
.capture table { width: 100%; border-collapse: collapse; }
.capture td {
  padding: 0.42rem 0.85rem;
  font-size: 0.72rem;
  border-bottom: 1px solid var(--line-soft);
  font-variant-numeric: tabular-nums;
}
.capture tr:last-child td { border-bottom: 0; }
.capture td:first-child { color: #55655B; font-weight: 600; }
.capture td:last-child { text-align: right; font-weight: 700; }
.mark {
  background: var(--mint-100);
  border-radius: 4px;
  padding: 0.05rem 0.3rem;
  margin: -0.05rem -0.3rem;
  display: inline-block;
}
@keyframes capture {
  from { background-color: transparent; }
  to { background-color: var(--mint-100); }
}
.mark { animation: capture 480ms var(--ease) both; }
.capture tr:nth-child(1) .mark { animation-delay: 100ms; }
.capture tr:nth-child(2) .mark { animation-delay: 240ms; }
.capture tr:nth-child(3) .mark { animation-delay: 380ms; }

.panel-cap {
  margin-top: var(--s3);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #3B6B52;
}

/* ---------- sections ---------- */
section { padding: var(--s6) 0; }
.section-head { max-width: 48ch; margin-bottom: var(--s4); }
.section-head h2 { margin-bottom: var(--s2); }
.section-head p { color: var(--ink-2); }

/* work: three columns, separated by rules, no cards */
.work-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s4);
}
.work-item { padding-top: var(--s3); border-top: 2px solid var(--ink); }
.work-item h3 { margin-bottom: 0.7rem; }
.work-item p { color: var(--ink-2); margin-bottom: var(--s2); }
.work-item .replaces {
  display: flex; align-items: baseline; gap: 0.4rem;
  font-size: var(--small);
  font-weight: 600;
  color: var(--ink);
}
.work-item .replaces .tick {
  color: var(--mint-ink);
  font-weight: 800;
}

/* proof: a mint band, because this is the part worth noticing */
.proof {
  background: #E7F6EE;
  border-top: 1px solid var(--mint-100);
  border-bottom: 1px solid var(--mint-100);
}
.score {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s4);
  margin-top: var(--s3);
}
.score-item { display: flex; flex-direction: column; gap: 0.35rem; }
.score-item .n {
  font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.score-item .k { font-size: var(--small); color: var(--ink-2); max-width: 30ch; }
.score-note {
  margin-top: var(--s4);
  font-size: var(--small);
  color: var(--ink-2);
  max-width: 60ch;
}

.trust {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem var(--s4);
  margin: var(--s3) 0 0;
  padding: var(--s3) 0 0;
  border-top: 1px solid var(--line);
  font-size: var(--small);
  color: var(--ink-2);
}
.trust li {
  padding-left: 1.1rem;
  position: relative;
}
.trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--mint);
}

/* price: a white card holding a definition list */
.price-card dl { margin: 0; }
.price-row {
  display: grid;
  grid-template-columns: minmax(10rem, 0.35fr) minmax(0, 1fr);
  gap: var(--s2) var(--s4);
  padding: var(--s3) 0;
  border-top: 1px solid var(--line-soft);
}
.price-row:first-child { border-top: 0; padding-top: var(--s2); }
.price-row:last-child { padding-bottom: 0; }
.price-row dt { font-weight: 800; letter-spacing: -0.015em; }
.price-row dd { margin: 0; color: var(--ink-2); }

/* fit */
.fit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s4);
}
.fit-card h3 { margin-bottom: var(--s3); }
.fit-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.7rem; }
.fit-card li { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.6rem; align-items: start; color: var(--ink-2); }
.fit-card svg { margin-top: 0.22rem; }
.fit-card--no { border-color: var(--line); }

/* process: numbered because it is a sequence */
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 0.42fr) minmax(0, 1fr);
  gap: var(--s3);
  padding: var(--s3) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  background: var(--mint-100);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 800;
}
.steps h3 { font-size: 1.05rem; }
.steps p { margin: 0; color: var(--ink-2); }

/* one person */
.person {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--s4) var(--s5);
  align-items: start;
}
.person p { color: var(--ink-2); }
.person p + p { margin-top: var(--s2); }
.person .sign {
  margin-top: var(--s3);
  font-size: var(--small);
  font-weight: 600;
  color: var(--ink-2);
}

/* contact */
.contact {
  background: var(--ink);
  color: var(--on-ink);
  padding: var(--s6) 0;
}
.contact h2 { color: #fff; max-width: 18ch; margin-bottom: var(--s2); }
.contact p { color: #CFE3D6; max-width: 52ch; }
.contact .btn {
  margin-top: var(--s3);
  background: var(--mint);
  border-color: var(--mint);
  color: var(--ink);
}
.contact .btn:hover { background: #63dda0; border-color: #63dda0; }
.contact .small { font-size: var(--small); color: #A9C6B6; margin-top: var(--s2); }

/* footer */
.foot { padding: var(--s4) 0 var(--s5); font-size: var(--small); color: var(--ink-2); }
.foot-top { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between; align-items: center; }
.foot-links { display: flex; gap: var(--s3); font-weight: 600; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-legal { margin-top: var(--s3); max-width: 72ch; }

/* legal page */
.legal { padding: var(--s5) 0 var(--s6); }
.legal h1 { font-size: var(--t2); margin-bottom: var(--s3); }
.legal h2 { font-size: 1.15rem; margin: var(--s4) 0 var(--s2); }
.legal p, .legal li { color: var(--ink-2); max-width: 70ch; }
.legal pre {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1rem 1.2rem;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86rem;
  line-height: 1.6;
  margin: 1.25rem 0;
  color: var(--ink);
}
.legal code { font-family: inherit; }
.legal p code, .legal li code {
  background: var(--mint-50);
  border-radius: 5px;
  padding: 0.1em 0.35em;
  font-size: 0.92em;
}
.legal h2 + pre { margin-top: 0.75rem; }
.demo-card { margin: 1.5rem 0; }
.demo-next { margin-top: 2rem; }

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

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: var(--s4); padding-top: var(--s3); }
  .hero h1 { max-width: 18ch; }
  .work-list { grid-template-columns: 1fr; gap: var(--s3); }
  .score { grid-template-columns: 1fr; gap: var(--s3); }
  .trust { grid-template-columns: 1fr; }
  .fit { grid-template-columns: 1fr; }
  .person { grid-template-columns: 1fr; }
  .price-row { grid-template-columns: 1fr; gap: 0.35rem; }
  .steps li { grid-template-columns: 2.6rem 1fr; }
  .steps p { grid-column: 2; }
}

@media (max-width: 700px) {
  section { padding: var(--s5) 0; }
  .contact { padding: var(--s5) 0; }
  .diagram { flex-direction: column; gap: 0.9rem; }
  .doc { transform: none; width: 60%; max-width: 200px; }
  .arrow { transform: rotate(90deg); width: 38px; height: 38px; }
  .capture { width: 100%; }
  .panel { padding: var(--s3); }
}
