/* supertaak.com
   White ground, Tabler's dark navy carries the weight, the control panel's
   blue is the accent. Same structure as emailmanagement.nl, different blue. */

:root {
  --white: #fff;
  --near-white: #f6f8fb;
  --line: #dce1e7;

  --navy: #182433;      /* Tabler "dark": the control panel's navbar and favicon */
  --navy-mid: #243449;
  --deep: #0c121a;      /* Tabler dark-mode surface */
  --blue: #066fd1;      /* Tabler primary: links, focus, accents */
  --blue-soft: #e7f0fa;

  --text: #1d273b;
  --muted: #56637a;
  --on-dark: #c8d3e1;
  --on-dark-dim: #8a9ab0;

  --radius: 10px;
  --radius-lg: 16px;
  --container: 1120px;

  --shadow: 0 1px 2px rgba(24, 36, 51, .06), 0 8px 24px rgba(24, 36, 51, .07);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }

h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -.022em;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy); }

img, svg { max-width: 100%; }
img { height: auto; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Layout ------------------------------------------------------------------ */

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

.section { padding-block: 80px; }
.section-tint { background: var(--near-white); border-block: 1px solid var(--line); }
.section-mid {
  background: linear-gradient(180deg, #eef3f9 0%, #e5edf6 100%);
  border-block: 1px solid #d3deeb;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: .7rem 1rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* Header ------------------------------------------------------------------ */

/* Navy, like the control panel's navbar. The logo only exists as a white
   negative, so the header is the one light-on-dark bar at the top of every
   page and flows straight into the hero or page banner below it. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(24, 36, 51, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 68px; }

.logo {
  display: inline-flex; align-items: center; gap: .6rem;
  color: #fff; text-decoration: none;
  font-size: 1.14rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  flex-shrink: 0;
}
.logo:hover { color: #fff; }
.logo img { width: 22px; height: 24px; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; }
.site-nav a { color: var(--on-dark); text-decoration: none; font-size: .96rem; font-weight: 500; }
.site-nav a:hover { color: #fff; }
.site-nav .nav-lang {
  font-size: .8rem; font-weight: 700; letter-spacing: .06em;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 6px; padding: .18rem .45rem;
}
.site-nav .nav-login { color: #fff; }
.site-nav .btn { color: var(--navy); background: #fff; }
.site-nav .btn:hover { background: var(--blue-soft); color: var(--navy); }

.nav-toggle { display: none; }

/* Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .82rem 1.4rem;
  border-radius: 8px;
  font-size: 1rem; font-weight: 600; font-family: inherit;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn-sm { padding: .5rem .95rem; font-size: .93rem; }

.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--blue); color: #fff; transform: translateY(-1px); }

.btn-secondary { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--blue); color: var(--navy); }

/* Hero -------------------------------------------------------------------- */

.hero {
  padding-block: 96px 88px;
  background:
    radial-gradient(900px 480px at 80% -10%, rgba(6, 111, 209, .32), transparent 60%),
    linear-gradient(165deg, var(--navy) 0%, var(--deep) 100%);
  color: var(--on-dark);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: center; }
.hero-art { width: 100%; max-width: 540px; justify-self: end; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: #6fb1f0; }
.hero .lead { font-size: 1.24rem; color: #b4c2d4; max-width: 62ch; margin-bottom: 1.9rem; }
.hero .eyebrow { color: #6fb1f0; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 1.4rem; font-size: .92rem; color: var(--on-dark-dim); }

/* On dark the button hierarchy flips: white is now the loudest. */
.hero .btn-primary, .band .btn-primary { background: #fff; color: var(--navy); }
.hero .btn-primary:hover, .band .btn-primary:hover { background: var(--blue-soft); color: var(--navy); }
.hero .btn-secondary, .band .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.hero .btn-secondary:hover, .band .btn-secondary:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

.lead { font-size: 1.15rem; color: var(--muted); }

/* Section headings -------------------------------------------------------- */

.section-head { max-width: 700px; margin-bottom: 2.6rem; }
.section-head h2 { margin-bottom: .35em; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

.diagram { display: block; width: 100%; margin-bottom: 2.4rem; }

/* Page banner for pages without a hero: same navy, more compact. */
.page-banner {
  background:
    radial-gradient(760px 320px at 85% -20%, rgba(6, 111, 209, .3), transparent 62%),
    linear-gradient(160deg, var(--navy) 0%, var(--deep) 100%);
  padding-block: 64px 60px;
  color: var(--on-dark);
}
.page-banner h1 { color: #fff; margin-bottom: .3em; max-width: 22ch; }
.page-banner .lead { color: #b4c2d4; font-size: 1.15rem; max-width: 62ch; margin: 0; }

/* Cards ------------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: 0 1px 2px rgba(24, 36, 51, .04);
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin-bottom: 0; font-size: .98rem; }

.card-icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  margin-bottom: 1rem;
}
.card-icon svg { width: 22px; height: 22px; }

/* Steps ------------------------------------------------------------------- */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.6rem; counter-reset: step; }
.step { position: relative; padding-top: 3.1rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 1.05rem;
}
.step h3 { margin-bottom: .35em; }
.step p { color: var(--muted); margin: 0; font-size: .98rem; }

/* Use cases: a diagram next to its explanation, alternating sides. -------- */

.usecase {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 3rem; align-items: center;
  padding-block: 2.4rem;
}
.usecase + .usecase { border-top: 1px solid var(--line); }
/* Alternate sides; the diagram keeps the wider column either way. */
.usecase:nth-child(even) { grid-template-columns: 1fr 1.6fr; }
.usecase:nth-child(even) > :first-child { order: 2; }
.usecase img { width: 100%; }
.usecase h3 { font-size: 1.45rem; }
.usecase p { color: var(--muted); }
.usecase ul { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.usecase li { margin-bottom: .35em; }
.usecase .tag { margin-bottom: .7rem; }

.tag {
  display: inline-block;
  font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-soft);
  padding: .22rem .6rem; border-radius: 99px;
}

/* Feature list ------------------------------------------------------------ */

.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.6rem 2.4rem; }
.feature { display: flex; gap: .95rem; }
.feature .check {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: grid; place-items: center; margin-top: .15rem;
}
.feature .check svg { width: 13px; height: 13px; }
.feature h3 { font-size: 1.04rem; margin-bottom: .2em; }
.feature p { color: var(--muted); margin: 0; font-size: .96rem; }

/* Dark band --------------------------------------------------------------- */

.band {
  background:
    radial-gradient(720px 400px at 15% 0%, rgba(6, 111, 209, .28), transparent 62%),
    linear-gradient(200deg, var(--deep) 0%, var(--navy) 100%);
  color: var(--on-dark);
  padding-block: 84px;
}
.band h2, .band h3 { color: #fff; }
.band p { color: #b4c2d4; }
.band .eyebrow { color: #6fb1f0; }

.band-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.6rem; margin-top: 2.4rem; }
.band-item h3 { font-size: 1.05rem; margin-bottom: .3em; }
.band-item p { font-size: .96rem; margin: 0; }

.integrations {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.6rem;
}
.integration-group {
  border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .04); padding: 1.3rem 1.4rem;
}
.integration-group h3 {
  font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; color: #6fb1f0; margin-bottom: .9rem;
}
.integration-group ul { list-style: none; margin: 0; padding: 0; }
.integration-group li { padding-block: .45rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.integration-group li:first-child { border-top: 0; padding-top: 0; }
.integration-group strong { display: block; color: #fff; font-weight: 600; font-size: .98rem; }
.integration-group span { display: block; color: var(--on-dark-dim); font-size: .86rem; }

/* Prose ------------------------------------------------------------------- */

.prose { padding-top: 64px; padding-bottom: 88px; }
.prose h2 { margin-top: 2em; font-size: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .4em; }
.prose > p, .prose > ul, .prose > ol { max-width: 76ch; }
.prose > h2, .prose > h3 { max-width: 34ch; }

/* Contact ----------------------------------------------------------------- */

.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3.5rem; align-items: start; }
.prose-narrow h2 { font-size: 1.3rem; margin-top: 1.8em; }
.prose-narrow h2:first-child { margin-top: 0; }
.prose-narrow p { color: var(--muted); }

.form {
  display: grid; gap: 22px;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff; box-shadow: var(--shadow);
}
.field { display: grid; gap: 8px; }
.field label { font-size: .9rem; font-weight: 600; color: var(--navy); }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--near-white); color: var(--text);
  font: inherit;
  /* 16px exactly: iOS Safari zooms in on anything smaller and never zooms back. */
  font-size: 1rem;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.field input:focus, .field textarea:focus {
  outline: none; background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(6, 111, 209, .16);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: #d63939;
  box-shadow: 0 0 0 3px rgba(214, 57, 57, .14);
}
.field-hint { font-size: .82rem; color: var(--muted); margin: 0; }

/* The honeypot: off-screen rather than display:none, because some bots skip
   hidden fields but not positioned ones. */
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

altcha-widget {
  --altcha-color-base: var(--near-white);
  --altcha-color-border: var(--line);
  --altcha-color-text: var(--muted);
  --altcha-color-border-focus: var(--blue);
  --altcha-color-error-text: #d63939;
  --altcha-border-width: 1px;
  --altcha-border-radius: 10px;
  --altcha-max-width: 100%;
  display: block;
}

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 4px; }
.form-actions button[data-busy="true"] { opacity: .6; cursor: progress; }
.form-direct { font-size: .88rem; color: var(--muted); }
.form-direct a { font-weight: 600; text-decoration: none; }
.form-direct a:hover { text-decoration: underline; }

.form-note[hidden] { display: none; }
.form-note {
  display: grid; gap: 4px;
  margin-bottom: 20px; padding: 16px 18px;
  border: 1px solid var(--line); border-left-width: 3px; border-radius: 10px;
  background: #fff; font-size: .94rem;
}
.form-note strong { color: var(--navy); }
.form-note span { color: var(--muted); }
.form-note[data-note="ok"] { border-left-color: #2fb344; }
.form-note:not([data-note="ok"]) { border-left-color: #d63939; }

/* Footer ------------------------------------------------------------------ */

.site-footer { background: var(--deep); color: var(--on-dark); padding-block: 56px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .9rem; }
.footer-grid a { display: block; color: var(--on-dark); text-decoration: none; font-size: .95rem; margin-bottom: .5rem; }
.footer-grid a:hover { color: #fff; }
.footer-logo {
  display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem;
  color: #fff; font-size: 1.1rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.footer-logo img { width: 24px; height: 26px; }
.footer-tag { color: var(--on-dark-dim); font-size: .95rem; max-width: 34ch; }
.footer-lang { display: block; margin-top: .8rem; font-size: .9rem; color: var(--on-dark-dim); }
.footer-lang a { display: inline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2.4rem; padding-top: 1.4rem; }
.footer-bottom p { margin: 0; font-size: .88rem; color: var(--on-dark-dim); }

/* Mobile ------------------------------------------------------------------ */

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .integrations { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .hero-art { justify-self: start; }
  .usecase, .usecase:nth-child(even), .contact-layout { grid-template-columns: 1fr; gap: 1.8rem; }
  .usecase:nth-child(even) > :first-child { order: 0; }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .section { padding-block: 56px; }
  .hero { padding-block: 60px 52px; }

  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    margin-left: auto;
    width: 42px; height: 42px;
    background: none; border: 1px solid rgba(255, 255, 255, .25); border-radius: 8px;
    padding: 0 10px; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; }

  .site-nav {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, .1);
    padding: .5rem 24px 1.2rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .85rem 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .site-nav .nav-lang { align-self: flex-start; margin-top: .8rem; border-bottom: 1px solid rgba(255, 255, 255, .22); padding: .18rem .45rem; }
  .site-nav .btn { margin-top: .9rem; }
}

@media (max-width: 520px) {
  .footer-grid, .integrations { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
