/* Takti site. Geen externe fonts of scripts: de site zelf volgt de privacybelofte. */

:root {
  --ink: #05080f;
  --ink-2: #0a1020;
  --navy: #0b1e4a;
  --blue: #3d8bff;
  --blue-soft: #7fb2ff;
  --ice: #d6e6ff;
  --muted: #8da2c4;
  --line: rgba(127, 178, 255, 0.18);
  --orange: #ff9f43;
  --green: #30d158;
  --red: #ff453a;
  --font: ui-rounded, "SF Pro Rounded", "SF Pro Display", -apple-system, BlinkMacSystemFont,
    "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono-digits: "tnum" 1;
  --wrap: 1120px;
  --gutter: clamp(16px, 5vw, 40px);
}

* { box-sizing: border-box; }

html {
  color-scheme: dark;
  background-color: #05080f;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ice);
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(61, 139, 255, 0.28), transparent 60%),
    radial-gradient(700px 500px at -10% 40%, rgba(11, 30, 74, 0.7), transparent 65%),
    var(--ink);
  background-repeat: no-repeat;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--blue-soft); text-underline-offset: 3px; }
a:hover { color: #fff; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ice);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { left: 8px; }

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

/* Header */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  font-size: 0.97rem;
}
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }

.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.lang a {
  padding: 2px 11px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}
.lang a[aria-current="true"] { background: var(--blue); color: #fff; }

/* Hero */

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  padding-block: clamp(32px, 7vw, 88px) clamp(56px, 9vw, 112px);
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(3rem, 8.5vw, 6.25rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  word-spacing: 0.1em;
  font-weight: 800;
  color: #fff;
}

.lede {
  margin: 0 0 12px;
  max-width: 34ch;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.35;
  color: var(--ice);
  font-weight: 600;
}

.sub {
  margin: 0 0 32px;
  max-width: 46ch;
  color: var(--muted);
}

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 18px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
}
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 0.72rem; font-weight: 600; opacity: 0.7; }
.store[aria-disabled="true"] { cursor: default; }
.store:hover { color: var(--ink); }

.cta-note { color: var(--muted); font-size: 0.92rem; }

/* Watch demo: the one loud element */

.demo { display: grid; justify-items: center; gap: 22px; }

.watch {
  position: relative;
  width: min(290px, 74vw);
  aspect-ratio: 5 / 6;
  padding: 9px;
  border-radius: 25% / 21%;
  background: linear-gradient(145deg, #5a6a86 0%, #1b2438 30%, #0a0f1b 60%, #3a4760 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 40px 90px -20px rgba(61, 139, 255, 0.55),
    0 0 120px rgba(61, 139, 255, 0.18);
}

.watch::before {
  /* digital crown */
  content: "";
  position: absolute;
  right: -7px;
  top: 24%;
  width: 9px;
  height: 17%;
  border-radius: 3px 5px 5px 3px;
  background: linear-gradient(90deg, #2a3550, #77869f 60%, #3a4760);
}

.watch::after {
  /* side button */
  content: "";
  position: absolute;
  right: -4px;
  top: 52%;
  width: 6px;
  height: 11%;
  border-radius: 2px 4px 4px 2px;
  background: linear-gradient(90deg, #1b2438, #55637d);
}

.screen {
  position: relative;
  height: 100%;
  border-radius: calc(25% - 6px) / calc(21% - 6px);
  background: #000;
  display: grid;
  grid-template-rows: auto auto auto auto;
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: 8% 7%;
  overflow: hidden;
}

.screen::after {
  /* pulse ring on every beat, driven by watch.js */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 0 transparent;
  pointer-events: none;
}
.screen.beat::after { animation: ring 0.38s ease-out; }
.screen.beat-one::after { animation: ring-one 0.45s ease-out; }

@keyframes ring {
  from { box-shadow: inset 0 0 26px 2px rgba(214, 230, 255, 0.4); }
  to { box-shadow: inset 0 0 26px 2px transparent; }
}
@keyframes ring-one {
  from { box-shadow: inset 0 0 30px 3px rgba(255, 159, 67, 0.5); }
  to { box-shadow: inset 0 0 30px 3px transparent; }
}

.bpm {
  font-size: clamp(3.4rem, 17vw, 4.9rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
  font-feature-settings: var(--mono-digits);
  font-variant-numeric: tabular-nums;
}
.bpm-label { font-size: 0.8rem; color: var(--muted); margin-top: -2px; }

.dots { display: flex; gap: 7px; height: 12px; align-items: center; margin: 6px 0 8px; }
.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(141, 162, 196, 0.3);
  transition: background 0.08s, transform 0.08s;
}
.dots i.on { background: #fff; transform: scale(1.25); }
.dots i.on.first { background: var(--orange); box-shadow: 0 0 12px var(--orange); }

.screen-row { display: flex; gap: 8px; width: 100%; }
.screen-row button {
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border: 0;
  border-radius: 999px;
  min-height: 40px;
  color: #fff;
  cursor: pointer;
}
.sig { flex: 0 0 38%; background: #2a2d36; }
.go { flex: 1; background: var(--green); color: #04210d !important; }
.go[data-running="true"] { background: var(--red); color: #fff !important; }
.screen-row button:hover { filter: brightness(1.12); }

.tempo-buttons { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.92rem; }
.tempo-buttons button {
  font: inherit;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(11, 30, 74, 0.5);
  color: var(--ice);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.tempo-buttons button:hover { background: var(--navy); border-color: var(--blue); }

/* Sections */

section { padding-block: clamp(48px, 8vw, 96px); }

h2 {
  margin: 0 0 clamp(28px, 5vw, 56px);
  max-width: 18ch;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  word-spacing: 0.1em;
  font-weight: 800;
  color: #fff;
}

h3 { margin: 0 0 8px; font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.015em; color: #fff; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
.features > div:nth-child(2) { margin-top: 40px; }
.features > div:nth-child(3) { margin-top: 80px; }
.features p { margin: 0; color: var(--muted); max-width: 36ch; }
.features ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; color: var(--ice); font-size: 0.98rem; }
.features li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 10px; border-radius: 50%; background: var(--blue); vertical-align: middle; }

.glyph { width: 64px; height: 64px; margin-bottom: 20px; color: var(--blue-soft); }

.band {
  background: linear-gradient(180deg, transparent, rgba(11, 30, 74, 0.55) 30%, rgba(11, 30, 74, 0.55) 70%, transparent);
}

.simple {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}
.simple h2 { margin-bottom: 0; }
.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; font-size: 1.15rem; color: #fff; font-weight: 600; }
.checks svg { width: 26px; height: 26px; color: var(--green); margin-top: 2px; }
.checks span { display: block; color: var(--muted); font-weight: 400; font-size: 1rem; }

.promise { text-align: left; }
.promise p.big {
  margin: 0 0 24px;
  max-width: 20ch;
  font-size: clamp(2rem, 5.6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  word-spacing: 0.1em;
  font-weight: 800;
  color: #fff;
}
.promise p { max-width: 52ch; color: var(--muted); }

/* Doc pages (support, privacy) */

.doc .wrap { max-width: 800px; padding-block: clamp(24px, 5vw, 64px) clamp(56px, 9vw, 112px); }
.doc h1 { font-size: clamp(2.4rem, 7vw, 4rem); margin-bottom: 14px; }
.doc .intro { font-size: 1.25rem; line-height: 1.45; color: var(--ice); max-width: 40ch; margin: 0 0 40px; }
.doc h2 { font-size: 1.6rem; max-width: none; margin: 56px 0 16px; letter-spacing: -0.025em; }
.doc p, .doc li { max-width: 68ch; }
.doc p { color: var(--ice); }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }
.doc .updated { color: var(--muted); font-size: 0.92rem; margin-top: 48px; }

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 22px 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(61, 139, 255, 0.22), rgba(11, 30, 74, 0.6));
  border: 1px solid var(--line);
}
.contact strong { color: #fff; font-size: 1.1rem; }
.contact a { font-weight: 700; font-size: 1.1rem; color: #fff; }

details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 0;
  position: relative;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  translate: 0 -50%;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--blue-soft);
  transition: rotate 0.2s;
}
details[open] > summary::after { rotate: 45deg; }
details > div { padding: 0 0 20px; max-width: 64ch; color: var(--muted); }
details > div p { color: var(--muted); margin: 0 0 10px; }

/* Footer */

.site-footer { border-top: 1px solid var(--line); margin-top: 24px; }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 28px 40px;
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: #fff; }

/* Small screens */

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .features > div:nth-child(n) { margin-top: 0; }
  .simple { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .site-header .wrap { flex-wrap: wrap; }
  .nav { width: 100%; justify-content: space-between; }
  .brand span { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .screen.beat::after, .screen.beat-one::after { animation: none; }
  .dots i, summary::after { transition: none; }
}
