/* Inner pages. Same tokens as the home page: Instrument Sans 500, #181818 on white, 50% ink for body copy. */
:root {
  --ink: #181818;
  --ink-50: rgba(24, 24, 24, 0.5);
  --rule: rgba(24, 24, 24, 0.2);
  --paper: #ffffff;
  --panel: #f9f9f9;
  --gutter: 32px;
}
html { background: var(--paper); }
body.pg {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Instrument Sans", "Instrument Sans Fallback", Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.03em;
  -webkit-font-smoothing: antialiased;
}
.pg a { color: inherit; }
.pg main { display: block; }
.pg .wrap { max-width: 2000px; margin: 0 auto; padding: 0 var(--gutter); box-sizing: border-box; }

/* Type */
.pg .display { font-size: 64px; line-height: 1; letter-spacing: -0.016em; font-weight: 500; margin: 0; max-width: 900px; text-wrap: balance; }
.pg .h3 { font-size: 32px; line-height: 1.2; letter-spacing: -0.03em; font-weight: 500; margin: 0; }
.pg .body { color: var(--ink-50); max-width: 440px; margin: 0; }
.pg .body + .body { margin-top: 12px; }
.pg .label { font-size: 12px; line-height: 1.3; letter-spacing: -0.03em; }
.pg .muted { color: var(--ink-50); }

/* Hero */
.pg-hero { padding: 117px 0 96px; }
.pg-hero .label { display: block; margin-bottom: 24px; color: var(--ink-50); }
.pg-hero .lede { margin-top: 32px; }
.pg-hero .actions { margin-top: 48px; display: flex; gap: 32px; flex-wrap: wrap; }

/* Underlined text link, as on the home page */
.pg .tlink { display: inline-block; text-decoration: none; padding-bottom: 14px; border-bottom: 1px solid currentColor; }
.pg .tlink:hover { opacity: 0.6; }

/* Sections: centered label over a rule, then the intro */
.pg-sec { padding: 64px 0; }
.pg-sec .sec-label { text-align: center; padding: 14px 0 12px; border-bottom: 1px solid var(--rule); margin-bottom: 32px; }
.pg-sec .intro .body { margin-top: 32px; }
.pg-sec.dark { background: var(--ink); color: #fff; }
.pg-sec.dark .body, .pg-sec.dark .muted { color: rgba(255, 255, 255, 0.5); }
.pg-sec.dark .sec-label { border-color: rgba(255, 255, 255, 0.25); }
.pg-sec.dark .row, .pg-sec.dark .card, .pg-sec.dark .faq details, .pg-sec.dark .stat, .pg-sec.dark .row ul li { border-color: rgba(255, 255, 255, 0.25); }
.pg-sec.dark .stat span, .pg-sec.dark .note, .pg-sec.dark .row ul, .pg-sec.dark .card .num { color: rgba(255, 255, 255, 0.5); }
.pg-sec.center { text-align: center; }
.pg-sec.center .display, .pg-sec.center .body { margin-left: auto; margin-right: auto; }

/* Two columns: intro left, ruled rows right (the home page's card list) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 64px; }
.split > .side { color: var(--ink-50); max-width: 440px; }
.rows { display: grid; }
.row { display: block; border-top: 1px solid var(--rule); padding: 16px 0 40px; text-decoration: none; }
.row .h3 { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.row .meta { font-size: 16px; color: var(--ink-50); letter-spacing: -0.03em; }
.row .body { margin-top: 16px; }
.row ul { margin: 16px 0 0; padding: 0; list-style: none; color: var(--ink-50); max-width: 520px; }
.row ul li { padding: 6px 0; border-bottom: 1px solid var(--rule); }
.row ul li:last-child { border-bottom: 0; }
.row .tlink { margin-top: 24px; }
.tag { display: inline-block; font-size: 12px; line-height: 1; padding: 6px 8px; background: var(--ink); color: #fff; letter-spacing: -0.02em; }
.dark .tag { background: #fff; color: var(--ink); }
a.row:hover .h3 { opacity: 0.6; }

/* Card grids */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 64px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card { border-top: 1px solid var(--rule); padding-top: 16px; }
.card .num { display: block; margin-bottom: 40px; color: var(--ink-50); }
.card .body { margin-top: 16px; }

/* Stats (founder record) */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 64px; }
.stat { border-top: 1px solid var(--rule); padding-top: 16px; }
.stat b { display: block; font-weight: 500; font-size: 64px; line-height: 1; letter-spacing: -0.016em; }
.stat span { display: block; margin-top: 16px; color: var(--ink-50); }
.note { margin-top: 32px; font-size: 12px; color: var(--ink-50); max-width: 640px; }

/* Portrait placeholder */
.monogram { aspect-ratio: 4 / 5; background: var(--panel); display: grid; place-items: center; font-size: 120px; letter-spacing: -0.04em; color: var(--ink-50); max-width: 440px; }

/* FAQ */
.faq { margin-top: 64px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-size: 24px; line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 18px; font-size: 24px; }
.faq details[open] summary::after { content: "–"; }
.faq details .body { max-width: 640px; padding-bottom: 24px; }

/* Form */
.form { display: grid; gap: 32px; max-width: 640px; }
.field label, .field legend { display: block; color: var(--ink-50); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; box-sizing: border-box; font: inherit; color: var(--ink); letter-spacing: inherit;
  background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: 8px 0 12px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-width: 2px; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.option span { display: inline-block; border: 1px solid var(--rule); padding: 10px 14px; cursor: pointer; }
.option input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.option input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.btn { font: inherit; letter-spacing: inherit; background: var(--ink); color: #fff; border: 0; padding: 16px 24px; cursor: pointer; justify-self: start; text-decoration: none; display: inline-block; }
.btn:hover { opacity: 0.85; }
.form-status { color: var(--ink-50); min-height: 1.3em; }
.hp { position: absolute; left: -9999px; }

/* Menu panel (static pages): mirrors the home page's dialog */
.pg-menu { position: fixed; inset: 0; z-index: 100; display: none; }
.pg-menu.open { display: block; }
.pg-menu .scrim { position: absolute; inset: 0; background: transparent; }
.pg-menu .panel { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(502px, 100%); max-height: 100%; overflow: auto; background: var(--panel); padding: 30px 16px 32px; box-sizing: border-box; }
.pg-menu .close { display: block; margin: 0 auto 30px; font: inherit; letter-spacing: inherit; background: none; border: 0; color: var(--ink); cursor: pointer; }
.pg-menu .big a { display: block; font-size: 32px; line-height: 1.2; padding: 10px 0 12px; border-top: 1px solid var(--rule); text-decoration: none; }
.pg-menu .big a:last-child { border-bottom: 1px solid var(--rule); }
.pg-menu .small { margin-top: 64px; display: grid; gap: 12px; }
.pg-menu .small a { text-decoration: none; }
.pg-menu .contact { margin-top: 64px; display: block; text-decoration: none; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 16px 0; }
.pg-menu .contact small { display: block; font-size: 12px; color: var(--ink-50); margin-top: 4px; }
/* Legal pages: one readable column of long-form text, with ruled tables */
.legal article { max-width: 760px; color: var(--ink-50); line-height: 1.5; letter-spacing: -0.01em; }
.legal h2 { color: var(--ink); font-size: 32px; line-height: 1.2; letter-spacing: -0.03em; font-weight: 500; margin: 64px 0 20px; padding-top: 14px; border-top: 1px solid var(--rule); }
.legal article > h2:first-child { margin-top: 0; }
.legal h3 { color: var(--ink); font-size: 20px; line-height: 1.3; font-weight: 500; margin: 32px 0 12px; }
.legal p, .legal ul, .legal ol { margin: 0 0 16px; }
.legal ul, .legal ol { padding-left: 20px; }
.legal li + li { margin-top: 8px; }
.legal strong { color: var(--ink); font-weight: 500; }
.legal a { color: var(--ink); text-underline-offset: 3px; }
.legal .table { overflow-x: auto; margin: 24px 0 32px; }
.legal table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-top: 1px solid var(--rule); }
.legal th { color: var(--ink); font-weight: 500; }
.legal tr:last-child td { border-bottom: 1px solid var(--rule); }

.pg a:focus-visible, .pg button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

@media (max-width: 900px) {
  :root { --gutter: 16px; }
  .pg .display { font-size: 40px; }
  .stat b { font-size: 40px; }
  .split, .cards, .cards.two, .cards.four, .stats { grid-template-columns: 1fr; }
  .pg-hero { padding-bottom: 64px; }
  .faq summary { font-size: 20px; }
}
@media (prefers-reduced-motion: no-preference) {
  .pg-hero .display, .pg-hero .lede { animation: pg-rise 700ms cubic-bezier(.2, 0, 0, 1) both; }
  .pg-hero .lede { animation-delay: 120ms; }
  @keyframes pg-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}
