/* === TRIPLEBIRD — EDITORIAL CREAM === */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Cream palette */
  --bg: #EFE9DC;
  --bg-soft: #F5F1E8;
  --bg-white: #FAFAF8;
  --bg-dark: #0D0D0D;
  --bg-dark-soft: #1A1A1A;

  --text: #0D0D0D;
  --text-2: #5C5C5C;
  --text-3: #8A8A8A;

  --orange: #E8560A;
  --orange-soft: #FF6B1F;
  --yellow: #F5A623;
  --green: #2D9B5F;

  --border: #D9D2C2;
  --border-soft: #E8E2D2;
  --border-dark: #2A2A2A;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  min-height: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

/* ====== TYPOGRAPHY ====== */

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
}
h1 {
  font-size: clamp(40px, 8vw, 84px);
  letter-spacing: -0.045em;
  line-height: 0.95;
}
h2 {
  font-size: clamp(34px, 5vw, 60px);
  letter-spacing: -0.035em;
  line-height: 1.0;
}
h3 {
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: -0.025em;
}
p { margin: 0; }

/* Italic serif accent — the soul of this style */
.ital, em.ital, h1 em, h2 em, h3 em {
  font-family: 'Instrument Serif', 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
/* Slight optical adjustment for serif sitting next to Inter */
h1 em, h2 em { font-size: 1.06em; }

.orange { color: var(--orange); }
.text-2 { color: var(--text-2); }
.text-3 { color: var(--text-3); }

/* Body classes */
.body-lg { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--text-2); }
.body-md { font-size: 17px; line-height: 1.65; color: var(--text-2); }
.body-sm { font-size: 15px; line-height: 1.6; color: var(--text-2); }

/* Tracker label */
.label {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-3);
}
.label-on-dark { color: rgba(255,255,255,0.55); }
.label-orange { color: var(--orange); }

/* Mono */
.mono {
  font-family: 'JetBrains Mono', monospace;
  font-feature-settings: "tnum";
  font-size: 13px;
  letter-spacing: 0;
}

/* ====== BUTTONS ====== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn:hover { transform: scale(1.02); }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover { background: #d44a05; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}
.btn-secondary:hover { background: var(--text); color: var(--bg); }

.btn-secondary-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.btn-secondary-light:hover { background: #fff; color: var(--text); border-color: #fff; }

.btn-outline-orange {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
}
.btn-outline-orange:hover { background: var(--orange); color: #fff; }

.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ====== PILL CHIPS ====== */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pill-dot {
  width: 7px; height: 7px; border-radius: 50%;
}
.pill-dot.green { background: var(--green); box-shadow: 0 0 0 3px rgba(45,155,95,0.18); }
.pill-dot.orange { background: var(--orange); box-shadow: 0 0 0 3px rgba(232,86,10,0.18); }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 180ms ease;
  text-decoration: none;
}
.chip:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip.active { background: var(--orange); color: #fff; border-color: var(--orange); }

.chip-mini {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(13,13,13,0.04);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
}

/* ====== LAYOUT ====== */

.section {
  position: relative;
  padding: 96px 24px;
}
@media (min-width: 900px) { .section { padding: 140px 48px; } }
@media (min-width: 1200px) { .section { padding: 160px 64px; } }

.section-tight { padding: 64px 24px; }
@media (min-width: 900px) { .section-tight { padding: 80px 48px; } }

.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.container-wide { max-width: 1320px; margin: 0 auto; position: relative; }
.container-narrow { max-width: 720px; margin: 0 auto; position: relative; }

.bg-cream { background: var(--bg); }
.bg-soft { background: var(--bg-soft); }
.bg-white-soft { background: var(--bg-white); }
.bg-dark { background: var(--bg-dark); color: #fff; }
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: #fff; }
.bg-dark .body-md, .bg-dark .body-lg, .bg-dark .body-sm { color: rgba(255,255,255,0.65); }
.bg-orange { background: var(--orange); }

/* Subtle grain */
.grain::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  z-index: 0;
}

/* ====== CARDS ====== */

.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -16px rgba(0,0,0,0.10);
}
.card-dark {
  background: var(--bg-dark-soft);
  border: 1px solid var(--border-dark);
  border-radius: 24px;
}

/* ====== REVEAL ANIMATION ====== */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ====== NAVIGATION ====== */

.nav-link {
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  position: relative;
  transition: color 200ms;
}
.nav-link:hover { color: var(--orange); }

/* ====== SCROLL PROGRESS ====== */

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--orange);
  z-index: 100;
  transform-origin: left;
  width: 100%;
  transform: scaleX(0);
  transition: transform 80ms linear;
}

/* ====== MARQUEE ====== */

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }

/* ====== MOBILE STICKY CTA ====== */

.mobile-cta {
  position: fixed;
  left: 16px; right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 80;
  display: none;
  gap: 10px;
  padding: 10px;
  background: rgba(239,233,220,0.92);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 999px;
  transform: translateY(140%);
  transition: transform 400ms cubic-bezier(0.2, 0.7, 0.2, 1);
  box-shadow: 0 12px 40px -12px rgba(0,0,0,0.12);
}
.mobile-cta.show { transform: translateY(0); }
.mobile-cta .btn { flex: 1; justify-content: center; padding: 12px 16px; font-size: 14px; }
@media (max-width: 768px) {
  .mobile-cta { display: flex; }
}

/* ====== FAQ ACCORDION ====== */

.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  gap: 24px;
  letter-spacing: -0.015em;
}
.faq-q .icon-plus {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  transition: transform 280ms ease, background 280ms ease, color 280ms ease;
}
.faq-item.open .faq-q .icon-plus { transform: rotate(45deg); background: var(--text); color: var(--bg); border-color: var(--text); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms ease;
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div {
  overflow: hidden;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.65;
  max-width: 760px;
  padding-bottom: 0;
}
.faq-item.open .faq-a > div { padding-bottom: 28px; }

/* ====== LOGO ====== */

.tb-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--text);
}
.tb-logo svg { width: 24px; height: 24px; }

/* ====== UTILITIES ====== */

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.3); }
}
.pulse { animation: pulse-dot 1.8s ease-in-out infinite; }

@keyframes page-enter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.page-enter { animation: page-enter 600ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }

/* Check icon circle */
.check-circle {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(232,86,10,0.12);
  color: var(--orange);
  display: grid; place-items: center;
  flex-shrink: 0;
}

/* Sticky service nav */
.sticky-nav {
  position: sticky;
  top: 88px;
  z-index: 40;
  background: rgba(239,233,220,0.85);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

/* Stat row */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
}
.stat-num {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
}
.stat-row .stat-num em { color: var(--orange); }

/* Service accordion */
.service-row {
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
  cursor: pointer;
  transition: padding 260ms ease;
}
.service-row:first-child { border-top: 1px solid var(--border); }
.service-row-head {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 24px;
  align-items: center;
}
.service-row-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--text-3);
  font-weight: 500;
}
.service-row-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 6px;
}
.service-row-tags {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.service-row-toggle {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  transition: all 280ms ease;
  color: var(--text);
}
.service-row.open .service-row-toggle { background: var(--text); color: var(--bg); border-color: var(--text); transform: rotate(45deg); }
.service-row-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 360ms ease;
}
.service-row.open .service-row-body { grid-template-rows: 1fr; }
.service-row-body > div {
  overflow: hidden;
  padding-left: 84px;
  padding-right: 60px;
  padding-bottom: 0;
}
.service-row.open .service-row-body > div { padding-top: 20px; padding-bottom: 8px; }
@media (max-width: 700px) {
  .service-row-head { grid-template-columns: 36px 1fr auto; gap: 12px; }
  .service-row-body > div { padding-left: 48px; padding-right: 0; }
}

/* Process step */
.process-step-num {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--orange);
}

/* Demo card carousel */
.demo-card {
  position: relative;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px;
  height: 420px;
  overflow: hidden;
}
.demo-frame {
  position: absolute;
  inset: 28px;
  opacity: 0;
  transition: opacity 600ms ease, transform 600ms ease;
  transform: translateY(12px);
  display: flex;
  flex-direction: column;
}
.demo-frame.active { opacity: 1; transform: translateY(0); }
.demo-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.demo-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
  margin-top: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Live indicator */
.live-dot {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}
.live-dot::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(45,155,95,0.4);
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(45,155,95,0.5); }
  100% { box-shadow: 0 0 0 8px rgba(45,155,95,0); }
}

/* Chat bubble */
.bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
  max-width: 86%;
}
.bubble-in { background: #F0EDE2; color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble-out { background: var(--text); color: var(--bg); align-self: flex-end; border-bottom-right-radius: 4px; }

/* Branche chip row */
.branche-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* Pricing card featured */
.price-featured {
  border-color: var(--orange) !important;
  border-width: 2px !important;
  position: relative;
}
.price-featured::before {
  content: 'MEEST GEKOZEN';
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  border-radius: 999px;
}

/* Confetti */
@keyframes confetti-fall {
  0% { transform: translateY(-100px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}
