/* Shared by index.html, support.html and 404.html. Colors follow the app: grey page,
   white-to-pale-blue cards, the icon's blue for actions. */
:root {
  --page: #f2f4f8;
  --card-top: #ffffff;
  --card-bottom: #e4eefc;
  --card-shadow: 0 1px 2px rgba(13, 31, 64, .06), 0 8px 24px rgba(13, 31, 64, .06);
  --text: #0f172a;
  --muted: #5b6475;
  --rule: #dfe5ee;
  --accent: #1e56ee;
  --accent-soft: #e3ecff;
  --bubble-me: #1e56ee;
  --bubble-me-text: #ffffff;
  --bubble-ai: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #050a16;
    --card-top: #13223f;
    --card-bottom: #0b1529;
    --card-shadow: none;
    --text: #f2f5fb;
    --muted: #9aa6bc;
    --rule: #1d2b47;
    --accent: #5b9bff;
    --accent-soft: #14284d;
    --bubble-me: #2e6df6;
    --bubble-ai: #1a2a4a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none;
         font-weight: 700; font-size: 19px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.top nav a { color: var(--muted); text-decoration: none; margin-left: 20px; font-size: 15px; }
.top nav a:hover { color: var(--text); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 48px 0 72px; }
.hero h1 { font-size: clamp(36px, 6vw, 58px); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 18px; }
.hero p.lede { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 30em; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px;
         background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; }
.badge.soon { background: var(--accent-soft); color: var(--accent); }

/* Chat mock */
.chat { background: linear-gradient(var(--card-top), var(--card-bottom)); border-radius: 28px;
        box-shadow: var(--card-shadow); padding: 22px 18px; display: flex; flex-direction: column; gap: 10px; }
.chat .who { font-size: 13px; color: var(--muted); text-align: center; margin-bottom: 4px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 20px; font-size: 16px; line-height: 1.4; }
.msg.me { align-self: flex-end; background: var(--bubble-me); color: var(--bubble-me-text); border-bottom-right-radius: 6px; }
.msg.ai { align-self: flex-start; background: var(--bubble-ai); border-bottom-left-radius: 6px;
          box-shadow: 0 1px 2px rgba(13, 31, 64, .06); }

/* Sections */
section { padding: 56px 0; }
section h2 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -.01em; margin: 0 0 10px; }
section p.sub { color: var(--muted); margin: 0 0 32px; max-width: 36em; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: linear-gradient(var(--card-top), var(--card-bottom)); border-radius: 22px;
        box-shadow: var(--card-shadow); padding: 24px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.step { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
        background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 15px; margin-bottom: 12px; }

/* Plain text pages (support, 404) */
.page { max-width: 680px; margin: 0 auto; padding: 24px 16px 64px; }
.page h1 { font-size: 34px; line-height: 1.15; margin: 8px 0 8px; }
.page h2 { font-size: 20px; margin: 32px 0 6px; }
.page p, .page li { color: var(--text); }
.page .muted { color: var(--muted); }
.mail { display: inline-block; margin: 8px 0 4px; font-size: 20px; font-weight: 600; }

/* Footer */
footer { border-top: 1px solid var(--rule); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer a { color: var(--muted); text-decoration: none; margin-right: 18px; }
footer a:hover { color: var(--text); }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 24px 0 48px; }
  .grid { grid-template-columns: 1fr; }
  .top nav a { margin-left: 14px; }
  section { padding: 40px 0; }
}
