/* Bunsmaxx legal and support site. Chrome Rose (docs/DESIGN-SPEC.md).
   Plain CSS, no build step. Tokens mirror src/config/brand.ts. */

/* Self-hosted fonts (SIL OFL 1.1, licenses in fonts/): no request leaves this site, so a
   visitor's IP never goes to a font CDN. WOFF made losslessly from the app's own
   @expo-google-fonts TTFs. Inter 400 and 600 only: 500 falls back to 400 and 700 to 600. */
@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/syne-700.woff") format("woff");
}
@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/syne-800.woff") format("woff");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-400.woff") format("woff");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-600.woff") format("woff");
}

:root {
  color-scheme: dark;
  --ground: #050507;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.10);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-solid: #121216;
  --text: #f4f6fa;
  --text-muted: #c3c8d2;
  --text-subtle: #9ca3b0;
  --accent: #ff3d9a;
  --accent-pressed: #e6338a;
  --on-accent: #1a0610;
  --warning: #ffb020;
  --glow-deep: #c2186e;
  --glow-accent: #ff3d9a;
  --font-display: "Syne", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius-card: 26px;
  --radius-small: 20px;
  --pad: 20px;
  --max: 720px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--ground);
}

/* The ground is on html so the fixed glow layer below can sit between it and the content. */
body {
  margin: 0;
  min-height: 100vh;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: normal;
  overflow-x: hidden;
}

/* The two soft glow blobs, fixed behind content (top-left deep rose, mid-right accent). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 4%, rgba(194, 24, 110, 0.30) 0, rgba(194, 24, 110, 0) 42vmax),
    radial-gradient(circle at 96% 52%, rgba(255, 61, 154, 0.24) 0, rgba(255, 61, 154, 0) 36vmax);
}

/* Layout */
.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
  padding: 0 var(--pad);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus {
  left: var(--pad);
  z-index: 10;
}

.site-header {
  padding: 24px 0 8px;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  line-height: 1;
}
.wordmark:hover,
.wordmark:focus-visible {
  color: var(--text);
}

.site-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--text);
  background: var(--glass);
}
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--glass-border);
}

main {
  padding: 24px 0 48px;
}

.site-footer {
  border-top: 1px solid var(--glass-border);
  padding: 24px 0 40px;
  color: var(--text-subtle);
  font-size: 14px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-bottom: 8px;
}
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-footer .sep {
  color: var(--text-subtle);
}
.site-footer p {
  margin: 0;
}

/* Type */
h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 {
  font-weight: 800;
  font-size: clamp(30px, 7vw, 40px);
  margin: 8px 0 20px;
}
h2 {
  font-weight: 700;
  font-size: clamp(22px, 5vw, 26px);
  margin: 44px 0 14px;
  scroll-margin-top: 16px;
}
h3 {
  font-weight: 700;
  font-size: 19px;
  margin: 30px 0 10px;
  scroll-margin-top: 16px;
}

p,
ul,
ol {
  margin: 0 0 16px;
}
ul,
ol {
  padding-left: 22px;
}
li {
  margin: 6px 0;
}
li::marker {
  color: var(--text-subtle);
}

strong {
  color: var(--text);
  font-weight: 600;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent-pressed);
}
a:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 1px 5px;
  color: var(--text);
}

hr {
  border: 0;
  border-top: 1px solid var(--glass-border);
  margin: 32px 0;
}

.lede {
  font-size: 18px;
  color: var(--text-muted);
}
.meta {
  color: var(--text-subtle);
  font-size: 15px;
}

/* Glass cards */
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 22px 22px 6px;
  margin: 0 0 20px;
}
.card > h2:first-child,
.card > h3:first-child {
  margin-top: 0;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .card {
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .card {
    background: var(--glass-solid);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 8px;
}

/* Hub links */
.hub {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 12px;
}
.hub li {
  margin: 0;
}
.hub a {
  display: block;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-small);
  padding: 18px 20px;
  color: var(--text);
  text-decoration: none;
}
.hub a:hover {
  background: var(--glass-strong);
}
.hub .hub-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
}
.hub .hub-sub {
  display: block;
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 2px;
}
.hub .hub-title::after {
  content: " \203A";
  color: var(--accent);
}

.hero {
  padding: 24px 0 8px;
}
.hero .tagline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 9vw, 52px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 16px;
}

.store {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 8px 0 16px;
}

/* A store link that isn't live yet: looks disabled on purpose. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}
/* The live store link: the one accent button (onAccent text, never white on the accent). */
a.button {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 36px rgba(255, 61, 154, 0.5);
}
a.button:hover {
  background: var(--accent-pressed);
  color: var(--on-accent);
}
.button-disabled {
  background: var(--glass-solid);
  color: var(--text-subtle);
  border: 1px dashed var(--glass-border);
  cursor: not-allowed;
}

/* Placeholders: warning colored so nothing ships unfilled. Drafting notes stay in docs/legal
   and never appear on these pages. */
.ph {
  color: var(--warning);
  background: rgba(255, 176, 32, 0.10);
  border: 1px dashed rgba(255, 176, 32, 0.55);
  border-radius: 6px;
  padding: 0 4px;
  font-weight: 600;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Tables scroll inside their own container, never the page. */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 20px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-small);
  background: var(--glass);
}
.table-wrap:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: normal;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--glass-border);
}
tr:last-child td {
  border-bottom: 0;
}
th {
  color: var(--text);
  font-weight: 600;
  background: var(--glass-strong);
}

/* On this page */
.toc ol {
  columns: 2 220px;
  column-gap: 24px;
  margin-bottom: 14px;
}
.toc li {
  break-inside: avoid;
  margin: 4px 0;
}

.path {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 480px) {
  .card {
    padding: 18px 18px 4px;
  }
  .lede {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
