/* Shared look for every page on bipolarconnect.app. Same colors as the app (src/constants/colors.ts). */
:root {
  --background: #FFFFFF;
  --text: #111111;
  --muted: #555555;
  --line: #E6E6E6;
  --green: #2E7D5B;
  --blue: #2463C7;
  --soft: #F4F7F5;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #111111;
    --text: #F4F4F4;
    --muted: #B5B5B5;
    --line: #2C2C2C;
    --green: #5DBB8F;
    --blue: #7FA8F0;
    --soft: #1A211D;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}
a { color: var(--blue); }
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top bar: name on the left, links on the right. */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 19px;
}
.brand svg { width: 32px; height: 32px; flex: none; }
.top nav { display: flex; gap: 18px; font-size: 16px; font-weight: 600; }
.top nav a { color: var(--text); text-decoration: none; }
.top nav a.help { color: var(--green); }

main { padding: 32px 0 48px; }
h1 {
  font-size: clamp(34px, 7vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
h2 { font-size: 24px; line-height: 1.25; margin: 48px 0 12px; }
h3 { font-size: 19px; margin: 0 0 4px; }
p { margin: 0 0 16px; color: var(--muted); }
.accent { width: 56px; height: 4px; border-radius: 2px; background: var(--green); margin-bottom: 20px; }
.lead { font-size: 21px; line-height: 1.5; }
.soon {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
  border: 1.5px solid var(--green);
  border-radius: 999px;
  padding: 4px 14px;
  margin-top: 8px;
}
.soon + p { margin-top: 20px; }

/* Feature list on the home page. */
.features { display: grid; gap: 14px; margin-top: 8px; }
.feature {
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
}
.feature p { margin: 0; font-size: 17px; }

/* "Need help now?" box and the crisis buttons. */
.help-box {
  background: var(--soft);
  border-left: 6px solid var(--green);
  border-radius: 14px;
  padding: 18px 20px;
  margin-top: 48px;
}
.help-box p { margin: 0; color: var(--text); }
.actions { display: grid; gap: 12px; margin: 24px 0; }
.action {
  display: block;
  border: 1.5px solid var(--text);
  border-left: 6px solid var(--green);
  border-radius: 14px;
  padding: 14px 18px;
  color: var(--text);
  text-decoration: none;
}
.action strong { display: block; font-size: 19px; }
.action span { font-size: 15px; color: var(--muted); }
.note { font-size: 16px; }

/* Questions and answers on the Support page. */
details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
h2 + details { border-top: 1px solid var(--line); }
summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; font-size: 17px; }

footer {
  margin-top: auto;
  padding: 24px 0 32px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 10px; }
footer p { font-size: 15px; margin: 0 0 4px; }

@media (max-width: 480px) {
  .top { flex-direction: column; align-items: flex-start; gap: 10px; }
  main { padding-top: 16px; }
}
