/*
Theme Name: Collegaplus
Theme URI: https://collegaplus.nl
Author: Collegaplus
Description: Eigen thema voor collegaplus.nl: landingspagina, rekentool en privacyverklaring.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: collegaplus
*/

:root {
  --bg: #0B0B0C;
  --surface: #1A1A1C;
  --surface-2: #242427;
  --accent: #F5D63D;
  --gold: #F5B800;
  --navy: #1F3A4D;
  --muted: #94A7B4;
  --body: #C9D6DE;
  --text: #EEF6FB;
  --gutter: 20px;
  --max: 1120px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Figtree", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3 {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}
p { margin: 0; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Circuits sit behind everything */
#circuits {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.page { position: relative; z-index: 1; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: 112px 0; }

/* Glass panel: blurs the circuits behind any text */
.glass {
  background: rgba(11, 11, 12, 0.6);
  backdrop-filter: blur(20px) saturate(1.05);
  -webkit-backdrop-filter: blur(20px) saturate(1.05);
  border: 1px solid rgba(245, 184, 0, 0.12);
  border-radius: 16px; /* panels 16px, buttons 8px: one shape system */
}
section:not(.hero) > .wrap {
  padding: 56px 52px;
  margin-left: auto;
  margin-right: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(11, 11, 12, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.admin-bar .site-header { top: 32px; }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand svg { width: 34px; height: 34px; }
.brand span { font-family: "Outfit", sans-serif; font-weight: 600; font-size: 1.25rem; }
.brand span em { font-style: normal; color: var(--gold); }
.nav { display: flex; align-items: center; gap: 24px; font-size: 0.95rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 720px) { .nav a:not(.nav-cta):not(.nav-keep) { display: none; } .nav { gap: 18px; } }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 15px 26px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  transition: background-color 200ms ease-out;
}
.btn:hover { background: #FFE35C; }
.btn-ghost {
  color: var(--text);
  text-decoration: none;
  padding: 15px 2px;
  border-bottom: 1px solid var(--surface-2);
  transition: border-color 200ms ease-out;
}
.btn-ghost:hover { border-bottom-color: var(--gold); }

/* Hero */
.hero { padding: 72px 0 120px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero-copy { padding: 48px 46px; }
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.hero-copy > * { animation: rise 900ms var(--ease) both; }
.hero-copy > h1 { animation-delay: 150ms; }
.hero-copy > .hero-lead { animation-delay: 300ms; }
.hero-copy > .hero-actions { animation-delay: 450ms; }
.hero-lead {
  margin-top: 28px;
  max-width: 44ch;
  color: var(--body);
  font-size: 1.15rem;
}
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }

/* Clones: the AI colleague working on several things at once */
.clones-wrap {
  position: relative;
  height: min(78vh, 640px);
  min-height: 460px;
}
#clones {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.done-panel {
  position: absolute;
  bottom: 46px;
  left: 0;
  z-index: 2;
  width: min(270px, 62%);
  padding: 14px 14px 10px;
  border-radius: 16px;
  border: 1px solid rgba(245, 184, 0, 0.45);
  background: rgba(16, 16, 18, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 28px rgba(245, 184, 0, 0.12);
}
.done-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  color: var(--muted);
  padding: 0 2px 10px;
}
.done-head b { color: var(--text); font-weight: 500; }
.done-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: 7px;
  height: 158px;
  overflow: hidden;
}
.done-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  height: 48px;
  flex: 0 0 auto;
  padding: 0 10px;
  border-radius: 10px;
  background: rgba(238, 246, 251, 0.07);
  font-size: 0.86rem;
  line-height: 1.3;
  overflow: hidden;
  animation: slide-in 450ms var(--ease) both;
}
.done-list li.leaving { animation: slide-out 450ms var(--ease) both; }
.done-list li > span { min-width: 0; }
.done-list .what { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.done-list .detail { display: block; color: var(--muted); font-size: 0.76rem; font-family: "IBM Plex Mono", monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.done-list svg { width: 20px; height: 20px; }
.done-list svg path {
  fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 30; stroke-dashoffset: 30;
  animation: tick 500ms 250ms var(--ease) forwards;
}
@keyframes slide-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes slide-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes tick { to { stroke-dashoffset: 0; } }

/* Problem */
.problem h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); max-width: 20ch; }
.statements { margin-top: 56px; display: grid; gap: 44px; }
.statement {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.25;
  max-width: 30ch;
  padding-left: 24px;
  border-left: 1px solid var(--gold);
}
.problem-note { margin-top: 56px; color: var(--muted); max-width: 52ch; }

/* How it works */
.how h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); max-width: 22ch; }
.rail {
  display: block;
  width: 100%;
  height: 24px;
  margin-top: 56px;
  overflow: visible;
}
.rail path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  transition: stroke-dashoffset 1.6s var(--ease);
}
.rail.in path { stroke-dashoffset: 0; }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.steps li { padding-top: 24px; }
.steps .step-no {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: 14px;
}
.steps h3 { font-size: 1.4rem; margin-bottom: 12px; }
.steps p { color: var(--body); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 36px; } }

/* Film */
.film h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); max-width: 22ch; }
.film-lead { margin-top: 18px; color: var(--muted); max-width: 52ch; }
.film-frame {
  position: relative;
  margin-top: 40px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(245, 184, 0, 0.25);
  background: #000;
  aspect-ratio: 16 / 9;
}
.film-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film-replay {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: none;
  background: rgba(11, 11, 12, 0.75);
  color: var(--text);
  border: 1px solid rgba(245, 184, 0, 0.5);
  border-radius: 8px;
  padding: 10px 16px;
  font: 600 0.95rem "Outfit", sans-serif;
  cursor: pointer;
}
.film-frame.ended .film-replay { display: inline-block; }
.film-sound {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(11, 11, 12, 0.75);
  color: var(--text);
  border: 1px solid rgba(238, 246, 251, 0.2);
  border-radius: 8px;
  padding: 8px 14px;
  font: 500 0.85rem "Figtree", sans-serif;
  cursor: pointer;
}

/* Services as rows */
.services h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); max-width: 22ch; }
.services-intro { margin-top: 18px; color: var(--muted); max-width: 52ch; }
.service-list { margin-top: 56px; border-top: 1px solid var(--surface-2); }
.service {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--surface-2);
  transition: border-color 300ms ease-out;
}
.service:hover { border-bottom-color: rgba(245, 184, 0, 0.5); }
.service h3 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.service p { color: var(--body); }
.service .for { margin-top: 12px; color: var(--muted); font-size: 0.97rem; }
@media (max-width: 760px) { .service { grid-template-columns: 1fr; gap: 14px; } }

/* Calculator teaser */
.calc-teaser .wrap { display: grid; grid-template-columns: 1.3fr auto; gap: 40px; align-items: center; }
.calc-teaser h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); max-width: 24ch; }
.calc-teaser p { margin-top: 16px; color: var(--muted); max-width: 52ch; }
@media (max-width: 760px) { .calc-teaser .wrap { grid-template-columns: 1fr; gap: 28px; } }

/* Fit */
.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.fit h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); }
.fit-note { margin-top: 20px; color: var(--muted); max-width: 44ch; }
.fit ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.fit li { position: relative; padding-left: 36px; }
.fit li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
}
@media (max-width: 820px) { .fit-grid { grid-template-columns: 1fr; gap: 32px; } }

/* FAQ */
.faq h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); margin-bottom: 40px; }
details { border-top: 1px solid var(--surface-2); padding: 22px 0; }
details:last-child { border-bottom: 1px solid var(--surface-2); }
summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--gold), var(--gold)) center / 14px 1.5px no-repeat,
    linear-gradient(var(--gold), var(--gold)) center / 1.5px 14px no-repeat;
}
details[open] summary::after {
  background: linear-gradient(var(--gold), var(--gold)) center / 14px 1.5px no-repeat;
}
details p { margin-top: 14px; color: var(--muted); max-width: 62ch; }

/* Contact */
.contact h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: 18ch; }
.contact p { margin-top: 20px; color: var(--muted); max-width: 52ch; }
.contact-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--surface-2);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 0.92rem;
  position: relative;
  z-index: 1;
  background: var(--bg);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }

/* Subpages */
.subpage { padding: 64px 0 112px; }
.subpage .wrap.glass { padding: 56px 52px; }
.subpage h1 { font-size: clamp(2rem, 4.4vw, 3rem); max-width: 22ch; }
.subpage .lead { margin-top: 20px; color: var(--body); max-width: 60ch; font-size: 1.12rem; }
.prose { margin-top: 40px; max-width: 70ch; color: var(--body); }
.prose h2 { font-size: 1.5rem; margin: 44px 0 14px; color: var(--text); }
.prose h3 { font-size: 1.15rem; margin: 28px 0 10px; color: var(--text); }
.prose p, .prose ul, .prose table { margin: 0 0 16px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--surface-2); vertical-align: top; }
.prose th { color: var(--text); font-weight: 600; }
.prose .stamp { font-family: "IBM Plex Mono", monospace; font-size: 0.85rem; color: var(--muted); }

/* Rekentool */
.calc { margin-top: 44px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
.calc fieldset { border: 0; margin: 0 0 34px; padding: 0; }
.calc legend { font-family: "Outfit", sans-serif; font-weight: 600; font-size: 1.25rem; margin-bottom: 18px; padding: 0; }
.field { margin-bottom: 22px; }
.field label { display: flex; justify-content: space-between; gap: 12px; font-size: 0.98rem; color: var(--body); margin-bottom: 8px; }
.field output { font-family: "IBM Plex Mono", monospace; color: var(--text); white-space: nowrap; }
.field .hint { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 6px; }
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--gold) var(--fill, 50%), var(--surface-2) var(--fill, 50%)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--surface-2); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--gold); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--gold); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--gold); }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--surface-2); border-radius: 8px; overflow: hidden; }
.seg label { margin: 0; padding: 9px 14px; cursor: pointer; color: var(--muted); font-size: 0.92rem; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:checked + span { color: var(--bg); }
.seg label:has(input:checked) { background: var(--accent); color: var(--bg); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.check { display: flex; gap: 12px; align-items: flex-start; color: var(--body); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--gold); }

.result { position: sticky; top: 96px; padding: 30px 28px; border-radius: 16px; border: 1px solid rgba(245, 184, 0, 0.35); background: rgba(16, 16, 18, 0.7); }
.result h2 { font-size: 1.3rem; }
.result .big { margin-top: 18px; font-family: "Outfit", sans-serif; font-weight: 700; font-size: clamp(2.2rem, 5vw, 3rem); color: var(--gold); line-height: 1; }
.result .big-label { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }
.result dl { margin: 26px 0 0; display: grid; grid-template-columns: 1fr auto; gap: 10px 0; font-size: 0.97rem; }
.result dt { color: var(--body); }
.result dd { margin: 0; padding-left: 16px; font-family: "IBM Plex Mono", monospace; color: var(--text); text-align: right; }
.result .top { border-top: 1px solid var(--surface-2); padding-top: 14px; margin-top: 4px; }
.label-row { display: block; font-size: 0.98rem; color: var(--body); margin-bottom: 8px; }
.result .neg { color: var(--muted); }
.result .price { color: var(--text); }
.result-sub { font-size: 1.15rem; margin-top: 34px; padding-top: 26px; border-top: 1px solid rgba(245, 184, 0, 0.25); }
.result .roi { margin-top: 12px; font-family: "Outfit", sans-serif; font-weight: 700; font-size: clamp(2rem, 4.4vw, 2.6rem); color: var(--gold); line-height: 1; }
.result .roi.neg { color: var(--muted); }
.result .saved { color: var(--gold); font-weight: 600; }
.result .note { margin-top: 22px; font-size: 0.85rem; color: var(--muted); }
.result .btn { margin-top: 24px; width: 100%; text-align: center; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } .result { position: static; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 880px) {
  .hero { padding: 40px 0 88px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { padding: 32px 26px; }
  .clones-wrap { height: 560px; min-height: 0; }
  .done-panel { width: 100%; bottom: 0; }
  .done-list { height: 48px; }
  .section { padding: 80px 0; }
  section:not(.hero) > .wrap, .subpage .wrap.glass { padding: 36px 22px; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .rail path { stroke-dashoffset: 0; }
  .done-list svg path { stroke-dashoffset: 0; }
}

/* ---------- Demos ---------- */
.demos-page .wrap { display: grid; gap: 40px; }
.demos-intro { padding: 56px 52px; }
.demos-intro h1 { font-size: clamp(2rem, 4.4vw, 3rem); max-width: 22ch; }
.filters { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.filter {
  background: transparent; color: var(--muted); border: 1px solid var(--surface-2);
  border-radius: 999px; padding: 8px 16px; font: 500 0.92rem "Figtree", sans-serif; cursor: pointer;
  transition: color 200ms, border-color 200ms, background-color 200ms;
}
.filter:hover { color: var(--text); border-color: rgba(245, 184, 0, 0.5); }
.filter.is-on { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.demo-note { margin-top: 18px; font-size: 0.88rem; color: var(--muted); }
.demo-list { display: grid; gap: 40px; }
.demos-cta { padding: 48px 52px; }
.demos-cta h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.demos-cta p { margin-top: 16px; color: var(--muted); max-width: 56ch; }

.demo { display: grid; grid-template-columns: 0.95fr 1.15fr; gap: 44px; padding: 44px 44px; align-items: center; }
.demo[hidden] { display: none; }
.demo-meta { display: flex; gap: 12px; align-items: center; font-family: "IBM Plex Mono", monospace; font-size: 0.8rem; color: var(--muted); }
.badge { border-radius: 999px; padding: 3px 10px; font-size: 0.75rem; }
.badge-live { background: rgba(245, 184, 0, 0.16); color: var(--accent); border: 1px solid rgba(245, 184, 0, 0.45); }
.badge-idea { color: var(--body); border: 1px solid var(--surface-2); }
.demo-title { margin-top: 16px; font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.demo-lead { margin-top: 14px; color: var(--body); }
.demo-for { margin-top: 14px; color: var(--muted); font-size: 0.95rem; }
.demo-for strong { color: var(--text); font-weight: 500; }

.stage { position: relative; --progress: 0; }
.flow {
  list-style: none; margin: 0 0 22px; padding: 0; position: relative;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px;
}
.flow::before, .flow::after {
  content: ""; position: absolute; top: 21px; left: calc(50% / var(--n, 4)); right: calc(50% / var(--n, 4)); height: 1px;
}
.flow::before { background: rgba(245, 184, 0, 0.18); }
.flow::after {
  background: var(--gold); box-shadow: 0 0 10px rgba(245, 184, 0, 0.9);
  transform-origin: left; transform: scaleX(var(--progress)); transition: transform 900ms var(--ease);
}
.node { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; text-align: center; }
.node .ico {
  width: 42px; height: 42px; padding: 10px; border-radius: 50%;
  background: #121214; border: 1px solid rgba(245, 184, 0, 0.25);
  fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke 300ms, border-color 300ms, box-shadow 300ms, background-color 300ms;
}
.node span { font-size: 0.78rem; line-height: 1.25; color: var(--muted); transition: color 300ms; }
.node.done .ico { stroke: var(--gold); border-color: rgba(245, 184, 0, 0.6); }
.node.on .ico { stroke: var(--bg); background: var(--accent); border-color: var(--accent); box-shadow: 0 0 22px rgba(245, 184, 0, 0.7); }
.node.on span, .node.done span { color: var(--text); }

.screen { border-radius: 12px; border: 1px solid rgba(245, 184, 0, 0.3); background: rgba(10, 10, 11, 0.85); overflow: hidden; box-shadow: 0 0 40px rgba(245, 184, 0, 0.06) inset; }
.screen-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--surface-2); font-family: "IBM Plex Mono", monospace; font-size: 0.75rem; color: var(--muted); }
.screen-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--surface-2); }
.screen-bar span { margin-left: 8px; }
.screen-body {
  height: 236px; padding: 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden;
  background-image: repeating-linear-gradient(0deg, rgba(245, 184, 0, 0.025) 0 1px, transparent 1px 3px);
}
.line { opacity: 0; transform: translateY(6px); transition: opacity 300ms var(--ease), transform 300ms var(--ease); font-size: 0.9rem; line-height: 1.4; max-width: 88%; }
.line.show { opacity: 1; transform: none; }
.line-in { align-self: flex-start; background: rgba(238, 246, 251, 0.08); border-radius: 12px 12px 12px 4px; padding: 8px 12px; }
.line-out { align-self: flex-end; background: rgba(245, 184, 0, 0.14); border: 1px solid rgba(245, 184, 0, 0.35); color: #FFE9A8; border-radius: 12px 12px 4px 12px; padding: 8px 12px; }
.line-sys { align-self: center; font-family: "IBM Plex Mono", monospace; font-size: 0.78rem; color: var(--gold); max-width: 100%; }
.line-kv { align-self: stretch; font-family: "IBM Plex Mono", monospace; font-size: 0.82rem; color: var(--body); border-left: 2px solid rgba(245, 184, 0, 0.5); padding: 2px 10px; max-width: 100%; }
.step-text { margin-top: 16px; min-height: 3.2em; color: var(--body); font-size: 0.97rem; }
.replay {
  margin-top: 6px; background: none; border: 0; padding: 4px 0; color: var(--muted); cursor: pointer;
  font: 500 0.88rem "Figtree", sans-serif; border-bottom: 1px solid var(--surface-2); opacity: 0; pointer-events: none; transition: opacity 300ms;
}
.stage.finished .replay { opacity: 1; pointer-events: auto; }
.replay:hover { color: var(--text); border-bottom-color: var(--gold); }

/* Homepage portfolio teaser */
.portfolio h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); max-width: 24ch; }
.portfolio-intro { margin-top: 18px; color: var(--muted); max-width: 56ch; }
.portfolio .demo { margin-top: 40px; padding: 0; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.demo-index { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; list-style: none; padding: 0; }
.demo-index a {
  display: flex; justify-content: space-between; gap: 10px; align-items: center; height: 100%;
  padding: 14px 16px; border: 1px solid var(--surface-2); border-radius: 10px; color: var(--text); text-decoration: none; font-size: 0.95rem;
  transition: border-color 200ms, background-color 200ms;
}
.demo-index a:hover { border-color: rgba(245, 184, 0, 0.55); background: rgba(245, 184, 0, 0.05); }
.demo-index small { color: var(--gold); font-family: "IBM Plex Mono", monospace; font-size: 0.7rem; white-space: nowrap; }
.portfolio .contact-actions { margin-top: 32px; }

@media (max-width: 900px) {
  .demo { grid-template-columns: 1fr; gap: 28px; padding: 32px 22px; }
  .demos-intro, .demos-cta { padding: 36px 22px; }
  .node span { font-size: 0.68rem; }
  .node .ico { width: 36px; height: 36px; padding: 8px; }
  .flow::before, .flow::after { top: 18px; }
  .screen-body { height: 220px; }
}

/* Chat launcher (loads the Retell chat only on click) */
.chat-launch {
  position: fixed; right: 20px; bottom: 20px; z-index: 20;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: var(--bg); border: 0; border-radius: 999px;
  padding: 13px 20px; font: 600 0.98rem "Outfit", sans-serif; cursor: pointer;
  box-shadow: 0 8px 30px rgba(245, 184, 0, 0.35);
}
.chat-launch svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.chat-launch:hover { background: #FFE35C; }
.chat-launch[disabled] { opacity: 0.8; cursor: wait; }

/* AI label on generated images */
.ai-label {
  position: absolute; right: 0; bottom: 4px; font-family: "IBM Plex Mono", monospace; font-size: 0.72rem;
  color: var(--muted); border: 1px solid var(--surface-2); border-radius: 6px; padding: 3px 8px; background: rgba(11, 11, 12, 0.6);
}
.site-footer .biz { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 0.85rem; }

.btn-outline { background: transparent; color: var(--text); border: 1px solid rgba(245, 184, 0, 0.6); }
.btn-outline:hover { background: rgba(245, 184, 0, 0.12); }
[data-open-chat][hidden] { display: none; }

@media (max-width: 640px) {
  .chat-launch { padding: 14px; right: 16px; bottom: 16px; }
  .chat-launch span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

.prelaunch { position: relative; z-index: 6; background: #15130C; border-bottom: 1px solid rgba(245, 184, 0, 0.35); color: var(--accent); text-align: center; font-size: 0.88rem; padding: 8px 16px; }
.prelaunch-note { margin-top: 18px; display: inline-block; font-size: 0.92rem; color: var(--accent); border: 1px solid rgba(245, 184, 0, 0.35); border-radius: 8px; padding: 8px 12px; }
