/* ChatTiger — Guías / Guides (public static help center, Spanish in /guias/, English in /guides/). Same brand as the panel: Geist + Instrument Serif, indigo primary. */
:root {
  --primary: #4F46E5; --primary-strong: #4338CA; --primary-soft: #EEF0FF;
  --text: #16161D; --muted: #5B5F6B; --bg: #FAFAF8; --card: #FFFFFF; --border: #E7E5E0;
  --tip: #0F7B5F; --tip-bg: #E8F6F1; --warn: #9A5B00; --warn-bg: #FFF5E0; --bad: #B42318; --bad-bg: #FDEDEC;
  --shadow: 0 1px 2px rgba(16,16,29,.05), 0 8px 24px rgba(16,16,29,.06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #8B85FF; --primary-strong: #A5A0FF; --primary-soft: #1D1B3A;
    --text: #F2F2F5; --muted: #A3A6B1; --bg: #0E0E13; --card: #17171F; --border: #2A2A35;
    --tip: #5FD3B0; --tip-bg: #10261F; --warn: #F2C063; --warn-bg: #2A2112; --bad: #F59A93; --bad-bg: #2C1514;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.3);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--primary-strong); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
.serif { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.top-in { max-width: 1120px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; white-space: nowrap; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; font-size: 18px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand span.sep { color: var(--muted); font-weight: 400; }
.top .lang { margin-left: auto; font-size: 15px; font-weight: 550; color: var(--muted); text-decoration: none; padding: 8px 4px; white-space: nowrap; }
.top .lang:hover { color: var(--text); }
.top .lang + .cta { margin-left: 0; }
@media (max-width: 520px) { .top-in { gap: 10px; } .brand { font-size: 17px; } .brand span.sep { display: none; } .top .lang { font-size: 14px; } .top .cta { font-size: 14px; padding: 7px 11px; } }
.top .cta { margin-left: auto; font-size: 15px; font-weight: 550; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 10px; text-decoration: none; white-space: nowrap; }

/* Layout */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.guide { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; padding: 28px 0 80px; }
@media (min-width: 1000px) { .guide { grid-template-columns: 220px minmax(0, 720px); } }
.toc { display: none; }
@media (min-width: 1000px) {
  .toc { display: block; position: sticky; top: 84px; align-self: start; font-size: 14px; }
  .toc p { margin: 0 0 8px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
  .toc a { display: block; padding: 5px 0 5px 12px; color: var(--muted); text-decoration: none; border-left: 2px solid var(--border); }
  .toc a:hover { color: var(--text); border-color: var(--primary); }
}
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }

/* Hero */
h1 { font-size: clamp(32px, 6vw, 46px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 14px; font-weight: 650; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 18px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-strong); font-weight: 550; }
h2 { font-size: 26px; line-height: 1.25; letter-spacing: -.01em; margin: 52px 0 12px; scroll-margin-top: 84px; }
h3 { font-size: 19px; margin: 28px 0 8px; }
p, li { margin: 0 0 12px; }
ul, ol { padding-left: 22px; }
strong { font-weight: 650; }
pre.code { font: 500 14px/1.6 "Geist Mono", ui-monospace, monospace; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; overflow-x: auto; }
@media (max-width: 480px) { pre.code { font-size: 12px; padding: 12px; } }
p code, li code { overflow-wrap: anywhere; }
kbd, .kw { font-family: "Geist Mono", ui-monospace, monospace; font-size: .88em; background: var(--primary-soft); color: var(--primary-strong); padding: 1px 7px; border-radius: 6px; font-weight: 600; }

/* Callouts */
.call { border-radius: 14px; padding: 14px 16px 14px 48px; margin: 18px 0; position: relative; border: 1px solid transparent; }
.call::before { position: absolute; left: 16px; top: 13px; font-size: 18px; }
.call p:last-child, .call ul:last-child { margin-bottom: 0; }
.call .t { font-weight: 650; display: block; margin-bottom: 4px; }
.call.tip { background: var(--tip-bg); } .call.tip::before { content: "💡"; } .call.tip .t { color: var(--tip); }
.call.warn { background: var(--warn-bg); } .call.warn::before { content: "⚠️"; } .call.warn .t { color: var(--warn); }
.call.bad { background: var(--bad-bg); } .call.bad::before { content: "✋"; } .call.bad .t { color: var(--bad); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps > li { counter-increment: s; position: relative; padding-left: 52px; margin-bottom: 40px; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 650; font-size: 16px; }
.steps > li > h3 { margin-top: 0; }
@media (max-width: 560px) { .steps > li { padding-left: 0; } .steps > li::before { position: static; display: inline-grid; margin-bottom: 8px; } }

/* Screenshots with numbered marks */
figure { margin: 16px 0 8px; }
.shot { position: relative; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.mark { position: absolute; transform: translate(-50%, -50%); width: 28px; height: 28px; border-radius: 50%; background: #E11D74; color: #fff; font: 700 14px/28px "Geist", sans-serif; text-align: center; box-shadow: 0 0 0 3px #fff, 0 4px 10px rgba(0,0,0,.25); }
.ring { position: absolute; border: 3px solid #E11D74; border-radius: 12px; box-shadow: 0 0 0 4px rgba(225,29,116,.15); pointer-events: none; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
figcaption ol { margin: 6px 0 0; padding-left: 0; list-style: none; }
figcaption li { margin-bottom: 4px; }
figcaption .n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #E11D74; color: #fff; font-size: 12px; font-weight: 700; margin-right: 6px; }

/* Illustration: comment → public reply + DM */
.flow { display: grid; grid-template-columns: 1fr; gap: 12px; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); margin: 8px 0 24px; }
@media (min-width: 640px) { .flow { grid-template-columns: 1fr auto 1fr; align-items: center; } }
.flow .col { display: grid; gap: 10px; }
.flow .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.bubble { border-radius: 16px; padding: 10px 12px; font-size: 15px; line-height: 1.45; }
.bubble b { display: block; font-size: 13px; }
.b-comment { background: var(--bg); border: 1px solid var(--border); }
.b-public { background: var(--bg); border: 1px solid var(--border); margin-left: 18px; }
.b-dm { background: var(--primary); color: #fff; }
.arrow { font-size: 26px; color: var(--primary); text-align: center; }
@media (max-width: 639px) { .arrow { transform: rotate(90deg); } }

/* Cards / tables */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; }
.fact { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.fact .big { font-size: 28px; font-weight: 650; color: var(--primary-strong); line-height: 1.1; }
.fact .small { font-size: 14px; color: var(--muted); }
details { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 4px 16px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 600; padding: 10px 0; }
details[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 10px; }

/* Hub */
.hub-hero { padding: 48px 0 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; padding-bottom: 64px; }
.card { display: block; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 18px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
a.card:hover { transform: translateY(-2px); border-color: var(--primary); }
.card .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--primary-soft); display: grid; place-items: center; font-size: 20px; margin-bottom: 12px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.card.soon { opacity: .6; box-shadow: none; }
.card .tag { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--muted); }
.section-t { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; margin: 24px 0 10px; grid-column: 1 / -1; }

.next { display: flex; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 15px; }
footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
footer .wrap { padding-top: 20px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--muted); }
@media (max-width: 560px) { .mark { width: 22px; height: 22px; font-size: 12px; line-height: 22px; box-shadow: 0 0 0 2px #fff, 0 3px 8px rgba(0,0,0,.25); } }
