/* Mijn AI Vriendin — stylesheet
   Palette + type tokens reflect the brand brief: near-black purple ground,
   fuchsia -> violet gradient for action, amber reserved for status/meter chips. */

@font-face {
  font-family: "Cook Conthic";
  src: url("fonts/CookConthic.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0d0a14;
  --bg-elevated: #161020;
  --bg-elevated-2: #1d1530;
  --bg-panel: #1a1326;
  --border-subtle: rgba(232, 121, 249, 0.16);
  --border-strong: rgba(232, 121, 249, 0.32);
  --text-primary: #f4eefb;
  --text-secondary: #c3b6dc;
  --text-tertiary: #8d7fa9;
  --fuchsia-400: #e879f9;
  --fuchsia-500: #d946ef;
  --fuchsia-600: #c026d3;
  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --gradient-primary: linear-gradient(90deg, var(--fuchsia-600), var(--violet-600));
  --gradient-text: linear-gradient(90deg, var(--fuchsia-400), var(--violet-500));
  --gradient-hairline: linear-gradient(90deg, transparent, var(--fuchsia-500) 35%, var(--violet-500) 65%, transparent);
  --font-display: "Cook Conthic", "Jost", "Century Gothic", "Trebuchet MS", sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --measure: 42rem;
  --radius-sm: 10px;
  --radius-md: 16px;
  --shadow-glow: 0 0 60px rgba(192, 38, 211, 0.22);
}

* {
  box-sizing: border-box;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--fuchsia-600);
  color: #fff;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-inline: 24px;
}

.col {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding-inline: 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin: 0;
}

h2 {
  font-size: clamp(1.7rem, 1.35rem + 1.6vw, 2.35rem);
  margin-top: 4rem;
  margin-bottom: 1.1rem;
}

h3 {
  font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.45rem);
  color: var(--text-primary);
  margin-top: 2.25rem;
  margin-bottom: 0.65rem;
  font-weight: 700;
}

h3 .mark {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gradient-primary);
  margin-right: 0.65em;
  vertical-align: middle;
  transform: translateY(-2px);
}

p {
  margin: 0 0 1.25em;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  color: var(--text-primary);
  font-weight: 700;
}

em {
  color: var(--text-primary);
  font-style: italic;
}

.citation {
  color: var(--fuchsia-400);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 1px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.citation:hover {
  border-color: var(--fuchsia-400);
}

.citation:focus-visible,
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--fuchsia-400);
  outline-offset: 3px;
  border-radius: 3px;
}

/* skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--fuchsia-600);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 10, 20, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.logo span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.main-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}

.main-nav a:hover {
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.badge-18 {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--amber-400);
  background: transparent;
  border: 1px solid var(--amber-500);
  border-radius: 6px;
  padding: 2px 6px;
  line-height: 1;
  letter-spacing: 0.01em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.65em 1.3em;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 18px rgba(192, 38, 211, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(192, 38, 211, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--fuchsia-400);
  border: 1px solid var(--border-strong);
  padding: 0.4em 1.1em 0.4em 0.5em;
}

.btn-ghost:hover {
  background: var(--bg-elevated);
  border-color: var(--fuchsia-400);
}

.btn-ghost svg {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: clip;
  padding-top: clamp(3.5rem, 3rem + 2vw, 6rem);
  padding-bottom: clamp(3rem, 2.5rem + 2vw, 5rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 620px;
  background: radial-gradient(60% 60% at 30% 30%, rgba(217, 70, 239, 0.32), transparent 70%),
              radial-gradient(50% 50% at 75% 20%, rgba(124, 58, 237, 0.28), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  animation: drift 22s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(18px) scale(1.04); }
}

.hero-inner {
  position: relative;
  max-width: 760px;
}

.hero h1 {
  font-size: clamp(2.3rem, 1.7rem + 3vw, 3.6rem);
  font-weight: 700;
  margin-bottom: 1.3rem;
}

.hero .lead {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 46rem;
}

.hero .lead:first-of-type {
  color: var(--text-primary);
}

.scroll-cue {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-note {
  margin-top: 2.25rem;
  font-style: italic;
  color: var(--text-tertiary);
  font-size: 0.95rem;
  max-width: 40rem;
}

.hairline {
  height: 1px;
  background: var(--gradient-hairline);
  border: none;
  margin: 0;
}

/* ---------- article sections ---------- */
main {
  padding-bottom: 2rem;
}

section {
  padding-top: 1px;
}

.section-pad {
  padding-block: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.section-pad + .section-pad {
  border-top: 1px solid var(--border-subtle);
}

/* transparency callout: recurring device for the article's own caveats */
.callout {
  display: flex;
  gap: 0.85rem;
  background: var(--bg-elevated);
  border-left: 3px solid var(--fuchsia-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  color: var(--text-tertiary);
}

.callout p {
  margin: 0;
  font-style: italic;
}

.callout svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--fuchsia-400);
}

/* chat mockup */
.chat-mock {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.75rem 0;
}

.chat-row {
  display: flex;
  margin-bottom: 0.85rem;
}

.chat-row:last-child {
  margin-bottom: 0;
}

.chat-row.you {
  justify-content: flex-end;
}

.chat-bubble {
  max-width: 80%;
  padding: 0.7em 1em;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.chat-row.you .chat-bubble {
  background: var(--gradient-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-row.ai .chat-bubble {
  background: var(--bg-elevated-2);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.chat-divider {
  display: flex;
  align-items: center;
  gap: 0.75em;
  margin: 1.25rem 0;
  color: var(--text-tertiary);
  font-size: 0.78rem;
  text-transform: none;
}

.chat-divider::before,
.chat-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

/* checklist */
.checklist {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.checklist li {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border-subtle);
}

.checklist li:last-child {
  border-bottom: 1px solid var(--border-subtle);
}

.checklist .icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fuchsia-400);
  margin-top: 0.2rem;
}

.checklist h3 {
  margin: 0 0 0.3rem;
  font-size: 1.2rem;
}

.checklist p {
  color: var(--text-secondary);
  font-size: 0.96rem;
}

/* featured panel: HollandGirls */
.panel {
  background: linear-gradient(160deg, var(--bg-panel), var(--bg-elevated));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  margin-top: 1.75rem;
  box-shadow: var(--shadow-glow);
}

.panel h3 {
  margin-top: 0;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.78rem;
  font-weight: 700;
  color: #221a08;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-500));
  border-radius: 999px;
  padding: 0.25em 0.75em;
  margin: 0.75rem 0 1rem;
}

.status-chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #221a08;
}

.panel .btn-primary {
  margin-top: 0.5rem;
}

.ext-note {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* FAQ */
.faq-item {
  border-top: 1px solid var(--border-subtle);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 2rem 1.25rem 0;
  position: relative;
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.2rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 1.15rem;
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--fuchsia-400);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .faq-answer {
  padding-bottom: 1.5rem;
  padding-right: 2rem;
  color: var(--text-secondary);
  font-size: 1.125rem;
}

.faq-answer p {
  margin: 0 0 1em;
}

/* footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding-block: 2.5rem 2rem;
}

.footer-tagline {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.footer-meta {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-bottom: 0.4rem;
}

.footer-legal {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  max-width: 46rem;
}

/* responsive */
@media (max-width: 780px) {
  .main-nav {
    position: fixed;
    inset: 68px 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 24px 1.5rem;
    gap: 1.1rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }

  .main-nav[data-open="true"] {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-nav a {
    font-size: 1rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .chat-bubble {
    max-width: 90%;
  }
}
