/* Ben Geldim — static site styles. Night-purple neon theme, no build step. */
:root {
  --bg: #0d0820;
  --bg-2: #160d33;
  --card: rgba(36, 22, 74, 0.72);
  --card-border: rgba(176, 120, 255, 0.28);
  --text: #f3eefe;
  --muted: #bfb3dd;
  --accent: #e040fb;
  --accent-2: #7c4dff;
  --gold: #ffc94d;
  --focus: #ffd86b;
  --grad: linear-gradient(90deg, #e040fb 0%, #9b4dff 55%, #7c4dff 100%);
  --radius: 18px;
  --maxw: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(124, 77, 255, 0.35), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(224, 64, 251, 0.18), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a { color: #e9a6ff; text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--gold); color: #1b0f3a; padding: 8px 14px; border-radius: 10px; z-index: 100;
}
.skip-link:focus { left: 12px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13, 8, 32, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(176, 120, 255, 0.15);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; }
.brand img { width: 96px; filter: drop-shadow(0 0 10px rgba(224, 64, 251, 0.55)); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 2px; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 56px 0 64px;
  background: linear-gradient(180deg, rgba(13, 8, 32, 0.35), rgba(13, 8, 32, 0.95)), url("assets/night-scene.webp") center / cover no-repeat;
}
.hero .container { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: center; }
.hero-logo { width: min(420px, 90%); filter: drop-shadow(0 0 24px rgba(224, 64, 251, 0.6)); }
.hero h1 { font-size: clamp(28px, 4.6vw, 46px); line-height: 1.15; margin: 18px 0 12px; }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); margin: 0 0 24px; max-width: 34em; }
.hero-door { justify-self: center; width: min(300px, 70vw); filter: drop-shadow(0 0 40px rgba(124, 77, 255, 0.7)); }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  min-width: 180px; padding: 10px 18px;
  border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.35);
  background: #000; color: #fff; text-decoration: none; line-height: 1.2;
}
.badge small { display: block; font-size: 11px; opacity: 0.8; }
.badge strong { font-size: 18px; }
.badge svg { width: 26px; height: 26px; flex: none; }
.badge[aria-disabled="true"] { opacity: 0.85; cursor: default; }
.note { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* Sections */
main section { padding: 56px 0; }
h2 { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.2; margin: 0 0 12px; }
h3 { font-size: 20px; margin: 24px 0 8px; }
.section-lead { color: var(--muted); margin: 0 0 28px; max-width: 42em; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; }
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
.steps .card { height: 100%; }
.steps .card::before {
  content: counter(step);
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 10px;
  box-shadow: 0 0 18px rgba(224, 64, 251, 0.6);
}
.steps h3 { margin: 4px 0 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.features .card h3 { margin-top: 0; }
.features .card p { margin: 0; color: var(--muted); font-size: 15.5px; }

.door-row { display: flex; justify-content: center; align-items: flex-end; gap: 18px; margin: 8px 0 24px; flex-wrap: wrap; }
.door-row img { width: 130px; filter: drop-shadow(0 0 18px rgba(124, 77, 255, 0.55)); }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--card-border); }
table { width: 100%; border-collapse: collapse; background: var(--card); min-width: 520px; }
caption { text-align: left; padding: 12px 16px; color: var(--muted); font-size: 14px; caption-side: bottom; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid rgba(176, 120, 255, 0.16); vertical-align: top; }
thead th { background: rgba(124, 77, 255, 0.22); font-size: 15px; }
tbody th { font-weight: 600; color: var(--muted); }
.plan-pro { color: var(--gold); }
td.yes::before { content: "✓ "; color: #7cf2b0; }
td.no::before { content: "– "; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  background: var(--grad); color: #fff; font-weight: 800; text-decoration: none;
  box-shadow: 0 0 24px rgba(224, 64, 251, 0.45);
}
.btn:hover { color: #fff; filter: brightness(1.08); }

/* Legal / prose pages */
.page-head { padding: 44px 0 8px; }
.page-head h1 { font-size: clamp(26px, 4vw, 38px); line-height: 1.2; margin: 0 0 8px; }
.meta { color: var(--muted); font-size: 14.5px; margin: 0; }
.prose { padding: 16px 0 56px; }
.prose .card { padding: clamp(18px, 4vw, 36px); }
.prose h2 { font-size: clamp(21px, 2.8vw, 26px); margin: 32px 0 10px; padding-top: 8px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 4px 0; }
.prose table { min-width: 600px; }
.callout {
  border-left: 4px solid var(--accent); background: rgba(224, 64, 251, 0.1);
  padding: 12px 16px; border-radius: 0 12px 12px 0; margin: 16px 0;
}
.callout.warn { border-color: var(--gold); background: rgba(255, 201, 77, 0.08); }
.toc { columns: 2; column-gap: 32px; padding-left: 1.3em; }
.ph { background: rgba(255, 201, 77, 0.16); color: var(--gold); padding: 0 4px; border-radius: 4px; font-weight: 700; }
.lang-switch { font-size: 14.5px; margin-top: 10px; }

details { border-bottom: 1px solid rgba(176, 120, 255, 0.18); padding: 12px 0; }
details:last-child { border-bottom: 0; }
summary { cursor: pointer; font-weight: 700; }
details p { color: var(--muted); margin: 8px 0 0; }

/* Footer */
.site-footer { border-top: 1px solid rgba(176, 120, 255, 0.15); padding: 32px 0 40px; color: var(--muted); font-size: 14.5px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: #fff; }
.site-footer p { margin: 4px 0; }

/* 404 */
.center-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.center-page img { margin: 0 auto 16px; width: 160px; }

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .hero { padding: 36px 0 44px; }
  .hero .container { grid-template-columns: 1fr; text-align: left; }
  .hero-door { width: 200px; order: -1; }
  .steps, .features { grid-template-columns: 1fr; }
  .toc { columns: 1; }
  .brand img { width: 80px; }
  .nav { font-size: 14px; gap: 2px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .badges { display: none; }
  .card { background: none; border: 0; box-shadow: none; }
  a { color: #000; }
}
