/* FoundersChat — shared site styles (dark).
   Mirrors the app's dark palette (Theme.kt) so web and app read as one product.
   Contrast was measured, not eyeballed; the ratios below are against the ground
   (#060005) unless noted. */
:root {
  --ground:      #060005;   /* WineDark      — near-void, wine-tinted        */
  --surface:     #100008;   /* WineDarkSrf                                   */
  --card:        #160A10;   /* WineDarkCard                                  */
  --border:      #2A0A18;   /* lifted slightly from WineDarkBrd for hairlines*/
  --ink:         #EEE4EC;   /* WineText      — 16.8:1                        */
  --muted:       #9A8090;   /* 5.8:1 on ground, 5.4:1 on card                */
  --hint:        #6B5260;

  /* #8A1840 is a FILL, not a text colour: white on it is 9.2:1, but the colour
     itself is only 2.3:1 against the ground. Links use the brighter accent. */
  --wine-fill:   #8A1840;   /* WineDkBtn — buttons                           */
  --wine-fill-hi:#A31E4C;   /* hover                                         */
  --accent:      #E8607A;   /* link / interactive text — 6.3:1               */
  --accent-dim:  #D6455D;   /* brand accent, 4.8:1 — larger text only        */
  --wine-soft:   #1A0610;   /* WineDkBtnLt — tinted panels                   */
  --deep:        #3A0015;   /* WineDkSecond — gradient start                 */

  /* Marketing pages fill the viewport; running prose stays at a readable
     measure (~75 characters) regardless of how wide the window gets. */
  --w-wide:      1240px;
  --w-prose:     820px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: dark; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--ground);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  background: linear-gradient(160deg, #12030A 0%, #0A0106 100%);
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  padding: 18px 24px;
  position: sticky; top: 0; z-index: 50;
}
.site-header .bar {
  max-width: var(--w-wide); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
/* The mark is dark red, so on any dark ground it measures under 3:1 — it survives
   at splash size but disappears at 32px. A pale chip gives it a ground of its own
   rather than fighting the header for separation. */
.brand img {
  width: 34px; height: 34px; object-fit: contain;
  background: #FBE9EC;
  padding: 5px;
  border-radius: 9px;
}
.brand span { font-weight: 700; font-size: 17px; letter-spacing: -0.2px; }
.brand span em { font-style: normal; color: var(--accent-dim); }
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a { color: var(--muted); font-size: 14px; }
.nav a:hover { color: var(--ink); text-decoration: none; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
main { max-width: var(--w-prose); margin: 0 auto; padding: 40px 24px 72px; }
main.home { max-width: var(--w-wide); }

h1 { font-size: 30px; line-height: 1.25; letter-spacing: -0.5px; margin-bottom: 10px; color: var(--ink); }
h2 { font-size: 19px; margin: 34px 0 10px; color: var(--accent-dim); letter-spacing: -0.2px; }
h3 { font-size: 16px; margin: 20px 0 8px; color: var(--ink); }
p  { margin-bottom: 14px; color: var(--ink); }
ul, ol { margin: 0 0 16px 22px; }
li { margin-bottom: 7px; }
strong { font-weight: 600; color: var(--ink); }

.updated { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px 24px; margin: 22px 0;
}
.note {
  background: var(--wine-soft); border-left: 3px solid var(--wine-fill);
  padding: 14px 18px; margin: 20px 0;
}
.note p:last-child { margin-bottom: 0; }

/* ── Home ───────────────────────────────────────────────────────────────── */
.hero { text-align: center; padding: 72px 0 48px; position: relative; }
.hero img.mark { width: 120px; height: 120px; object-fit: contain; margin-bottom: 24px; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); letter-spacing: -1px; }
.hero .tag { color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); max-width: 620px; margin: 0 auto 30px; }
.cta {
  display: inline-block; background: var(--wine-fill); color: #fff;
  padding: 13px 30px; border-radius: 999px; font-weight: 600; font-size: 15px;
}
.cta:hover { background: var(--wine-fill-hi); text-decoration: none; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin: 56px 0; }
.feature { display: flex; flex-direction: column; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.feature h3 { color: var(--accent-dim); margin: 0 0 6px; font-size: 15px; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 26px 24px; margin-top: 40px;
  background: var(--surface);
}
.site-footer .inner {
  max-width: var(--w-wide); margin: 0 auto;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}
.site-footer .links { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .hero h1 { font-size: 30px; }
  h1 { font-size: 25px; }
  main { padding: 28px 20px 56px; }
  .site-header .bar { flex-direction: column; align-items: flex-start; gap: 10px; }
}
