/* meetoliver.uk — design: Linear AML-367 "Meet Oliver — Website Design" (calm ground, deep-sea ink, Oliver's teal). */
@font-face { font-family: 'Bricolage Grotesque'; src: url(/fonts/bricolage-latin.woff2) format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: Inter; src: url(/fonts/inter-latin.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
  --ink: #0F2A2E; --ink-2: #1C4549; --ground: #F3F8F8; --surface: #FFFFFF; --line: #D9E7E7; --line-soft: #E7F0F0; --tint: #E4F0F0;
  --muted: #4C6567; --faint: #7F9799; --icon: #93ABAD; --accent: #2A9EA4; --cream: #F3E3BC; --link: #1C7C83;
  --display: 'Bricolage Grotesque', Inter, system-ui, sans-serif; --ui: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow-card: 0 1px 2px rgba(15, 42, 46, .05), 0 14px 28px -14px rgba(15, 42, 46, .22);
  --shadow-field: 0 1px 2px rgba(15, 42, 46, .04), 0 24px 48px -24px rgba(15, 42, 46, .25);
  --deep: #0F2A2E; --on-deep: #FFFFFF; --btn-bg: #0F2A2E; --btn-bg-2: #1C4549; --btn-fg: #FFFFFF;
  --nav-bg: rgba(243, 248, 248, .86); --user-bubble: #E1EEEE; --send-off: #B9CACB;
  --ok-bg: #E3F4EC; --ok-fg: #1E7A5A; --no-bg: #FBE9E8; --no-fg: #B4423E; --blob-1: #d6eeee; --blob-2: #e6f2f2;
  color-scheme: light;
}

/* Dark mode: follows the system unless the visitor picked a theme (theme.js sets html[data-theme]) */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --ink: #E6F0F0; --ink-2: #CFE0E0; --ground: #0B1517; --surface: #122023; --line: #23393C; --line-soft: #1A2C2F; --tint: #173033;
  --muted: #A3BABB; --faint: #7D9698; --icon: #6E8A8C; --accent: #3BB4BA; --link: #6CCFD4;
  --deep: #0E2225; --on-deep: #FFFFFF; --btn-bg: #3BB4BA; --btn-bg-2: #57C6CB; --btn-fg: #06191B;
  --nav-bg: rgba(11, 21, 23, .82); --user-bubble: #17302F; --send-off: #2C4446;
  --ok-bg: rgba(59, 180, 122, .16); --ok-fg: #6FD3A5; --no-bg: rgba(229, 56, 59, .15); --no-fg: #F08C8A; --blob-1: #143236; --blob-2: #0F2528;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 28px -14px rgba(0, 0, 0, .6);
  --shadow-field: 0 1px 2px rgba(0, 0, 0, .3), 0 24px 48px -24px rgba(0, 0, 0, .7);
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --ink: #E6F0F0; --ink-2: #CFE0E0; --ground: #0B1517; --surface: #122023; --line: #23393C; --line-soft: #1A2C2F; --tint: #173033;
  --muted: #A3BABB; --faint: #7D9698; --icon: #6E8A8C; --accent: #3BB4BA; --link: #6CCFD4;
  --deep: #0E2225; --on-deep: #FFFFFF; --btn-bg: #3BB4BA; --btn-bg-2: #57C6CB; --btn-fg: #06191B;
  --nav-bg: rgba(11, 21, 23, .82); --user-bubble: #17302F; --send-off: #2C4446;
  --ok-bg: rgba(59, 180, 122, .16); --ok-fg: #6FD3A5; --no-bg: rgba(229, 56, 59, .15); --no-fg: #F08C8A; --blob-1: #143236; --blob-2: #0F2528;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 28px -14px rgba(0, 0, 0, .6);
  --shadow-field: 0 1px 2px rgba(0, 0, 0, .3), 0 24px 48px -24px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; background: var(--ground); color: var(--ink); font: 400 17px/1.55 var(--ui); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: #156167; }
img { max-width: 100%; }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; width: 100%; }

/* Header */
.nav { position: sticky; top: 0; z-index: 20; background: var(--nav-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); }
.nav .wrap { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--tint); }
.brand b { font: 700 21px/1 var(--display); letter-spacing: -.01em; }
.pill { font: 500 12px/1 var(--ui); color: var(--muted); padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); white-space: nowrap; }
.navlinks { display: flex; gap: 4px; }
.navlinks a { color: var(--muted); text-decoration: none; font: 500 15px/1 var(--ui); padding: 10px 12px; border-radius: 10px; transition: background .2s, color .2s; }
.navlinks a:hover { color: var(--ink); background: var(--tint); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 14px; font: 600 15px/1 var(--ui); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .2s, background .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { height: 42px; padding: 0 16px; font-size: 14px; }
.btn-ink { background: var(--btn-bg); color: var(--btn-fg); } .btn-ink:hover { background: var(--btn-bg-2); color: var(--btn-fg); }
.btn-accent { background: var(--accent); color: var(--ink); } .btn-accent:hover { filter: brightness(1.05); color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .28); } .btn-ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.btn-soft { background: var(--surface); color: var(--ink); border-color: var(--line); } .btn-soft:hover { background: var(--ground); color: var(--ink); }
.btn svg { flex: none; }

/* Hero */
.hero { padding-top: 72px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 9px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font: 500 13px/1 var(--ui); color: var(--muted); }
.eyebrow-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
h1.display { margin: 0; font: 600 96px/.95 var(--display); letter-spacing: -.035em; color: var(--ink); }
.uline { position: relative; display: inline-block; }
.uline svg { position: absolute; left: 2%; bottom: -14px; width: 96%; height: 16px; color: var(--accent); }
.tag { margin: 0; font: 400 22px/1.4 var(--ui); color: var(--muted); max-width: 600px; }
.hint { margin: 0; font: 400 13px/1.4 var(--ui); color: var(--faint); }

/* Ask field */
.ask { width: 100%; max-width: 720px; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-field); transition: box-shadow .25s, border-color .25s; }
.ask:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 32%, transparent), 0 24px 48px -24px rgba(15, 42, 46, .3); }
.ask .spark { color: var(--accent); flex: none; }
.ask input, .ask textarea { font: 400 18px/1.4 var(--ui); color: var(--ink); background: transparent; border: 0; outline: 0; flex: 1; min-width: 0; padding: 10px 0; resize: none; }
.ask input::placeholder, .ask textarea::placeholder { color: var(--faint); }
.send { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--btn-bg); color: var(--btn-fg); border: 0; cursor: pointer; flex: none; transition: transform .2s, background .2s; }
.send:hover { background: var(--btn-bg-2); transform: translateY(-1px); }
.send:disabled { background: var(--send-off); cursor: default; transform: none; }

/* Stage: Oliver + falling question cards */
.stage { position: relative; height: 640px; }
.stage-label { position: absolute; left: 50%; top: 44px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--tint); font: 500 13px/1 var(--ui); color: var(--muted); white-space: nowrap; }
.oliver-wrap { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); z-index: 2; pointer-events: none; }
.oliver { display: block; width: 560px; height: auto; animation: bob 5.5s ease-in-out infinite; }
.floor { position: absolute; left: 50%; bottom: 14px; width: 300px; height: 26px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(rgba(15, 42, 46, .22), rgba(15, 42, 46, 0) 70%); z-index: 1; animation: floor 5.5s ease-in-out infinite; }
.pile { position: absolute; inset: 0; pointer-events: none; }
.drop { position: absolute; pointer-events: auto; }
.stage:not(.go) .drop { opacity: 0; }
.stage.go .drop { animation: fall 1.15s cubic-bezier(.22, .9, .32, 1.06) both; animation-delay: var(--d, 0s); }
.stage.settled .drop { animation: none; opacity: 1; }
.q { display: inline-flex; align-items: center; gap: 10px; padding: 14px 16px 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-card); font: 500 15px/1.3 var(--ui); color: var(--ink); cursor: pointer; text-align: left; white-space: nowrap; transform: rotate(var(--rot, 0deg)); transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; text-decoration: none; }
.q svg { color: var(--icon); flex: none; transition: color .2s, transform .2s; }
.q:hover { transform: rotate(var(--rot, 0deg)) translateY(-5px) scale(1.03); box-shadow: 0 2px 4px rgba(15, 42, 46, .05), 0 22px 36px -16px rgba(15, 42, 46, .32); color: var(--ink); }
.q:hover svg { color: var(--accent); transform: translate(1px, -1px); }
.q:active { transform: rotate(var(--rot, 0deg)) scale(.98); }
.stage-more { display: none; }

/* Topics */
.section { padding-top: 56px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.eyebrow { margin: 0 0 10px; font: 600 13px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
h2.display { margin: 0; font: 600 42px/1.05 var(--display); letter-spacing: -.025em; color: var(--ink); }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.topic { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 14px; transition: transform .25s, box-shadow .25s; }
.topic:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(15, 42, 46, .05), 0 24px 40px -20px rgba(15, 42, 46, .25); }
.topic-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--tint); display: flex; align-items: center; justify-content: center; color: var(--ink); }
.topic h3 { margin: 0; font: 600 19px/1.2 var(--ui); }
.topic nav { display: flex; flex-direction: column; }
.topic a { color: var(--ink); text-decoration: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-soft); font: 500 15px/1.35 var(--ui); }
.topic a svg { color: var(--icon); flex: none; }
.topic a:hover, .topic a:hover svg { color: var(--link); }

/* Partner band */
.band { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; background: var(--deep); color: var(--on-deep); border-radius: 28px; padding: 56px; }
.band .eyebrow { color: rgba(255, 255, 255, .6); }
.band h2.display { color: #fff; font-size: 44px; }
.band p.lead { margin: 18px 0 0; font: 400 17px/1.55 var(--ui); color: rgba(255, 255, 255, .74); max-width: 520px; }
.band .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.example { background: var(--surface); color: var(--ink); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.example-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.example-head span:first-child { font: 600 13px/1 var(--ui); color: var(--faint); letter-spacing: .06em; text-transform: uppercase; }
.example ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.example li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); font: 500 15px/1.3 var(--ui); }
.ok { font: 600 12px/1 var(--ui); color: var(--ok-fg); background: var(--ok-bg); padding: 6px 9px; border-radius: 999px; white-space: nowrap; }
.example small { color: var(--faint); font-size: 12px; }

/* Footer */
.footer { margin-top: 72px; border-top: 1px solid var(--line-soft); }
.footer .wrap { padding-top: 28px; padding-bottom: 32px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer a { color: var(--muted); text-decoration: none; font: 500 14px/1 var(--ui); }
.footer a:hover { color: var(--ink); }
.footer p { margin: 0; font-size: 13px; color: var(--faint); max-width: 560px; }

/* Quick answer preview */
dialog.preview { border: 0; padding: 0; background: transparent; max-width: min(640px, calc(100vw - 32px)); width: 100%; overflow: visible; }
dialog.preview::backdrop { background: rgba(15, 42, 46, .35); backdrop-filter: blur(6px); }
.preview-card { position: relative; background: var(--surface); border-radius: 26px; padding: 28px; box-shadow: 0 40px 80px -30px rgba(15, 42, 46, .5); animation: pop .35s cubic-bezier(.2, .9, .3, 1.1) both; }
.preview-card h2 { margin: 14px 0 10px; font: 600 30px/1.1 var(--display); letter-spacing: -.02em; padding-right: 36px; }
.preview-card p { margin: 0 0 16px; color: var(--muted); }
.who-line { display: flex; align-items: center; gap: 12px; }
.who-line img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--tint); }
.who-line b { display: block; font: 600 15px/1.2 var(--ui); }
.who-line span { font: 400 13px/1.2 var(--ui); color: var(--faint); }
.preview-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--ink); background: var(--ground); }
.preview-close { position: absolute; top: 18px; right: 18px; }

/* Contextual AML Buddy card */
.partner { display: flex; align-items: center; gap: 14px; padding: 16px; margin-top: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.partner-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--deep); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.partner div { flex: 1; min-width: 0; }
.partner div b { display: block; font: 600 14px/1.35 var(--ui); }
.partner div span { display: block; font: 400 13px/1.45 var(--ui); color: var(--muted); }
.partner .btn { height: 42px; padding: 0 14px; font-size: 14px; }

/* Conversation */
.chat { flex: 1; width: 100%; max-width: 820px; margin: 0 auto; padding: 32px 32px 0; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font: 400 13px/1.3 var(--ui); margin-bottom: 26px; text-align: center; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.thread { display: flex; flex-direction: column; gap: 26px; padding-bottom: 24px; }
.msg-user { align-self: flex-end; max-width: 80%; background: var(--user-bubble); color: var(--ink); padding: 14px 18px; border-radius: 22px 22px 6px 22px; font-size: 17px; white-space: pre-wrap; overflow-wrap: anywhere; animation: fadein .35s ease both; }
.msg-bot { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; animation: fadein .35s ease both; }
.msg-bot > img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--tint); }
.bot-name { font: 600 14px/1.2 var(--ui); margin: 6px 0 8px; }
.bot-name span { font-weight: 400; color: var(--faint); }
.bubble { color: var(--ink); overflow-wrap: anywhere; }
.bubble p { margin: 0 0 12px; }
.bubble ul, .bubble ol { margin: 0 0 12px; padding-left: 22px; }
.bubble ul { list-style: none; }
.bubble ul li { position: relative; margin: 6px 0; }
.bubble ul li::before { content: ''; position: absolute; left: -18px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.bubble ol li { margin: 6px 0; }
.bubble strong { font-weight: 600; }
.bubble .label { display: inline-block; margin-bottom: 8px; font: 600 12px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
sup.cite a { font: 600 11px/1 var(--ui); padding: 2px 5px; margin-left: 2px; border-radius: 6px; background: var(--tint); color: var(--link); text-decoration: none; }
.typing { display: inline-flex; gap: 5px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: .35; animation: dot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
.notice { padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); font-size: 15px; }
.msg-actions { display: flex; align-items: center; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.msg-actions .icon-btn { width: 32px; height: 32px; border: 0; background: transparent; color: var(--faint); }
.msg-actions .icon-btn:hover { background: var(--tint); color: var(--ink); }
.msg-actions .sep { width: 1px; height: 18px; background: var(--line); margin: 0 8px; }
.msg-actions a { font: 500 14px/1.3 var(--ui); text-decoration: none; }
.msg-actions a:hover { text-decoration: underline; }
.sources { margin-top: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.sources summary { cursor: pointer; list-style: none; padding: 11px 16px; font: 500 14px/1.3 var(--ui); color: var(--muted); }
.sources summary::-webkit-details-marker { display: none; }
.sources summary::before { content: '+'; display: inline-block; width: 18px; color: var(--accent); font-weight: 700; }
.sources[open] summary::before { content: '–'; }
.sources ol { margin: 0; padding: 0 16px 8px 36px; }
.sources li { padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: 14px; line-height: 1.5; }
.src-q { font-weight: 600; }
.src-q a { color: var(--ink); text-decoration: none; } .src-q a:hover { color: var(--link); text-decoration: underline; }
.src-meta { color: var(--faint); font-size: 13px; }
.src-links { margin: 4px 0 0; padding: 0; list-style: none; }
.src-links li { padding: 2px 0; border: 0; font-size: 13px; }
.followups { display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto; padding: 0 0 12px; scrollbar-width: none; }
.followups .chip { flex: none; white-space: nowrap; }
.chip { font: 500 14px/1.3 var(--ui); padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-align: left; text-decoration: none; transition: background .2s, transform .2s; }
.chip:hover { background: var(--tint); transform: translateY(-1px); color: var(--ink); }
.composer { position: sticky; bottom: 0; z-index: 10; padding: 12px 0 calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--ground) 24%); }
.composer .ask { max-width: none; border-radius: 22px; }
.composer .ask textarea { max-height: 180px; }
.fine { margin: 10px 0 0; text-align: center; font: 400 13px/1.45 var(--ui); color: var(--faint); }
.fine a { color: var(--muted); }

/* Question page */
.qpage { padding-top: 40px; }
.crumbs { font: 500 14px/1.3 var(--ui); color: var(--faint); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--ink); }
.qpage h1 { margin: 0 0 14px; font: 600 56px/1.02 var(--display); letter-spacing: -.03em; max-width: 900px; }
.qmeta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; color: var(--faint); font-size: 14px; margin-bottom: 34px; }
.qgrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.inshort { display: grid; grid-template-columns: 48px 1fr; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px; box-shadow: var(--shadow-card); }
.inshort img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--tint); }
.inshort p { margin: 0; font: 500 19px/1.5 var(--ui); }
.inshort p.eyebrow { margin: 4px 0 8px; font: 600 12px/1 var(--ui); color: var(--faint); }
.prose { margin-top: 34px; font-size: 17px; line-height: 1.65; }
.prose h2 { margin: 36px 0 12px; font: 600 28px/1.15 var(--display); letter-spacing: -.02em; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose ul { list-style: none; }
.prose ul li { position: relative; margin: 8px 0; }
.prose ul li::before { content: ''; position: absolute; left: -18px; top: .65em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.prose ol li { margin: 8px 0; }
.srcbox { margin-top: 36px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.srcbox h2 { margin: 0 0 12px; font: 600 20px/1.2 var(--ui); }
.srcbox ol { margin: 0; padding-left: 20px; }
.srcbox li { margin: 0 0 12px; font-size: 15px; }
.srcbox blockquote { margin: 6px 0 0; padding-left: 12px; border-left: 3px solid var(--line); color: var(--muted); font-size: 14px; }
.related { margin-top: 36px; }
.related h2 { margin: 0 0 14px; font: 600 20px/1.2 var(--ui); }
.related nav { display: flex; flex-wrap: wrap; gap: 8px; }
.still { margin-top: 36px; padding: 24px; border-radius: 22px; background: var(--tint); }
.still h2 { margin: 0 0 6px; font: 600 22px/1.2 var(--display); }
.still p { margin: 0 0 14px; color: var(--muted); }
.aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 20px; }
.card .who-line { margin-bottom: 14px; }
.card .ask { padding: 6px 6px 6px 14px; border-radius: 16px; box-shadow: none; background: var(--ground); }
.card .ask input { font-size: 15px; padding: 8px 0; }
.card .send { width: 38px; height: 38px; }
.card .chips { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 12px; }
.card .chip { font-size: 13px; padding: 7px 12px; }
.promo { background: var(--deep); color: var(--on-deep); border-radius: 22px; padding: 22px; }
.promo .eyebrow { color: rgba(255, 255, 255, .6); display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 12px; }
.promo .eyebrow i { width: 30px; height: 30px; border-radius: 10px; background: rgba(255, 255, 255, .08); display: inline-flex; align-items: center; justify-content: center; color: var(--accent); }
.promo h3 { margin: 0 0 10px; font: 600 21px/1.25 var(--display); }
.promo p { margin: 0 0 16px; font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, .74); }
.toc { margin: 0; padding: 0; list-style: none; }
.toc a { display: block; padding: 10px 0; border-top: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; font: 500 14px/1.35 var(--ui); }
.toc a:hover { color: var(--link); }

/* Content pages */
.page { max-width: 760px; margin: 0 auto; padding: 56px 32px 24px; width: 100%; }
.page h1 { margin: 0 0 18px; font: 600 56px/1.02 var(--display); letter-spacing: -.03em; }
.page h2 { margin: 34px 0 10px; font: 600 26px/1.15 var(--display); letter-spacing: -.02em; }
.page .meta { color: var(--faint); font-size: 14px; }
.center { text-align: center; }

@keyframes fall { 0% { transform: translateY(-900px) rotate(-26deg); opacity: 0; } 10% { opacity: 1; } 66% { transform: translateY(18px) rotate(5deg); } 82% { transform: translateY(-8px) rotate(-2deg); } 100% { transform: translateY(0) rotate(0); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes floor { 0%, 100% { transform: translateX(-50%) scaleX(1); opacity: .9; } 50% { transform: translateX(-50%) scaleX(.9); opacity: .6; } }
@keyframes fadein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage.go .drop { animation: fadein .5s ease both; }
  .oliver, .floor, .preview-card, .typing i, .msg-user, .msg-bot { animation: none; }
  .q, .topic, .btn, .send, .ask, .chip { transition: none; }
}
@media (max-width: 720px) {
  .partner { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: start; gap: 12px 14px; }
  .partner .btn { grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 1100px) { .navlinks { display: none; } .qgrid { grid-template-columns: minmax(0, 1fr); } .aside { position: static; } }
@media (max-width: 900px) {
  .stage { height: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px 0 8px; }
  .stage-label { position: static; transform: none; order: 1; }
  .oliver-wrap { position: static; transform: none; order: 0; }
  .oliver { width: 240px; }
  .floor { display: none; }
  .pile { position: static; display: flex; flex-direction: column; align-items: center; gap: 12px; pointer-events: auto; order: 2; }
  .pile .drop:nth-child(n+4) { display: none; }
  .drop { position: static !important; }
  .q { white-space: normal; }
  .stage-more { display: inline-flex; order: 3; margin-top: 6px; font: 600 15px/1 var(--ui); text-decoration: none; }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band { grid-template-columns: minmax(0, 1fr); padding: 36px; }
}
@media (max-width: 600px) {
  .wrap, .chat, .page { padding-left: 16px; padding-right: 16px; }
  .nav .wrap { height: 64px; }
  .hero { padding-top: 32px; gap: 16px; }
  h1.display { font-size: 56px; }
  .tag { font-size: 18px; }
  .ask { border-radius: 20px; padding: 8px 8px 8px 16px; }
  .ask input, .ask textarea { font-size: 16px; }
  .hint { display: none; }
  .grid4 { grid-template-columns: minmax(0, 1fr); }
  h2.display, .band h2.display { font-size: 32px; }
  .band { padding: 28px 22px; border-radius: 24px; }
  .qpage h1, .page h1 { font-size: 38px; }
  .msg-user { max-width: 92%; }
  .msg-bot { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
  .msg-bot > img { width: 32px; height: 32px; }
  .brand .pill { display: none; }
}

/* How I work */
.hiw { padding-bottom: 8px; }
.hiw-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 64px; }
.hiw-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.display-md { margin: 0; font: 600 68px/1 var(--display); letter-spacing: -.03em; color: var(--ink); }
.display-sm { margin: 0; font: 600 32px/1.1 var(--display); letter-spacing: -.02em; }
.hiw-copy .tag { text-align: left; }
.hiw-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.hiw-art { position: relative; display: flex; justify-content: center; min-height: 460px; align-items: flex-end; padding-top: 24px; }
.hiw-blob { position: absolute; inset: 8% 6% 4%; border-radius: 46% 54% 48% 52% / 52% 44% 56% 48%; background: radial-gradient(circle at 40% 35%, var(--blob-1), var(--blob-2) 60%, transparent 72%); }
.hiw-art img { position: relative; width: 340px; height: auto; animation: bob 5.5s ease-in-out infinite; filter: drop-shadow(0 30px 30px rgba(15, 42, 46, .18)); }
.float-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-card); font: 500 14px/1.2 var(--ui); white-space: nowrap; }
.float-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.float-chip.c1 { top: 58%; left: -6%; transform: rotate(-5deg); }
.float-chip.c2 { top: 40%; right: -8%; transform: rotate(4deg); }
.float-chip.c3 { bottom: 6%; right: -2%; transform: rotate(-3deg); }
.hiw-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.hiw-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.hiw-stats b { font: 600 44px/1 var(--display); letter-spacing: -.02em; color: var(--link); }
.hiw-stats span { color: var(--muted); font-size: 15px; line-height: 1.4; }
.hiw .section h2.display { margin-bottom: 26px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: s; position: relative; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; position: relative; }
.steps li:not(:last-child)::after { content: ''; position: absolute; top: 44px; right: -20px; width: 20px; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 4px, transparent 4px 8px); }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--deep); color: var(--accent); font: 600 18px/1 var(--display); }
.steps h3 { margin: 16px 0 8px; font: 600 18px/1.25 var(--ui); }
.steps p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.hiw-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.hiw-split.narrow { align-items: center; padding: 32px; background: var(--tint); border-radius: 24px; }
.hiw-split h2.display { margin-bottom: 18px !important; }
.lead-dark { margin: 0 0 14px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.source-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.source-grid li { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; border-left: 4px solid var(--accent); }
.source-grid b { font: 600 16px/1.3 var(--ui); }
.source-grid span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.hiw-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card-lg { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 32px; }
.card-ink { background: var(--deep); border-color: var(--deep); color: var(--on-deep); }
.card-ink .eyebrow { color: rgba(255, 255, 255, .6); }
.nos, .yes { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.nos li, .yes li { position: relative; padding-left: 36px; line-height: 1.55; }
.nos li::before, .yes li::before { position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font: 700 13px/1 var(--ui); }
.nos li::before { content: '✕'; background: var(--no-bg); color: var(--no-fg); }
.yes li::before { content: '✓'; background: rgba(42, 158, 164, .22); color: var(--accent); }
.card-ink .yes li { color: rgba(255, 255, 255, .86); }
.card-ink b { color: #fff; }
.link-light { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; color: var(--accent); font-weight: 600; text-decoration: none; }
.link-light:hover { color: #6fd0d5; }
.hiw-cta { grid-template-columns: 1.15fr .85fr; position: relative; overflow: hidden; padding-bottom: 0; align-items: stretch; }
.hiw-cta > div:first-child { padding-bottom: 56px; align-self: center; }
.hiw-cta-art { display: flex; justify-content: center; align-items: flex-end; }
.hiw-cta .lead a { color: var(--accent); }
.hiw-cta-img { display: block; width: 380px; max-width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .45)); }
@media (prefers-reduced-motion: reduce) { .hiw-art img { animation: none; } }
@media (max-width: 1000px) {
  .hiw-hero, .hiw-split, .hiw-two { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li::after { display: none; }
  .hiw-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hiw-art { min-height: 380px; }
  .hiw-art img { width: 280px; }
}
@media (max-width: 600px) {
  .hiw-hero { padding-top: 32px; gap: 24px; }
  .display-md { font-size: 44px; }
  .steps, .source-grid { grid-template-columns: minmax(0, 1fr); }
  .hiw-stats b { font-size: 34px; }
  .card-lg { padding: 24px; }
  .float-chip { font-size: 12px; padding: 8px 10px; }
  .float-chip.c1 { left: 0; } .float-chip.c2 { right: 0; } .float-chip.c3 { right: 0; }
  .hiw-cta { grid-template-columns: minmax(0, 1fr); }
  .hiw-cta-img { width: 240px; }
  .hiw-cta > div:first-child { padding-bottom: 8px; }
  .hiw-split.narrow { padding: 22px; }
}

/* Draggable question cards (physics in app.js, desktop/tablet) */
.stage[data-physics] .drop { will-change: transform; }
.stage[data-physics] .drop { cursor: grab; }
.stage[data-physics] .q { cursor: grab; user-select: none; -webkit-user-select: none; }
.stage[data-physics] .q.grabbing { cursor: grabbing; transition: box-shadow .2s; transform: rotate(var(--rot, 0deg)) scale(1.05); box-shadow: 0 4px 8px rgba(15, 42, 46, .08), 0 30px 50px -18px rgba(15, 42, 46, .4); }
.stage[data-physics] .q:not(.grabbing) { transition: box-shadow .25s; }

/* AML Buddy brand blocks (partner band + footer): AML Buddy's own dark identity, Signal Green, Grift */
@font-face { font-family: Grift; src: url(/fonts/grift.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
.aml { --aml-bg: #0a0b0b; --aml-surface: #141615; --aml-border: #2c312f; --aml-text: #f2f4f3; --aml-body: #d3d8d6; --aml-muted: #a3a9a6; --aml-green: #00fca3; --aml-on-green: #04110c; }
.btn-green { background: #000; color: #00fca3; border-color: rgba(0, 252, 163, .55); font-family: Grift, var(--ui); border-radius: 999px; }
.btn-green:hover { background: #0e3b2c; color: #00fca3; border-color: #00fca3; }
.band.aml { background: radial-gradient(110% 90% at 85% 0%, #0e3b2c 0%, #0d1a16 45%, #0a0b0b 100%); border: 1px solid var(--aml-border); }
.band.aml h2.display { font-family: Grift, var(--display); letter-spacing: -.02em; }
.band.aml p.lead { color: var(--aml-body); font-family: Grift, var(--ui); }
.band.aml .btn { font-family: Grift, var(--ui); border-radius: 999px; }
.band.aml .btn-ghost { border-color: var(--aml-border); }
.brand-line { display: flex; align-items: center; gap: 10px; text-transform: none; letter-spacing: 0; font: 600 15px/1 Grift, var(--ui) !important; color: var(--aml-text) !important; margin-bottom: 18px !important; }
.brand-line img:first-child { border-radius: 50%; background: #1b1e1d; }
.brand-line .x { color: var(--aml-green); font-size: 18px; }
.brand-logo { height: 26px; width: auto; }
.band.aml .example { background: var(--aml-surface); color: var(--aml-text); border: 1px solid var(--aml-border); font-family: Grift, var(--ui); }
.band.aml .example li { border-top-color: var(--aml-border); }
.band.aml .example .pill { background: transparent; border-color: var(--aml-border); color: var(--aml-muted); }
.band.aml .example-head span:first-child, .band.aml .example small { color: var(--aml-muted); }
.band.aml .ok { background: rgba(0, 252, 163, .12); color: var(--aml-green); }
.footer.aml { margin-top: 72px; background: var(--aml-bg); color: var(--aml-body); border-top: 0; font-family: Grift, var(--ui); }
.footer.aml .wrap { display: block; padding-top: 44px; padding-bottom: 36px; }
.foot-top { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--aml-border); }
.foot-logo img { display: block; height: 32px; width: auto; }
.foot-pitch { flex: 1; min-width: 240px; margin: 0; color: var(--aml-muted); font-size: 15px; line-height: 1.5; max-width: none !important; }
.footer.aml .btn { border-radius: 999px; font-family: Grift, var(--ui); }
.foot-bottom { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; padding-top: 24px; }
.footer.aml nav a { color: var(--aml-body); font-family: Grift, var(--ui); }
.footer.aml nav a:hover { color: var(--aml-green); }
.footer.aml .foot-bottom p { margin: 0; color: #868c89; font-size: 13px; max-width: 520px; }
@media (max-width: 600px) { .foot-top { gap: 16px; } .footer.aml .btn { width: 100%; } }
.footer.aml .btn-green, .footer.aml .btn-green:hover { color: #00fca3; font-weight: 600; }
.band.aml .lead a { color: #00fca3; }

/* AML Buddy partner card (quick-answer dialog + chat) and /q promo */
.partner.aml { background: radial-gradient(120% 140% at 100% 0%, #0e3b2c 0%, #0d1a16 45%, #0a0b0b 100%); border-color: #2c312f; color: #f2f4f3; font-family: Grift, var(--ui); }
.partner.aml .partner-logo { flex: none; height: 24px; width: auto; }
.partner.aml div b { color: #f2f4f3; font-family: Grift, var(--ui); }
.partner.aml div span { color: #a3a9a6; font-family: Grift, var(--ui); }
.promo.aml { background: radial-gradient(120% 90% at 100% 0%, #0e3b2c 0%, #0d1a16 45%, #0a0b0b 100%); border: 1px solid #2c312f; font-family: Grift, var(--ui); }
.promo.aml .promo-logo { display: block; height: 26px; width: auto; margin-bottom: 16px; }
.promo.aml h3 { font-family: Grift, var(--display); }
.promo.aml p { color: #a3a9a6; }
@media (max-width: 720px) { .partner.aml { grid-template-columns: minmax(0, 1fr); } .partner.aml .partner-logo { grid-column: 1 / -1; } }

/* Theme toggle */
.nav-right { display: flex; align-items: center; gap: 10px; }
.theme-btn { width: 42px; height: 42px; border-radius: 12px; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; } :root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .sun { display: none; } :root:not([data-theme="light"]) .theme-btn .moon { display: block; } }
