/* 17 Automation, own website.
   Palette comes from Sev (assets/sev/sev.svg). Change colours here only. */

@font-face {
  font-family: "Sora";
  src: url("../assets/fonts/Sora-var.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../assets/fonts/DMSans-var.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --navy: #16233F;
  --navy-2: #1F3158;
  --orange: #F26A1B;
  --orange-dark: #C9520B;     /* orange text on light backgrounds (contrast) */
  --orange-soft: #FDEBDD;
  --bg: #FFFFFF;
  --tint: #F4F7FB;
  --line: #DCE3EE;
  --grey: #5A6478;
  --ok: #1F9D6B;

  --font-head: "Sora", "Arial Black", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(22,35,63,.06), 0 12px 32px -12px rgba(22,35,63,.18);
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.14; margin: 0; letter-spacing: -.025em; }
p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 32px, 820px); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1.2 var(--font-head); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn--primary { background: var(--orange); color: var(--navy); box-shadow: 0 8px 20px -8px rgba(242,106,27,.7); }
.btn--primary:hover { transform: translateY(-2px); background: #FF7A2E; }
.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--lg { padding: 16px 28px; font-size: 1.0625rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.logo__img { height: 56px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 24px; }
.nav__list { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav__list a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--navy); }
.nav__list a:hover, .nav__list a[aria-current="page"] { color: var(--orange-dark); }

/* dropdowns (Producten, Over ons) */
.nav__list > li > a { display: inline-flex; align-items: center; gap: 6px; padding: 26px 0; }
.has-sub { position: relative; }
.has-sub > a::after {
  content: ""; width: 6px; height: 6px; margin-top: -3px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  rotate: 45deg; transition: rotate .2s ease;
}
.has-sub:hover > a::after, .has-sub:focus-within > a::after { rotate: 225deg; margin-top: 3px; }
.subnav {
  position: absolute; top: calc(100% - 8px); left: -18px; min-width: 250px; z-index: 5;
  list-style: none; margin: 0; padding: 10px; background: #fff;
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(.98); transform-origin: 20px 0;
  transition: opacity .18s ease, transform .22s cubic-bezier(.2,.8,.2,1), visibility .18s;
}
.has-sub:hover .subnav, .has-sub:focus-within .subnav { opacity: 1; visibility: visible; transform: none; }
.subnav a { display: block; padding: 10px 14px; border-radius: 10px; }
.subnav a:hover, .subnav a[aria-current="page"] { background: var(--tint); }
.nav__cta { padding: 10px 20px; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--navy); border-radius: 2px; margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


/* ---------- Language switch ---------- */
.lang { display: flex; align-items: center; gap: 8px; font: 700 .95rem/1 var(--font-head); letter-spacing: .02em; }
.lang button { background: none; border: 0; padding: 8px 2px; cursor: pointer; font: inherit; color: var(--grey); transition: color .15s ease; }
.lang button:hover { color: var(--navy); }
.lang button[aria-pressed="true"] { color: var(--navy); cursor: default; }
.lang__sep { color: var(--line); font-weight: 400; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--tint); padding: 72px 0 88px; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 20px; }
.hl { color: var(--orange-dark); }
.lead { font-size: 1.2rem; color: var(--grey); max-width: 38em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; font-size: .95rem; font-weight: 600; }
.hero__facts li::before { content: "✓"; color: var(--ok); margin-right: 8px; font-weight: 700; }

.hero__visual { position: relative; display: grid; place-items: center; min-height: 440px; }
.hero__glow {
  position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,106,27,.28), rgba(242,106,27,0) 70%);
}
.sev--hero { position: relative; width: min(280px, 60%); animation: float 5s ease-in-out infinite; }
.sev__ball { animation: pulse 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.sev__eyes { animation: blink 5s infinite; transform-box: fill-box; transform-origin: center; }
.sev__wave { animation: wave 2.6s ease-in-out infinite; transform-box: view-box; transform-origin: 146px 110px; }

.float-card {
  position: absolute; display: flex; gap: 12px; align-items: center;
  background: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow);
  font-size: .85rem; line-height: 1.3; max-width: 250px;
}
.float-card strong { display: block; font-family: var(--font-head); font-size: .95rem; }
.float-card small { color: var(--grey); font-size: .8rem; }
.float-card__icon { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--orange-soft); color: var(--orange-dark); font-size: 1.1rem; }
.float-card--a { top: 8px; left: -8px; animation: float 6s ease-in-out infinite; }
.float-card--b { bottom: 96px; right: -12px; animation: float 7s ease-in-out -2s infinite; }
.float-card--c { bottom: 8px; left: 8px; animation: float 6.5s ease-in-out -4s infinite; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.25); } }
@keyframes blink { 0%,92%,100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes wave { 0%,100% { transform: rotate(0); } 50% { transform: rotate(-14deg); } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--navy); color: #fff; }
.section__head { margin-bottom: 56px; }
.section__head--center { text-align: center; max-width: 760px; margin-inline: auto; margin-bottom: 56px; }
.section__head h2, .about__text h2, .contact__text h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.section__intro { margin-top: 16px; font-size: 1.125rem; color: var(--grey); }
.section--dark .section__intro { color: #B9C4DA; }

/* ---------- Feature rows ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 40px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature--flip .feature__text { order: 2; }
.feature h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 10px 0 14px; }
.tag {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--navy); color: #fff; font: 700 .75rem/1.4 var(--font-head); letter-spacing: .05em; text-transform: uppercase;
}
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--orange); color: var(--navy); font-size: .8rem; font-weight: 800;
}
.checks--compact { gap: 10px; font-size: .975rem; margin-bottom: 28px; }
.note { margin-top: 20px; font-size: .95rem; color: var(--grey); font-style: italic; }
.link { font-weight: 700; color: var(--orange-dark); text-decoration: none; }
.link:hover { text-decoration: underline; }

.feature__visual { display: grid; place-items: center; }
.mock { width: 100%; max-width: 480px; background: var(--tint); border-radius: var(--radius); padding: 28px; }
.mock--sev { display: grid; place-items: center; background: var(--orange-soft); min-height: 340px; }
.mock--sev img { width: 190px; }
.mock--stack { display: grid; gap: 16px; background: var(--tint); }
.feature .mock { box-shadow: inset 0 0 0 1px var(--line); }

.mock--browser { padding: 0; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: var(--tint); border-bottom: 1px solid var(--line); }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: #CBD5E4; }
.mock__url { margin-left: 10px; flex: 1; font-size: .75rem; color: var(--grey); background: #fff; border-radius: 999px; padding: 3px 12px; }
.mock__body { padding: 20px; display: grid; gap: 16px; }
.mock-site__hero { display: grid; gap: 8px; padding: 20px; border-radius: var(--radius-sm); background: var(--navy); }
.mock-site__hero b { height: 14px; width: 70%; background: #fff; border-radius: 6px; }
.mock-site__hero em { height: 8px; width: 50%; background: #5A6478; border-radius: 4px; }
.mock-site__hero u { height: 26px; width: 110px; background: var(--orange); border-radius: 999px; margin-top: 6px; }
.mock-site__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-site__row span { height: 64px; border-radius: 10px; background: var(--tint); border: 1px solid var(--line); }
.mock-site__bar { height: 12px; width: 60%; border-radius: 6px; background: var(--tint); }

.mail { background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 18px; display: grid; gap: 10px; }
.mail__head { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: .95rem; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.mail__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.mail__row { display: grid; grid-template-columns: 80px 1fr; gap: 10px; align-items: center; font-size: .85rem; color: var(--grey); }
.mail__row i { display: block; height: 10px; width: 60%; border-radius: 5px; background: var(--line); }
.mail__row i.long { width: 90%; }
.sms { justify-self: end; max-width: 78%; background: var(--navy); color: #fff; border-radius: 18px 18px 4px 18px; padding: 12px 16px; font-size: .9rem; }
.sms small { display: block; opacity: .6; font-size: .7rem; letter-spacing: .08em; margin-bottom: 2px; }
.sms p { margin: 0; }

.check-card { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 18px; font-weight: 600; font-size: .95rem; }
.check-card p { margin: 0; }
.check-card__box { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--orange); color: var(--navy); display: grid; place-items: center; font-weight: 800; }
.chip { justify-self: start; padding: 8px 14px; border-radius: 999px; font-size: .85rem; font-weight: 700; }
.chip--ok { background: #DDF4EA; color: #14694A; }

.report { background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 20px; }
.report__head { font: 700 1rem var(--font-head); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.report__head small { font: 600 .75rem var(--font-body); color: var(--grey); margin-left: 6px; }
.report ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .92rem; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--line); margin-right: 10px; }
.dot--ok { background: var(--ok); }

/* ---------- Cards ---------- */
.card { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: inset 0 0 0 1px var(--line); }
.who-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.who h3, .who h2 { font-size: 1.5rem; margin: 12px 0; }
.who--active { box-shadow: inset 0 0 0 2px var(--orange); }
.who__badge { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--orange); color: var(--navy); font: 700 .75rem var(--font-head); letter-spacing: .05em; text-transform: uppercase; }
.who__badge--soft { background: var(--tint); color: var(--grey); }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why { transition: transform .2s ease, box-shadow .2s ease; }
.why:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--navy); color: var(--orange); font-size: 1.4rem; margin-bottom: 16px; }
.why h3 { font-size: 1.25rem; margin-bottom: 8px; }
.why p { margin: 0; color: var(--grey); }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.step { padding: 8px 36px; border-left: 1px solid rgba(255,255,255,.18); }
.step:first-child { border-left: 0; padding-left: 0; }
.step__num {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
  background: var(--orange); color: var(--navy); font: 700 1.5rem var(--font-head); margin-bottom: 20px;
}
.step h3, .step h2 { font-size: 1.4rem; margin-bottom: 10px; }
.step p { color: #B9C4DA; margin: 0; }
.steps__cta { text-align: center; margin: 56px 0 0; }

/* ---------- Pricing ---------- */
.pricing--start { align-items: start !important; }
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius); padding: 28px 24px; box-shadow: inset 0 0 0 1px var(--line);
}
.plan h3, .plan h2 { font-size: 1.4rem; }
.plan__price { margin: 10px 0 6px; color: var(--grey); font-size: .95rem; }
.plan__price span { font: 700 2.4rem/1 var(--font-head); color: var(--navy); }
.plan__for { font-weight: 600; min-height: 3.2em; }
.plan .checks { flex: 1; align-content: start; }
.plan--featured { background: var(--navy); color: #fff; box-shadow: 0 24px 48px -20px rgba(22,35,63,.55); }
.plan--featured .plan__price, .plan--featured .plan__price span { color: #fff; }
.plan--featured .plan__price span { text-decoration: line-through; text-decoration-thickness: 2px; opacity: .6; }
.plan--featured:not(:has([data-intro-offer])) .plan__price span { text-decoration: none; opacity: 1; }
.plan__ribbon {
  position: absolute; top: -13px; right: 20px; background: var(--orange); color: var(--navy);
  font: 700 .75rem var(--font-head); letter-spacing: .05em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
}
.plan__offer { background: rgba(242,106,27,.18); border-radius: var(--radius-sm); padding: 10px 14px; font-size: .92rem; margin-bottom: 14px; }
.plan__offer strong { color: #FFB27F; }
.pricing__note { text-align: center; color: var(--grey); font-size: .95rem; margin: 28px 0 40px; }


/* ---------- Testimonials and case studies (hidden for now) ---------- */
.quote-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote-card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: inset 0 0 0 1px var(--line); }
.stars { color: var(--orange); font-size: 1.15rem; letter-spacing: 2px; margin-bottom: 12px; }
.quote-card blockquote { margin: 0 0 16px; font-size: 1.05rem; }
.quote-card__who { margin: 0; font-size: .92rem; color: var(--grey); }
.quote-card__who strong { color: var(--navy); }

.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.case-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.case-card__img { aspect-ratio: 16/9; background: var(--tint); }
.case-card__body { padding: 24px 28px 28px; }
.case-card__meta { color: var(--grey); font-size: .85rem; margin-bottom: 6px; }
.case-card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.case-card__facts { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 10px; }
.case-card__facts li { display: grid; padding: 12px 14px; background: var(--tint); border-radius: var(--radius-sm); }
.case-card__facts span { color: var(--grey); font-size: .9rem; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 260px 1fr; gap: 64px; align-items: center; max-width: 960px; }
.about__mascot { display: grid; place-items: center; background: var(--orange-soft); border-radius: 50%; aspect-ratio: 1; padding: 24px; }
.about__mascot img { width: 100%; }
.about__text h2 { margin-bottom: 18px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
  font: 700 1.05rem/1.35 var(--font-head);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; translate: 0 -50%;
  width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
  background: var(--tint); font-size: 1.3rem; transition: rotate .2s ease, background-color .2s ease;
}
.faq details[open] summary::after { rotate: 45deg; background: var(--orange); }
.faq details > div { padding: 0 24px 8px; color: var(--grey); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact__text p { color: #B9C4DA; font-size: 1.125rem; margin-top: 16px; }
.contact__sev { margin-top: 24px; }
.contact__title { color: #fff; font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: 36px; }
.form { background: #fff; color: var(--navy); border-radius: var(--radius); padding: 32px; display: grid; gap: 18px; }
.form__row { display: grid; gap: 6px; }
.form__split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { font-weight: 600; font-size: .92rem; }
.optional { font-weight: 400; color: var(--grey); }
.form input, .form textarea {
  width: 100%; font: inherit; color: inherit; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,106,27,.25); }
.form input[aria-invalid="true"], .form textarea[aria-invalid="true"] { border-color: #C0392B; }
.form__hint { color: var(--grey); font-size: .82rem; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__legal { font-size: .82rem; color: var(--grey); margin: 0; }
.form__status { margin: 0; font-weight: 600; }
.form__status:empty { display: none; }
.form__status.is-ok { color: #14694A; background: #DDF4EA; padding: 14px 16px; border-radius: var(--radius-sm); }
.form__status.is-error { color: #8F2A1E; background: #FBE4E0; padding: 14px 16px; border-radius: var(--radius-sm); }

/* ---------- Thank-you panel with video (replaces the form) ---------- */
.form-done { background: #fff; color: var(--navy); border-radius: var(--radius); padding: 32px; display: grid; gap: 14px; outline: none; }
.form-done[hidden] { display: none; }
.form-done h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.form-done p { margin: 0; color: var(--grey); }
.form-done__media { display: grid; gap: 10px; }
.form-done__media[hidden] { display: none; }
.form-done video { width: 100%; max-height: 420px; border-radius: var(--radius-sm); background: var(--navy); }
.form-done__note { font-size: .92rem; }

/* ---------- Footer ---------- */
.site-footer { background: #0F1A30; color: #B9C4DA; padding: 56px 0 28px; font-size: .95rem; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__brand img { width: 220px; }
.footer__brand p { margin-top: 14px; max-width: 30em; }
.footer__col { display: grid; gap: 8px; align-content: start; }
.footer__col h2 { color: #fff; font-size: 1rem; margin-bottom: 6px; }
.footer__col a { text-decoration: none; }
.footer__col a:hover { color: #fff; text-decoration: underline; }
.footer__bottom { padding-top: 24px; }
.footer__bottom p { margin: 0; }

/* ---------- Legal page ---------- */
.legal { padding: 72px 0 96px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 20px; }
.legal h2 { font-size: 1.4rem; margin: 32px 0 10px; }
.legal__todo { background: var(--orange-soft); border-radius: var(--radius-sm); padding: 16px 20px; }
.legal__meta { color: var(--grey); font-size: .9rem; margin: -8px 0 20px; }
.legal p, .legal ul { margin-bottom: 14px; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }
.todo { background: var(--orange-soft); color: var(--orange-dark); font-weight: 600; border-radius: 4px; padding: 0 6px; }

/* ---------- Scroll reveal (progressive: only when JS runs) ----------
   A block tilts up from slightly below and behind, a few degrees only. JS staggers
   siblings through --i and removes the classes once the block has arrived. */
.js .reveal {
  opacity: 0;
  transform: perspective(900px) translate3d(0, 26px, -50px) rotateX(7deg);
  transform-origin: 50% 100%;
  transition: opacity .7s ease, transform .85s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--i, 0) * 90ms);
  will-change: opacity, transform;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* gentle depth in the hero while scrolling (--scroll is set in main.js) */
.hero__visual { transform: translate3d(0, calc(var(--scroll, 0) * -.06px), 0); }
.hero__copy { transform: translate3d(0, calc(var(--scroll, 0) * .03px), 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .lang { margin-left: auto; }
  .nav {
    position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch;
    gap: 0; padding: 12px 16px 20px; background: #fff; border-bottom: 1px solid var(--line);
    display: none; max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a, .nav__list > li > a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .has-sub > a::after { display: none; }
  .subnav {
    position: static; opacity: 1; visibility: visible; transform: none; min-width: 0;
    border: 0; box-shadow: none; padding: 0 0 0 16px; margin: 0;
  }
  .subnav a { padding: 12px 4px; border-radius: 0; font-weight: 500; }
  .subnav--mega { display: block; min-width: 0; left: 0; padding: 0 0 0 16px; }
  .subnav--mega a { padding: 12px 4px; }
  .subnav__icon { width: 36px; height: 36px; }
  .subnav a:hover, .subnav a[aria-current="page"] { background: none; }
  .nav__cta { margin-top: 16px; }
}
@media (max-width: 900px) {
  .pricing { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .hero { padding: 48px 0 64px; }
  .hero__grid, .feature, .contact, .about { grid-template-columns: 1fr; gap: 36px; }
  .hero__visual { min-height: 400px; }
  .feature--flip .feature__text { order: 0; }
  .section { padding: 72px 0; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .step, .step:first-child { border-left: 0; padding: 0; }
  .quote-grid, .who-grid { grid-template-columns: 1fr; }
  .about__mascot { max-width: 220px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .pricing, .why-grid, .form__split { grid-template-columns: 1fr; }
    .float-card { max-width: 210px; padding: 10px 12px; }
  .hero__visual { min-height: 470px; align-items: end; }
  .sev--hero { width: 52%; }
  .float-card--a { top: 0; left: 0; }
  .float-card--b { top: 78px; bottom: auto; right: 0; }
  .float-card--c { bottom: 0; left: 0; }
  .hero__actions .btn { width: 100%; }
  .form { padding: 22px; }
}

/* =====================================================================
   Multi-page additions: page headers, product tiles, animated stages
   ===================================================================== */

.ico { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn--ghost-light { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn--ghost-light:hover { background: #fff; color: var(--navy); }
.tag--soft { background: var(--orange-soft); color: var(--orange-dark); }
.section--tight { padding: 40px 0 72px; }

/* ---------- Products mega menu ---------- */
.subnav--mega { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; min-width: 600px; left: -60px; padding: 12px; }
.subnav--mega a { display: flex; gap: 14px; align-items: flex-start; padding: 12px; }
.subnav--mega-one { grid-template-columns: 1fr; min-width: 320px; left: -18px; }
.subnav__icon {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--tint); color: var(--navy); transition: background-color .2s ease;
}
.subnav--mega a:hover .subnav__icon { background: var(--orange); }
.subnav__text { display: grid; gap: 2px; }
.subnav__text strong { font: 700 .95rem/1.3 var(--font-head); letter-spacing: -.01em; color: var(--navy); }
.subnav__text small { font-size: .85rem; line-height: 1.4; color: var(--grey); font-weight: 400; }
.who-grid--single { grid-template-columns: minmax(0, 560px); justify-content: center; }

/* ---------- Page header ---------- */
.page-hero { background: var(--tint); padding: 64px 0 56px; }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); max-width: 22em; margin-bottom: 14px; }
.page-hero .lead { margin: 0; }
.page-hero--tabs { padding-bottom: 0; }
.crumb { display: inline-block; margin-bottom: 18px; font-weight: 600; font-size: .92rem; color: var(--grey); text-decoration: none; }
.crumb:hover { color: var(--orange-dark); }
.product-hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.product-hero__copy .tag { display: block; width: max-content; margin-bottom: 14px; }
.product-hero__copy h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.product-hero .hero__actions { margin-bottom: 0; }

.subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.subtabs a {
  padding: 12px 18px; border-radius: 12px 12px 0 0; text-decoration: none;
  font: 600 .95rem var(--font-head); color: var(--grey); transition: color .15s ease, background-color .15s ease;
}
.subtabs a:hover { color: var(--navy); }
.subtabs a[aria-current="page"] { background: #fff; color: var(--navy); box-shadow: inset 0 3px 0 var(--orange); }

/* ---------- Product tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  display: flex; gap: 18px; align-items: flex-start; padding: 26px; border-radius: var(--radius);
  background: #fff; box-shadow: inset 0 0 0 1px var(--line); text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow), inset 0 0 0 1px var(--orange); }
.tile__icon {
  flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--tint);
  display: grid; place-items: center; color: var(--navy); transition: background-color .25s ease;
}
.tile:hover .tile__icon { background: var(--orange); }
.tile__body { display: grid; gap: 4px; }
.tile__body strong { font: 700 1.05rem/1.3 var(--font-head); letter-spacing: -.01em; }
.tile__body span { color: var(--grey); font-size: .97rem; }
.tile__tag {
  justify-self: start; margin-top: 8px; padding: 3px 10px; border-radius: 999px; background: var(--navy); color: #fff;
  font: 700 .68rem/1.5 var(--font-head); letter-spacing: .06em; text-transform: uppercase; font-style: normal;
}

/* ---------- Product page blocks ---------- */
.mini-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mini-step { padding: 26px; border-radius: var(--radius); background: var(--tint); }
.mini-step__num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 14px;
  background: var(--orange); color: var(--navy); font: 700 1.1rem var(--font-head);
}
.mini-step h3, .mini-step h2 { font-size: 1.1rem; margin-bottom: 6px; }
.mini-step p { margin: 0; color: var(--grey); }

.why-block { text-align: center; }
.why-block__text { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.6; margin-bottom: 16px; }
.why-block .note { margin-top: 0; }

.prodnav__inner { display: flex; justify-content: space-between; gap: 16px; }
.prodnav__link {
  display: grid; gap: 2px; min-width: 190px; padding: 16px 22px; border-radius: 16px; text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--line); transition: transform .2s ease, box-shadow .2s ease;
}
.prodnav__link:hover { transform: translateY(-3px); box-shadow: var(--shadow), inset 0 0 0 1px var(--orange); }
.prodnav__link span { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--grey); }
.prodnav__link strong { font-family: var(--font-head); }
.prodnav__link--next { text-align: right; }

.empty { text-align: center; padding: 48px 24px; border-radius: var(--radius); background: var(--tint); box-shadow: inset 0 0 0 1px var(--line); }
.empty img { width: 120px; height: auto; margin-bottom: 8px; }
.empty h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 8px; }
.empty p { color: var(--grey); margin-bottom: 20px; }

/* ---------- Mascot on dark backgrounds ----------
   Sev is navy, so on the navy sections he sits on a light disc with an orange ring. */
.sev-badge {
  flex: none; display: grid; place-items: center; width: 132px; aspect-ratio: 1; overflow: hidden;
  border-radius: 50%; background: var(--orange-soft);
  box-shadow: 0 0 0 5px rgba(242,106,27,.55), 0 20px 44px -14px rgba(0,0,0,.55);
}
.sev-badge img { width: 70%; height: auto; margin-top: 6px; }
.sev-badge--lg { width: 210px; margin-top: 32px; }

.cta-band { background: var(--navy); color: #fff; padding: 52px 0; }
.cta-band__inner { display: flex; align-items: center; gap: 32px; }
.cta-band__text { flex: 1; }
.cta-band__text h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band__text p { margin: 8px 0 0; color: #B9C4DA; }

/* ---------- Animated stage (the "what it does" picture on product pages) ----------
   JS (main.js) walks data-steps steps and puts .on on [data-at] elements whose step has
   arrived and .gone on [data-until] elements. Without JS everything shows its final state. */
.stage {
  position: relative; display: grid; align-content: center; gap: 14px; min-height: 410px; padding: 54px 28px 28px;
  border-radius: 28px; overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, rgba(22,35,63,.10) 1px, transparent 0) 0 0 / 22px 22px,
    linear-gradient(180deg, #fff, var(--tint));
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  transform: perspective(1400px) rotateY(-4deg) rotateX(2deg);
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.stage:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.stage__tag {
  position: absolute; top: 16px; left: 18px; padding: 4px 11px; border-radius: 999px; background: #fff;
  font: 700 .68rem/1.5 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--grey);
  box-shadow: inset 0 0 0 1px var(--line);
}
.stage--col > :not(.stage__tag) { width: 100%; max-width: 380px; margin-inline: auto; }
.stage--col > .chip { width: auto; justify-self: center; }
.stage--duo { grid-template-columns: 1fr 1fr; align-items: center; gap: 22px; }
.stage--center { place-items: center; align-content: center; }
.stage .mock { max-width: 430px; width: 100%; margin-inline: auto; }

/* step mechanics */
.stage .at-show { transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.stage.is-anim .at-show:not(.on) { opacity: 0; transform: translate3d(0, 14px, 0) scale(.96); }
.stage .at-grow { transform-origin: left center; transition: transform .8s ease-out; }
.stage.is-anim .at-grow:not(.on) { transform: scaleX(0); }
.stage .at-tick { transition: background-color .35s ease, color .35s ease, transform .4s cubic-bezier(.3,1.6,.5,1); transition-delay: var(--d, 0s); }
.stage.is-anim .check-card__box.at-tick:not(.on),
.stage.is-anim .tickbox.at-tick:not(.on) { background: var(--line); color: transparent; }
.stage.is-anim .star.at-tick:not(.on) { color: #D5DCE8; transform: scale(.8); }
.stage .is-transient { display: none; }
.stage.is-anim .is-transient { display: grid; }
.stage.is-anim .typing.is-transient { display: flex; }
.stage .gone { opacity: 0; visibility: hidden; }
.stage .typing.gone { display: none; }

/* scene: website */
.live { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: #DDF4EA; color: #14694A; font-size: .72rem; font-weight: 700; }
.w-nav { display: flex; align-items: center; gap: 10px; }
.w-logo { width: 56px; height: 16px; border-radius: 6px; background: var(--navy); margin-right: auto; }
.w-nav span { width: 30px; height: 8px; border-radius: 4px; background: var(--line); }
.w-contact { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--tint); }
.w-contact i { flex: 1; height: 10px; border-radius: 5px; background: var(--line); }
.w-contact u { width: 74px; height: 26px; border-radius: 999px; background: var(--orange); }

/* scene: aanvragen */
.s-form { display: grid; gap: 12px; padding: 18px; border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow); }
.s-form__title { padding-bottom: 10px; border-bottom: 1px solid var(--line); font: 700 .95rem var(--font-head); }
.s-field { display: grid; gap: 5px; font-size: .8rem; color: var(--grey); }
.s-field i { display: block; width: 72%; height: 12px; border-radius: 6px; background: #CBD5E4; }
.s-field i.long { width: 100%; height: 26px; border-radius: 8px; }
.s-btn {
  text-align: center; padding: 10px; border-radius: 999px; background: var(--orange); color: var(--navy);
  font: 700 .9rem var(--font-head); transition: transform .3s ease, background-color .3s ease, color .3s ease;
}
.stage[data-step="4"] .s-btn { transform: scale(.94); background: var(--navy); color: #fff; }
.s-thanks { justify-self: start; }
.s-out { display: grid; gap: 14px; }
.env {
  position: absolute; left: 50%; top: 40%; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; background: var(--navy); color: #fff; font-size: 1.15rem;
  opacity: 0; transform: translate(-130%, 0) scale(.6); pointer-events: none;
  transition: transform .8s cubic-bezier(.5,0,.2,1), opacity .4s ease;
}
.stage[data-step="4"] .env { opacity: 1; transform: translate(-130%, 0) scale(1); }
.stage[data-step="5"] .env { opacity: 0; transform: translate(60%, 0) scale(.8); }

/* scene: reviews */
.mail__btn { width: max-content; padding: 8px 14px; border-radius: 999px; background: var(--orange); color: var(--navy); font: 700 .8rem var(--font-head); }
.review { display: grid; gap: 10px; padding: 16px 18px; border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow); }
.review__stars { display: flex; gap: 4px; font-size: 1.5rem; line-height: 1; }
.star { color: var(--orange); }
.review i { display: block; height: 10px; width: 85%; border-radius: 5px; background: var(--line); }

/* scene: gemiste oproepen */
.phone { position: relative; width: 232px; height: 350px; padding: 10px; border-radius: 38px; background: var(--navy); box-shadow: var(--shadow); }
.phone__notch { position: absolute; top: 17px; left: 50%; translate: -50% 0; z-index: 2; width: 70px; height: 18px; border-radius: 999px; background: var(--navy); }
.phone__screen { position: relative; height: 100%; display: grid; align-content: end; padding: 14px; border-radius: 30px; overflow: hidden; background: #fff; }
.call {
  position: absolute; inset: 0; place-content: center; justify-items: center; gap: 6px; text-align: center;
  background: linear-gradient(180deg, var(--navy-2), var(--navy)); color: #fff; transition: opacity .4s ease, visibility .4s;
}
.call strong { font-family: var(--font-head); }
.call small { color: #B9C4DA; }
.call__avatar {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 8px;
  border-radius: 50%; background: var(--orange); color: var(--navy);
}
.call__avatar::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(242,106,27,.75); animation: ring 1.6s ease-out infinite; }
.phone__missed { position: absolute; top: 58px; left: 0; right: 0; text-align: center; }
.chip--bad { background: #FBE4E0; color: #8F2A1E; }
.phone__thread { display: grid; gap: 8px; justify-items: start; }
.sms--in { justify-self: start; max-width: 94%; background: var(--tint); color: var(--navy); border-radius: 18px 18px 18px 4px; }
.phone__auto { font-size: .72rem; color: var(--grey); }

/* scene: vindbaarheid */
.gsearch { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); font-size: .92rem; color: var(--grey); }
.gsearch .ico { width: 18px; height: 18px; }
.gprofile { padding: 18px; border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow); }
.gprofile__head { display: flex; align-items: center; gap: 12px; }
.gprofile__head strong { display: block; font-family: var(--font-head); }
.gprofile__head small { color: var(--grey); }
.gprofile__avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 1.1rem var(--font-head); }
.gcheck { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; font-size: .93rem; }
.gcheck li { display: flex; align-items: center; gap: 10px; }
.tickbox { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #fff; font-size: .75rem; font-weight: 800; }

/* scene: AI-vindbaarheid */
.chat { display: grid; gap: 12px; padding: 16px; border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow); }
.chat__head { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font: 700 .9rem var(--font-head); }
.chat__head .ico { width: 18px; height: 18px; color: var(--orange-dark); }
.bubble { max-width: 90%; padding: 12px 16px; border-radius: 18px; font-size: .95rem; }
.bubble--user { justify-self: end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.bubble--ai { justify-self: start; background: var(--tint); border-bottom-left-radius: 4px; }
.bubble mark { padding: 0 5px; border-radius: 6px; background: var(--orange-soft); color: var(--orange-dark); font-weight: 700; }
.typing { gap: 5px; padding: 15px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9AA6BA; animation: dot 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
.chat__source { display: block; margin-top: 8px; font-size: .75rem; color: var(--grey); }

@keyframes ring { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes dot { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-4px); opacity: 1; } }

@media (max-width: 900px) {
  .product-hero { grid-template-columns: 1fr; gap: 36px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .mini-steps { grid-template-columns: 1fr; }
  .page-hero { padding: 48px 0 40px; }
  .page-hero--tabs { padding-bottom: 0; }
  .stage { min-height: 360px; transform: none; }
}
@media (max-width: 700px) {
  .cta-band__inner { flex-direction: column; text-align: center; }
  .cta-band__text { flex: none; }
  .sev-badge--lg { margin-inline: auto; }
  .prodnav__inner { flex-direction: column; }
  .prodnav__link--next { text-align: left; }
}
@media (max-width: 600px) {
  .tiles { grid-template-columns: 1fr; }
  .stage--duo { grid-template-columns: 1fr; }
  .env { display: none; }
  .stage { padding: 54px 18px 22px; }
  .subtabs a { padding: 10px 12px; font-size: .88rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__visual, .hero__copy { transform: none; }
  .stage { transform: none; }
}

/* =====================================================================
   Mobile polish. Everything here is inside max-width media queries, so
   screens wider than 1100px are untouched. Kept at the end of the file so
   it wins over the base rules above.
   ===================================================================== */
.mobile-cta { display: none; }

@media (max-width: 1100px) {
  /* menu: products list as one readable column, scroll inside the panel, page behind it stays put */
  .nav { max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  html.menu-open { overflow: hidden; }
  .subnav--mega { display: block; grid-template-columns: none; min-width: 0; left: 0; padding: 0 0 0 8px; }
  .subnav--mega li { margin: 0; }
  .subnav--mega a { padding: 12px 4px; min-height: 44px; }
  .site-header { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }

  /* touch targets: at least 44px */
  .lang button { min-width: 44px; min-height: 44px; padding: 0 6px; }
  .nav-toggle { min-width: 44px; min-height: 44px; }
  .crumb { padding: 10px 0; margin-bottom: 8px; }
  .subtabs a { min-height: 44px; display: inline-flex; align-items: center; }
  .footer__col a { display: inline-block; padding: 10px 0; }
  .footer__col { gap: 0; }
  .legal a, .form__legal a, .note a, .why-block a { padding-block: 12px; }
  .link { display: inline-block; padding: 10px 0; }
}

@media (max-width: 900px) {
  /* sticky call-to-action bar (hidden on the contact page itself) */
  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: rgba(255,255,255,.96); border-top: 1px solid var(--line); backdrop-filter: blur(10px);
  }
  .mobile-cta .btn { width: 100%; }
  .mobile-cta { transition: transform .25s ease; }
  .mobile-cta.is-hidden { transform: translateY(110%); }
  body[data-page="contact"] .mobile-cta { display: none; }
  /* contact page: intro, then the form, then the mascot */
  .contact__text { display: contents; }
  .contact__text > p { order: 1; margin-top: 0; }
  .contact > form, .contact > .form-done { order: 2; }
  .contact__text > .sev-badge { order: 3; }

  /* stays visible with the menu open: above the menu panel, which stops above it */
  .mobile-cta { z-index: 60; }
  .nav { max-height: calc(100vh - 72px - 76px - env(safe-area-inset-bottom, 0px)); max-height: calc(100dvh - 72px - 76px - env(safe-area-inset-bottom, 0px)); }
  /* keep the last content clear of the bar */
  body:not([data-page="contact"]) .site-footer { padding-bottom: calc(28px + 76px + env(safe-area-inset-bottom, 0px)); }
  .site-footer { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
}

@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .section--tight { padding: 32px 0 56px; }
  .page-hero { padding: 40px 0 36px; }
  .page-hero--tabs { padding-bottom: 0; }
  .legal { padding: 40px 0 64px; }
  .tile__tag, .stage__tag, .tag { font-size: .75rem; }
  .form__legal { font-size: .875rem; }
  .legal p, .legal li, .form__legal, .footer__brand p, .lead { overflow-wrap: break-word; }
  .section__head--center { margin-bottom: 36px; }
}

/* Home hero fills the first screen on desktop and tablet, so the next section starts below the fold.
   Phones keep the natural height (no empty gap). */
@media (min-width: 901px) {
  .hero { min-height: calc(100vh - 73px); min-height: calc(100svh - 73px); display: grid; align-items: center; }
}

/* Home hero on phones: no scroll parallax (it slid the cards over the text above), cards sit around the mascot */
@media (max-width: 900px) {
  .hero__visual, .hero__copy { transform: none; }
}
@media (max-width: 600px) {
  /* same arrangement as desktop, adapted for a narrow screen: top-left card just above his head, right card at hip and leg height, bottom-left card directly under his feet */
  .hero__visual { min-height: calc(235px + (100vw - 32px) * .624); padding-bottom: 90px; }
  .hero .float-card { max-width: calc(50% - 8px); padding: 10px; gap: 8px; }
  .hero .float-card--a { top: auto; bottom: calc(93px + (100vw - 32px) * .624); left: 0; right: auto; margin: 0; }
  .hero .float-card--b { top: auto; bottom: 53px; right: 0; left: auto; margin: 0; }
  .hero .float-card--c { top: auto; bottom: 0; left: 0; right: auto; margin: 0; max-width: calc(50% - 8px); }
}
