/* Wibble.Works — brand tokens (Direction C: violet-led) */
:root {
  --brand-violet: #8b53ff;
  --brand-violet-dark: #6f28ff; /* buttons: passes AA with white text */
  --brand-violet-tint: #f1e9ff; /* section bands */
  --brand-plum: #412234; /* headings, dark surfaces */
  --brand-amber: #ffa62b; /* energy accents only */
  --brand-brick: #bb342f; /* errors only */
  --bg: #fefcfb;
  --card: #ffffff;
  --line: #e5e7eb;
  --text: #412234;
  --text-body: #5a4453;
  --text-faint: #8a7584;
  --on-dark: #ffffff;
  --on-dark-sub: #e9ddf5;
  --font-display: "Comfortaa", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 12px;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-body);
  line-height: 1.6;
}
h1, h2, h3 { color: var(--text); font-family: var(--font-display); line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--brand-violet-dark); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--brand-plum); color: #fff; padding: 8px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-badge { width: 40px; height: 40px; border-radius: 10px; display: block; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--brand-plum); }
.site-nav { display: flex; gap: 28px; }
.site-nav a { text-decoration: none; color: var(--text-body); font-weight: 500; }
.site-nav a:hover { color: var(--brand-violet-dark); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--brand-plum); margin: 4px 0; }

/* Buttons */
.btn { display: inline-block; text-decoration: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; border-radius: 8px; padding: 14px 26px; }
.btn-small { padding: 10px 20px; font-size: 0.95rem; }
.btn-primary { background: var(--brand-violet-dark); color: #fff; }
.btn-primary:hover { background: var(--brand-violet); }
.btn-plum { background: var(--brand-plum); color: #fff; }
.btn-plum:hover { background: #2c1626; }
.btn-amber { background: var(--brand-amber); color: var(--brand-plum); }
.btn-amber:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--on-dark); border: 1px solid var(--on-dark-sub); }

/* Hero */
.hero { background: var(--brand-violet); color: var(--on-dark); padding: 88px 0 96px; }
.hero h1 { color: var(--on-dark); }
.eyebrow { color: var(--on-dark); letter-spacing: 0.14em; font-size: 0.85rem; font-weight: 600; opacity: 0.95; }
.lede { color: var(--on-dark); font-size: 1.25rem; opacity: 0.97; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

/* Sections */
.section { padding: 72px 0; }
.section.band { background: var(--brand-violet-tint); }
.section-sub { font-size: 1.1rem; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 32px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card-dot { display: block; width: 44px; height: 44px; border-radius: 50%; background: var(--brand-violet); margin-bottom: 16px; }
.card-kicker { color: var(--brand-violet-dark); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.card-meta { color: var(--text-faint); font-size: 0.9rem; margin-bottom: 0; }
.text-link { color: var(--brand-violet-dark); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* About / contact */
#about p { font-size: 1.1rem; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand-violet); border-color: var(--brand-violet); }
.form-note { color: var(--text-faint); font-size: 0.9rem; margin-top: 12px; }

/* Legal page */
.crumb { color: var(--text-faint); }
.crumb a { color: var(--brand-violet-dark); }
.updated { color: var(--text-faint); font-size: 0.9rem; }
.legal-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; margin: 32px 0; }
.legal-card li { margin-bottom: 0.6em; }

/* Footer */
.site-footer { background: var(--brand-plum); color: var(--on-dark-sub); padding: 56px 0 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; align-items: start; }
.footer-grid img { border-radius: 12px; }
.footer-contact { margin-top: 12px; }
.footer-grid nav { display: flex; flex-direction: column; gap: 10px; }
.footer-grid nav a { color: var(--on-dark-sub); text-decoration: none; }
.footer-grid nav a:hover { color: var(--brand-amber); }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, 0.18); margin-top: 32px; padding-top: 20px; font-size: 0.85rem; }
.footer-legal p { margin: 0 0 0.4em; }

/* Cookie banner */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; background: var(--brand-plum); color: var(--on-dark); border-radius: var(--radius); padding: 20px 24px; box-shadow: 0 12px 40px rgba(65, 34, 52, 0.35); }
.cookie-banner a { color: var(--brand-amber); }
.cookie-actions { display: flex; gap: 12px; margin: 12px 0 0; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 900px) {
  .cards-3 { grid-template-columns: 1fr; }
  .cards-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 16px 24px 24px; border-bottom: 1px solid var(--line); gap: 16px; }
  .site-nav.open { display: flex; }
  .header-cta .btn { display: none; }
  .section { padding: 52px 0; }
  .hero { padding: 64px 0 72px; }
}
