/* Relayed site — the app's palette (composeApp ui/Theme.kt), light and dark. System fonts and no
   third-party requests: the only request is the message counter, from AppLabs' own API (counter.js). */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #F6F7F9;
  --surface: #FFFFFF;
  --border: #E3E5E8;
  --text: #1F1F1F;
  --muted: #5F6368;
  --accent: #355C96;
  --brand: #355C96;
  --brand-soft: #EDF1F7;
  --bubble-out: #355C96;
  --on-bubble-out: #FFFFFF;
  --bubble-in: #ECEEF1;
  --positive: #188038;
  --positive-soft: #E6F4EA;
  --warning: #B06000;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121314;
    --surface: #1E1F22;
    --border: #2E3136;
    --text: #E8EAED;
    --muted: #9AA0A6;
    --accent: #A9C1E8;
    --brand: #355C96;
    --brand-soft: #30343B;
    --bubble-out: #A9C1E8;
    --on-bubble-out: #14284A;
    --bubble-in: #2A2D32;
    --positive: #81C995;
    --positive-soft: #1E3324;
    --warning: #FDD663;
  }
}

html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.65; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }

nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 24px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.logo img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 18px; flex-wrap: wrap; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.nav-links a:hover { color: var(--text); }

main { max-width: 760px; margin: 0 auto; padding: 64px 20px 88px; }
.label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
h1 { font-size: clamp(30px, 6vw, 48px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 14px; }
h2 { font-size: 20px; font-weight: 650; margin: 44px 0 10px; }
h3 { font-size: 16px; font-weight: 600; margin: 24px 0 6px; }
p, li { color: var(--muted); font-size: 16px; }
p { margin-bottom: 14px; }
ul, ol { margin: 0 0 16px 20px; }
li { margin-bottom: 6px; }
strong { color: var(--text); font-weight: 600; }
.lede { font-size: 19px; margin-bottom: 28px; }
.effective { font-size: 14px; margin-bottom: 40px; }

.cta { display: inline-block; padding: 13px 22px; border-radius: 999px; background: var(--brand); color: #fff; text-decoration: none; font-weight: 600; }
.cta.soon { background: var(--surface); color: var(--muted); border: 1px solid var(--border); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 20px 0 28px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.card h3 { margin-top: 0; }
.card p { margin-bottom: 0; font-size: 15px; }
.step { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-soft); color: var(--accent); font-weight: 700; font-size: 14px; margin-bottom: 10px; }

/* The sample conversation */
.chat { max-width: 420px; margin: 8px 0 12px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 16px 16px 18px; box-shadow: 0 10px 30px rgba(31, 31, 31, .08); }
.chat .head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--border); }
.chat .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; position: relative; }
.chat .avatar::after { content: ""; position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; border-radius: 50%;
  background: var(--positive); border: 2px solid var(--surface); }
.chat .who strong { display: block; font-size: 15px; line-height: 1.2; }
.chat .who span { font-size: 12px; color: var(--muted); }
.chat .verified { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--positive); background: var(--positive-soft);
  padding: 3px 10px; border-radius: 999px; }
.chat .link { font-size: 12px; color: var(--muted); background: var(--brand-soft); border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; }
.msg { max-width: 80%; padding: 8px 14px; border-radius: 18px; font-size: 15px; line-height: 1.4; margin-bottom: 4px; width: fit-content; }
.msg.in { background: var(--bubble-in); color: var(--text); }
.msg.out { background: var(--bubble-out); color: var(--on-bubble-out); margin-left: auto; }
.meta { font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.meta.out { text-align: right; }
.chat .demo { text-align: center; font-size: 12px; color: var(--muted); margin: 8px 0 0; }

.status { list-style: none; margin: 12px 0 20px; }
.status li { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); margin: 0; }
.status li strong { min-width: 150px; }

.box { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin-top: 48px; }
.box h2 { margin-top: 0; }
.note { border-left: 3px solid var(--warning); padding: 2px 0 2px 16px; margin: 28px 0; }
.note p { margin-bottom: 8px; }

footer { border-top: 1px solid var(--border); padding: 28px 20px; text-align: center; }
footer .nav-links { justify-content: center; margin-bottom: 12px; }
footer p { font-size: 12px; margin: 0; }

@media (max-width: 600px) {
  nav { padding: 12px 16px; }
  .nav-links { gap: 14px; }
  main { padding-top: 40px; }
  .status li { flex-direction: column; gap: 2px; }
}

.counter { margin: -8px 0 8px; }
.counter-line { font-size: 17px; color: var(--text); margin-bottom: 2px; }
.counter-line strong { font-size: 22px; color: var(--accent); }
.counter-note { font-size: 13px; }
