:root {
  --rnm-donkerblauw: #213a73;
  --rnm-mediumblauw: #4689b6;
  --rnm-lichtblauw: #a4b5c6;
  --rnm-wit: #ffffff;
  --rnm-zwart: #000000;
  --rnm-ink: #14213f;
  --rnm-muted: #4d6192;
  --rnm-soft: #ebeef4;
  --rnm-sky: #e4eff6;
  --breda-rood: #e5133c;
  --shadow: 0 18px 40px rgba(20, 33, 63, .16);
  --radius: 8px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--rnm-donkerblauw);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--rnm-ink);
  background:
    linear-gradient(150deg, rgba(70, 137, 182, .12), transparent 28rem),
    var(--rnm-wit);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .58;
}

a {
  color: var(--rnm-mediumblauw);
}

.sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.app-shell {
  min-height: 100vh;
}

.visitor-layout {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto 1fr;
  background: var(--rnm-wit);
}

.visitor-layout.no-header {
  grid-template-rows: 1fr;
}

.visitor-layout.no-header .hero,
.visitor-layout.no-header .language-screen {
  min-height: 100vh;
}

.brand-top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: max(14px, env(safe-area-inset-top)) 18px 14px;
  color: var(--rnm-wit);
  background: var(--rnm-donkerblauw);
  box-shadow: 0 8px 24px rgba(20, 33, 63, .18);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.brand-logo,
.admin-brand-logo {
  display: block;
  flex: 0 0 auto;
  pointer-events: none;
}

.brand-logo-top {
  width: min(238px, 62vw);
  height: 60px;
}

.admin-brand-logo {
  width: 174px;
  height: 44px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  color: var(--rnm-wit);
  background: rgba(255, 255, 255, .08);
  font-size: .82rem;
  font-weight: 650;
  white-space: nowrap;
}

.hero {
  display: grid;
  align-content: end;
  min-height: calc(100vh - 72px);
  padding: 34px 18px 24px;
  color: var(--rnm-wit);
  background:
    linear-gradient(180deg, rgba(33, 58, 115, .25), rgba(33, 58, 115, .95)),
    url("/assets/hero-water.svg") center / cover no-repeat,
    var(--rnm-donkerblauw);
}

.welcome-hero {
  min-height: calc(100vh - 72px);
  padding-bottom: 24px;
  background:
    linear-gradient(180deg, rgba(3, 30, 77, .08), rgba(3, 30, 77, .98)),
    url("/assets/hero-water.svg") center bottom / cover no-repeat,
    var(--rnm-donkerblauw);
}

.hero-panel {
  width: min(100%, 760px);
  margin: 0 auto;
}

.welcome-logo {
  margin-bottom: 42px;
}

.brand-logo-welcome {
  width: min(286px, 78vw);
  height: 72px;
}

.hero h1 {
  max-width: 11ch;
  margin: 0 0 16px;
  color: var(--rnm-wit);
  font-size: 4.7rem;
  line-height: .98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 36rem;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, .9);
  font-size: 1.05rem;
  line-height: 1.5;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.language-option {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: var(--radius);
  color: var(--rnm-wit);
  background: rgba(255, 255, 255, .12);
  text-align: left;
}

.language-option[aria-pressed="true"] {
  border-color: var(--rnm-wit);
  background: var(--rnm-mediumblauw);
  box-shadow: inset 0 0 0 1px var(--rnm-wit);
}

.language-option strong {
  font-size: 1rem;
}

.language-option span {
  color: rgba(255, 255, 255, .76);
  font-size: .82rem;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.welcome-actions {
  margin-top: 26px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
}

.welcome-actions .primary-button,
.welcome-actions .secondary-button {
  flex: 1 1 220px;
  min-height: 58px;
}

.location-note {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 30rem;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .84);
  font-size: .92rem;
  line-height: 1.45;
}

.accessibility-mode-panel {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.accessibility-mode-copy {
  display: grid;
  gap: 4px;
}

.accessibility-mode-copy h2 {
  margin: 0;
  color: var(--rnm-donkerblauw);
  font-size: 1.22rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-mode-panel .accessibility-mode-copy h2,
.hero-mode-panel .story-kicker {
  color: var(--rnm-wit);
}

.accessibility-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.accessibility-mode-option {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 104px;
  padding: 12px;
  border: 1px solid var(--rnm-lichtblauw);
  border-radius: var(--radius);
  color: var(--rnm-ink);
  background: var(--rnm-wit);
  text-align: left;
  box-shadow: 0 10px 24px rgba(20, 33, 63, .08);
}

.accessibility-mode-option[aria-pressed="true"] {
  border-color: var(--rnm-donkerblauw);
  background: var(--rnm-sky);
  box-shadow: inset 0 0 0 2px var(--rnm-donkerblauw);
}

.accessibility-mode-option strong,
.accessibility-mode-option span {
  display: block;
}

.accessibility-mode-option strong {
  color: var(--rnm-donkerblauw);
  font-size: .96rem;
  line-height: 1.2;
}

.accessibility-mode-option span {
  color: var(--rnm-muted);
  font-size: .82rem;
  line-height: 1.35;
}

.hero-mode-panel .accessibility-mode-option {
  border-color: rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .94);
}

.tour-mode-panel {
  margin: 0;
}

.tour-mode-panel .accessibility-mode-copy {
  display: none;
}

.tour-mode-panel .accessibility-mode-option {
  min-height: 74px;
}

.tour-mode-panel .accessibility-mode-option span {
  display: none;
}

.state-mode-panel {
  margin: 18px 0;
  text-align: left;
}

.primary-button,
.secondary-button,
.icon-button,
.danger-button {
  min-height: 48px;
  border-radius: var(--radius);
  font-weight: 700;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  color: var(--rnm-wit);
  background: var(--rnm-mediumblauw);
}

.primary-button:hover {
  background: #6ba1c5;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  color: var(--rnm-donkerblauw);
  background: var(--rnm-wit);
  border: 1px solid var(--rnm-lichtblauw);
}

.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: var(--rnm-wit);
  background: #6f1d2a;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 48px;
  color: var(--rnm-donkerblauw);
  background: var(--rnm-wit);
  border: 1px solid var(--rnm-lichtblauw);
}

.notice {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-left: 4px solid var(--rnm-mediumblauw);
  border-radius: var(--radius);
  color: var(--rnm-ink);
  background: rgba(255, 255, 255, .92);
  line-height: 1.45;
}

.notice.compact {
  margin: 10px 0;
  background: var(--rnm-soft);
}

.language-screen {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 72px);
  padding: 28px 16px calc(28px + var(--safe-bottom));
  background: var(--rnm-donkerblauw);
}

.language-panel {
  display: grid;
  align-content: center;
  gap: 18px;
  width: min(100%, 680px);
  margin: 0 auto;
  padding: 0;
}

.language-panel h1 {
  margin: 0 0 4px;
  color: var(--rnm-donkerblauw);
  font-size: 2.35rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.language-intro {
  margin: -2px 0 4px;
  color: var(--rnm-muted);
  font-size: .98rem;
  line-height: 1.45;
}

.search-field {
  display: grid;
  width: min(100%, 560px);
  margin: 0 auto;
}

.search-field input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 2px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius);
  color: var(--rnm-donkerblauw);
  background: var(--rnm-wit);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
  text-align: center;
  font-weight: 750;
}

.search-field input::placeholder {
  color: var(--rnm-muted);
  opacity: 1;
}

.language-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 14px;
  width: min(100%, 620px);
  margin: 0 auto;
  padding: 4px;
}

.language-row {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-height: 88px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, .24);
  border-radius: var(--radius);
  color: var(--rnm-wit);
  background: rgba(255, 255, 255, .08);
  text-align: center;
}

.language-row[aria-pressed="true"] {
  border-color: var(--rnm-wit);
  background: rgba(255, 255, 255, .18);
  box-shadow: inset 0 0 0 2px var(--rnm-mediumblauw);
}

.language-row .flag {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .96);
  font-size: 3rem;
  line-height: 1;
}

.language-continue {
  width: min(100%, 560px);
  margin: 0 auto;
  color: var(--rnm-donkerblauw);
  background: var(--rnm-wit);
}

.preload-note {
  margin: 2px 0 0;
  color: var(--rnm-wit);
  text-align: center;
  font-size: .9rem;
  line-height: 1.45;
}

.tour-screen {
  display: grid;
  gap: 18px;
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 18px 16px calc(90px + var(--safe-bottom));
}

.progress-bar {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: var(--rnm-soft);
}

.progress-bar span {
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background: var(--rnm-mediumblauw);
  transition: width .25s ease;
}

.story-card {
  display: grid;
  gap: 16px;
}

.story-heading {
  display: grid;
  gap: 8px;
}

.story-kicker {
  color: var(--rnm-mediumblauw);
  font-size: .86rem;
  font-weight: 800;
}

.story-heading h2 {
  margin: 0;
  color: var(--rnm-donkerblauw);
  font-size: 3.4rem;
  line-height: 1;
  letter-spacing: 0;
}

.story-body {
  margin: 0;
  color: var(--rnm-ink);
  font-size: 1.08rem;
  line-height: 1.62;
}

.media-compare {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: var(--rnm-soft);
  box-shadow: var(--shadow);
}

.media-compare img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-now {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--split, 50%));
}

.compare-range {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 46px;
  width: calc(100% - 28px);
  accent-color: var(--rnm-mediumblauw);
}

.compare-labels {
  position: absolute;
  inset: 12px 12px auto;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.compare-labels span {
  padding: 6px 8px;
  border-radius: 999px;
  color: var(--rnm-wit);
  background: rgba(20, 33, 63, .75);
  font-size: .76rem;
  font-weight: 700;
}

.player {
  position: sticky;
  bottom: calc(14px + var(--safe-bottom));
  z-index: 8;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--rnm-lichtblauw);
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.play-button {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: var(--rnm-wit);
  background: var(--rnm-donkerblauw);
}

.player-title {
  min-width: 0;
}

.player-title strong,
.player-title span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-title span {
  color: var(--rnm-muted);
  font-size: .86rem;
}

.route-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.route-controls button {
  min-height: 44px;
  padding: 0 10px;
  border-radius: var(--radius);
  color: var(--rnm-donkerblauw);
  background: var(--rnm-soft);
  font-weight: 700;
}

.empty-state,
.finish-state,
.loading-state {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 72px);
  padding: 24px 18px;
  text-align: center;
}

.state-card {
  width: min(100%, 640px);
  padding: 24px;
  border: 1px solid var(--rnm-lichtblauw);
  border-radius: var(--radius);
  background: var(--rnm-wit);
  box-shadow: var(--shadow);
}

.state-card h1,
.state-card h2 {
  margin: 0 0 10px;
  color: var(--rnm-donkerblauw);
  font-size: 2.5rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.state-card p {
  margin: 0 0 18px;
  color: var(--rnm-muted);
  line-height: 1.55;
}

.spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  border: 5px solid var(--rnm-soft);
  border-top-color: var(--rnm-mediumblauw);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

[data-access-mode="audio"] .player {
  grid-template-columns: auto 1fr auto;
  padding: 14px;
  border: 2px solid var(--rnm-donkerblauw);
}

[data-access-mode="audio"] .play-button {
  width: 72px;
  height: 72px;
}

[data-access-mode="audio"] .player-title strong {
  font-size: 1.08rem;
}

[data-access-mode="audio"] .story-body {
  font-size: 1.18rem;
}

[data-access-mode="audio"] .route-controls button {
  min-height: 54px;
}

[data-access-mode="audio"] .media-compare {
  box-shadow: none;
}

[data-access-mode="simple"] {
  --rnm-donkerblauw: #000000;
  --rnm-mediumblauw: #005fcc;
  --rnm-lichtblauw: #000000;
  --rnm-ink: #000000;
  --rnm-muted: #1d1d1d;
  --rnm-soft: #ffffff;
  --rnm-sky: #f2f7ff;
  --shadow: none;
  font-size: 112%;
}

[data-access-mode="simple"] body {
  color: #000000;
  background: #ffffff;
}

[data-access-mode="simple"] .visitor-layout,
[data-access-mode="simple"] .hero,
[data-access-mode="simple"] .welcome-hero,
[data-access-mode="simple"] .language-screen {
  color: #000000;
  background: #ffffff;
}

[data-access-mode="simple"] .brand-top {
  color: #ffffff;
  background: #000000;
  box-shadow: none;
}

[data-access-mode="simple"] .hero h1,
[data-access-mode="simple"] .hero-copy,
[data-access-mode="simple"] .location-note,
[data-access-mode="simple"] .preload-note,
[data-access-mode="simple"] .hero-mode-panel .accessibility-mode-copy h2,
[data-access-mode="simple"] .hero-mode-panel .story-kicker {
  color: #000000;
}

[data-access-mode="simple"] .welcome-actions {
  padding: 0;
  background: transparent;
}

[data-access-mode="simple"] .primary-button,
[data-access-mode="simple"] .secondary-button,
[data-access-mode="simple"] .icon-button,
[data-access-mode="simple"] .danger-button,
[data-access-mode="simple"] .route-controls button,
[data-access-mode="simple"] .language-row,
[data-access-mode="simple"] .accessibility-mode-option,
[data-access-mode="simple"] .search-field input,
[data-access-mode="simple"] .state-card,
[data-access-mode="simple"] .player {
  border: 2px solid #000000;
  box-shadow: none;
}

[data-access-mode="simple"] .primary-button,
[data-access-mode="simple"] .play-button {
  color: #ffffff;
  background: #000000;
}

[data-access-mode="simple"] .secondary-button,
[data-access-mode="simple"] .icon-button,
[data-access-mode="simple"] .route-controls button,
[data-access-mode="simple"] .accessibility-mode-option {
  color: #000000;
  background: #ffffff;
}

[data-access-mode="simple"] .accessibility-mode-option[aria-pressed="true"] {
  color: #ffffff;
  background: #000000;
}

[data-access-mode="simple"] .accessibility-mode-option[aria-pressed="true"] strong,
[data-access-mode="simple"] .accessibility-mode-option[aria-pressed="true"] span {
  color: #ffffff;
}

[data-access-mode="simple"] .story-heading h2 {
  font-size: 2.85rem;
}

[data-access-mode="simple"] .story-body {
  font-size: 1.22rem;
  line-height: 1.72;
}

[data-access-mode="simple"] .media-compare {
  display: none;
}

.admin-body {
  background: var(--rnm-soft);
}

.admin-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 290px 1fr;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  padding: 20px;
  color: var(--rnm-wit);
  background: var(--rnm-donkerblauw);
}

.admin-brand {
  margin-bottom: 24px;
}

.admin-product-title {
  display: block;
  margin: -8px 0 22px;
  color: var(--rnm-wit);
  font-size: .95rem;
}

.admin-nav {
  display: grid;
  gap: 8px;
}

.admin-nav button {
  min-height: 42px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: var(--rnm-wit);
  background: rgba(255, 255, 255, .08);
  text-align: left;
  font-weight: 700;
}

.admin-nav button[aria-pressed="true"] {
  color: var(--rnm-donkerblauw);
  background: var(--rnm-wit);
}

.admin-main {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 24px;
}

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

.admin-header h1 {
  margin: 0;
  color: var(--rnm-donkerblauw);
  font-size: 2.8rem;
  line-height: 1;
  letter-spacing: 0;
}

.admin-header p {
  max-width: 58rem;
  margin: 8px 0 0;
  color: var(--rnm-muted);
  line-height: 1.5;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 18px;
}

.panel {
  padding: 18px;
  border: 1px solid var(--rnm-lichtblauw);
  border-radius: var(--radius);
  background: var(--rnm-wit);
}

.panel h2,
.panel h3 {
  margin: 0 0 14px;
  color: var(--rnm-donkerblauw);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field,
.field-wide {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label,
.field-wide label {
  color: var(--rnm-muted);
  font-size: .82rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea,
.field-wide input,
.field-wide select,
.field-wide textarea {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 10px 11px;
  border: 1px solid var(--rnm-lichtblauw);
  border-radius: var(--radius);
  color: var(--rnm-ink);
  background: var(--rnm-wit);
}

.field textarea,
.field-wide textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.point-list {
  display: grid;
  gap: 8px;
}

.point-item {
  display: grid;
  gap: 4px;
  width: 100%;
  min-height: 62px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--rnm-ink);
  background: var(--rnm-soft);
  text-align: left;
}

.point-item[aria-pressed="true"] {
  color: var(--rnm-wit);
  background: var(--rnm-donkerblauw);
}

.point-item span {
  font-size: .82rem;
  opacity: .78;
}

.token-output {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--rnm-soft);
}

.token-panel .field-grid {
  grid-template-columns: 1fr;
}

.qr-card {
  display: grid;
  gap: 8px;
  align-items: center;
  min-height: 164px;
  padding: 14px;
  border: 2px solid var(--rnm-donkerblauw);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, #000 10px, transparent 10px) 0 0 / 20px 20px,
    linear-gradient(#000 10px, transparent 10px) 0 0 / 20px 20px,
    #fff;
}

.qr-card code {
  display: block;
  padding: 10px;
  color: var(--rnm-ink);
  background: rgba(255, 255, 255, .92);
  word-break: break-all;
}

.status-line {
  min-height: 24px;
  color: var(--rnm-muted);
  font-size: .9rem;
  font-weight: 700;
}

@media (max-width: 820px) {
  .hero h1 {
    font-size: 3rem;
  }

  .story-heading h2 {
    font-size: 2.35rem;
  }

  .state-card h1,
  .state-card h2,
  .admin-header h1 {
    font-size: 2rem;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

  .admin-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .admin-header {
    display: grid;
  }

  .route-controls {
    grid-template-columns: 1fr;
  }

  .accessibility-mode-grid {
    grid-template-columns: 1fr;
  }

  .accessibility-mode-option {
    min-height: 0;
  }
}

@media (min-width: 760px) {
  .language-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .story-card {
    grid-template-columns: minmax(0, .95fr) minmax(320px, .8fr);
    align-items: start;
  }

  .story-heading,
  .story-body,
  .route-controls,
  .progress-bar,
  .notice {
    grid-column: 1;
  }

  .media-compare {
    grid-column: 2;
    grid-row: 1 / span 4;
  }
}

/* Luistergids platform site */
:root {
  --lg-ivory: #f4f1ea;
  --lg-graphite: #1f1f1f;
  --lg-teal: #0f6b66;
  --lg-vermilion: #d94b39;
  --lg-olive: #6b7352;
  --lg-brass: #c9a227;
  --lg-mist: #dde1de;
  --lg-line: #d8d0bf;
  --lg-panel: #fffaf0;
  --lg-shadow: 0 18px 38px rgba(31, 31, 31, .12);
  --lg-radius: 8px;
  --lg-sans: Sora, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --lg-serif: Lora, Georgia, "Times New Roman", serif;
}

.site-body {
  min-height: 100vh;
  color: var(--lg-graphite);
  background:
    linear-gradient(180deg, rgba(221, 225, 222, .42), transparent 360px),
    var(--lg-ivory);
  font-family: var(--lg-sans);
  overflow-x: hidden;
}

.site-body a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--lg-radius);
  color: var(--lg-ivory);
  background: var(--lg-graphite);
  transform: translateY(-140%);
  transition: transform .18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell,
.site-header-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(31, 31, 31, .16);
  background: rgba(244, 241, 234, .94);
  backdrop-filter: blur(14px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 88px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-logo img {
  display: block;
  width: auto;
  max-width: min(218px, 56vw);
  height: 56px;
}

.site-nav,
.site-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-nav {
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}

.site-nav a {
  min-width: 0;
  min-height: 40px;
  padding: 11px 10px;
  border-radius: var(--lg-radius);
  color: rgba(31, 31, 31, .84);
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--lg-teal);
  background: rgba(15, 107, 102, .08);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--lg-radius);
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 107, 102, .18);
}

.button:focus-visible,
.site-nav a:focus-visible,
.platform-card:focus-within {
  outline: 3px solid var(--lg-brass);
  outline-offset: 3px;
}

.button-primary,
.button-login {
  color: #fff;
  background: var(--lg-teal);
}

.site-body .button-primary,
.site-body .button-login {
  color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible,
.button-login:hover,
.button-login:focus-visible {
  background: #0a5a56;
}

.button-secondary {
  border-color: rgba(31, 31, 31, .28);
  color: var(--lg-graphite);
  background: rgba(255, 250, 240, .72);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--lg-teal);
  color: var(--lg-teal);
  background: #fffaf0;
}

.button-light {
  color: var(--lg-teal);
  background: var(--lg-ivory);
}

.site-body .button-light {
  color: var(--lg-teal);
}

.site-hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
  gap: 44px;
  align-items: center;
  padding: 58px 0 34px;
}

.hero-copy-block {
  max-width: 620px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--lg-olive);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-hero h1,
.section-heading h2,
.accessibility-band h2,
.split-section h2,
.app-highlight h2,
.support-page h1 {
  margin: 0;
  color: var(--lg-graphite);
  font-family: var(--lg-serif);
  font-weight: 700;
  letter-spacing: 0;
}

.site-hero h1 {
  max-width: 12ch;
  font-size: 4.5rem;
  line-height: .98;
  overflow-wrap: break-word;
}

.site-hero h1 span {
  color: var(--lg-vermilion);
}

.hero-lede {
  max-width: 34rem;
  margin: 18px 0 24px;
  font-size: 1.08rem;
  line-height: 1.55;
}

.trust-list {
  display: grid;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(31, 31, 31, .76);
  font-size: .94rem;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-list li::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lg-vermilion);
  content: "";
}

.route-visual {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid var(--lg-line);
  border-radius: var(--lg-radius);
  background:
    linear-gradient(90deg, rgba(31, 31, 31, .05) 1px, transparent 1px) 0 0 / 38px 38px,
    linear-gradient(rgba(31, 31, 31, .045) 1px, transparent 1px) 0 0 / 38px 38px,
    #efe8da;
  box-shadow: var(--lg-shadow);
}

.route-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-line {
  fill: none;
  stroke-linecap: round;
}

.map-line-soft {
  stroke: rgba(107, 115, 82, .32);
  stroke-width: 2;
}

.route-draw {
  stroke: var(--lg-teal);
  stroke-dasharray: 11 11;
  stroke-width: 5;
  animation: routeFloat 8s linear infinite;
}

.pin path {
  stroke: var(--lg-ivory);
  stroke-width: 4;
}

.pin circle {
  fill: var(--lg-ivory);
}

.pin-teal path {
  fill: var(--lg-teal);
}

.pin-brass path {
  fill: var(--lg-brass);
}

.pin-vermilion path {
  fill: var(--lg-vermilion);
}

.sound-bars {
  fill: none;
  stroke: var(--lg-olive);
  stroke-width: 5;
  stroke-linecap: round;
}

.visual-card,
.visual-note {
  position: absolute;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(31, 31, 31, .12);
  border-radius: var(--lg-radius);
  background: rgba(255, 250, 240, .92);
  box-shadow: 0 16px 28px rgba(31, 31, 31, .15);
}

.visual-card {
  min-width: 190px;
  padding: 18px;
}

.visual-card span,
.visual-note span {
  color: var(--lg-olive);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.visual-card strong,
.visual-note strong {
  font-family: var(--lg-serif);
  font-size: 1.34rem;
}

.visual-card-large {
  top: 78px;
  right: 48px;
}

.visual-card-small {
  right: 152px;
  bottom: 112px;
}

.visual-note {
  left: 34px;
  bottom: 30px;
  max-width: 220px;
  padding: 16px;
  color: #fff;
  background: var(--lg-teal);
}

.visual-note span {
  color: rgba(244, 241, 234, .78);
  text-transform: none;
}

.section-block {
  padding: 70px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2,
.accessibility-band h2,
.split-section h2,
.app-highlight h2 {
  font-size: 3rem;
  line-height: 1.04;
}

.section-heading p,
.split-section p,
.accessibility-band p,
.app-highlight p,
.support-page p {
  line-height: 1.6;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.platform-card,
.gov-grid article,
.support-panel {
  border: 1px solid var(--lg-line);
  border-radius: var(--lg-radius);
  background: rgba(255, 250, 240, .72);
  box-shadow: 0 10px 24px rgba(31, 31, 31, .06);
}

.platform-card {
  display: grid;
  gap: 12px;
  min-height: 220px;
  padding: 22px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.platform-card:hover {
  border-color: rgba(15, 107, 102, .52);
  transform: translateY(-3px);
  box-shadow: var(--lg-shadow);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: var(--lg-teal);
  font-weight: 900;
}

.platform-card h3,
.gov-grid h3,
.support-panel h2 {
  margin: 0;
  color: var(--lg-graphite);
  font-family: var(--lg-serif);
  font-size: 1.55rem;
  letter-spacing: 0;
}

.platform-card p,
.gov-grid p,
.support-panel p {
  margin: 0;
  color: rgba(31, 31, 31, .76);
  line-height: 1.55;
}

.accessibility-band {
  padding: 72px 0;
  color: var(--lg-ivory);
  background:
    linear-gradient(90deg, rgba(244, 241, 234, .08) 1px, transparent 1px) 0 0 / 36px 36px,
    var(--lg-teal);
}

.accessibility-band h2,
.accessibility-band p,
.accessibility-band .eyebrow {
  color: var(--lg-ivory);
}

.accessibility-band .eyebrow {
  color: var(--lg-brass);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, .75fr);
  gap: 36px;
  align-items: center;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 16px;
  border: 1px solid rgba(244, 241, 234, .25);
  border-radius: var(--lg-radius);
  background: rgba(244, 241, 234, .08);
  font-weight: 800;
}

.process-list {
  display: grid;
  gap: 12px;
}

.process-list div {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 3px 14px;
  padding: 16px;
  border: 1px solid var(--lg-line);
  border-radius: var(--lg-radius);
  background: var(--lg-panel);
}

.process-list span {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--lg-graphite);
  background: var(--lg-brass);
  font-weight: 900;
}

.process-list strong {
  font-family: var(--lg-serif);
  font-size: 1.3rem;
}

.process-list p {
  margin: 0;
}

.gov-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gov-grid article {
  min-height: 160px;
  padding: 18px;
}

.app-highlight {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 22px;
  align-items: center;
  margin-bottom: 76px;
  padding: 26px;
  border: 1px solid var(--lg-line);
  border-radius: var(--lg-radius);
  background: var(--lg-panel);
  box-shadow: var(--lg-shadow);
}

.app-highlight img {
  border-radius: 18px;
}

.site-footer {
  border-top: 1px solid var(--lg-line);
  background: #efe8da;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 30px 0;
}

.site-footer p {
  margin: 0;
  color: rgba(31, 31, 31, .72);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a {
  font-weight: 800;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--lg-teal);
}

.support-body {
  background: var(--lg-ivory);
}

.support-page {
  min-height: calc(100vh - 89px);
  padding: 68px 0;
}

.support-page h1 {
  max-width: 12ch;
  margin-bottom: 18px;
  font-size: 4rem;
  line-height: 1;
}

.support-page > p {
  max-width: 740px;
  font-size: 1.08rem;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.support-panel {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.start-card {
  max-width: 620px;
  margin-top: 28px;
  border: 1px solid var(--lg-line);
  border-radius: var(--lg-radius);
  background: var(--lg-panel);
  box-shadow: var(--lg-shadow);
}

.start-status {
  padding: 14px 16px;
  border: 1px solid rgba(31, 31, 31, .12);
  border-radius: var(--lg-radius);
  background: rgba(15, 107, 102, .08);
  color: var(--lg-graphite);
  font-weight: 800;
}

.start-status[data-state="success"] {
  border-color: rgba(15, 107, 102, .28);
  background: rgba(15, 107, 102, .13);
}

.start-status[data-state="error"] {
  border-color: rgba(217, 75, 57, .35);
  background: rgba(217, 75, 57, .1);
}

.status-list {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
  padding-left: 20px;
  color: rgba(31, 31, 31, .76);
}

@keyframes routeFloat {
  to {
    stroke-dashoffset: -120;
  }
}

@media (max-width: 980px) {
  .site-header-inner {
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 12px 0;
  }

  .site-nav {
    order: 3;
    flex: 0 0 100%;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .site-hero,
  .split-section {
    grid-template-columns: 1fr;
  }

  .site-hero {
    padding-top: 38px;
  }

  .site-hero h1,
  .support-page h1 {
    font-size: 3.25rem;
  }

  .route-visual {
    min-height: 430px;
  }

  .use-case-grid,
  .support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gov-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer-inner,
  .app-highlight {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section-shell,
  .site-header-inner {
    width: min(calc(100% - 28px), 362px);
    max-width: 362px;
    margin-right: 14px;
    margin-left: 14px;
  }

  .site-header {
    position: static;
  }

  .site-header-inner,
  .site-actions,
  .hero-actions {
    align-items: stretch;
  }

  .site-header-inner {
    flex-direction: column;
  }

  .site-actions,
  .button {
    width: 100%;
  }

  .site-nav {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .site-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 6px;
    border: 1px solid rgba(31, 31, 31, .12);
    font-size: .84rem;
    text-align: center;
  }

  .hero-copy-block,
  .hero-lede {
    max-width: 362px;
  }

  .site-hero {
    gap: 28px;
    padding: 30px 0 20px;
  }

  .site-hero h1,
  .support-page h1 {
    max-width: none;
    font-size: 2.22rem;
  }

  .section-heading h2,
  .accessibility-band h2,
  .split-section h2,
  .app-highlight h2 {
    font-size: 2.1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .route-visual {
    min-height: 360px;
  }

  .visual-card {
    min-width: 142px;
    padding: 12px;
  }

  .visual-card strong {
    font-size: 1rem;
  }

  .visual-card-large {
    top: 54px;
    right: 18px;
  }

  .visual-card-small {
    right: 34px;
    bottom: 90px;
  }

  .visual-note {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }

  .use-case-grid,
  .gov-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .section-block,
  .accessibility-band,
  .support-page {
    padding: 48px 0;
  }

  .platform-card {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}
