:root {
  --navy: #0b2240;
  --navy-deep: #07162b;
  --navy-mid: #123056;
  --yellow: #f5c518;
  --yellow-hover: #e0b10c;
  --ink: #122033;
  --muted: #5b6b7c;
  --paper: #f5f7fa;
  --card: #ffffff;
  --line: #d7dee8;
  --danger: #b42318;
  --accent: var(--navy);
  --accent-hover: var(--navy-mid);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
}

a { color: var(--navy); }

.topbar {
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

header {
  width: min(1080px, calc(100% - 32px));
  margin: auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 0;
}

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--yellow);
  text-decoration: none;
  letter-spacing: -0.02em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.logo span { color: #fff; }

header nav,
.nav {
  display: flex;
  align-items: center;
  gap: 8px 16px;
  flex-wrap: wrap;
}

header nav a,
.nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
}

header nav a:hover,
.nav a:hover { color: #fff; }

.nav-cta,
.button,
button[type="submit"] {
  background: var(--yellow);
  color: var(--navy);
  text-decoration: none;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  min-height: 44px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-cta:hover,
.button:hover,
button[type="submit"]:hover { background: var(--yellow-hover); }

.hero-band {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
}

.hero {
  width: min(1080px, calc(100% - 32px));
  margin: auto;
  padding: 28px 0 48px;
  display: grid;
  gap: 24px;
}

.hero-band .eyebrow { color: var(--yellow); }
.hero-band h1 { color: #fff; }
.hero-band .lead { color: rgba(255, 255, 255, 0.78); }
.hero-band .price strong { color: var(--yellow); }
.hero-band .price span,
.hero-band small { color: rgba(255, 255, 255, 0.62); }
.hero-band .plain { color: rgba(255, 255, 255, 0.9); }
.hero-band a { color: var(--yellow); }
.hero-band .card {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.hero-band .card a { color: var(--navy); }

.eyebrow {
  font-family: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.4rem;
  font-weight: 800;
}

h1, h2 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0.3rem 0 0.9rem;
}

h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); max-width: 18ch; }
h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); }

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 38em;
  margin: 0;
}

.price {
  margin-top: 1.3rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.price strong { font-size: 2.2rem; font-weight: 800; color: var(--navy); }
.price span, small, .reference { color: var(--muted); }

.plain {
  margin: 1.2rem 0 0;
  padding-left: 1.15rem;
  color: var(--ink);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(11, 34, 64, 0.06);
}

.order-form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
}

input:focus {
  outline: 2px solid var(--navy);
  border-color: var(--navy);
}

details.extra {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

summary {
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
}

details.extra label { margin-top: 10px; }

.row { display: grid; gap: 12px; }

.error {
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--danger);
}

.form-error {
  margin: 0;
  padding: 0.7rem;
  background: #fbeaea;
  border-radius: 8px;
}

.thanks { max-width: 40em; margin: 48px auto 96px; }
.thanks .button { margin-top: 1rem; }

main > .card,
main > .thanks {
  width: min(1080px, calc(100% - 32px));
  margin: 32px auto 64px;
}

.footerbar {
  background: var(--navy-deep);
  margin-top: 24px;
}

footer {
  width: min(1080px, calc(100% - 32px));
  margin: auto;
  padding: 28px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
}

footer a { color: var(--yellow); }
footer a:hover { color: #fff; }
footer strong { color: #fff; }

@media (min-width: 760px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
    padding: 48px 0 72px;
    gap: 48px;
  }
  .card { padding: 28px; }
  .row { grid-template-columns: 1fr 1fr; }
  footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: end;
  }
}

.domain-search { display: grid; gap: 12px; }
.domain-search input { min-height: 52px; }
.domain-search button[type="submit"] { min-height: 52px; padding: 12px 22px; }
.domain-search .hint,
.price-note { font-family: inherit; font-size: 0.9rem; color: var(--muted); margin: 0; }
.search-result { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; }
.search-result.is-ok { color: var(--ink); }
.search-result.is-error { color: var(--danger); }
.search-result .button { justify-self: start; }
textarea {
  width: 100%;
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
}
.prose-block {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
  max-width: 42em;
}
.prose-block a { font-weight: 700; }

@media (min-width: 520px) {
  .domain-search {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
  .domain-search label { grid-column: 1; }
  .domain-search button[type="submit"] { grid-column: 2; }
  .domain-search .hint,
  .domain-search .search-result { grid-column: 1 / -1; }
}

/* --- Klantportaal --- */
.button-secondary {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
}
.button-secondary:hover {
  background: #eef2f7;
  border-color: var(--navy);
}

.portal-wrap {
  width: min(1080px, calc(100% - 32px));
  margin: 32px auto 64px;
  display: grid;
  gap: 16px;
}

.portal-card {
  width: min(520px, calc(100% - 32px));
  margin: 32px auto 64px;
}

.portal-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.portal-order-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.portal-order h2 {
  max-width: none;
  margin-bottom: 0.25rem;
}

.portal-order h3 {
  margin: 1.2rem 0 0.5rem;
  font-size: 1.05rem;
}

.portal-summary {
  margin: 0.6rem 0 0;
  padding: 0.75rem 0.9rem;
  background: #eef2f7;
  border-radius: 8px;
}

.portal-meta,
.portal-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.portal-meta li,
.portal-steps li {
  display: grid;
  gap: 2px;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.portal-meta li span,
.portal-steps li span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.is-ok { background: #e5f6ec; color: #0f6b38; }
.status-pill.is-warn { background: #fff4e5; color: #8a4b00; }
.status-pill.is-progress { background: #e8f0fe; color: #123056; }
.status-pill.is-muted { background: #eef2f7; color: var(--muted); }

.step-ok { color: #0f6b38; }
.step-error { color: var(--danger); }
.step-warn { color: #8a4b00; }

.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
}

.portal-actions .button { margin-top: 0; }

footer a + a { margin-left: 0.75rem; }

@media (min-width: 600px) {
  .portal-meta li,
  .portal-steps li {
    grid-template-columns: 11rem 1fr;
    align-items: baseline;
    gap: 12px;
  }
}
