/* ============================================================
   GG33 — Shared chrome for trust pages (about, results).
   Uses home.css tokens (Satoshi / General Sans, #050302, #ff6b14).
   ============================================================ */

.page-body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient background (matches homepage) */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 50% -5%, rgba(255, 107, 20, 0.18), transparent 58%),
    linear-gradient(180deg, rgba(5, 3, 2, 0.4), var(--bg) 760px),
    var(--bg);
}
.page-bg::before,
.page-bg::after {
  content: "";
  position: absolute;
  width: 60vw; height: 60vw; max-width: 520px; max-height: 520px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  animation: pageOrb 15s ease-in-out infinite;
}
.page-bg::before { top: -14%; left: -18%; background: radial-gradient(circle, rgba(255, 107, 20, 0.5), transparent 70%); }
.page-bg::after  { top: 40%; right: -22%; background: radial-gradient(circle, rgba(255, 138, 44, 0.3), transparent 70%); animation-delay: -7s; }
@keyframes pageOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, 7%) scale(1.12); }
}

/* Top bar */
.page-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 2.4rem 1fr 2.4rem;
  align-items: center;
  gap: 0.6rem;
  padding: max(0.8rem, env(safe-area-inset-top)) 1.1rem 0.8rem;
  background: rgba(5, 3, 2, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(247, 244, 236, 0.05);
}
.page-back {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink);
  background: rgba(247, 244, 236, 0.04); text-decoration: none;
}
.page-brand { display: inline-flex; justify-content: center; }
.page-brand img { height: 1.55rem; width: auto; display: block; }

/* Layout */
.page-main {
  position: relative;
  z-index: 1;
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 1.15rem calc(3.5rem + env(safe-area-inset-bottom));
}

/* Hero */
.page-hero { text-align: center; padding: 3rem 0 1.4rem; }
.page-kicker {
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--orange-2); margin: 0 0 0.9rem;
}
.page-hero h1 {
  font-family: var(--display);
  margin: 0 auto;
  max-width: 18ch;
  font-size: clamp(2.2rem, 9vw, 3.2rem);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.035em;
}
.hl { color: var(--orange-2); }
.page-lead {
  font-size: 1.02rem; line-height: 1.55; color: var(--soft);
  margin: 1.1rem auto 0; max-width: 42ch;
}
.page-portrait {
  width: 8.5rem; height: 8.5rem; border-radius: 50%;
  object-fit: cover; object-position: center top;
  margin: 0 auto 1.4rem; display: block;
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}

/* Sections (centered column, Apple-style) */
.page-section { padding: 1.8rem 0; border-top: 1px solid rgba(247, 244, 236, 0.08); text-align: center; }
.page-section.no-rule { border-top: 0; }
.page-h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 6vw, 2rem); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 1rem;
}
.page-section p { font-size: 1rem; line-height: 1.6; color: var(--soft); margin: 0 auto 1rem; max-width: 46ch; }
.page-section p:last-child { margin-bottom: 0; }
.page-section strong { color: var(--ink); font-weight: 600; }
.page-section a { color: var(--orange-2); text-decoration: none; border-bottom: 1px solid rgba(255, 138, 44, 0.4); }
.page-section a:hover { border-bottom-color: var(--orange-2); }

/* Stat grid — naked centered numbers (matches the homepage hero stats) */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1.2rem; margin: 1.6rem 0 0; }
.stat { padding: 0; text-align: center; }
.stat strong { display: block; font-family: var(--display); font-size: 2.15rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.stat span { display: block; margin-top: 0.45rem; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); }

/* Proof cards (results) */
.proof-grid { display: flex; flex-direction: column; gap: 0.85rem; margin: 1.3rem 0 0; }
.proof {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(247, 244, 236, 0.09);
  background: linear-gradient(180deg, rgba(247, 244, 236, 0.05), rgba(247, 244, 236, 0.012));
  padding: 1.2rem 1.25rem 1.2rem 1.45rem;
  overflow: hidden;
  text-align: left;
}
.proof::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(180deg, #f6d572, #c79a36); }
.proof-cat { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-2); }
.proof h3 { font-family: var(--display); font-size: 1.15rem; font-weight: 700; margin: 0.35rem 0 0.4rem; letter-spacing: -0.01em; }
.proof p { font-size: 0.92rem; line-height: 1.5; color: var(--soft); margin: 0; }
.proof a { color: var(--orange-2); text-decoration: none; border-bottom: 1px solid rgba(255, 138, 44, 0.4); }

/* Receipts carousel (real screenshots, natural orientation, no AI backfill) */
.receipt-rail {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin: 1.4rem -1.15rem 0;
  padding: 0.4rem 1.15rem 0.5rem;
  scrollbar-width: none;
  text-align: left;
}
.receipt-rail::-webkit-scrollbar { display: none; }
.receipt-card {
  flex: 0 0 auto;
  width: 14.5rem;
  scroll-snap-align: center;
  border-radius: 16px;
  border: 1px solid rgba(247, 244, 236, 0.1);
  background: #0b0705;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3);
}
.receipt-shot {
  width: 100%;
  height: 18rem;
  object-fit: contain;
  background: #060403;
  display: block;
}
.receipt-meta { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; padding: 0.72rem 0.85rem 0.9rem; }
.receipt-amt { font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; color: var(--green); }
.receipt-label { font-size: 0.8rem; color: var(--muted); }
.receipt-dots { display: flex; gap: 0.4rem; justify-content: center; padding: 1rem 0 0; }
.receipt-dot { width: 0.4rem; height: 0.4rem; border-radius: 999px; border: 0; padding: 0; cursor: pointer; background: rgba(247, 244, 236, 0.22); transition: width 240ms var(--ease), background 240ms var(--ease); }
.receipt-dot.active { width: 1.6rem; background: rgba(255, 138, 44, 0.95); }

/* Note / compliance */
.page-note { font-size: 0.8rem; line-height: 1.5; color: var(--muted); margin: 1.6rem auto 0; max-width: 52ch; padding-top: 1.2rem; border-top: 1px solid rgba(247, 244, 236, 0.08); }

/* Byline */
.page-byline { margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid rgba(247, 244, 236, 0.08); text-align: center; }
.page-byline p { font-size: 0.82rem; color: var(--muted); margin: 0; }
.page-byline strong { color: var(--soft); font-weight: 600; }

/* CTA */
.page-cta-row { display: flex; flex-direction: column; gap: 0.7rem; margin: 1.9rem auto 0; max-width: 24rem; }
.page-cta { display: flex; align-items: center; justify-content: center; min-height: 3.3rem; border-radius: 999px; font-family: var(--sans); font-size: 0.96rem; font-weight: 600; text-decoration: none; transition: transform 150ms var(--ease); }
.page-cta:active { transform: translateY(1px); }
.page-cta-solid { color: #160a04; background: linear-gradient(135deg, #ff8a2c, #df520d); box-shadow: 0 14px 36px rgba(255, 107, 20, 0.3); }
.page-cta-ghost { color: var(--ink); border: 1px solid var(--line-strong); background: rgba(247, 244, 236, 0.04); }

@media (min-width: 680px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
@media (prefers-reduced-motion: reduce) { .page-bg::before, .page-bg::after { animation: none; } }

/* Desktop-only nav links in the top bar (markup is inert on phones) */
.lp-desk-nav { display: none; }

/* ============================================================
   Desktop layer (min-width: 761px) — mobile rendering untouched.
   Real site chrome, wider canvas, scaled type; centered trust
   prose keeps its rhythm at a readable measure.
   ============================================================ */
@media (min-width: 761px) {
  .page-top {
    grid-template-columns: auto auto 1fr;
    gap: 1.1rem;
    min-height: 4.3rem;
    padding: 0.75rem max(1.4rem, calc((100% - 77.5rem) / 2));
    background: rgba(5, 3, 2, 0.62);
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
  }
  .page-top > span[aria-hidden] { display: none; }
  .page-back { width: 2.6rem; height: 2.6rem; transition: border-color 160ms var(--ease), background 160ms var(--ease), transform 160ms var(--ease); }
  .page-back:hover { border-color: rgba(255, 138, 44, 0.55); background: rgba(255, 107, 20, 0.1); transform: translateX(-2px); }
  .page-brand { justify-content: flex-start; }
  .page-brand img { height: 1.8rem; }

  .lp-desk-nav { display: flex; align-items: center; justify-content: flex-end; justify-self: end; gap: clamp(0.2rem, 1.2vw, 0.65rem); }
  .lp-desk-nav a { padding: 0.52rem 0.85rem; border-radius: 999px; font-size: 0.86rem; font-weight: 600; letter-spacing: 0.01em; color: var(--soft); text-decoration: none; transition: color 150ms var(--ease), background 150ms var(--ease); white-space: nowrap; border-bottom: 0; }
  .lp-desk-nav a:hover { color: var(--ink); background: rgba(247, 244, 236, 0.07); }
  .lp-desk-nav a[aria-current="page"] { color: var(--orange-2); }
  .lp-desk-nav .lp-nav-cta { margin-left: 0.5rem; padding: 0.55rem 1.15rem; color: #160a04; font-weight: 700; background: linear-gradient(135deg, #ff8a2c, #df520d); box-shadow: 0 10px 26px rgba(255, 107, 20, 0.26); }
  .lp-desk-nav .lp-nav-cta:hover { color: #160a04; background: linear-gradient(135deg, #ffa14e, #ef5f14); }

  .page-main { max-width: 64rem; padding-left: clamp(1.5rem, 4vw, 3rem); padding-right: clamp(1.5rem, 4vw, 3rem); }
  .page-hero { padding: 4.4rem 0 1.8rem; }
  .page-hero h1 { font-size: clamp(3rem, 4.6vw, 3.9rem); }
  .page-lead { font-size: 1.15rem; max-width: 54ch; }
  .page-portrait { width: 10rem; height: 10rem; }

  .page-section { padding: 2.6rem 0; }
  .page-h2 { font-size: clamp(1.8rem, 2.6vw, 2.3rem); margin-bottom: 1.2rem; }
  .page-section p { font-size: 1.08rem; line-height: 1.65; max-width: 60ch; }

  .stat-grid { gap: 2.2rem 1.6rem; margin-top: 2.2rem; max-width: 54rem; margin-left: auto; margin-right: auto; }
  .stat strong { font-size: 2.9rem; }
  .stat span { font-size: 0.68rem; }

  .proof-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; max-width: none; }
  .proof { padding: 1.4rem 1.5rem 1.4rem 1.7rem; border-radius: 20px; }
  .proof h3 { font-size: 1.26rem; }
  .proof p { font-size: 0.97rem; }

  /* receipts: grid gallery instead of a swipe rail */
  .receipt-rail {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
    overflow: visible;
    margin: 1.8rem 0 0;
    padding: 0;
    scroll-snap-type: none;
  }
  .receipt-card { width: auto; }
  .receipt-shot { height: 21rem; }
  .receipt-meta { padding: 0.85rem 1rem 1rem; }
  .receipt-dots { display: none; }

  .page-note { max-width: 60ch; }
  .page-cta-row { flex-direction: row; justify-content: center; max-width: none; gap: 0.9rem; }
  .page-cta { padding: 0 2rem; transition: transform 150ms var(--ease), box-shadow 150ms var(--ease); }
  .page-cta-solid:hover { transform: translateY(-1px); box-shadow: 0 18px 44px rgba(255, 107, 20, 0.38); }
  .page-cta-ghost:hover { border-color: rgba(255, 138, 44, 0.55); background: rgba(255, 107, 20, 0.07); }
}

/* Narrow desktop: thin the nav so the bar never crowds */
@media (min-width: 761px) and (max-width: 919px) {
  .lp-desk-nav a:not(.lp-nav-cta) { display: none; }
}
@media (min-width: 920px) and (max-width: 1149px) {
  .lp-desk-nav a:nth-of-type(4),
  .lp-desk-nav a:nth-of-type(5) { display: none; }
}
