/* MindBridge moss + sage theme, shared with Mira. Source of truth: C:\CLAUDE\design\palettes.md
   (GitHub mkumar1992/design-palettes).
   Follows the browser's light/dark setting by default. theme.js sets data-theme="light" or
   "dark" on <html> when the user picks one in the side panel. */
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

/* Light: Mira's warm cream background with deep moss accents. */
:root {
  color-scheme: light;
  --bg:        #f5f0e8;  /* Mira light background */
  --card:      #fffdf9;
  --chip:      #ece5d8;
  --line:      #ddd5c6;
  --text:      #1d2b26;
  --muted:     #5f6f69;
  --moss:      #2a4d41;  /* Mira logo fill */
  --moss-line: #4e8c78;  /* Mira logo border */
  --on-moss:   #f5f0e8;
  --tint:      #e2ebe6;  /* soft sage surface (welcome card) */
  --sage:      #3f7a67;  /* links, focus, headings: sage deepened for contrast on cream */
  --accent:    #2a4d41;  /* primary buttons */
  --on-accent: #ffffff;
  --a:         #4e8c78;  /* title A: sage, deepened for light backgrounds */
  --b:         #b9824f;  /* title B: sand, deepened for light backgrounds */
  --ok:        #3f7a67;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Dark: Mira's moss-black. Used when the browser is dark (unless the user picked light),
   or when the user picked dark. The two blocks must stay identical. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b0f0e; --card: #141b19; --chip: #1c2623; --line: #24302c;
    --text: #e8ede9; --muted: #93a39d;
    --moss: #2a4d41; --moss-line: #4e8c78; --on-moss: #e8ede9; --tint: #1d3a30;
    --sage: #7aa899; --accent: #7aa899; --on-accent: #0b0f0e;
    --a: #7aa899; --b: #d4a373; --ok: #7aa899;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0f0e; --card: #141b19; --chip: #1c2623; --line: #24302c;
  --text: #e8ede9; --muted: #93a39d;
  --moss: #2a4d41; --moss-line: #4e8c78; --on-moss: #e8ede9; --tint: #1d3a30;
  --sage: #7aa899; --accent: #7aa899; --on-accent: #0b0f0e;
  --a: #7aa899; --b: #d4a373; --ok: #7aa899;
}

/* Page styles (same as the extension's About page). */
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--text); font:15px/1.6 var(--font); }
main { max-width:640px; margin:40px auto; padding:0 16px 40px; }
.hero { display:flex; gap:14px; align-items:center; margin-bottom:14px; }
.hero-cta { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; margin:0 0 20px; }
.hero-cta .button { padding:12px 18px; }
.button.secondary { background:var(--card); color:var(--text); border-color:var(--line); }
.button.secondary:hover { background:var(--chip); }
.shot { display:block; width:100%; height:auto; border-radius:10px; border:1px solid var(--line); margin:4px 0 12px; }
.logo { flex:none; width:48px; height:48px; display:block; }
h1 { margin:0; font-size:26px; font-weight:600; letter-spacing:-0.01em; }
.tagline { margin:2px 0 0; color:var(--muted); }
.card { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:18px 20px; margin-bottom:14px; }
h2 { font-size:16px; font-weight:600; margin:0 0 8px; color:var(--sage); }
ol, ul { padding-left:20px; margin:0 0 8px; }
li { margin-bottom:6px; }
.muted { color:var(--muted); font-size:13px; }
a { color:var(--sage); }
.button { display:inline-block; padding:9px 16px; border-radius:8px; background:var(--moss); border:1px solid var(--moss-line); color:var(--on-moss); font-weight:600; text-decoration:none; }
.button:hover { background:var(--moss-line); }
.button:focus-visible, a:focus-visible { outline:2px solid var(--sage); outline-offset:2px; }
footer { text-align:center; margin-top:20px; }
.welcome { border-color:var(--moss-line); background:var(--tint); }
.welcome p { margin:0; }

/* Roadmap */
.roadmap { list-style:none; padding:0; margin:0 0 10px; display:grid; gap:12px; }
.roadmap li { display:grid; gap:2px; padding:12px 14px; border:1px solid var(--line); border-radius:10px; background:var(--bg); }
.roadmap li.now { border-color:var(--moss-line); background:var(--tint); }
.roadmap .tag { justify-self:start; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; padding:2px 8px; border-radius:999px; background:var(--chip); color:var(--muted); }
.roadmap li.now .tag { background:var(--moss); color:var(--on-moss); }
/* Icon links at the top of the privacy policy. */
.app-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 20px; }
.app-links a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.app-links a:hover { border-color: var(--sage); transform: translateY(-1px); }
.app-links a:focus-visible { outline: 2px solid var(--sage); outline-offset: 2px; }
.app-links svg { flex: none; width: 44px; height: 44px; filter: drop-shadow(0 2px 4px rgba(29, 43, 38, .18)); }
.app-links span { display: grid; line-height: 1.25; }
.app-links strong { font-size: 14px; }
.app-links small { font-size: 12px; color: var(--muted); }
@media (max-width: 520px) { .app-links a { flex-direction: column; text-align: center; gap: 8px; padding: 12px 6px; } .app-links span { justify-items: center; } }
@media (prefers-reduced-motion: reduce) { .app-links a { transition: none; } .app-links a:hover { transform: none; } }
