/* bearing.family — the public site. Plain CSS, no build. The colours are the
   app's Ledger tokens (src/index.css), light and dark. */
@font-face {
  font-family: "Public Sans";
  src: url("/fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f5f6f8;
  --line: #e4e6eb;
  --chip-line: #d5d8df;
  --ink: #1b2138;
  --muted: #5b6178;
  --primary: #1b2138;
  --primary-on: #ffffff;
  --apricot: #e58a5f;
  --apricot-text: #a9512a;   /* orange for words: 5.4:1 on white (the brand orange is 2.6:1) */
  --apricot-soft: #fdf1ea;
  --apricot-line: #efb898;
  --shot-edge: #d5d8df;
  --focus: #3987e5;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11141d;
    --surface: #1a1e2a;
    --line: #272c3b;
    --chip-line: #616981;
    --ink: #e8eaf2;
    --muted: #9aa0b5;
    --primary: #c9cdf0;
    --primary-on: #11141d;
    --apricot: #f0a07a;
    --apricot-text: #f0a07a;
    --apricot-soft: #2a1f1c;
    --apricot-line: #7a5440;
    --shot-edge: #272c3b;
    --focus: #9ec5f4;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 6vw, 52px); font-weight: 800; }
h2 { font-size: clamp(26px, 4vw, 34px); font-weight: 750; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--primary); color: var(--primary-on); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }

/* Header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 21px; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: 4px 18px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 16px; padding: 10px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--apricot); text-decoration-thickness: 3px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 10px; font-weight: 650; font-size: 17px; text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--primary-on); }
.btn-outline { border: 1.5px solid var(--chip-line); color: var(--ink); }
.btn-small { min-height: 42px; padding: 0 16px; font-size: 16px; }
.nav .btn-primary { color: var(--primary-on); padding: 0 16px; }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--apricot-text); margin-bottom: 14px; }
.lead { font-size: 20px; color: var(--muted); max-width: 34em; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 14px; }
.stores { font-size: 15px; color: var(--muted); }

/* Phone screenshots */
.phone { width: 100%; max-width: 300px; margin: 0 auto; border-radius: 28px; border: 1px solid var(--shot-edge); overflow: hidden; box-shadow: 0 24px 48px -24px rgba(27, 33, 56, 0.35); background: #fff; }

/* Promise band */
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.promise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 28px 20px; list-style: none; margin: 0 auto; }
.promise li { font-weight: 650; display: flex; gap: 10px; align-items: flex-start; }
.promise li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--apricot); }

/* Sections */
.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 64px; }
.feature:last-child { margin-bottom: 0; }
.feature.flip .feature-text { order: 2; }
.feature ul { padding-left: 20px; margin: 0; }
.feature li { margin-bottom: 6px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 22px; background: var(--bg); }
.card p:last-child { margin-bottom: 0; }
.step-n { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center; background: var(--apricot-soft); border: 2px solid var(--apricot-line); font-weight: 750; margin-bottom: 12px; }

/* Text pages */
.page { padding: 48px 0 72px; }
.page h2 { margin-top: 40px; }
.page h3 { margin-top: 28px; }
/* Legal documents (scripts/legal.mjs): lists and tables. A wide table scrolls inside its own box. */
.legal ul, .legal ol { padding-left: 22px; margin: 0 0 14px; }
.legal li { margin-bottom: 6px; }
.legal .table-wrap { overflow-x: auto; margin: 16px 0 24px; border: 1px solid var(--line); border-radius: 12px; }
.legal .table-wrap:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.legal table { border-collapse: collapse; width: 100%; font-size: 15.5px; line-height: 1.45; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.legal thead th { background: var(--surface); font-weight: 700; white-space: nowrap; }
.legal tbody th { font-weight: 650; width: 30%; }
.legal tbody tr:last-child th, .legal tbody tr:last-child td { border-bottom: 0; }
.legal td a { overflow-wrap: anywhere; }   /* a long address wraps instead of widening the table */
.legal table.cols3 { min-width: 620px; }
.legal table.cols3 tbody th { width: 24%; }
.notice { border: 1px solid var(--apricot-line); background: var(--apricot-soft); border-radius: 12px; padding: 18px 20px; margin: 24px 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 650; padding: 14px 0; min-height: 48px; list-style-position: outside; }
.faq details p { color: var(--ink); }
.faq details > *:not(summary) { margin-left: 4px; }
.split { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 15px; color: var(--muted); }
.foot .wrap { display: flex; gap: 20px 32px; flex-wrap: wrap; justify-content: space-between; }
.foot nav { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }

@media (max-width: 860px) {
  .hero { padding-top: 36px; }
  .hero .wrap, .feature, .split { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .feature-text { order: 0; }
  .promise { grid-template-columns: 1fr 1fr; }
  .grid3 { grid-template-columns: 1fr; }
  .phone { max-width: 260px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .lead { font-size: 18px; }
  .nav { margin-left: 0; width: 100%; }
  .nav .btn-primary { margin-left: auto; }
  .promise { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
