/* The site's own pages (/communities, /about, /facts) in the app's look and the
   homepage's (version F, design/landing-revamp). Values come from the app:
   zero-social-app/docs/design-system.md and theme/depth.ts (the shipped "lifted" dark
   scheme), and components/community/CommunityTile.tsx for the community tile. The nav,
   wordmark, buttons and footer repeat /landing/c.css so these pages don't load the film. */
:root {
  --canvas: #0d0d11;
  --chrome: #16161b;
  --card: #1a1a1f;
  --tile: #141419;
  --floating: #26262d;
  --ink: #e8e8e8;
  --ink-bright: #ededef;
  --muted: #b3b3b3;
  --tertiary: #8c8c8c;
  --secondary: #5c5c5c;
  --edge: rgba(255, 255, 255, 0.07);
  --edge-strong: rgba(255, 255, 255, 0.14);
  --fill: rgba(255, 255, 255, 0.05);
  --tint: rgba(255, 255, 255, 0.1);
  --wash: linear-gradient(180deg, #ececec 6%, #8a8a8a 70%, #666 100%);
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --press: cubic-bezier(0.33, 1, 0.68, 1);
  --gutter: clamp(16px, 5vw, 40px);
}

* { box-sizing: border-box; }
html { background: var(--canvas); -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font-family: var(--sans); font-size: 15px; line-height: 22px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: rgba(232, 232, 232, 0.9); color: #121212; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }

/* ── wordmark and nav, as on the homepage ─────────────────────────────────── */
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.4px; color: var(--ink-bright); }
.wordmark img { width: 26px; height: 26px; }
.wordmark .wm { white-space: nowrap; }
.wordmark .washed { background: var(--wash); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.12em; }

.nav {
  position: fixed; top: calc(16px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); z-index: 30;
  display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 14px; border-radius: 9999px;
  background: rgba(22, 22, 27, 0.72); border: 1px solid var(--edge);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  white-space: nowrap;
}
.nav .wordmark { margin-right: 8px; padding-right: 14px; border-right: 1px solid var(--edge); font-size: 16px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 9px 14px; border-radius: 9999px; font-weight: 600; font-size: 14px; color: var(--tertiary); transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--ink); background: var(--fill); }
.nav-links a[aria-current] { color: var(--ink); }

/* ── buttons: one shape, three levels (the app's Button) ──────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 24px; border-radius: 9999px; border: 0;
  font: 700 15px/22px var(--sans); cursor: pointer; white-space: nowrap;
  transition: transform 0.14s var(--press), background 0.2s, box-shadow 0.3s;
}
.btn:active { transform: scale(0.985); }
.btn-primary { background: var(--ink); color: #121212; }
.btn-primary:hover { box-shadow: 0 0 0 6px rgba(232, 232, 232, 0.08); }
.btn-secondary { background: var(--tint); color: var(--ink); font-weight: 600; }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.14); }
.btn-md { height: 40px; padding: 0 16px; font-size: 14px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn .two { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.btn .two small { font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; }
.btn .two b { font-size: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ── page frame ───────────────────────────────────────────────────────────── */
.page { max-width: 1080px; margin: 0 auto; padding: calc(128px + env(safe-area-inset-top, 0px)) var(--gutter) 96px; }
.hero { max-width: 780px; }
.eyebrow { margin: 0 0 16px; font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tertiary); }
.hero h1 {
  margin: 0; font-weight: 300; font-size: clamp(38px, 5.6vw, 68px); line-height: 1.04;
  letter-spacing: -0.045em; color: var(--ink-bright); text-wrap: balance;
}
.wash { background: var(--wash); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0.08em 0 0.18em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lede { margin: 22px 0 0; max-width: 62ch; font-size: clamp(16px, 1.35vw, 18px); line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.meta { margin: 18px 0 0; font-size: 12px; line-height: 16px; color: var(--tertiary); }

.sec { margin-top: 80px; }
.sec-head { margin-bottom: 20px; max-width: 680px; }
.sec-head h2, .sec > h2 { margin: 0; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.sec-head p { margin: 8px 0 0; color: var(--tertiary); }
.sec > h2 { margin-bottom: 20px; max-width: 680px; }

/* ── cards and text ───────────────────────────────────────────────────────── */
.card { background: var(--card); border: 1px solid var(--edge); border-radius: 16px; padding: 24px; }
.prose { color: var(--muted); }
.prose > p, .prose > ul, .prose > ol { max-width: 72ch; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li { margin: 0 0 8px; padding-left: 4px; }
.prose li::marker { color: var(--secondary); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a, .faq a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(232, 232, 232, 0.35); text-underline-offset: 3px; }
.prose a:hover, .faq a:hover { text-decoration-color: var(--ink); }

/* A fact sheet: the table reads as the app's settings rows, label left, value right. */
.prose table { width: 100%; border-collapse: collapse; margin: 0; }
.prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.prose tr + tr td { border-top: 1px solid var(--edge); }
.prose td { padding: 16px 0; vertical-align: top; }
.prose td:first-child { width: 30%; padding-right: 24px; color: var(--ink); font-weight: 600; }

/* ── tiles: the app's Explore tile, two across on a phone ─────────────────── */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile {
  position: relative; isolation: isolate; overflow: hidden; height: 100%;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 18px 16px; border-radius: 20px; background: var(--tile); color: var(--ink);
  transition: transform 0.14s var(--press), background 0.2s;
}
/* The black corner shade and the 1px ring of theme/depth.ts (explorePressed): the
   tile reads pressed into the page, not raised off it. */
.tile::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 45%, rgba(0, 0, 0, 0) 78%); }
.tile::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px var(--edge); }
a.tile:hover { background: #18181e; }
a.tile:active { transform: scale(0.985); }
.tile-art { height: 60px; width: auto; max-width: 84px; object-fit: contain; object-position: left center; }
.tile-name { margin-top: 12px; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-line { margin-top: 4px; font-size: 12px; line-height: 16px; color: var(--tertiary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* A tile that carries a sentence rather than a label: the app's written-answer tile, 14/20 at 60% white. */
.tile p.tile-line { display: block; -webkit-line-clamp: unset; margin: 6px 0 0; font-size: 14px; line-height: 20px; color: rgba(232, 232, 232, 0.6); }
.tile-n { font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: 0.1em; color: var(--secondary); }

/* The app's hexagon avatar (design-system.md 5.1) at the tile icon's 60px height, with a
   letter for a community whose 3D icon isn't drawn yet and for a person without a photo. */
.hex {
  --h: 60px; flex: none; width: calc(var(--h) * 0.866); height: var(--h);
  display: flex; align-items: center; justify-content: center;
  -webkit-mask: var(--hex-shape) center / 100% 100% no-repeat; mask: var(--hex-shape) center / 100% 100% no-repeat;
  background: linear-gradient(135deg, #3b3b45 0%, #23232a 100%); color: var(--ink);
  font-size: calc(var(--h) * 0.37); font-weight: 600; letter-spacing: -0.02em;
}
.hex-lg { --h: 80px; }
.hex-sm { --h: 28px; font-size: 11px; }
:root { --hex-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 86.6 100' preserveAspectRatio='none'%3E%3Cpath d='M36.37 4Q43.3 0 50.23 4L79.67 21Q86.6 25 86.6 33L86.6 67Q86.6 75 79.67 79L50.23 96Q43.3 100 36.37 96L6.93 79Q0 75 0 67L0 33Q0 25 6.93 21Z'/%3E%3C/svg%3E"); }

/* Numbered steps as rows in one card, the app's list rows. */
.rows { margin: 0; padding: 4px 24px; list-style: none; }
.rows li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px; padding: 18px 0; }
.rows li + li { border-top: 1px solid var(--edge); }
.rows .tile-n { padding-top: 3px; }
.rows strong { display: block; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--ink); }
.rows p { margin: 4px 0 0; max-width: 64ch; color: var(--muted); }

/* ── /about: founders, timeline, quote, company panel ─────────────────────── */
/* "Founded by" under the hero copy: overlapping hexagons and the names. */
.byline { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 6px 16px 6px 8px; border-radius: 9999px; background: var(--fill); color: var(--muted); font-size: 14px; font-weight: 500; transition: background 0.2s, color 0.2s; }
.byline:hover { background: var(--tint); color: var(--ink); }
.hexes { display: flex; }
.hexes .hex + .hex { margin-left: -6px; }

/* A founder: the app's raised card, identity on top, then what they've done. */
.founders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.founder { position: relative; padding: 28px; border-radius: 20px; background: var(--card); border: 1px solid var(--edge); }
.founder-id { display: flex; align-items: center; gap: 18px; }
.founder-id div { flex: 1; min-width: 0; }
.founder-id h3 { margin: 0; font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-bright); }
.founder-id p { margin: 2px 0 0; color: var(--tertiary); }
.person-link { flex: none; align-self: flex-start; display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 9999px; background: var(--tint); color: var(--ink); font-size: 12px; line-height: 16px; font-weight: 600; transition: background 0.2s; }
.person-link:hover { background: rgba(255, 255, 255, 0.14); }
.founder-summary { margin: 22px 0 0; font-size: 16px; line-height: 26px; color: var(--muted); }
.founder-facts { margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.founder-facts div { padding: 10px 14px; border-radius: 12px; background: var(--fill); }
.founder-facts dt { font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--secondary); }
.founder-facts dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); }
.founder-list { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--edge); }
.founder-list .eyebrow { margin-bottom: 10px; }
.founder-list ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.founder-list strong { display: block; font-weight: 600; color: var(--ink); }
.founder-list span { font-size: 13px; color: var(--tertiary); }

/* Timeline: across on wide screens, down on a phone. */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.timeline::before { content: ''; position: absolute; top: 7px; left: 8px; right: 8px; height: 1px; background: linear-gradient(90deg, var(--edge-strong), var(--edge-strong) 70%, transparent); }
.timeline li { position: relative; padding-top: 32px; }
.t-dot { position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--canvas); border: 2px solid var(--ink); }
.timeline li:last-child .t-dot { border-color: var(--secondary); border-style: dashed; }
.t-date { margin: 0 0 6px; font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tertiary); }
.timeline strong { display: block; font-size: 17px; line-height: 24px; font-weight: 600; color: var(--ink); }
.timeline p:last-child { margin: 6px 0 0; color: var(--muted); }

/* The founder's words, large, with who said them. */
.quote { position: relative; margin: 0; padding: 40px 40px 32px; overflow: hidden; }
.q-mark { position: absolute; top: -18px; left: 22px; font-size: 140px; line-height: 1; font-weight: 300; color: rgba(255, 255, 255, 0.06); pointer-events: none; }
.quote blockquote { position: relative; margin: 0; }
.quote blockquote p { margin: 0 0 18px; max-width: 60ch; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.55; font-weight: 300; letter-spacing: -0.01em; color: var(--ink-bright); }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.quote figcaption strong { display: block; font-size: 15px; color: var(--ink); }
.quote figcaption span span { font-size: 13px; color: var(--tertiary); }

/* Text beside the company's facts. */
.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.facts-panel { margin: 0; padding: 4px 24px; }
.facts-panel div { padding: 14px 0; }
.facts-panel div + div { border-top: 1px solid var(--edge); }
.facts-panel dt { font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--secondary); }
.facts-panel dd { margin: 4px 0 0; color: var(--ink); }
.facts-panel a { text-decoration: underline; text-decoration-color: rgba(232, 232, 232, 0.35); text-underline-offset: 3px; }

.links { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── filter pills (the Communities page's Top · Interest · Identity · Location) ── */
.pills { display: none; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.js .pills { display: flex; }
.pill { height: 40px; padding: 0 16px; border-radius: 9999px; border: 0; background: var(--fill); color: var(--muted); font: 600 14px/22px var(--sans); cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.14s var(--press); }
.pill:hover { color: var(--ink); background: var(--tint); }
.pill:active { transform: scale(0.985); }
.pill[aria-pressed="true"] { background: var(--ink); color: #121212; }
.tiles li[hidden] { display: none; }

/* ── FAQ: rows in one card ────────────────────────────────────────────────── */
.faq { padding: 4px 24px; }
.faq details + details { border-top: 1px solid var(--edge); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 8px; height: 8px; margin-right: 4px; border-right: 1.5px solid var(--tertiary); border-bottom: 1.5px solid var(--tertiary); transform: rotate(45deg) translateY(-2px); transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq details p { margin: -6px 0 18px; max-width: 72ch; color: var(--muted); }

/* ── closing call to action ───────────────────────────────────────────────── */
.end { margin-top: 80px; padding: 40px 24px; border-radius: 26px; text-align: center; background: var(--card); border: 1px solid var(--edge); }
.end h2 { margin: 0 auto; max-width: 22ch; font-weight: 300; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -0.04em; color: var(--ink-bright); text-wrap: balance; }
.end p { margin: 14px auto 0; max-width: 52ch; color: var(--muted); }
.end .actions { justify-content: center; }

/* ── footer, as on the homepage ───────────────────────────────────────────── */
.foot { padding: 36px var(--gutter) 40px; border-top: 0.5px solid var(--edge); }
.foot-in { max-width: 1080px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; font-weight: 500; color: var(--tertiary); }
.foot nav a:hover { color: var(--ink); }
.foot small { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--secondary); font-size: 12px; }

@media (prefers-reduced-motion: reduce) {
  .btn, .tile, .pill { transition: none; }
}

@media (max-width: 1023px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 80px; }
  .nav { top: calc(10px + env(safe-area-inset-top, 0px)); left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); transform: none; justify-content: space-between; }
  .nav-links { display: none; }
  .page { padding-top: calc(104px + env(safe-area-inset-top, 0px)); padding-bottom: 72px; }
  .sec { margin-top: 56px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles.two, .tiles.three { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .founders, .split { grid-template-columns: 1fr; }
  .founder { padding: 22px 20px; }
  .founder-id h3 { font-size: 20px; line-height: 28px; }
  .timeline { grid-template-columns: 1fr; gap: 28px; padding-left: 32px; }
  .timeline::before { top: 8px; bottom: 8px; left: 7px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--edge-strong), var(--edge-strong) 70%, transparent); }
  .timeline li { padding-top: 0; }
  .t-dot { left: -32px; }
  .quote { padding: 32px 22px 24px; }
  .facts-panel { padding: 4px 20px; }
  .faq, .rows { padding: 4px 20px; }
  .prose td { display: block; width: auto; padding: 0; }
  .prose td:first-child { width: auto; padding: 16px 0 4px; }
  .prose td + td { padding-bottom: 16px; }
  .prose tr + tr td { border-top: 0; }
  .prose tr + tr td:first-child { border-top: 1px solid var(--edge); }
  .actions .btn { flex: 1 1 200px; }
  /* One row that scrolls sideways, as the app's pill rows do, edge to edge. */
  .js .pills { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 var(--gutter); scrollbar-width: none; }
  .pills::-webkit-scrollbar { display: none; }
  .pill { flex: none; }
  .end { margin-top: 56px; padding: 32px 20px; }
}
