/* ==========================================================
   Whoppy — Shared styles (Whop Design System)
   ========================================================== */

@font-face {
  font-family: "FFF Acid Grotesk";
  src: url("/manual/static/fonts/FFF-AcidGrotesk-Light.otf") format("opentype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "FFF Acid Grotesk";
  src: url("/manual/static/fonts/FFF-AcidGrotesk-Book.otf") format("opentype");
  font-weight: 350; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "FFF Acid Grotesk";
  src: url("/manual/static/fonts/FFF-AcidGrotesk-Regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "FFF Acid Grotesk";
  src: url("/manual/static/fonts/FFF-AcidGrotesk-Medium.otf") format("opentype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "FFF Acid Grotesk";
  src: url("/manual/static/fonts/FFF-AcidGrotesk-Bold.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  /* Brand */
  --orange:         rgb(250, 70, 22);
  --orange-hover:   rgb(255, 92, 46);
  --orange-dark:    rgb(194, 53, 16);
  --orange-soft:    rgba(250, 70, 22, 0.10);
  --orange-softer:  rgba(250, 70, 22, 0.06);
  --orange-border:  rgba(250, 70, 22, 0.30);

  /* Neutrals — dark-first (black is sacred) */
  --black:      rgb(0, 0, 0);
  --ink-00:     rgb(8, 8, 8);
  --ink-05:     rgb(14, 14, 14);
  --ink-10:     rgb(20, 20, 20);
  --ink-20:     rgb(28, 28, 28);
  --ink-30:     rgb(38, 38, 38);
  --line:       rgba(255, 255, 255, 0.08);
  --line-strong:rgba(255, 255, 255, 0.16);
  --hair:       rgba(255, 255, 255, 0.06);

  --cream:      rgb(252, 246, 245);
  --fg:         rgb(252, 246, 245);
  --fg-muted:   rgb(180, 180, 175);
  --fg-dim:     rgb(131, 131, 131);
  --fg-faint:   rgb(100, 100, 100);

  /* Semantic */
  --green:      rgb(70, 167, 88);
  --red:        rgb(239, 68, 68);
  --blue:       rgb(97, 150, 193);

  /* Type */
  --font-display: "FFF Acid Grotesk", "Neue Haas Grotesk Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-ui:      "FFF Acid Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono:    "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-pill: 999px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  background: var(--black);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

/* Scrollbars */
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--ink-30); border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background: var(--line-strong); }

/* Hairline frame */
.hair-top, .hair-bot {
  position: fixed; left: 20px; right: 20px; height: 1px;
  background: var(--line-strong); z-index: 40; pointer-events: none;
}
.hair-top { top: 48px; }
.hair-bot { bottom: 48px; }

/* Whoppy orb */
.whoppy-orb {
  width: 28px; height: 28px; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, rgba(255,255,255,0.85), rgba(255,255,255,0) 34%),
    radial-gradient(circle at 50% 55%, var(--orange) 0%, rgb(194,53,16) 60%, rgb(120,30,10) 100%);
  box-shadow:
    inset 0 0 0 0.5px rgba(255,255,255,0.2),
    0 0 24px rgba(250, 70, 22, 0.35);
  flex: none;
}
.whoppy-orb.sm { width: 18px; height: 18px; box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.2), 0 0 12px rgba(250,70,22,0.3); }
.whoppy-orb.lg { width: 48px; height: 48px; box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.25), 0 0 48px rgba(250,70,22,0.5); }

/* Wordmark */
.whoppy-wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  font-size: 17px;
  color: var(--fg);
}

.kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--fg-muted);
  background: var(--ink-10);
  border: 1px solid var(--line);
  border-radius: 4px;
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Button primitives */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  height: 36px; padding: 0 14px;
  font-family: var(--font-ui); font-size: 13px; font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 120ms cubic-bezier(0.2,0,0,1), border-color 120ms, color 120ms;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange); color: #fff;
  border-color: rgba(0,0,0,0.2);
}
.btn-primary:hover { background: var(--orange-hover); }
.btn-primary:active { background: var(--orange-dark); }

.btn-ghost {
  background: transparent; color: var(--fg-muted);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--ink-10); color: var(--fg); border-color: var(--line-strong); }

/* Chip */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px; padding: 0 8px;
  font-family: var(--font-ui); font-size: 11px; font-weight: 500;
  color: var(--fg-muted);
  background: var(--ink-10);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}
.chip.orange { color: var(--orange); background: var(--orange-soft); border-color: var(--orange-border); }
.chip.green  { color: var(--green); background: rgba(70,167,88,0.1); border-color: rgba(70,167,88,0.25); }

/* Section eyebrow */
.eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* Links */
a.link {
  color: var(--orange);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms;
}
a.link:hover { border-bottom-color: var(--orange); }
