/* samvanp.nl — built on the "Sam van P" design system.
   Fonts are self-hosted, so the site makes no third-party requests (GDPR-friendly). */

@font-face { font-family: "Montserrat"; src: url("fonts/montserrat-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("fonts/caveat-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  /* Brand colours */
  --indigo: #2a2d61;
  --delft: #1d4e9e;
  --teal: #19c2c2;
  --chalk: #f7f5fb;
  --violet: #b9a6ff;
  --mint: #c8f2d9;

  /* Roles (Chalk theme) */
  --surface: var(--chalk);
  --surface-raised: #ffffff;
  --ink: var(--delft);
  --ink-muted: #5a5f8f;
  --label: var(--indigo);
  --on-mint: var(--delft);
  --line: #dcd8ea;

  --display: Montserrat, "Helvetica Neue", Arial, sans-serif;
  --body: Inter, "Helvetica Neue", Arial, sans-serif;
  --hand: Caveat, "Segoe Print", "Bradley Hand", cursive;

  --radius-sm: 6px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --radius-btn: 8px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-weight: 700; letter-spacing: -0.02em; }
h2 { font-weight: 600; letter-spacing: -0.01em; }
h3 { font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--delft); }
:focus-visible { outline: 2px solid var(--delft); outline-offset: 2px; }

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

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface-raised); padding: 8px 12px; z-index: 100; }

/* Label: uppercase, tracked, the brand's series-label style */
.eyebrow {
  font-family: var(--body); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--label); margin-bottom: 16px;
}

/* The circled word: mint highlight on chalk, teal outline on indigo/delft */
.hl {
  background: var(--mint); color: var(--on-mint);
  border-radius: var(--radius-pill); padding: 0 0.22em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.circled {
  display: inline-block; border: 2px solid var(--teal);
  border-radius: var(--radius-pill); padding: 0 0.3em; margin: 0 -0.05em;
}
.hand { font-family: var(--hand); font-weight: 600; color: var(--teal); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--chalk) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: baseline; gap: 2px; text-decoration: none; color: var(--indigo); font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand .dot { color: var(--teal); }
.nav { list-style: none; display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; }
.nav a { color: var(--indigo); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav a:hover { color: var(--delft); }
.nav-cta { background: var(--indigo); color: var(--chalk) !important; padding: 8px 18px; border-radius: var(--radius-btn); }
.nav-cta:hover { background: var(--delft); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; padding: 14px 26px; border-radius: var(--radius-btn);
  font-family: var(--body); font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: transform .15s, background-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--indigo); color: var(--chalk); }
.btn-primary:hover { background: var(--delft); }
.btn-ghost { color: var(--indigo); border: 2px solid var(--indigo); }
.btn-teal { background: var(--teal); color: var(--indigo); }
.btn-outline-chalk { color: var(--chalk); border: 2px solid rgba(247,245,251,.55); }

/* Hero */
.hero { padding: 96px 0 72px; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); max-width: 18ch; color: var(--indigo); }
.lede { font-size: 1.22rem; color: var(--ink); max-width: 50ch; margin: 28px 0 36px; }
.hero-facts {
  list-style: none; padding: 28px 0 0; margin: 56px 0 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  color: var(--ink-muted); font-size: 0.95rem;
}
.hero-facts strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--indigo); }

/* Sections */
.section { padding: 88px 0; }
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 40px; max-width: 24ch; color: var(--indigo); }

.problems { padding-top: 0; }
.problem-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 40px;
}
.problem-list li { padding: 18px 0 18px 32px; border-top: 1px solid var(--line); position: relative; }
.problem-list li::before { content: "→"; position: absolute; left: 0; color: var(--delft); font-weight: 600; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 32px; }
.card-num { font-family: var(--display); font-weight: 700; color: var(--delft); font-size: 0.95rem; }
.card h3 { font-size: 1.4rem; margin: 8px 0 12px; color: var(--indigo); }
.card p { color: var(--ink-muted); }
.ticks { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
.ticks li { padding: 4px 0 4px 26px; position: relative; font-size: 0.97rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--delft); font-weight: 700; }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tier { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 28px; }
.tier h3 { font-size: 1.25rem; color: var(--indigo); }
.tier-meta { font-size: 0.85rem; color: var(--ink-muted); font-weight: 600; margin: 6px 0 14px; }
.tier p:last-child { margin: 0; }

/* Indigo band (results) */
.indigo { background: var(--indigo); color: var(--chalk); }
.indigo .eyebrow { color: var(--teal); }
.indigo .section-title { color: var(--chalk); }
.stories { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 48px; }
.story { border-top: 2px solid var(--teal); padding-top: 20px; }
.story h3 { font-size: 1.3rem; color: var(--chalk); margin-bottom: 10px; }
.story p { color: #c5c7e8; margin: 0; }
.section-intro { font-size: 1.15rem; max-width: 56ch; margin: -16px 0 40px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--mint); color: var(--on-mint); font-family: var(--display); font-weight: 700; margin-bottom: 16px;
}
.steps h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--indigo); }
.steps p { color: var(--ink-muted); margin: 0; }
.question { font-family: var(--display); font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 1.7rem); color: var(--indigo); margin: 56px 0 0; }

.about { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; align-items: start; }
.about-text .section-title { margin-bottom: 24px; }
.about-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.about-links a { font-weight: 600; text-decoration: none; }
.about-links a:hover { text-decoration: underline; }
.about-side { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 28px; }
.about-side h3 { font-size: 1.1rem; margin-bottom: 4px; color: var(--indigo); }
.about-side dl { margin: 0; }
.about-side dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--label); margin-top: 18px; }
.about-side dd { margin: 4px 0 0; color: var(--ink-muted); font-size: 0.95rem; }

/* Contact (Delft fill, chalk text, teal circled word) */
.contact { background: var(--delft); color: var(--chalk); }
.contact-inner { max-width: 760px; }
.contact .eyebrow { color: var(--mint); }
.contact h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 20px; color: var(--chalk); }
.contact h2 .hand { font-size: 0.7em; margin-left: 0.3em; white-space: nowrap; }
.contact p { font-size: 1.15rem; margin-bottom: 32px; max-width: 52ch; }

.site-footer { padding: 28px 0; font-size: 0.88rem; color: var(--ink-muted); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--ink-muted); }

/* Tablet */
@media (max-width: 900px) {
  .tiers, .stories { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 40px; }
}

/* Phone */
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .nav { gap: 16px; }
  .nav li:nth-child(2), .nav li:nth-child(3) { display: none; }
  .hero { padding: 56px 0; }
  .lede { font-size: 1.1rem; }
  .hero-facts { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
  .section { padding: 64px 0; }
  .problem-list, .cards, .steps { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .actions .btn { width: 100%; text-align: center; }
}

/* ---------- Motion ---------- */

/* Scroll reveal: blocks rise into place with a small bounce, one after another.
   Only applies when JavaScript is running, so content is never hidden without it. */
.js .reveal {
  opacity: 0;
  transform: translateY(48px);
  transition:
    opacity .7s ease-out var(--d, 0ms),
    transform .9s cubic-bezier(.34, 1.45, .64, 1) var(--d, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Hero: the mint highlight sweeps in behind "human" */
.hero .hl {
  background: linear-gradient(var(--mint), var(--mint)) no-repeat left center / 0% 100%;
  animation: sweep .8s .6s cubic-bezier(.65, 0, .35, 1) forwards;
}
@keyframes sweep { to { background-size: 100% 100%; } }

/* Contact: the teal circle draws in around "customers" */
.js .contact .circled { border-color: transparent; transition: border-color .5s ease .5s, transform .6s cubic-bezier(.34, 1.6, .64, 1) .5s; transform: scale(.92); }
.js .contact .is-visible .circled { border-color: var(--teal); transform: none; }
.js .contact .hand { opacity: 0; transform: translateX(-8px); display: inline-block; transition: opacity .5s ease 1s, transform .5s ease 1s; }
.js .contact .is-visible .hand { opacity: 1; transform: none; }

/* Hover colour pops */
.card, .tier, .about-side { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background-color .25s ease; }
.card:hover {
  transform: translateY(-6px);
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(25, 194, 194, .14), 0 14px 32px rgba(42, 45, 97, .12);
}
.card-num, .card h3, .ticks li::before { transition: color .25s ease; }
.card:hover .card-num { color: var(--teal); }
.card:hover h3 { color: var(--delft); }

.tier:hover {
  transform: translateY(-6px);
  background: var(--mint);
  border-color: var(--mint);
  box-shadow: 0 14px 32px rgba(42, 45, 97, .10);
}
.tier:hover .tier-meta { color: var(--delft); }

.story { transition: border-color .3s ease; }
.story h3 { transition: color .3s ease; }
.story:hover { border-top-color: var(--violet); }
.story:hover h3 { color: var(--teal); }

.steps li::before { transition: background-color .25s ease, color .25s ease, transform .35s cubic-bezier(.34, 1.6, .64, 1); }
.steps li:hover::before { background: var(--teal); color: var(--indigo); transform: scale(1.12); }

.problem-list li::before { transition: transform .25s ease; }
.problem-list li:hover::before { transform: translateX(6px); }

.about-side:hover { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(25, 194, 194, .14); }

.btn-teal:hover { background: var(--mint); }
.btn-outline-chalk:hover { background: rgba(247, 245, 251, .1); border-color: var(--chalk); }
.btn-ghost:hover { background: var(--indigo); color: var(--chalk); }

/* Respect people who turn motion off in their device settings */
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .contact .circled, .js .contact .hand { opacity: 1; transform: none; transition: none; border-color: var(--teal); }
  .hero .hl { animation: none; background-size: 100% 100%; }
  *, *::before { transition-duration: 0s !important; }
}

/* Phone: give small text links a finger-sized tap area (~44px) without changing how they look */
@media (max-width: 680px) {
  .nav a:not(.nav-cta) { display: inline-block; padding: 12px 4px; }
  .nav-cta { display: inline-block; padding: 12px 16px; }
  .about-links a { display: inline-block; padding: 10px 0; }
  .footer-inner a { display: inline-block; padding: 12px 0; margin: -12px 0; }
}

/* About photo */
.about-col { display: grid; gap: 24px; }
.about-photo { width: 100%; max-width: 360px; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-md); display: block; }
@media (max-width: 900px) { .about-photo { max-width: 280px; } }

/* Footer privacy note: full width under the business details */
.footer-inner .privacy { flex-basis: 100%; font-size: 0.82rem; }

/* Very small phones (e.g. iPhone SE, 320px): keep just the logo and Contact so the header fits */
@media (max-width: 360px) {
  .nav li:first-child { display: none; }
}
