/* Chris Gamo Dev — shared styles for every page.
   Per-app colour lives in each app folder's app.css (sets --accent). */

:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --text: #1f2328;
  --muted: #5b616b;
  --line: #e6e1da;
  --accent: #3b4a5a;
  --accent-soft: #eef1f4;
  --radius: 14px;
  --measure: 40rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171a;
    --surface: #1d2024;
    --text: #e9e7e3;
    --muted: #a3a8b0;
    --line: #2e3237;
    --accent: #b9c6d4;
    --accent-soft: #232a31;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 56rem; margin: 0 auto; padding: 0 1.25rem; }
.prose { max-width: var(--measure); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; flex-wrap: wrap; }
.brand { font-weight: 650; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.app-nav { display: flex; gap: 1.25rem; font-size: 0.95rem; }
.app-nav a { color: var(--muted); text-decoration: none; }
.app-nav a:hover, .app-nav a[aria-current="page"] { color: var(--text); }
.app-nav a[aria-current="page"] { font-weight: 600; }

/* Type */
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
h2 { font-size: 1.45rem; margin-top: 2.25rem; }
h3 { font-size: 1.1rem; margin-top: 1.5rem; }
p, ul { margin: 0 0 1rem; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: var(--measure); }
.small { font-size: 0.9rem; color: var(--muted); }

main.wrap { padding-top: 3rem; padding-bottom: 4rem; }
section + section { margin-top: 3rem; }

/* Hero */
.hero { display: flex; gap: 1.5rem; align-items: center; margin-bottom: 1rem; }
.app-icon { width: 72px; height: 72px; flex: none; border-radius: 18px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.app-icon svg { width: 44px; height: 44px; }

/* Cards and grids */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); padding: 0; margin: 0 0 1rem; list-style: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.35rem; }
.card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

a.app-card { display: flex; gap: 1rem; align-items: center; text-decoration: none; color: inherit; transition: border-color 0.15s; }
a.app-card:hover { border-color: var(--accent); }
.app-card-icon { width: 56px; height: 56px; flex: none; border-radius: 14px; }
a.app-card h3 { margin: 0 0 0.15rem; }
a.app-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.ticks { padding-left: 0; list-style: none; }
.ticks li { padding-left: 1.6rem; position: relative; margin-bottom: 0.45rem; }
.ticks li::before { content: ""; position: absolute; left: 0.2rem; top: 0.55em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); }

.price { font-size: 1.6rem; font-weight: 650; margin: 0 0 0.75rem; }
.price span { font-size: 0.95rem; font-weight: 400; color: var(--muted); }

.note { background: var(--accent-soft); border-radius: var(--radius); padding: 1.1rem 1.35rem; }
.note p:last-child { margin-bottom: 0; }

.button { display: inline-block; background: var(--accent); color: var(--bg); padding: 0.7rem 1.2rem; border-radius: 999px; font-weight: 600; text-decoration: none; }
.button:hover { opacity: 0.9; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 0.9rem 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 0.6rem 0 0.2rem; color: var(--text); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 1.5rem 0 2.5rem; font-size: 0.9rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
.site-footer a { color: var(--muted); }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero { flex-direction: column; align-items: flex-start; }
}
