/* Brotherhood — brotherhood.help
   Fraunces carries the brand voice (same display face as the app),
   Inter Tight carries the reading. Warm paper by day, ember by night. */

:root {
  --bg: #faf5ef;
  --bg-raise: #ffffff;
  --ink: #2b2018;
  --ink-soft: #6f6055;
  --ink-faint: #a3948a;
  --accent: #c24a24;
  --accent-deep: #a03a18;
  --accent-soft: rgba(194, 74, 36, 0.09);
  --rule: #e9dfd4;
  --bubble-them: #f1e8de;
  --shadow: 0 24px 60px -24px rgba(60, 34, 18, 0.35);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #191310;
    --bg-raise: #221a15;
    --ink: #f2e9e0;
    --ink-soft: #b5a698;
    --ink-faint: #7d7065;
    --accent: #e06a3f;
    --accent-deep: #c24a24;
    --accent-soft: rgba(224, 106, 63, 0.13);
    --rule: #352a22;
    --bubble-them: #2c221b;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter Tight", -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.display, h1, h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.12;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.soft { color: var(--ink-soft); }

/* ---- shared shell ------------------------------------------------------ */

.shell {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 0 0;
}
.wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent);
  text-decoration: none;
}
.topbar nav { display: flex; gap: 1.4rem; }
.topbar nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.topbar nav a:hover { color: var(--accent); }

footer {
  border-top: 1px solid var(--rule);
  margin-top: 5rem;
  padding: 2.2rem 0 3rem;
  color: var(--ink-faint);
  font-size: 0.9rem;
}
footer .foot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  align-items: baseline;
  justify-content: space-between;
}
footer a { color: var(--ink-soft); text-decoration: none; }
footer a:hover { color: var(--accent); }
footer .foot-links { display: flex; flex-wrap: wrap; gap: 1.4rem; }

/* ---- landing ----------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3rem;
  align-items: center;
  padding: 5rem 0 4.5rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  margin-bottom: 1.2rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero .lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px -10px var(--accent);
}
.btn-ghost {
  color: var(--ink);
  border: 1.5px solid var(--rule);
  background: var(--bg-raise);
}
.cta-note { width: 100%; font-size: 0.88rem; color: var(--ink-faint); margin-top: 0.35rem; }

/* the phone ------------------------------------------------------------- */

.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: min(310px, 82vw);
  border-radius: 42px;
  padding: 14px;
  background: var(--bg-raise);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  transform: rotate(2.5deg);
}
.phone-screen {
  border-radius: 30px;
  background: var(--bg);
  border: 1px solid var(--rule);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 480px;
}
.phone-head {
  padding: 0.9rem 1rem 0.75rem;
  border-bottom: 1px solid var(--rule);
}
.phone-head .crew-name {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.02rem;
}
.phone-head .crew-sub { font-size: 0.75rem; color: var(--ink-faint); }
.band {
  margin: 0.7rem 0.8rem 0;
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat { padding: 0.9rem 0.8rem 1.1rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.bubble {
  max-width: 78%;
  padding: 0.55rem 0.85rem;
  border-radius: 16px;
  font-size: 0.86rem;
  line-height: 1.45;
}
.bubble .who {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.1rem;
}
.them { background: var(--bubble-them); border-bottom-left-radius: 6px; align-self: flex-start; }
.me {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 6px;
  align-self: flex-end;
}
.voice {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.voice .bars {
  display: inline-flex;
  gap: 2.5px;
  align-items: center;
  height: 14px;
}
.voice .bars i {
  width: 2.5px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.75;
}
.sysline {
  align-self: center;
  font-size: 0.72rem;
  color: var(--ink-faint);
  padding: 0.2rem 0;
}

/* sections ---------------------------------------------------------------- */

.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.section { padding: 3.6rem 0; border-top: 1px solid var(--rule); }
.section h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 0.9rem; }
.section .lede { color: var(--ink-soft); max-width: 40rem; }
.section .lede + .lede { margin-top: 0.9rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 2.4rem;
}
.step {
  background: var(--bg-raise);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 1.5rem 1.4rem 1.6rem;
}
.step .num {
  font-family: "Fraunces", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.8rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.35rem; font-weight: 600; }
.step p { font-size: 0.95rem; color: var(--ink-soft); }

.manifesto { text-align: center; padding: 4.6rem 0; }
.manifesto .lines {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  line-height: 1.35;
}
.manifesto .no {
  color: var(--ink-faint);
  text-decoration: line-through;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
}
.manifesto .yes { color: var(--accent); font-style: italic; }
.manifesto .creed {
  margin-top: 1.4rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}

/* ---- document pages (privacy / terms / delete) -------------------------- */

.doc {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3.2rem 1.5rem 4rem;
}
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin: 0 0 0.4rem; }
.doc .updated { color: var(--ink-faint); font-size: 0.9rem; margin-bottom: 2.4rem; }
.doc h2 {
  font-size: 1.25rem;
  margin: 2.6rem 0 0.7rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
}
.doc p, .doc li { color: var(--ink-soft); }
.doc strong, .doc em { color: var(--ink); }
.doc ul { padding-left: 1.2rem; }
.doc li { margin: 0.45rem 0; }
.doc li::marker { color: var(--accent); }
.doc hr { border: 0; border-top: 1px solid var(--rule); margin: 2.6rem 0 0; }
.doc footer { border: 0; margin-top: 1.4rem; padding: 0; }

.doc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.6rem;
}
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  border: 1.5px solid var(--rule);
  background: var(--bg-raise);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.btn-back:hover { border-color: var(--accent); color: var(--accent); }
.doc-end { margin-top: 2.2rem; }

/* ---- toast (mail.js) ----------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translate(-50%, 1rem);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- small screens ------------------------------------------------------ */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 3rem 0 2.8rem; gap: 2.6rem; }
  .phone { transform: rotate(0deg); }
  .steps { grid-template-columns: 1fr; }
  /* nav stays visible on phones — it's the only way around the site */
  .topbar { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .topbar nav { flex-wrap: wrap; gap: 0.9rem 1.2rem; }
}
