/* drumperfect.nl - one stylesheet for the whole site.
   Dark, like both apps. DrumPerfect Pro carries gold, StretchPerfect carries blue. */

:root {
  --bg: #1b1e23;
  --bg2: #20242a;
  --surface: #262a31;
  --surface2: #2c3139;
  --line: rgba(255, 255, 255, .07);
  --text: #e6e9ee;
  --text2: #aab1bd;
  --text3: #7f8795;
  --gold: #e3b45e;
  --gold2: #f4d79c;
  --blue: #6fa8ff;
  --blue2: #c4dcff;
  --acc: var(--gold);
  --acc2: var(--gold2);
  --hi: rgba(255, 255, 255, .05);
  --lo: rgba(0, 0, 0, .45);
  --raised: -6px -6px 16px var(--hi), 10px 12px 26px var(--lo);
  --raised-sm: -3px -3px 9px var(--hi), 5px 6px 14px var(--lo);
  --radius: 22px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

body.app-sp { --acc: var(--blue); --acc2: var(--blue2); }

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--acc2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5.6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---- language: both texts are in the page, one is shown ---- */
html[data-lang="en"] [lang="nl"]:not(html),
html[data-lang="nl"] [lang="en"]:not(html) { display: none !important; }

/* ---- header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(27, 30, 35, .82);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: -.01em; font-size: 1.08rem; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.brand b { color: var(--gold); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--text2);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: .95rem;
  white-space: nowrap;
}
.nav a:hover { color: var(--text); background: var(--hi); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface); }
.lang-switch {
  display: inline-flex;
  margin-left: 8px;
  padding: 3px;
  border-radius: 999px;
  background: var(--bg2);
  box-shadow: inset 2px 2px 6px var(--lo), inset -2px -2px 6px var(--hi);
}
.lang-switch button {
  appearance: none;
  border: 0;
  background: none;
  color: var(--text3);
  font: inherit;
  font-size: .8rem;
  font-weight: 650;
  letter-spacing: .04em;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--surface2); color: var(--text); box-shadow: var(--raised-sm); }

@media (max-width: 720px) {
  .site-header .wrap { height: 56px; gap: 8px; }
  .brand span.full { display: none; }
  .nav a.opt { display: none; }
  .nav a { padding: 8px 8px; font-size: .9rem; }
}
@media (max-width: 420px) {
  .nav a.app-link { display: none; }
}

/* ---- sections ---- */
section { padding: clamp(56px, 9vw, 110px) 0; }
section + section { border-top: 1px solid var(--line); }
.kicker {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 14px;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text2); max-width: 46em; }
.muted { color: var(--text2); }
.small { font-size: .88rem; color: var(--text3); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---- buttons ---- */
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.center .btn-row { justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: .98rem;
  box-shadow: var(--raised-sm);
  border: 1px solid var(--line);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; background: var(--surface2); transform: translateY(-1px); }
.btn.primary { background: var(--acc); color: #161a20; border-color: transparent; }
.btn.primary:hover { background: var(--acc2); }
.btn svg { width: 18px; height: 18px; flex: none; }
.badge-link { display: inline-block; line-height: 0; border-radius: 9px; transition: transform .15s ease; }
.badge-link:hover { transform: translateY(-1px); }
.badge-link img { height: 48px; width: auto; }

/* ---- portal (home) ---- */
.portal-hero { padding-top: clamp(48px, 8vw, 96px); padding-bottom: 24px; text-align: center; }
.portal-hero h1 { max-width: 15em; margin-left: auto; margin-right: auto; }
.portal-hero h1 em { font-style: normal; background: linear-gradient(92deg, var(--gold2), var(--gold) 45%, var(--blue) 75%, var(--blue2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.portal-hero .lead { margin: 0 auto; }

.portal { padding-top: 32px; border-top: 0 !important; }
.app-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 34px); }
@media (max-width: 860px) { .app-cards { grid-template-columns: 1fr; } }

.app-card {
  --c: var(--gold);
  --c2: var(--gold2);
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  background: linear-gradient(180deg, var(--surface), var(--bg2));
  box-shadow: var(--raised);
  border: 1px solid var(--line);
  color: var(--text);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.app-card.sp { --c: var(--blue); --c2: var(--blue2); }
.app-card:hover { text-decoration: none; transform: translateY(-4px); }
.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 55% at 50% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%);
  pointer-events: none;
}
.app-card .shot {
  position: relative;
  margin: clamp(18px, 3vw, 30px) clamp(18px, 3vw, 30px) 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08);
  aspect-ratio: 4 / 3;
  background: #111;
}
.app-card .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.app-card:hover .shot img { transform: scale(1.025); }
.app-card .body { position: relative; display: flex; gap: 16px; align-items: flex-start; padding: clamp(20px, 3vw, 30px); }
.app-card .icon { width: 64px; height: 64px; border-radius: 15px; flex: none; box-shadow: 0 8px 18px rgba(0, 0, 0, .45); }
.app-card h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: .25em; }
.app-card p { color: var(--text2); margin: 0; }
.app-card .go { margin-top: 12px; display: inline-flex; gap: 6px; align-items: center; color: var(--c2); font-weight: 650; }
.app-card .go span.arrow { transition: transform .2s ease; }
.app-card:hover .go span.arrow { transform: translateX(4px); }
.app-card .platforms { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--c); font-weight: 700; margin-bottom: 6px; }

/* ---- app page hero ---- */
.hero { padding-top: clamp(40px, 7vw, 84px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero .app-id { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.hero .app-id img { width: 72px; height: 72px; border-radius: 17px; box-shadow: 0 10px 24px rgba(0, 0, 0, .5); }
.hero .app-id .meta { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--acc); font-weight: 700; }
.hero .app-id .name { font-size: 1.15rem; font-weight: 700; }
.hero h1 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
.hero h1 em { font-style: normal; color: var(--acc); }
.device {
  position: relative;
  border-radius: clamp(14px, 2vw, 22px);
  padding: clamp(6px, .9vw, 10px);
  background: linear-gradient(145deg, #3a3f48, #1a1d22);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06);
}
.device img { border-radius: clamp(9px, 1.3vw, 14px); width: 100%; }
.device-wrap { position: relative; }
.device-wrap .phone {
  position: absolute;
  right: -2%;
  bottom: -9%;
  width: 24%;
  border-radius: 22px;
  padding: 5px;
  background: linear-gradient(145deg, #3a3f48, #1a1d22);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06);
}
.device-wrap .phone img { border-radius: 18px; }
@media (max-width: 560px) { .device-wrap .phone { width: 28%; right: -1%; border-radius: 14px; padding: 3px; } .device-wrap .phone img { border-radius: 11px; } }

/* ---- gallery ---- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 22px);
  margin-top: 34px;
}
@media (max-width: 860px) {
  .gallery {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
}
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #111;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .07);
  aspect-ratio: 4 / 3;
  transition: transform .2s ease, box-shadow .2s ease;
}
.gallery button:hover, .gallery button:focus-visible { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(0, 0, 0, .55), 0 0 0 2px var(--acc); outline: none; }
.gallery button img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.gallery button.portrait img { object-fit: contain; background: #15181c; }
.gallery figcaption { margin-top: 10px; font-size: .92rem; color: var(--text2); }
.gallery figcaption b { color: var(--text); font-weight: 650; }
.swipe-hint { display: none; font-size: .82rem; color: var(--text3); margin-top: 6px; }
@media (max-width: 860px) { .swipe-hint { display: block; } }

/* ---- lightbox ---- */
dialog.lightbox {
  border: 0;
  padding: 0;
  margin: auto;
  max-width: min(96vw, 1500px);
  max-height: 94vh;
  background: transparent;
  overflow: visible;
}
dialog.lightbox::backdrop { background: rgba(8, 9, 12, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog.lightbox img { max-width: min(96vw, 1500px); max-height: 82vh; width: auto; height: auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); margin: 0 auto; }
dialog.lightbox .cap { color: var(--text2); text-align: center; margin-top: 12px; font-size: .95rem; }
dialog.lightbox .lb-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(38, 42, 49, .85);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}
dialog.lightbox .lb-prev { left: 14px; }
dialog.lightbox .lb-next { right: 14px; }
dialog.lightbox .lb-close { top: 22px; right: 18px; transform: none; font-size: 1.15rem; }
@media (max-width: 600px) { dialog.lightbox .lb-prev, dialog.lightbox .lb-next { top: auto; bottom: 14px; transform: none; } }

/* ---- feature cards ---- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); margin-top: 36px; }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 20px;
  box-shadow: var(--raised-sm);
}
.card .ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: var(--bg2);
  color: var(--acc);
  box-shadow: inset 2px 2px 6px var(--lo), inset -2px -2px 6px var(--hi);
}
.card .ico svg { width: 22px; height: 22px; }
.card p { color: var(--text2); margin: 0; font-size: .97rem; }
.card ul { margin: 10px 0 0; padding-left: 1.1em; color: var(--text2); font-size: .95rem; }
.card ul li { margin: 2px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chips span { font-size: .78rem; padding: 4px 9px; border-radius: 999px; background: var(--bg2); color: var(--text2); border: 1px solid var(--line); }

/* ---- packs ---- */
.packs { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
.packs img { width: calc((100% - 5 * 14px) / 6); border-radius: 12px; box-shadow: 0 10px 22px rgba(0, 0, 0, .5); aspect-ratio: 1; object-fit: cover; }
@media (max-width: 900px) { .packs img { width: calc((100% - 3 * 14px) / 4); } }
@media (max-width: 520px) { .packs { gap: 10px; } .packs img { width: calc((100% - 2 * 10px) / 3); } }

/* ---- split block ---- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---- doc / link tiles ---- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
@media (max-width: 980px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .tiles { grid-template-columns: 1fr; } }
.tile {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: var(--raised-sm);
  transition: transform .15s ease, background .15s ease;
}
.tile:hover { text-decoration: none; transform: translateY(-2px); background: var(--surface2); }
.tile .ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--bg2); color: var(--acc); flex: none; }
.tile .ico svg { width: 21px; height: 21px; }
.tile .t b { display: block; font-weight: 650; }
.tile .sub { display: block; font-size: .85rem; color: var(--text3); }

/* ---- routes (StretchPerfect) ---- */
.routes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
@media (max-width: 980px) { .routes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .routes { grid-template-columns: 1fr; } }
.route { display: block; color: var(--text); }
.route:hover { text-decoration: none; }
.route .card { height: 100%; transition: transform .15s ease; }
.route:hover .card { transform: translateY(-3px); }
.route .num { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--acc); font-weight: 700; }
.route h3 { margin: 6px 0 4px; }
.route .who { font-size: .85rem; color: var(--text3); margin-bottom: 8px; }

/* ---- tutorial banner ---- */
.banner {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(28px, 5vw, 56px);
  background: radial-gradient(80% 120% at 100% 0%, color-mix(in srgb, var(--acc) 26%, transparent), transparent 60%), linear-gradient(180deg, var(--surface), var(--bg2));
  border: 1px solid var(--line);
  box-shadow: var(--raised);
}
.banner h2 { max-width: 18em; }
.banner .lead { max-width: 38em; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--text3); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { color: var(--text2); }

/* ---- focus & motion ---- */
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
