/* Jolt Club pages (joltclub.app): bubbly, vibrant, same palette as the app (docs/DESIGN.md §6).
   Layout: full-width header + footer bands, content in .wrap (articles, legal) or .shell (home). */
:root {
  --violet: #7C3AED; --coral: #FF5A5F; --sun: #FFC93C; --mint: #2ED3A0; --sky: #3AB0FF; --orange: #FF8A3D; --pink: #F43F9B;
  --ink: #1B1036; --ink2: #5B4F7A; --cream: #FFF7EE; --card: #FFFFFF; --chip: #F1EAFF;
  --link: #6D28D9; --header-bg: rgba(255, 247, 238, .82);
  --shadow: 0 9px 24px rgba(124, 58, 237, .12);
  --shadow-lg: 0 24px 60px rgba(124, 58, 237, .18);
  --jolt: linear-gradient(135deg, #7C3AED, #FF5A5F);
  --display: Fredoka, ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
  --body: Nunito, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #F6F1FF; --ink2: #BDB2DE; --cream: #140C2A; --card: #22173F; --chip: #2E2152;
    --violet: #A78BFA; --link: #C4B5FD; --header-bg: rgba(20, 12, 42, .82);
    --shadow: 0 9px 24px rgba(0, 0, 0, .35); --shadow-lg: 0 24px 60px rgba(0, 0, 0, .45); color-scheme: dark; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-weight: 600; line-height: 1.6;
  -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--link); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 12px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--card); color: var(--ink); padding: 8px 14px; border-radius: 12px; }
.skip:focus { left: 12px; }

/* ---------- header (every page) ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.site-header-in { max-width: 1160px; margin: 0 auto; padding-block: 12px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700;
  font-size: 24px; color: var(--ink); text-decoration: none; letter-spacing: -.2px; }
.brand img { width: 40px; height: 40px; border-radius: 13px; box-shadow: 0 6px 16px rgba(124, 58, 237, .25); }
.nav { display: flex; align-items: center; gap: 4px; font-weight: 800; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink2); padding: 8px 12px; border-radius: 999px; }
.nav a:hover { color: var(--ink); background: var(--chip); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav .nav-cta { background: var(--jolt); color: #fff; padding: 9px 16px; margin-left: 4px; box-shadow: 0 8px 18px rgba(124, 58, 237, .28); }
.nav .nav-cta:hover { color: #fff; background: var(--jolt); }
@media (max-width: 440px) {
  .brand { font-size: 21px; gap: 8px; } .brand img { width: 34px; height: 34px; border-radius: 11px; }
  .nav { font-size: 14px; gap: 0; } .nav a { padding: 8px 8px; } .nav .nav-cta { padding: 9px 12px; }
}
@media (max-width: 350px) { .nav .nav-home { display: none; } }

/* ---------- article / legal layout ---------- */
.wrap { max-width: 760px; margin: 0 auto; padding-block: 16px 56px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: flex; flex-direction: column; gap: 20px; }
.hero { background: var(--jolt); color: #fff; border-radius: 36px; padding: 32px 24px;
  box-shadow: 0 12px 30px rgba(255, 90, 95, .3); position: relative; overflow: hidden; isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .13); z-index: -1; }
.hero::after { width: 190px; height: 190px; top: -70px; right: -50px; }
.hero::before { width: 130px; height: 130px; bottom: -60px; left: -30px; background: rgba(255, 201, 60, .22); }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 6vw, 44px);
  line-height: 1.1; margin: 0 0 8px; text-wrap: balance; letter-spacing: -.3px; }
.hero p { margin: 0; color: #fff; opacity: .94; font-size: 17px; max-width: 56ch; }
.hero a { color: #fff; }
.card { background: var(--card); border-radius: 28px; padding: 22px; box-shadow: var(--shadow); min-width: 0; }
h2 { font-family: var(--display); font-weight: 700; font-size: 23px; margin: 0 0 8px; line-height: 1.25; text-wrap: balance; }
h3 { font-family: var(--display); font-weight: 600; font-size: 18px; margin: 14px 0 4px; }
p, li { color: var(--ink2); }
p { margin: 0 0 10px; }
ul, ol { margin: 0 0 10px; padding-left: 22px; }
li { margin-bottom: 4px; }
b, strong { color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 680px) { .grid { grid-template-columns: 1fr; } }
.emoji { font-size: 34px; }
.chip { display: inline-block; background: var(--chip); color: var(--violet); border-radius: 999px; padding: 5px 14px;
  font-weight: 800; font-size: 13px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 60px; padding: 0 28px; border-radius: 999px;
  font-weight: 900; font-size: 18px; text-decoration: none; background: var(--jolt);
  color: #fff; box-shadow: 0 10px 22px rgba(124, 58, 237, .3); transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(124, 58, 237, .36); }
.table { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; color: var(--ink2); }
th { color: var(--ink); font-weight: 800; }
tr + tr td { border-top: 1px solid var(--chip); }
.muted { color: var(--ink2); font-size: 14px; }

/* ---------- footer (every page) ---------- */
.site-footer { margin-top: 8px; background: var(--card); border-radius: 36px 36px 0 0; box-shadow: 0 -10px 30px rgba(124, 58, 237, .06); }
.site-footer-in { max-width: 1160px; margin: 0 auto; padding-block: 32px 36px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 20px 32px; }
.site-footer .brand { font-size: 22px; }
.site-footer .tag { margin: 6px 0 0; font-size: 15px; max-width: 34ch; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 800; font-size: 15px; }
.foot-nav a { color: var(--ink); text-decoration: none; }
.foot-nav a:hover { color: var(--violet); }
.foot-meta { flex-basis: 100%; margin: 0; font-size: 14px; color: var(--ink2); }
.foot-meta a { font-weight: 800; }

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