/* Public website for chatrenderer.com: landing page and policy pages.
   Plain static files, no build step and no cookies. Colours follow the Huddle
   app (violet accent on a soft stone background). */
@import url("fonts/fonts.css");

:root {
  --bg: #f6f5f1;
  --panel: #ffffff;
  --text: #15151a;
  --muted: #5f5f6b;
  --line: #e6e4de;
  --accent: #5847f0;
  --accent-ink: #3b2dc4;
  --accent-soft: #eceafe;
  --todo-bg: #fff3c4;
  --todo-text: #6b4e00;
  --warn-bg: #fff7e0;
  --warn-line: #f0d48a;
  --shadow: 0 1px 2px rgba(20, 20, 30, .05), 0 0 0 1px rgba(20, 20, 30, .05);
  --shadow-2: 0 10px 30px -12px rgba(20, 20, 30, .22), 0 0 0 1px rgba(20, 20, 30, .06);
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0e12; --panel: #17171d; --text: #eeeef3; --muted: #a3a3ae; --line: #2a2a33;
    --accent: #8f83ff; --accent-ink: #c4bdff; --accent-soft: #25223f;
    --todo-bg: #4a3b00; --todo-text: #ffe28a; --warn-bg: #2a2410; --warn-line: #5c4a14;
    --shadow: 0 0 0 1px rgba(255, 255, 255, .07);
    --shadow-2: 0 10px 30px -12px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e0e12; --panel: #17171d; --text: #eeeef3; --muted: #a3a3ae; --line: #2a2a33;
  --accent: #8f83ff; --accent-ink: #c4bdff; --accent-soft: #25223f;
  --todo-bg: #4a3b00; --todo-text: #ffe28a; --warn-bg: #2a2410; --warn-line: #5c4a14;
  --shadow: 0 0 0 1px rgba(255, 255, 255, .07);
  --shadow-2: 0 10px 30px -12px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-ink); }
img, svg { max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Placeholder for a detail Deep still has to give. Search the files for
   class="todo" to find every one. */
.todo { background: var(--todo-bg); color: var(--todo-text); border-radius: 4px; padding: 0 4px; font-weight: 600; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand .mark { width: 32px; height: 32px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 17px; }
.top nav { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: 15px; }
.top nav a:hover { color: var(--text); background: var(--accent-soft); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: 600 15px var(--font); text-decoration: none; cursor: pointer; }
.btn:hover { color: var(--text); box-shadow: var(--shadow); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.top nav .btn { padding: 8px 14px; margin-left: 6px; color: #fff; }
@media (max-width: 720px) {
  .top .wrap { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
  .top nav { margin-left: 0; width: 100%; }
  .top nav a { padding: 6px 8px; font-size: 14px; }
}

/* ---------- landing ---------- */
.hero { padding: 72px 0 48px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); padding: 4px 10px; border-radius: 99px; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; letter-spacing: -.02em; margin: 16px 0; }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.small { font-size: 14px; color: var(--muted); }
.mock { background: var(--panel); border-radius: 18px; box-shadow: var(--shadow-2); padding: 16px; }
.mock .bar { display: flex; gap: 6px; margin-bottom: 12px; }
.mock .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock .row { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; }
.mock .row + .row { margin-top: 4px; }
.mock .row.sel { background: var(--accent); color: #fff; }
.mock .row.sel .muted { color: rgba(255, 255, 255, .8); }
.mock .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; background: var(--accent-soft); color: var(--accent-ink); }
.mock .row.sel .av { background: rgba(255, 255, 255, .2); color: #fff; }
.mock .grow { flex: 1; min-width: 0; }
.mock .name { font-weight: 600; font-size: 14px; }
.mock .muted { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock .tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); }
.mock .row.sel .tag { background: rgba(255, 255, 255, .2); color: #fff; }
.bubbles { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--bg); display: grid; gap: 8px; }
.bubble { max-width: 80%; padding: 8px 12px; border-radius: 14px; font-size: 14px; background: var(--panel); box-shadow: var(--shadow); }
.bubble.me { justify-self: end; background: var(--accent); color: #fff; box-shadow: none; }

section.band { padding: 64px 0; }
section.band.alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.01em; margin: 0 0 8px; line-height: 1.15; }
.band .sub { color: var(--muted); margin: 0 0 32px; max-width: 40em; font-size: 17px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card { background: var(--panel); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.alt .card { background: var(--bg); box-shadow: none; border: 1px solid var(--line); }
.card h3 { margin: 12px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.ico { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; }
.ico svg { width: 22px; height: 22px; fill: currentColor; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.steps .card::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan.pop { outline: 2px solid var(--accent); }
.plan .price { font-size: 38px; font-weight: 700; letter-spacing: -.02em; margin: 6px 0 0; }
.plan .price span { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan ul { flex: 1; margin-bottom: 18px; }
.plan .btn { width: 100%; }
.pay { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.soon { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--todo-bg); color: var(--todo-text); vertical-align: middle; margin-left: 6px; }

.faq details { background: var(--panel); border-radius: 12px; box-shadow: var(--shadow); padding: 14px 18px; }
.faq details + details { margin-top: 10px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

.contact-cta { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero { padding-top: 40px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- policy pages ---------- */
.doc { padding: 40px 0 64px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -.02em; line-height: 1.1; margin: 0 0 8px; }
.doc .meta { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.doc h2 { font-size: 22px; margin: 36px 0 8px; }
.doc h3 { font-size: 17px; margin: 22px 0 6px; }
.doc p, .doc li { color: var(--text); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li + li { margin-top: 4px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.doc code { font-size: 14px; background: var(--accent-soft); padding: 1px 6px; border-radius: 4px; }
.draft { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 12px; padding: 12px 16px; font-size: 15px; margin-bottom: 28px; }
.keybox { background: var(--panel); border-radius: 14px; box-shadow: var(--shadow); padding: 18px 22px; margin: 18px 0; }
.keybox ul { margin: 0; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 20px 0; }
.contact-grid .card h3 { margin-top: 0; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: 14px; color: var(--muted); }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
footer h4 { color: var(--text); margin: 0 0 10px; font-size: 14px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li + li { margin-top: 6px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); text-decoration: underline; }
footer .legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 720px) { footer .cols { grid-template-columns: 1fr; } }
