/* ==========================================================================
   celedog.in — brand system aligned with celedog.com
   Deep-blue gradient hero · brand blue #235AFF · white cards · HOT pills
   ========================================================================== */

:root {
  --brand: #235aff;
  --brand-2: #2b52ff;
  --brand-deep: #1e3a8a;

  --hero-a: #2143c0;
  --hero-b: #264dcf;
  --hero-c: #3160e3;

  --bg: #f6f8fb;
  --card: #fff;

  --ink: #0f172b;
  --ink-2: #475467;
  --ink-3: #98a2b3;
  --line: #e4e7ec;

  --gold: #ffd83d;

  --shadow-card: 0 1px 2px rgba(16, 24, 40, .05), 0 10px 28px rgba(16, 24, 40, .06);
  --radius: 16px;

  --max: 1060px;
  --nav-h: 64px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;

  --font-serif: "Georgia", "Times New Roman", "Songti SC", "STSong", "Noto Serif SC", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.12;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------- nav ---- */
/* Transparent over the blue hero; solid white once scrolled. */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  color: #fff;
  background: transparent;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.nav.scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 26px; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo svg { display: block; width: 34px; height: 34px; }
.logo .word {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .04em;
}
.logo .tld { font-weight: 700; opacity: .55; margin-left: -2px; }

.nav .right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav .right > a { font-size: 14.5px; font-weight: 600; opacity: .92; }
.nav .right > a:hover { opacity: 1; }

.lang { display: flex; background: rgba(255, 255, 255, .16); border-radius: 999px; padding: 3px; }
.nav.scrolled .lang { background: #eef1f6; }
.lang button {
  border: 0; background: transparent; font: inherit;
  font-size: 12px; font-weight: 650; color: inherit; opacity: .75;
  padding: 5px 11px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: #fff; color: var(--brand); opacity: 1; box-shadow: 0 1px 3px rgba(16,24,40,.14); }
.nav.scrolled .lang button[aria-pressed="true"] { background: #fff; }

/* home page sits on a light hero — nav reads dark until scrolled */
body.home .nav { color: var(--ink); }
body.home .nav .lang { background: #e8edf6; }

/* visually hidden (a11y labels kept for icon-only buttons) */
.sr {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

/* --------------------------------------------------------------- hero --- */
/* america.gov style: light stage, huge serif headline, a rounded skyline
   visual with the ask pill floating over its top edge. */
.hero {
  position: relative;
  margin-top: calc(-1 * var(--nav-h));
  padding: calc(var(--nav-h) + 78px) 0 76px;
  text-align: center;
  color: var(--ink);
  background:
    radial-gradient(760px 320px at 50% -60px, rgba(35, 90, 255, .09), transparent 62%),
    linear-gradient(180deg, #f7f9fc 0%, #eef2f9 100%);
  overflow: hidden;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 7vw, 5.3rem);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.05;
  color: #101d4d;
}
.hero .sub {
  max-width: 640px;
  margin: 24px auto 0;
  font-size: 19px;
  color: #5a6474;
}

/* rounded skyline visual */
.hero-stage {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 24px;
}
.hero-visual {
  border-radius: 26px;
  overflow: hidden;
  box-shadow:
    0 40px 90px rgba(13, 27, 68, .26),
    0 6px 18px rgba(13, 27, 68, .10);
}
.hero-visual img { display: block; width: 100%; height: auto; }

.hero-below { margin-top: 34px; }

/* "local server not running" warning */
.nosrv {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 0 auto 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 999px;
  padding: 7px 16px 7px 13px;
  font-size: 13px; color: #92400e;
}
.nosrv[hidden] { display: none; }
.nosrv svg { flex: none; color: #f59e0b; }
.nosrv code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; background: #fff;
  border: 1px solid #fde68a; border-radius: 6px; padding: 2px 7px; color: #334155;
}

/* ------------------------------------------------------------ ask box --- */
/* floating pill, half over the visual's top edge */
.ask {
  max-width: 720px;
  margin: 48px auto -33px;
  position: relative;
  z-index: 2;
}
.ask-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 999px;
  padding: 7px 7px 7px 26px;
  box-shadow:
    0 30px 70px rgba(13, 27, 68, .30),
    0 4px 14px rgba(13, 27, 68, .10);
}
.ask-box:focus-within {
  box-shadow:
    0 30px 70px rgba(13, 27, 68, .30),
    0 4px 14px rgba(13, 27, 68, .10),
    0 0 0 3px rgba(35, 90, 255, .25);
}
.ask-box input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 17px; color: var(--ink); padding: 13px 0; min-width: 0;
}
.ask-box input::placeholder { color: var(--ink-3); }
.ask-box .ask-send {
  width: 50px; height: 50px; padding: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #14265c;
}
.ask-box .ask-send:hover { background: var(--brand); }

.ask-hint { font-size: 13px; color: var(--ink-3); }

/* base send button — shared by the follow-up bar; hero pill overrides shape */
.ask-send {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 12px; padding: 12px 16px;
  background: var(--brand); color: #fff;
  cursor: pointer; transition: background .15s ease, transform .15s ease;
}
.ask-send:hover { background: #1c4ce6; }
.ask-send:active { transform: scale(.97); }

/* hero chips — quiet white pills on the light stage */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 18px; }
.chips .chip {
  font: inherit; font-size: 13.5px; font-weight: 550; color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px; cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
  transition: .16s ease;
}
.chips .chip:hover { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 6px 14px rgba(35, 90, 255, .28); }

/* --------------------------------------------------------------- main --- */
main .band { padding: 72px 0 0; }

/* section head — gradient square icon + title, like "Popular Collections" */
.sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.sec-ico {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, #7b8cff 100%);
  box-shadow: 0 8px 18px rgba(35, 90, 255, .28);
}
.sec-head h2 { font-size: 26px; }
.sec-head .sub { font-size: 14px; color: var(--ink-3); margin-top: 2px; }

/* --------------------------------------------------------------- chat --- */
/* america.gov style: the question, the streamed answer, then its citations. */
.chat { display: flex; flex-direction: column; gap: 18px; }

.msg {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 26px 28px;
}
.msg-q {
  font-size: 19px; font-weight: 750; letter-spacing: -.02em; line-height: 1.35;
  padding-left: 14px; border-left: 3px solid var(--brand);
}
.msg-a { margin-top: 14px; font-size: 15.5px; line-height: 1.75; color: #1b2432; }
.msg-a p + p { margin-top: 12px; }
.msg-a ul, .msg-a ol { margin: 10px 0; padding-left: 19px; }
.msg-a li { margin-bottom: 6px; }
.msg-a strong { font-weight: 700; color: var(--ink); }
.msg.working .msg-a::after {
  content: ""; display: inline-block; width: 7px; height: 15px;
  margin-left: 3px; vertical-align: -2px;
  background: var(--brand); animation: blink 1s steps(2) infinite;
}
.muted { color: var(--ink-3); }

/* error diagnosis block — says *why* and what to run */
.msg-err {
  margin-top: 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 3px solid #f59e0b;
  border-radius: 9px;
  padding: 11px 13px;
  font-size: 13px;
  line-height: 1.6;
  color: #7c4a03;
}
.msg-err .er { display: block; }
.msg-err .eo { display: block; margin-top: 6px; color: #92400e; font-weight: 600; }
.msg-err code {
  display: block;
  margin-top: 7px;
  background: #fff;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 7px 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #334155;
  overflow-x: auto;
  white-space: nowrap;
}

/* [n] citation marker -> link to that source */
.cb {
  display: inline-block; min-width: 17px; height: 17px; line-height: 17px;
  margin: 0 1px; padding: 0 4px;
  font-size: 11px; font-weight: 750; text-align: center;
  color: var(--brand); background: #e8eeff; border-radius: 5px;
  vertical-align: 1px;
}
.cb:hover { background: var(--brand); color: #fff; text-decoration: none; }

/* citation cards under the answer */
.cites { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.cg-t {
  font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); margin: 14px 0 8px;
}
.cites .cg-t:first-child { margin-top: 0; }
.cg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.cite {
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px;
  transition: .15s ease;
}
.cite:hover { border-color: var(--brand); background: #fbfcff; }
.cite .cn {
  flex: none; width: 20px; height: 20px; border-radius: 6px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 750; color: #fff;
  background: linear-gradient(135deg, var(--brand), #5d7dff);
}
.cite .cbody { display: flex; flex-direction: column; min-width: 0; }
.cite .ct {
  font-size: 13.5px; font-weight: 650; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cite .cs { margin-top: 3px; font-size: 12px; color: var(--ink-2); line-height: 1.5; }
.cite .chost { margin-top: 5px; font-size: 11px; color: var(--ink-3); }

/* an uploaded library PDF, as opposed to a web source */
.cite.doc { border-color: #dcd6ff; background: #fbfaff; }
.cite .cdot {
  display: inline-block; margin-left: 6px; padding: 1px 6px;
  font-size: 9.5px; font-weight: 750; letter-spacing: .06em;
  color: #5b21b6; background: #ede9fe; border-radius: 4px;
  vertical-align: 1px;
}

/* feedback row — one bit of signal per answer */
.fb { margin-top: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fb-q { font-size: 12.5px; color: var(--ink-3); }
.fb-b {
  font: inherit; font-size: 13px; font-weight: 600;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 999px; padding: 6px 13px; cursor: pointer; transition: .15s ease;
}
.fb-b:hover { border-color: var(--brand); color: var(--brand); }
.fb-b.up.on { background: #dcf5e7; color: #0d7a43; border-color: #a7e8c6; }
.fb-b.down.on { background: #fde8e8; color: #c0392b; border-color: #f5c0c0; }
.fb-s { font-size: 12.5px; color: var(--ink-3); }
.fb-s.bad { color: #c0392b; }

/* related / follow-up questions — america.gov style */
.fups { margin-top: 16px; }
.fups-t {
  font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 9px;
}
.fups-row { display: flex; flex-wrap: wrap; gap: 8px; }
.fup {
  font: inherit; font-size: 13.5px; font-weight: 600; text-align: left;
  color: var(--brand); background: #f3f6ff;
  border: 1px solid #e0e7ff; border-radius: 999px;
  padding: 9px 15px; cursor: pointer; transition: .15s ease;
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%;
}
.fup:hover {
  background: var(--brand); color: #fff; border-color: var(--brand);
  box-shadow: 0 6px 14px rgba(35, 90, 255, .26);
}
.fup::after { content: "↗"; font-size: 12px; opacity: .7; flex: none; }
.fups-loading { font-size: 13px; color: var(--ink-3); }
.fups-loading::after {
  content: ""; display: inline-block; width: 6px; height: 13px; margin-left: 4px;
  vertical-align: -2px; background: var(--ink-3); animation: blink 1s steps(2) infinite;
}

/* follow-up bar */
.follow {
  display: flex; align-items: center; gap: 10px;
  margin-top: 16px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 9px 9px 9px 20px; box-shadow: var(--shadow-card);
}
.follow input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 15.5px; color: var(--ink); padding: 11px 0; min-width: 0;
}
.follow input::placeholder { color: var(--ink-3); }

/* live local matches while typing */
.live {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  padding: 16px 22px; margin-bottom: 20px;
}
.live[hidden] { display: none; }
.live-t {
  font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 4px;
}

/* ---------------------------------------------------------------- ai ---- */
.ai {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 30px;
}
.ai .tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase;
  color: #7c3aed;
  background: linear-gradient(90deg, #f3e8ff, #ede9fe);
  border-radius: 999px; padding: 4px 11px;
  margin-bottom: 14px;
}
.ai-q { font-size: 19px; font-weight: 700; letter-spacing: -.015em; line-height: 1.4; }
.ai-a { margin-top: 14px; font-size: 15.5px; line-height: 1.72; color: #1b2432; }
.ai-a p + p { margin-top: 13px; }
.ai-a ul, .ai-a ol { margin: 12px 0; padding-left: 19px; }
.ai-a li { margin-bottom: 6px; }
.ai-a strong { font-weight: 700; color: var(--ink); }
.caret { display: inline-block; width: 8px; background: var(--brand); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.src-list {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line);
}
.src {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 9px; padding: 6px 12px; font-size: 12.5px;
  font-weight: 550; transition: .15s ease;
}
.src:hover { border-color: var(--brand); color: var(--brand); }
.src .ag {
  font-size: 10px; font-weight: 800; letter-spacing: .04em;
  color: #fff; background: linear-gradient(135deg, var(--brand), #5d7dff);
  border-radius: 5px; padding: 2.5px 6px;
}
.src .arrow { color: var(--ink-3); }

/* ------------------------------------------------------------ results --- */
.res-count { margin-top: 22px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.res { display: flex; align-items: baseline; gap: 12px; padding: 13px 2px; border-bottom: 1px solid var(--line); border-radius: 6px; }
.res:last-child { border-bottom: 0; }
.res .body { display: flex; flex-direction: column; min-width: 0; }
.res .t { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.res .d { margin-top: 3px; font-size: 13px; color: var(--ink-2); }
.res .arrow { margin-left: auto; color: var(--ink-3); font-size: 14px; flex: none; }
.res:hover .t, .res:hover .arrow { color: var(--brand); }
.res .badge {
  flex: none; min-width: 40px; text-align: center;
  font-size: 10.5px; font-weight: 750; padding: 3.5px 7px; border-radius: 6px;
  background: #eef1f6; color: var(--ink-2);
}
mark { background: rgba(35, 90, 255, .14); color: inherit; border-radius: 3px; padding: 0 1px; }

/* -------------------------------------------------------------- notes --- */
/* 3 feature cards, like celedog.com "AI-Powered Analysis" grid. */
.notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.note {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 26px 24px;
}
.note .ico {
  width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center; color: #fff;
  margin-bottom: 16px;
}
.note:nth-child(1) .ico { background: linear-gradient(135deg, var(--brand), #5d7dff); box-shadow: 0 8px 18px rgba(35,90,255,.25); }
.note:nth-child(2) .ico { background: linear-gradient(135deg, #10b981, #34d399); box-shadow: 0 8px 18px rgba(16,185,129,.25); }
.note:nth-child(3) .ico { background: linear-gradient(135deg, #8b5cf6, #a78bfa); box-shadow: 0 8px 18px rgba(139,92,246,.25); }
.note h3 { font-size: 16.5px; }
.note p { margin-top: 8px; font-size: 14px; line-height: 1.62; color: var(--ink-2); }
.note a { color: var(--brand); font-size: 14px; font-weight: 650; }
.note a:hover { text-decoration: underline; }

/* -------------------------------------------------------------- table --- */
/* compact blue band for inner pages */
.page-hero {
  margin-top: calc(-1 * var(--nav-h));
  padding: calc(var(--nav-h) + 54px) 0 58px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(700px 320px at 85% -10%, rgba(120, 160, 255, .32), transparent 60%),
    linear-gradient(118deg, var(--hero-a) 0%, var(--hero-b) 55%, var(--hero-c) 100%);
}
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.page-hero p { margin: 14px auto 0; max-width: 520px; font-size: 16px; color: rgba(255, 255, 255, .82); }

main .page-body { padding: 44px 0 0; }

.tbl {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.tbl-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 700px; }
thead th {
  text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-3); background: #f9fafc;
  padding: 14px 18px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
tbody td { padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbfe; }
td .name { font-weight: 650; }
td .sm { font-size: 13px; color: var(--ink-2); }
td a.h { color: var(--brand); font-weight: 600; }
td a.h:hover { text-decoration: underline; }
.pill { display: inline-block; font-size: 11px; font-weight: 750; padding: 3.5px 9px; border-radius: 7px; }
.pill.p0 { background: #dcf5e7; color: #0d7a43; }
.pill.p1 { background: #e3ecff; color: var(--brand); }
.pill.p2 { background: #eef1f6; color: var(--ink-2); }

/* filter pills — active = solid brand blue, like "This Week" */
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 20px; }
.filters .chip {
  font: inherit; font-size: 13.5px; font-weight: 650; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 18px; cursor: pointer;
  transition: .15s ease;
}
.filters .chip:hover { border-color: var(--brand); color: var(--brand); }
.filters .chip.on {
  background: var(--brand); border-color: var(--brand); color: #fff;
  box-shadow: 0 6px 14px rgba(35, 90, 255, .3);
}

.fine { margin-top: 18px; font-size: 13px; color: var(--ink-3); }

/* ------------------------------------------------- home: go-to-chat CTA -- */
.go-chat { text-align: center; padding: 34px 0 6px; }
.go-chat .btn-go {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--brand); color: #fff;
  font-size: 16px; font-weight: 700; letter-spacing: -.01em;
  padding: 15px 30px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 10px 26px rgba(35, 90, 255, .3);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.go-chat .btn-go:hover { background: #1b46e0; transform: translateY(-1px); box-shadow: 0 14px 32px rgba(35, 90, 255, .36); }
.go-chat .sub { max-width: 560px; margin: 16px auto 0; }

/* ------------------------------------------------------------ chat page -- */
body.chatpage { display: flex; flex-direction: column; min-height: 100vh; }
body.chatpage main.cp-main { flex: 1; display: flex; flex-direction: column; }

.cp-top { border-bottom: 1px solid var(--line); background: var(--card); }
.cp-top-in { display: flex; align-items: center; gap: 16px; padding: 13px 0; }
.cp-back {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 650; color: var(--brand); text-decoration: none;
}
.cp-back:hover { text-decoration: underline; }
.cp-title {
  margin-left: auto; font-size: 12.5px; font-weight: 750;
  letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3);
}

.cp-body { flex: 1; padding: 26px 0 8px; }
.cp-body .chat { padding-bottom: 8px; }

.cp-welcome { text-align: center; padding: 40px 0 8px; }
.cp-welcome[hidden] { display: none; }
.cp-welcome-h {
  font-family: var(--font-serif); font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.14; letter-spacing: -.02em; color: var(--ink); margin: 0;
}
.cp-welcome-p {
  max-width: 540px; margin: 14px auto 0;
  font-size: 15.5px; line-height: 1.65; color: var(--ink-2);
}
.cp-suggest-t {
  margin: 30px 0 12px; font-size: 11.5px; font-weight: 750;
  letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3);
}
.cp-suggest { justify-content: center; }

.cp-composer {
  position: sticky; bottom: 0; z-index: 5;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--bg) 26%);
  padding: 14px 0 4px;
}
.cp-composer .follow { margin-top: 0; }
.cp-note { margin: 9px 0 0; text-align: center; font-size: 12px; color: var(--ink-3); }
body.chatpage footer { margin-top: 40px; }

@media (max-width: 640px) {
  .cp-welcome { padding: 26px 0 4px; }
  .cp-note { display: none; }
}

/* ------------------------------------------------------------- footer --- */
footer {
  margin-top: 88px;
  background: linear-gradient(160deg, #101d4d 0%, #14266b 60%, #1b34a0 130%);
  color: rgba(255, 255, 255, .75);
  padding: 30px 0 38px;
}
footer .wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 13px; }
footer .flogo { display: flex; align-items: center; gap: 9px; color: #fff; }
footer .flogo svg { width: 28px; height: 28px; display: block; }
footer .flogo b { font-size: 15px; font-weight: 800; letter-spacing: .04em; }
footer .r { margin-left: auto; color: rgba(255, 255, 255, .5); }

/* -------------------------------------------------------------- misc ---- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .notes { grid-template-columns: 1fr; }
  .cg { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .msg { padding: 20px 18px; }
  .msg-q { font-size: 17px; }
}
@media (max-width: 640px) {
  .nav .wrap { gap: 14px; }
  .nav .right { gap: 10px; }
  .lang button { padding: 5px 9px; }
  .hero { padding: calc(var(--nav-h) + 52px) 0 56px; }
  .hero .sub { font-size: 16.5px; }
  .hero-visual { border-radius: 18px; }
  .ask { margin: 36px auto -23px; }
  .ask-box { padding: 5px 5px 5px 18px; }
  .ask-box input { font-size: 15.5px; padding: 11px 0; }
  .ask-box .ask-send { width: 44px; height: 44px; }
  .ai { padding: 22px 18px; }
  footer .r { margin-left: 0; }
}
@media (max-width: 480px) {
  .nav .right > a { display: none; } /* Sources link hidden on phones */
  .logo .word { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   FAQ — the crawlable Q&A that backs the FAQPage structured data.
   Kept in the DOM (not injected by JS) so answer engines that do not execute
   JavaScript still read the questions and answers.
   ========================================================================== */
.faq { margin-top: 68px; padding-bottom: 8px; }
.faq h2 {
  font-size: clamp(21px, 2.6vw, 28px);
  line-height: 1.28;
  letter-spacing: -.01em;
  margin-bottom: 22px;
}
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 2px 22px;
}
.faq-item[open] { padding-bottom: 18px; }
.faq-item > summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 16px 32px 16px 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "";
  position: absolute;
  right: 5px; top: 50%;
  width: 9px; height: 9px;
  margin-top: -6px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.faq-item[open] > summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq-item > p {
  margin: 0 0 10px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
.faq-item > p.faq-src { margin-bottom: 0; font-size: 13.5px; color: var(--ink-3); }
.faq-src span { font-weight: 600; color: var(--ink-2); }
.faq-src a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-right: 8px;
}
.faq-src a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .faq-item { padding: 2px 17px; }
  .faq-item > summary { font-size: 16px; }
}

