/* Public Oculus — holding page styles
 * Layered on tokens.css (brand kit v1.1). Dark canvas only — no light theme in v1.
 * Fonts are self-hosted latin subsets from the brand kit vendor bundle;
 * @font-face rules below are trimmed from vendor/fonts.css (latin only).
 */

/* ─── Fonts (self-hosted, latin subsets) ───────────────── */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900; /* variable */
  font-display: swap;
  src: url("fonts/Geist-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900; /* variable */
  font-display: swap;
  src: url("fonts/GeistMono-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/InstrumentSerif-Italic-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ─── Base ─────────────────────────────────────────────── */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(20px, 4vw, 48px);
}

.frame {
  width: 100%;
  max-width: 1120px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Two-tier width (Option C): a 760px reading measure inside a 1120px shell.
 * Only the evidence band (.phones) is allowed to use the full width. */
.site-header,
main > h1,
.subhead,
.pillars,
.app-preview > .chip,
.app-preview > h2,
.app-preview-intro,
.prose-section,
.site-footer {
  max-width: 760px;
}

/* ─── Header: mark + text wordmark ─────────────────────── */

.site-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.site-header img {
  width: 40px;
  height: 40px;
  display: block;
}

.wordmark {
  font-family: var(--font-ui);
  font-size: 19px;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
  color: var(--fg-primary);
}

/* ─── Main ─────────────────────────────────────────────── */

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-12) 0;
}

h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: var(--fw-regular);
  font-size: clamp(46px, 12vw, var(--fs-hero));
  line-height: var(--lh-hero);
  letter-spacing: -0.01em;
  color: var(--fg-primary);
}

.money {
  color: var(--po-green);
}

.subhead {
  margin-top: var(--space-6);
  max-width: 58ch;
  font-size: clamp(16px, 1.6vw, 17px);
  line-height: 1.65;
  color: var(--fg-secondary);
}

/* ─── Reassurance bullets ──────────────────────────────── */

.pillars {
  list-style: none;
  margin-top: var(--space-10);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.pillar {
  border-top: 1px solid var(--border-default);
  padding-top: var(--space-4);
}

.pillar h2 {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-semibold);
  color: var(--fg-primary);
}

.pillar p {
  margin-top: var(--space-2);
  font-size: var(--fs-body-sm);
  line-height: 1.5;
  color: var(--fg-secondary);
}

/* ─── App preview ──────────────────────────────────────── */
/* Four phone-frame figures. Numerals inside a figcaption, if any are ever
 * added, must be wrapped in <span class="num"> (→ --font-num via tokens.css). */

.app-preview {
  max-width: 960px;
  margin-top: var(--space-12);
  padding-top: var(--space-10);
  border-top: 1px solid var(--border-subtle);
}

.chip {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--bg-surface-2);
  border: 1px solid var(--border-default);
  border-radius: var(--r-pill);
  font-size: var(--fs-overline);
  line-height: var(--lh-overline);
  letter-spacing: 0.02em;
  font-weight: var(--fw-medium);
  color: var(--fg-secondary);
}

.app-preview h2,
.prose-section h2 {
  font-family: var(--font-ui);
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--tr-h2);
  font-weight: var(--fw-semibold);
  color: var(--fg-primary);
}

/* Only a heading that follows a stage chip carries the chip gap. */
.app-preview h2,
.prose-section > .chip + h2 {
  margin-top: var(--space-4);
}

.app-preview-intro {
  margin-top: var(--space-3);
  max-width: 58ch;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--fg-secondary);
}

.phones {
  margin-top: var(--space-8);
  max-width: 960px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8) var(--space-6);
}

.phone {
  min-width: 0;
  margin: 0;
}

.phone-frame {
  width: 100%;
  padding: var(--space-2);
  background: var(--bg-surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sheet);
  box-shadow: var(--shadow-inset);
  overflow: hidden;
}

/* Device cue — a speaker-slot pill drawn in CSS. No imagery, no unicode. */
.phone-frame::before {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  margin: 2px auto 6px;
  border-radius: var(--r-pill);
  background: var(--bg-canvas);
}

.phone-frame picture {
  display: block;
}

/* The ratio lives on the image, not on the padded frame — a padded/bordered
 * box sizes its BORDER box, which silently crops the screenshot. --fy crops
 * past each capture's flat safe-area band: --fy = deadTopPt / (844 - 660). */
.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 390 / 660;
  object-fit: cover;
  object-position: 50% var(--fy, 0%);
  border-radius: var(--r-card);
  background: var(--bg-canvas);
}

.phone figcaption {
  margin-top: var(--space-3);
  font-size: var(--fs-body-sm);
  line-height: 1.5;
  color: var(--fg-secondary);
}


@media (max-width: 560px) {
  .phones {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .phone {
    max-width: 300px;
    margin-inline: auto;
  }
}

/* ─── Partner/investor prose layer ─────────────────────── */
/* Three reading-column sections after the app preview. Same section rhythm as
 * .app-preview so the page reads as one system. Grayscale only — the money
 * green is reserved for the headline's "Paid" and for UI points figures. */

.prose-section {
  margin-top: var(--space-12);
  padding-top: var(--space-10);
  border-top: 1px solid var(--border-subtle);
}

.prose-section p {
  margin-top: var(--space-4);
  max-width: 58ch;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--fg-secondary);
}

/* Two-row status ledger — dt/dd, not bullets. */
.ledger {
  margin-top: var(--space-4);
  max-width: calc(58ch + 7rem + var(--space-4));
  display: grid;
  grid-template-columns: 7rem 1fr;
  column-gap: var(--space-4);
  row-gap: var(--space-4);
  font-size: var(--fs-body);
  line-height: 1.6;
}

.ledger dt {
  font-weight: var(--fw-semibold);
  color: var(--fg-primary);
}

.ledger dd {
  color: var(--fg-secondary);
}

/* The page's promise — body size, primary ink. */
.ledger-close {
  color: var(--fg-primary);
}

/* ─── CTA (staged) ─────────────────────────────────────── */
/* Live CSS for markup that is currently commented out in index.html, so
 * uncommenting the notify CTA or "The company" needs no stylesheet change. */

.prose-section .cta-row {
  margin-top: var(--space-6);
}

.cta {
  display: inline-block;
  padding: var(--space-3) var(--space-5);
  background: var(--bg-surface-2);
  color: var(--fg-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-button);
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-medium);
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out);
}

.cta:hover {
  background: var(--bg-surface-3);
}

.cta:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

@media (max-width: 560px) {
  /* Ledger stacks: dt over dd, with the row break carried by dd + dt. */
  .ledger {
    grid-template-columns: 1fr;
    row-gap: var(--space-1);
  }

  .ledger dd + dt {
    margin-top: var(--space-3);
  }

  .cta {
    display: block;
    width: 100%;
    text-align: center;
  }
}

/* ─── Footer ───────────────────────────────────────────── */

.site-footer {
  margin-top: var(--space-16);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-default);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-body-sm);
  color: var(--fg-secondary);
}

/* Brand furniture: the mark is never shown without the wordmark. */
.footer-lockup {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-lockup img {
  width: 20px;
  height: 20px;
  display: block;
}

.footer-lockup span {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
  color: var(--fg-primary);
}

.site-footer .num {
  font-size: inherit;
}

/* ─── Mobile ───────────────────────────────────────────── */

@media (max-width: 720px) {
  .pillars {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .pillar {
    padding-top: var(--space-4);
  }
}
