@font-face { font-family: 'AvenirNext'; font-weight: 400; font-display: swap; src: url('/static/fonts/370E00_5_0.woff2') format('woff2'); }
@font-face { font-family: 'AvenirNext'; font-weight: 500; font-display: swap; src: url('/static/fonts/370E00_4_0.woff2') format('woff2'); }
@font-face { font-family: 'AvenirNext'; font-weight: 600; font-display: swap; src: url('/static/fonts/370E00_1_0.woff2') format('woff2'); }
@font-face { font-family: 'AvenirNext'; font-weight: 700; font-display: swap; src: url('/static/fonts/370E00_0_0.woff2') format('woff2'); }

:root {
  --purple: #8522E9;
  --grad: linear-gradient(90deg, #9D23EA, #4C23EA);
  --hero-bg: radial-gradient(120% 90% at 85% 0%, rgba(133,34,233,.55), transparent 60%), linear-gradient(180deg, #1C2029, #131518);
  --grad-mcp: linear-gradient(90deg, #4C23EA, #9D23EA); /* reversed, blue to purple, like the MCP logo badge */
  --grad-hover: linear-gradient(90deg, #B04BF5, #5E3BF2);
  --ink: #131518;
  --text: #2C3643;
  --muted: #6D7986;
  --line: #DFE3E9;
  --page: #F4F7F9;
  --card: #FFFFFF;
  --slate: #2C3643;
  --slate-deep: #131518;
  --danger: #B30F0F;
  --danger-bg: #FFE1E3; /* clearly red, so it never reads as the Claude badge clay */
  --ok: #0C9D65;
  --radius: 14px;
  --shadow: 0 8px 20px rgba(149, 158, 168, .12), 0 1px 2px rgba(19, 21, 24, .04);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'AvenirNext', 'Avenir Next', Avenir, 'Helvetica Neue', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text); background: var(--page); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; min-height: 100vh;
}
a { color: var(--purple); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); letter-spacing: -0.5px; margin: 0; }

/* ---------- sign-in: white glass card centred over a light, full-page ribbon ---------- */
.signin {
  position: relative; isolation: isolate; min-height: 100vh; display: grid; place-items: center; padding: 48px 16px;
  background: radial-gradient(120% 80% at 85% 0%, rgba(133, 34, 233, .10), transparent 60%), #F7F7FB;
}
.signin .hero-ribbon { position: fixed; } /* fills the window behind the card */
.signin .hero-ribbon.is-static { mix-blend-mode: normal; background: url('/static/img/hero-ribbon-light.jpg') center / cover no-repeat; } /* light still when WebGL2 is unavailable */
.signin .card { position: relative; z-index: 1; }
.card.glass-card {
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .58));
  border: 1px solid rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(26px) saturate(160%); backdrop-filter: blur(26px) saturate(160%);
  box-shadow: inset 0 1px 0 #fff, 0 24px 60px rgba(76, 35, 234, .12), 0 2px 8px rgba(19, 21, 24, .06);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card.glass-card { background: rgba(255, 255, 255, .96); }
}
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 44px 48px; width: 100%; max-width: 480px;
}
.card h1 { font-size: 30px; line-height: 1.15; font-weight: 700; margin-bottom: 10px; }
.card .sub { color: var(--muted); margin: 0 0 28px; font-size: 15px; }
.client-pill {
  display: inline-flex; align-items: center; gap: 8px; background: #F3EAFD; color: #5B17A6;
  border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; margin-bottom: 18px;
}
/* verified assistants get their own colours: Claude's clay faded, with a darker clay for readable text */
.client-pill--claude { background: #FAECE7; color: #A84B2B; }
.client-pill--chatgpt { background: #EFEFF1; color: #000; }
.client-logo { flex: none; display: block; }
label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin: 18px 0 8px; }
input[type=email], input[type=password], input[type=text], select {
  width: 100%; height: 50px; border: 1px solid var(--line); border-radius: 10px; padding: 0 16px;
  font: inherit; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%232C3643' stroke-width='2'%3E%3Cpath d='M1 1l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
input:focus, select:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(133, 34, 233, .14); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; border-radius: 10px; border: 0; font: inherit; font-weight: 600; font-size: 16px;
  cursor: pointer; padding: 0 22px; transition: transform .05s, box-shadow .15s, background .15s;
}
.btn-primary { width: 100%; margin-top: 26px; color: #fff; background: var(--grad); box-shadow: 0 6px 16px rgba(92, 35, 234, .28); }
.btn-primary:hover { background: var(--grad-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover { border-color: #B2BFCB; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.btn-row .btn-primary { margin-top: 0; }
.center { text-align: center; }
.link-row { margin-top: 18px; font-size: 15px; }
.fine { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; font-size: 13px; color: var(--muted); text-align: center; }
.alert { background: var(--danger-bg); color: var(--danger); border: 1px solid #FBC5CA; border-radius: 10px; padding: 12px 14px; font-size: 14px; font-weight: 500; margin-bottom: 6px; }

/* ---------- consent ---------- */
.card.card-wide { max-width: 560px; }
.handshake { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 30px; }
.handshake .wordmark { width: 168px; }
.handshake .dots { flex: 0 1 70px; border-top: 3px dotted #C6B4E8; }
.handshake .peer { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.handshake .peer .bubble { width: 58px; height: 58px; border-radius: 50%; background: #F1E8FC; display: flex; align-items: center; justify-content: center; }
.handshake .peer .bubble--claude { background: #FAECE7; } /* same as the badge colours above */
.handshake .peer .bubble--chatgpt { background: #EFEFF1; }
.perms { list-style: none; padding: 0; margin: 24px 0 8px; display: grid; gap: 14px; }
.perms li { display: flex; gap: 14px; align-items: center; font-size: 16px; color: var(--ink); }
.perms .tick { width: 28px; height: 28px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; flex: none; }
.perms .tick.no { background: #fff; box-shadow: inset 0 0 0 1px var(--line); } /* white, with a hairline so it shows on the white card */
.who { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 18px; font-size: 15px; color: var(--muted); }
.returning { font-size: 13px; color: var(--muted); margin-top: 16px; text-align: center; }

/* ---------- landing ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--hero-bg); color: #fff; padding: 28px 16px 60px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 8px; position: relative; }
.hero .wrap { z-index: 1; }
/* hero ribbon: drawn live by /static/ribbon.js; a still image if WebGL2 isn't available */
.hero-ribbon {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.hero-ribbon canvas { display: block; width: 100%; height: 100%; }
.hero-ribbon.is-static {
  /* a frame of the live ribbon, grid and left-side dimming included */
  mix-blend-mode: screen; background: url('/static/img/hero-ribbon-end.jpg') center 60% / cover no-repeat;
}
/* load-in: everything rises and fades in, in reading order */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* the steps section is left out: its cards run their own staggered entrance (see .steps-anim) */
.hero .nav, .hero .eyebrow, .hero h1, .hero p.lead, .urlbox, .url-note, .url-alt, main .section:not(.section-steps), .section-steps h2, .section-steps .wrap > p { animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.hero .nav { animation-delay: 0s; }
.hero .eyebrow { animation-delay: .06s; }
.hero h1 { animation-delay: .12s; }
.hero p.lead { animation-delay: .24s; }
.urlbox { animation-delay: .36s; }
.url-note, .url-alt { animation-delay: .44s; }
main .section, .section-steps h2 { animation-delay: .56s; }
.section-steps .wrap > p { animation-delay: .64s; }
/* hero chat: the panel rises with the copy, then the conversation fills in one piece at a time */
.chat, .chat .msg-user, .chat .msg-ai, .chat .vid-card, .chat .rec { animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.chat { animation-delay: .18s; }
.chat .msg-user { animation-delay: .5s; }
.chat .msg-ai { animation-delay: .72s; }
.chat .vid-card { animation-delay: .94s; }
.chat .rec { animation-delay: 1.16s; }
/* the resonance ring draws in from empty to its score as the video card arrives (188.5 = the ring's
   full circumference, so it starts with no arc; it ends on the score set in the markup) */
@keyframes ring-draw { from { stroke-dashoffset: 188.5; } }
.chat .vid-ring-fill { animation: ring-draw 1.4s cubic-bezier(.3, .7, .2, 1) 1.1s backwards; }
/* scroll-in for the lower sections (set by /static/reveal.js); same easing as the load-in */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s cubic-bezier(.2, .7, .2, 1), transform 1s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hero .nav, .hero .eyebrow, .hero h1, .hero p.lead, .urlbox, .url-note, main .section, .section-steps h2, .section-steps .wrap > p { animation: none; }
  .chat, .chat .msg-user, .chat .msg-ai, .chat .vid-card, .chat .rec, .chat .vid-ring-fill { animation: none; }
}
.nav { display: flex; justify-content: space-between; align-items: center; }
.nav .wordmark { width: 150px; height: auto; }
.nav a { color: #fff; opacity: .8; font-size: 15px; }
/* hero: copy on the left, the three steps stacked on the right */
.hero-grid { display: grid; grid-template-columns: minmax(0, 620px) minmax(240px, 1fr); gap: 48px; align-items: center; margin-top: 40px; }
.hero-visual { min-width: 0; }
/* a wide, feathered pool of the hero's dark behind the copy, so the ribbon quietly recedes where it
   crosses the text (darkened only, fading out to nothing well before its edges) */
.hero-copy { position: relative; }
.hero-copy::before {
  content: ''; position: absolute; z-index: -1; inset: -150px -220px -140px -300px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(19,21,24,.74), rgba(19,21,24,.64) 40%, rgba(19,21,24,.3) 72%, rgba(19,21,24,0));
}
.hero h1 { color: #fff; font-size: 52px; line-height: 1.08; margin: 0 0 22px; letter-spacing: -1.4px; white-space: nowrap; } /* two lines, set by the <br> */
/* small shadow on the letters only, so the title holds up over the ribbon */
.hero h1 { text-shadow: 0 2px 4px rgba(8, 6, 18, .35), 0 5px 17px rgba(8, 6, 18, .28); }
/* "Media Intelligence.": dark purple at the bottom of the letters rising to light purple at the top */
/* small label above the title */
.eyebrow { margin: 0 0 18px; font-size: 11.2px; font-weight: 600; letter-spacing: 3.2px; text-transform: uppercase; color: #A783FF; }
/* in a faint purple pill; the right padding is 3.2px less to make up for the letter-spacing after the last letter */
.hero .eyebrow { display: inline-block; padding: 5.6px 9.6px 5.6px 12.8px; border-radius: 999px; background: rgba(133,34,233,.16); border: 1px solid rgba(167,131,255,.24); line-height: 1.3; }
.grad-text {
  display: inline-block; line-height: 1; padding-bottom: .2em; margin-bottom: -.2em; /* room for the g's descender, no layout shift */
  background: linear-gradient(0deg, #6A2BE8 33%, #9A55F7 58%, #E2CCFF 84%); /* stops sit on the letter height */
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  text-shadow: none; filter: drop-shadow(0 0 1px rgba(8, 6, 18, .4)) drop-shadow(0 2px 4px rgba(8, 6, 18, .35)) drop-shadow(0 5px 15px rgba(8, 6, 18, .28)); /* text-shadow would show through the clear fill */
}
.hero p.lead { font-size: 18px; font-weight: 500; color: #fff; max-width: 580px; margin: 0 0 34px; }
.url-note { margin: 12px 0 0; font-size: 14px; color: rgba(255, 255, 255, .7); }
.url-alt { margin: 6px 0 0; font-size: 14px; color: rgba(255, 255, 255, .55); }
.url-alt a { color: rgba(255, 255, 255, .85); text-decoration: underline; text-underline-offset: 2px; }
.url-alt a:hover { color: #fff; }
.urlbox { display: flex; align-items: center; gap: 10px; border-radius: 16px; padding: 8px 8px 8px 18px; max-width: 560px; }
.urlbox code { flex: 1; font-family: ui-monospace, 'SF Mono', Consolas, monospace; font-size: 16px; color: #fff; overflow-x: auto; white-space: nowrap; }
/* Long URLs still scroll, but without the always-visible bar Windows draws (macOS hides it already). */
.urlbox code { scrollbar-width: none; }
.urlbox code::-webkit-scrollbar { display: none; }
.urlbox .btn { height: 42px; color: #fff; background: var(--grad-mcp); font-size: 15px; }
/* Copy URL ⇄ Copied: both labels share one cell (so the width never jumps) and slide past each other */
.btn-flip { position: relative; isolation: isolate; }
/* green while "Copied" shows: deep emerald into jade, a soft sheen on top and a faint green glow
   (every stop stays dark enough for white text at 4.5:1) */
.btn-flip::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity .45s ease;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0) 55%), linear-gradient(110deg, #035B3C, #07784F 45%, #0A7C66);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 6px 18px rgba(16,185,129,.35);
}
.btn-flip.copied::before { opacity: 1; }
.btn-flip .flip { display: inline-grid; overflow: hidden; }
.btn-flip .flip > span { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s ease; }
.btn-flip .flip-b { transform: translateY(100%); opacity: 0; }
.btn-flip.copied .flip-a { transform: translateY(-100%); opacity: 0; }
.btn-flip.copied .flip-b { transform: none; opacity: 1; }
.section-steps { padding-top: 56px; }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 56px; } /* room for the numbers sitting on the card tops */
/* thin gradient line through the middle of the three cards; it shows in the gaps between them */
.steps-line { position: absolute; top: 50%; left: 16%; right: 16%; height: 1px; background: var(--line); transform-origin: left center; } /* same grey as the card borders */
/* entrance (set by /static/reveal.js): cards fade up one after another as the line draws across */
/* hidden instantly, revealed with a transition (the transitions live on .is-in only) */
.steps.steps-anim .step { opacity: 0; transform: translateX(-17px); } /* slide in from the left */
.steps.steps-anim .steps-line { transform: scaleX(0); }
.steps.steps-anim.is-in .step { opacity: 1; transform: none; transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.steps.steps-anim.is-in .step:nth-child(3) { transition-delay: .12s; } /* child 1 is the line, so the cards are children 2-4 */
.steps.steps-anim.is-in .step:nth-child(4) { transition-delay: .24s; }
.steps.steps-anim.is-in .steps-line { transform: scaleX(1); transition: transform 1s cubic-bezier(.45, 0, .2, 1) .05s; }
.step { position: relative; z-index: 1; padding: 46px 16px 28px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 4px 14px rgba(19, 21, 24, .05); }
/* dark liquid glass, shared by the URL box and the hero chat */
.urlbox, .chat {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, rgba(44,54,67,.58), rgba(19,21,24,.7));
  border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 -1px 0 rgba(255,255,255,.04),
              0 18px 40px rgba(19,21,24,.28), 0 2px 6px rgba(19,21,24,.12);
}
/* specular sheen across the top edge, with a faint purple glow */
.urlbox::before, .chat::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(120% 60% at 20% -10%, rgba(255,255,255,.14), transparent 55%),
              radial-gradient(90% 70% at 100% 110%, rgba(133,34,233,.22), transparent 60%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .urlbox, .chat { background: #1C2029; }
}
/* purple number, half on the card and half off: flat brand gradient, white ring, soft shadow */
.step .n {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-size: 20px; font-weight: 700;
  background: var(--grad-mcp); border: 3px solid #fff; box-shadow: 0 6px 14px rgba(90, 22, 200, .22);
}
.step h3 { font-size: 19px; color: var(--ink); white-space: nowrap; letter-spacing: -.5px; }
.step p { margin: 8px auto 0; max-width: 32ch; color: var(--muted); font-size: 16px; font-weight: 500; line-height: 1.5; } /* same as the section subtext */
.section { padding: 64px 0 24px; }
.section h2 { font-size: 30px; margin-bottom: 8px; }
.section > .wrap > p { color: var(--muted); font-weight: 500; margin-top: 0; }
.prompts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 24px; align-items: start; }
.prompt-col { display: grid; gap: 14px; } /* each card only as tall as its text */
.prompt, .trust div { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 4px 14px rgba(19, 21, 24, .05); }
.prompt { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 12px 20px 22px; font-size: 16px; font-weight: 600; line-height: 1.45; color: #000; }
.prompt-body { display: grid; gap: 8px; }
.prompt-label { justify-self: start; padding: 4px 9px; border-radius: 999px; background: #F3EAFD; font-size: 9px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; color: var(--purple); }
.prompt-text::before { content: '“'; color: var(--purple); font-weight: 700; margin-right: 2px; }
.prompt-text::after { content: '”'; color: var(--purple); font-weight: 700; margin-left: 2px; }
.copy-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.copy-icon:hover { background: #F3EAFD; color: var(--purple); }
.copy-icon:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.copy-icon svg { width: 17px; height: 17px; }
.copy-icon .i-copied, .copy-icon.copied .i-copy { display: none; }
.copy-icon.copied .i-copied { display: block; }
.copy-icon.copied { color: var(--ok); background: #E7F6EF; }
.trust { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; margin-top: 24px; }
.trust div { padding: 22px; }
.trust h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 8px; }
.trust h3 svg { flex: none; width: 22px; height: 22px; stroke: url(#grad-mcp) var(--purple); stroke-width: 2.3; } /* same blue-to-purple as --grad-mcp */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.trust p { margin: 0; color: var(--muted); font-size: 16px; font-weight: 500; line-height: 1.5; } /* same as the step card text */
.landing { background: #fff; } /* white below the dark hero */
footer { padding: 48px 16px; color: var(--muted); font-size: 14px; text-align: center; }
.footer-mark { display: block; width: 20px; height: auto; margin: 36px auto 0; } /* the logo's d and underline, small and centred */
/* ---------- document pages (privacy) ---------- */
.plain { background: #fff; }
.doc { max-width: 720px; margin: 0 auto; padding: 48px 20px 96px; }
.doc-home { display: inline-block; }
.doc .page-mark { display: block; }
.doc h1 { font-size: 44px; line-height: 1.08; letter-spacing: -1.2px; margin: 56px 0 20px; }
.doc h2 { font-size: 21px; margin: 40px 0 10px; padding-top: 32px; border-top: 1px solid var(--line); }
.doc h2 + p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--text); }
.doc h2 + p a { font-weight: 600; }
/* ---------- error page + logo on plain pages ---------- */
.page-mark { width: 150px; height: auto; }
.error-card .page-mark { margin-bottom: 26px; }
.error-card .error-title { font-size: 24px; }
.error-card .error-message { margin-top: 10px; }
.doc .draft { display: inline-flex; align-items: center; gap: 8px; margin: 0; background: #FFF6E5; color: #8A5300; border: 1px solid #F3DCAE; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; }
.doc .draft::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #E39A1B; }

/* hero visual: a mock AI chat answering from Dumbstruck results, in the URL box's glass (static for now) */
.chat { margin: 0 0 0 auto; max-width: 380px; border-radius: 22px; color: #fff; font-size: 12px; line-height: 1.35; }
.chat p { margin: 0; }
.chat-body { display: grid; gap: 10px; padding: 14px 14px 12px; }
.chat strong { color: #fff; font-weight: 600; }
/* the ad's name is set in italics wherever it appears */
.chat strong, .vid-title { font-style: italic; }
/* the question: brand gradient bubble with a soft top sheen */
.msg-user {
  justify-self: end; max-width: 82%; padding: 8px 12px; border-radius: 15px 15px 4px 15px; font-weight: 500;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0) 55%), var(--grad-mcp);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 24px rgba(76,35,234,.4);
}
.msg-ai { display: flex; gap: 8px; align-items: flex-start; color: rgba(255,255,255,.86); }
.chat-avatar { flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 0; border-radius: 50%; background: var(--grad-mcp); box-shadow: 0 0 0 3px rgba(133,34,233,.18), 0 4px 12px rgba(90,22,200,.45); }
.chat-avatar svg { width: 11px; height: 11px; }
/* the ad: small thumbnail and title, then the scores */
.vid-card { border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 10px 24px rgba(8,6,18,.25); }
.vid-head { display: flex; align-items: center; gap: 9px; padding: 8px; border-bottom: 1px solid rgba(255,255,255,.08); }
.vid-thumb { position: relative; flex: none; width: 52px; height: 30px; border-radius: 6px; overflow: hidden; }
.vid-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vid-title { font-size: 12px; font-weight: 600; line-height: 1.2; }
.vid-meta { font-size: 10px; color: rgba(255,255,255,.55); }
.vid-scores { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 8px; }
/* audience resonance ring, after the score ring in the app: green arc on a grey track, number in the middle */
.vid-ring { position: relative; flex: none; width: 66px; display: grid; justify-items: center; gap: 4px; }
.vid-ring-svg { width: 58px; height: 58px; transform: rotate(-90deg); filter: drop-shadow(0 0 6px rgba(94,204,126,.35)); }
.vid-ring-track, .vid-ring-fill { fill: none; stroke-width: 5; }
.vid-ring-track { stroke: rgba(255,255,255,.12); }
.vid-ring-fill { stroke: url(#ring-grad) #5ECC7E; stroke-linecap: round; }
.vid-ring-n { position: absolute; top: 0; left: 0; right: 0; height: 58px; display: grid; place-items: center; font-size: 20px; font-weight: 700; letter-spacing: -.8px; }
.vid-ring-l { font-size: 8px; font-weight: 600; line-height: 1.2; letter-spacing: .6px; text-transform: uppercase; text-align: center; color: rgba(255,255,255,.55); }
.vid-metrics { flex: 1; min-width: 0; list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.vid-metrics li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 8px; border: 1px solid transparent; font-size: 11px; color: rgba(255,255,255,.7); }
.vid-metrics b { font-size: 12.5px; font-weight: 700; color: #fff; line-height: 1; }
/* the score the answer talks about, lifted subtly in the ring's green */
.vid-metrics li.hi { background: linear-gradient(90deg, rgba(94,204,126,.2), rgba(94,204,126,.07)); border-color: rgba(94,204,126,.35); color: #fff; box-shadow: 0 0 14px rgba(94,204,126,.12); }
/* recommendation: quiet green tint */
.rec { padding: 10px 12px 11px; border-radius: 12px; background: rgba(94,204,126,.07); border: 1px solid rgba(94,204,126,.2); }
.rec-badge { display: inline-block; margin-bottom: 5px; padding: 2px 8px; border-radius: 999px; background: rgba(94,204,126,.16); color: #7FE09B; font-size: 8px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; }
.rec p { font-size: 12px; color: rgba(255,255,255,.86); }
/* quiet footer */
.chat-foot { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 8px 14px 10px; border-top: 1px solid rgba(255,255,255,.07); font-size: 9.5px; color: rgba(255,255,255,.4); }
.chat-foot img { width: 52px; height: auto; opacity: .55; transform: translateY(-.5px); }

@media (max-width: 860px) {
  .signin { padding: 24px 16px 40px; }
  .card { padding: 30px 22px; }
  .card h1 { font-size: 25px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 32px; }
  .hero h1 { font-size: 30px; letter-spacing: -.8px; } /* keeps "Meet Media Intelligence." on one line at 390px */
  .chat { margin: 0 auto; }
  .trust, .prompts, .steps { grid-template-columns: 1fr; }
  .prompt-col { display: contents; } /* one list again, back in reading order */
  .prompt.o1 { order: 1; } .prompt.o2 { order: 2; } .prompt.o3 { order: 3; } .prompt.o4 { order: 4; } .prompt.o5 { order: 5; } .prompt.o6 { order: 6; }
  .steps { row-gap: 48px; }
  .steps-line { display: none; }
  .doc h1 { font-size: 34px; margin-top: 40px; }
  .btn-row { grid-template-columns: 1fr; }
  .btn-row .btn-secondary { order: 2; }
}


/* Allow page warning for apps Dumbstruck hasn't verified (any MCP client can connect). */
.unverified { margin-top: 18px; background: #FFF6E5; color: #6B4100; border: 1px solid #F3DCAE; border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.unverified p { margin: 0 0 8px; }
.unverified .trust { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; cursor: pointer; }
.unverified .trust input { margin-top: 3px; accent-color: var(--purple); }

/* ---------- /alt landing (from the update plan); nothing here touches the main landing page ---------- */
/* both landing pages: three lines (set by the <br>s), the longest ("The Missing Signal") about 85% of the
   560px the subtext and URL box use */
.landing .hero h1 { font-size: 55px; letter-spacing: -1.4px; line-height: 1.02; margin-bottom: 22px; }
.alt .hero p.lead { max-width: 620px; font-size: 21.8px; font-weight: 600; line-height: 1.32; margin: 0 0 12px; } /* two lines (set by the <br>); the longer one ends flush with the headline and URL box */
.alt .lead-sub { max-width: 580px; margin: 0 0 28px; font-size: 14px; font-weight: 400; line-height: 1.5; color: rgba(255,255,255,.7); } /* same type as the note under the URL box */
.alt .lead-sub { animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) .3s both; }
/* chat: source labels on the data, a quiet illustrative campaign card, and the AI's recommendation */
.src-pill { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 2px 7px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); font-size: 8.5px; font-weight: 600; letter-spacing: .3px; color: rgba(255,255,255,.75); white-space: nowrap; }
.src-pill.src-ds { background: rgba(133,34,233,.22); border-color: rgba(167,131,255,.35); color: #E4D6FF; }
.src-pill img { width: 6px; height: auto; filter: brightness(0) invert(1); }
.chat-caption { max-width: 380px; margin: 10px 0 0 auto; font-size: 10.5px; font-style: italic; line-height: 1.4; color: rgba(255,255,255,.55); text-align: center; animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) 1.5s both; }
.alt .chat .rec { animation-delay: 1.38s; }
/* a little more air between the hero pieces on /alt */
.alt .hero .eyebrow { margin-bottom: 18px; }
.alt .url-note { margin-top: 12px; }
/* the plain chat on /alt: flat question bubble, status line, text answer, simple data table */
.chat-plain .msg-user { background: linear-gradient(135deg, #5A2BE8, #8F35E8); box-shadow: none; }
.msg-status { display: flex; align-items: center; gap: 6px; margin: -2px 0 -4px; font-size: 11px; font-style: italic; color: rgba(255,255,255,.5); }
.msg-status img { width: 6px; height: auto; filter: brightness(0) invert(1); opacity: .6; }
.chat-plain .msg-ai { display: block; color: rgba(255,255,255,.86); }
/* the figures the answer drew on: one card per source, side by side */
.data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.data-card { padding: 10px 12px 11px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.data-src { display: flex; align-items: center; gap: 6px; margin: 0 0 11px; font-size: 11px; font-weight: 600; color: #fff; }
.data-src i { width: 6px; height: 6px; border-radius: 50%; }
.data-ds .data-src i { background: #A783FF; box-shadow: 0 0 6px rgba(167,131,255,.7); }
.data-camp .data-src i { background: rgba(255,255,255,.55); }
.data-card dl { margin: 0; }
.data-card dt { font-size: 10px; color: rgba(255,255,255,.55); }
.data-card dd { margin: 1px 0 0; font-size: 22px; font-weight: 700; letter-spacing: -.5px; line-height: 1.15; color: #fff; }
.data-card dd.sm { font-size: 14px; letter-spacing: 0; line-height: 1.6; } /* a segment name, not a score */
.data-card dd + dt { margin-top: 7px; padding-top: 7px; border-top: 1px solid rgba(255,255,255,.08); }
.data-ds dd { color: #7FE09B; } /* the same green as the recommendation badge */
.chat-plain .rec-badge { display: inline-flex; align-items: center; gap: 5px; }
.chat-plain .rec-badge svg { width: 9px; height: 9px; fill: currentColor; }
.alt .chat .msg-status { animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) .66s both; }
.alt .chat .msg-ai { animation-delay: .82s; }
.alt .chat .data-grid { animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) 1s both; }
.alt .chat-plain .rec { animation-delay: 1.18s; }
.alt .chat-caption { animation-delay: 1.36s; }

/* value section: the key line, then the integration diagram */
.alt .section-value .wrap > p:not(.value-key):not(.flow-note) { max-width: 760px; }
.alt .section > .wrap > p.value-key { margin: 18px 0 0; font-size: 19px; font-weight: 700; color: var(--purple); }
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 70px 230px 70px minmax(0, .78fr); align-items: center; margin-top: 40px; }
.flow-col { display: grid; grid-template-rows: repeat(3, 92px); row-gap: 18px; }
.flow-lines { display: block; width: 100%; height: 312px; overflow: visible; }
.flow-lines path { fill: none; stroke: #CBD2DB; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.flow-lines path.ds { stroke: url(#flow-grad) var(--purple); stroke-width: 2.5; }
.src { display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 0 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(19,21,24,.05); }
.src-name { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 700; color: var(--ink); }
.src-desc { font-size: 13.5px; font-weight: 500; line-height: 1.4; color: var(--muted); }
/* Dumbstruck's stream carries the brand accent */
.src.src-ds { background: linear-gradient(135deg, #F7F0FF, #fff 70%); border-color: rgba(133,34,233,.35); box-shadow: 0 8px 22px rgba(90,22,200,.12); }
.src.src-ds .src-name { color: var(--purple); }
.src-name img { width: 8px; height: auto; }
/* the client's assistant: a small dark glass node */
.flow-hub { display: grid; justify-items: center; gap: 4px; padding: 22px 16px 20px; border-radius: 18px; text-align: center; color: #fff; background: linear-gradient(160deg, #2C3643, #131518); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 14px 30px rgba(19,21,24,.22); }
.flow-hub strong { font-size: 16px; }
.flow-hub > span:last-child { font-size: 12px; line-height: 1.4; color: rgba(255,255,255,.65); }
.hub-marks { display: flex; gap: 6px; margin-bottom: 6px; }
.hub-marks img, .hub-marks .chat-avatar { width: 28px; height: 28px; border-radius: 50%; background: #fff; padding: 4px; box-sizing: border-box; object-fit: contain; }
.hub-marks .chat-avatar { padding: 0; background: var(--grad-mcp); }
.out { align-self: center; justify-self: start; padding: 10px 16px; border-radius: 999px; background: #F3F5F8; border: 1px solid var(--line); font-size: 15px; font-weight: 600; color: var(--ink); }
.alt .section > .wrap > p.flow-note { margin: 28px 0 0; font-size: 14px; color: var(--muted); }
.alt .section-steps { padding-top: 64px; }
.alt .section-steps h2 { margin-bottom: 0; }
@media (max-width: 860px) {
  .landing .hero h1 { font-size: min(calc((100vw - 48px) * .096), 55px); letter-spacing: -.8px; white-space: normal; } /* the same 85% of the column on any phone */
  .alt .hero p.lead { font-size: 18px; }
  .alt .hero p.lead br { display: none; } /* let it wrap naturally on a phone */
  .chat-caption { margin: 10px auto 0; font-size: min(10.5px, calc((100vw - 48px) * .029)); white-space: nowrap; } /* one line on any phone */
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow-lines { display: none; }
  .flow-col { grid-template-rows: none; row-gap: 10px; }
  .src { padding: 14px 16px; }
  /* short connector lines above and below the hub stand in for the curves */
  .flow-hub { position: relative; margin: 30px 0; }
  .flow-hub::before, .flow-hub::after { content: ''; position: absolute; left: 50%; width: 1.5px; height: 30px; background: #CBD2DB; }
  .flow-hub::before { bottom: 100%; } .flow-hub::after { top: 100%; }
  .flow-out { grid-template-columns: repeat(3, auto); justify-content: center; gap: 8px; }
  .out { padding: 8px 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .alt .lead-sub, .chat-caption, .alt .chat .msg-status, .alt .chat .data-grid { animation: none; }
}
