/* podsnap.dev: one stylesheet for the English, French and German pages.
   The condensed design Max approved on 2026-10-16: one dark screen. On a
   phone the headline, the app's skip demo and the store button share the
   first screen (the cover shrinks with the screen height); on a computer the
   headline column sits beside the demo. Three short facts, one price line
   and the footer follow.

   No inline styles anywhere: the Worker's Content-Security-Policy allows
   stylesheets from this origin only. System fonts on purpose: loading web
   fonts from Google's servers is a GDPR problem for German visitors.

   Device-aware: the Worker sets <html data-device="ios|android|desktop">.
   Without it (a cached copy, a crawler) the page shows both stores, and the
   QR code on a wide screen, which is the right fallback. */

:root {
  color-scheme: dark;
  --night: #13121F;
  --night-deep: #0C0B15;
  --raised: #1C1B2D;
  --edge: #2E2D44;
  --rail: #34334A;
  --mint: #7CF0BE;
  --text: #FFFFFF;
  --text-2: #D4D3E3;
  --text-3: #A9A8BF;
  --ad: #00D400;
  --ad-ink: #002A00;
  --promo: #FFFF00;
  --receipt-bg: #14301A;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--text); font-family: var(--font); line-height: 1.45; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--mint); }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
[hidden] { display: none !important; }
.gutter { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: 1080px; margin: 0 auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: #FFFFFF; color: var(--night); padding: 12px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }

/* Header */
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.langs { display: flex; gap: 2px; font-size: 14px; }
.langs a { color: var(--text-3); text-decoration: none; padding: 12px 7px; }
.langs a[aria-current] { color: var(--text); font-weight: 600; }

/* Hero */
.hero { overflow: hidden; } /* the cover's glow must not widen the page */
.hero .wrap { display: grid; justify-items: center; text-align: center; gap: 18px; padding-block: 4px 32px; }
.copy { display: grid; gap: 8px; justify-items: center; }
h1 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 9vw, 64px); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.sub { margin: 0; font-size: 17px; color: var(--text-2); text-wrap: balance; max-width: 30em; }
.get { display: grid; gap: 10px; justify-items: center; scroll-margin-top: 16px; }
.get-row { display: contents; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; align-items: center; }
.badge { display: block; line-height: 0; border-radius: 10px; }
.badge-ios img { height: 54px; width: auto; }
/* Google's badge PNG carries its own clear space (41 of 250 px each side);
   the negative margin lines its visible edge up with Apple's. max-width must
   stay off: with the margins, `img { max-width: 100% }` capped the width at
   the link's and squeezed the badge (Max, 2026-10-16: "looks stretched"). */
.badge-android img { height: 80px; width: auto; max-width: none; margin: -13px; }
.fine { margin: 0; font-size: 14px; color: var(--text-3); }
.alt { display: none; font-size: 14px; padding: 6px 4px; }
.qr { display: none; }
html[data-device="ios"] .badge-android,
html[data-device="android"] .badge-ios { display: none; }
html[data-device="ios"] .alt-android,
html[data-device="android"] .alt-ios { display: inline-block; }

/* The demo: the app's welcome page, "see the skip" (skip-demo.js moves it).
   Without the script it shows the first episode with its marks up. */
.demo { width: min(100%, 360px); display: flex; flex-direction: column; align-items: center; }
.stage { position: relative; width: clamp(132px, calc(100vh - 480px), 220px); width: clamp(132px, calc(100svh - 480px), 220px); max-width: 58vw; aspect-ratio: 1; }
.covers { position: absolute; inset: 0; }
.layer { position: absolute; inset: 0; opacity: 0; visibility: hidden; will-change: opacity, transform; }
.layer:first-child { opacity: 1; visibility: visible; }
.layer img { position: absolute; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.layer .glow { inset: -10%; width: 120%; height: 120%; border-radius: 36%; filter: blur(32px) saturate(1.4); opacity: 0.5; }
.layer .art { inset: 0; border-radius: 14px; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.2); }
.demo-pause { position: absolute; right: -50px; bottom: -6px; width: 44px; height: 44px; border: 0; padding: 0; border-radius: 22px; background: transparent; color: var(--text-3); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.demo-pause span { width: 30px; height: 30px; border-radius: 15px; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px var(--edge); }
.demo-pause:hover span { background: var(--raised); }
.demo-pause .i-play, .demo-pause.is-paused .i-pause { display: none; }
.demo-pause.is-paused .i-play { display: block; }
.titles { position: relative; width: 100%; height: 38px; margin-top: 10px; }
.tl { position: absolute; inset: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1px; opacity: 0; visibility: hidden; }
.tl:first-child { opacity: 1; visibility: visible; }
.t-name { font-size: 16px; line-height: 20px; font-weight: 800; letter-spacing: -0.2px; white-space: nowrap; }
.t-ep { display: flex; align-items: center; gap: 7px; font-size: 12.5px; line-height: 16px; font-weight: 600; color: var(--text-3); }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 10px; }
.eq i { display: block; width: 2px; height: 10px; border-radius: 1px; background: var(--mint); transform-origin: 50% 100%; animation: eq 900ms ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-duration: 700ms; animation-delay: -300ms; }
.eq i:nth-child(3) { animation-duration: 1100ms; animation-delay: -600ms; }
@keyframes eq { 0% { transform: scaleY(0.3); } 100% { transform: scaleY(1); } }
.player { width: 100%; margin-top: 12px; }
.tline { position: relative; height: 20px; }
.rail, .fill { position: absolute; left: 0; top: 8px; height: 4px; border-radius: 2px; }
.rail { right: 0; background: var(--rail); }
.fill { width: 14%; background: var(--mint); }
.mark { position: absolute; top: 3px; height: 14px; border-radius: 4px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mark.ad { left: 29.775%; width: 12.941%; background: var(--ad); box-shadow: inset 0 0 0 1px rgba(190, 255, 190, 0.55), 0 0 14px rgba(0, 212, 0, 0.35); }
.mark.promo { left: 67.066%; width: 5.882%; background: var(--promo); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); }
.mark-lab { font-size: 9px; line-height: 1; font-weight: 800; letter-spacing: 1px; color: var(--ad-ink); }
.trail { position: absolute; left: 0; top: -26px; width: 100%; height: 40px; overflow: visible; pointer-events: none; }
.trail path { fill: none; stroke: var(--mint); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: 0; }
.ripple, .dot { position: absolute; top: 3px; left: 14%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; }
.ripple { border: 1.5px solid var(--mint); opacity: 0; }
.dot { background: var(--mint); box-shadow: 0 0 0 2px var(--night), 0 3px 8px rgba(0, 0, 0, 0.35); }
.trow { position: relative; height: 24px; margin-top: 2px; display: flex; justify-content: space-between; align-items: center; }
.tm { min-width: 44px; font-size: 12px; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; text-align: left; }
.tm.rm { text-align: right; }
.receipt { position: absolute; top: 0; left: 50%; height: 24px; padding: 0 11px 0 9px; border-radius: 12px; display: flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 12.5px; font-weight: 700; color: var(--text); background: var(--receipt-bg); box-shadow: inset 0 0 0 1px rgba(0, 212, 0, 0.42), 0 6px 16px rgba(0, 0, 0, 0.25); opacity: 0; visibility: hidden; transform: translate(-50%, 8px); }

/* Below the first screen */
.facts .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; padding-block: 8px 20px; }
.fact { background: var(--raised); border-radius: 16px; padding: 18px 20px; display: grid; grid-template-columns: 28px 1fr; gap: 4px 12px; align-items: start; }
.fact svg { grid-row: span 2; margin-top: 1px; }
.fact h2 { margin: 0; font-size: 16px; font-weight: 700; }
.fact p { margin: 0; font-size: 14.5px; color: var(--text-2); }
.price .wrap { padding-block: 4px 28px; }
.price p { margin: 0; font-size: 15px; color: var(--text-2); text-align: center; text-wrap: balance; }
.price strong { color: var(--text); }
footer { background: var(--night-deep); color: var(--text-3); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: center; justify-content: space-between; padding-block: 18px; }
footer nav { display: flex; gap: 20px; }
footer nav a { color: var(--text-2); padding: 12px 0; display: inline-block; }
footer p { margin: 0; }

/* A computer: the headline column beside the demo, the QR code beside the badges */
@media (min-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr auto; justify-items: start; text-align: left; gap: 28px 56px; padding-block: 40px 56px; }
  .copy, .get { justify-items: start; grid-column: 1; }
  .copy { gap: 14px; align-self: end; }
  .get { align-self: start; }
  .sub { font-size: 20px; }
  .get-row { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
  .badges { justify-content: flex-start; }
  .qr { display: flex; gap: 12px; align-items: center; }
  .qr-code { background: #FFFFFF; padding: 7px; border-radius: 10px; line-height: 0; }
  .qr-code img { width: 76px; height: 76px; }
  .qr p { margin: 0; font-size: 14px; color: var(--text-2); max-width: 11em; }
  .stage { width: 260px; max-width: none; }
  .demo { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}
html[data-device="ios"] .qr,
html[data-device="android"] .qr { display: none; }

@media (prefers-reduced-motion: reduce) {
  .eq i { animation: none; }
}
