/* ============================================================================
   Willo — design system
   A scoped sibling of Project Will's system (projectwill.co.uk/css/pw.css):
   same canvas, same type, same restraint. Willo's scope is mint; Project Will
   keeps yellow. Hierarchy comes from type scale and background contrast,
   not shadows — there are two in this file and both are on the header.

   One addition to the parent system: --font-doc. Wills are set in Times.
   It appears only inside document surfaces, never in the interface.
   ========================================================================= */

:root {
  /* Inherited from Project Will, unchanged */
  --bg: #fcfaf5;
  --ink: #1a3300;
  --ink-soft: #3d4a30;
  --muted: #5f6b58;        /* nothing on this site is lighter than #666 */
  --on-ink: #fcfaf5;
  --line: #b6b6b6;
  --line-soft: #e2ded2;
  --hl: #ffe95c;
  --mint: #a8e5e5;
  --leaf: #d5f5c2;
  --bloom: #f6d0ff;
  --seal: #8a6a2f;

  /* Willo's scope */
  --accent: var(--mint);
  --accent-deep: #1f6b6b;   /* mint, darkened until it passes AA on --bg */
  --paper: #fffdf8;         /* the document surface */
  --paper-rule: #e8e2d2;

  --font-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-doc: "Times New Roman", Times, Georgia, serif;

  --display-lg: clamp(34px, 6.2vw, 76px);
  --display-md: clamp(32px, 5.2vw, 60px);
  --display-sm: clamp(30px, 4.2vw, 48px);

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 16px;

  --container: 1200px;
  --gutter: clamp(16px, 3vw, 32px);
  --section: clamp(56px, 8vw, 120px);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-synthesis-weight: none;
}

img, svg, video { max-width: 100%; height: auto; }

::selection { background: var(--hl); color: var(--ink); }

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

.skip {
  position: absolute;
  width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
  background: var(--ink); color: var(--on-ink);
  padding: 12px 20px; border-radius: var(--r-sm); z-index: 100;
}
.skip:focus {
  width: auto; height: auto; overflow: visible; clip: auto;
  left: var(--gutter); top: 12px;
}

/* ---------------------------------------------------------------- Typography */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

.display {
  font-size: var(--display-lg);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.display--md { font-size: var(--display-md); }
.display--sm { font-size: var(--display-sm); }

.h2 {
  font-size: clamp(27px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: pretty;
}
.h3 { font-size: 22px; font-weight: 600; line-height: 1.25; }
.h4 { font-size: 19px; font-weight: 600; line-height: 1.3; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 18px;
  display: block;
}

.lead {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 62ch;
  text-wrap: pretty;
}

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

mark { background: var(--hl); color: var(--ink); padding: 0 0.12em; }
.mark-mint { background: var(--mint); color: var(--ink); padding: 0 0.12em; }

a { color: inherit; }

.link {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  display: inline-block;
}
.link:hover { opacity: 0.7; }

.anchor {
  margin-left: 0.4em;
  color: var(--line);
  text-decoration: none;
  font-weight: 400;
  opacity: 0;
  transition: opacity 0.15s;
}
h2:hover > .anchor, h3:hover > .anchor, .anchor:focus-visible { opacity: 1; }

/* ------------------------------------------------------------------- Layout */

.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section--ink { background: var(--ink); color: var(--on-ink); }
.section--ink .eyebrow { color: var(--hl); }
.section--ink .lead { color: rgba(252, 250, 245, 0.88); }
.section--rule { border-top: 1px solid var(--line-soft); }
/* A page hero and the content beneath it are one unit — don't stack both paddings. */
.section--tight + .section--tight { padding-top: 0; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--sm { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.grid--md { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--lg { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.split {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: start;
}
.split--wide { grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .split--wide { grid-template-columns: minmax(280px, 1fr) minmax(280px, 1.25fr); }
}

.measure { max-width: 68ch; }
.stack > * + * { margin-top: 18px; }

/* ------------------------------------------------------------------ Header */

.header {
  position: sticky;
  top: 16px;
  z-index: 50;
  margin-block: 16px;
}
.header__bar {
  max-width: var(--container);
  margin-inline: auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 10px 10px 10px 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 24px 60px rgba(168, 229, 229, 0.16), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  flex: none;
}
.brand__mark {
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  background: var(--mint);
  display: grid; place-items: center;
  font-size: 15px;
  color: var(--ink);
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: block;
  line-height: 1;
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  white-space: nowrap;
}
.nav a:hover { background: var(--line-soft); }
.nav a[aria-current="page"] { background: var(--mint); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: var(--r-sm);
  width: 44px; height: 44px;
  font-size: 18px;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 1080px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .header__bar.is-open { flex-wrap: wrap; }
  .header__bar.is-open .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 8px 0 4px;
    gap: 2px;
  }
  .header__bar.is-open .nav a { padding: 12px; }
}

/* ----------------------------------------------------------------- Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 16px 30px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  background: var(--ink);
  color: var(--on-ink);
}
.btn:hover { opacity: 0.86; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--accent { background: var(--mint); color: var(--ink); }
.btn--hl { background: var(--hl); color: var(--ink); }
.btn--light { background: var(--bg); color: var(--ink); }
.btn--sm { padding: 12px 20px; font-size: 15px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------------- Cards */

.card {
  border: 1px solid var(--ink);
  border-radius: var(--r-md);
  padding: 26px;
  background: transparent;
}
.card--mint { background: var(--mint); border-color: transparent; }
.card--leaf { background: var(--leaf); border-color: transparent; }
.card--hl { background: var(--hl); border-color: transparent; }
.card--bloom { background: var(--bloom); border-color: transparent; }
.card--soft { border-color: var(--line-soft); }
.card > :last-child { margin-bottom: 0; }

.card__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: block;
  margin-bottom: 14px;
}
.card--mint .card__num, .card--leaf .card__num, .card--hl .card__num { color: var(--ink-soft); }

.panel {
  background: var(--ink);
  color: var(--on-ink);
  border-radius: var(--r-lg);
  padding: clamp(28px, 5vw, 64px);
}
.panel .eyebrow { color: var(--hl); }
.panel .lead { color: rgba(252, 250, 245, 0.88); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--hl);
  color: var(--ink);
  border-radius: 9999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
}
.badge--mint { background: var(--mint); }

.stat { border-top: 1px solid var(--ink); padding-top: 14px; }
.stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
}
.stat__label { font-size: 14px; color: var(--muted); margin-top: 8px; display: block; }
.section--ink .stat { border-color: rgba(252, 250, 245, 0.3); }
.section--ink .stat__label { color: rgba(252, 250, 245, 0.72); }

.quote { border-left: 2px solid var(--ink); padding-left: 20px; }
.quote__text { font-size: 19px; line-height: 1.5; }
.quote__who { font-size: 14px; color: var(--muted); margin-top: 12px; display: block; }

/* ------------------------------------------------------------------ Tables
   Set like a schedule to a will. Tables are also the single most cited
   content format, so they are a first-class component here, not an
   afterthought bolted onto prose. */

.table-scroll { overflow-x: auto; margin-block: 28px; }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 640px;
}
.table caption {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: left;
  padding-bottom: 12px;
}
.table th, .table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.table thead th {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-bottom: 1px solid var(--ink);
}
.table tbody th { font-family: var(--font-body); font-size: 15px; font-weight: 600; }
.table .is-willo { background: var(--mint); }
.table thead .is-willo { background: var(--mint); color: var(--ink); }

/* ------------------------------------------------------- Product screenshots
   The product is the thing being sold, so it is shown plainly and large.
   A captioned plate rather than fake browser chrome — no traffic-light dots,
   no perspective tilt, no floating notification cards. */

.shot {
  border: 1px solid var(--ink);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg);
}
.shot__cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 11px 16px;
  border-bottom: 1px solid var(--ink);
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.shot__cap strong { color: var(--ink); font-weight: 500; }
.shot img { display: block; width: 100%; height: auto; }

/* Crops a tall capture to a usable height without squashing it. */
.shot--crop { position: relative; }
.shot--crop .shot__view { max-height: 560px; overflow: hidden; }
.shot--crop .shot__view::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 90px;
  background: linear-gradient(to bottom, rgba(252,250,245,0), var(--bg));
  pointer-events: none;
}

.shot-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
}

/* Hero pairing: words on the left, the product on the right. */
.hero {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); }
}

/* ------------------------------------------------------------------- Prose */

.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(25px, 3vw, 32px); font-weight: 700; letter-spacing: -0.02em; margin-top: 2em; }
.prose h3 { font-size: 20px; font-weight: 600; margin-top: 1.8em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.5em; }
.prose blockquote {
  border-left: 2px solid var(--ink);
  padding-left: 20px;
  margin: 1.6em 0;
  font-size: 19px;
  line-height: 1.5;
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--line-soft);
  padding: 2px 5px;
  border-radius: 3px;
}
.prose .table-scroll, .prose table { max-width: none; }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* --------------------------------------------------------------- Q&A / FAQ */

.qa { border-top: 1px solid var(--line-soft); }
.qa__item { border-bottom: 1px solid var(--line-soft); }
.qa__item summary {
  cursor: pointer;
  padding: 20px 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}
.qa__item summary::-webkit-details-marker { display: none; }
.qa__item summary::after { content: "+"; font-family: var(--font-mono); font-weight: 400; color: var(--muted); }
.qa__item[open] summary::after { content: "−"; }
.qa__body { padding-bottom: 22px; max-width: 68ch; }
.qa__body > :last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ Footer */

.footer { border-top: 1px solid var(--ink); margin-top: var(--section); padding-block: clamp(40px, 6vw, 72px) 32px; }
.footer__grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.footer h2 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 14px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; }
.footer li a { font-size: 15px; text-decoration: none; }
.footer li a:hover { text-decoration: underline; }
.footer__legal {
  border-top: 1px solid var(--line-soft);
  margin-top: 40px;
  padding-top: 24px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}
.footer__legal p { max-width: 70ch; margin: 0; }
.footer__ids { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; }

/* ------------------------------------------------------------------ Motion
   One orchestrated moment on load. Nothing else. */

@media (prefers-reduced-motion: no-preference) {
  .reveal > * { animation: rise 0.6s cubic-bezier(0.22, 0.8, 0.3, 1) backwards; }
  .reveal > :nth-child(1) { animation-delay: 0.04s; }
  .reveal > :nth-child(2) { animation-delay: 0.12s; }
  .reveal > :nth-child(3) { animation-delay: 0.2s; }
  .reveal > :nth-child(4) { animation-delay: 0.28s; }
  .reveal > :nth-child(5) { animation-delay: 0.36s; }
  .reveal > :nth-child(6) { animation-delay: 0.44s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* --------------------------------------------------------------- Utilities */

.u-center { text-align: center; }
.u-center .lead { margin-inline: auto; }
.u-mono { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; }
.u-muted { color: var(--muted); }
.u-mt { margin-top: 32px; }
.u-mt-lg { margin-top: clamp(32px, 5vw, 56px); }
.u-mb { margin-bottom: 32px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.tick { color: var(--accent-deep); font-weight: 600; }
.cross { color: var(--muted); }

.ticklist { list-style: none; padding: 0; margin: 0; }
.ticklist li {
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.ticklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-deep);
  font-weight: 600;
}
.ticklist li:last-child { border-bottom: 0; }
