/* BeatMyPar landing. Colours follow the app (index.html :root). System fonts only, no external requests. */
:root {
  --page: #F1F2EE; --surface: #FCFCFB; --surface-2: #E9EBE5;
  --ink: #0E1210; --ink-2: #52564F; --line: #C9CBC1;
  --accent: #0B6157; --accent-ink: #FFFFFF; --accent-soft: #DDEBE7;
  --f: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --page: #0E1210; --surface: #171C19; --surface-2: #1E2420; --ink: #FFFFFF; --ink-2: #C3C4B9; --line: #343A35;
    --accent: #4FB3A3; --accent-ink: #08201C; --accent-soft: #173832; color-scheme: dark; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 17px/1.55 var(--f); }
/* two languages in the HTML, CSS shows the active one (default EN, works without JS) */
html:not([lang="de"]) body [lang="de"] { display: none; }
html[lang="de"] body [lang="en"] { display: none; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--surface); padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { top: 8px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.top { display: flex; justify-content: space-between; align-items: center; max-width: 1080px; margin: 0 auto; padding: 14px 20px; }
.brand { font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.langs { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.langs button { font: 600 14px var(--f); min-width: 48px; min-height: 40px; padding: 0 14px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

h1 { font-size: clamp(30px, 7.4vw, 50px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 16px; }
h2 { font-size: clamp(24px, 5vw, 32px); line-height: 1.2; margin: 0 0 10px; letter-spacing: -.01em; }
.lead { font-size: 19px; color: var(--ink-2); margin: 0 0 22px; }
.note { color: var(--ink-2); font-size: 15px; margin: 10px 0 0; }
.cta { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; padding: 13px 26px; border-radius: 10px; min-height: 48px; }
.cta:hover { filter: brightness(1.1); }
.mail { font-weight: 600; font-size: 19px; }

.hero { display: grid; gap: 28px; padding-top: 8px; padding-bottom: 48px; align-items: center; }
.step { display: grid; gap: 22px; padding-top: 40px; padding-bottom: 40px; align-items: center; border-top: 1px solid var(--line); }
.kicker { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; margin: 0 0 8px; }
.step-text p:last-child { color: var(--ink-2); font-size: 18px; margin: 0; }
.shots { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.block { padding-top: 40px; padding-bottom: 8px; border-top: 1px solid var(--line); }
.block p { color: var(--ink-2); margin: 0 0 14px; }
.narrow p { max-width: 700px; }
.final { padding-bottom: 48px; }
.cards { display: grid; gap: 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; }
.card strong { color: var(--ink); }
.foot { border-top: 1px solid var(--line); padding: 22px 0 40px; color: var(--ink-2); font-size: 14px; }
.foot p { margin: 0; }

/* phone frame drawn in CSS; screen ratio = the 720x1558 recordings */
.shot { margin: 0; width: min(100%, 250px); }
.hero .shot { width: min(100%, 270px); justify-self: center; }
.phone { background: #1B1F1D; border-radius: 34px; padding: 9px; box-shadow: 0 1px 2px rgba(14,18,16,.1), 0 18px 40px -22px rgba(14,18,16,.55); }
.screen { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 720 / 1558; background: #000; }
.screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cap { position: absolute; left: 8px; right: 8px; bottom: 22%; text-align: center; color: #fff; background: rgba(0,0,0,.78); font: 600 15px/1.3 var(--f); padding: 6px 9px; border-radius: 8px; opacity: 0; transition: opacity .15s; pointer-events: none; }
.cap.on { opacity: 1; }
.pp { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; opacity: 0; transition: opacity .15s; }
.pp::before { content: ""; position: absolute; left: 21px; top: 16px; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff; }
.shot:not(.paused) .pp::before { left: 19px; top: 18px; width: 18px; height: 20px; border: 0; border-left: 6px solid #fff; border-right: 6px solid #fff; }
.shot.paused .pp, .pp:focus-visible, .shot:hover .pp { opacity: 1; }
.shot figcaption { color: var(--ink-2); font-size: 14px; margin-top: 10px; text-align: center; }

@media (min-width: 860px) {
  body { font-size: 18px; }
  .hero { grid-template-columns: 1.15fr .85fr; gap: 56px; padding-top: 28px; padding-bottom: 72px; }
  .step { grid-template-columns: 1fr 1fr; gap: 56px; padding-top: 64px; padding-bottom: 64px; }
  .step.alt .step-text { order: 2; }
  .cards { grid-template-columns: 1fr 1fr; }
  .block { padding-top: 56px; }
  .shot { width: 230px; }
  .hero .shot { width: 280px; }
}
@media (prefers-reduced-motion: reduce) { .cap, .pp { transition: none; } }

/* legal pages (privacy, legal notice) and the footer links */
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 10px; }
.foot a { color: var(--ink-2); }
.back { display: inline-block; margin: 4px 0 18px; font-weight: 600; }
.legal { padding-bottom: 48px; }
.legal > div { max-width: 760px; }
.legal h1 { font-size: clamp(28px, 6vw, 40px); }
.legal h2 { font-size: 20px; margin: 30px 0 6px; letter-spacing: 0; }
.legal p, .legal li { color: var(--ink); margin: 0 0 12px; }
.legal ul { padding-left: 22px; margin: 0 0 12px; }
.legal .meta { color: var(--ink-2); }
