/* REFLECT-AI landing — "calm instrument" design pass. Single accent (#2a78d6), warm neutrals.
   No web fonts, no third-party assets. Mobile-first; 16px gutters ≤640; no h-scroll at 320px. */

:root {
  --bg:#fcfcfb; --band:#f6f5f1; --tint:#eef3fb; --tint-line:rgba(42,120,214,.35);
  --ink:#0b0b0b; --ink2:#464540; --mute:#6f6e69; --line:#e6e5e0;
  --blue:#2a78d6; --blue-hover:#1f5fae; --focus: rgba(42,120,214,.45);
  /* The four quadrant colours — defined ONCE, used identically by the "Four situations" cards,
     the hero chart, the interactive chart (.q-fill-* classes) and, via tools/gen_charts.py, the
     standalone hero_chart.svg and og-image-v2.png. Solid light colours (glyphs and labels on top
     stay readable). Position meaning is the same everywhere:
       top-left  = knows the content, still learning the topic   top-right    = knows both
       bottom-left = neither                                       bottom-right = knows the topic, not the content
     The *-edge tones (same hue, stronger) are only the cards' left border. */
  --q-tl:#fdf7dc; --q-tr:#ebf5eb; --q-bl:#fcecec; --q-br:#fdf1e6;
  --q-tl-edge:#edc200; --q-tr-edge:#008300; --q-bl-edge:#e34948; --q-br-edge:#e8822e;
  --maxw:1100px; --pad:24px; --section-pad:72px; --gap:16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin:0; font-family:var(--font); color:var(--ink); background:var(--bg); line-height:1.55; font-size:16px; }
.num, .tabular { font-variant-numeric: tabular-nums; }

h1, h2, h3 { color:var(--ink); margin:0 0 .5em; }
h1 { font-size:40px; line-height:1.1; font-weight:800; letter-spacing:-.02em; }
h2 { font-size:30px; line-height:1.15; font-weight:800; letter-spacing:-.01em; margin:0 0 .4em; }
h3 { font-size:16px; line-height:1.3; font-weight:600; }
p { margin:0 0 1rem; }
a { color:var(--blue); text-decoration:underline; text-underline-offset:2px; }
a:hover { color:var(--blue-hover); }

/* visible focus ring on every interactive element */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px;
}
.chart svg g:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }

.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;
}

/* Layout — full-width sections, centred container; bands warm, the two-numbers tint */
.sect { padding: var(--section-pad) 0; }
.sect.band { background: var(--band); }
.sect.tint { background: var(--tint); }
/* outline the two-numbers tint section's top + bottom edges (the bridge tab outline
   continues this line up through the funnel — see .step-bridge::before) */
#two { border-top:1px solid var(--tint-line); border-bottom:1px solid var(--tint-line); }
.container { max-width: var(--maxw); margin:0 auto; padding: 0 var(--pad); }
.sect-intro { color: var(--ink2); font-size: 1.0625rem; max-width: 70ch; margin: 0 0 32px; }
h3.sub { font-size:14px; text-transform:uppercase; letter-spacing:.08em; color:var(--mute); font-weight:700; margin: 40px 0 16px; }
h3.sub:first-of-type { margin-top: 8px; }

/* Header — unchanged behaviour, retinted */
.site-header {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:12px var(--pad); border-bottom:1px solid var(--line);
  position:sticky; top:0; background:rgba(252,252,251,.9); backdrop-filter:saturate(1.1) blur(6px); z-index:10;
}
.brand { display:inline-flex; align-items:center; text-decoration:none; }
.brand-logo { display:block; height:30px; width:auto; }
.brand-mark { display:none; height:28px; width:auto; }
.header-title { font-weight:700; color:var(--ink); font-size:1.05rem; white-space:nowrap; margin-right:auto; }
.header-actions { display:flex; align-items:center; gap:8px; }
.header-cta { padding:7px 12px; font-size:.9rem; white-space:nowrap; }
.cta-mini { display:none; }
@media (max-width:900px){ .header-title { display:none; } }
@media (max-width:640px){
  .site-header { gap:8px; padding-left:16px; padding-right:16px; }
  .brand-logo { display:none; } .brand-mark { display:block; }
  .site-header .header-title { display:block; margin:0 auto 0 4px; font-weight:500; font-size:.875rem; color:var(--mute); white-space:nowrap; }
  .site-header .header-cta.btn-ghost { display:none; }
  .site-header .header-cta.btn-primary { display:inline-block; }
}
@media (max-width:560px){ .cta-full { display:none; } .cta-mini { display:inline; } }
@media (max-width:420px){
  .site-header { padding-left:8px; padding-right:8px; gap:5px; }
  .brand-mark { height:26px; }
  .site-header .header-title { font-size:.8125rem; margin-left:0; }
  .site-header .header-cta { padding:5px 8px; font-size:.72rem; }
}

/* Buttons — single accent */
.btn {
  display:inline-block; text-decoration:none; cursor:pointer; border-radius:9px;
  padding:11px 18px; font-size:1rem; font-weight:600; border:1.5px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s; font-family:inherit;
}
.btn-primary { background:var(--blue); color:#fff; border-color:var(--blue); }
.btn-primary:hover { background:var(--blue-hover); border-color:var(--blue-hover); color:#fff; }
.btn-ghost { background:#fff; color:var(--blue); border-color:var(--blue); }
.btn-ghost:hover { background:var(--tint); color:var(--blue-hover); border-color:var(--blue-hover); }

/* Hero — two rows; 50/50 at ≥900px */
.hero { padding: 56px 0 64px; }
.hero-row1 { display:grid; gap:28px; align-items:center; }
.hero-row2 { display:grid; gap:22px; align-items:center; margin-top:20px; }
.hero h1 { margin:0; max-width:none; position:relative; padding-left:19px; }
.hero h1::before { content:''; position:absolute; left:0; top:0; bottom:0; width:3px;
  background:var(--blue); border-radius:2px; }
.hero h1 .h1-sub { color: var(--ink2); font-weight:700; }
.hero .lede { font-size:1.0625rem; color:var(--ink2); margin:0; max-width:60ch; }
.hero .lede strong { color: var(--ink); font-weight:700; }
/* Buttons centred within their column: under the chart on ≥900px (right column), and under
   the text in the single-column tablet/mobile layout. One row, current 12px gap. */
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; justify-content:center; }
.hero-chart { margin:0; width:100%; }
.hero-chart svg { display:block; width:100%; height:auto; }
.hc-short { display:none; }
@media (max-width:360px){ .hc-full { display:none; } .hc-short { display:inline; } }
/* Narrow phones: the pair may stack, each full width. */
@media (max-width:480px){
  .hero-actions { flex-direction:column; align-items:stretch; }
  .hero-actions .btn { width:100%; text-align:center; }
}
.type-caret { display:inline-block; color:var(--blue); font-weight:400; margin-left:2px; animation: caretBlink 1s step-end infinite; }
@keyframes caretBlink { 50% { opacity:0; } }
@media (min-width:900px){
  .hero-row1 { grid-template-columns: 1fr 1fr; gap:48px; }
  .hero-row2 { grid-template-columns: 1fr 1fr; gap:48px; }
  .hero-row2 .hero-actions { justify-content:center; }
}

/* Cards */
.cards { display:grid; gap:var(--gap); }
.card { background:#fff; border:1px solid var(--line); border-radius:12px; padding:20px; }
.card h3 { margin:0 0 .4em; color:var(--ink); }
.card p { margin:0; color:var(--ink2); font-size:15px; }
.card .sym { color:var(--blue); font-weight:700; }
@media (min-width:760px){
  .cards-2 { grid-template-columns: repeat(2,1fr); }
  .cards-3 { grid-template-columns: repeat(3,1fr); }
  .cards-4 { grid-template-columns: repeat(4,1fr); }
}
@media (min-width:900px){
  /* 48 columns so the widths can be tuned to line counts (measured at 1024 and 1280+ px):
     row 1 — "Who sets it up" 20 : "Who sees what" 28 → both cards 6 lines (heading + text);
     row 2 — "Where does the data go?" 35 : "What happens after the pilot" 13 → the pilot card
     one line shorter than at 36 : 12, the data card unchanged. */
  .cards-2w { grid-template-columns: repeat(48,1fr); }
  .cards-2w > .card { grid-column: span 24; }
  .cards-2w > .card-setup { grid-column: span 20; }
  .cards-2w > .card-sees { grid-column: span 28; }
  .cards-2w > .card-wide { grid-column: span 35; }
  .cards-2w > .card-narrow { grid-column: span 13; }
  .cards-2w > .int-card { grid-column: 1 / -1; }
}

/* How it works — numbered badges */
.steps { list-style:none; margin:0; padding:0; display:grid; gap:var(--gap); }
.step { background:#fff; border:1px solid var(--line); border-radius:12px; padding:20px; }
.step-badge { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px;
  border-radius:999px; background:var(--blue); color:#fff; font-weight:700; font-size:1rem; margin-bottom:12px; }
.step h3 { margin:0 0 .3em; color:var(--ink); }
.step p { margin:0; color:var(--ink2); font-size:15px; }
@media (min-width:760px){ .steps { grid-template-columns: repeat(3,1fr); } }

/* Step 3 → The two numbers bridge: a tint-coloured tab behind the 3rd card that rises
   and meets the next (tint) section with no seam; the card stays white above it. */
.step-bridge { position:relative; background:transparent; border:0; padding:0; }
/* ::before = 1px-larger --tint-line outline (behind); ::after = tint fill (on top),
   so a 1px --tint-line rim traces the tab top + funnel edges and meets #two's border. */
.step-bridge::before {
  content:''; position:absolute; z-index:0; background:var(--tint-line);
  top:-17px; left:calc(var(--gap) / -2 - 1px); right:calc(var(--gap) / -2 - 1px);
  bottom:calc(-1 * var(--section-pad) - 2px);
  border-radius:15px 15px 0 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 44px), 50% 100%, 0 calc(100% - 44px));
}
.step-bridge::after {
  content:''; position:absolute; z-index:0; background:var(--tint);
  top:-16px; left:calc(var(--gap) / -2); right:calc(var(--gap) / -2);
  bottom:calc(-1 * var(--section-pad) - 1px);
  border-radius:14px 14px 0 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 44px), 50% 100%, 0 calc(100% - 44px));
}
.step-inner { position:relative; z-index:1; height:100%;
  background:#fff; border:1px solid var(--line); border-radius:12px; padding:20px; }
.step-inner h3 { margin:0 0 .3em; color:var(--ink); }
.step-inner h3 a { color:var(--ink); text-decoration:none; }
.step-inner h3 a:hover { color:var(--blue); }
.step-inner p { margin:0; color:var(--ink2); font-size:15px; }

/* Four situations — 2×2 quadrant placement; mobile DOM order yellow/green/red/orange */
.quad { display:grid; grid-template-columns:1fr; gap:var(--gap); }
.quad-card { background:#fff; border:1px solid var(--line); border-left-width:3px; border-radius:12px; padding:18px; }
.quad-card h3 { font-size:16px; margin:0 0 .3em; color:var(--ink); }
.quad-card p { margin:0; color:var(--ink2); font-size:15px; }
.quad-card.q-tl { background: var(--q-tl); border-left-color: var(--q-tl-edge); }
.quad-card.q-tr { background: var(--q-tr); border-left-color: var(--q-tr-edge); }
.quad-card.q-bl { background: var(--q-bl); border-left-color: var(--q-bl-edge); }
.quad-card.q-br { background: var(--q-br); border-left-color: var(--q-br-edge); }
/* chart quadrant washes (hero inline SVG + interactive chart) — same four colours */
.q-fill-tl { fill: var(--q-tl); } .q-fill-tr { fill: var(--q-tr); }
.q-fill-bl { fill: var(--q-bl); } .q-fill-br { fill: var(--q-br); }
@media (min-width:760px){
  .quad { grid-template-columns:1fr 1fr; grid-template-areas:"tl tr" "bl br"; align-items:stretch; }
  .quad-card.q-tl { grid-area:tl; } .quad-card.q-tr { grid-area:tr; }
  .quad-card.q-bl { grid-area:bl; } .quad-card.q-br { grid-area:br; }
}

/* The two numbers — chart card + legend strip */
.chart-card { background:#fff; border:1px solid var(--line); border-radius:12px; padding:22px 24px; margin-top:24px; }
.chips { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; margin-bottom:8px; }
.chip { display:inline-flex; align-items:center; gap:6px; cursor:pointer; font-size:.86rem;
  border:1px solid var(--line); border-radius:999px; padding:3px 11px; background:#fff; color:var(--ink2); font-family:inherit; }
.chip .dot { width:10px; height:10px; border-radius:10px; display:inline-block; }
.chip .dot.diamond { border-radius:2px; transform:rotate(45deg); }
.chip[aria-pressed="false"] { opacity:.4; }
.chip-sep { color:var(--line); align-self:center; }
.chip-link { background:none; border:none; color:var(--blue); cursor:pointer; font-size:.86rem; font-family:inherit; padding:3px 5px; text-decoration:underline; }
.chip-link:hover { color:var(--blue-hover); }
.chart-hints { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin:0 0 14px; }
.hint-pill { display:inline-flex; align-items:center; gap:8px; max-width:100%;
  background:var(--tint); color:var(--ink); border-radius:999px; padding:8px 14px;
  font-size:15px; font-weight:600; line-height:1.3; }
.hint-ic { flex:0 0 auto; color:var(--blue); width:16px; height:16px; }
.chart { position:relative; width:100%; max-width:829px; margin:0 auto; }
.chart svg { display:block; width:100%; height:auto; }
.illus { text-align:right; color:var(--mute); font-size:13px; margin:8px 0 0; }
/* The two numbers — one row per value: text left, pictogram right (below on narrow screens) */
.val-cap { margin:0 0 10px; font-size:.9rem; font-weight:600; color:var(--mute); letter-spacing:.01em; }
.vals { display:grid; gap:12px; margin-bottom:24px; }
.chart-card + .val-cap { margin-top:32px; }
.val { background:#fff; border:1px solid var(--line); border-radius:12px; display:flex; flex-direction:column; gap:12px; }
.val-text h3 { margin:0 0 .3em; color:var(--ink); }
.val-text p { margin:0; color:var(--ink2); }
.val .sym { color:var(--blue); font-weight:700; }
.val-pic { display:block; flex:none; width:120px; height:54px; }
.val-main { padding:22px 24px; }
.val-main h3 { font-size:1.3rem; }
.val-main p { font-size:16px; }
.val-q { padding:14px 18px; }
.val-q h3 { font-size:15px; }
.val-q p { font-size:14px; }
@media (min-width:640px){
  .val { display:grid; grid-template-columns:minmax(0,1fr) 120px; align-items:center; gap:24px; }
  .val-pic { justify-self:center; }
}

/* chart tooltips (behaviour unchanged) */
.chart-mtip { position:absolute; z-index:6; pointer-events:none; width:max-content; max-width:240px; box-sizing:border-box;
  background:#fff; border:1px solid var(--line); border-radius:8px; padding:8px 11px; box-shadow:0 6px 18px rgba(15,23,42,.14);
  font-size:.85rem; line-height:1.45; color:var(--ink2); overflow-wrap:anywhere; }
.chart-mtip span { display:block; }
.chart-mtip-h { display:block; font-weight:700; color:var(--ink); font-size:.9rem; margin-bottom:2px; }
.chart-qtip { position:absolute; z-index:6; pointer-events:none; width:max-content; max-width:270px;
  background:#fff; border:1px solid var(--line); border-radius:8px; padding:9px 11px; box-shadow:0 6px 18px rgba(15,23,42,.14); }
.chart-qtip.above { transform:translate(-50%, calc(-100% - 8px)); }
.chart-qtip.below { transform:translate(-50%, 8px); }
.chart-qtip-h { display:block; font-weight:700; color:var(--ink); font-size:.9rem; margin-bottom:3px; }
.chart-qtip-d { display:block; color:var(--ink2); font-size:.85rem; line-height:1.4; }

/* For teams — mode-card icons */
.mode-ic { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px;
  border-radius:9px; background:var(--tint); color:var(--blue); margin-bottom:12px; }
.mode-ic svg { width:20px; height:20px; display:block; }

/* Integrations — fifth full-width card in the pilot grid */
.int-card { grid-column: 1 / -1; }
.int-card > p { margin:0 0 18px; }
/* label on its own line, one line, left-aligned with its chips; chips get full width */
.int-row { display:flex; flex-direction:column; gap:8px; margin-bottom:16px; }
.int-row:last-child { margin-bottom:0; }
.int-label { font-size:13px; text-transform:uppercase; letter-spacing:.08em; color:var(--mute); font-weight:700; white-space:nowrap; }
.int-chips { display:flex; flex-wrap:wrap; gap:8px; }
.ichip { display:inline-flex; align-items:center; gap:7px; background:#fff; border-radius:999px;
  padding:6px 12px; font-size:14px; color:var(--ink2); white-space:nowrap; }
.ichip svg { width:14px; height:14px; flex:0 0 auto; color:var(--blue); }
.ichip.now { border:1px solid var(--blue); }
.ichip.req { border:1px solid var(--line); }

/* Request / form */
.request-panel { background:var(--tint); border:1px solid var(--tint-line); border-radius:16px; padding:40px; }
.request-panel .sect-intro { max-width:none; }   /* the panel's text uses its full width */
@media (max-width:640px){ .request-panel { padding:24px; } }
.request-bullets { margin:0 0 28px; padding-left:1.2em; color:var(--ink2); display:grid; gap:8px; }
.request-bullets li { line-height:1.5; }
.request-form { margin:0; display:grid; gap:16px; }
.form-row { display:grid; gap:16px; }
.field { display:grid; gap:6px; border:0; padding:0; margin:0; }
.field > label, .field > legend { font-weight:600; font-size:.95rem; color:var(--ink2); padding:0; }
.req { color:var(--blue); }
.field input[type="text"], .field input[type="email"], .field select {
  font:inherit; padding:10px 12px; border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--ink); width:100%;
}
.field .hint { font-size:.82rem; color:var(--mute); margin:0; }
.radio { font-weight:400; display:inline-flex; align-items:center; gap:6px; margin-right:16px; }
.err { color:#c0392b; font-size:.82rem; margin:0; }
.err:empty { display:none; }
.form-note { font-size:.82rem; color:var(--mute); text-align:left; }
@media (min-width:700px){ .form-row { grid-template-columns:1fr 1fr; } }

/* Composed-message fallback */
.composed { margin:20px 0 0; display:grid; gap:10px; }
.composed-lead { color:var(--ink2); margin:0; }
.composed-text { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-size:.85rem; width:100%; border:1px solid var(--line);
  border-radius:12px; padding:14px; background:#fff; color:var(--ink); resize:vertical; }
.copy-ok { color:var(--q-green); font-size:.85rem; margin-left:8px; }
.composed-row { display:grid; grid-template-columns: 72px minmax(0,1fr) auto; gap:8px; align-items:center; }
.composed-label { color:var(--ink2); font-size:.85rem; font-weight:600; }
.composed-field { font:inherit; font-size:.9rem; width:100%; border:1px solid var(--line); border-radius:8px;
  padding:8px 10px; background:#fff; color:var(--ink); }
.composed-lead:focus { outline:none; }

/* Footer — one line */
.site-footer { border-top:1px solid var(--line); background:var(--band); }
.site-footer .container { display:flex; flex-wrap:wrap; align-items:center; justify-content:center;
  gap:8px 14px; padding-top:22px; padding-bottom:22px; color:var(--ink2); font-size:14px; text-align:center; }
.site-footer img { height:20px; width:auto; display:block; }
.site-footer .sep { color:var(--line); }
.site-footer a { color:var(--ink2); }
.site-footer a:hover { color:var(--blue); }
.site-footer .footer-note { flex-basis:100%; text-align:center; margin:2px 0 0; color:var(--mute); font-size:13px; }

@media (max-width:640px){
  :root { --section-pad: 48px; }
  .container { padding: 0 16px; }
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce){ .type-caret { animation: none; } }
/* r_E card formula + the notes under the two number cards (estimate sentence, D detail) */
.card .formula { margin-top:.35rem; font-size:.85rem; color:var(--ink2); font-variant-numeric:tabular-nums; }
.numbers-note { margin:.75rem 0 0; font-size:.9rem; color:var(--ink2); max-width:60rem; }
.numbers-note + .numbers-note { margin-top:.35rem; }
