/* Tellyfin, tellyfin.app
   Hand-written, no framework, no third-party requests. */

:root {
  --bg:        #08080f;
  --bg-alt:    #0c0c16;
  --panel:     #12121f;
  --panel-2:   #171726;
  --line:      rgba(255, 255, 255, .09);
  --line-2:    rgba(255, 255, 255, .16);
  --text:      #ecebf5;
  --muted:     #9c9cb4;
  --dim:       #6f6f88;
  --accent:    #7c4dff;
  --accent-2:  #b78cff;
  --accent-in: #ffffff;
  --live:      #ff4d6d;
  --radius:    16px;
  --radius-sm: 10px;
  --wrap:      1160px;
  --ff: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code { font-family: var(--mono); font-size: .88em; background: rgba(255,255,255,.07); padding: .12em .42em; border-radius: 5px; }
::selection { background: rgba(124, 77, 255, .45); }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

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

.skip {
  position: absolute; left: -9999px; top: 12px; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip:focus { left: 16px; }

.icon { width: 22px; height: 22px; flex: none; }
.icon-sm { width: 18px; height: 18px; }
.icon-xs { width: 15px; height: 15px; }

/* ------------------------------------------------------------------ header */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 8, 15, .78);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; letter-spacing: -.01em; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand-mark { border-radius: 7px; }
.nav-links { display: flex; gap: 26px; margin-left: 8px; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--text); text-decoration: none; }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang, .ghost {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--muted); font-size: 14px; font-weight: 500;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
}
.lang:hover, .ghost:hover { color: var(--text); border-color: var(--line-2); background: rgba(255,255,255,.04); text-decoration: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-inner { gap: 12px; }
}
@media (max-width: 520px) {
  .lang span, .ghost span { display: none; }
  .lang, .ghost { padding: 7px 10px; }
}

/* -------------------------------------------------------------------- hero */

.hero { position: relative; overflow: hidden; padding: 72px 0 96px; border-bottom: 1px solid var(--line); }
.hero-glow {
  position: absolute; inset: -30% -10% auto -10%; height: 620px; pointer-events: none;
  background:
    radial-gradient(48% 52% at 22% 40%, rgba(124, 77, 255, .30), transparent 70%),
    radial-gradient(38% 46% at 78% 26%, rgba(64, 132, 255, .18), transparent 70%);
  filter: blur(8px);
}
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }

.eyebrow { margin: 0 0 18px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); font-weight: 600; }

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.06;
  letter-spacing: -.033em;
  font-weight: 700;
}
.grad {
  background: linear-gradient(100deg, var(--accent-2) 10%, #6ea8ff 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin: 0 0 30px; font-size: 18.5px; color: var(--muted); max-width: 46ch; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 11px;
  font-size: 15.5px; font-weight: 600; letter-spacing: -.005em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-in); box-shadow: 0 8px 26px -10px rgba(124,77,255,.9); }
.btn-primary:hover { background: #8a5fff; }
.btn-quiet { background: rgba(255,255,255,.05); color: var(--text); border-color: var(--line); }
.btn-quiet:hover { background: rgba(255,255,255,.09); border-color: var(--line-2); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-outline:hover { background: rgba(255,255,255,.06); }

.facts { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; color: var(--dim); font-size: 14.5px; }
.facts li { display: inline-flex; align-items: center; gap: 7px; }
.facts .icon { color: var(--accent-2); }
.pill { border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 10px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }

/* ------------------------------------------------------------------ tv mock */

.hero-art { perspective: 1600px; }
.tv { transform: rotateY(-7deg) rotateX(3deg); transform-style: preserve-3d; }
.tv-screen {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: linear-gradient(170deg, #14142a 0%, #0b0b17 58%, #09090f 100%);
  padding: 16px 16px 18px;
  box-shadow: 0 50px 90px -40px rgba(0,0,0,.95), 0 0 0 7px rgba(255,255,255,.028), 0 0 90px -30px rgba(124,77,255,.4);
  font-size: 12px;
  overflow: hidden;
}
.tv-screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(190deg, rgba(255,255,255,.07), transparent 42%);
}
.tv-stand {
  width: 30%; height: 12px; margin: 0 auto;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.02));
  border-radius: 0 0 9px 9px;
}

.ui-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ui-brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: 12px; letter-spacing: -.01em; }
.ui-brand img { border-radius: 4px; }
.ui-tabs { display: flex; gap: 14px; color: var(--dim); font-size: 11px; }
.ui-tabs .on { color: var(--text); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }

.ui-h { margin: 0 0 8px; font-size: 11px; font-weight: 650; color: var(--muted); letter-spacing: .02em; }
.ui-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-bottom: 16px; }
.ui-card { border-radius: 8px; min-width: 0; }
.ui-thumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: 7px;
  background: linear-gradient(135deg, #2a2352 0%, #1a1a33 100%);
  border: 1px solid var(--line); margin-bottom: 6px;
}
.ui-card.focus .ui-thumb { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(124,77,255,.55), 0 6px 18px -8px rgba(124,77,255,.8); }
.ui-live {
  position: absolute; top: 5px; left: 5px;
  background: var(--live); color: #fff; font-size: 8px; font-weight: 700;
  letter-spacing: .06em; padding: 1px 5px; border-radius: 3px;
}
.ui-card-title { margin: 0; font-size: 11px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-card-meta { margin: 1px 0 0; font-size: 9.5px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ui-filters { display: flex; gap: 8px; margin-bottom: 10px; }
.ui-filters span { font-size: 10px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--dim); }
.ui-filters .on { background: rgba(124,77,255,.18); border-color: rgba(124,77,255,.55); color: var(--text); }

.ui-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.ui-rows li {
  display: grid; align-items: center; gap: 9px;
  grid-template-columns: 16px 22px minmax(0, 1fr) auto 54px;
  padding: 6px 8px; border-radius: 7px; background: rgba(255,255,255,.035);
}
.ui-rows li:first-child { background: rgba(124,77,255,.16); box-shadow: inset 0 0 0 1px rgba(124,77,255,.4); }
.ui-num { font-family: var(--mono); font-size: 10px; color: var(--dim); text-align: right; }
.ui-logo { width: 22px; height: 15px; border-radius: 3px; background: linear-gradient(135deg, #3a3466, #22203d); }
.ui-meta { min-width: 0; display: block; }
.ui-name { display: block; font-size: 10.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-prog { display: block; font-size: 9.5px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-badge { font-size: 8px; font-weight: 700; letter-spacing: .06em; color: var(--accent-2); border: 1px solid rgba(124,77,255,.5); border-radius: 3px; padding: 1px 4px; }
.ui-bar { height: 3px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
.ui-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

@media (max-width: 980px) {
  .hero { padding: 56px 0 72px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .tv { transform: none; }
  .lead { max-width: none; }
}

/* ----------------------------------------------------------------- sections */

.band { padding: 96px 0; border-bottom: 1px solid var(--line); }
.band-alt { background: var(--bg-alt); }
@media (max-width: 760px) { .band { padding: 68px 0; } }

.kicker { margin: 0 0 12px; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); font-weight: 600; }
.h2 { margin: 0 0 16px; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -.028em; font-weight: 700; }
.section-lead { margin: 0 0 44px; color: var(--muted); max-width: 62ch; font-size: 17.5px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* features */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 24px;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.card:hover { border-color: rgba(124,77,255,.5); background: var(--panel-2); transform: translateY(-2px); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 11px; margin-bottom: 16px;
  background: rgba(124,77,255,.14); color: var(--accent-2);
  border: 1px solid rgba(124,77,255,.28);
}
.card h3 { margin: 0 0 9px; font-size: 18px; font-weight: 650; letter-spacing: -.012em; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.62; }

/* remote */
.remote-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.remote-copy { position: sticky; top: 96px; }
.remote-copy .section-lead { margin-bottom: 30px; }
.remote-art { display: flex; justify-content: flex-start; }
.remote-svg { width: 138px; height: auto; filter: drop-shadow(0 30px 45px rgba(0,0,0,.6)) drop-shadow(0 0 50px rgba(124,77,255,.22)); }
.keymap { margin: 0; display: grid; gap: 2px; }
.keyrow {
  display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 20px; align-items: center;
  padding: 14px 4px; border-bottom: 1px solid var(--line);
}
.keyrow:last-child { border-bottom: 0; }
.keyrow dt { margin: 0; }
.keyrow dd { margin: 0; color: var(--muted); font-size: 15.5px; }
kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 100%;
  font-family: var(--ff); font-size: 13.5px; font-weight: 600; letter-spacing: .02em;
  padding: 7px 10px; border-radius: 9px;
  background: linear-gradient(180deg, #1d1d2e, #14141f);
  border: 1px solid var(--line-2); border-bottom-width: 2px;
  color: var(--text); white-space: nowrap;
}
@media (max-width: 900px) {
  .remote-grid { grid-template-columns: 1fr; gap: 36px; }
  .remote-copy { position: static; }
  .remote-art { display: none; }
  .keyrow { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
}

/* download */
.builds { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.build {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; display: flex; flex-direction: column; align-items: flex-start;
}
.build-primary { border-color: rgba(124,77,255,.42); background: linear-gradient(170deg, rgba(124,77,255,.10), var(--panel) 62%); }
.build-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.build h3 { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -.015em; }
.badge { font-size: 11.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-2); background: rgba(124,77,255,.16); border: 1px solid rgba(124,77,255,.4); border-radius: 999px; padding: 3px 11px; }
.build p { margin: 0 0 22px; color: var(--muted); font-size: 15.5px; }
.build-meta { margin: 14px 0 0 !important; font-family: var(--mono); font-size: 12.5px; color: var(--dim); }
.under-builds { margin: 26px 0 0; color: var(--dim); font-size: 15px; }
.notice { margin: 0 0 24px; padding: 14px 18px; border-radius: var(--radius-sm); border: 1px solid rgba(255,180,80,.32); background: rgba(255,180,80,.08); color: #ffce8a; font-size: 15px; }

/* install */
.install-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .75fr); gap: 56px; align-items: start; }
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 4px; }
.steps li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; padding-top: 0; }
.step-n {
  display: flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border-radius: 50%; background: rgba(124,77,255,.15); border: 1px solid rgba(124,77,255,.4);
  color: var(--accent-2); font-size: 14px; font-weight: 700;
}
.steps h3 { margin: 4px 0 6px; font-size: 17px; font-weight: 650; }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; }
.reqs { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; position: sticky; top: 92px; }
.reqs h3 { margin: 0 0 16px; font-size: 16px; font-weight: 650; }
.reqs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.reqs li { display: grid; grid-template-columns: 15px minmax(0, 1fr); gap: 11px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.reqs .icon { color: var(--accent-2); margin-top: 5px; }
@media (max-width: 900px) { .install-grid { grid-template-columns: 1fr; gap: 40px; } .reqs { position: static; } }

/* tech */
.tech-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 2px 40px; }
.tech-item { padding: 22px 0; border-top: 1px solid var(--line); }
.tech-item h3 { margin: 0 0 6px; font-size: 16.5px; font-weight: 650; }
.tech-item p { margin: 0; color: var(--muted); font-size: 15.5px; }
.tech-foot { margin: 40px 0 0; color: var(--dim); font-size: 15.5px; }
.tech-foot a { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; }

/* faq */
.faq { max-width: 880px; }
.faq { display: grid; gap: 2px; margin-top: 36px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-size: 17.5px; font-weight: 600; letter-spacing: -.012em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq summary:hover { color: var(--accent-2); }
.faq-body { padding: 0 0 22px; }
.faq-body p { margin: 0; color: var(--muted); font-size: 16px; max-width: 72ch; }

/* ------------------------------------------------------------------ footer */

.foot { padding: 64px 0 32px; }
.foot-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr); gap: 48px; }
.foot-brand p { margin: 14px 0 0; color: var(--muted); font-size: 15px; max-width: 34ch; }
.foot-by { color: var(--dim) !important; font-size: 14px !important; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-cols h2 { margin: 0 0 14px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); font-weight: 650; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-cols a { color: var(--muted); font-size: 15px; }
.foot-cols a:hover { color: var(--text); }
.foot-note { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.foot-note p { margin: 0; color: var(--dim); font-size: 14px; }
@media (max-width: 860px) {
  .foot-inner { grid-template-columns: 1fr; gap: 36px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
}

/* ------------------------------------------------------------------- legal */

.legal { padding: 64px 0 88px; }
.legal-wrap > * { max-width: 800px; }
.legal h1 { margin: 0 0 10px; font-size: clamp(32px, 4.2vw, 44px); line-height: 1.12; letter-spacing: -.03em; font-weight: 700; }
.legal .updated { margin: 0 0 40px; color: var(--dim); font-size: 14.5px; }
.legal h2 {
  margin: 48px 0 14px; font-size: 22px; font-weight: 650; letter-spacing: -.018em;
  padding-top: 22px; border-top: 1px solid var(--line);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; }
.legal h3 { margin: 30px 0 10px; font-size: 17px; font-weight: 650; }
.legal p, .legal li { color: var(--muted); font-size: 16.5px; line-height: 1.72; }
.legal p { margin: 0 0 16px; }
.legal ul, .legal ol { margin: 0 0 18px; padding-left: 22px; display: grid; gap: 9px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal .tldr {
  background: var(--panel); border: 1px solid rgba(124,77,255,.3); border-radius: var(--radius);
  padding: 26px 28px; margin: 0 0 44px;
}
.legal .tldr h2 { margin: 0 0 12px; border: 0; padding: 0; font-size: 18px; }
.legal .tldr ul { margin: 0; }
.legal .tldr li { color: var(--text); }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 15.5px; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.legal th { color: var(--text); font-weight: 650; font-size: 14px; letter-spacing: .02em; }
.legal .contact { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin: 0 0 22px; }
.legal .contact p:last-child { margin-bottom: 0; }
.toc { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin: 0 0 44px; }
.toc h2 { margin: 0 0 12px; border: 0; padding: 0; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.toc ol { margin: 0; padding-left: 20px; gap: 7px; }
.toc a { color: var(--muted); font-size: 15px; }
.toc a:hover { color: var(--accent-2); }

@media (max-width: 560px) {
  .tv-screen { padding: 12px 12px 14px; }
  .ui-rows li { grid-template-columns: 14px 20px minmax(0, 1fr) auto; }
  .ui-bar { display: none; }
  .hero { padding: 44px 0 60px; }
  .wrap { padding-inline: 20px; }
}

/* ------------------------------------------------------------- store badges */

.stores {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px 26px;
  margin: 0 0 56px;
}
.stores h3 { margin: 0 0 10px; font-size: 21px; font-weight: 650; letter-spacing: -.016em; }
.stores-lead { margin: 0 0 28px; color: var(--muted); font-size: 16px; max-width: 76ch; }

.store-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px 40px; }
.store { min-width: 0; }

/* The two official badges have their own backgrounds, one dark and one light,
   and neither may be recoloured. The wrapper only provides consistent hit area
   and focus ring; it never paints over the artwork. */
.store-badge {
  display: inline-block;
  border-radius: 9px;
  margin-bottom: 14px;
  transition: transform .15s ease, filter .15s ease;
}
.store-badge:hover { transform: translateY(-2px); filter: brightness(1.06); }
.store-badge img { height: 60px; width: auto; }

/* Google only ships the localised badges as PNGs with built-in vertical
   padding (192px of artwork in a 250px box). The taller box plus a negative
   margin puts that artwork at the same 60px as the padding-free SVGs, without
   cropping or otherwise altering the badge. */
.store-badge-padded img { height: 78px; margin: -9px 0; }

.store-note { margin: 0 0 8px; color: var(--muted); font-size: 15.5px; }
.store-alt { margin: 0; font-size: 14.5px; }
.store-alt a { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); }
.store-alt a:hover { color: var(--accent-2); }

.trademarks { margin: 30px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; line-height: 1.6; }

.direct-title { margin: 0 0 14px; font-size: clamp(22px, 2.4vw, 27px); font-weight: 650; letter-spacing: -.02em; }
.direct-title + .section-lead { margin-bottom: 32px; }

@media (max-width: 560px) {
  .stores { padding: 24px 20px 20px; }
  .store-grid { gap: 26px; }
  .store-badge img { height: 52px; }
  .store-badge-padded img { height: 68px; margin: -8px 0; }
}

/* /amazon interstitial: on screen for a fraction of a second, so it only has
   to be centred, legible and not flash a white background. */
.interstitial {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  text-align: center; padding: 24px;
}
.interstitial img { border-radius: 11px; }
.interstitial p { margin: 0; color: var(--muted); font-size: 16px; }
