/* ============================================================
   Anilinked — marketing website
   Native CSS. Merk-identiteit uit de app: crème + sage-green + misty blue.
   Eén accent (sage-green). Pill-knoppen, cards 20px, inputs 12px.
   Light + dark via prefers-color-scheme. Respecteert reduced-motion.
   ============================================================ */

:root {
  /* Kleuren — licht */
  --bg:            #F4F1EA;
  --bg-soft:       #EFEBE1;
  --surface:       #FBFAF5;
  --surface-2:     #FFFFFF;
  --border:        #E2DCCD;
  --text:          #24271F;
  --text-2:        #5C6157;
  --text-3:        #8A8D82;
  --accent:        #2E7A58;
  --accent-strong: #24614699;
  --accent-ink:    #1E5540;
  --accent-soft:   #DCEAE2;
  --blue:          #6E97A6;
  --blue-soft:     #DCE7EB;
  --amber-soft:    #F3E7CE;
  --on-accent:     #FBFAF5;

  --shadow-sm: 0 1px 2px rgba(60,54,38,.06), 0 2px 8px rgba(60,54,38,.05);
  --shadow-md: 0 8px 24px rgba(46,40,26,.09), 0 2px 6px rgba(46,40,26,.06);
  --shadow-lg: 0 24px 60px rgba(38,33,20,.16), 0 6px 18px rgba(38,33,20,.08);

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --maxw: 1200px;
  --ease: cubic-bezier(.16,1,.3,1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:            #15170F;
    --bg-soft:       #1B1E15;
    --surface:       #1E2118;
    --surface-2:     #262A1F;
    --border:        #343829;
    --text:          #ECEDE4;
    --text-2:        #B4B7A8;
    --text-3:        #868A79;
    --accent:        #55B98A;
    --accent-strong: #55B98A99;
    --accent-ink:    #7ED0A8;
    --accent-soft:   #21362B;
    --blue:          #8FB6C4;
    --blue-soft:     #1E2E34;
    --amber-soft:    #2E2A1D;
    --on-accent:     #10130C;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
    --shadow-md: 0 8px 24px rgba(0,0,0,.4);
    --shadow-lg: 0 24px 60px rgba(0,0,0,.55);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: 'Mulish', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', system-ui, sans-serif;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
  font-weight: 700;
}

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
@media (max-width: 768px) { .section { padding: 64px 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: var(--accent);
}

.lead { color: var(--text-2); font-size: 1.18rem; max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--accent-ink); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.28rem; letter-spacing: -0.02em; }
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: var(--shadow-sm); }
.brand span b { color: var(--accent-ink); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.navlink { font-family: 'Outfit', sans-serif; font-weight: 500; font-size: .98rem; color: var(--text-2); transition: color .18s; }
.nav-links a.navlink:hover { color: var(--text); }
.nav .btn { padding: 10px 20px; font-size: .95rem; }
.nav-toggle { display: none; }
@media (max-width: 860px) {
  .nav-links a.navlink { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto;
  width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(circle at 70% 30%, var(--accent-soft), transparent 62%);
  opacity: .8; z-index: 0; pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.2rem); font-weight: 800; margin: 20px 0 22px; }
.hero h1 em { font-style: normal; color: var(--accent-ink); }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: .95rem; color: var(--text-3); display: flex; align-items: center; gap: 8px; }
.hero-note svg { color: var(--accent); flex: none; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; text-align: left; }
}

/* ---------- Phone mockup ---------- */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  position: relative; width: 300px; aspect-ratio: 300 / 620;
  background: #101109; border-radius: 46px; padding: 11px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.06);
}
.phone-screen {
  position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, var(--accent-soft), transparent 60%),
    var(--surface-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 30px 22px; gap: 14px;
}
.phone-screen .bgline { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .10; z-index: 0; }
.phone-screen > * { position: relative; z-index: 1; }
.phone-notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 92px; height: 24px; background: #101109; border-radius: 14px; z-index: 3; }
.phone-logo { width: 108px; height: 108px; border-radius: 30px; box-shadow: var(--shadow-md); }
.phone-title { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.7rem; color: var(--text); letter-spacing: -0.02em; }
.phone-sub { font-size: .92rem; color: var(--text-2); max-width: 22ch; }
.phone-chips { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 6px; }
.phone-chip { font-family: 'Outfit', sans-serif; font-size: .74rem; font-weight: 600; padding: 6px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }

/* ---------- Value band ---------- */
.valueband { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.value-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.value-item { padding: 32px 28px; display: flex; gap: 16px; align-items: flex-start; }
.value-item + .value-item { border-left: 1px solid var(--border); }
.value-item .ico { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.value-item h3 { font-size: 1.05rem; margin-bottom: 3px; }
.value-item p { font-size: .95rem; color: var(--text-2); }
@media (max-width: 768px) {
  .value-row { grid-template-columns: 1fr; }
  .value-item + .value-item { border-left: none; border-top: 1px solid var(--border); }
}

/* ---------- Section heading ---------- */
.head { max-width: 62ch; margin-bottom: 48px; }
.head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin: 16px 0 16px; }
.head p { color: var(--text-2); font-size: 1.12rem; }

/* ---------- Bento features ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent-strong); }
.card .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: var(--accent-soft); color: var(--accent-ink); }
.card h3 { font-size: 1.32rem; margin-bottom: 9px; }
.card p { color: var(--text-2); font-size: 1rem; }
.card.tint-blue .ico { background: var(--blue-soft); color: var(--blue); }
.card.tint-amber .ico { background: var(--amber-soft); color: #9A6B25; }

.b-6 { grid-column: span 6; } .b-4 { grid-column: span 4; } .b-3 { grid-column: span 3; } .b-2 { grid-column: span 2; }
.card.feature-wide { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; overflow: hidden; }
.card.feature-wide .art {
  align-self: stretch; min-height: 180px; border-radius: var(--r-sm);
  background:
    radial-gradient(90% 120% at 20% 10%, var(--accent-soft), transparent 60%),
    linear-gradient(135deg, var(--blue-soft), var(--surface-2));
  display: grid; place-items: center; color: var(--accent-ink);
}
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .b-6,.b-4,.b-3,.b-2 { grid-column: 1 / -1; }
  .card.feature-wide { grid-template-columns: 1fr; }
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 20px; }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.1rem;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
.step h3 { font-size: 1.2rem; margin-bottom: 7px; }
.step p { color: var(--text-2); font-size: .98rem; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 40px; left: 52px; right: -11px; height: 2px;
  background: linear-gradient(90deg, var(--border), transparent);
}
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:not(:last-child)::after { display: none; }
}
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Highlight (split) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev .split-media { order: -1; }
.split-media {
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md);
  border: 1px solid var(--border); aspect-ratio: 4 / 3;
  background:
    radial-gradient(80% 90% at 30% 15%, var(--accent-soft), transparent 60%),
    linear-gradient(135deg, var(--blue-soft), var(--surface));
  display: grid; place-items: center; position: relative;
}
.split-media .mini-phone { width: 190px; }
.split h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 14px 0 16px; }
.split p { color: var(--text-2); font-size: 1.1rem; margin-bottom: 22px; }
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.02rem; }
.ticks svg { color: var(--accent); flex: none; margin-top: 3px; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.rev .split-media { order: 0; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 4px 24px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.faq details[open] { border-color: var(--accent-strong); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 0; font-family: 'Outfit', sans-serif;
  font-weight: 600; font-size: 1.12rem; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 26px; height: 26px; position: relative; transition: transform .25s var(--ease); color: var(--accent); }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; }
.faq summary .plus::before { top: 12px; left: 4px; right: 4px; height: 2px; }
.faq summary .plus::after { left: 12px; top: 4px; bottom: 4px; width: 2px; transition: transform .25s var(--ease); }
.faq details[open] summary .plus::after { transform: rotate(90deg); }
.faq details p { color: var(--text-2); padding: 0 0 22px; font-size: 1.02rem; }

/* ---------- CTA band ---------- */
.ctaband { position: relative; overflow: hidden; }
.cta-card {
  position: relative; border-radius: var(--r-lg); padding: 64px 48px; text-align: center;
  background:
    radial-gradient(80% 120% at 20% 0%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 55%),
    var(--accent-ink);
  color: var(--on-accent); box-shadow: var(--shadow-lg);
}
.cta-card h2 { color: var(--on-accent); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.cta-card p { color: color-mix(in srgb, var(--on-accent) 82%, transparent); font-size: 1.15rem; max-width: 52ch; margin: 0 auto 30px; }
.cta-card .btn-primary { background: var(--on-accent); color: var(--accent-ink); }
.cta-card .btn-primary:hover { background: #fff; }
@media (max-width: 600px) { .cta-card { padding: 48px 26px; } }

/* ---------- Footer ---------- */
.footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer .brand { margin-bottom: 14px; }
.footer-about { color: var(--text-2); font-size: .98rem; max-width: 36ch; }
.footer h4 { font-family: 'Outfit', sans-serif; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 11px; }
.footer ul a { color: var(--text-2); font-size: .98rem; transition: color .18s; }
.footer ul a:hover { color: var(--accent-ink); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-3); font-size: .9rem; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- Legal / content pages ---------- */
.page-hero { padding: 72px 0 24px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 12px; }
.page-hero p { color: var(--text-2); }
.prose { max-width: 760px; margin: 0 auto; padding: 40px 0 40px; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.prose h3 { font-size: 1.18rem; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--text-2); margin-bottom: 12px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 14px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.prose .updated { display: inline-block; font-size: .9rem; color: var(--text-3); background: var(--surface); border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px; margin-bottom: 8px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: .95rem; }
.field input, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--text);
  background: var(--surface-2); border: 1.5px solid var(--border); border-radius: var(--r-sm);
  padding: 13px 15px; transition: border-color .18s, box-shadow .18s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field textarea { min-height: 150px; resize: vertical; }
.contact-side .card { margin-bottom: 16px; }
.contact-side .card a { color: var(--accent-ink); font-weight: 600; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .btn-primary:hover, .card:hover { transition: none; }
}
