/* ============================================================
   Parity Ventures — shared stylesheet
   Palette:  paper #F7F5F1 · ink #262230 · line #E2DED6
             Brotherhood orange #E8631C on black #17130F (tint #FBE7D6)
             Muave mauve #8B6BA6 (deep #4C3A63, tint #EFE8F4)
   Type:     Bricolage Grotesque (display) · Newsreader (body)
             Spline Sans Mono (labels)
   Signature: the bicolor "equals" mark — two bars, one per app.
   ============================================================ */

:root {
  --paper: #F7F5F1;
  --paper-raised: #FFFFFF;
  --ink: #262230;
  --muted: #6E6879;
  --line: #E2DED6;

  --bro-orange: #E8631C;
  --bro-orange-deep: #A84A0E;
  --bro-black: #17130F;
  --bro-tint: #FBE7D6;

  --mauve: #8B6BA6;
  --mauve-deep: #4C3A63;
  --mauve-tint: #EFE8F4;

  --accent: var(--ink);
  --accent-deep: var(--ink);
  --accent-ink: var(--ink);
  --accent-tint: #ECEAE4;

  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-body: "Newsreader", Georgia, serif;
  --font-mono: "Spline Sans Mono", "Courier New", monospace;

  --radius: 14px;
  --radius-lg: 22px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --measure: 62ch;
}

/* Per-app themes (set on <body data-theme="...">) */
body[data-theme="brotherhood"] {
  --accent: var(--bro-orange);
  --accent-deep: var(--bro-orange-deep);
  --accent-ink: var(--bro-black);
  --accent-tint: var(--bro-tint);
}
body[data-theme="brotherhood"] .band-ink { background: var(--bro-black); }
body[data-theme="muave"] {
  --accent: var(--mauve);
  --accent-deep: var(--mauve-deep);
  --accent-ink: var(--mauve-deep);
  --accent-tint: var(--mauve-tint);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-deep); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  font-weight: 700;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p  { margin: 0 0 1.1em; max-width: var(--measure); }
.lede { font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.5; color: var(--ink); }
.muted { color: var(--muted); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 1.6rem; height: 2px;
  background: var(--accent);
}

.wrap {
  width: min(1120px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}
section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-tight { padding-block: clamp(2.25rem, 5vw, 4rem); }

/* ---------- The Parity mark (bicolor equals sign) ---------- */
.mark {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  flex: none;
}
.mark span {
  display: block;
  height: 8px;
  border-radius: 3px;
}
.mark span:first-child { background: var(--bro-orange); }
.mark span:last-child  { background: var(--mauve); }
.mark--lg { width: 54px; gap: 9px; }
.mark--lg span { height: 14px; border-radius: 5px; }

/* Equals divider between paired content */
.equals-divider {
  display: flex;
  justify-content: center;
  padding-block: 0.5rem;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  list-style: none;
  margin: 0; padding: 0;
}
.site-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink);
  padding: 0.35rem 0.1rem;
  border-bottom: 2.5px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--line); color: var(--ink); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.5rem; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
    padding: 0.75rem var(--gutter) 1.25rem;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a {
    display: block;
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .site-nav a[aria-current="page"] { border-bottom: 1px solid var(--line); color: var(--accent-deep); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.8rem 1.5rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease, color 120ms ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-ink); color: #fff; }
.btn-primary:hover { background: var(--accent); color: #fff; }
.band-ink .btn-primary { background: var(--paper); color: var(--ink); }
.band-ink .btn-primary:hover { background: #fff; color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-store {
  background: var(--ink);
  color: var(--paper);
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  line-height: 1.15;
  padding: 0.6rem 1.4rem;
  border-radius: 12px;
}
.btn-store:hover { background: var(--accent); color: #fff; }
.btn-store small {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* ---------- Home hero ---------- */
.hero {
  padding-block: clamp(4rem, 10vw, 7.5rem) clamp(3rem, 7vw, 5.5rem);
}
.hero .mark--lg { margin-bottom: 1.75rem; }
.hero h1 { max-width: 15ch; }
.hero .lede { max-width: 46ch; }
.hero-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2rem;
}

/* Load-in for hero (skipped under reduced motion via global rule) */
.rise { animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.rise.delay-1 { animation-delay: 120ms; }
.rise.delay-2 { animation-delay: 240ms; }
.rise.delay-3 { animation-delay: 360ms; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.mark--lg span { transform-origin: left center; animation: bar-in 650ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.mark--lg span:last-child { animation-delay: 150ms; }
@keyframes bar-in {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Scroll reveals */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Split app panels (home) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.app-panel {
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 460px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease;
}
.app-panel:hover { transform: translateY(-4px); }
.app-panel--brotherhood { background: linear-gradient(160deg, #2A211A 0%, #12100D 100%); }
.app-panel--brotherhood .eyebrow { color: #F5A468; }
.app-panel--brotherhood .eyebrow::before { background: var(--bro-orange); }
.app-panel--muave { background: linear-gradient(160deg, var(--mauve) 0%, var(--mauve-deep) 100%); }
.app-panel .eyebrow { color: rgba(255,255,255,0.75); }
.app-panel .eyebrow::before { background: rgba(255,255,255,0.6); }
.app-panel h2 { color: #fff; }
.app-panel p { color: rgba(255,255,255,0.88); font-size: 1.05rem; }
.app-panel .panel-cta {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.app-panel .panel-cta::after { content: "→"; transition: transform 150ms ease; }
.app-panel:hover .panel-cta::after { transform: translateX(5px); }
.app-panel:hover, .app-panel:hover h2, .app-panel:hover p { color: #fff; }

/* ---------- Cards & grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}
.card h3 { margin-bottom: 0.45em; }
.card p { font-size: 1.02rem; margin-bottom: 0; color: var(--muted); }
.card .chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--accent-tint);
  color: var(--accent-deep);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  margin-bottom: 0.9rem;
}

/* Tinted band sections */
.band { background: var(--accent-tint); }
.band-ink { background: var(--ink); color: var(--paper); }
.band-ink h2, .band-ink h3 { color: #fff; }
.band-ink p { color: rgba(247,245,241,0.85); }
.band-ink .eyebrow { color: rgba(247,245,241,0.7); }
.band-ink .eyebrow::before { background: rgba(247,245,241,0.5); }

/* ---------- App page hero (two-column with phone) ---------- */
.app-hero { padding-block: clamp(3.5rem, 8vw, 6rem); }
.app-hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 860px) {
  .app-hero .wrap { grid-template-columns: 1fr; }
  .phone-col { justify-content: flex-start; }
}
.store-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.75rem; }
.phone-col { display: flex; justify-content: center; }

/* ---------- CSS phone mockup ---------- */
.phone {
  width: min(300px, 78vw);
  aspect-ratio: 9 / 18.5;
  background: var(--ink);
  border-radius: 42px;
  padding: 12px;
  box-shadow: 0 24px 60px -24px rgba(38, 34, 48, 0.45);
  flex: none;
}
.phone-screen {
  background: var(--paper-raised);
  border-radius: 32px;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-size: 0.72rem;
}
.phone-top {
  background: var(--accent-ink);
  color: #fff;
  padding: 1.4rem 1rem 0.9rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.phone-top .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); }
.phone-feed { padding: 0.8rem; display: flex; flex-direction: column; gap: 0.7rem; overflow: hidden; }
.feed-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  font-family: var(--font-body);
  line-height: 1.45;
}
.feed-item .feed-label {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: block;
  margin-bottom: 0.3rem;
}
.feed-item.feed-accent { background: var(--accent-tint); border-color: transparent; }
.feed-reacts { font-family: var(--font-mono); font-size: 0.58rem; color: var(--muted); margin-top: 0.4rem; }

/* ---------- How-it-works steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1.1rem;
  align-items: start;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--accent);
  line-height: 1;
  padding-top: 0.15rem;
}
.steps h3 { margin-bottom: 0.25em; }
.steps p { margin: 0; color: var(--muted); font-size: 1.02rem; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 0.8rem;
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 1.1rem 1.4rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 700; color: var(--accent); font-size: 1.3rem; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 1.4rem 1.2rem; margin: 0; color: var(--muted); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1.1rem; max-width: 640px; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--paper-raised);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.field textarea { min-height: 160px; resize: vertical; }
.form-note { font-size: 0.95rem; color: var(--muted); }
.form-status { display: none; margin: 0; border-radius: 10px; padding: 0.85rem 1.1rem; font-size: 1rem; }
.form-status.ok { display: block; background: #E4EFE6; color: #1E4D2B; border: 1px solid #BBD8C2; }
.form-status.err { display: block; background: #F7E4E0; color: #7C2D1E; border: 1px solid #E6C0B8; }

/* ---------- About page ---------- */
.fact-list { list-style: none; margin: 0; padding: 0; }
.fact-list li {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.fact-list li:first-child { border-top: 1px solid var(--line); }
.fact-list .fact-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.35rem;
}
@media (max-width: 620px) {
  .fact-list li { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* ---------- Legal pages ---------- */
.legal h2 { font-size: 1.4rem; margin-top: 2.2em; }
.legal .updated {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- CTA strip ---------- */
.cta-strip { text-align: left; }
.cta-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cta-strip h2 { margin-bottom: 0.2em; }
.cta-strip p { margin-bottom: 0; }

/* ---------- Coming-soon pill ---------- */
.soon-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  padding: 0.6rem 1.15rem;
}
.soon-pill::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.app-panel .soon-pill {
  margin-top: auto;
  align-self: flex-start;
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.app-panel .soon-pill::before { background: rgba(255,255,255,0.7); }
.app-panel .soon-pill ~ .panel-cta { margin-top: 1rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(247,245,241,0.8);
  padding-block: 3rem 2.25rem;
  font-size: 0.98rem;
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.site-footer .brand { color: var(--paper); margin-bottom: 0.6rem; }
.footer-contact {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  line-height: 1.9;
  color: rgba(247,245,241,0.55);
}
.footer-contact a { color: rgba(247,245,241,0.55); }
.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.8em;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.site-footer a { color: rgba(247,245,241,0.8); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-legal {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(247,245,241,0.18);
  margin-top: 1.5rem;
  padding-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247,245,241,0.55);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.center p, .center h1, .center h2 { margin-inline: auto; }
.mt-2 { margin-top: 2rem; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 10px 0;
  z-index: 100;
  font-family: var(--font-display);
}
.skip-link:focus { left: 0; }
