/* Shared chrome for the transactional pages on dash.oaica.com — the checkout, the
   success page, the terms and the privacy notice. The marketing pages live on
   oaica.com; these keep the same top bar, the same tokens and the same type so a
   buyer crossing between the two sites does not feel handed off.

   Deliberately a plain stylesheet and not a framework: these pages carry no build
   step, and the whole visual vocabulary is a handful of tokens plus one bar. */

:root {
  color-scheme: light dark;
  --page: #fff;
  --ink: #111;
  --muted: #555;
  --line: rgba(128, 128, 128, .28);
  --surface: #f4f4f5;
  --code-bg: #16181f;
  --code-fg: #e8e9ee;
  --accent: #111;
  --warn: #92400e;
}
@media (prefers-color-scheme: dark) {
  :root { --page: #0b0c0f; --ink: #f2f3f7; --muted: #9aa0ad;
    --line: rgba(255, 255, 255, .16); --surface: #171a21; --accent: #fff;
    --warn: #fbbf24; }
}

* { box-sizing: border-box; }
body {
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, system-ui, sans-serif;
  margin: 0; color: var(--ink); background: var(--page);
}
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
a { color: inherit; }

/* ─── Top bar — identical to oaica.com so the two sites read as one ─── */
.oaica-bar { border-bottom: 1px solid var(--line); background: var(--page); }
.oaica-bar-inner {
  max-width: 1100px; margin: 0 auto; padding: .6rem 1.25rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem;
}
.oaica-brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none;
  font-weight: 650; letter-spacing: -.01em; font-size: 1.05rem; }
.oaica-brand-mark {
  width: 1.6rem; height: 1.6rem; border-radius: 7px; background: currentColor;
  color: var(--page); display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}
.oaica-nav { display: flex; flex-wrap: wrap; gap: 1.1rem; font-size: .95rem; }
.oaica-nav a { text-decoration: none; opacity: .72; }
.oaica-nav a:hover { opacity: 1; text-decoration: underline; }
.oaica-actions { display: flex; gap: .5rem; margin-left: auto; align-items: center; }
.oaica-btn { display: inline-block; padding: .4rem .85rem; border-radius: 8px; font-size: .9rem;
  font-weight: 550; text-decoration: none; border: 1px solid transparent; white-space: nowrap; }
.oaica-btn.ghost { border-color: var(--line); }
.oaica-btn.ghost:hover { border-color: rgba(128, 128, 128, .5); }
.oaica-btn.solid { background: currentColor; color: var(--page); }
.oaica-btn.solid:hover { opacity: .85; }

/* ─── Page body ─── */
.oaica-page { max-width: 44rem; margin: 2.5rem auto 4rem; padding: 0 1.25rem; }
.oaica-page h1 { font-size: 1.7rem; font-weight: 650; margin: 0 0 .5rem; letter-spacing: -.01em; }
.oaica-page h2 { font-size: 1.15rem; margin: 1.8rem 0 .5rem; }
.oaica-page h3 { font-size: 1rem; margin: 1.2rem 0 .3rem; }
.oaica-page p { margin: .6rem 0; }
.oaica-muted { color: var(--muted); }
.oaica-hint { color: var(--muted); font-size: .85rem; display: block; margin-top: .15rem; }
.oaica-page code { background: var(--surface); border-radius: 4px; padding: .1rem .35rem; }
.oaica-page pre { background: var(--code-bg); color: var(--code-fg); padding: .9rem 1.1rem;
  border-radius: 10px; overflow-x: auto; }
.oaica-page pre code { background: none; padding: 0; color: inherit; }
.oaica-page table { border-collapse: collapse; width: 100%; margin: .8rem 0 1.1rem; }
.oaica-page th, .oaica-page td { border-bottom: 1px solid var(--line); padding: .45rem .6rem;
  text-align: left; vertical-align: top; }
.oaica-page ul { padding-left: 1.15rem; }
.oaica-warn { color: var(--warn); }

/* ─── Footer ─── */
.oaica-foot { max-width: 60rem; margin: 0 auto; padding: 2.5rem 1.25rem 3rem;
  font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); }
.oaica-foot p { margin: .5rem 0; }
.oaica-foot a { text-decoration: underline; text-underline-offset: 2px; }
