/* Dappercast website. Tokens are the app's own colours (App/Assets.xcassets);
   headings use the app's face, SF Pro Expanded, where the system has it, and
   Archivo Expanded SemiBold (OFL, self-hosted, 11 KB) everywhere else. */
@font-face { font-family: "Archivo Dapper"; src: url("../assets/fonts/archivo-expanded-semibold.woff2") format("woff2");
  font-weight: 600; font-stretch: 125%; font-display: swap; }
:root {
  color-scheme: light dark;
  --ink: #111111; --paper: #ffffff; --pane: #f8f8f8; --surface: #f2f2f2;
  --separator: #d0d0d0; --secondary: #595959; --signal: #d4301c;
  --margin: clamp(24px, 5vw, 72px);
  --heading: -apple-system, BlinkMacSystemFont, "Archivo Dapper", sans-serif;
  --text: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
  --display: clamp(52px, 8.4vw, 132px);
  --title: clamp(36px, 5vw, 72px);
  --headline: clamp(26px, 2.6vw, 38px);
  --label: clamp(17px, 1.3vw, 20px);
  --ease-snap: cubic-bezier(.2,.9,.25,1);
  --ease-settle: cubic-bezier(.3,1.15,.4,1);
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #f4f4f4; --paper: #101010; --pane: #171717; --surface: #1c1c1c;
    --separator: #444444; --secondary: #b5b5b5; --signal: #ff5a3d; }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.5 var(--text);
  -webkit-font-smoothing: antialiased; }
.h { font-family: var(--heading); font-stretch: expanded; font-weight: 600; line-height: 1.04;
  letter-spacing: 0; margin: 0; text-wrap: balance; }
.display { font-size: var(--display); }
.title { font-size: var(--title); }
.headline { font-size: var(--headline); line-height: 1.12; }
.label { font-size: var(--label); line-height: 1.25; }
.figure { font-variant-numeric: tabular-nums; }
.secondary { color: var(--secondary); }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
.button { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 17px/1 var(--text);
  text-decoration: none; border: 0; cursor: pointer; }
.button.quiet { background: var(--surface); color: var(--ink); }
.button svg { width: 18px; height: 18px; }
.cover { border-radius: 8px; display: block; object-fit: cover; aspect-ratio: 1; background: var(--surface); }
.hairline { height: 1px; background: var(--separator); border: 0; margin: 0; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Page */
/* The page is one episode: its sections are chapters, the top bar carries
   their band and the reading time that is left. */
.top { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: auto 1fr auto auto;
  align-items: center; gap: clamp(16px, 2.4vw, 32px); padding: 12px var(--margin);
  background: color-mix(in srgb, var(--paper) 97%, transparent); backdrop-filter: saturate(1.4) blur(18px);
  -webkit-backdrop-filter: saturate(1.4) blur(18px); }
.brand { display: flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--heading); font-stretch: expanded; font-weight: 600; font-size: 18px; text-decoration: none; }
.brand img { width: 36px; height: 36px; margin: -4px; }
.pageband { min-width: 0; }
.left { font-size: 15px; white-space: nowrap; color: var(--secondary); }
.top .store img { height: 40px; width: auto; }
/* Apple's badge, unchanged: at least 40 px high, clear space of a quarter of its height. */
.store { display: inline-block; line-height: 0; padding: 0; border-radius: 8px; }
.store picture, .store img { display: block; width: auto; }
.store.big img { height: 54px; }
.store:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
/* Narrow: the band takes a row of its own, across the whole width. */
@media (max-width: 720px) {
  .top { grid-template-columns: 1fr auto; row-gap: 8px; padding-bottom: 10px; }
  .top .store { display: none; }
  .pageband { grid-column: 1 / -1; grid-row: 2; }
}

.wrap { max-width: 1320px; margin: 0 auto; padding-inline: var(--margin); }
/* The shadow is drawn into the picture (tools/shadow.swift): 12 % of the
   device's width at the sides, 6 % above, 20 % below. The picture keeps the
   device's own size; the shadow reaches past it, and no browser clips it. */
html, body { overflow-x: clip; }
.device { display: block; width: 100%; }
.device img { display: block; width: 124%; max-width: none; height: auto; margin: -6% -12% -20%; pointer-events: none; }

.hero { padding-top: clamp(48px, 8vw, 112px); }
/* The longest word, “Reihenfolge.”, sets the size: it must fit its column. */
.hero .display { max-width: 12ch; font-size: clamp(34px, min(11.4vw, 15svh), 104px); }
.lede { font-size: clamp(19px, 1.6vw, 23px); max-width: 36ch; margin-top: 28px; color: var(--secondary); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 36px; }
.cta small { font-size: 15px; color: var(--secondary); }
.hero > picture { display: block; margin: clamp(48px, 7vw, 96px) auto 0; max-width: 1080px; }
.devices-note { font-size: 15px; color: var(--secondary); margin-top: 20px; }
@media (min-width: 1100px) {
  .hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center;
    min-height: calc(100svh - 64px); padding-block: 24px; max-width: 1560px; }
  .hero .display { font-size: clamp(50px, 4.3vw, 84px); }
  .hero > picture { margin: 0; max-width: none; }
}

section.wrap { padding-top: clamp(112px, 14vw, 220px); }
.stamp { font-size: 15px; color: var(--secondary); font-variant-numeric: tabular-nums; margin-bottom: 18px; }
.body { font-size: clamp(18px, 1.4vw, 21px); color: var(--secondary); margin-top: 22px; max-width: 34ch; }
.duo { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 112px); align-items: center; }
.duo.flip > :first-child { order: 2; }
.closed { max-width: 440px; justify-self: center; width: 100%; }
.phone { max-width: 340px; justify-self: center; width: 100%; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } .duo.flip > :first-child { order: 0; } .closed { max-width: 340px; } .phone { max-width: 280px; } }

/* Three facts under a feature: quiet, divided by hairlines. */
.points { list-style: none; padding: 0; margin: 32px 0 0; max-width: 34em; }
.points li { padding: 14px 0; border-top: 1px solid var(--separator); }
.points b { display: block; }
.points span { color: var(--secondary); }

.try { margin-top: 40px; container-type: inline-size; }
.try .big { font-size: clamp(28px, 12.5cqi, 64px); line-height: 1; white-space: nowrap; }
.try .ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--secondary); margin-top: 6px; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--separator); background: var(--paper);
  color: var(--ink); font: 600 15px var(--text); cursor: pointer; }
.chips button[aria-pressed="false"] { color: var(--secondary); font-weight: 400; text-decoration: line-through; text-decoration-thickness: 1px; }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.pair { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: end; margin-top: 56px; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 4vw, 64px); margin-top: 56px; max-width: 1040px; }
figcaption { font-size: 15px; color: var(--secondary); margin-top: 16px; text-align: center; }
figure { margin: 0; }
@media (max-width: 860px) { .pair { grid-template-columns: 1fr; } .pair figure:first-child { max-width: 300px; margin: 0 auto; }
  .trio { grid-template-columns: repeat(3, 70vw); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; } .trio figure { scroll-snap-align: center; } .trio { padding: 24px 15vw 64px; margin-inline: calc(-1 * var(--margin)); scroll-padding-inline: 15vw; } }

/* The small things: a calm grid of facts. */
.details { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 40px; }
.details li { border-top: 1px solid var(--separator); padding: 20px 0 28px; }
.details b { display: block; font-size: 18px; margin-bottom: 6px; }
.details span { color: var(--secondary); }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 28px; margin-top: 40px; }
.price .h { font-size: var(--title); }
.final { text-align: center; }
.final picture { display: block; }
.final img { width: 160px; height: 160px; margin: 0 auto 28px; display: block; }
.final .cta { justify-content: center; }
footer { max-width: 1320px; margin: clamp(96px, 12vw, 160px) auto 0; padding: 32px var(--margin) 48px;
  border-top: 1px solid var(--separator); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; color: var(--secondary); font-size: 15px; }
footer .legal { flex-basis: 100%; font-size: 12px; margin-top: 12px; }
footer .mark { display: flex; align-items: center; gap: 10px; color: var(--ink); }

/* Sichten on the page: the Eingang's own decision, by swipe or by button. */
.hint { font-size: 15px; color: var(--secondary); margin-top: 20px; max-width: 40ch; }
.sichten { justify-self: center; width: 100%; max-width: min(380px, 78vw); }
.stack { position: relative; touch-action: pan-y; }
/* An invisible card holds the place, so every state has the card's own height. */
.card.ghost { position: relative; visibility: hidden; box-shadow: none; }
.card { position: absolute; inset: 0 0 auto; background: var(--paper); border: 1px solid var(--separator); border-radius: 12px;
  padding: 18px; box-shadow: 0 30px 50px -30px rgba(0,0,0,.35); cursor: grab; user-select: none; -webkit-user-select: none;
  transition: transform .45s var(--ease-settle), opacity .3s; }
.card.dragging { transition: none; cursor: grabbing; }
.card.back { transform: translateY(14px) scale(.95); opacity: .55; pointer-events: none; }
.card img { width: 100%; aspect-ratio: 1; border-radius: 8px; display: block; object-fit: cover; pointer-events: none; }
.card .pod { margin-top: 14px; font-size: 14px; color: var(--secondary); }
.card .tt { font-size: 19px; font-weight: 600; line-height: 1.25; margin-top: 2px; }
.card .d { font-size: 14px; color: var(--secondary); margin-top: 4px; font-variant-numeric: tabular-nums; }
.card .verdict { position: absolute; top: 28px; padding: 6px 12px; border-radius: 999px; font: 600 14px var(--text);
  background: var(--ink); color: var(--paper); opacity: 0; }
.card .verdict.r { left: 28px; } .card .verdict.l { right: 28px; background: var(--surface); color: var(--ink); }
.decide { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
.decide button { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0; font: 600 16px var(--text); cursor: pointer;
  background: var(--ink); color: var(--paper); }
.decide button.quiet { background: var(--surface); color: var(--ink); }
.decide button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.tally { text-align: center; font-size: 14px; color: var(--secondary); margin-top: 14px; min-height: 1.5em; }
@keyframes settle-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.done { animation: settle-in .5s var(--ease-settle) both; }
.card.enter { animation: settle-in .4s var(--ease-settle) both; }
.done { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; }
.done-unused { margin-top: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--separator);
  background: none; color: var(--ink); font: 600 15px var(--text); cursor: pointer; }

footer .links { display: flex; gap: 20px; }
footer .links a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
footer .links a:hover { color: var(--ink); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 20; background: var(--ink); color: var(--paper); padding: 0 16px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 8px; }
