/* =====================================================================
   Justus — ailawyer.at  ·  BESPOKE DESIGN SYSTEM
   Direction: Continental Swiss-grid minimalism.
   Pure white + graphite/near-black + ONE signal accent (EU signal-red).
   All sans-serif, tight tracking, hierarchy by weight/size only.
   Rigid grid, generous whitespace, hairline dividers, near-zero radius,
   razor-thin shadows only. Swiss International Typographic Style meets a
   modern answer engine — clinical precision, editorial restraint.
   Deliberately NOTHING like ailawyer.lawyer (warm paper / navy / brass / serif).
   ===================================================================== */

:root {
  /* ---- surfaces (paper → panel → recessed) ---- */
  --paper: #ffffff;
  --panel: #ffffff;
  --recess: #f4f5f6;
  --recess-2: #eceef0;
  --ink-invert: #ffffff;

  /* ---- ink (three tiers) ---- */
  --ink: #17181a;          /* near-black graphite */
  --ink-2: #55585d;        /* secondary text */
  --ink-3: #8b8f96;        /* muted / captions */

  /* ---- single signal accent (EU signal-red) ---- */
  --signal: #d4001a;
  --signal-ink: #b30016;   /* darker for text-on-white contrast (AA) */
  --signal-wash: #fbe9eb;

  /* ---- hairlines (three weights) ---- */
  --line: #e4e6e8;         /* default hairline */
  --line-2: #d3d6d9;       /* stronger divider */
  --line-ink: #17181a;     /* full-strength rule */

  /* ---- radius: near-zero ---- */
  --r-0: 0px;
  --r-1: 2px;
  --r-2: 3px;

  /* ---- shadows: razor-thin only ---- */
  --sh-1: 0 1px 0 rgba(23,24,26,0.04);
  --sh-2: 0 1px 2px rgba(23,24,26,0.06), 0 0 0 1px var(--line);
  --sh-pop: 0 12px 40px -12px rgba(23,24,26,0.22), 0 0 0 1px var(--line-2);

  /* ---- type (sans only; stable CJK stack) ---- */
  --sans: "Inter", "Helvetica Neue", -apple-system, BlinkMacSystemFont,
          "Segoe UI", "Arial", "Liberation Sans", sans-serif;
  --cjk: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
         "Noto Sans SC", "Source Han Sans SC", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", "JetBrains Mono", "Menlo", "Consolas", monospace;

  /* ---- grid ---- */
  --gutter: 32px;
  --wide: 1200px;
  --read: 720px;

  /* ---- motion ---- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Chinese pages: switch display + body face to a stable CJK sans stack */
html[lang^="zh"] { --sans: var(--cjk); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--signal); color: #fff; }

a { color: inherit; }

/* Shared inner-content width helper via sections/footers below. */

/* =====================================================================
   HEADER — flat white bar, hairline underline, no blur/no dark
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--wide); margin: 0 auto;
  padding: 0 var(--gutter); height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-size: 1.06rem; font-weight: 800; color: var(--ink);
  text-decoration: none; letter-spacing: -0.03em;
  display: inline-flex; align-items: center; gap: 9px;
  line-height: 1;
}
.logo::before {
  content: ""; width: 12px; height: 12px;
  background: var(--signal); border-radius: 0;
  display: inline-block; flex: none;
}
.main-nav { display: flex; gap: 28px; align-items: center; }
.main-nav a {
  color: var(--ink-2); text-decoration: none;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.01em;
  position: relative; padding: 4px 0;
  transition: color 0.16s var(--ease);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 1.5px; background: var(--signal);
  transition: right 0.2s var(--ease);
}
.main-nav a:hover::after { right: 0; }
.lang-switch {
  padding: 6px 11px; border: 1px solid var(--line-2);
  border-radius: var(--r-1); font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.02em; color: var(--ink) !important;
}
.lang-switch::after { display: none !important; }
.lang-switch:hover { border-color: var(--ink); background: var(--ink); color: #fff !important; }

/* =====================================================================
   DISCLAIMER BANNER — thin graphite strip with a signal tick
   ===================================================================== */
.disclaimer-banner {
  background: var(--ink); color: rgba(255,255,255,0.82);
  text-align: center; padding: 9px 20px;
  font-size: 0.76rem; font-weight: 500; line-height: 1.45;
  letter-spacing: 0.005em;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.disclaimer-banner::before {
  content: ""; width: 7px; height: 7px; background: var(--signal);
  flex: none; display: inline-block;
}

/* =====================================================================
   HERO — white, grid-aligned, the ask console IS the hero
   ===================================================================== */
.hero {
  position: relative; overflow: hidden;
  padding: 96px var(--gutter) 72px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
/* Swiss faint column grid overlay — razor-thin, decorative, no clicks */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: calc((100% ) / 12) 100%;
  opacity: 0.35;
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
}
.hero::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--signal); pointer-events: none;
}
.hero-container {
  position: relative; z-index: 1;
  max-width: 780px; margin: 0 auto; text-align: left;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--ink-2);
  padding: 6px 0; margin-bottom: 26px;
  border-top: 2px solid var(--ink);
}
.hero-eyebrow::before {
  content: ""; width: 6px; height: 6px; background: var(--signal); display: inline-block;
}
.hero-title {
  font-family: var(--sans);
  font-size: clamp(2.3rem, 5.4vw, 3.7rem);
  font-weight: 800; color: var(--ink);
  line-height: 1.04; letter-spacing: -0.035em;
  margin-bottom: 18px;
}
.hero-subtitle {
  font-size: 1.06rem; color: var(--ink-2);
  max-width: 620px; margin-bottom: 34px; line-height: 1.55;
  letter-spacing: -0.006em;
}

/* ---- inline ask console ---- */
.chat-inline {
  background: var(--panel);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-2);
  padding: 18px 18px 14px;
  box-shadow: var(--sh-2);
  max-width: 720px;
}
.chat-inline-textarea {
  width: 100%; min-height: 56px; max-height: 160px;
  padding: 6px 2px; font-size: 1.02rem; font-family: var(--sans);
  color: var(--ink);
  border: none; border-bottom: 1px solid var(--line);
  border-radius: 0; background: transparent;
  resize: none; outline: none; line-height: 1.5;
  letter-spacing: -0.01em;
  transition: border-color 0.18s var(--ease);
}
.chat-inline-textarea::placeholder { color: var(--ink-3); }
.chat-inline-textarea:focus { border-bottom-color: var(--signal); }
.chat-inline-actions {
  display: flex; flex-direction: column; gap: 14px;
  margin-top: 14px;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; order: 1; }
.chip {
  padding: 6px 12px; background: var(--paper);
  border: 1px solid var(--line-2); border-radius: var(--r-1);
  font-size: 0.78rem; font-weight: 500; color: var(--ink-2); cursor: pointer;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease), background 0.15s var(--ease);
  white-space: nowrap; letter-spacing: 0;
}
.chip:hover { color: var(--ink); border-color: var(--ink); background: var(--recess); }
.chat-send-btn {
  order: 2; align-self: flex-start;
  padding: 11px 22px; background: var(--ink);
  color: #fff; border: none; border-radius: var(--r-1);
  font-size: 0.85rem; font-weight: 700; cursor: pointer; letter-spacing: 0.01em;
  transition: background 0.15s var(--ease), transform 0.12s var(--ease);
  white-space: nowrap;
}
.chat-send-btn:hover { background: var(--signal); }
.chat-send-btn:active { transform: translateY(1px); }

/* =====================================================================
   SECTIONS — rigid grid, thick rule + index number section heads
   ===================================================================== */
.section {
  padding: 76px var(--gutter);
  max-width: var(--wide); margin: 0 auto;
}
.section + .section { padding-top: 0; }
.section-title {
  font-size: 1.5rem; font-weight: 800; color: var(--ink);
  letter-spacing: -0.03em; margin-bottom: 6px;
  padding-top: 20px; border-top: 2px solid var(--ink);
  display: block;
}
.section-subtitle {
  font-size: 0.98rem; color: var(--ink-2); margin-bottom: 40px;
  max-width: 640px; letter-spacing: -0.006em;
}

/* ---- popular guides grid ---- */
.guides-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.guide-card {
  background: var(--paper);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 24px 28px;
  transition: background 0.16s var(--ease);
  text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; position: relative;
}
.guide-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 0; height: 3px;
  background: var(--signal); transition: width 0.22s var(--ease);
}
.guide-card:hover { background: var(--recess); }
.guide-card:hover::before { width: 100%; }
.guide-card h3 {
  font-size: 1.02rem; font-weight: 700; margin-bottom: 9px;
  color: var(--ink); line-height: 1.32; letter-spacing: -0.018em;
}
.guide-card p {
  font-size: 0.86rem; color: var(--ink-2); line-height: 1.5; letter-spacing: -0.004em;
}
.guides-more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 28px;
  font-size: 0.85rem; font-weight: 700; color: var(--ink);
  text-decoration: none; border-bottom: 2px solid var(--signal); padding-bottom: 2px;
  transition: gap 0.16s var(--ease);
}
.guides-more:hover { gap: 13px; }

/* ---- how it works ---- */
.how-it-works {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.how-step {
  padding: 30px 26px 34px; background: var(--paper);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.how-step-icon {
  width: auto; height: auto; margin: 0 0 16px;
  font-family: var(--sans); font-size: 1.9rem; font-weight: 800;
  color: var(--signal); letter-spacing: -0.04em; line-height: 1;
  display: block;
}
.how-step h3 { font-size: 0.98rem; font-weight: 700; margin-bottom: 7px; letter-spacing: -0.015em; }
.how-step p { font-size: 0.86rem; color: var(--ink-2); line-height: 1.55; }

/* ---- coverage grid ---- */
.coverage-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.coverage-item {
  padding: 22px 22px; background: var(--paper);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-align: left;
}
.coverage-item strong {
  display: block; font-size: 0.98rem; font-weight: 700; margin-bottom: 5px;
  letter-spacing: -0.015em;
}
.coverage-item span {
  font-size: 0.76rem; color: var(--ink-3); font-family: var(--mono);
  letter-spacing: -0.01em;
}

/* =====================================================================
   TRUST BANNER — inverted graphite block, signal keyline
   ===================================================================== */
.trust-banner {
  background: var(--ink); color: #fff;
  text-align: left; padding: 60px var(--gutter);
  position: relative;
}
.trust-banner::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--signal);
}
.trust-banner > * { max-width: var(--wide); margin-left: auto; margin-right: auto; }
.trust-banner h2 {
  font-size: 1.5rem; margin-bottom: 10px; font-weight: 800; letter-spacing: -0.03em; color: #fff;
}
.trust-banner p {
  font-size: 0.94rem; color: rgba(255,255,255,0.62); max-width: 640px; line-height: 1.6;
}

/* =====================================================================
   GUIDE ARTICLE PAGES  (article.doc-equivalent = .guide-body)
   ===================================================================== */
.guide-content {
  max-width: var(--read); margin: 0 auto;
  padding: 56px var(--gutter) 96px;
}
.guide-header h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.35rem); font-weight: 800; line-height: 1.12;
  margin-bottom: 16px; color: var(--ink); letter-spacing: -0.032em;
}
.guide-meta {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  font-size: 0.78rem; color: var(--ink-3); margin-bottom: 6px;
  padding-bottom: 22px; border-bottom: 2px solid var(--ink);
  font-family: var(--mono); letter-spacing: -0.01em;
}
.jurisdiction-tag {
  padding: 3px 9px; background: var(--paper);
  border: 1px solid var(--line-2); border-radius: var(--r-1);
  font-size: 0.72rem; font-family: var(--sans); font-weight: 600; color: var(--ink-2);
  letter-spacing: 0.01em;
}
.guide-body { line-height: 1.72; margin-top: 30px; color: var(--ink); font-size: 1.01rem; }
.guide-body h2 {
  font-size: 1.28rem; font-weight: 800; margin: 44px 0 14px;
  color: var(--ink); letter-spacing: -0.026em;
  padding-top: 16px; border-top: 1px solid var(--line);
}
.guide-body h3 {
  font-size: 1.06rem; font-weight: 700; margin: 28px 0 9px;
  color: var(--ink); letter-spacing: -0.018em;
}
.guide-body p { margin-bottom: 17px; color: var(--ink); }
.guide-body ul, .guide-body ol { margin: 17px 0; padding-left: 22px; }
.guide-body li { margin-bottom: 9px; }
.guide-body ul li::marker { color: var(--signal); }
.guide-body ol li::marker { color: var(--ink-3); font-weight: 700; }
.guide-body strong { color: var(--ink); font-weight: 700; }
.guide-body a {
  color: var(--signal-ink); text-decoration: none;
  border-bottom: 1px solid var(--signal-wash); font-weight: 500;
  transition: border-color 0.15s var(--ease);
}
.guide-body a:hover { border-bottom-color: var(--signal-ink); }
.guide-body code {
  font-family: var(--mono); font-size: 0.9em; background: var(--recess);
  padding: 1px 5px; border-radius: var(--r-1); border: 1px solid var(--line);
}

.guide-cta {
  margin-top: 52px; padding: 30px 28px;
  background: var(--recess); border: 1px solid var(--line);
  border-left: 3px solid var(--signal);
  border-radius: var(--r-2); text-align: left;
}
.guide-cta p { color: var(--ink); font-size: 1rem; font-weight: 600; margin: 0; letter-spacing: -0.012em; }
.cta-bubble-trigger {
  background: var(--ink); color: #fff;
  border: none; padding: 10px 18px; border-radius: var(--r-1);
  font-size: 0.85rem; font-weight: 700; cursor: pointer;
  margin-top: 12px; display: inline-block;
  transition: background 0.15s var(--ease);
}
.cta-bubble-trigger:hover { background: var(--signal); }

/* =====================================================================
   GUIDES INDEX
   ===================================================================== */
.guides-index {
  max-width: var(--wide); margin: 0 auto;
  padding: 60px var(--gutter) 96px;
}
.guides-index h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 12px;
  letter-spacing: -0.035em;
}
.guides-index .section-desc {
  color: var(--ink-2); margin-bottom: 8px; font-size: 1rem; max-width: 640px; line-height: 1.55;
}
.guides-index h2 {
  font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.13em;
  color: var(--ink-2); margin: 48px 0 0;
  padding-top: 14px; border-top: 2px solid var(--ink);
  display: flex; align-items: center; gap: 9px;
}
.guides-index h2::before { content: ""; width: 6px; height: 6px; background: var(--signal); display: inline-block; }
.guide-list-item {
  display: flex; align-items: baseline; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
  transition: padding-left 0.16s var(--ease), color 0.16s var(--ease);
}
.guide-list-item:hover { color: var(--signal-ink); padding-left: 8px; }
.guide-list-item .num {
  color: var(--ink-3); font-size: 0.76rem; min-width: 26px; font-family: var(--mono);
  letter-spacing: -0.02em;
}
.guide-list-item .title { font-weight: 600; font-size: 0.98rem; letter-spacing: -0.014em; line-height: 1.35; }

/* =====================================================================
   STATIC PAGES (disclaimer / privacy / how-it-works)
   ===================================================================== */
.static-page {
  max-width: var(--read); margin: 0 auto;
  padding: 60px var(--gutter) 96px;
}
.static-page h1 {
  font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 10px; letter-spacing: -0.035em;
  padding-bottom: 20px; border-bottom: 2px solid var(--ink);
}
.static-page h2 {
  font-size: 1.16rem; font-weight: 800; margin: 40px 0 12px;
  color: var(--ink); letter-spacing: -0.022em;
}
.static-page p { margin-bottom: 16px; line-height: 1.72; color: var(--ink); }
.static-page ul { margin: 16px 0; padding-left: 22px; }
.static-page li { margin-bottom: 9px; }
.static-page li::marker { color: var(--signal); }
.static-page a {
  color: var(--signal-ink); text-decoration: none;
  border-bottom: 1px solid var(--signal-wash); font-weight: 500;
}
.static-page a:hover { border-bottom-color: var(--signal-ink); }

/* how-it-works page steps (reuses .how-step below hero-lite) */
.page-lede {
  font-size: 1.06rem; color: var(--ink-2); line-height: 1.6; margin-bottom: 8px;
  max-width: 640px; letter-spacing: -0.008em;
}

/* =====================================================================
   FOOTER — white, hairline top, mono meta
   ===================================================================== */
.site-footer {
  background: var(--paper); color: var(--ink);
  padding: 48px var(--gutter) 40px;
  border-top: 2px solid var(--ink);
}
.footer-inner { max-width: var(--wide); margin: 0 auto; }
.footer-links {
  display: flex; flex-wrap: wrap; gap: 26px; margin-bottom: 26px;
}
.footer-links a {
  color: var(--ink-2); text-decoration: none;
  font-size: 0.84rem; font-weight: 600; letter-spacing: -0.006em;
  transition: color 0.15s var(--ease);
}
.footer-links a:hover { color: var(--signal-ink); }
.footer-disclaimer {
  font-size: 0.8rem; color: var(--ink-3); margin-bottom: 12px; line-height: 1.6;
  max-width: 760px; padding-left: 12px; border-left: 2px solid var(--signal);
}
.footer-copy {
  font-size: 0.74rem; color: var(--ink-3); font-family: var(--mono); letter-spacing: -0.01em;
}

/* =====================================================================
   CHAT BUBBLE (inner pages)  — square-ish graphite launcher
   ===================================================================== */
.chat-bubble {
  position: fixed; bottom: 26px; right: 26px; z-index: 200;
  width: 54px; height: 54px;
}
.chat-bubble[hidden] { display: none !important; }
.chat-bubble-dot {
  position: absolute; top: -3px; left: -3px;
  width: 14px; height: 14px;
  background: #16a34a; border-radius: 50%;
  border: 2px solid #fff; z-index: 1;
  animation: pulse-dot 2.2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0.55); }
  60% { box-shadow: 0 0 0 8px rgba(22,163,74,0); }
}
.chat-bubble-btn {
  width: 54px; height: 54px; border-radius: var(--r-2);
  background: var(--ink);
  border: none; color: #fff; cursor: pointer;
  box-shadow: var(--sh-pop);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.18s var(--ease), transform 0.18s var(--ease);
}
.chat-bubble-btn:hover { background: var(--signal); transform: translateY(-2px); }

/* =====================================================================
   CHAT PANEL — flat white, hairline frame, graphite header
   ===================================================================== */
.chat-panel {
  position: fixed; bottom: 92px; right: 26px; z-index: 199;
  width: 384px; max-height: 560px;
  background: var(--panel); border: 1px solid var(--line-2);
  border-radius: var(--r-2);
  box-shadow: var(--sh-pop); display: flex; flex-direction: column;
  overflow: hidden;
  animation: panel-in 0.2s var(--ease);
}
.chat-panel[hidden] { display: none !important; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) {
  .chat-panel { width: calc(100vw - 24px); right: 12px; bottom: 76px; max-height: 72vh; }
}
.chat-panel-header {
  background: var(--ink); color: #fff;
  padding: 13px 16px; display: flex; justify-content: space-between;
  align-items: center; font-size: 0.85rem; font-weight: 700; letter-spacing: -0.01em;
  position: relative;
}
.chat-panel-header::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--signal);
}
.chat-panel-header button {
  background: none; border: none; color: rgba(255,255,255,0.75);
  font-size: 1.05rem; cursor: pointer; padding: 2px 6px; line-height: 1;
  transition: color 0.15s var(--ease);
}
.chat-panel-header button:hover { color: #fff; }
.chat-panel-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  min-height: 120px; max-height: 380px; background: var(--paper);
}
.chat-panel-messages .msg {
  margin-bottom: 12px; padding: 11px 13px;
  border-radius: var(--r-2); font-size: 0.86rem;
  line-height: 1.55; max-width: 88%; letter-spacing: -0.008em;
}
.chat-panel-messages .msg.user {
  background: var(--ink); color: #fff;
  margin-left: auto; border-bottom-right-radius: 0;
}
.chat-panel-messages .msg.assistant {
  background: var(--recess); color: var(--ink);
  margin-right: auto; border: 1px solid var(--line);
  border-bottom-left-radius: 0;
}
/* Markdown rendering inside assistant messages */
.chat-panel-messages .msg.assistant p { margin: 0 0 8px; }
.chat-panel-messages .msg.assistant p:last-child { margin-bottom: 0; }
.chat-panel-messages .msg.assistant h4 {
  font-size: 0.9rem; font-weight: 800; margin: 12px 0 5px; letter-spacing: -0.015em;
}
.chat-panel-messages .msg.assistant ul,
.chat-panel-messages .msg.assistant ol { margin: 8px 0; padding-left: 18px; }
.chat-panel-messages .msg.assistant li { margin-bottom: 4px; }
.chat-panel-messages .msg.assistant li::marker { color: var(--signal); }
.chat-panel-messages .msg.assistant strong { font-weight: 800; }
.chat-panel-messages .msg.assistant a {
  color: var(--signal-ink); border-bottom: 1px solid var(--signal-wash); text-decoration: none;
}
.chat-panel-messages .msg.assistant code {
  font-family: var(--mono); font-size: 0.9em; background: var(--paper);
  border: 1px solid var(--line); padding: 0 4px; border-radius: var(--r-1);
}
.chat-panel-messages .msg.assistant hr { border: none; border-top: 1px solid var(--line); margin: 10px 0; }
.chat-panel-messages .msg .disclaimer-tag {
  display: flex; gap: 6px; margin-top: 10px; font-size: 0.71rem;
  color: var(--ink-2); border-top: 1px solid var(--line);
  padding-top: 7px; line-height: 1.45;
}
.chat-panel-messages .msg .disclaimer-tag::before { content: "⚠"; color: var(--signal-ink); flex: none; }
/* typing dots */
.typing-dots { display: inline-flex; gap: 4px; align-items: center; padding: 2px 0; }
.typing-dots i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3);
  display: inline-block; animation: td 1.2s infinite;
}
.typing-dots i:nth-child(2) { animation-delay: 0.18s; }
.typing-dots i:nth-child(3) { animation-delay: 0.36s; }
@keyframes td { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.chat-panel-input {
  display: flex; gap: 8px; padding: 12px;
  border-top: 1px solid var(--line); background: var(--panel);
}
.chat-panel-input textarea {
  flex: 1; min-height: 40px; max-height: 120px;
  padding: 9px 11px; font-size: 0.86rem; font-family: var(--sans); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: var(--r-1);
  resize: none; outline: none; line-height: 1.45;
  transition: border-color 0.15s var(--ease);
}
.chat-panel-input textarea::placeholder { color: var(--ink-3); }
.chat-panel-input textarea:focus { border-color: var(--ink); }
.chat-panel-input button {
  padding: 9px 15px; background: var(--ink); color: #fff;
  border: none; border-radius: var(--r-1);
  font-size: 0.8rem; font-weight: 700; cursor: pointer;
  align-self: stretch; transition: background 0.15s var(--ease);
}
.chat-panel-input button:hover { background: var(--signal); }
.chat-panel-input button:disabled { opacity: 0.5; cursor: not-allowed; }

/* =====================================================================
   SCROLL-REVEAL (progressive enhancement; visible by default)
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 900px) {
  .guides-grid, .how-it-works, .coverage-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .header-inner { height: 58px; }
  .main-nav { gap: 18px; }
  .hero { padding: 64px var(--gutter) 52px; }
  .hero::before { display: none; }
  .section { padding: 56px var(--gutter); }
  .guides-grid, .how-it-works, .coverage-grid { grid-template-columns: 1fr; }
  .guide-header h1 { font-size: 1.6rem; }
  .chat-bubble { bottom: 18px; right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
