/* hellobruno.org — the app's brand screens: blue on cream in light mode,
   cream on blue in dark mode (components/onboarding/brand.tsx). System fonts
   only, so nothing is fetched from another host. */

:root {
  --blue: #2856DB;
  --cream: #FDF3E7;
  --bg: var(--cream);
  --text: var(--blue);
  --ink: #1d1d1f;
  --sub: color-mix(in srgb, var(--ink) 68%, var(--bg));
  --card: color-mix(in srgb, var(--text) 6%, var(--bg));
  --line: color-mix(in srgb, var(--text) 18%, var(--bg));
  --on-text: var(--cream);
  --todo: #fff1a8;
  --serif: "Iowan Old Style", "Iowan Old Style BT", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--blue);
    --text: var(--cream);
    --ink: var(--cream);
    --sub: color-mix(in srgb, var(--cream) 78%, var(--blue));
    --card: color-mix(in srgb, var(--cream) 9%, var(--blue));
    --line: color-mix(in srgb, var(--cream) 24%, var(--blue));
    --on-text: var(--blue);
    --todo: #6b5a00;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}
main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 24px 16px 72px; }

/* ── header / footer ───────────────────────────────────────────── */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; max-width: 1080px; margin: 0 auto; padding: 20px 16px;
}
.brand { color: var(--text); display: block; line-height: 0; }
.brand .wordmark { height: 30px; width: auto; }
.top nav { display: flex; gap: 6px; align-items: center; font-size: 15px; }
.top nav a { color: var(--text); text-decoration: none; padding: 6px 12px; border-radius: 999px; }
.top nav a:hover { background: var(--card); }
.top nav a.lang { border: 1px solid var(--line); }

.bottom {
  border-top: 1px solid var(--line);
  padding: 28px 16px 40px; text-align: center; font-size: 14px; color: var(--sub);
}
.bottom nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin-bottom: 10px; }
.bottom a { color: var(--text); text-decoration: none; }
.bottom a:hover { text-decoration: underline; }
.bottom p { margin: 0; }

/* ── type ──────────────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--serif); color: var(--text); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 6vw, 44px); line-height: 1.1; margin: 24px 0 12px; }
h2 { font-size: 24px; line-height: 1.25; margin: 44px 0 10px; }
h3 { font-size: 19px; line-height: 1.3; margin: 28px 0 6px; }
p, ul, ol { margin: 10px 0; }
ul, ol { padding-left: 22px; }
li { margin: 5px 0; }
a { color: var(--text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
strong { font-weight: 600; }
.lead { font-size: 19px; color: var(--sub); margin: 0 0 24px; }
.small { font-size: 15px; color: var(--sub); }
.card { background: var(--card); border-radius: 18px; padding: 6px 22px; margin: 16px 0; }
.card > :first-child { margin-top: 16px; }
.card > :last-child { margin-bottom: 16px; }
.note {
  border: 1px dashed var(--line); border-radius: 14px; padding: 12px 16px;
  font-size: 15px; color: var(--sub); margin: 0 0 28px;
}
.todo { background: var(--todo); color: inherit; padding: 0 4px; border-radius: 4px; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 12px 0; }
dl.facts dt { color: var(--sub); }
dl.facts dd { margin: 0; }
@media (max-width: 520px) {
  dl.facts { grid-template-columns: 1fr; gap: 0; }
  dl.facts dd { margin-bottom: 10px; }
}
.toc { columns: 2; column-gap: 32px; font-size: 15px; padding-left: 20px; }
@media (max-width: 520px) { .toc { columns: 1; } }

.button {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: var(--text); color: var(--on-text); text-decoration: none; font-weight: 600;
}
.button.ghost { background: none; color: var(--text); border: 1.5px solid var(--text); }
.button:hover { opacity: 0.9; }

/* ── home ──────────────────────────────────────────────────────── */
.page-home main { max-width: 1080px; }
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: 32px 0 24px; }
.hero h1 { font-size: clamp(40px, 7vw, 64px); margin: 0 0 16px; }
.hero .lead { font-size: 20px; max-width: 30em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.badge {
  display: inline-block; font-size: 14px; color: var(--text); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 12px; margin-bottom: 18px;
}
.mark {
  justify-self: center; width: min(100%, 340px); aspect-ratio: 1; border-radius: 22%;
  background: var(--blue); color: var(--cream); display: grid; place-items: center;
}
.mark svg { width: 64%; height: auto; }
@media (prefers-color-scheme: dark) { .mark { background: var(--cream); color: var(--blue); } }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 8px; }
  .mark { width: 160px; grid-row: 1; justify-self: start; }
}

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 40px 0; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--card); border-radius: 20px; padding: 22px; }
.feature h3 { margin: 0 0 6px; }
.feature p { margin: 0; color: var(--sub); font-size: 16px; }
.feature .icon { font-size: 26px; line-height: 1; margin-bottom: 12px; display: block; }

.promise {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  border-top: 1px solid var(--line); padding-top: 32px; margin-top: 48px;
}
.promise h3 { margin: 0 0 4px; font-size: 18px; }
.promise p { margin: 0; color: var(--sub); font-size: 15px; }
@media (max-width: 760px) { .promise { grid-template-columns: 1fr; } }

/* ── support FAQ ───────────────────────────────────────────────── */
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
details summary {
  cursor: pointer; list-style: none; padding: 12px 28px 12px 0; position: relative;
  font-weight: 600; color: var(--text);
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 22px; font-weight: 400; }
details[open] summary::after { content: "–"; }
details > :not(summary) { margin-top: 0; }
details > :last-child { margin-bottom: 14px; }

.notfound { text-align: center; padding: 64px 0; }
