/* Tellyhound site: a test card. Crisp white (or black at night), near-black type, magenta links and
   the test card's colour bars as a stripe. Light and dark. */
:root {
  --bars: linear-gradient(90deg, #C0C0C0 0 14.28%, #FFD400 0 28.56%, #00B7EB 0 42.84%, #00A651 0 57.12%, #E5007E 0 71.4%, #E30613 0 85.68%, #0054A6 0);
  --magenta: #E5007E;
  --yellow: #FFD400;
  --live: #E30613;
  --black: #111114;

  --ground: #F7F7F9;
  --surface: #FFFFFF;
  --ink: #111114;
  --muted: #5A5A64;
  --rule: #E3E3E8;
  --accent-ink: #C4006C;
  --code: #EFEFF2;
  --tile: #FFF6C2; --tile-ink: #7A6400;
  --tile2: #D6F2FC; --tile2-ink: #00708F;

  /* The hero and nav: white by day, black at night */
  --hero: #FFFFFF; --hero-ink: #111114; --hero-soft: #55555F; --hero-rule: #E3E3E8;
  --pop: #E5007E; --head-em: #E5007E; --btn: #111114; --btn-ink: #FFFFFF;

  /* The services strip and the alerts band stay black in both themes */
  --night: #111114; --night-raised: #1B1B20; --night-deep: #0A0A0C; --night-rule: #2A2A31;
  --on-night: #FFFFFF; --on-night-muted: #A8A8B3;

  /* Each service's colour, as the app uses for chips and headers */
  --bbc: #C4105F; --itvx: #0D7A4F; --c4: #6B3FA0; --c5: #A87508; --sky: #0087B0;
  --netflix: #D81F26; --prime: #0F6FC6; --disney: #1A2C8C; --apple: #1D1D1F; --paramount: #2A5BD7;

  --font-display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0E0E10; --surface: #18181C; --ink: #F4F4F6; --muted: #A8A8B3; --rule: #2A2A31;
    --accent-ink: #FF3FA4; --code: #232329;
    --tile: #3A3310; --tile-ink: #FFD400; --tile2: #0F3644; --tile2-ink: #5FD3F5;
    --hero: #0E0E10; --hero-ink: #F4F4F6; --hero-soft: #A8A8B3; --hero-rule: #2A2A31;
    --pop: #FFD400; --head-em: #FF3FA4; --btn: #FFFFFF; --btn-ink: #0E0E10;
    --night: #18181C; --night-raised: #0E0E10; --night-deep: #060607;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--magenta); }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1160px, 100%); margin: 0 auto; padding-inline: 20px; }

/* Nav: the same colour as the hero, so they run together */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--hero) 88%, transparent);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--hero-rule);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--hero-ink);
  font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.01em;
}
.brand:hover { color: var(--hero-ink); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 22px; font-size: 0.95rem; }
.nav-links a { color: var(--hero-soft); text-decoration: none; }
.nav-links a:hover { color: var(--hero-ink); }
@media (max-width: 560px) { .nav-links .optional { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-primary { background: var(--btn); color: var(--btn-ink); }
.btn-primary:hover { background: var(--magenta); color: #fff; transform: translateY(-2px); }
.btn-ghost { color: var(--hero-ink); border: 1px solid var(--hero-rule); background: var(--surface); }
.btn-ghost:hover { color: var(--hero-ink); border-color: var(--hero-soft); }
.btn svg { width: 18px; height: 18px; }

/* Small label above closing headings */
.kicker {
  display: block; font-family: var(--font-mono); font-weight: 500; font-size: 0.8rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 16px;
}

/* Hero: white by day, black at night */
.hero {
  position: relative; padding-block: 72px 72px; overflow: hidden; isolation: isolate;
  background: var(--hero); color: var(--hero-ink);
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--pop); border: 1px solid color-mix(in srgb, var(--pop) 45%, transparent); padding: 5px 12px; border-radius: 999px; margin-bottom: 24px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 10px var(--live); }
h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.9rem, 6.6vw, 5rem); line-height: 0.98; letter-spacing: -0.03em; margin: 0 0 24px; text-wrap: balance;
}
h1 em { font-style: normal; color: var(--head-em); }
.lede { font-size: 1.16rem; color: var(--muted); max-width: 34em; margin: 0 0 32px; }
.hero .lede { color: var(--hero-soft); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { font-size: 0.88rem; color: var(--hero-soft); margin-top: 18px; }

.hero-phones { position: relative; height: 640px; }
.hero-phones .phone { position: absolute; width: 270px; }
.hero-phones .phone:nth-child(1) { left: 4%; top: 40px; transform: rotate(-5deg); }
.hero-phones .phone:nth-child(2) { right: 4%; top: 0; transform: rotate(4deg); z-index: 1; }

.phone {
  padding: 7px; border-radius: 46px; background: #0B0B10;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 30px 60px -22px rgba(0, 0, 0, 0.5);
}
.phone img { width: 100%; height: auto; aspect-ratio: 1260 / 2736; border-radius: 39px; background: #1B1B20; }

@media (max-width: 900px) {
  .hero { padding-top: 48px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-phones { height: 520px; max-width: 460px; width: 100%; margin: 0 auto; }
  .hero-phones .phone { width: 220px; }
}
@media (max-width: 480px) {
  .hero-phones { height: 430px; }
  .hero-phones .phone { width: 178px; }
  .hero-phones .phone:nth-child(1) { left: 0; }
  .hero-phones .phone:nth-child(2) { right: 0; }
}

/* Service chips: the strip under the hero, and inline */
.services { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px;
  font-size: 0.86rem; font-weight: 600; color: #fff; background: var(--c, #5B5B66); white-space: nowrap;
}
.bars { height: 12px; background: var(--bars); }
.strip { background: var(--night); padding-block: 18px; }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.strip .services { flex: 1 1 520px; }
.strip-label { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--yellow); }

/* Sections */
section { padding-block: 80px; }
.section-head { max-width: 46em; margin-bottom: 40px; }
.label {
  font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent-ink); margin-bottom: 10px; display: flex; align-items: center; gap: 10px;
}
.label::before { content: ""; width: 22px; height: 8px; border-radius: 2px; background: linear-gradient(90deg, #FFD400 0 33.3%, #00B7EB 0 66.6%, #E5007E 0); }
h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.04; letter-spacing: -0.025em; margin: 0 0 14px; text-wrap: balance;
}
.section-head p { color: var(--muted); margin: 0; font-size: 1.08rem; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: 24px; }
.feature .ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--tile); color: var(--tile-ink); margin-bottom: 16px;
}
.feature .ico.t { background: var(--tile2); color: var(--tile2-ink); }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* Showcase rows */
.showcase { display: grid; gap: 96px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.row.flip .copy { order: 2; }
.row .shots { display: flex; gap: 20px; justify-content: center; align-items: flex-start; }
.row .shots .phone { width: min(250px, 46%); }
.row .shots .phone:nth-child(2) { margin-top: 48px; }
.row .lede { margin: 0; }
.ticks { padding: 0; margin: 20px 0 0; list-style: none; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; color: var(--muted); }
.ticks li::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: 0.3em; border-radius: 50%;
  background: var(--magenta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
@media (max-width: 860px) {
  .row { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .row.flip .copy { order: 0; }
}

/* Black band: the listings guide */
.band { background: var(--night); color: var(--on-night); position: relative; overflow: hidden; isolation: isolate; }
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  height: 8px; bottom: auto; background: var(--bars);
}
.band .label { color: var(--yellow); }
.band .section-head p { color: var(--on-night-muted); }
.band-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.band-grid .shots { display: flex; gap: 18px; justify-content: center; }
.band-grid .shots .phone { width: min(230px, 47%); }
.band-grid .shots .phone:nth-child(2) { margin-top: 48px; }
@media (max-width: 900px) { .band-grid { grid-template-columns: minmax(0, 1fr); } }

/* Listings: a week of new episodes, like a TV guide */
.listings { border: 1px solid var(--night-rule); border-radius: 18px; overflow: hidden; background: var(--night-raised); }
.day {
  background: var(--night-deep); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--yellow); padding: 10px 18px;
}
.slot { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--night-rule); }
.slot time { font-family: var(--font-mono); font-size: 0.86rem; color: var(--on-night-muted); }
.slot strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; color: var(--on-night); line-height: 1.2; }
.slot small { color: var(--on-night-muted); font-size: 0.86rem; }
.slot .chip { font-size: 0.76rem; padding: 3px 10px; }
.listings-foot { padding: 14px 18px; border-top: 1px solid var(--night-rule); font-size: 0.88rem; color: var(--on-night-muted); margin: 0; }
@media (max-width: 520px) {
  .slot { grid-template-columns: 52px minmax(0, 1fr); }
  .slot .chip { grid-column: 2; justify-self: start; }
}

/* Honest notes */
.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.note { background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: 24px 26px; }
.note h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 10px; }
.note p { color: var(--muted); margin: 0 0 12px; }
.note p:last-child { margin-bottom: 0; }

/* Lists of points */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 2px solid var(--ink); }
.trust div { padding: 22px 24px 22px 0; border-bottom: 1px solid var(--rule); }
.trust strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; letter-spacing: -0.01em; margin-bottom: 4px; }
.trust span { color: var(--muted); font-size: 0.96rem; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 2px 22px; }
.faq details[open] { border-color: color-mix(in srgb, var(--magenta) 45%, var(--rule)); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; font-size: 1.04rem;
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent-ink); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }
code { font-family: var(--font-mono); font-size: 0.86em; background: var(--code); color: var(--ink); padding: 2px 6px; border-radius: 5px; overflow-wrap: anywhere; }

/* Closing CTA */
.closing { text-align: center; }
.closing img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 24px; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.35); }
.closing .cta { justify-content: center; }
.closing p { color: var(--muted); max-width: 32em; margin: 0 auto 28px; font-size: 1.1rem; }
.closing .btn-primary { background: var(--magenta); color: #fff; }
.closing .btn-primary:hover { background: #C4006C; color: #fff; }
.closing .btn-ghost { color: var(--ink); border-color: var(--rule); background: var(--surface); }

/* Footer */
footer { padding-block: 0 48px; font-size: 0.9rem; color: var(--muted); }
footer::before { content: ""; display: block; height: 6px; background: var(--bars); margin-bottom: 36px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--muted); }
.disclaimer { width: 100%; font-size: 0.82rem; margin: 0; }

/* Prose pages */
.prose { max-width: 740px; padding-block: 56px 80px; }
.prose h1 { font-size: clamp(2.5rem, 6vw, 3.4rem); margin-bottom: 8px; }
.prose .updated { font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted); margin: 0 0 36px; }
.prose h2 { font-size: 1.8rem; margin: 48px 0 12px; }
.prose h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 8px; }
.prose ol li::marker { font-family: var(--font-mono); color: var(--accent-ink); font-weight: 500; }
.callout {
  background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--magenta);
  border-radius: 12px; padding: 18px 22px; margin: 24px 0;
}
.callout p { margin: 0; color: var(--ink); }
.prose .toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.toc li { margin: 0; }
.toc a {
  display: inline-block; font-size: 0.88rem; text-decoration: none; color: var(--ink);
  border: 1px solid var(--rule); background: var(--surface); padding: 5px 12px; border-radius: 999px;
}
.toc a:hover { border-color: var(--magenta); color: var(--ink); }

/* 404 */
.lost { min-height: 100vh; display: grid; place-items: center; padding-block: 80px; }
.lost h1 { font-size: clamp(3rem, 9vw, 5rem); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* More apps: a card above the footer linking to apps.mattoddie.dev. The same markup is on each app's site. */
.more-apps { padding-block: 24px 56px; }
.more-apps-card { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 22px 26px; border: 1px solid var(--rule); border-radius: 20px; background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color 0.15s ease; }
.more-apps-card:hover { border-color: var(--muted); }
.more-apps-icons { display: flex; flex: none; }
.more-apps-icons img { width: 44px; height: 44px; border-radius: 10px; box-shadow: 0 0 0 3px var(--surface); }
.more-apps-icons img + img { margin-left: -8px; }
.more-apps-text { flex: 1 1 280px; display: flex; flex-direction: column; gap: 3px; }
.more-apps-title { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.2; }
.more-apps-desc { color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.more-apps-go { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--accent-ink); white-space: nowrap; }
.more-apps-go svg { width: 13px; height: 13px; }
.more-apps-card:hover .more-apps-go { text-decoration: underline; }
