/* OneRoll — shared foundation.
   One token set for every page. Before this file each page redefined its own
   and they had drifted apart (--surface, --hairline and the accent violet all
   disagreed between / and /create). Page-specific CSS still lives inline in
   each page; only what is genuinely shared belongs here. */

:root {
  color-scheme: dark;

  /* ground */
  --bg: #0B0B10;

  /* Two surface families, because the pages legitimately need both: the
     landing page floats translucent panels over a gradient ground, while
     /create and /shoot sit on flat --bg and need opaque ones. */
  --surface: rgba(255, 255, 255, .05);
  --surface-solid: #17151F;
  --surface-hi: #241F30;
  --surface-hi-hover: #2E2840;

  --hairline: rgba(255, 255, 255, .12);
  --hairline-soft: rgba(255, 255, 255, .08);

  /* type */
  --text: #F5F3FA;
  --sub: #ABA6B8;
  --muted: #6E687C;
  --text-on-accent: #fff;

  /* Two violets, and the difference is real: --violet is the gradient's
     start and belongs to CTAs and the mark; --violet-amb is the solid
     accent — focus rings, toggles, icons — and the tint the ambient
     background glows are mixed from. It is also the default vibe color
     /create and /shoot fall back to (--v1 / --g1). */
  --violet: #8B5CFF;
  --violet-amb: #7C5CFF;
  --violet-amb-rgb: 124, 92, 255;
  --violet-lift: #B49BFF;
  --pink: #FF5FA2;
  --pink-rgb: 255, 95, 162;
  --grad: linear-gradient(135deg, #8B5CFF, #FF5FA2);

  --ok: #4ADE80;
  --warn: #FF9BC4;

  /* radii */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* Elevation is neutral on purpose — a colored glow reads as decoration
     rather than height. Accent color carries meaning here, never lift. */
  --shadow-1: 0 12px 30px rgba(0, 0, 0, .45);
  --shadow-2: 0 14px 32px rgba(0, 0, 0, .5);
  --shadow-3: 0 34px 80px rgba(0, 0, 0, .55);

  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Aliases kept so /create and /shoot keep resolving their original names. */
  --accent: var(--violet-amb);
  --accentHot: var(--pink);
  --surfaceHi: var(--surface-hi);
}

* { box-sizing: border-box; }

body {
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, sans-serif;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

/* ---------- type ---------- */

h1, h2, h3 { font-weight: 800; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(2.6rem, 6vw, 4.25rem); line-height: 1.03; letter-spacing: -.028em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.12; letter-spacing: -.015em; }
h3 { font-size: 1.55rem; line-height: 1.2; }

.eyebrow {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- primitives ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  border: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}

.btn-primary {
  padding: 15px 27px;
  font-size: 1.05rem;
  background: var(--grad);
  color: var(--text-on-accent);
  box-shadow: var(--shadow-2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px rgba(0, 0, 0, .6); }
.btn-primary:disabled { opacity: .4; box-shadow: none; cursor: default; transform: none; }

.btn-ghost {
  padding: 14px 21px;
  font-size: .98rem;
  font-weight: 700;
  color: var(--sub);
  background: var(--surface);
  border: 1px solid var(--hairline);
}
.btn-ghost:hover { color: var(--text); border-color: rgba(var(--violet-amb-rgb), .6); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--hairline);
  font-size: .8rem;
  font-weight: 800;
  color: var(--sub);
}
.pill .dot { width: 7px; height: 7px; border-radius: var(--r-pill); background: var(--ok); flex: none; }

.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
}

/* ---------- site shell (nav + footer, shared by every page) ---------- */

.site-nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.mark { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; text-decoration: none; color: var(--text); }
.mark .ic { width: 34px; height: 34px; border-radius: 9px; display: block; box-shadow: var(--shadow-1); }
.site-nav .links { display: flex; gap: 10px; align-items: center; }
.navlink { color: var(--sub); text-decoration: none; font-weight: 700; font-size: .92rem; padding: 10px 14px; border-radius: var(--r-pill); }
.navlink:hover { color: var(--text); background: var(--surface); }
.navcta { text-decoration: none; color: var(--text); font-weight: 800; font-size: .92rem; padding: 11px 18px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--hairline); white-space: nowrap; }
.navcta:hover { border-color: rgba(var(--violet-amb-rgb), .6); }

.site-footer { border-top: 1px solid var(--hairline); padding: 28px 0 44px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }
.site-footer a { color: var(--sub); text-decoration: none; font-weight: 700; margin-left: 22px; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 820px) {
  .site-nav .navlink { display: none; }
}

/* ---------- document pages (/privacy, /support) ---------- */

.doc-wrap { width: min(760px, 100% - 44px); margin-inline: auto; }
.doc { padding: 20px 0 64px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin: 24px 0 6px; }
.doc h2 { font-size: 1.16rem; letter-spacing: -.01em; margin: 36px 0 8px; }
.doc p, .doc li { color: var(--sub); }
.doc p { margin: 0 0 14px; max-width: 66ch; }
.doc ul { margin: 0 0 18px; padding-left: 20px; max-width: 66ch; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--text); font-weight: 700; }
.doc a { color: var(--violet-lift); }
.doc a:hover { color: var(--text); }
.doc .muted { color: var(--muted); }
.doc .updated { color: var(--muted); font-size: .9rem; margin-bottom: 28px; }

/* ---------- focus ---------- */

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--violet-lift);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ---------- motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
