/* UNimpossible — unimpossible.co.uk
   Tokens: paper #FFFFFF, chalk #EEF4F1, teal ink #0F3D33, mint #8FD9C4 (tints #C9F2E6 #E3F6EF, mid #2E8B73), amber #D98E04 (report scores only). */

:root {
  --paper: #FFFFFF;
  --chalk: #EEF4F1;
  --ink: #0F3D33;
  --ink-2: #1F4A40;
  --ink-3: #3C5A52;
  --ink-4: #5B7A70;
  --ink-hover: #1F5C4D;
  --mint: #8FD9C4;
  --mint-tint: #C9F2E6;
  --mint-pale: #E3F6EF;
  --mint-mid: #2E8B73;
  --amber: #D98E04;
  --rule: #DCE7E2;
  --rule-2: #C9DAD3;
  --field: #B8CFC6;
  --on-ink-muted: #CFE6DD;
  --font: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-variation-settings: 'opsz' 14;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
}
a { color: var(--ink); }
a:hover { color: var(--ink-hover); }
p { margin: 0; }
h1, h2, h3 { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

.h {
  font-family: var(--font);
  font-variation-settings: 'opsz' 96;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.h3 {
  font-family: var(--font);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 10px;
}
.muted { color: var(--ink-2); }

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  padding: 16px 26px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.3;
}
.btn:hover { background: var(--ink-hover); color: var(--paper); }
.btn[disabled] { opacity: .7; cursor: default; }
.btn.small { padding: 12px 20px; font-size: 15px; }
.btn.mint { background: var(--mint); color: var(--ink); }
.btn.mint:hover { background: #A6E3D2; color: var(--ink); }
.ghost {
  display: inline-block;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
  font-weight: 500;
  font-size: 17px;
  padding: 16px 4px;
}

input:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 2px;
}

.skip {
  position: absolute; left: 16px; top: -60px;
  background: var(--ink); color: var(--paper);
  padding: 10px 14px; border-radius: 8px; z-index: 10;
}
.skip:focus { top: 16px; }

/* Header */
.site-header .wrap {
  padding-top: 26px; padding-bottom: 26px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.brand {
  text-decoration: none; display: flex; align-items: center; gap: 12px;
  font-size: 24px; letter-spacing: -0.04em; line-height: 1;
}
.brand b { font-weight: 800; }
.brand span span { font-weight: 500; }
.nav { display: flex; flex-wrap: wrap; gap: 32px; font-size: 16px; }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 112px; }
.hero-tri {
  position: absolute; right: -180px; top: -40px; width: 720px; height: 630px; pointer-events: none;
}
.hero .wrap { position: relative; display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.hero-copy { flex: 999 1 540px; min-width: 0; }
.hero h1 { font-size: clamp(46px, 6.4vw, 92px); max-width: 820px; }
.hero .lede { font-size: 21px; max-width: 580px; margin: 32px 0 36px; color: var(--ink-2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }

/* Report panel */
.report {
  flex: 1 1 400px; min-width: 0; max-width: 480px;
  background: var(--chalk); border-radius: 18px; padding: 32px;
}
.report-title { margin: 0 0 6px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.report-sub { margin: 0 0 22px; font-size: 16px; color: var(--ink-3); }
.report-form { display: flex; gap: 8px; flex-wrap: wrap; }
.report-form label { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.report-form .btn { align-self: flex-end; padding: 14px 20px; font-size: 16px; }
.field {
  font-family: inherit; font-size: 17px; padding: 13px 14px;
  border: 1.5px solid var(--field); border-radius: 8px; background: var(--paper); color: var(--ink);
  width: 100%; min-width: 0;
}
.checks { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.checks .label { flex: 0 0 150px; }
.checks .track { flex: 1; height: 8px; background: var(--rule); border-radius: 4px; overflow: hidden; }
.checks .bar { display: block; height: 8px; border-radius: 4px; width: 0; background: var(--mint-mid); transition: width .9s cubic-bezier(.2,.8,.2,1); }
.checks .bar.low { background: var(--amber); }
.checks .score { flex: 0 0 30px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; min-height: 1em; }
@media (prefers-reduced-motion: reduce) { .checks .bar { transition: none; } }
.report-result { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule-2); }
.report-result[hidden] { display: none; }
.report-result p { margin: 0 0 8px; font-weight: 600; }
.report-result ol { margin: 0 0 16px; padding-left: 20px; font-size: 15px; line-height: 1.7; }
.report-note { margin: 18px 0 0; font-size: 13px; color: var(--ink-4); }

/* Sections */
.section { padding: 112px 0; }
main h2.h { font-size: clamp(36px, 4.2vw, 60px); }
.examples { border-top: 1px solid var(--rule); }
.examples h2 { max-width: 760px; margin-bottom: 20px; }
.examples .intro { max-width: 640px; margin: 0 0 56px; }
.stories { display: flex; flex-wrap: wrap; gap: 48px 64px; }
.story { flex: 1 1 320px; min-width: 0; max-width: 520px; }

.how { background: var(--chalk); }
.how h2 { margin-bottom: 56px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 40px; }
.steps li { flex: 1 1 300px; min-width: 0; padding-top: 24px; border-top: 2px solid var(--ink); }
.steps .n { margin: 0 0 8px; font-weight: 700; font-size: 44px; letter-spacing: -0.03em; line-height: 1; }

.team { position: relative; overflow: hidden; padding: 128px 0; }
.team .wrap { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.team-tri { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; }
.team-tri svg { width: 100%; max-width: 440px; height: auto; }
.team-copy { flex: 999 1 480px; min-width: 0; max-width: 620px; }
.team h2 { margin-bottom: 24px; }
.team p + p { margin-top: 18px; }

.chamber { padding: 96px 0; background: var(--ink); color: var(--paper); }
.chamber .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; justify-content: space-between; }
.chamber-copy { flex: 1 1 520px; min-width: 0; max-width: 720px; }
.chamber h2.h { font-size: clamp(34px, 4vw, 56px); margin-bottom: 20px; color: var(--paper); }
.chamber p { color: var(--on-ink-muted); font-size: 19px; }
.chamber .btn { flex: 0 0 auto; }

.talk { padding: 112px 0 128px; }
.talk .wrap { display: flex; flex-wrap: wrap; gap: 64px; }
.talk-copy { flex: 1 1 400px; min-width: 0; max-width: 520px; }
.talk h2 { margin-bottom: 24px; }
.talk-copy p + p { margin-top: 24px; }
.contact { flex: 1 1 440px; min-width: 0; max-width: 560px; display: flex; flex-direction: column; gap: 18px; }
.contact .row { display: flex; flex-wrap: wrap; gap: 18px; }
.contact label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 500; }
.contact .row label { flex: 1 1 200px; }
.contact textarea { resize: vertical; min-height: 120px; }
.contact .btn { align-self: flex-start; }
.contact .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 15px; color: var(--ink-3); min-height: 1.4em; }

.site-footer { border-top: 1px solid var(--rule); }
.site-footer .wrap {
  padding-top: 28px; padding-bottom: 32px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 14px; color: var(--ink-3);
}

/* Privacy page */
.prose { max-width: 720px; padding: 48px 0 128px; }
.prose h1 { font-size: clamp(40px, 5vw, 64px); margin-bottom: 32px; }
.prose h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin: 40px 0 12px; }
.prose p + p { margin-top: 14px; }
.prose ul { margin: 12px 0; padding-left: 22px; }

/* Narrow screens */
@media (max-width: 720px) {
  body { font-size: 17px; }
  .wrap { padding: 0 20px; }
  .site-header .wrap { padding-top: 18px; padding-bottom: 18px; }
  .site-header .btn { display: none; } /* the hero carries the same call to action */
  .nav { gap: 14px 22px; font-size: 15px; width: 100%; }
  .hero { padding: 40px 0 72px; }
  .hero-tri { right: -220px; top: -60px; width: 520px; height: 455px; opacity: .45; }
  .hero .lede { font-size: 19px; margin: 24px 0 28px; }
  .hero .wrap, .team .wrap, .talk .wrap { gap: 48px; }
  .report { padding: 24px; }
  .checks .label { flex-basis: 120px; }
  .section, .talk { padding: 80px 0; }
  .team { padding: 88px 0; }
  .chamber { padding: 72px 0; }
  .examples .intro { margin-bottom: 40px; }
  .how h2 { margin-bottom: 40px; }
}
