/* Shared styles for secondary pages: About, Privacy, Terms, Coming Soon */

/* Reveal */
.pfade { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.pfade.in { opacity: 1; transform: none; }

/* ---------- Page hero ---------- */
.page-hero {
  position: relative;
  padding: clamp(72px, 10vw, 120px) var(--pad) clamp(40px, 5vw, 64px);
  overflow: hidden;
  background: var(--bg);
}
.page-hero::before {
  content: ""; position: absolute; inset: -10% -5%;
  background:
    radial-gradient(ellipse 50% 35% at 22% 30%, oklch(0.94 0.06 285 / 0.42), transparent 70%),
    radial-gradient(ellipse 40% 30% at 78% 80%, oklch(0.95 0.05 80 / 0.34), transparent 70%);
  filter: blur(40px);
  pointer-events: none; z-index: 0;
}
.page-hero > * { position: relative; z-index: 2; }
.ph-inner {
  max-width: 1080px; margin: 0 auto;
}
.crumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3);
  padding: 7px 12px; border: 1px solid var(--rule); border-radius: 999px;
  background: var(--bg-paper);
}
.crumb .dot { width: 6px; height: 6px; border-radius: 50%; background: oklch(0.7 0.15 145); box-shadow: 0 0 0 3px oklch(0.7 0.15 145 / 0.18); }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 6.4vw, 92px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 18px 0 20px;
  max-width: 18ch;
  text-wrap: balance;
}
.page-hero h1 em { font-style: italic; color: var(--accent); }
.page-hero .lede {
  font-size: 18px; line-height: 1.55; color: var(--ink-2);
  max-width: 64ch; margin: 0 0 28px;
}
.page-hero .meta {
  font-family: var(--mono); font-size: 12px; color: var(--ink-3);
  display: flex; flex-wrap: wrap; gap: 14px 28px;
  letter-spacing: 0.04em;
}
.page-hero .meta b { color: var(--ink); font-weight: 500; margin-right: 6px; }

/* ---------- Page body (shared prose) ---------- */
.page-body {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 72px) var(--pad) clamp(64px, 8vw, 120px);
}
.page-body h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: clamp(40px, 5vw, 64px) 0 14px;
  max-width: 22ch;
}
.page-body h2 em { font-style: italic; color: var(--accent); }
.page-body h3 {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 28px 0 6px;
}
.page-body p {
  font-size: 16.5px; line-height: 1.65; color: var(--ink-2);
  max-width: 70ch; margin: 0 0 14px;
}
.page-body p.quiet { color: var(--ink-3); font-size: 14.5px; }
.page-body a { color: var(--ink); text-decoration: underline; text-decoration-color: oklch(0.85 0.04 60); text-underline-offset: 3px; }
.page-body a:hover { text-decoration-color: var(--accent); }
.page-body ul, .page-body ol {
  margin: 8px 0 16px 0; padding-left: 22px;
  color: var(--ink-2); line-height: 1.65;
  max-width: 70ch;
}
.page-body li { margin: 6px 0; }
.page-body li::marker { color: var(--ink-3); }

/* ---------- About: stats strip ---------- */
.about-stat {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.about-stat .cell {
  border-left: 1px solid var(--rule);
  padding: 8px 0 8px 24px;
}
.about-stat .cell:first-child { border-left: none; padding-left: 0; }
.about-stat .num {
  font-family: var(--serif);
  font-size: clamp(40px, 4.6vw, 64px);
  letter-spacing: -0.025em; line-height: 1;
  color: var(--ink);
}
.about-stat .num em { font-style: italic; color: var(--accent); font-weight: 500; }
.about-stat .lbl {
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-top: 10px;
}

/* ---------- About: pillars ---------- */
.about-pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.about-pillars .pillar {
  background: var(--bg-paper);
  border: 1px solid var(--rule-2);
  border-radius: 16px;
  padding: 24px 22px 22px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.about-pillars .pillar:hover {
  transform: translateY(-3px);
  border-color: oklch(0.86 0.04 60);
  box-shadow: 0 14px 40px -22px oklch(0.4 0.1 60 / 0.18);
}
.about-pillars .pillar .ic {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--bg);
  border: 1px solid var(--rule-2);
  color: var(--ink);
  margin-bottom: 14px;
}
.about-pillars .pillar h3 {
  font-family: var(--serif);
  font-size: 19px; line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.about-pillars .pillar p {
  font-size: 14.5px; line-height: 1.55;
  color: var(--ink-2); margin: 0;
}

/* ---------- About: team grid ---------- */
.team-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.team-grid .member {
  background: var(--bg-paper);
  border: 1px solid var(--rule-2);
  border-radius: 14px;
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto auto auto;
  gap: 4px 16px;
  align-items: center;
  transition: transform .25s ease, border-color .25s ease;
}
.team-grid .member:hover {
  transform: translateY(-2px);
  border-color: oklch(0.86 0.04 60);
}
.team-grid .av {
  grid-row: 1 / 4;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, oklch(0.92 0.04 285), oklch(0.94 0.05 80));
  border: 1px solid var(--rule);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 18px; letter-spacing: -0.01em;
  color: var(--ink);
}
.team-grid .name {
  font-family: var(--serif); font-size: 18px; letter-spacing: -0.01em;
  color: var(--ink);
}
.team-grid .role {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--ink-3); text-transform: uppercase;
}
.team-grid .bio {
  grid-column: 2;
  font-size: 14px; line-height: 1.5; color: var(--ink-2);
  margin: 6px 0 0;
}

/* ---------- About: timeline ---------- */
.timeline {
  position: relative;
  border-left: 1px solid var(--rule-2);
  padding-left: 28px;
  margin-left: 4px;
}
.timeline .tl-row {
  position: relative;
  margin: 0 0 28px;
  padding-bottom: 4px;
}
.timeline .tl-row::before {
  content: "";
  position: absolute;
  left: -34px; top: 6px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg-paper);
  border: 2px solid var(--accent);
}
.timeline .yr {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.timeline h4 {
  font-family: var(--serif); font-size: 19px;
  letter-spacing: -0.01em; line-height: 1.3;
  color: var(--ink); margin: 0 0 6px;
}
.timeline p {
  font-size: 14.5px; line-height: 1.6;
  color: var(--ink-2); margin: 0;
  max-width: 64ch;
}

/* ---------- Legal: TOC + sections ---------- */
.legal-layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) var(--pad) clamp(64px, 8vw, 120px);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 90px;
  font-family: var(--mono);
  font-size: 12px;
  border-left: 1px solid var(--rule-2);
  padding-left: 16px;
}
.legal-toc .toc-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin: 0 0 12px;
}
.legal-toc ol {
  list-style: none; padding: 0; margin: 0;
  counter-reset: toc;
}
.legal-toc li {
  counter-increment: toc;
  margin: 4px 0;
}
.legal-toc a {
  color: var(--ink-2);
  text-decoration: none;
  display: flex;
  gap: 10px;
  padding: 6px 0;
  line-height: 1.4;
  transition: color .15s ease;
}
.legal-toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--ink-3);
  flex-shrink: 0;
}
.legal-toc a:hover { color: var(--ink); }
.legal-toc a.active { color: var(--accent); }

.legal-prose {
  max-width: 70ch;
}
.legal-prose .lp-meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-3);
  display: flex; gap: 24px; flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule-2);
  margin-bottom: 28px;
}
.legal-prose .lp-meta b { color: var(--ink); font-weight: 500; margin-right: 6px; }
.legal-prose section {
  scroll-margin-top: 90px;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule-2);
}
.legal-prose section:last-of-type { border-bottom: 0; }
.legal-prose section h2 {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  display: flex;
  gap: 16px;
  align-items: baseline;
  color: var(--ink);
}
.legal-prose section h2 .num {
  font-family: var(--mono); font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  font-weight: 400;
  flex-shrink: 0;
}
.legal-prose h3 {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: -0.005em;
  margin: 18px 0 6px;
  color: var(--ink);
}
.legal-prose p, .legal-prose li {
  font-size: 15px; line-height: 1.65;
  color: var(--ink-2);
}
.legal-prose p { margin: 0 0 12px; }
.legal-prose ul, .legal-prose ol { padding-left: 20px; margin: 8px 0 14px; }
.legal-prose li { margin: 4px 0; }
.legal-prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: oklch(0.85 0.04 60);
  text-underline-offset: 3px;
}
.legal-prose a:hover { text-decoration-color: var(--accent); }
.legal-prose .callout {
  background: var(--bg-paper);
  border: 1px solid var(--rule-2);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 12px 0 16px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.legal-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 14px 0;
}
.legal-prose th, .legal-prose td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule-2);
  vertical-align: top;
}
.legal-prose th {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-3); font-weight: 500;
}

/* ---------- Coming Soon ---------- */
.cs-page {
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.cs-left {
  padding: clamp(48px, 6vw, 80px) clamp(32px, 5vw, 80px);
  display: flex; flex-direction: column; justify-content: center;
  background: var(--bg);
  position: relative; overflow: hidden;
}
.cs-left::before {
  content: ""; position: absolute; inset: -20%;
  background: radial-gradient(ellipse 50% 40% at 30% 50%, oklch(0.95 0.05 80 / 0.3), transparent 70%);
  filter: blur(40px); pointer-events: none;
}
.cs-left > * { position: relative; z-index: 2; }
.cs-left .crumb { align-self: flex-start; }
.cs-left h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 18px 0 14px;
  max-width: 14ch;
  text-wrap: balance;
}
.cs-left h1 em { font-style: italic; color: var(--accent); }
.cs-left .topic-name {
  font-family: var(--serif); font-style: italic; color: var(--accent);
}
.cs-left p {
  font-size: 17px; line-height: 1.55; color: var(--ink-2);
  max-width: 50ch;
  margin: 0 0 24px;
}
.cs-form {
  display: flex; gap: 8px; max-width: 460px;
  margin: 8px 0 14px;
}
.cs-form input {
  flex: 1; min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--bg-paper);
  font-family: inherit; font-size: 14.5px;
  color: var(--ink);
  outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.cs-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px oklch(0.7 0.13 60 / 0.15);
}
.cs-form .btn { white-space: nowrap; }
.cs-success {
  display: none;
  font-family: var(--mono); font-size: 12.5px;
  color: oklch(0.5 0.13 145);
  margin-top: 8px;
}
.cs-success.show { display: block; }
.cs-quiet {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; color: var(--ink-3);
  text-transform: uppercase;
  margin-top: 28px;
}

.cs-right {
  background: linear-gradient(180deg, oklch(0.97 0.015 75), oklch(0.95 0.025 75));
  padding: clamp(40px, 5vw, 64px);
  display: flex; flex-direction: column; gap: 16px;
  border-left: 1px solid var(--rule-2);
  position: relative;
  overflow: hidden;
}
.cs-right .cs-label {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
}
.cs-card-stack {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 8px;
}
.cs-card {
  background: var(--bg);
  border: 1px solid var(--rule-2);
  border-radius: 12px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  align-items: center;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .3s ease, box-shadow .3s ease;
}
.cs-card:hover {
  transform: translateX(4px);
  border-color: oklch(0.86 0.04 60);
  box-shadow: 0 12px 30px -22px oklch(0.4 0.1 60 / 0.2);
}
.cs-card .ic {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--bg-paper);
  border: 1px solid var(--rule-2);
  display: grid; place-items: center;
  color: var(--ink);
}
.cs-card .t { font-family: var(--serif); font-size: 16px; letter-spacing: -0.005em; color: var(--ink); }
.cs-card .d { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.cs-card .arr {
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}

/* progress meter (imagined ETA) */
.cs-meter {
  margin-top: 18px;
  padding: 18px;
  background: var(--bg);
  border: 1px solid var(--rule-2);
  border-radius: 12px;
}
.cs-meter .label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-3);
  display: flex; justify-content: space-between;
}
.cs-meter .bar {
  margin-top: 10px;
  height: 6px; border-radius: 999px;
  background: var(--bg-paper);
  border: 1px solid var(--rule-2);
  overflow: hidden;
  position: relative;
}
.cs-meter .bar i {
  display: block; height: 100%;
  background: linear-gradient(90deg, oklch(0.7 0.13 60), oklch(0.78 0.1 75));
  width: 0%;
  animation: cs-fill 2.4s cubic-bezier(.2,.7,.2,1) .4s forwards;
}
@keyframes cs-fill { to { width: var(--cs-pct, 60%); } }
.cs-meter .row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 14px;
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3);
}
.cs-meter .row b { color: var(--ink); font-family: var(--serif); font-weight: 500; font-size: 14px; }
.cs-meter .row > div { display: flex; flex-direction: column; gap: 4px; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .about-stat { grid-template-columns: repeat(2, 1fr); }
  .about-stat .cell { border-left: none !important; padding-left: 0; }
  .about-pillars { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; gap: 24px; }
  .legal-toc { position: static; border-left: none; border-top: 1px solid var(--rule-2); padding: 12px 0 0; }
  .cs-page { grid-template-columns: 1fr; }
  .cs-right { border-left: none; border-top: 1px solid var(--rule-2); }
}
