@font-face { font-family: Archivo; src: url('assets/archivo.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Radley; src: url('assets/radley.ttf') format('truetype'); font-weight: 400; font-display: swap; }
:root { color-scheme: light; --paper: #F4F5F2; --ink: #14120B; --sub: #46453E; --accent: #13625F; }
* { box-sizing: border-box; }
body { position: relative; isolation: isolate; margin: 0; background: var(--paper); color: var(--ink); font-family: Archivo, sans-serif; -webkit-font-smoothing: antialiased; }
body::after { content: ''; position: absolute; inset: 0; z-index: -1; background: url('assets/paper-texture.png') repeat; background-size: 720px 720px; opacity: .7; filter: brightness(.65) contrast(2) brightness(1.3); mix-blend-mode: multiply; pointer-events: none; }
body::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 14% 10%, #fffdf5e6, transparent 68%), radial-gradient(ellipse at 90% 85%, #d5e1d8b3, transparent 68%); pointer-events: none; }
::selection { background: #DBECEB; color: var(--ink); }
.page { min-height: 100svh; width: min(100%, 1320px); margin-inline: auto; padding: 36px 48px; display: flex; flex-direction: column; }
main { flex: 1; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 92px); align-items: center; padding-block: 36px 52px; }
.intro { text-align: left; }
h1 { margin: 0 0 42px; line-height: 0; }
.logo { display: block; width: min(320px, 100%); height: auto; overflow: visible; }
p { margin: 0; text-wrap: pretty; }
.lead { font-family: Radley, Georgia, serif; font-size: clamp(29px, 2.7vw, 37px); line-height: 1.3; letter-spacing: -.02em; }
.detail { max-width: 460px; margin-top: 24px; color: var(--sub); font-size: 16px; line-height: 1.65; }
.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; margin-top: 30px; padding: 14px 26px; border: 0; border-radius: 5px; background: var(--accent); color: #FCFDFA; font-size: 15px; font-weight: 550; text-decoration: none; box-shadow: 0 3px 5px #24242417, 0 9px 20px #24242410; transition: background-color 160ms ease, box-shadow 160ms ease; }
.cta:hover { background: #0d4d4b; box-shadow: 0 2px 4px #24242425, 0 5px 12px #2424241a; }
.cta:active { box-shadow: 0 1px 2px #24242425; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.chat-preview { margin: 16px 0 0; min-width: 0; }
.chat-window { background: #fcfdfa; border-radius: 16px; overflow: hidden; box-shadow: 0 3px 6px #24242410, 0 18px 40px -12px #2424242b, 0 50px 70px -30px #24242420; }
.chat-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; background: #e9ece6; color: var(--accent); font-size: 18px; font-weight: 550; }
.chat-body { padding: 24px; }
.question { width: fit-content; max-width: 92%; margin-left: auto; background: var(--accent); color: #fcfdfa; border-radius: 15px 15px 3px 15px; padding: 17px 20px; font-size: 17px; line-height: 1.5; }
.sources { margin: 26px 0; padding: 0; list-style: none; color: var(--sub); font-size: 13px; line-height: 1.7; }
.sources li { display: flex; align-items: center; gap: 10px; margin-block: 4px; }
.sources li::before { content: ''; display: block; width: 11px; height: 6px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg) translateY(-2px); }
.answer { color: var(--sub); font-size: 16px; line-height: 1.7; }
.next-step { color: var(--ink); margin-top: 16px; }
footer { display: flex; flex-wrap: wrap; gap: 4px 24px; padding-top: 12px; }
footer a { color: var(--sub); font-size: 12px; line-height: 1.5; text-decoration: underline; text-decoration-color: #b5b7b0; text-underline-offset: 4px; padding-block: 8px; }
footer a:hover { color: var(--accent); text-decoration-color: currentColor; }
@media (max-width: 960px) { .page { padding-inline: 32px; } main { gap: 36px; } .lead { font-size: 29px; } .chat-body { padding: 22px; } .question { font-size: 16px; } .answer { font-size: 15px; } }
@media (max-width: 720px) { .page { padding: 32px 24px 24px; } main { display: block; padding-block: 0 32px; } .intro { max-width: 560px; } h1 { margin-bottom: 32px; } .logo { width: 270px; } .lead { font-size: 30px; } .detail { margin-top: 20px; } .cta { margin-top: 24px; } .chat-preview { margin-top: 44px; } .chat-header { padding: 18px 20px; } .chat-body { padding: 24px 20px; } .question { max-width: 100%; } .sources { margin-block: 22px; } footer { gap: 0 18px; } }
@media (max-width: 360px) { .page { padding: 24px 20px; } .lead { font-size: 27px; } .detail { font-size: 15px; } .chat-body { padding: 20px 16px; } .chat-header { padding-inline: 16px; } .question { font-size: 15px; padding: 14px 16px; } }
@media (prefers-reduced-motion: reduce) { .cta { transition: none; } }
/* Stable slide geometry keeps the page still as the conversation develops. */
.chat-preview { margin-top: 0; }
.chat-header { gap: 16px; }
.chat-slides { display: grid; }
.chat-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 420ms ease-in-out, visibility 0s linear 420ms; }
.chat-slide.current { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.chat-slide .question { display: flex; align-items: center; }
.chat-slide .sources { margin-block: 16px; }
.chat-slide .answer { font-size: 15px; line-height: 1.65; }
.js-slideshow .reveal { opacity: 0; visibility: hidden; transition: opacity 520ms cubic-bezier(.22,1,.36,1); }
.js-slideshow .reveal.shown { opacity: 1; visibility: visible; }
.faux-composer { margin-top: 18px; padding: 11px 12px 11px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #f0f2ed; border-radius: 10px; color: #64645d; font-size: 14px; }
.faux-send { display: grid; place-items: center; width: 28px; height: 28px; background: #e1e6de; color: #526250; border-radius: 6px; }
.faux-send svg { width: 20px; height: 20px; }
.chat-controls { display: flex; align-items: center; justify-content: flex-end; padding: 0 20px 10px; color: var(--sub); }
.chat-controls[hidden] { display: none; }
.chat-controls button { border: 0; background: transparent; color: var(--sub); font: 12px Archivo, sans-serif; min-width: 44px; min-height: 44px; padding: 8px; border-radius: 5px; cursor: pointer; }
.chat-controls button:hover { background: #ebeee8; color: var(--accent); }
.chat-controls button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.slide-navigation { display: flex; align-items: center; gap: 8px; }
.slide-navigation svg { width: 20px; height: 20px; display: block; }
#playback .play-icon { display: none; }
#playback[data-paused="true"] .pause-icon { display: none; }
#playback[data-paused="true"] .play-icon { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 720px) { .chat-preview { margin-top: 44px; } }
@media (prefers-reduced-motion: reduce) { .js-slideshow .reveal { transition: none; } }

@media (min-width: 721px) and (max-height: 800px) { .page { padding-block: 24px; } main { padding-block: 24px 36px; } }
.cta { position: relative; overflow: hidden; isolation: isolate; }
.cta::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 45%; pointer-events: none; background: linear-gradient(110deg, transparent, #ffffff2e, transparent); transform: translateX(-230%); animation: intro-shimmer 7s linear infinite; }
@keyframes intro-shimmer { 0%, 86% { transform: translateX(-230%); } 100% { transform: translateX(330%); } }
.effects-paused .cta::after, .page-hidden .cta::after, .intro-offscreen .cta::after { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .cta::after { animation: none; display: none; } }

.faux-send { text-decoration: none; min-width: 36px; min-height: 36px; }
.faux-composer:hover .faux-send, .faux-composer:focus-visible .faux-send { background: #dbece5; color: var(--accent); }

.faux-composer { text-decoration: none; }

@media (prefers-reduced-motion: reduce) { .chat-slide { transition: none; } }

/* Plain text streams only after every source check has completed. */
.js-slideshow .answer-chunk.reveal, .js-slideshow .next-step.reveal { opacity: 1; transition: none; }
.js-slideshow .answer-word { opacity: 0; transition: opacity 160ms ease-out; transition-delay: 0ms; }
.js-slideshow .answer-word.word-shown { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .js-slideshow .answer-word { transition: none; } }

/* Small, zero-based comparisons use the same units within each chart. */
.answer-chart { margin: 18px 0; color: var(--sub); font-size: 12px; }
.answer-chart figcaption { display: flex; flex-wrap: wrap; gap: 2px 12px; justify-content: space-between; margin-bottom: 9px; color: var(--ink); font-weight: 550; }
.answer-chart figcaption span { color: var(--sub); font-weight: 400; }
.chart-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 34px; align-items: center; gap: 12px; margin-top: 7px; }
.chart-track { height: 9px; border-left: 1px solid #b5b7b0; }
.chart-bar { display: block; width: var(--bar-size); height: 100%; background: var(--accent); border-radius: 0 2px 2px 0; }
.chart-baseline { background: #8a9388; }
.chart-row strong { text-align: right; font-weight: 550; font-variant-numeric: tabular-nums; }
.sources li::before { flex-shrink: 0; }

/* Source categories give the short headline concrete context. */
.source-types { margin-top: 24px; max-width: 490px; color: var(--sub); font-size: 14px; line-height: 1.6; }
.source-types > p { color: var(--ink); font-weight: 550; }
.source-types ul { display: grid; grid-template-columns: 1.15fr 1fr; gap: 6px 20px; list-style: disc; margin: 12px 0; padding-left: 18px; }
.source-types li { min-width: 0; }
.source-types a { color: var(--accent); text-underline-offset: 4px; }
@media (min-width: 721px) and (max-width: 1050px), (max-width: 400px) {
  .source-types ul { grid-template-columns: 1fr; gap: 4px; }
}

.product-explanation { max-width: 490px; margin-top: 16px; color: var(--sub); font-size: 16px; line-height: 1.6; }
