/* The public demo site's pages (M10). Paper and ink, with one calm accent (an ink blue) for labels, links and the demo banner; amber, red and green
   keep their meaning from the review screens (needs a decision, blocked or an error, complete) and appear only in states. Self-hosted fonts
   (SIL OFL 1.1): Source Serif 4 for headings, IBM Plex Sans for everything else. No inline style, no script, nothing from another origin. */
@font-face { font-family: "Plex Sans"; src: url("/review/static/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/review/static/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/review/static/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("/review/static/fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("/review/static/fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  /* colour */
  --paper: #f6f4ef; --paper-2: #efebe3; --card: #fffefb; --rule: #e2ddd3; --rule-strong: #cfc8bb; --field: #8f897d;
  --ink: #1c1b19; --ink-2: #33312c; --muted: #5c5850;
  --accent: #24466b; --accent-soft: #e7edf4; --accent-rule: #c3d0df;
  --red: #8a2618; --red-soft: #f8e0dc; --green: #22532b; --green-soft: #e2eee3;
  /* type */
  --sans: "Plex Sans", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Source Serif", "Source Serif 4", Georgia, "Times New Roman", serif;
  --t-small: .875rem; --t-body: 1.0625rem; --t-lede: 1.1875rem; --t-h3: 1.125rem; --t-h2: clamp(1.5rem, 1.3rem + .8vw, 1.875rem);
  --t-h1: clamp(1.875rem, 1.5rem + 1.6vw, 2.5rem); --t-display: clamp(2.125rem, 1.35rem + 3.1vw, 3.25rem);
  --measure: 38rem;
  /* space */
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4.5rem; --s9: 6.5rem;
  --radius: 8px; --gutter: 1.5rem;
}
* { box-sizing: border-box; }
html { font: 400 100%/1.6 var(--sans); color: var(--ink); background: var(--paper); -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); font-size: var(--t-body); font-variant-numeric: lining-nums; }
main { display: block; flex: 1 0 auto; }
main:focus { outline: none; }
img { max-width: 100%; height: auto; display: block; }
p, ul, ol { margin: 0 0 var(--s4); }
ul, ol { padding-left: 1.25rem; }
li + li { margin-top: var(--s2); }
strong { font-weight: 600; }

/* links and focus: underlined at rest, accent on hover, a heavy ink ring on keyboard focus */
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: var(--s2); z-index: 10; background: var(--ink); color: #fff; padding: var(--s2) var(--s3); border-radius: 4px; }
.skip:focus { left: var(--s2); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* type */
h1, h2, h3 { margin: 0 0 var(--s4); line-height: 1.2; color: var(--ink); }
h1 { font-family: var(--serif); font-weight: 400; font-size: var(--t-h1); letter-spacing: -.01em; line-height: 1.15; }
h2 { font-family: var(--serif); font-weight: 400; font-size: var(--t-h2); letter-spacing: -.005em; }
h3 { font-family: var(--sans); font-weight: 600; font-size: var(--t-h3); line-height: 1.35; }
.display { font-size: var(--t-display); line-height: 1.08; letter-spacing: -.015em; max-width: 18em; margin-bottom: var(--s5); }
.lede { font-size: var(--t-lede); line-height: 1.55; color: var(--ink-2); max-width: var(--measure); }
.eyebrow { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--s3); }
.muted { color: var(--muted); }
.fineprint { font-size: var(--t-small); color: var(--muted); margin-top: var(--s3); }

/* layout */
.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: calc(var(--measure) + 2 * var(--gutter)); }
.page-pad { padding-top: var(--s7); padding-bottom: var(--s8); }

/* the demo banner: a calm, unmissable strip on every page */
.demo-banner { margin: 0; padding: var(--s2) var(--gutter); background: var(--accent-soft); color: var(--accent); border-bottom: 1px solid var(--accent-rule);
               font-size: var(--t-small); line-height: 1.45; text-align: center; }
.demo-banner strong { color: var(--accent); }

/* header */
.site-head { border-bottom: 1px solid var(--rule); background: var(--paper); }
.head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s6); min-height: 4.25rem; padding-top: var(--s3); padding-bottom: var(--s3); }
.brand { font-family: var(--serif); font-size: 1.5rem; line-height: 1; text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; gap: var(--s3); }
.brand:hover { color: var(--ink); }
.brand-tag { font-family: var(--sans); font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
             border: 1px solid var(--accent-rule); background: var(--accent-soft); border-radius: 999px; padding: .15rem .5rem; }
.site-nav { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s5); }
.site-nav a { text-decoration: none; padding: var(--s2) 0; font-size: .9375rem; color: var(--ink-2); border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--rule-strong); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }

/* buttons: ink is the one primary action */
.btn, button { font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2; display: inline-flex; align-items: center; justify-content: center;
               min-height: 2.875rem; padding: .7rem 1.25rem; border-radius: 6px; border: 1px solid var(--ink); background: transparent; color: var(--ink);
               text-decoration: none; cursor: pointer; transition: background-color .12s ease, border-color .12s ease, color .12s ease; }
.btn:hover, button:hover { background: var(--card); color: var(--ink); text-decoration: none; }
.btn.primary, button.primary { background: var(--ink); color: #fff; }
.btn.primary:hover, button.primary:hover { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
.btn:active, button:active { transform: translateY(1px); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin: var(--s5) 0 0; }

/* landing */
.hero { padding-top: var(--s8); padding-bottom: var(--s7); }
.hero .lede { margin-bottom: 0; }
.shot { margin: 0; }
.shot-frame { background: var(--card); border: 1px solid var(--rule-strong); border-radius: 10px; overflow: hidden;
              box-shadow: 0 1px 2px rgba(28, 27, 25, .05), 0 12px 32px -18px rgba(28, 27, 25, .28); }
.shot figcaption { font-size: var(--t-small); color: var(--muted); line-height: 1.5; margin-top: var(--s3); max-width: 46rem; }
.shot-hero { margin-bottom: var(--s8); }
.how { padding-bottom: var(--s7); }
.how > h2 { margin-bottom: var(--s6); }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.step { counter-increment: step; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3) var(--s6); padding: var(--s6) 0; border-top: 1px solid var(--rule); margin: 0; }
.step:last-child { border-bottom: 1px solid var(--rule); }
.step-head h3 { display: flex; align-items: baseline; gap: var(--s3); margin: 0; font-size: 1.1875rem; }
.step-head h3::before { content: counter(step); font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1; color: var(--accent); min-width: 1.6rem; }
.step-body > p { max-width: var(--measure); color: var(--ink-2); }
.step-body .shot { margin-top: var(--s5); max-width: 46rem; }
.step-body .shot.shot-narrow { max-width: calc(498px + 2px); }      /* a narrow slice is shown at its own size, never enlarged */
.honest { padding-top: var(--s7); padding-bottom: var(--s7); }
.honest-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); background: var(--card); border: 1px solid var(--rule-strong);
               border-top: 3px solid var(--accent); border-radius: var(--radius); padding: var(--s5) var(--s5) var(--s3); }
.honest-col h3 { font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s3); }
.honest-col ul { padding-left: 1.1rem; }
.closing { padding-top: var(--s5); padding-bottom: var(--s9); }
.closing > p { max-width: var(--measure); color: var(--ink-2); }

/* forms */
.pilot-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s7); align-items: start; }
.pilot-main { max-width: 36rem; }
.form { margin-top: var(--s6); }
.field { margin: 0 0 var(--s5); }
.field label { display: block; font-weight: 600; margin-bottom: var(--s1); }
.optional { font-weight: 400; color: var(--muted); }
.hint { color: var(--muted); font-size: .9375rem; margin: 0 0 var(--s2); }
.field input[type=text], .field input[type=email], .field textarea { display: block; width: 100%; font: inherit; color: var(--ink); background: var(--card);
       border: 1px solid var(--field); border-radius: 6px; padding: .7rem .8rem; min-height: 2.875rem; transition: border-color .12s ease, box-shadow .12s ease; }
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
.field input:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.field.has-error { border-left: 4px solid var(--red); padding-left: var(--s4); }
.field.has-error input, .field.has-error textarea, .field [aria-invalid="true"] { border-color: var(--red); border-width: 2px; }
.error { color: var(--red); font-weight: 600; margin: 0 0 var(--s2); }
.field.check { margin-top: var(--s5); }
.check-row { display: flex; align-items: flex-start; gap: var(--s3); }
.check-row input { flex: 0 0 auto; width: 1.375rem; height: 1.375rem; margin: .1rem 0 0; accent-color: var(--ink); }
.check-row label { font-weight: 400; margin: 0; }
.form-actions { margin-top: var(--s6); }
.flag { background: var(--red-soft); color: var(--red); border: 1px solid var(--red); border-left-width: 4px; border-radius: 6px; padding: var(--s4) var(--s5); margin: var(--s5) 0 0; }
.flag p:last-child, .flag ul:last-child { margin-bottom: 0; }
.flag a { color: var(--red); font-weight: 600; }
.wip { background: var(--accent-soft); border: 1px solid var(--accent-rule); border-left: 4px solid var(--accent); border-radius: 6px; padding: var(--s3) var(--s4); margin: var(--s4) 0; }
.wip p { margin: 0; }
.summary-title { font-family: var(--sans); font-size: var(--t-h3); font-weight: 600; color: var(--red); margin-bottom: var(--s2); }
.summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.ok { background: var(--green-soft); color: var(--green); border: 1px solid var(--green); border-left-width: 4px; border-radius: 6px; padding: var(--s4) var(--s5); margin: var(--s5) 0; }
.ok p { margin: 0; }
.ok strong { color: var(--green); }
.notice { background: var(--card); border: 1px solid var(--rule-strong); border-left: 4px solid var(--accent); border-radius: 6px; padding: var(--s5); margin: var(--s5) 0 0; }
.notice-title { font-family: var(--sans); font-size: var(--t-h3); font-weight: 600; margin-bottom: var(--s2); }
.notice p:last-child { margin-bottom: 0; }
.pilot-aside { background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--s5); }
.pilot-aside h2 { font-size: 1.375rem; margin-bottom: var(--s3); }
.next { padding-left: 1.2rem; color: var(--ink-2); }
.next li::marker { color: var(--accent); font-weight: 600; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* the privacy notice: a readable document */
.doc { max-width: calc(var(--measure) + 2 * var(--gutter)); }
.doc h2 { margin-top: var(--s6); margin-bottom: var(--s3); font-size: 1.5rem; }
.doc p { color: var(--ink-2); }
.in-short { background: var(--card); border: 1px solid var(--rule-strong); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: var(--s5) var(--s5) var(--s2); margin: var(--s5) 0 var(--s4); }
.in-short h2 { font-family: var(--sans); font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--s3); }
.in-short ul { padding-left: 1.1rem; }

/* error pages */
.error-page h1 { font-size: var(--t-display); line-height: 1.08; margin-bottom: var(--s4); }

/* footer */
.site-foot { border-top: 1px solid var(--rule); background: var(--paper-2); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3) var(--s6); padding-top: var(--s5); padding-bottom: var(--s5); }
.foot-row p { margin: 0; font-size: var(--t-small); color: var(--muted); }
.foot-truth { max-width: 40rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s5); }
.foot-links a { color: var(--ink-2); }

/* wider screens */
@media (min-width: 56rem) {
  .step { grid-template-columns: 17rem minmax(0, 1fr); }
  .honest-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); padding: var(--s6) var(--s6) var(--s4); }
  .pilot-grid { grid-template-columns: minmax(0, 36rem) minmax(0, 20rem); justify-content: space-between; }
  .pilot-aside { position: sticky; top: var(--s5); margin-top: calc(var(--t-h1) + var(--s5)); }
}
/* phones */
@media (max-width: 40rem) {
  :root { --gutter: 1rem; }
  body { font-size: 1rem; }
  .hero { padding-top: var(--s7); padding-bottom: var(--s6); }
  .page-pad { padding-top: var(--s6); padding-bottom: var(--s7); }
  .head-row { min-height: 0; }
  .site-nav { gap: 0 var(--s4); }
  .actions .btn, .form-actions button { width: 100%; }
  .shot-hero .shot-frame { max-width: 22rem; margin: 0 auto; }
  .shot-hero figcaption { margin-left: auto; margin-right: auto; max-width: 22rem; }
  .honest-grid, .pilot-aside, .in-short, .notice { padding: var(--s4); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .btn:active, button:active { transform: none; } }

/* UX P2.1: the trust page */
.trust-grid { display: grid; gap: var(--s5) var(--s6); margin: var(--s6) 0; }
.trust-grid section { border-top: 2px solid var(--accent); padding-top: var(--s4); }
.trust-grid h2 { font-size: var(--t-h3); font-family: var(--sans); font-weight: 600; margin: 0 0 var(--s3); }
.honest-more { margin-top: var(--s5); }

/* UX P2.2: print */
@media print { .site-nav, .actions, .skip { display: none !important; } body { background: #fff; } .demo-banner { border: 1px solid #000; background: #fff; color: #000; } }

/* the trust page's list of the sample cases (docsdue/sample-only-hands-on) */
.cases { margin: 2rem 0 1rem; }
.caselist { columns: 2 22rem; column-gap: 2.5rem; padding-left: 0; list-style: none; margin: .8rem 0 0; }
.caselist li { break-inside: avoid; padding: .35rem 0; border-top: 1px solid var(--rule, #e2ddd3); }
