/* =====================================================================
   Is This a Scam? — "Evidence" design system
   Slate paper + ink, highlighter-orange evidence marks, signal red/amber/green.
   Display: Bricolage Grotesque · Body: Instrument Sans · Exhibit/data: IBM Plex Mono
   ===================================================================== */

:root {
  --paper: #f2f4f8;
  --paper-2: #ffffff;
  --paper-3: #e7eaf1;
  --line: #d6dbe6;
  --line-strong: #b9c1d0;
  --ink: #141a22;
  --ink-2: #4a5566;
  --ink-3: #7d8797;
  --hl: #ff9a3c;
  --hl-ink: #141a22;
  --red: #e5484d;
  --amber: #f5a524;
  --green: #2eb67d;
  --grey: #8a94a6;
  --cobalt: #2f5bff;
  --cobalt-2: #2249d6;
  --shadow: 0 1px 2px rgba(20, 26, 34, 0.06), 0 12px 32px -12px rgba(20, 26, 34, 0.18);
  --r: 14px;
  --display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #0f1319; --paper-2: #161b23; --paper-3: #1d242e; --line: #273040; --line-strong: #36415a;
  --ink: #eef1f6; --ink-2: #a9b3c3; --ink-3: #6f7a8c;
  --hl: #f5923a; --hl-ink: #141a22;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { height: 100%; }
body {
  margin: 0; min-height: 100%; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 15.5px; line-height: 1.55; -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(1200px 500px at 50% -10%, color-mix(in srgb, var(--hl) 14%, transparent), transparent 70%);
}
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
kbd { font-family: var(--mono); font-size: 11px; line-height: 1; padding: 3px 5px; border-radius: 5px; border: 1px solid var(--line-strong); color: var(--ink-2); background: var(--paper-2); }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; border-radius: 6px; }
.eyebrow { margin: 0 0 10px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }

.app { min-height: 100dvh; display: flex; flex-direction: column; }

/* ---------- nav ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px clamp(16px, 4vw, 40px); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { font-family: var(--mono); font-weight: 600; font-size: 13px; letter-spacing: -0.01em; background: var(--hl); color: var(--hl-ink); padding: 4px 7px; border-radius: 4px; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.free { font-size: 12.5px; color: var(--ink-3); margin-right: 6px; }
.ghost { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--paper-2); font-size: 13px; font-weight: 500; color: var(--ink-2); transition: border-color 0.15s, color 0.15s; }
.ghost:hover { color: var(--ink); border-color: var(--line-strong); }
#themeBtn { padding: 8px; }
#themeBtn .moon { display: none; }
:root[data-theme="dark"] #themeBtn .sun { display: none; }
:root[data-theme="dark"] #themeBtn .moon { display: block; }
@media (max-width: 640px) { .free { display: none; } }

/* ---------- stage / hero ---------- */
.stage { flex: 1; width: min(100%, 1280px); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 24px; }
.hero { max-width: 760px; margin: clamp(24px, 7vh, 72px) auto 0; text-align: left; }
.headline {
  margin: 0 0 14px; font-family: var(--display); font-weight: 800; font-size: clamp(44px, 8vw, 84px); line-height: 0.98; letter-spacing: -0.035em;
  font-variation-settings: "opsz" 96;
}
.hl { background: none; color: inherit; position: relative; display: inline-block; padding: 0 0.06em; }
.hl::before { content: ""; position: absolute; inset: 0.14em -0.04em 0.06em; background: var(--hl); z-index: -1; transform: scaleX(0); transform-origin: left; animation: swipe 2.4s cubic-bezier(0.3, 0.2, 0.2, 1) 0.4s forwards; translate: var(--hl-x, 0px) var(--hl-y, 0px); transition: translate 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hl.tracking::before { transition-duration: 0.08s; }
@keyframes swipe { to { transform: scaleX(1); } }
.sub { margin: 0 0 26px; max-width: 560px; font-size: 17px; color: var(--ink-2); }
.composer-slot { display: block; }

.examples { margin: 18px 0 0; }
.examples-label { display: block; font-size: 12.5px; color: var(--ink-3); margin-bottom: 8px; }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.chip { padding: 8px 10px; border-radius: 999px; border: 1px dashed var(--line-strong); font-size: 13px; color: var(--ink-2); transition: all 0.15s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
@media (max-width: 640px) { .chips { grid-template-columns: 1fr 1fr; } }
.chip:hover { border-style: solid; border-color: var(--ink); color: var(--ink); background: var(--paper-2); }

.checks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 44px 0 0; padding: 0; border-top: 1px solid var(--line); }
.checks > div { padding: 16px 16px 0 0; border-right: 1px solid var(--line); margin-right: 16px; }
.checks > div:last-child { border-right: 0; margin-right: 0; }
.checks dt { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.checks dd { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); line-height: 1.45; }
@media (max-width: 720px) { .checks { grid-template-columns: 1fr 1fr; row-gap: 16px; } .checks > div:nth-child(2) { border-right: 0; } }

/* state transitions */
.app[data-state="chat"] .hero { display: none; }
.app[data-state="idle"] .dock { display: none; }
.thread { display: flex; flex-direction: column; gap: 28px; padding: 16px 0 40px; }
.app[data-state="idle"] .thread { display: none; }

/* ---------- composer ---------- */
.composer { display: flex; flex-direction: column; gap: 10px; }
.types { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.types::-webkit-scrollbar { display: none; }
.type { flex: 0 0 auto; padding: 7px 12px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--ink-3); border: 1px solid transparent; white-space: nowrap; transition: all 0.15s; }
.type:hover { color: var(--ink); }
.type.is-active { color: var(--ink); background: var(--paper-2); border-color: var(--line); box-shadow: 0 1px 2px rgba(20, 26, 34, 0.06); }

.sheet { position: relative; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); transition: border-color 0.15s, box-shadow 0.15s; }
.sheet:focus-within { border-color: var(--ink); box-shadow: var(--shadow), 0 0 0 4px color-mix(in srgb, var(--hl) 45%, transparent); }
.sheet-rule { position: absolute; left: 0; top: 14px; bottom: 54px; width: 3px; background: var(--hl); border-radius: 0 2px 2px 0; opacity: 0.9; }
textarea {
  display: block; width: 100%; resize: none; border: 0; outline: none; background: transparent; color: var(--ink);
  font-family: var(--mono); font-size: 14px; line-height: 1.6; padding: 16px 18px 8px 20px; min-height: 96px; max-height: 42vh;
}
textarea::placeholder { color: var(--ink-3); font-family: var(--body); font-size: 15px; }
.sheet-foot { display: flex; align-items: center; gap: 12px; padding: 8px 10px 10px 20px; border-top: 1px solid var(--line); }
.privacy { font-size: 12.5px; color: var(--ink-3); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.count { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.send { display: inline-flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-radius: 10px; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 14px; transition: transform 0.1s, background 0.15s; }
.send kbd { background: color-mix(in srgb, var(--paper) 18%, transparent); border-color: transparent; color: inherit; }
.send:hover { background: var(--cobalt); color: #fff; }
.send:active { transform: scale(0.98); }
.send:disabled { opacity: 0.5; cursor: progress; }
@media (max-width: 520px) { .privacy { display: none; } .sheet-foot { justify-content: space-between; } }

.dock { position: sticky; bottom: 0; padding: 12px clamp(16px, 4vw, 40px) 16px; background: linear-gradient(to top, var(--paper) 75%, transparent); }
.dock .composer-slot { width: min(100%, 1280px); margin: 0 auto; }
.dock textarea { min-height: 52px; }

/* ---------- case card ---------- */
.case { border: 1px solid var(--line); border-radius: 18px; background: var(--paper-2); box-shadow: var(--shadow); overflow: hidden; animation: rise 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.case-head { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.case-id { color: var(--ink); font-weight: 600; }
.case-type { text-transform: uppercase; letter-spacing: 0.08em; }
.case-time { margin-left: auto; }
.case-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
@media (max-width: 860px) { .case-body { grid-template-columns: 1fr; } }

.exhibit { padding: 20px 20px 24px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--paper-3) 40%, var(--paper-2)); }
@media (max-width: 860px) { .exhibit { border-right: 0; border-bottom: 1px solid var(--line); } }
.exhibit-text { margin: 0; font-family: var(--mono); font-size: 13.5px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; color: var(--ink); overflow: visible; }
.exhibit-text mark {
  --c: var(--hl); color: var(--hl-ink); background: linear-gradient(var(--c), var(--c)) no-repeat left / 0% 100%;
  padding: 1px 2px; margin: -1px -2px; border-radius: 3px; cursor: pointer; transition: box-shadow 0.15s;
  animation: draw 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: var(--d, 0s);
}
@keyframes draw { to { background-size: 100% 100%; } }
.exhibit-text mark.sev-high { --c: color-mix(in srgb, var(--red) 55%, var(--hl)); }
.exhibit-text mark.sev-medium { --c: var(--hl); }
.exhibit-text mark.sev-low { --c: color-mix(in srgb, var(--hl) 55%, var(--paper-2)); }
.exhibit-text mark.is-hot, .exhibit-text mark:hover { box-shadow: 0 0 0 2px var(--ink); }
:root[data-theme="dark"] .exhibit-text mark { color: var(--ink); }

:root[data-theme="dark"] .exhibit-text mark.sev-high, :root[data-theme="dark"] .exhibit-text mark.sev-medium { color: var(--hl-ink); }

.report { padding: 20px 22px 22px; min-width: 0; }
.report-inner { display: flex; flex-direction: column; gap: 20px; }

/* verdict */
.verdict-title { margin: 0 0 12px; font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4.2vw, 42px); line-height: 1; letter-spacing: -0.03em; font-variation-settings: "opsz" 96; }
.v-likely_scam .verdict-title { color: var(--red); }
.v-suspicious .verdict-title { color: var(--amber); }
.v-likely_safe .verdict-title { color: var(--green); }
.v-unclear .verdict-title { color: var(--grey); }
.risk { display: flex; align-items: center; gap: 12px; }
.risk-bar { --p: 0; --c: var(--grey); flex: 1; max-width: 320px; height: 10px; border-radius: 3px;
  background: repeating-linear-gradient(to right, var(--paper-3) 0 6px, transparent 6px 8px);
  position: relative; overflow: hidden; }
.risk-bar::after { content: ""; position: absolute; inset: 0; width: calc(var(--p) * 1%); background: repeating-linear-gradient(to right, var(--c) 0 6px, transparent 6px 8px); transition: width 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.v-likely_scam .risk-bar { --c: var(--red); } .v-suspicious .risk-bar { --c: var(--amber); } .v-likely_safe .risk-bar { --c: var(--green); }
.risk-num { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.risk-num b { font-size: 15px; color: var(--ink); }
.pattern { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-2); }
.pattern b { font-weight: 600; color: var(--ink); }
.summary { margin: 0; font-size: 16px; line-height: 1.55; }

/* blocks */
.block { padding-top: 18px; border-top: 1px solid var(--line); }
.h-count { color: var(--ink-3); font-weight: 400; margin-left: 6px; }
.flag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.flag { --c: var(--amber); display: grid; grid-template-columns: 8px 1fr; gap: 12px; padding: 10px 12px 10px 0; border-radius: 10px; cursor: default; transition: background 0.15s; animation: rise 0.4s both; animation-delay: var(--d, 0s); }
.flag::before { content: ""; width: 4px; border-radius: 2px; background: var(--c); margin-left: 2px; }
.flag.sev-high { --c: var(--red); } .flag.sev-medium { --c: var(--amber); } .flag.sev-low { --c: var(--grey); }
.flag:hover, .flag.is-hot { background: var(--paper-3); }
.flag b { display: block; font-weight: 600; font-size: 14.5px; letter-spacing: -0.005em; }
.flag b .sev { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c); margin-left: 8px; vertical-align: 1px; }
.flag p { margin: 3px 0 0; font-size: 13.5px; color: var(--ink-2); }
.flag > div { min-width: 0; }
.flag q { display: inline; margin-top: 6px; font-family: var(--mono); font-size: 12px; line-height: 1.9; color: var(--hl-ink); background: color-mix(in srgb, var(--hl) 70%, var(--paper-2)); padding: 1px 6px; border-radius: 4px; quotes: "\201C" "\201D"; overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.flag q::before, .flag q::after { color: var(--ink-3); }

.plain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.plain-list li { display: flex; gap: 10px; }
.plain-list li::before { content: "\2713"; color: var(--green); font-weight: 700; }

.domain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.domain { display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: baseline; font-size: 13.5px; }
.domain code { font-family: var(--mono); font-size: 13px; font-weight: 500; }
.domain .age { color: var(--ink-2); }
.domain .age b { font-weight: 600; }
.domain.is-new .age b { color: var(--red); }
.domain .age small { display: block; color: var(--ink-3); font-size: 12px; }

.todo-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.todo-list li::marker { font-family: var(--mono); color: var(--ink-3); font-size: 12px; }

.report-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 18px; border-top: 1px solid var(--line); }
.pill { padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13px; font-weight: 500; transition: all 0.15s; }
.pill:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.disclaimer { flex-basis: 100%; margin: 6px 0 0; font-size: 12px; color: var(--ink-3); }

/* pending / error states inside a case */
.pending { display: flex; flex-direction: column; gap: 12px; color: var(--ink-2); }
.pending .scan { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.pending .scan::after { content: ""; display: inline-block; width: 2ch; text-align: left; animation: dots 1.2s steps(3, end) infinite; }
@keyframes dots { 0% { content: ""; } 33% { content: "."; } 66% { content: ".."; } 100% { content: "..."; } }
.pending ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.pending li { display: flex; gap: 10px; align-items: center; color: var(--ink-3); transition: color 0.3s; }
.pending li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--line-strong); }
.pending li.done { color: var(--ink); }
.pending li.done::before { background: var(--green); border-color: var(--green); }
.pending li.active { color: var(--ink); }
.pending li.active::before { border-color: var(--ink); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.5); } }
.skeleton { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--paper-3), var(--line), var(--paper-3)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.err { border-left: 3px solid var(--red); padding-left: 14px; }
.err b { display: block; font-family: var(--display); font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.err p { margin: 0; color: var(--ink-2); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
  .exhibit-text mark { background-size: 100% 100%; }
}

/* compact dock in chat state */
.dock .composer { gap: 6px; }
.dock .types { display: none; } .app[data-state="idle"] .type-current { display: none; }
.dock .sheet { display: flex; align-items: flex-end; }
.dock .sheet-rule { bottom: 14px; }
.dock textarea { flex: 1; min-height: 48px; padding: 12px 12px 12px 20px; }
.dock .sheet-foot { border-top: 0; padding: 8px 8px 8px 0; gap: 10px; }
.dock .privacy { display: none; }
.dock .count { display: none; }
.dock .send { padding: 9px 12px 9px 14px; }
.dock .type-current { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; }
.dock .type-current:hover { color: var(--ink); }
.exhibit-text mark.sev-low { --c: color-mix(in srgb, var(--hl) 40%, var(--paper-2)); color: var(--ink); }
.exhibit-inner { position: sticky; top: 16px; }

/* brand logo swap by theme */
.brand-logo { display: block; height: 30px; width: auto; }
.brand-logo.dark { display: none; }
:root[data-theme="dark"] .brand-logo.light { display: none; }
:root[data-theme="dark"] .brand-logo.dark { display: block; }
@media (max-width: 640px) { .brand-logo { height: 26px; } }

/* ---------- partner footer ---------- */
.partners { width: min(100%, 1280px); margin: 0 auto; padding: 18px clamp(16px, 4vw, 40px) 22px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.partners-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.partners-row { display: flex; align-items: center; gap: 10px 22px; flex-wrap: wrap; }
.partner { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line); opacity: 0.85; transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s; }
.partner:hover { opacity: 1; transform: translateY(-1px); box-shadow: var(--shadow); }
.partner img { height: 24px; width: auto; max-width: 140px; object-fit: contain; display: block; }
.app[data-state="chat"] .partners { border-top: 0; padding-top: 0; }

/* ---------- legal footer + pages ---------- */
.legal { width: min(100%, 1280px); margin: 0 auto; padding: 14px clamp(16px, 4vw, 40px) 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); border-top: 1px solid var(--line); }
.legal nav { display: flex; gap: 16px; }
.legal a:hover { color: var(--ink); text-decoration: underline; }
.app[data-state="chat"] .legal { border-top: 0; }
.page { width: min(100%, 720px); margin: 0 auto; padding: 24px clamp(16px, 4vw, 40px) 80px; }
.page .eyebrow { margin-bottom: 8px; }
.page h1 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 5vw, 48px); letter-spacing: -0.03em; line-height: 1.02; margin: 0 0 8px; }
.page h2 { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.015em; margin: 32px 0 8px; }
.page p, .page li { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }
.page p:first-of-type em { color: var(--ink-3); font-style: normal; font-family: var(--mono); font-size: 12.5px; }
.page strong { color: var(--ink); font-weight: 600; }
.page ul { padding-left: 20px; }
.page li { margin: 4px 0; }
.page a { color: var(--cobalt); text-decoration: underline; text-underline-offset: 2px; }
.page hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.page .updated { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-top: 40px; }
textarea:focus-visible { outline: none; }

/* social icons in footer */
.social { display: flex; gap: 4px; align-items: center; }
.social:empty { display: none; }
.social-link { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--ink-3); transition: color 0.15s, background 0.15s; }
.social-link:hover { color: var(--ink); background: var(--paper-3); }
.legal { align-items: center; }

/* website preview block in report */
.site-card { display: flex; flex-direction: column; gap: 6px; }
.site-head { display: flex; align-items: center; gap: 10px; }
.site-head code { font-family: var(--mono); font-size: 13px; font-weight: 500; }
.site-https { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; }
.site-https.ok { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.site-https.bad { background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); }
.site-title { margin: 0; font-size: 14px; color: var(--ink-2); }
.site-signals { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); display: flex; flex-direction: column; gap: 3px; }

/* legal footer docked under the composer in chat mode */
.dock #legalSlotDock .legal { border-top: 0; padding: 8px 4px 0; font-size: 12px; }
.dock #legalSlotDock { width: min(100%, 1280px); margin: 0 auto; }
.dock .legal .social-link { width: 26px; height: 26px; }
.app[data-state="chat"] .dock { padding-bottom: 10px; }

/* ---------- load stability ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.brand-logo { aspect-ratio: 4.6 / 1; }         /* reserve the logo box before the SVG arrives */
.hero .composer { min-height: 176px; }         /* types row + sheet: reserve height before JS runs */
.partners { min-height: 0; }
/* the headline highlight only animates once fonts are in, so the box never lands on the fallback font's metrics */
.hl::before { animation-play-state: paused; }
.fonts-ready .hl::before { animation-play-state: running; }

/* ---------- guides ---------- */
.home-guides { margin: 40px 0 0; }
.home-guides-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.home-guides-head h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.home-guides-head a { font-size: 13px; color: var(--ink-3); }
.home-guides-head a:hover { color: var(--ink); }
.home-guides ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-items: stretch; }
.home-guides li { display: flex; }
.home-guides li a { display: flex; flex-direction: column; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-2); transition: border-color 0.15s; }
.home-guides li a:hover { border-color: var(--ink); }
.home-guides li b { display: block; font-weight: 600; font-size: 14px; margin-bottom: 2px; }
.home-guides li span { font-size: 12.5px; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.home-guides-head a { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 760px) { .home-guides ul { grid-template-columns: 1fr 1fr; } } @media (max-width: 520px) { .home-guides ul { grid-template-columns: 1fr; } }

.ghost.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ghost.primary:hover { background: var(--hl); color: var(--hl-ink); border-color: var(--hl); }
.gwrap { width: min(100%, 1120px); margin: 0 auto; padding: 8px clamp(16px, 4vw, 40px) 80px; }

/* type tags */
.gtag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); padding: 3px 9px 3px 7px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--paper-2); }
.gtag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grey); }
.gtag-sms::before, .gtag-whatsapp::before { background: var(--green); }
.gtag-email::before { background: var(--cobalt); }
.gtag-url::before { background: var(--red); }
.gtag-job::before { background: #8b5cf6; }
.gtag-crypto::before { background: var(--amber); }
.gtag-listing::before { background: #14b8a6; }

/* index */
.ghero { max-width: 760px; margin: clamp(20px, 6vh, 56px) 0 36px; }
.ghero h1 { margin: 0 0 14px; font-family: var(--display); font-weight: 800; font-size: clamp(38px, 6vw, 64px); line-height: 1; letter-spacing: -0.035em; }
.ghero .lede, .gpost-head .lede { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 620px; }
.ghero .lede a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hl); text-decoration-thickness: 2px; }
.ggrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ggrid-3 { grid-template-columns: repeat(3, 1fr); }
.gcard { display: flex; }
.gcard a { display: flex; flex-direction: column; width: 100%; padding: 20px 20px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper-2); transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.gcard a:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.gcard-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.gcard-read { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.gcard h2 { margin: 0 0 8px; font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.15; letter-spacing: -0.02em; }
.gcard p { margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gcard-more { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--ink); }
.gcard-more span { display: inline-block; transition: transform 0.15s; }
.gcard a:hover .gcard-more span { transform: translateX(3px); }
.gcard-big { grid-column: span 2; }
.gcard-big a { background: var(--ink); color: var(--paper); border-color: var(--ink); padding: 28px 28px 24px; }
.gcard-big a:hover { border-color: var(--hl); }
.gcard-big .gtag { color: var(--paper); border-color: color-mix(in srgb, var(--paper) 30%, transparent); background: transparent; }
.gcard-big .gcard-read { color: color-mix(in srgb, var(--paper) 60%, transparent); }
.gcard-big h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.gcard-big p { color: color-mix(in srgb, var(--paper) 78%, transparent); font-size: 15px; -webkit-line-clamp: 4; }
.gcard-big .gcard-more { color: var(--hl); }
@media (max-width: 900px) { .ggrid, .ggrid-3 { grid-template-columns: 1fr 1fr; } .gcard-big { grid-column: span 2; } }
@media (max-width: 600px) { .ggrid, .ggrid-3 { grid-template-columns: 1fr; } .gcard-big { grid-column: auto; } }

/* post */
.gpost-head { max-width: 760px; margin: clamp(16px, 5vh, 48px) 0 32px; }
.crumbs { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); } .crumbs a:hover { color: var(--ink); }
.gpost-head h1 { margin: 0 0 14px; font-family: var(--display); font-weight: 800; font-size: clamp(32px, 5vw, 54px); line-height: 1.02; letter-spacing: -0.035em; }
.gmeta { display: flex; gap: 10px; margin: 14px 0 0; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.gpost-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; padding-top: 28px; border-top: 1px solid var(--line); }
.gpost-body { max-width: 680px; min-width: 0; }
.gpost-body > p, .gpost-body li { font-size: 16.5px; line-height: 1.7; color: var(--ink-2); }
.gpost-body > p { margin: 0 0 18px; }
.gpost-body strong { color: var(--ink); font-weight: 600; }
.gpost-body h2 { margin: 40px 0 12px; font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.025em; line-height: 1.1; scroll-margin-top: 24px; }
.gpost-body h2::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--hl); margin-bottom: 12px; }
.gpost-body h3 { margin: 26px 0 8px; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.gpost-body ul, .gpost-body ol { padding-left: 22px; margin: 0 0 18px; }
.gpost-body li { margin: 6px 0; }
.gpost-body li::marker { color: var(--ink-3); font-family: var(--mono); font-size: 13px; }
.gpost-body code { font-family: var(--mono); font-size: 14px; background: var(--paper-3); padding: 1px 6px; border-radius: 5px; color: var(--ink); }
.gpost-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hl); text-decoration-thickness: 2px; }
.gpost-body hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.gpost-body blockquote { margin: 0 0 24px; padding: 18px 20px 18px 22px; background: color-mix(in srgb, var(--paper-3) 45%, var(--paper-2)); border: 1px solid var(--line); border-left: 3px solid var(--hl); border-radius: 12px; position: relative; }
.gpost-body blockquote::before { content: "the message"; position: absolute; top: -9px; left: 16px; padding: 0 6px; background: var(--paper); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.gpost-body blockquote p { margin: 0; font-family: var(--mono); font-size: 13.5px; line-height: 1.7; color: var(--ink); }
.gpost-body .guide-cta { margin: 44px 0 0; }
.guide-cta { padding: 24px 26px; border-radius: 16px; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.guide-cta .eyebrow { color: var(--hl); margin-bottom: 6px; }
.guide-cta p { margin: 0; color: color-mix(in srgb, var(--paper) 85%, transparent); font-size: 15px; max-width: 420px; }
:root[data-theme="dark"] .guide-cta { background: var(--paper-3); color: var(--ink); border: 1px solid var(--line-strong); }
:root[data-theme="dark"] .guide-cta p:not(.eyebrow) { color: var(--ink-2); }
.btn-cta, .page .guide-cta a.btn-cta { display: inline-block; padding: 11px 18px; border-radius: 10px; background: var(--hl); color: var(--hl-ink); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; transition: transform 0.1s; }
.btn-cta:hover { transform: translateY(-1px); }
.gpost-rail { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 18px; }
.toc { padding: 18px 18px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-2); }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 6px 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.35; border-left: 2px solid transparent; margin-left: -18px; padding-left: 16px; transition: color 0.15s, border-color 0.15s; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: var(--ink-3); padding-top: 2px; }
.toc a:hover, .toc a.is-active { color: var(--ink); border-left-color: var(--hl); }
.rail-check { padding: 18px; border-radius: 14px; background: var(--paper-2); border: 1px solid var(--line); }
.rail-check p { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); }
.rail-check .btn-cta { display: block; text-align: center; }
.grelated { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
@media (max-width: 960px) { .gpost-grid { grid-template-columns: 1fr; gap: 28px; } .gpost-rail { position: static; } .toc { display: none; } }

/* ---------- "your logo here" slot in the Supported-by strip ---------- */
.partner-cta { border-style: dashed; border-color: var(--line-strong); background: transparent; opacity: 1; color: var(--ink-3); font-size: 12.5px; font-weight: 500; gap: 6px; }
.partner-cta:hover { color: var(--ink); border-color: var(--ink); box-shadow: none; }
.partner-cta span { transition: transform 0.15s; display: inline-block; } .partner-cta:hover span { transform: translateX(2px); }

/* ---------- advertise page ---------- */
.ad-hero { max-width: 820px; }
.ad-hero h1 { font-size: clamp(36px, 5.6vw, 60px); }
.ad-actions { display: flex; align-items: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.ad-actions .ghost { padding: 11px 16px; font-size: 14px; }
.ad-stats { list-style: none; margin: 8px 0 56px; padding: 22px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; border-top: 1px solid var(--line); }
.ad-stats b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.03em; line-height: 1; margin-bottom: 6px; }
.ad-stats span { font-size: 13.5px; color: var(--ink-3); line-height: 1.4; display: block; max-width: 220px; }
.ad-section { margin: 0 0 56px; }
.ad-section h2 { margin: 0 0 22px; font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.03em; line-height: 1.05; }
.ad-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; align-items: stretch; }
.ad-card { position: relative; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper-2); }
.ad-card h3 { margin: 0 0 8px; font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.ad-card p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.ad-card p em { font-style: normal; color: var(--ink); font-weight: 500; }
.ad-card .btn-cta { margin-top: auto; align-self: flex-start; border: 0; cursor: pointer; }
.ad-card-main { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ad-card-main p { color: color-mix(in srgb, var(--paper) 78%, transparent); }
.ad-card-main p em { color: var(--hl); }
:root[data-theme="dark"] .ad-card-main { background: var(--paper-3); color: var(--ink); border-color: var(--line-strong); }
:root[data-theme="dark"] .ad-card-main p { color: var(--ink-2); }
.ad-tag { position: absolute; top: 18px; right: 18px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hl); }
.ad-demo { margin: 4px 0 22px; padding: 14px 16px; border-radius: 12px; border: 1px dashed color-mix(in srgb, var(--paper) 30%, transparent); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
:root[data-theme="dark"] .ad-demo { border-color: var(--line-strong); }
.ad-demo .partners-label { color: color-mix(in srgb, var(--paper) 60%, transparent); }
:root[data-theme="dark"] .ad-demo .partners-label { color: var(--ink-3); }
.ad-demo .partner { opacity: 1; }
.partner-you { border: 1px dashed var(--hl); background: transparent; color: var(--hl); font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; height: 38px; }
.ghost-cta { background: transparent; color: var(--ink); border: 1px solid var(--line-strong) !important; }
.ghost-cta:hover { border-color: var(--ink) !important; }
.ad-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
.ad-split h2 { font-size: 26px; margin-bottom: 12px; }
.ad-copy { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-2); max-width: 520px; }
.ad-rules { margin: 0; padding: 0; list-style: none; }
.ad-rules li { position: relative; padding: 10px 0 10px 26px; font-size: 15px; line-height: 1.5; color: var(--ink-2); border-top: 1px solid var(--line); }
.ad-rules li:first-child { border-top: 0; }
.ad-rules li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--hl); }
.ad-cta { margin: 0 0 24px; }
.ad-cta .btn-cta { border: 0; cursor: pointer; }
@media (max-width: 900px) { .ad-grid { grid-template-columns: 1fr 1fr; } .ad-card-main { grid-column: span 2; } .ad-stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ad-grid { grid-template-columns: 1fr; } .ad-card-main { grid-column: auto; } .ad-split { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- contact modal ---------- */
.cmodal { border: 1px solid var(--line); border-radius: 20px; padding: 0; width: min(100% - 32px, 620px); max-height: calc(100dvh - 32px); background: var(--paper-2); color: var(--ink); box-shadow: var(--shadow); overflow: hidden; }
.cmodal::backdrop { background: rgba(10, 13, 18, 0.55); backdrop-filter: blur(3px); }
.cmodal[open] { animation: rise 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
.cmodal-form { margin: 0; display: flex; flex-direction: column; max-height: calc(100dvh - 34px); }
.cmodal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 24px 14px; }
.cmodal-head .eyebrow { margin-bottom: 4px; color: var(--hl); }
.cmodal-head h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.025em; line-height: 1.1; }
.cmodal-x { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--ink-3); border: 1px solid transparent; }
.cmodal-x:hover { color: var(--ink); background: var(--paper-3); }
.cmodal-body { padding: 4px 24px 8px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; min-height: 0; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cf { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cf > span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.cf > span small { font-weight: 400; color: var(--ink-3); margin-left: 4px; }
.cf input, .cf select, .cf textarea { width: 100%; font: inherit; font-size: 14.5px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 0; max-height: none; line-height: 1.4; transition: border-color 0.15s, box-shadow 0.15s; }
.cf textarea { font-family: var(--body); resize: vertical; min-height: 110px; }
.cf textarea::placeholder, .cf input::placeholder { font-family: var(--body); font-size: 14px; color: var(--ink-3); }
.cf input:focus, .cf select:focus, .cf textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--hl) 35%, transparent); }
.cf .bad { border-color: var(--red); }
.cf select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile:empty { display: none; }
.cf-msg { margin: 0; min-height: 0; font-size: 13.5px; }
.cf-msg:empty { display: none; }
.cf-msg.err { color: var(--red); } .cf-msg.ok { color: var(--ink-3); }
.cmodal-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 24px 22px; flex-wrap: wrap; }
.cf-note { font-size: 12px; color: var(--ink-3); max-width: 300px; line-height: 1.4; }
.cmodal .btn-cta { border: 0; cursor: pointer; }
.cmodal .btn-cta:disabled { opacity: 0.6; cursor: progress; transform: none; }
.cmodal-done { padding: 40px 28px 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; overflow: hidden; }
.cmodal-done .btn-cta { margin: 0; }
.cf-check { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); margin-bottom: 8px; }
.cmodal-done h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.025em; }
.cmodal-done p { margin: 0 0 18px; color: var(--ink-2); max-width: 340px; }
@media (max-width: 520px) { .cf-row { grid-template-columns: 1fr; } .cmodal-head, .cmodal-body, .cmodal-foot { padding-left: 18px; padding-right: 18px; } }
