/* The look of shadysresearchbot.com, ported from the approved mock (Main.dc.html) rule for rule.
 *
 * EVERY INLINE STYLE IN THE MOCK BECAME A CLASS HERE. The server's CSP allows no inline style, so the
 * page carries none, and app.js changes appearance only through classes and CSSOM properties
 * (a width, a transform). Colours, sizes, clamp()s and keyframes are the mock's, copied as written.
 *
 * SHOW AND HIDE ARE THE hidden ATTRIBUTE. [hidden] below beats every display rule in this file, and
 * taking an element out with display:none and putting it back restarts its .blurin, which is how the
 * mock's elements animated in when they mounted.
 *
 * THE HOVER RULES NOW APPLY. In the mock most of them lost to inline styles; as classes they win by
 * specificity or by coming later, so the !importants the mock needed are gone.
 *
 * Dark only. The Claude window's colours are the mock's dark theme, as custom properties on .cw.
 */

:root {
  --accent: #2DD8AF;
  --bg: #0b0e12;
  color-scheme: dark;
}

[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Base. The mock wrapped the page in div.sg; here the body carries it. */

body { margin: 0; background: #0b0e12; }
.sg { font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif; color: #eef1f5; background: #0b0e12; -webkit-font-smoothing: antialiased; min-height: 100%; overflow-x: hidden; }
.sg * { box-sizing: border-box; }
.mono { font-family: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; }
/* Zero specificity, so a link's own colour class wins, as the mock's inline colours did. */
:where(a) { color: #eef1f5; text-decoration: none; }
:where(a:hover) { color: #ffffff; }
.accent { color: var(--accent); }
.green { color: #3ccf7b; }
.link { color: #7aa7ff; font-weight: 600; }
.blue { color: #7aa7ff; }
.hi { color: #eef1f5; }
.dim { color: #7d8794; }
.soft { color: #9aa4b2; }
.ico { flex: none; }
.ic-accent { stroke: var(--accent); }
.spacer { flex: 1; }
.caption { font-size: 11.5px; color: #7d8794; }
.caption-r { text-align: right; }

/* Motion, verbatim from the mock. */

@property --a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.beam { background: conic-gradient(from var(--a), #232933 0deg, #232933 230deg, var(--accent, #2DD8AF) 320deg, #232933 360deg); animation: beam 7s linear infinite; }
@keyframes beam {
  to { --a: 360deg; }
}
.gridbg { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 80%); mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 30%, transparent 80%); }
.blurin { animation: blurin 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes blurin {
  from { opacity: 0; filter: blur(8px); transform: translateY(10px); }
  to { opacity: 1; filter: none; transform: none; }
}
.d1 { animation-delay: 0.1s; }
.d2 { animation-delay: 0.2s; }
.d3 { animation-delay: 0.3s; }
.d4 { animation-delay: 0.4s; }
.d5 { animation-delay: 0.5s; }
.e1 { animation-delay: 0.08s; }
.e2 { animation-delay: 0.16s; }
.e3 { animation-delay: 0.24s; }
.e4 { animation-delay: 0.32s; }
.caret { display: inline-block; width: 7px; height: 15px; background: var(--accent, #2DD8AF); animation: caret 1s steps(1) infinite; flex: none; }
.ccaret { display: inline-block; width: 2px; height: 18px; animation: caret 1s steps(1) infinite; vertical-align: -3px; }
@keyframes caret {
  50% { opacity: 0; }
}
.spin { animation: spin 0.9s linear infinite; }
@keyframes spin {
  to { transform: rotate(360deg); }
}
.pulse { animation: pulse 2s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(45, 216, 175, 0.55); }
  100% { box-shadow: 0 0 0 10px rgba(45, 216, 175, 0); }
}
.hint { animation: hint 1.6s ease-in-out infinite; }
@keyframes hint {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.tp { animation: tp 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes tp {
  from { opacity: 0; filter: blur(4px); transform: translateY(-8px); }
  to { opacity: 1; filter: none; transform: none; }
}
.spark-live { animation: spark 2.2s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes spark {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(90deg) scale(0.86); }
  100% { transform: rotate(180deg) scale(1); }
}

/* Shared interactive pieces. */

.tile { transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease; }
.tile:hover { transform: translateY(-3px); filter: brightness(1.08); }
.tile-d:hover { box-shadow: 0 14px 40px -10px rgba(88, 101, 242, 0.8); }
.tile-t:hover { box-shadow: 0 14px 40px -10px rgba(34, 158, 217, 0.8); }
.ghost { transition: border-color 0.2s ease, background 0.2s ease; }
.cui { font-family: 'Anthropic Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.cserif { font-family: 'Anthropic Serif', 'Source Serif 4', Georgia, 'Times New Roman', serif; }
.cmono { font-family: 'Anthropic Mono', 'JetBrains Mono', 'SF Mono', Monaco, Consolas, monospace; }

/* NAV */

.hdr { position: relative; z-index: 2; border-bottom: 1px solid #1a1f27; }
.nav { max-width: 1200px; margin: 0 auto; padding: 18px clamp(16px, 4vw, 32px); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.nav-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--accent); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-x { width: 40px; height: 40px; border-radius: 10px; border: 1px solid #262c36; color: #eef1f5; display: flex; align-items: center; justify-content: center; }
.nav-docs { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid #262c36; font-size: 13px; color: #c4ccd6; }
.nav-tile { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.nav-tile-d { background: #5865F2; }
.nav-tile-t { background: #229ED9; }

/* HERO */

.hero { position: relative; }
.hero-in { position: relative; max-width: 1200px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) clamp(16px, 4vw, 32px) clamp(56px, 7vw, 104px); display: flex; flex-wrap: wrap; align-items: center; gap: clamp(40px, 5vw, 72px); }
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.badge { align-self: flex-start; display: flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border: 1px solid #262c36; border-radius: 999px; background: #12161b; font-size: 12.5px; color: #c4ccd6; }
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.h1 { margin: 0; font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; text-wrap: balance; }
.lede { margin: 0; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: #9aa4b2; max-width: 34em; text-wrap: pretty; }
.tiles { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px; }
.lab { display: flex; flex-direction: column; align-items: center; gap: 10px; color: #c4ccd6; font-size: 13px; font-weight: 500; }
.ticon { width: 76px; height: 76px; border-radius: 22px; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 1px 0 rgba(255,255,255,0.25); transition: box-shadow 0.2s ease, border-color 0.2s ease; }
.ticon-d { background: #5865F2; }
.ticon-t { background: #229ED9; }
.ticon-c { background: #D97757; }
.ticon-a { background: #171b21; border: 1px solid #2f3742; color: var(--accent); box-shadow: none; }
/* After the .ticon rules, so the glow wins without the mock's !important. */
.lab-d:hover .ticon, .lab-d:focus-visible .ticon { box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 14px 40px -10px rgba(88, 101, 242, 0.85); }
.lab-t:hover .ticon, .lab-t:focus-visible .ticon { box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 14px 40px -10px rgba(34, 158, 217, 0.85); }
.lab-c:hover .ticon, .lab-c:focus-visible .ticon { box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 14px 40px -10px rgba(217, 119, 87, 0.85); }
.lab-a:hover .ticon, .lab-a:focus-visible .ticon { box-shadow: 0 14px 40px -12px rgba(45, 216, 175, 0.5); border-color: #3a4350; }
.tiles-div { width: 1px; height: 76px; background: #262c36; margin: 0 4px; }
.reads { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.reads-label { font-size: 11.5px; color: #7d8794; letter-spacing: 0.06em; text-transform: uppercase; margin-right: 4px; }
.chip { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; background: #12161b; border: 1px solid #262c36; font-weight: 600; font-size: 14px; }
.chip img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.disclaimer { margin: 0; font-size: 12.5px; color: #7d8794; }

/* HERO DEMO */

.hero-demo { flex: 1 1 500px; min-width: 0; max-width: 600px; display: flex; flex-direction: column; gap: 10px; }
.demo-beam { padding: 1px; border-radius: 20px; box-shadow: 0 40px 120px -40px rgba(45, 216, 175, 0.25); }
.demo { background: #11151a; border-radius: 19px; overflow: hidden; }
.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #1d222a; }
.tabs { position: relative; display: flex; flex: 1; max-width: 400px; padding: 4px; border-radius: 11px; background: #171b21; }
.tab-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 8px; background: #262c36; overflow: hidden; transform: translateX(0%); transition: transform 0.4s cubic-bezier(0.3, 1.3, 0.5, 1); }
.tab-pill-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--accent); }
.tabbtn { transition: background 0.2s ease, color 0.2s ease; }
.demo-tab { position: relative; flex: 1; height: 36px; border: 0; background: transparent; border-radius: 8px; font: 600 13px 'Geist', sans-serif; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px; color: #9aa4b2; }
.demo-tab.is-on { color: #eef1f5; }
.replay { width: 36px; height: 36px; flex: none; border-radius: 9px; border: 1px solid #262c36; background: transparent; color: #9aa4b2; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.demo-body { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 20px 18px 8px; min-height: 620px; }

.view-scan { display: flex; flex-direction: column; gap: 18px; }
.demo-idle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #7d8794; text-align: center; min-height: 560px; }
.idle-ic { width: 52px; height: 52px; border-radius: 50%; background: #171b21; display: flex; align-items: center; justify-content: center; color: #9aa4b2; }
.idle-t { font-size: 14px; }
.msg { display: flex; gap: 12px; }
.you-av { width: 36px; height: 36px; border-radius: 50%; background: #2a3140; flex: none; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: #c4ccd6; }
.msg-you { min-width: 0; }
.msg-col { min-width: 0; flex: 1; }
.msg-name { font-size: 14px; font-weight: 600; }
.msg-time { font-weight: 400; color: #7d8794; font-size: 12px; margin-left: 4px; }
.msg-cmd { font-size: 13px; color: #c4ccd6; margin-top: 4px; word-break: break-all; }
.bot-av { width: 36px; height: 36px; border-radius: 50%; flex: none; overflow: hidden; background: #171b21; }
.bot-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bot-name { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.bot-tag { font-size: 10px; font-weight: 600; padding: 2px 5px; border-radius: 4px; background: #5865F2; color: #ffffff; }

.card { margin-top: 8px; border-radius: 8px; background: #181d24; border: 1px solid #262c36; padding: 14px 16px; display: flex; flex-direction: column; gap: 11px; }
.load-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.load-title { font-weight: 700; font-size: 15px; }
.load-meta { font-size: 12px; color: #9aa4b2; }
.bar { height: 4px; background: #262c36; border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; width: 100%; background: var(--accent); border-radius: 4px; transition: width 0.3s ease; }
.steps { display: flex; flex-direction: column; gap: 8px; }
.step { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #7d8794; }
.step.is-done { color: #9aa4b2; }
.step.is-active { color: #eef1f5; }

.dcard { margin-top: 8px; display: flex; border-radius: 8px; overflow: hidden; background: #181d24; border: 1px solid #262c36; }
.rail { width: 4px; flex: none; }
.rail-green { background: #23a559; }
.rail-grey { background: #4e5058; }
.rail-dim { opacity: 0.6; }
.report-body { padding: 13px 16px 15px; display: flex; flex-direction: column; gap: 10px; min-width: 0; flex: 1; }
.rep-kicker { font-size: 12px; font-weight: 600; color: #9aa4b2; }
.rep-title { font-size: 16px; font-weight: 700; margin-top: -4px; }
.rep-addr { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rep-chain { width: 16px; height: 16px; border-radius: 50%; flex: none; }
.rep-ca { font-size: 11.5px; color: #c4ccd6; background: #11151a; padding: 2px 6px; border-radius: 4px; word-break: break-all; }
.rep-ok { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #c4ccd6; }
.rep-line { font-size: 13.5px; line-height: 1.5; }
.rep-h { font-size: 12.5px; font-weight: 700; }
.rep-p { font-size: 12.5px; line-height: 1.5; color: #c4ccd6; margin-top: 2px; }
.rep-p-tall { line-height: 1.6; }

.btnrow { position: relative; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.btnrow .hint { position: absolute; right: 0; bottom: calc(100% + 8px); padding: 5px 10px; border-radius: 999px; background: var(--accent); color: #04130f; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.dpill { font-size: 12px; font-weight: 500; padding: 7px 10px; border-radius: 6px; background: #262c36; color: #9aa4b2; }
.dbtn { position: relative; transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; font: 500 12px 'Geist', sans-serif; padding: 7px 10px; border-radius: 6px; border: 0; color: #eef1f5; cursor: pointer; background: #262c36; }
.dbtn.is-chosen { background: #2f3742; box-shadow: inset 0 0 0 1px var(--accent); }
.dbtn.is-pressed { background: #3a4350; box-shadow: 0 0 0 2px var(--accent); transform: scale(0.97); }
/* After the states: in the mock a hover beat even a press. */
.dbtn:hover { background: #2f3742; }
.cursor { position: absolute; right: -10px; bottom: -16px; }

.view-follow { display: flex; flex-direction: column; gap: 8px; }
.backbtn { display: flex; gap: 12px; align-items: center; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; text-align: left; font-family: inherit; color: inherit; }
.back-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; opacity: 0.55; }
.backcard { min-width: 0; flex: 1; display: flex; align-items: stretch; border-radius: 8px; overflow: hidden; background: #181d24; border: 1px solid #262c36; transition: border-color 0.2s ease, background 0.2s ease; }
.backbtn:hover .backcard, .backbtn:focus-visible .backcard { border-color: #39434f; background: #1c222b; }
.back-text { flex: 1; min-width: 0; padding: 9px 14px; font-size: 12.5px; color: #9aa4b2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.back-name { color: #c4ccd6; font-weight: 700; }
.back-pill { flex: none; align-self: center; display: flex; align-items: center; gap: 6px; margin-right: 8px; padding: 5px 10px; border-radius: 6px; background: #1f2630; color: var(--accent); font-size: 11.5px; font-weight: 600; }
.btnrow2 { display: flex; flex-wrap: wrap; gap: 6px; margin-left: 48px; }

.hbody { padding: 13px 16px 14px; display: flex; flex-direction: column; gap: 9px; min-width: 0; flex: 1; font-size: 12.5px; line-height: 1.45; color: #c4ccd6; }
.sbody { padding: 13px 16px 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; flex: 1; font-size: 12.5px; line-height: 1.5; color: #c4ccd6; }
.hb-title { font-size: 15px; font-weight: 700; color: #eef1f5; }
.src-head { display: flex; align-items: center; gap: 7px; font-weight: 700; color: #eef1f5; margin-top: 2px; }
.src-head-flat { margin-top: 0; }
.src-ic { width: 16px; height: 16px; border-radius: 4px; }
.src-ic-sm { width: 15px; height: 15px; }
.src-note { font-weight: 400; color: #9aa4b2; }
.note { font-size: 11.5px; color: #7d8794; }
.note-sm { font-size: 11px; color: #7d8794; }
.cardfoot { font-size: 11px; color: #7d8794; padding-top: 4px; border-top: 1px solid #232933; }
.s-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 10px 20px; }
.s-h { font-weight: 700; color: #eef1f5; }
.s-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.s-chip { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 7px 10px; border-radius: 6px; background: #262c36; color: #eef1f5; }

.composer { margin: 0 14px 14px; border-radius: 10px; background: #1a1f27; padding: 0 14px; display: flex; align-items: center; gap: 2px; font-size: 13px; color: #c4ccd6; min-height: 46px; overflow: hidden; }
.composer .typed { white-space: nowrap; overflow: hidden; min-width: 0; }
.composer .placeholder { color: #7d8794; margin-right: 4px; }

/* WHAT COMES BACK */

.comes-back { max-width: 1200px; margin: 0 auto; padding: clamp(64px, 8vw, 112px) clamp(16px, 4vw, 32px) 0; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.sec-head-l { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.kicker { font-size: 12.5px; color: var(--accent); letter-spacing: 0.06em; text-transform: uppercase; }
.h2 { margin: 0; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 750; text-wrap: balance; }
.sec-head-p { margin: 0; max-width: 380px; font-size: 16px; line-height: 1.6; color: #9aa4b2; }

.cell { transition: border-color 0.25s ease; }
.five { background: #12161b; border: 1px solid #1f252e; border-radius: 22px; padding: clamp(14px, 2.2vw, 22px); display: flex; flex-wrap: wrap; gap: clamp(14px, 2.2vw, 22px); }
.five-l { flex: 1 1 250px; display: flex; flex-direction: column; gap: 16px; padding: 10px 2px; }
.five-h { margin: 0 10px; font-size: 21px; letter-spacing: -0.02em; font-weight: 700; }
.fa-list { display: flex; flex-direction: column; gap: 4px; }
.fa-btn { transition: background 0.25s ease, color 0.25s ease; position: relative; overflow: hidden; text-align: left; padding: 10px 12px; border: 0; border-radius: 12px; font: 500 15px 'Geist', ui-sans-serif, system-ui, sans-serif; cursor: pointer; display: flex; align-items: center; gap: 12px; color: #9aa4b2; background: transparent; }
.fa-btn.is-lit { color: #eef1f5; background: #1f2630; }
.fa-btn:hover { color: #eef1f5; }
.fa-icon { width: 30px; height: 30px; flex: none; border-radius: 9px; display: flex; align-items: center; justify-content: center; transition: background 0.25s ease, color 0.25s ease; background: #171b21; color: #9aa4b2; box-shadow: inset 0 0 0 1px #262c36; }
.fa-icon.is-lit { background: var(--accent); color: #04130f; box-shadow: none; }
.fa-track { position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; overflow: hidden; border-radius: 2px; }
.fa-line { display: block; height: 100%; background: var(--accent); transition: width 0.1s linear; width: 0; }
/* The finished state without script: the first answer lit with its line full. */
[data-five-pick="0"] .fa-line { width: 100%; }

.fa-stage { flex: 2 1 420px; min-width: 0; display: grid; align-items: start; border-radius: 16px; background: #0d1015; border: 1px solid #1f252e; overflow: hidden; }
/* Every layer sits in the same grid cell, so the panel takes the tallest one's height and the
   answers cross-fade in place. The one place opacity, not hidden, does the hiding. */
.fa-layer { transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.5s ease; grid-area: 1 / 1; padding: clamp(18px, 2.6vw, 28px); display: flex; flex-direction: column; gap: 16px; opacity: 0; transform: translateY(8px); filter: blur(6px); pointer-events: none; }
.fa-layer.is-lit { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.fa-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fa-kick { font-size: 11.5px; color: #7d8794; text-transform: uppercase; letter-spacing: 0.06em; }
.fa-tag { font-size: 11.5px; color: #9aa4b2; padding: 4px 10px; border-radius: 999px; border: 1px solid #262c36; }
.fa-lede { font-size: 19px; line-height: 1.55; color: #eef1f5; text-wrap: pretty; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 10px; }
.quote { border-radius: 12px; background: #12161b; border: 1px solid #1f252e; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.q-who { display: flex; align-items: center; gap: 8px; font-size: 12.5px; flex-wrap: wrap; }
.q-av { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.q-n { background: #2c2550; color: #cfc6ff; }
.q-m { background: #1f3a33; color: #9ff0d6; }
.q-k { background: #3a2a1c; color: #ffd2a3; }
.q-g { background: #3a1f2a; color: #ffb3c9; }
.q-site { width: 22px; height: 22px; border-radius: 6px; background: #1f2630; color: #c4ccd6; display: flex; align-items: center; justify-content: center; }
.q-site-name { color: #eef1f5; font-weight: 600; }
.q-text { font-size: 13.5px; line-height: 1.5; color: #c4ccd6; }
.rows { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: #12161b; border: 1px solid #1f252e; }
.row-warn { border-color: rgba(245, 185, 66, 0.25); }
.num { width: 28px; height: 28px; flex: none; border-radius: 8px; background: rgba(35, 165, 89, 0.14); color: #3ccf7b; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.warn-ic { width: 28px; height: 28px; flex: none; border-radius: 8px; background: rgba(245, 185, 66, 0.12); color: #F5B942; display: flex; align-items: center; justify-content: center; }
.row-text { font-size: 17px; color: #eef1f5; }

.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; margin-top: 16px; }
.fcard { background: #12161b; border: 1px solid #1f252e; border-radius: 22px; padding: 16px 16px 26px; display: flex; flex-direction: column; gap: 14px; }
.preview { border-radius: 14px; background: #0d1015; border: 1px solid #1f252e; padding: 14px 16px; min-height: 176px; display: flex; flex-direction: column; justify-content: center; gap: 6px; font-size: 12.5px; line-height: 1.5; color: #c4ccd6; }
.preview-tight { gap: 7px; font-size: 12px; line-height: 1.45; }
.pv-kick { font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: #7d8794; }
.pv-kick-gap { margin-top: 6px; }
.pv-row { display: flex; gap: 8px; align-items: flex-start; }
.pv-ic { flex: none; margin-top: 2px; }
.pv-h { font-weight: 700; color: #eef1f5; }
.fcard-h { margin: 6px 10px 0; font-size: 19px; letter-spacing: -0.015em; font-weight: 700; }
.fcard-p { margin: 0 10px; font-size: 15px; line-height: 1.6; color: #9aa4b2; }
/* After the panels' own borders, which it replaces on hover. */
.cell:hover { border-color: #39434f; }
.closing { margin: 28px 0 0; font-size: 13px; line-height: 1.6; color: #7d8794; text-align: center; }

/* ASK CLAUDE */

.claude { max-width: 1200px; margin: 0 auto; padding: clamp(72px, 9vw, 128px) clamp(16px, 4vw, 32px) 0; display: flex; flex-wrap: wrap; align-items: center; gap: clamp(36px, 4vw, 56px); }
.claude-l { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.claude-p { margin: 0; font-size: 17px; line-height: 1.6; color: #9aa4b2; max-width: 30em; }
.how { display: flex; flex-direction: column; gap: 12px; }
.how-row { display: flex; gap: 12px; align-items: flex-start; }
.how-n { flex: none; width: 26px; height: 26px; border-radius: 8px; background: #171b21; border: 1px solid #262c36; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--accent); }
.how-t { font-size: 15px; line-height: 1.55; color: #c4ccd6; padding-top: 2px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.cta { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px; border-radius: 12px; background: var(--accent); color: #04130f; font-weight: 650; font-size: 15px; }
.claude-r { flex: 1.5 1 580px; min-width: 0; max-width: 780px; display: flex; flex-direction: column; gap: 10px; }

.cw {
  --cw-win: #262624;
  --cw-win-clear: rgba(38, 38, 36, 0);
  --cw-rail: #1F1E1D;
  --cw-line: rgba(222, 220, 209, 0.08);
  --cw-text: #FAF9F5;
  --cw-text2: #E8E6DC;
  --cw-muted: #9C9A92;
  --cw-bubble: #141413;
  --cw-avatar-bg: #C2C0B6;
  --cw-avatar-fg: #141413;
  --cw-input: #30302E;
  --cw-input-line: rgba(222, 220, 209, 0.15);
  --cw-card: #30302E;
  --cw-card-line: rgba(222, 220, 209, 0.15);
  --cw-chip: #3D3D3A;
  --cw-code: #1F1E1D;
  --cw-primary-bg: #FAF9F5;
  --cw-primary-fg: #141413;
  border-radius: 14px; overflow: hidden; background: var(--cw-win); color: var(--cw-text); box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 40px 100px -30px rgba(0,0,0,0.7);
}
.s-muted { stroke: var(--cw-muted); }
.s-text2 { stroke: var(--cw-text2); }
.cw-bar { height: 44px; display: flex; align-items: center; gap: 14px; padding: 0 14px; background: var(--cw-rail); border-bottom: 1px solid var(--cw-line); }
.lights { display: flex; gap: 8px; }
.light { width: 12px; height: 12px; border-radius: 50%; }
.light-r { background: #FF5F57; }
.light-y { background: #FEBC2E; }
.light-g { background: #28C840; }
.cw-title { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 14px; color: var(--cw-text2); }
.ellip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-main { display: flex; min-height: 0; }
.cw-rail { display: flex; width: 56px; flex: none; flex-direction: column; align-items: center; gap: 14px; padding: 14px 0; background: var(--cw-rail); border-right: 1px solid var(--cw-line); }
.rail-new { width: 30px; height: 30px; border-radius: 50%; background: #C6613F; display: flex; align-items: center; justify-content: center; }
.rail-av { width: 30px; height: 30px; border-radius: 50%; background: var(--cw-avatar-bg); color: var(--cw-avatar-fg); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.cw-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cw-thread { position: relative; height: 700px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 clamp(14px, 3vw, 36px) 14px; }
.cw-fade { position: absolute; left: 0; right: 0; top: 0; height: 40px; z-index: 1; background: linear-gradient(var(--cw-win), var(--cw-win-clear)); }
.cw-col { width: 100%; max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }

.bubble { align-self: flex-start; max-width: 92%; display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px 10px 10px; border-radius: 14px; background: var(--cw-bubble); }
.bubble-av { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--cw-avatar-bg); color: var(--cw-avatar-fg); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.bubble-t { font-size: 15px; line-height: 1.55; padding-top: 2px; overflow-wrap: anywhere; }
.cw-reply { display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.65; color: var(--cw-text); }
.cw-reply strong { font-weight: 600; }

.perm { border-radius: 12px; background: var(--cw-card); border: 1px solid var(--cw-card-line); box-shadow: 0 6px 24px -12px rgba(0,0,0,0.25); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.perm-top { display: flex; gap: 10px; align-items: flex-start; }
.perm-chip { width: 28px; height: 28px; flex: none; border-radius: 8px; background: var(--cw-chip); display: flex; align-items: center; justify-content: center; }
.perm-text { min-width: 0; font-size: 14.5px; line-height: 1.5; }
.perm-args { font-size: 12px; color: var(--cw-muted); margin-top: 2px; word-break: break-all; }
.perm-btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.perm-b { height: 34px; padding: 0 14px; border-radius: 8px; display: flex; align-items: center; font-size: 13.5px; }
.perm-deny { color: var(--cw-text2); }
.perm-always { border: 1px solid var(--cw-card-line); color: var(--cw-text); }
.perm-allow { position: relative; font-weight: 500; transition: transform 0.15s ease, box-shadow 0.15s ease; background: var(--cw-primary-bg); color: var(--cw-primary-fg); }
.perm-allow.is-pressed { transform: scale(0.96); box-shadow: 0 0 0 3px rgba(198, 97, 63, 0.35); }
.cursor-cl { right: -8px; }

.tool { border-radius: 10px; border: 1px solid var(--cw-card-line); overflow: hidden; }
.toolrow { transition: background 0.15s ease; width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 0; background: transparent; cursor: pointer; color: var(--cw-text2); font-family: inherit; font-size: 14px; text-align: left; }
.tool-name { font-weight: 500; }
.tool-src { font-size: 12.5px; color: var(--cw-muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chev { transition: transform 0.2s ease; }
.chev.is-open { transform: rotate(180deg); }
.tool-detail { border-top: 1px solid var(--cw-card-line); padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; background: var(--cw-code); }
.td-h { font-size: 12px; font-weight: 600; color: var(--cw-muted); }
.td-pre { margin: 0; font-size: 12px; line-height: 1.6; color: var(--cw-text2); white-space: pre-wrap; }
.td-pre-break { word-break: break-all; }

.ans-h { font-weight: 600; margin-top: 4px; }
.ans-li { position: relative; padding-left: 22px; }
.bullet { position: absolute; left: 4px; }
.cw-foot { display: flex; align-items: center; gap: 14px; min-height: 26px; }
.actions { display: flex; gap: 12px; }

.cw-inwrap { padding: 0 clamp(14px, 3vw, 36px) 12px; }
.cw-incol { max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.cw-input { border-radius: 18px; background: var(--cw-input); border: 1px solid var(--cw-input-line); box-shadow: 0 4px 20px -8px rgba(0,0,0,0.12); padding: 12px 12px 10px 16px; display: flex; flex-direction: column; gap: 12px; }
.cw-text { min-height: 24px; font-size: 15px; line-height: 1.5; overflow: hidden; white-space: nowrap; }
.cw-text .ccaret { background: var(--cw-text); }
.cw-ph { color: var(--cw-muted); }
.cw-tools { display: flex; align-items: center; gap: 8px; }
.cw-ib { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--cw-input-line); display: flex; align-items: center; justify-content: center; }
.cw-model { display: flex; align-items: center; gap: 4px; font-size: 13.5px; color: var(--cw-text2); }
.send { width: 32px; height: 32px; border-radius: 8px; background: #C6613F; display: flex; align-items: center; justify-content: center; transition: opacity 0.2s ease; opacity: 0.45; }
.send.is-on { opacity: 1; }
.cw-disc { text-align: center; font-size: 11.5px; color: var(--cw-muted); }
.under { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cl-replay { height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid #262c36; background: transparent; color: #9aa4b2; font-size: 12px; display: flex; align-items: center; gap: 6px; cursor: pointer; }

/* API */

.api { max-width: 1200px; margin: 0 auto; padding: clamp(72px, 9vw, 128px) clamp(16px, 4vw, 32px) 0; }
.api-box { border-radius: 28px; border: 1px solid #1f252e; background: #0f1318; padding: clamp(24px, 4vw, 56px); display: flex; flex-wrap: wrap; gap: clamp(32px, 4vw, 56px); align-items: center; }
.api-l { flex: 1 1 360px; display: flex; flex-direction: column; gap: 20px; }
.h2-api { margin: 0; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 750; text-wrap: balance; }
.api-p { margin: 0; font-size: 16px; line-height: 1.65; color: #9aa4b2; }
.routes { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: #c4ccd6; }
.route { display: flex; gap: 10px; }
.verb { width: 36px; }
.verb-get { color: #3ccf7b; }
.verb-mcp { color: #F5B942; }
.cta-ghost { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; border-radius: 12px; border: 1px solid #2f3742; color: #eef1f5; font-weight: 600; font-size: 15px; }
.code { flex: 1.2 1 440px; min-width: 0; border-radius: 18px; background: #0a0d10; border: 1px solid #1f252e; overflow: hidden; }
.codetabs { display: flex; align-items: center; gap: 6px; padding: 10px; border-bottom: 1px solid #1a1f27; }
.ctab { height: 34px; padding: 0 14px; border-radius: 8px; border: 0; font-size: 12.5px; cursor: pointer; background: transparent; color: #9aa4b2; }
.ctab.is-on { background: #1f252e; color: #eef1f5; }
.codepre { margin: 0; padding: 22px; font-size: 12.5px; line-height: 1.75; color: #c4ccd6; overflow-x: auto; white-space: pre; }
.c-dim { color: #7d8794; }
.c-key { color: #8ea2ff; }
.c-str { color: #3ccf7b; }
.c-warn { color: #F5B942; }

/* FINAL CTA */

.final { position: relative; overflow: hidden; margin-top: clamp(72px, 9vw, 128px); border-top: 1px solid #1a1f27; }
.final-in { position: relative; max-width: 900px; margin: 0 auto; padding: clamp(64px, 8vw, 112px) clamp(16px, 4vw, 32px); display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.h2-final { margin: 0; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; text-wrap: balance; }
.final-p { margin: 0; font-size: 17px; line-height: 1.6; color: #9aa4b2; max-width: 32em; }
.tiles-c { justify-content: center; align-items: normal; }
.x-pill { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid #262c36; font-size: 14px; color: #c4ccd6; margin-top: 8px; }

/* FOOTER */

.foot { border-top: 1px solid #1a1f27; }
.foot-in { max-width: 1200px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 32px) 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 13.5px; color: #7d8794; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { color: #9aa4b2; }

/* Hovers that replace a base rule above, kept last so order settles any tie. */

.ghost:hover { border-color: #3a4350; background: #171b21; }
.tabbtn:hover { color: #eef1f5; }

@media (max-width: 720px) {
  .cw-rail { display: none; }
}

/* Under about 450px the report card is too narrow for the hint to clear "youtube.com · 9 people",
   so it would sit on top of that line. On a phone the buttons are plainly buttons; the hint goes. */
@media (max-width: 480px) {
  .btnrow .hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
