/* =========================================================
   Mankind — site styles (shared by both pages)
   Layout: one centred column, max 1120px. Hero and About are
   two columns on desktop and stack into one column on phones.
   ========================================================= */

/* ---------- 1. Colours and fonts (edit these to restyle) ---------- */
:root {
  --bg: #F5F8F6;          /* page background */
  --surface: #FFFFFF;     /* cards */
  --surface-2: #E9F0EC;   /* tinted bands */
  --ink: #10231D;         /* main text */
  --muted: #4D6159;       /* secondary text */
  --line: #D6E1DB;        /* borders */
  --line-strong: #A9BDB4;
  --brand: #0B6B4D;       /* main green */
  --brand-strong: #08573F;
  --brand-ink: #FFFFFF;   /* text on green */
  --gold: #C98A1B;        /* small highlights */
  --shadow: 0 14px 34px -16px rgba(16, 35, 29, 0.35);

  /* Placeholder highlight (remove the "fill" spans as you add real text) */
  --fill-bg: #FFF1CF;
  --fill-ink: #5A3D06;

  /* Lightbox stays dark in both themes */
  --overlay: rgba(6, 14, 11, 0.94);
  --overlay-ink: #E8F0EC;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 16px;
  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1613;
    --surface: #13201C;
    --surface-2: #172822;
    --ink: #E5EEE9;
    --muted: #9DB1A8;
    --line: #243830;
    --line-strong: #3C5449;
    --brand: #3DBB8C;
    --brand-strong: #5BCB9F;
    --brand-ink: #05140E;
    --gold: #EBB24A;
    --shadow: 0 14px 34px -16px rgba(0, 0, 0, 0.7);
    --fill-bg: #3B2F14;
    --fill-ink: #F6E2B2;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C1613;
  --surface: #13201C;
  --surface-2: #172822;
  --ink: #E5EEE9;
  --muted: #9DB1A8;
  --line: #243830;
  --line-strong: #3C5449;
  --brand: #3DBB8C;
  --brand-strong: #5BCB9F;
  --brand-ink: #05140E;
  --gold: #EBB24A;
  --shadow: 0 14px 34px -16px rgba(0, 0, 0, 0.7);
  --fill-bg: #3B2F14;
  --fill-ink: #F6E2B2;
  color-scheme: dark;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.85rem, 4vw, 2.75rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; }
h3 { font-size: 1.5rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

/* Placeholder text: easy to spot, delete the span when you add real content */
.fill {
  background: var(--fill-bg);
  color: var(--fill-ink);
  box-shadow: inset 0 -2px 0 var(--gold);
  border-radius: 4px;
  padding: 0 0.25em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 0.9375rem; }
.btn-light { background: var(--brand-ink); color: var(--brand); }
.btn-light:hover { opacity: 0.92; }

/* ---------- 4. Header ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--bg);
}
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}
.brand img { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.brand > span { display: flex; align-items: baseline; gap: 10px; }
.brand small {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}
.nav { display: flex; align-items: center; gap: 24px; }
.nav > a:not(.btn) {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--muted);
}
.nav > a:not(.btn):hover,
.nav > a[aria-current="page"] { color: var(--ink); }

/* ---------- 5. Hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(36px, 5vw, 60px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
.hero-text { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero h1 .alt { display: block; color: var(--brand); }
.lede { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.note { font-size: 0.9375rem; color: var(--muted); }

.hero-photo { position: relative; min-width: 0; }
.photo-frame {
  aspect-ratio: 4 / 5;
  max-width: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface-2);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-tag {
  position: absolute;
  left: -22px;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-decoration: none;
  line-height: 1.3;
}
.photo-tag .dot {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--brand); color: var(--brand-ink);
}
.photo-tag .dot svg { width: 20px; height: 20px; }
.photo-tag b { display: block; font-size: 0.9375rem; }
.photo-tag span { font-size: 0.8125rem; color: var(--muted); }
.photo-tag:hover { border-color: var(--brand); }

/* ---------- 6. Proof stats (both pages) ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.15s ease;
}
a.stat:hover { border-color: var(--brand); }
.stat-icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  margin-bottom: 8px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--brand);
}
.stat-icon svg { width: 22px; height: 22px; }
.stat b .fill { font-family: var(--font-body); font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.stat b {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat span { color: var(--muted); font-size: 0.9375rem; line-height: 1.35; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 7. Sections ---------- */
.section { padding-block: clamp(60px, 9vw, 108px); }
.band { background: var(--surface-2); }
.section-head {
  max-width: 42rem;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: clamp(30px, 4vw, 48px);
}
.section-head p { color: var(--muted); font-size: 1.125rem; }

/* Two paths */
.paths { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.path {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 3.5vw, 38px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
}
.path > p { color: var(--muted); }
.path ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.path li { display: flex; gap: 12px; align-items: flex-start; }
.path li::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  margin-top: 0.65em;
  border-radius: 50%;
  background: var(--brand);
}
.path .focus { padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--muted); }
.path .focus b { color: var(--ink); }
.path .btn { align-self: flex-start; margin-top: auto; }

.both-title { margin: clamp(36px, 5vw, 56px) 0 16px; font-size: 1.25rem; }
.both {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}
.both > div { padding: 24px 26px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.both > div + div { border-left: 1px solid var(--line); }
.both strong { font-family: var(--font-display); font-size: 1.125rem; }
.both p { color: var(--muted); font-size: 0.98rem; }

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
}
.steps li { min-width: 0; padding-top: 18px; border-top: 2px solid var(--ink); display: flex; flex-direction: column; gap: 8px; }
.steps .num { font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem; color: var(--brand); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 1.3rem; }
.steps p { color: var(--muted); }

.callout {
  margin-top: clamp(44px, 6vw, 68px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px clamp(24px, 5vw, 56px);
  align-items: start;
  padding: clamp(26px, 4.5vw, 48px);
  background: var(--brand);
  color: var(--brand-ink);
  border-radius: 26px;
}
.callout h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; }
.callout-body { display: flex; flex-direction: column; gap: 12px; }
.callout p { opacity: 0.92; }

/* About */
.about {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.about .photo-frame { aspect-ratio: 1 / 1; }
.about-text { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.about-text p { max-width: 36em; }
.about-text p.muted { color: var(--muted); }
.badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9375rem;
}
.badge .logo {
  width: 38px; height: 38px; flex: none;
  border-radius: 10px;
}

/* Community */
.community {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px clamp(24px, 5vw, 56px);
  align-items: end;
  padding: clamp(28px, 5vw, 56px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
}
.community-text { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.community-text p { color: var(--muted); max-width: 34em; }
.community .actions { justify-content: flex-end; }

/* Final call to action */
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.cta-text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cta-text p { color: var(--muted); font-size: 1.125rem; }
.phone { font-variant-numeric: tabular-nums; }

/* ---------- 8. Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 28px; font-size: 0.9375rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- 9. Proof page ---------- */
.page-intro { padding-block: clamp(40px, 7vw, 84px) clamp(28px, 4vw, 44px); }
.page-intro .inner { display: flex; flex-direction: column; gap: 20px; max-width: 46rem; margin-bottom: clamp(30px, 4vw, 44px); }
.page-intro h1 { font-size: clamp(2.2rem, 5.5vw, 3.75rem); }
.page-intro h1 .alt { color: var(--brand); }
.privacy {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--muted);
}
.privacy svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--brand); }

.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.jump a {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}
.jump a:hover { border-color: var(--brand); color: var(--brand); }
.tap-hint { margin-top: 18px; font-size: 0.9375rem; color: var(--muted); }

.proof-section { padding-block: clamp(44px, 7vw, 76px); border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.proof-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 18px;
  align-items: baseline;
  max-width: 46rem;
  margin-bottom: 28px;
}
.proof-head .idx {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.proof-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); }
.proof-head p { grid-column: 2; color: var(--muted); }

/* Gallery: masonry columns keep each screenshot's real shape (no cropping) */
.gallery { columns: 3 170px; column-gap: 16px; }
.shot { break-inside: avoid; margin: 0 0 18px; }
.shot a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: zoom-in;
}
.shot img { width: 100%; transition: transform 0.3s ease; }
.shot a:hover img { transform: scale(1.02); }
.shot figcaption { padding: 10px 2px 0; font-size: 0.9375rem; line-height: 1.4; color: var(--muted); }

.proof-end {
  margin-top: clamp(20px, 4vw, 40px);
  padding: clamp(28px, 5vw, 56px);
  background: var(--brand);
  color: var(--brand-ink);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.proof-end p { max-width: 38em; opacity: 0.92; }
.small-print { margin-top: 24px; font-size: 0.875rem; color: var(--muted); max-width: 46rem; }

/* Sub-groups inside a proof section */
.proof-groups { display: flex; flex-direction: column; gap: 14px; }
.proof-sub {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.125rem;
  padding-top: 18px;
}
.proof-groups > .proof-sub:first-child { padding-top: 0; }
.proof-sub span {
  font-family: var(--font-body);
  font-size: 0.8125rem; font-weight: 600;
  padding: 2px 9px; border-radius: 999px;
  background: var(--surface-2); color: var(--brand);
}
.gallery-wide { columns: 2 300px; }
/* Grid keeps sorted screenshots in reading order (left to right, row by row) */
.gallery-grid {
  columns: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 22px 16px;
  align-items: start;
}
.gallery-grid .shot { margin: 0; }
.gallery-single { columns: 1; max-width: 820px; }

/* Lightbox */
.lightbox {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--overlay);
  color: var(--overlay-ink);
}
.lightbox::backdrop { background: var(--overlay); }
.lb-inner {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  padding:
    max(14px, env(safe-area-inset-top, 0px))
    max(14px, env(safe-area-inset-right, 0px))
    max(14px, env(safe-area-inset-bottom, 0px))
    max(14px, env(safe-area-inset-left, 0px));
}
.lb-top { display: flex; justify-content: space-between; align-items: center; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.lb-stage { min-height: 0; display: grid; place-items: center; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lb-bottom { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.lb-caption { text-align: center; font-size: 0.9375rem; max-width: 40rem; margin-inline: auto; }
.lb-btn {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: var(--overlay-ink);
  font-size: 1.3rem;
  cursor: pointer;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.18); }

/* ---------- 10. Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 440px; }
  .photo-tag { left: 14px; bottom: 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .about .photo-frame { max-width: 360px; }
  .callout, .community { grid-template-columns: 1fr; }
  .community .actions { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .paths { grid-template-columns: 1fr; }
  .both { grid-template-columns: 1fr; }
  .both > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .nav .hide-sm { display: none; }
  .nav { display: none; } /* mobile: header shows only the logo */
}
@media (max-width: 480px) {
  .brand small { display: none; }
  .nav { gap: 16px; }
  .steps { grid-template-columns: 1fr; }
  .stat { padding: 16px; }
  .actions .btn { flex: 1 1 100%; }
  .proof-head { grid-template-columns: 1fr; }
  .proof-head p { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
