/* ============================================================
   FolieFactor — shared design system
   Minimalist · architectural · technology-grade
   ============================================================ */

:root {
  /* Palette */
  --bg:          #ffffff;
  --bg-soft:     #f6f4ec;   /* warm off-white, harmonises with the cream nav */
  --bg-deep:     #0b0b0c;   /* near-black for footer / dark sections */
  --nav-bg:      #ede8d0;   /* specified cream */
  --ink:         #0b0b0c;
  --ink-soft:    #5b5b60;
  --ink-faint:   #8a8a90;
  --line:        rgba(11, 11, 12, 0.10);
  --line-soft:   rgba(11, 11, 12, 0.06);

  /* Accent — vivid brand blue (dark legible text keeps AA contrast) */
  --accent:        #4f9bee;
  --accent-strong: #2f7fdb;
  --accent-ink:    #06223b;

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display",
          "Segoe UI", Helvetica, Arial, sans-serif;

  /* Rhythm */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(76px, 12vh, 168px);
  --radius: 18px;
  --radius-sm: 12px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --nav-h: 70px;
  --promo-h: 38px;
  --header-h: calc(var(--nav-h) + var(--promo-h));
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-block: clamp(48px, 8vh, 96px); }

/* ---------- Typography ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--ink-faint);
  display: inline-block;
}

.display {
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.04;
  font-size: clamp(2.1rem, 5.2vw, 4.1rem);
  color: var(--ink);
}
.display--sm { font-size: clamp(1.8rem, 4vw, 2.9rem); }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: var(--ink-soft);
  line-height: 1.62;
  max-width: 60ch;
}

.muted { color: var(--ink-soft); }

/* Wordmark used for the logo + hero title */
.wordmark {
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 13px;
  --pad-x: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease),
              color 0.3s var(--ease), border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-cta {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset;
}
.btn-cta:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -12px rgba(111, 162, 216, 0.7);
}

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -16px rgba(0,0,0,0.55); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn-lg { --pad-y: 17px; --pad-x: 34px; font-size: 16px; }

/* Arrow link micro-interaction */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.arrow-link svg { transition: transform 0.35s var(--ease); }
.arrow-link:hover svg { transform: translateX(5px); }

/* ============================================================
   Navigation
   ============================================================ */
site-nav { display: block; height: var(--header-h); }

/* Promo bar — seamless marquee ticker, stacked above the nav */
.promo-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--promo-h);
  z-index: 1001;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.promo-bar__track {
  display: flex;
  width: max-content;
  animation: promo-scroll 48s linear infinite;
  will-change: transform;
}
.promo-bar__item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding-right: 64px;
}
@keyframes promo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.nav {
  position: fixed;
  top: var(--promo-h);
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(11, 11, 12, 0.07);
  transition: box-shadow 0.4s var(--ease), top 0.3s var(--ease);
}
.nav.is-scrolled { box-shadow: 0 8px 30px -20px rgba(0, 0, 0, 0.4); }

.nav__inner {
  height: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  white-space: nowrap;
  transition: opacity 0.3s var(--ease);
}
.nav__logo:hover { opacity: 0.62; }
/* Official logo lockup: FF monogram + FOLIEFACTOR wordmark.
   Sized by height; the wordmark is very wide (19:1) so it steps down early. */
.nav__logo-mark,
.nav__logo-word { display: block; width: auto; flex-shrink: 0; }
.nav__logo-mark { height: 25px; }
.nav__logo-word { height: 13px; }

@media (max-width: 480px) {
  .nav__logo { gap: 10px; }
  .nav__logo-mark { height: 21px; }
  .nav__logo-word { height: 11px; }
}
@media (max-width: 380px) {
  .nav__logo-mark { height: 19px; }
  .nav__logo-word { height: 10px; }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
}
.nav__link {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current="page"] { font-weight: 600; }

.nav__cta { margin-left: 8px; }

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  margin-right: -8px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav__burger span {
  width: 22px; height: 1.6px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.25s var(--ease);
}
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* Mobile drawer */
.nav__drawer {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--nav-bg);
  padding: clamp(28px, 6vh, 56px) var(--gutter) 48px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  z-index: 999;
}
.nav.is-open .nav__drawer { opacity: 1; transform: none; pointer-events: auto; }
.nav__drawer a {
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 14px 0;
  border-bottom: 1px solid rgba(11, 11, 12, 0.08);
}
/* The CTA is an <a> inside the drawer, so it would inherit the 1.6rem menu
   size — far too large for the pill. Reset it to normal button proportions. */
.nav__drawer .btn-cta {
  margin-top: 26px;
  align-self: flex-start;
  border-bottom: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px 28px;
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
}
@media (min-width: 861px) {
  .nav__drawer { display: none; }
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--bg-deep);
  color: rgba(255, 255, 255, 0.72);
  padding-block: clamp(56px, 9vh, 96px);
}
.footer__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer__brand {
  font-size: 15px;
  letter-spacing: 0.28em;
  font-weight: 600;
  color: #fff;
}
.footer__tagline { margin-top: 14px; max-width: 30ch; color: rgba(255,255,255,0.5); font-size: 14px; }
.footer__nav { display: flex; flex-direction: column; gap: 14px; }
.footer__nav a {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  width: fit-content;
  transition: color 0.3s var(--ease);
}
.footer__nav a:hover { color: #fff; }
.footer__meta { text-align: right; font-size: 14px; color: rgba(255, 255, 255, 0.5); }
.footer__meta strong { color: rgba(255, 255, 255, 0.82); font-weight: 600; letter-spacing: 0.02em; }
.footer__meta span { display: block; margin-top: 10px; }
.footer__meta a { color: rgba(255, 255, 255, 0.82); transition: color 0.3s var(--ease); }
.footer__meta a:hover { color: #fff; }

@media (max-width: 720px) {
  .footer__inner { flex-direction: column; gap: 30px; }
  .footer__meta { text-align: left; }
  /* Seven links in one column is a lot of scrolling — go two-up. */
  .footer__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    width: 100%;
  }
  .footer { padding-block: clamp(40px, 7vh, 72px); }
}

/* ============================================================
   Reusable content blocks
   ============================================================ */

/* Page header (interior pages) */
.page-head { padding-top: clamp(64px, 12vh, 140px); padding-bottom: clamp(28px, 5vh, 56px); }
.page-head .display { max-width: 16ch; margin-top: 22px; }
.page-head .lead { margin-top: 26px; }

/* Feature cards (Waarom PDLC folie?) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(40px, 6vh, 72px);
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 2.4vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 300px;
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease),
              box-shadow 0.5s var(--ease);
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(11, 11, 12, 0.16);
  box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.28);
}
.feature-card__icon {
  width: 42px; height: 42px;
  color: var(--ink);
  opacity: 0.9;
}
.feature-card__icon svg { width: 100%; height: 100%; }
.feature-card h3 { font-size: 1.32rem; }
.feature-card__list { list-style: none; margin-top: auto; display: flex; flex-direction: column; gap: 9px; }
.feature-card__list li {
  font-size: 14.5px;
  color: var(--ink-soft);
  display: flex; align-items: center; gap: 10px;
}
.feature-card__list li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent-strong); flex-shrink: 0;
}

@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }

/* Three-up variant */
.feature-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) {
  /* Two columns; the odd last card spans the full width so nothing orphans. */
  .feature-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .feature-grid--3 > *:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    min-height: 0;   /* hug the content instead of stretching to card height */
  }
}

/* Phones keep two columns — a single column makes the page endlessly long.
   Cards shrink instead of stacking. */
@media (max-width: 560px) {
  .feature-grid, .feature-grid--3 { gap: 12px; }
  .feature-card {
    min-height: 0;
    padding: 18px 16px;
    gap: 12px;
    border-radius: 14px;
  }
  .feature-card__icon { width: 30px; height: 30px; }
  .feature-card h3 { font-size: 1.05rem; }
  .feature-card__list { gap: 7px; }
  .feature-card__list li { font-size: 13.5px; gap: 8px; }
  .feature-card p.muted { font-size: 13.5px !important; line-height: 1.55 !important; }
}
@media (max-width: 360px) {
  .feature-grid, .feature-grid--3 { grid-template-columns: 1fr; }
}

/* ---------- USP strip: hard facts, no decoration ---------- */
.usp-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(22px, 3vw, 44px);
  margin-top: clamp(40px, 6vh, 64px);
  padding-top: clamp(28px, 4vh, 44px);
  border-top: 1px solid var(--line);
}
.usp__title {
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.usp__title::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-strong);
  flex-shrink: 0;
}
.usp__text { color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; margin-top: 9px; }
@media (max-width: 900px) { .usp-row { grid-template-columns: repeat(2, 1fr); } }
/* Stay two-up on phones; only the type shrinks. */
@media (max-width: 520px) {
  .usp-row { gap: 18px 16px; }
  .usp__title { font-size: 0.94rem; gap: 7px; }
  .usp__text { font-size: 13px; margin-top: 6px; }
}

/* Centred manifesto block (mission statement) */
.mission { max-width: 780px; margin-inline: auto; text-align: center; }
.mission .eyebrow::after {
  content: "";
  width: 26px; height: 1px;
  background: var(--ink-faint);
  display: inline-block;
}
.mission .display { margin-top: 22px; }
.mission .lead { margin-top: 26px; margin-inline: auto; }

/* Split / stat rows */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.split--reverse .split__media { order: -1; }
.split__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  aspect-ratio: 4 / 3;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split__media { order: 0; }
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 48px);
  margin-top: clamp(40px, 6vh, 64px);
  border-top: 1px solid var(--line);
  padding-top: clamp(32px, 5vh, 52px);
}
.stat__num { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 600; letter-spacing: -0.03em; }
.stat__label { color: var(--ink-soft); font-size: 14.5px; margin-top: 6px; }
/* Stats stay three-up on phones — the values are short, so stacking them
   only adds scroll length. */
@media (max-width: 620px) {
  .stat-row { gap: 14px; padding-top: 26px; margin-top: 32px; }
  .stat__num { font-size: clamp(1.5rem, 7vw, 2.1rem); }
  .stat__label { font-size: 12.5px; line-height: 1.4; margin-top: 4px; }
}

/* Closing CTA band */
.cta-band {
  background: var(--bg-deep);
  color: #fff;
  border-radius: clamp(20px, 3vw, 32px);
  padding: clamp(44px, 7vw, 88px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 18ch; }
.cta-band p { color: rgba(255, 255, 255, 0.62); max-width: 48ch; }

/* ---------- Scroll reveal: disabled — content is visible immediately,
   no fade/slide-in as you scroll to it. ---------- */
.reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; }
}

/* ---------- Transparency tiers ---------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 22px);
  margin-top: clamp(34px, 5vh, 56px);
}
/* On phones each tier becomes a compact row: percentage left, meaning right.
   Three stacked cards would eat half a screen. */
@media (max-width: 620px) {
  .tiers { grid-template-columns: 1fr; gap: 10px; }
  .tier {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 16px;
    padding: 16px 18px;
    border-radius: 14px;
  }
  .tier__pct { font-size: 1.75rem; }
  .tier__label { margin-top: 0; font-size: 13.5px; line-height: 1.45; }
  .tier--best { padding-top: 34px; }
  .tier--best .tier__badge { top: 10px; left: 18px; right: auto; }
}
.tier {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 2.4vw, 32px);
  background: var(--bg);
  position: relative;
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease), box-shadow 0.5s var(--ease);
}
.tier:hover { transform: translateY(-5px); box-shadow: 0 22px 46px -30px rgba(0,0,0,0.26); }
.tier--best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.tier__pct { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.tier__label { color: var(--ink-soft); font-size: 14.5px; margin-top: 12px; }
.tier__badge {
  position: absolute; top: 16px; right: 16px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--accent); color: var(--accent-ink);
  padding: 5px 10px; border-radius: 999px;
}

/* Small reassurance note under a form's submit button */
.form-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-note::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4caf7d;
  flex-shrink: 0;
}

/* ---------- FAQ accordion (native <details>, no JS) ---------- */
.faq {
  max-width: 800px;
  margin-top: clamp(30px, 5vh, 52px);
  border-top: 1px solid var(--line);
}
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 4px 22px 0;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-weight: 300;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink-faint);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  color: var(--ink-soft);
  padding: 0 0 24px;
  max-width: 66ch;
  line-height: 1.62;
}

/* ============================================================
   Phone refinements — keep the page compact instead of endlessly
   vertical. Sections breathe less, type steps down, and blocks that
   can sit side by side do so (see the grid rules above).
   ============================================================ */
@media (max-width: 640px) {
  :root {
    --section-y: 56px;
    --gutter: 20px;
  }
  .section--tight { padding-block: 44px; }
  .page-head { padding-top: 44px; padding-bottom: 24px; }
  .page-head .display { margin-top: 14px; }
  .page-head .lead { margin-top: 18px; }

  .display { font-size: clamp(1.9rem, 8.4vw, 2.5rem); }
  .display--sm { font-size: clamp(1.6rem, 7vw, 2rem); }
  .lead { font-size: 1rem; line-height: 1.58; }

  .split { gap: 24px; }
  .split__media { aspect-ratio: 16 / 10; border-radius: 14px; }

  .cta-band { padding: 32px 22px; border-radius: 18px; gap: 18px; }
  .cta-band h2 { font-size: clamp(1.5rem, 6.4vw, 1.9rem); }
  .cta-band p { font-size: 14.5px; }

  .faq summary { padding: 17px 2px 17px 0; font-size: 1rem; }
  .faq details p { padding-bottom: 18px; font-size: 14.5px; }

  /* Full-width buttons read better than half-width pills on a phone */
  .home-intro__row { gap: 10px; }
  .home-intro__row .btn { flex: 1 1 auto; justify-content: center; }
  .btn-lg { --pad-y: 15px; --pad-x: 26px; font-size: 15px; }
}
