/* OV Buddy — kleuren uit het donkere smartphonethema (Haags nachtblauw, seinlicht). */

:root {
  color-scheme: dark;
  --bg: #070d18;
  --surface: #121a2b;
  --surface-muted: #1a2438;
  --line: #2a3548;
  --accent: #ff6a00;
  --on-accent: #070d18;
  --cream: #f2f5fa;
  --muted: #9aa3b5;
  --link: #8bb4f0;
  --delay: #e5383b;
  --navy: #1a4b8c;
  --header: 4.25rem;
  --measure: 40rem;
  --wide: 72rem;
  --pad: 1.25rem;
  --font: "Segoe UI", system-ui, sans-serif;
  --display: "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: clip;
}

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

a {
  color: var(--link);
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--cream);
}

:focus {
  outline: none;
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 30;
  padding: 0.45rem 0.75rem;
  background: var(--cream);
  color: var(--bg);
  font-weight: 650;
  text-decoration: none;
  border-radius: 0.4rem;
}

.skip:focus {
  top: 0.75rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.85rem var(--pad);
}

.site-header.is-compact .header-inner {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}

.brand img {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 22%;
}

.site-header.is-compact .brand img {
  width: 2.15rem;
  height: 2.15rem;
}

.menu-toggle {
  display: none;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--cream);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.15rem;
}

.nav a {
  color: var(--cream);
  text-decoration: none;
  padding: 0.35rem 0;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.nav a[aria-current="page"] {
  color: var(--link);
  box-shadow: inset 0 -2px 0 var(--link);
}

.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2.25rem var(--pad) 3.5rem;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.15rem);
}

h2 {
  margin: 0;
  font-size: 1.25rem;
}

.lead {
  margin: 0.85rem 0 0;
  max-width: 36rem;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.4;
}

.quiet {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.hero {
  display: grid;
  gap: 2rem;
}

.hero-badge {
  margin: 1.35rem 0 0;
}

.route {
  margin: 0;
}

.route svg {
  display: block;
  width: 100%;
  height: auto;
}

.route .line {
  fill: none;
  stroke: url(#lijnkleuren);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.route .halt {
  stroke: var(--bg);
  stroke-width: 3;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.3rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  color: var(--on-accent);
  filter: brightness(1.06);
}

.actions {
  margin: 2.25rem 0 0;
  text-align: center;
}

.badge {
  display: inline-block;
  line-height: 0;
}

.badge img {
  display: block;
  height: 4.75rem;
  width: auto;
}

.panel .badge {
  margin-top: 1.15rem;
}

.quiet.strip {
  margin-top: 1.1rem;
  text-align: center;
}

@media (max-width: 767px) {
  .actions .button,
  .contact .button {
    width: 100%;
  }
}

.shots {
  display: grid;
  gap: 2.5rem;
  margin-top: 2.75rem;
  align-items: start;
}

.unit {
  margin: 0;
  min-width: 0;
}

.unit figcaption {
  display: grid;
  gap: 0.3rem;
  max-width: 22rem;
  margin: 0.95rem auto 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 400;
  text-align: center;
}

.unit figcaption strong {
  color: var(--cream);
  font-size: 1.05rem;
  font-weight: 700;
}

.unit figcaption span {
  color: #d4d4d8;
  font-size: 1.0625rem;
  line-height: 1.45;
}

.stage {
  display: flex;
  justify-content: center;
}

.device {
  position: relative;
  line-height: 0;
  transform-origin: center;
}

.bezel,
.screen {
  display: block;
}

.phone {
  width: min(100%, 16.5rem);
}

.phone .bezel {
  padding: 0.55rem 0.42rem 0.65rem;
  border-radius: 2rem;
  background: linear-gradient(180deg, #3c4658 0%, #1a2030 18%, #10151f 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 18px 32px rgba(0, 0, 0, 0.38);
}

.phone .screen {
  overflow: hidden;
  aspect-ratio: 1080 / 2375;
  border-radius: 1.45rem;
  background: #000;
}

.phone .screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone::before,
.phone::after {
  content: "";
  position: absolute;
  width: 0.18rem;
  background: #465066;
}

.phone::before {
  left: 0;
  top: 18%;
  height: 18%;
  border-radius: 0.12rem 0 0 0.12rem;
}

.phone::after {
  right: 0;
  top: 24%;
  height: 11%;
  border-radius: 0 0.12rem 0.12rem 0;
}

.watch {
  width: min(100%, 13.5rem);
}

.watch .bezel {
  padding: 0.42rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #9aa3b5 0%, #4a5568 16%, #1c2433 52%, #0c1018 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.32),
    inset 0 -8px 14px rgba(0, 0, 0, 0.45),
    0 18px 32px rgba(0, 0, 0, 0.4);
}

.watch .screen {
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #000;
  box-shadow: inset 0 0 0 2px #05070c;
}

.watch .screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.watch::after {
  content: "";
  position: absolute;
  right: -0.28rem;
  top: 38%;
  width: 0.42rem;
  height: 16%;
  border-radius: 0 0.16rem 0.16rem 0;
  background: linear-gradient(90deg, #2a3142, #d5dde8 42%, #8b95a8);
}

.wear {
  margin-top: 4.5rem;
  padding: 2.4rem 1.25rem 2.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
}

.wear h2 {
  text-align: center;
}

.wear .shots {
  margin-top: 1.75rem;
}

.kicker {
  margin: 0.35rem 0 0.45rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

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

.prose h1 {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
}

.split {
  display: grid;
  gap: 1.75rem;
  margin-top: 1.75rem;
}

.panel {
  margin: 1.5rem 0 0;
  padding: 1.15rem 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  min-width: 0;
  max-width: 36rem;
}

.panel h2 {
  margin-bottom: 0.65rem;
}

.panel p,
.prose p {
  margin: 0.7rem 0 0;
}

.panel p:first-of-type,
.summary p {
  margin-top: 0.45rem;
}

.steps {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
}

.panel > .steps:first-child {
  margin-top: 0;
}

.steps li + li {
  margin-top: 0.45rem;
}

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.92em;
}

.summary {
  margin: 0 0 2rem;
  padding: 1rem 1.05rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.summary h2 {
  font-size: 1rem;
}

.prose {
  max-width: 44rem;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.2rem;
}

.prose h3 {
  margin: 1.4rem 0 0;
  font-size: 1.05rem;
}

.prose ul,
.prose ol {
  margin: 0.6rem 0 0;
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.sheet-wrap {
  margin-top: 0.8rem;
  overflow-x: auto;
}

.sheet {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.sheet th,
.sheet td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.7rem 0.55rem 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.sheet th {
  color: var(--muted);
  font-weight: 650;
}

.contact {
  display: grid;
  gap: 0.7rem;
  max-width: 32rem;
  color: var(--cream);
}

.contact h2 {
  font-size: 1.15rem;
}

.contact p {
  margin: 0;
  color: var(--muted);
}

.contact label {
  margin-top: 0.25rem;
  font-size: 0.95rem;
}

.contact input,
.contact textarea {
  width: 100%;
  margin: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--surface);
  color: var(--cream);
  font: inherit;
  line-height: 1.45;
}

.contact textarea {
  min-height: 8rem;
  resize: vertical;
}

.contact .button {
  justify-self: start;
  margin-top: 0.35rem;
}

main .contact {
  margin-top: 1.25rem;
}

.contact .sr input {
  width: 1px;
  min-width: 0;
  height: 1px;
  padding: 0;
  border: 0;
}

.form-error {
  margin: 1rem 0 0;
  color: var(--delay);
  font-weight: 650;
}

@media (max-width: 767px) {
  html.js .menu-toggle {
    display: inline-flex;
  }

  html.js .nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 0.35rem;
  }

  html.js .nav.is-open {
    display: flex;
  }

  html.js .nav a {
    padding: 0.35rem 0;
    border-top: 1px solid var(--line);
  }

  .sheet thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .sheet,
  .sheet tbody,
  .sheet tr,
  .sheet td {
    display: block;
    width: 100%;
  }

  .sheet tr {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }

  .sheet td {
    padding: 0.2rem 0;
    border: 0;
  }

  .sheet td::before {
    content: attr(data-h);
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 650;
  }
}

@media (min-width: 768px) {
  :root {
    --pad: 1.75rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 2.5rem;
  }

  .shots {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }

  .shots .unit:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 22rem);
  }

  .phone {
    width: min(100%, 16.5rem);
  }

  .watch {
    width: min(100%, 14rem);
  }

  .split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 1280px) {
  :root {
    --pad: 2rem;
  }

  .wrap {
    padding-top: 3.25rem;
  }

  .hero {
    gap: 4rem;
  }

  .shots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    margin-top: 3.5rem;
  }

  .shots .unit:last-child {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
  }

  .phone {
    width: min(100%, 18rem);
  }

  .watch {
    width: 15rem;
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .device {
    transition: transform 0.35s ease, filter 0.35s ease;
  }

  .device:hover {
    transform: perspective(900px) rotateX(4deg) rotateY(-8deg) translateY(-6px);
    filter: drop-shadow(0 22px 24px rgba(0, 0, 0, 0.35));
  }
}

@media (prefers-reduced-motion: no-preference) {
  .site-header,
  .brand img,
  .header-inner {
    transition: padding 0.18s ease, width 0.18s ease, height 0.18s ease;
  }

  html.js .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }

  html.js .reveal.is-in {
    opacity: 1;
    transform: none;
  }

  html.js .route:not(.is-in) .line {
    stroke-dashoffset: 1;
  }

  html.js .route.is-in .line {
    animation: draw 1.15s ease forwards;
  }

  html.js .route:not(.is-in) .halt {
    opacity: 0;
  }

  html.js .route.is-in .halt {
    animation: pop 0.35s ease forwards;
  }

  html.js .route.is-in .halt:nth-of-type(1) { animation-delay: 0.12s; }
  html.js .route.is-in .halt:nth-of-type(2) { animation-delay: 0.32s; }
  html.js .route.is-in .halt:nth-of-type(3) { animation-delay: 0.52s; }
  html.js .route.is-in .halt:nth-of-type(4) { animation-delay: 0.72s; }
  html.js .route.is-in .halt:nth-of-type(5) { animation-delay: 0.9s; }
}

@keyframes draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes pop {
  from { opacity: 0; }
  to { opacity: 1; }
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: fade-out 160ms ease both;
}

::view-transition-new(root) {
  animation: fade-in 180ms ease both;
}

@keyframes fade-out {
  to { opacity: 0; }
}

@keyframes fade-in {
  from { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  @view-transition {
    navigation: none;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .device:hover {
    transform: none;
    filter: none;
  }
}
