/* /apps/site/styles/site.css */
/* Ourmunity public website (EH-S16-01): Ridge colours and Plus Jakarta Sans, the Dusk art in the
   home page's band. Follows the device's light or dark setting; nothing is stored. Every colour
   pair used for text is checked for WCAG AA contrast by `npm run check` (src/contrast.ts): add a
   new pair there when you add one here. */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-weight: 400;
  font-display: swap;
  src: url('fonts/PlusJakartaSans-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-weight: 600;
  font-display: swap;
  src: url('fonts/PlusJakartaSans-SemiBold.ttf') format('truetype');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-weight: 700;
  font-display: swap;
  src: url('fonts/PlusJakartaSans-Bold.ttf') format('truetype');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-weight: 800;
  font-display: swap;
  src: url('fonts/PlusJakartaSans-ExtraBold.ttf') format('truetype');
}

:root {
  --page: #f4f6f5;
  --surface: #ffffff;
  --muted-surface: #eef2f1;
  --text: #151a19;
  --text-muted: #4d5856;
  --line: #e5eae8;
  --line-strong: #6b7976;
  --brand: #0f6b5c;
  --on-brand: #ffffff;
  --brand-soft: #d4e7e0;
  --brand-ink: #00382f;
  --accent: #c2410c;
  --on-accent: #ffffff;
  --warn-bg: #fff1d6;
  --warn-ink: #7a4a00;
  --success: #1e7a46;
  --paid-bg: #e3f4e8;
  --paid-ink: #1b6b3a;
  --night: #04201b;
  --night-text: #e6f2ee;
  --night-muted: #bfd8d2;
  --night-accent: #fdba74;
  --on-night: #ffffff;
  --font: 'Plus Jakarta Sans', 'Segoe UI', Roboto, Arial, sans-serif;
  --r: 20px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #121212;
    --surface: #1b2120;
    --muted-surface: #232a28;
    --text: #e3e9e6;
    --text-muted: #aab6b2;
    --line: #2a3230;
    --line-strong: #8a9994;
    --brand: #4db6ac;
    --on-brand: #00201b;
    --brand-soft: #11423e;
    --brand-ink: #a8f0e7;
    --accent: #fdba74;
    --on-accent: #3a1600;
    --warn-bg: #3a2a0c;
    --warn-ink: #ffd089;
    --success: #8ee0ae;
    --paid-bg: #12351f;
    --paid-ink: #8ee0ae;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 16px;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
}
h1,
h2,
h3 {
  text-wrap: balance;
  margin: 0;
  letter-spacing: -0.02em;
}
p {
  margin: 0;
}
a {
  color: inherit;
}
img,
svg {
  max-width: 100%;
}
ul,
ol {
  margin: 0;
}

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

/* Skip link, focus */
.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  background: var(--surface);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
}
.skip:focus {
  top: 16px;
}
a:focus-visible,
summary:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.night a:focus-visible,
.night summary:focus-visible,
.night .btn:focus-visible,
.site-footer a:focus-visible,
.demo-band a:focus-visible {
  outline-color: var(--night-accent);
}

/* Text pieces */
.eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}
.night .eyebrow,
.demo-band .eyebrow {
  color: var(--night-accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font: 700 15px/1.2 var(--font);
  text-decoration: none;
  text-align: center;
  border: 0;
  cursor: pointer;
}
.btn-accent {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--on-night);
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.btn-brand {
  background: var(--brand);
  color: var(--on-brand);
}

/* The night band: header plus the home hero or a page's title */
.night {
  position: relative;
  background: var(--night);
  color: var(--on-night);
}
.hero {
  background: var(--night) url('ourmunity-dusk.svg') center bottom / cover
    no-repeat;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 32, 27, 0.82) 0%,
    rgba(4, 32, 27, 0.55) 45%,
    rgba(4, 32, 27, 0.45) 70%,
    rgba(4, 32, 27, 0.9) 100%
  );
}
.night > * {
  position: relative;
}

.site-header {
  background: var(--night);
  color: var(--on-night);
}
/* On the home page the header lies over the Dusk art. */
.page-home .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background: transparent;
}
.page-home .hero {
  padding-top: 80px;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 18px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--on-night);
  min-height: 44px;
}
.logo img {
  width: 34px;
  height: 34px;
}
.main-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 600;
}
.main-nav a {
  text-decoration: none;
  color: var(--night-muted);
  padding-block: 12px;
}
.main-nav a:hover,
.main-nav a[aria-current='page'] {
  color: var(--on-night);
}
.main-nav a[aria-current='page'] {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}
.head-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.signin {
  color: var(--on-night);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  padding: 12px 6px;
}

/* The phone menu: a disclosure, no script */
.menu {
  display: none;
  position: relative;
}
.menu summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-weight: 700;
  font-size: 15px;
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu nav {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 5;
  min-width: 240px;
  background: var(--surface);
  color: var(--text);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(4, 32, 27, 0.35);
  padding: 8px;
}
.menu ul {
  list-style: none;
  padding: 0;
}
.menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}
.menu a:hover {
  background: var(--muted-surface);
}
.menu a[aria-current='page'] {
  color: var(--brand);
}

.hero-body {
  padding-block: 72px 260px;
}
.hero h1 {
  font-size: clamp(40px, 6.4vw, 72px);
  font-weight: 800;
  line-height: 1.02;
  max-width: 13ch;
  margin-top: 14px;
}
.lead {
  margin-top: 20px;
  font-size: clamp(17px, 2vw, 20px);
  color: var(--night-text);
  max-width: 56ch;
}
.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}
.chips li {
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(4, 32, 27, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--night-text);
}

/* An inner page's band */
.band-body {
  padding-block: 40px 64px;
}
.band h1 {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.06;
  max-width: 20ch;
  margin-top: 12px;
}

/* The example pass at the hero's edge */
.pass-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -200px;
  position: relative;
  z-index: 2;
}
.pass {
  width: 340px;
  max-width: 100%;
  margin: 0;
  background: var(--surface);
  color: var(--text);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(4, 32, 27, 0.35);
  overflow: hidden;
}
.pass-top {
  background: var(--brand);
  color: var(--on-brand);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
}
.pass-top small {
  font-weight: 600;
  font-size: 12px;
}
.pass-body {
  padding: 18px 20px 20px;
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 14px;
  align-items: center;
}
.pass-body dl {
  margin: 0;
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.pass-body dt {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.pass-body dd {
  margin: 0 0 4px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.qr {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  background: var(--muted-surface);
  color: var(--text);
  display: grid;
  place-items: center;
}
.pass figcaption {
  border-top: 1px solid var(--line);
  padding: 12px 20px;
  font-size: 13px;
  color: var(--success);
  font-weight: 700;
}

/* Sections */
section {
  padding-block: 88px;
}
section.tight-top {
  padding-top: 0;
}
.sec-head {
  display: grid;
  gap: 12px;
  max-width: 720px;
  margin-bottom: 40px;
}
.sec-head h2 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.1;
}
.sec-head p {
  color: var(--text-muted);
  font-size: 18px;
}

/* Cards: audiences on the home page, features on the inner pages */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
}
.cards.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.cards.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
}
a.card {
  text-decoration: none;
}
a.card:hover {
  border-color: var(--brand);
}
.card h3 {
  font-size: 19px;
  font-weight: 800;
}
.card p {
  color: var(--text-muted);
  font-size: 15px;
}
.card .more {
  margin-top: auto;
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
}
.card .label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

/* The product map */
.map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  list-style: none;
  padding: 0;
}
.map li {
  background: var(--surface);
  padding: 26px 24px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.map svg {
  width: 28px;
  height: 28px;
  color: var(--brand);
}
.map h3 {
  font-size: 17px;
  font-weight: 800;
}
.map p {
  font-size: 14.5px;
  color: var(--text-muted);
}

/* A soft brand band (developers, notes) */
.soft {
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.soft .eyebrow,
.soft .sec-head p {
  color: var(--brand-ink);
}
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.ticks {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 18px;
}
.ticks li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
}
.ticks b {
  display: block;
  font-size: 17px;
}
.ticks span.text {
  font-size: 15px;
}
.tick {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
}

.example {
  background: var(--surface);
  color: var(--text);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(4, 32, 27, 0.12);
  display: grid;
  gap: 14px;
  margin: 0;
}
.example h3 {
  font-size: 17px;
  font-weight: 800;
}
.example .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.example .row:last-of-type {
  border-bottom: 0;
}
.example figcaption {
  font-size: 14px;
  color: var(--text-muted);
}
.chip {
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.chip.paid {
  background: var(--paid-bg);
  color: var(--paid-ink);
}
.chip.due {
  background: var(--warn-bg);
  color: var(--warn-ink);
}

/* Trust points */
.points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  list-style: none;
  padding: 0;
}
.points.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.points li {
  border-top: 3px solid var(--brand);
  padding-top: 18px;
  display: grid;
  gap: 8px;
  align-content: start;
}
.points h3 {
  font-size: 17px;
  font-weight: 800;
}
.points p {
  font-size: 15px;
  color: var(--text-muted);
}

/* Plans */
.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  list-style: none;
  padding: 0;
}
.plans li {
  border-radius: var(--r);
  padding: 24px;
  display: grid;
  gap: 8px;
}
.plans .t {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.plans h3 {
  font-size: 22px;
  font-weight: 800;
}
.plans p {
  font-size: 14.5px;
}
.plans .p1 {
  background: var(--surface);
  border: 1px solid var(--line);
}
.plans .p1 .t {
  color: var(--brand);
}
.plans .p1 p {
  color: var(--text-muted);
}
.plans .p2 {
  background: var(--brand-soft);
  color: var(--brand-ink);
  padding-top: 40px;
}
.plans .p3 {
  background: var(--brand);
  color: var(--on-brand);
  padding-top: 56px;
}
.plans .p4 {
  background: var(--night);
  color: var(--on-night);
  padding-top: 72px;
}
.plans .p4 .t {
  color: var(--night-accent);
}
.plans .p4 p {
  color: var(--night-muted);
}
.note {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 15px;
  max-width: 72ch;
}

/* The roadmap, always labelled */
.coming {
  border: 2px dashed var(--line-strong);
  border-radius: var(--r);
  padding: 24px;
  display: grid;
  gap: 12px;
}
.coming h2 {
  font-size: 22px;
  font-weight: 800;
}
.coming ul {
  padding-left: 20px;
  display: grid;
  gap: 6px;
  color: var(--text-muted);
}
.coming p {
  color: var(--text-muted);
  font-size: 15px;
}
.spaced {
  margin-top: 40px;
}

/* Steps (the demo, joining) */
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 20px;
  counter-reset: s;
}
.steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  counter-increment: s;
}
.steps li::before {
  content: counter(s);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.steps b {
  display: block;
}

/* The demo band (home and the demo page) */
.demo-band {
  background: var(--night);
  color: var(--on-night);
}
.demo-band .sec-head p,
.demo-band .steps li {
  color: var(--night-text);
}
.demo-band .steps li::before {
  border-color: rgba(255, 255, 255, 0.45);
}
.demo-band .steps b {
  color: var(--on-night);
}
.split.demo {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}
.contact-card {
  background: var(--surface);
  color: var(--text);
  border-radius: 24px;
  padding: 28px;
  display: grid;
  gap: 16px;
}
.contact-card h3 {
  font-size: 22px;
  font-weight: 800;
}
.contact-card ul {
  padding-left: 20px;
  color: var(--text-muted);
  display: grid;
  gap: 4px;
}
.contact-card .fine {
  font-size: 14px;
  color: var(--text-muted);
}
.contact-card .btn {
  justify-self: start;
}
.contact-card a.plain {
  color: var(--brand);
  font-weight: 700;
}

/* The demo form (EH-S16-02): plain HTML, posted to the API; no script */
.demo-form .field {
  display: grid;
  gap: 6px;
}
.demo-form label {
  font-size: 14px;
  font-weight: 700;
}
.demo-form input,
.demo-form select,
.demo-form textarea {
  font: 500 16px var(--font);
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--page);
  color: var(--text);
  width: 100%;
}
.demo-form textarea {
  resize: vertical;
}
.demo-form input:focus-visible,
.demo-form select:focus-visible,
.demo-form textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.demo-form .check {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
}
.demo-form .check input {
  width: 24px;
  height: 24px;
  min-height: 24px;
  margin: 0;
  accent-color: var(--brand);
}
.demo-form .check label {
  font-weight: 600;
}
/* The honeypot: off-screen for people, still in the form for robots. */
.demo-form .hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* The hidden page-count image (EH-S16-03): loaded, never seen */
.count {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

/* Long text: privacy notice, terms */
.prose {
  max-width: 72ch;
  display: grid;
  gap: 16px;
}
.prose h2 {
  font-size: 24px;
  font-weight: 800;
  margin-top: 24px;
}
.prose ul {
  padding-left: 22px;
  display: grid;
  gap: 6px;
}
.prose a {
  color: var(--brand);
  font-weight: 600;
}
.draft {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--night);
  color: var(--night-muted);
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.site-footer .wrap:first-child {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  padding-block: 48px 24px;
}
.foot-brand {
  display: grid;
  gap: 8px;
  align-content: start;
}
.site-footer a {
  color: var(--night-muted);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--on-night);
  text-decoration: underline;
}
.site-footer .logo {
  color: var(--on-night);
}
.foot-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.foot-links h2 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-night);
  margin-bottom: 8px;
}
.foot-links ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 2px;
}
.foot-links li a {
  display: inline-block;
  padding-block: 8px;
}
.foot-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 20px 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Tablet */
@media (max-width: 960px) {
  .main-nav,
  .head-actions .signin {
    display: none;
  }
  .head-actions {
    margin-left: auto;
  }
  .menu {
    display: block;
  }
  .cards,
  .cards.four,
  .points,
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split,
  .split.demo {
    grid-template-columns: 1fr;
  }
  .plans li {
    padding-top: 24px !important;
  }
  .points.three {
    grid-template-columns: 1fr;
  }
  .site-footer .wrap:first-child {
    grid-template-columns: 1fr;
  }
}

/* Phone */
@media (max-width: 560px) {
  .site-header .wrap {
    gap: 12px;
  }
  .head-actions .btn {
    display: none;
  }
  .cards,
  .cards.four,
  .cards.two,
  .points,
  .plans,
  .map {
    grid-template-columns: 1fr;
  }
  .foot-links {
    grid-template-columns: 1fr;
  }
  .hero-body {
    padding-block: 48px 240px;
  }
  .pass-row {
    justify-content: center;
  }
  section {
    padding-block: 64px;
  }
  .contact-card {
    padding: 20px;
  }
}

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