/* Earshot web. Direction C, "Vice": neon cyan and pink on a purple-tinted
 * near-black; light mode is the muted daytime variant of the same hues.
 * Tokens mirror Packages/DesignSystem/Brand.swift in the iOS repo. Neon
 * lives in accents and hero surfaces only; body text is never a neon hue. */

:root {
  --accent: #0B8F90;
  --pink: #C74E96;
  --violet: #7A4DB0;
  --bg: #FAF8F5;
  --surface: #F1EEE8;
  --surface-raised: #FFFFFF;
  --ink: #1C1926;
  --ink-soft: #4A4556;
  --muted: #7C7689;
  --line: #E3DED4;
  --accent-ink: #FFFFFF;
  /* The accent as TEXT on paper: the cyan itself reads at 3.7:1 against the
     page, so links and small labels use this darker cut (5.6:1). In the dark
     appearance the accent already reads, so there it is the accent. */
  --accent-text: #066F70;
  --shadow: 0 1px 2px rgb(28 25 38 / 0.06), 0 8px 24px rgb(28 25 38 / 0.07);
  --f-display: "Space Grotesk", system-ui, sans-serif;
  --f-ui: "Inter", system-ui, sans-serif;
  --radius: 14px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #0BD2D3;
    --pink: #FE6DC6;
    --violet: #8A2BE2;
    --bg: #0B0A14;
    --surface: #151327;
    --surface-raised: #1C1935;
    --ink: #F2F0FA;
    --ink-soft: #C4C0D4;
    --muted: #8B86A0;
    --line: #262242;
    --accent-ink: #0B0A14;
    --accent-text: #0BD2D3;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.45);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--f-display); line-height: 1.15; margin: 0 0 0.5rem; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 1.35rem; font-weight: 600; }
h3 { font-size: 1.05rem; font-weight: 600; }
a { color: var(--accent-text); }
p { margin: 0 0 1rem; }

/* masthead */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.masthead-inner {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark-icon { width: 1.7rem; height: 1.7rem; border-radius: 0.45rem; display: block; }

.nav { display: flex; align-items: center; gap: 0.35rem; }

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink-soft);
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--f-ui);
  cursor: pointer;
  line-height: 1.4;
}

.nav-link:hover { color: var(--ink); background: var(--surface); }
/* The active tab reads as unmistakably ON: filled tint, accent border,
   heavier weight (Derick, 2026-08-27: "highlight what tab we're on a
   little bit more"). */
.nav-link.on {
  color: var(--accent);
  font-weight: 700;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
.nav-cta { background: var(--accent-text); color: var(--accent-ink); }
.nav-cta:hover { background: color-mix(in srgb, var(--accent) 85%, var(--ink)); color: var(--accent-ink); }
form:has(> .nav-button) { display: contents; }

/* flash, main, footer */

.flash-wrap { max-width: 68rem; margin: 1rem auto 0; padding: 0 1.25rem; width: 100%; }

.flash {
  margin: 0 0 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid;
}

.flash-notice {
  background: color-mix(in srgb, var(--accent) 10%, var(--bg));
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  color: var(--ink);
}

.flash-alert {
  background: color-mix(in srgb, var(--pink) 10%, var(--bg));
  border-color: color-mix(in srgb, var(--pink) 40%, transparent);
  color: var(--ink);
}

.main { flex: 1; width: 100%; max-width: 68rem; margin: 0 auto; padding: 1.75rem 1.25rem 4rem; }

.footer { border-top: 1px solid var(--line); background: var(--surface); }

.footer-inner {
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.footer-nav { display: flex; gap: 1.1rem; }
.footer-nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.footer-nav a:hover { color: var(--ink); }

/* buttons and forms */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 2.8rem;
  padding: 0 1.35rem;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--f-ui);
  font-weight: 650;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover { background: color-mix(in srgb, var(--accent) 85%, var(--ink)); }

.btn-quiet {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-quiet:hover { background: var(--surface); color: var(--ink); }

.btn-danger-quiet {
  background: transparent;
  color: var(--pink);
  border: 1px solid color-mix(in srgb, var(--pink) 45%, transparent);
}
.btn-danger-quiet:hover { background: color-mix(in srgb, var(--pink) 10%, transparent); }

/* The one destructive primary action (the delete-account confirm page). */
.btn-danger { background: var(--pink); color: #fff; }
.btn-danger:hover { background: color-mix(in srgb, var(--pink) 85%, var(--ink)); }
.eyebrow-danger { color: var(--pink); }
.delete-lead { color: var(--ink-soft); }
.you-controls .hint { flex: 1 1 14rem; }

.field { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--ink-soft); }

.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="url"],
.field input[type="file"] {
  height: 2.8rem;
  width: 100%;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-raised);
  color: var(--ink);
  font-family: var(--f-ui);
  font-size: 1rem;
}

.field input[type="file"] { padding: 0.55rem 0.9rem; height: auto; }

.field input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.field-errors { margin: 0.15rem 0 0; padding: 0; list-style: none; color: var(--pink); font-size: 0.88rem; font-weight: 500; }

.password-field { position: relative; }
.password-field input { padding-right: 2.9rem !important; }

.reveal-btn {
  position: absolute;
  top: 0;
  right: 0;
  height: 2.8rem;
  width: 2.8rem;
  display: grid;
  place-items: center;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 0 10px 10px 0;
}
.reveal-btn:hover { color: var(--ink); }

/* The hidden attribute's UA rule does not reliably reach inline SVG. */
.reveal-btn svg[hidden] { display: none; }

.hint { font-size: 0.9rem; color: var(--muted); }

/* auth card */

.auth-wrap { max-width: 26rem; margin: 2.5rem auto 0; }

.auth-card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.75rem 1.5rem;
}

.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.auth-card .btn { width: 100%; margin-top: 0.25rem; }
.auth-alt { margin: 1.25rem 0 0; font-size: 0.92rem; color: var(--muted); }

/* marketing home */

.hero { padding: 3.5rem 0 2.5rem; max-width: 46rem; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.25rem;
}

.hero h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin-bottom: 1rem; }

.hero .sunset {
  background: linear-gradient(100deg, var(--pink), var(--violet), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub { font-size: 1.15rem; color: var(--ink-soft); max-width: 38rem; }
.hero-actions { display: flex; gap: 0.75rem; margin-top: 1.75rem; flex-wrap: wrap; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.feature {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1rem;
}

.feature h3 { margin-bottom: 0.35rem; }
.feature p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }
.feature-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; display: inline-block; margin-bottom: 0.7rem; }

/* legal pages */

.prose { max-width: 44rem; }
.prose h2 { margin-top: 2rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose-updated { color: var(--muted); font-size: 0.9rem; }

/* library grid */

.page-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.page-head p { margin: 0; color: var(--muted); }

.show-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 1.4rem 1.1rem;
}

.show-card { display: block; text-decoration: none; color: inherit; min-width: 0; }

.show-card-art {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 140ms ease, box-shadow 140ms ease;
  display: block;
}

.show-card:hover .show-card-art { transform: translateY(-3px); }

.artwork-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--pink) 30%, var(--surface)),
    color-mix(in srgb, var(--violet) 30%, var(--surface)),
    color-mix(in srgb, var(--accent) 30%, var(--surface)));
  color: var(--ink);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.6rem;
}

.show-card-title {
  margin: 0.6rem 0 0.1rem;
  font-family: var(--f-ui);
  font-weight: 650;
  font-size: 0.95rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.show-card-meta { font-size: 0.82rem; color: var(--muted); }

.stale-dot {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--pink);
  margin-left: 0.3rem;
  vertical-align: 0.1rem;
}

.empty-state {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--muted);
}
.empty-state .btn { margin-top: 0.75rem; }

/* show page */

.show-hero { display: grid; grid-template-columns: 11rem 1fr; gap: 1.75rem; margin-bottom: 2.25rem; }

.show-hero-art {
  width: 11rem;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 2.4rem;
}

.show-hero h1 { margin-bottom: 0.2rem; }
.show-hero-author { color: var(--accent); font-weight: 600; margin-bottom: 0.6rem; }
.show-hero-desc { color: var(--ink-soft); max-width: 42rem; font-size: 0.98rem; }
.show-hero-actions { display: flex; gap: 0.6rem; margin-top: 1rem; flex-wrap: wrap; }
.show-hero-actions form { display: contents; }

@media (max-width: 40rem) {
  .show-hero { grid-template-columns: 1fr; }
  .show-hero-art { width: 8.5rem; }
}

.episode-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }

.episode-row { border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 0.75rem; }

.episode-row-link {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 1.25rem;
  padding: 0.95rem 0.35rem;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
}

/* The phone's swipe actions as icon columns: FIXED equal columns so the
   icons line up straight down every row (the layout-alignment rule). */
.episode-actions { flex: none; display: grid; grid-template-columns: repeat(4, 2.3rem); gap: 0.3rem; align-items: center; }
.episode-actions form { display: contents; }

.icon-btn {
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn .nav-icon { width: 1.15rem; height: 1.15rem; }
.icon-btn.active {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
span.icon-btn { cursor: default; }

/* A finished state is not a call to action. Downloaded, queued and played
   read as settled: filled, quiet, and unmoved by the cursor. Only the ones
   that undo something respond to hover, and then in red, so "remove" never
   looks like "download" (Derick, 2026-08-28). */
.icon-btn.done {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  cursor: default;
}
.icon-btn.done:hover {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
.icon-btn.done.removable { cursor: pointer; }
.icon-btn.done.removable:hover {
  color: var(--pink);
  border-color: color-mix(in srgb, var(--pink) 55%, transparent);
  background: color-mix(in srgb, var(--pink) 12%, transparent);
}
.icon-btn.failed { color: var(--pink); border-color: color-mix(in srgb, var(--pink) 45%, transparent); }

/* A download in flight: a ring that fills to the percentage, with the
   number in the middle, so "it is doing something" is never a guess. */
.icon-btn.busy {
  cursor: default;
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  background:
    conic-gradient(var(--accent) var(--pct, 0%), transparent 0) border-box;
  position: relative;
  color: var(--accent);
}
.icon-btn.busy::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 6px;
  background: var(--bg);
}
.dl-pct { position: relative; z-index: 1; font-size: 0.68rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Search-this-show: the phone's filter field, with the magnifier inside it
   rather than the field standing there unlabelled. */
.show-filter { position: relative; flex: 1 1 16rem; min-width: 12rem; }
.show-filter .search-input { width: 100%; padding-left: 2.4rem; }
.show-filter-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.05rem;
  height: 1.05rem;
  color: var(--muted);
  pointer-events: none;
}
.show-filter-icon .nav-icon { width: 100%; height: 100%; }
.show-filter-spinner {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  width: 0.9rem;
  height: 0.9rem;
  margin-top: -0.45rem;
  border: 2px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* The sticky show controls. The listing switch and the search field have to
   stay reachable however far down a 2,800-episode list you are; the hero
   condenses into a one-line title once it scrolls away. */
.show-sticky-sentinel { height: 1px; }
.show-sticky {
  position: sticky;
  top: var(--masthead-h, 86px);
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.7rem 0;
  margin-bottom: 0.4rem;
}
.show-sticky.stuck {
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 18px -16px rgb(0 0 0 / 0.45);
}
.show-sticky-title {
  display: none;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.55rem;
  min-width: 0;
}
.show-sticky.stuck .show-sticky-title { display: flex; }
.show-sticky-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.show-sticky-art { width: 1.7rem; height: 1.7rem; border-radius: 6px; object-fit: cover; flex: none; }
.show-controls { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.show-controls .listing-segment { margin: 0; flex: 1 1 18rem; }

.episode-count { color: var(--muted); font-size: 0.86rem; margin: 0 0 0.5rem; }
.episode-more { display: flex; justify-content: center; padding: 1.1rem 0 0; }
.episode-empty { margin: 1.2rem 0; }

/* The feed-error banner carries its own fix. */
.feed-error { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.feed-error span { flex: 1 1 20rem; }
.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.85rem; }

/* Tooltips appear the instant the cursor lands. The native `title` attribute
   waits about a second, cannot be styled, and on a row of four icons that
   delay is the difference between a legible control set and four mystery
   glyphs (Derick, 2026-08-28). */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 0.55rem;
  border-radius: 7px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  z-index: 60;
}
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; visibility: visible; }
/* The last column's tip would run off the right edge, so it hangs left. */
.episode-actions > *:last-child[data-tip]::after,
.episode-actions form:last-child [data-tip]::after { left: auto; right: 0; transform: none; }

/* Up Next drag handles. */
.drag-handle {
  flex: none;
  width: 2rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  color: var(--muted);
  cursor: grab;
  touch-action: none;
}
.drag-handle svg { width: 1.15rem; height: 1.15rem; }
.drag-handle:active { cursor: grabbing; }
.sortable-ghost { opacity: 0.4; }
.sortable-chosen { background: var(--surface); border-radius: 10px; }

.episode-row-link:hover { background: var(--surface); }

.episode-row-title { font-weight: 600; font-size: 0.98rem; line-height: 1.35; }
.episode-row-meta { grid-row: 2; font-size: 0.84rem; color: var(--muted); display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.episode-row-side { grid-row: 1 / 3; align-self: center; display: flex; align-items: center; gap: 0.75rem; }

.played-check { color: var(--accent); font-weight: 700; font-size: 0.84rem; }

.progress-pill {
  width: 5.5rem;
  height: 0.35rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}

.progress-pill span { display: block; height: 100%; background: var(--accent); }

/* episode page */

.episode-head { margin-bottom: 1.5rem; }
.episode-head-show { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--accent); font-weight: 650; font-size: 0.92rem; margin-bottom: 0.6rem; }
.episode-head-show img, .episode-head-show .artwork-placeholder { width: 1.8rem; height: 1.8rem; border-radius: 6px; font-size: 0.7rem; }
.episode-head-meta { color: var(--muted); font-size: 0.9rem; display: flex; gap: 0.7rem; flex-wrap: wrap; }

.notes-and-transcript { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; margin-top: 2rem; }
@media (min-width: 56rem) {
  .has-transcript { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}

.show-notes { color: var(--ink-soft); font-size: 0.97rem; overflow-wrap: break-word; }
.show-notes img { max-width: 100%; height: auto; border-radius: 8px; }
.show-notes a { overflow-wrap: anywhere; }

.transcript-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem 0.6rem;
  max-height: 34rem;
  overflow-y: auto;
  align-self: start;
}

.transcript-cue { display: grid; grid-template-columns: 3.6rem 1fr; gap: 0.75rem; padding: 0.3rem 0.2rem; border-radius: 6px; }
.transcript-cue.in-ad { background: color-mix(in srgb, var(--pink) 9%, transparent); }

.cue-time {
  border: none;
  background: none;
  padding: 0;
  color: var(--accent);
  font-weight: 650;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  text-align: left;
  font-family: var(--f-ui);
  align-self: start;
  line-height: 1.55;
}
.cue-time:hover { text-decoration: underline; }
.cue-text { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

.ad-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pink);
  background: color-mix(in srgb, var(--pink) 12%, transparent);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}

/* the player island */

.player-island { margin-top: 0.5rem; }

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--pink) 14%, transparent),
      color-mix(in srgb, var(--violet) 9%, transparent) 55%,
      color-mix(in srgb, var(--accent) 12%, transparent)),
    var(--bg);
  box-shadow: var(--shadow);
  padding: 1.4rem;
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1.4rem;
  align-items: center;
}

@media (max-width: 40rem) {
  .player-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

.player-art {
  width: 8.5rem;
  height: 8.5rem;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.player-body { min-width: 0; width: 100%; }
.player-title { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; line-height: 1.3; margin: 0 0 0.15rem; }
.player-show { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 0.9rem; }

.seek-wrap { position: relative; height: 1.4rem; display: flex; align-items: center; cursor: pointer; touch-action: none; }

.seek-track {
  position: relative;
  width: 100%;
  height: 0.45rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 12%, transparent);
  overflow: hidden;
}

.seek-buffered { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--ink) 10%, transparent); }
.seek-played { position: absolute; inset: 0 auto 0 0; background: var(--accent); }

.seek-ad {
  position: absolute;
  top: 0;
  bottom: 0;
  background: repeating-linear-gradient(45deg,
    color-mix(in srgb, var(--pink) 55%, transparent) 0 4px,
    color-mix(in srgb, var(--pink) 25%, transparent) 4px 8px);
}

.seek-thumb {
  position: absolute;
  top: 50%;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.3);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.player-times {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-top: 0.25rem;
}

.player-controls { display: flex; align-items: center; justify-content: center; gap: 1.1rem; margin-top: 0.8rem; }

.ctl-btn {
  display: grid;
  place-items: center;
  border: none;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  border-radius: 50%;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0;
}

.ctl-btn:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }

.ctl-skip { position: relative; font-family: var(--f-ui); }
.ctl-skip .skip-num { position: absolute; font-size: 0.58rem; font-weight: 700; top: 52%; left: 50%; transform: translate(-50%, -50%); }

.ctl-play {
  width: 3.6rem;
  height: 3.6rem;
  background: var(--accent);
  color: var(--accent-ink);
}
.ctl-play:hover { background: color-mix(in srgb, var(--accent) 85%, var(--ink)); }

.speed-btn {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 65%, transparent);
  color: var(--ink);
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 999px;
  height: 2.2rem;
  min-width: 3.6rem;
  padding: 0 0.7rem;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.speed-btn:hover { background: var(--surface); }

.speed-menu {
  position: absolute;
  z-index: 30;
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: grid;
  min-width: 6.5rem;
}

.speed-menu button {
  border: none;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-variant-numeric: tabular-nums;
}

.speed-menu button:hover { background: var(--surface); }
.speed-menu button[aria-checked="true"] { color: var(--accent); }

.player-status { min-height: 1.1rem; font-size: 0.78rem; color: var(--muted); text-align: center; margin-top: 0.45rem; }

/* dev sign-in block (development only; see dev-extras skill) */

.dev-cast {
  --dev-stripe: color-mix(in srgb, var(--accent) 12%, transparent);
  max-width: 34rem;
  margin: 1.5rem auto 1rem;
  overflow: hidden;
  background: var(--surface-raised);
  border: 2px dashed color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 0.5rem;
}

.dev-cast-tape {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.4rem 0.7rem;
  font-family: var(--f-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
  background: repeating-linear-gradient(45deg, var(--dev-stripe) 0 8px, transparent 8px 16px);
}

.dev-cast-tape-top { border-bottom: 2px dashed color-mix(in srgb, var(--accent) 45%, transparent); }
.dev-cast-tape-bottom { border-top: 2px dashed color-mix(in srgb, var(--accent) 45%, transparent); }

.dev-cast-tape-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1.15rem;
  background: var(--surface-raised);
  color: var(--ink);
  border-left: 2px dashed color-mix(in srgb, var(--accent) 45%, transparent);
  border-right: 2px dashed color-mix(in srgb, var(--accent) 45%, transparent);
}

.dev-cast-tape-label::before,
.dev-cast-tape-label::after {
  content: "";
  flex: none;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}

.dev-cast-body { padding: 0.45rem; }

.dev-cast-head,
.dev-cast-row {
  display: grid;
  grid-template-columns: 7rem 1fr 1.25rem;
  column-gap: 0.9rem;
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 0.4rem;
  background: transparent;
  text-align: left;
  font: inherit;
  font-family: var(--f-ui);
  color: inherit;
  cursor: pointer;
}

.dev-cast-head { align-items: center; padding-block: 0.5rem; }
.dev-cast-row { align-items: start; }
.dev-cast-head:hover, .dev-cast-row:hover { background: var(--surface); border-color: var(--line); }
.dev-cast-head-title { font-size: 0.85rem; font-weight: 700; color: var(--ink); }

.dev-cast-head-sub {
  min-width: 0;
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dev-cast-chevron { display: grid; place-items: center; color: var(--muted); }
.dev-cast-chevron svg { display: block; transition: transform 180ms ease; }
.dev-cast.is-collapsed .dev-cast-chevron svg { transform: rotate(180deg); }

.dev-cast-panel {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 180ms ease, opacity 140ms ease, visibility 0s;
}

.dev-cast-panel > .dev-cast-table { min-height: 0; overflow: hidden; }

.dev-cast.is-collapsed .dev-cast-panel {
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition: grid-template-rows 180ms ease, opacity 140ms ease, visibility 0s 180ms;
}

.dev-cast-table { display: grid; gap: 0.3rem; padding-top: 0.4rem; border-top: 1px solid var(--line); }
.dev-cast-who { display: grid; gap: 0.1rem; }
.dev-cast-name { font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.dev-cast-role { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.02em; }
.dev-cast-blurb { font-size: 0.82rem; line-height: 1.45; color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  .dev-cast-panel, .dev-cast-chevron svg, .show-card-art { transition: none; }
}

@media (max-width: 32rem) {
  .dev-cast-head, .dev-cast-row { grid-template-columns: 1fr 1.25rem; }
  .dev-cast-row { row-gap: 0.25rem; }
  .dev-cast-blurb { grid-column: 1 / -1; }
  .dev-cast-who { grid-auto-flow: column; justify-content: start; gap: 0.45rem; align-items: baseline; }
}

/* add-show page */

.add-grid { display: grid; gap: 1.25rem; max-width: 34rem; }

.panel {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: var(--shadow);
}

/* File inputs get the app's button, not the browser's gray chip. */
.field input[type="file"]::file-selector-button {
  border: none;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--f-ui);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.45rem 0.95rem;
  margin-right: 0.8rem;
  cursor: pointer;
  border: 1px solid var(--line);
}
.field input[type="file"]::file-selector-button:hover { background: color-mix(in srgb, var(--surface) 70%, var(--line)); }

/* ===== Triage surfaces: Inbox, Up Next, search results ===== */

.btn-small {
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
  border-radius: 8px;
}

.triage-list { list-style: none; margin: 0; padding: 0; }
.triage-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 0.25rem;
  border-bottom: 1px solid var(--line);
}
.triage-art-link { flex: none; display: block; line-height: 0; }
.triage-art {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}
.triage-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.triage-show {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.triage-title {
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.triage-title:hover { color: var(--accent); }
.triage-meta { font-size: 0.82rem; color: var(--muted); display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 0; }
.triage-actions { flex: none; display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; justify-content: flex-end; }
.triage-actions form { display: inline; }
.queue-move { display: inline-flex; gap: 0.25rem; }

/* On narrow screens the actions drop under the text instead of crushing it. */
@media (max-width: 640px) {
  .triage-row { flex-wrap: wrap; }
  .triage-actions { width: 100%; justify-content: flex-start; padding-left: calc(56px + 0.9rem); }
}

/* Search */
.search-form { display: flex; gap: 0.6rem; margin-bottom: 1.5rem; }
.search-input {
  flex: 1 1 auto;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.search-heading { margin: 1.6rem 0 0.5rem; font-size: 1.05rem; }
.cue-hit-list { list-style: none; margin: 0; padding: 0; }
.cue-hit-list ul { list-style: none; margin: 0.3rem 0 0; padding: 0; }
.cue-hit-group { padding: 0.7rem 0.25rem; border-bottom: 1px solid var(--line); }
.cue-hit-head { display: flex; flex-direction: column; gap: 0.1rem; margin-bottom: 0.2rem; }
.cue-hit { display: flex; gap: 0.6rem; padding: 0.25rem 0; align-items: baseline; }
.cue-hit-time {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 0.85rem;
  flex: none;
}
.cue-hit-text { color: var(--ink-soft); font-size: 0.9rem; }
.cue-hit:hover .cue-hit-text { color: var(--ink); }

.episode-head-actions { display: flex; gap: 0.4rem; margin-top: 0.6rem; align-items: center; }
.episode-head-actions form { display: inline; }

/* Library tools: sort + pins */
.page-head-tools { display: flex; align-items: center; gap: 0.7rem; }
.page-head-tools form:has(> .sort-badge) { display: contents; }
.episode-head-actions form { display: contents; }
.sort-form { display: flex; align-items: center; gap: 0.4rem; }
.sort-label { font-size: 0.82rem; color: var(--muted); }
.sort-select {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
}
.show-card-artwrap { position: relative; display: block; }
.pin-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--pink);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  border-radius: 7px;
  box-shadow: 0 1px 3px rgb(0 0 0 / 30%);
}
.pin-badge svg, .pin-badge .nav-icon { width: 20px; height: 20px; }

/* ===== Styled listbox (the form-controls rule: never a native select) ===== */
/* One control height for anything sharing a row with a .btn or an input. */
:root { --control-h: 2.4rem; }

.listbox { position: relative; min-width: 10.5rem; }
.listbox-native {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.listbox-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  width: 100%;
  height: var(--control-h);
  padding: 0 0.8rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.listbox-button:hover { border-color: var(--accent); }
.listbox-button[aria-expanded="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}
.listbox-chevron { display: flex; flex-shrink: 0; width: 0.7rem; color: var(--accent); }
.listbox-chevron svg { width: 100%; }
.listbox-chevron path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.listbox-button[aria-expanded="true"] .listbox-chevron { transform: rotate(180deg); }
.listbox-list {
  position: absolute;
  z-index: 80;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: min(22rem, 90vw);
  max-height: 15rem;
  overflow-y: auto;
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  background: var(--bg, Canvas);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgb(0 0 0 / 25%);
}
.listbox-option {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.5rem 0.6rem;
  font-size: 0.9rem;
  color: var(--ink);
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.listbox-option:hover, .listbox-option.active {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}
.listbox-tick { visibility: hidden; }
.listbox-option[aria-selected="true"] .listbox-tick { visibility: visible; }

/* Controls in a row share a height (form-controls rule 1). */
.page-head-tools .btn, .search-form .btn {
  height: var(--control-h);
  display: inline-flex;
  align-items: center;
}
.search-input { height: var(--control-h); box-sizing: border-box; }

/* Nav icons + iconed buttons */
.nav-link { display: inline-flex; align-items: center; gap: 0.35rem; }
.nav-icon { display: inline-flex; width: 1.05em; height: 1.05em; }
.nav-icon svg { width: 100%; height: 100%; }
.btn-iconed { display: inline-flex; align-items: center; gap: 0.4rem; }
.btn-iconed .nav-icon { width: 1em; height: 1em; }

/* Show page byline, matching the phone's eyebrow treatment */
.byline-link { text-decoration: underline; font-weight: 600; }

/* All / Current segment, the phone's control on the web */
.listing-segment { display: flex; gap: 0.5rem; margin: 1.2rem 0 0.8rem; }
.listing-segment form { flex: 1 1 0; display: flex; }
.listing-side {
  flex: 1 1 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  height: var(--control-h);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.listing-side.selected { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.listing-order { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; font-weight: 600; opacity: 0.95; }
/* Both arrows, the live one solid and the other faint — the phone's
   treatment, so tap-again-to-flip stays discoverable. */
.listing-arrows { display: inline-flex; gap: 1px; font-weight: 800; }
.listing-arrows .dim { opacity: 0.35; }
/* Reserve the wider word's width so Newest/Oldest flips never shift. */
.listing-order-word { display: inline-block; min-width: 3.6em; text-align: left; }

/* The Up Next lens flip, same badge the phone's sort controls wear. */
.sort-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: var(--control-h);
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.sort-badge:hover { border-color: var(--accent); color: var(--accent); }
.sort-badge-arrows { font-weight: 800; }
/* Reserve the widest label so flipping never resizes the badge. */
.sort-badge-word { display: inline-block; min-width: 6.2em; text-align: left; }

/* You page */
.you-section { margin: 1.4rem 0; }
.you-section h2 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.you-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 0.4rem 1rem;
}
.you-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.you-row:last-child { border-bottom: none; }
.you-label { flex: 0 0 9rem; font-weight: 600; font-size: 0.9rem; }
.you-controls { display: flex; align-items: center; gap: 0.6rem; }
.you-link { font-weight: 600; }

/* Directory search on Add Show */
.directory-panel { margin-bottom: 1.4rem; }
.directory-panel .search-form { margin: 0.6rem 0 0.9rem; }
.directory-list { list-style: none; margin: 0; padding: 0; }
.directory-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}
.directory-row:last-child { border-bottom: none; }
.directory-art { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; }
.directory-body { flex: 1 1 auto; min-width: 0; }
.directory-title { font-weight: 600; line-height: 1.3; }
.directory-meta { font-size: 0.82rem; color: var(--muted); }

/* ── Per-show settings ─────────────────────────────────────────────────── */
/* Each group gets its own card, so a caption never sits equidistant between
   the control above it and the heading below it (the grouping rule). */
.settings-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.1rem;
}
.settings-card h2 { font-size: 1rem; margin: 0 0 0.85rem; }
.setting-rows { display: flex; flex-direction: column; gap: 0.55rem; }
.setting-row {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) minmax(0, 20rem);
  align-items: center;
  gap: 1rem;
}
.setting-label { font-weight: 600; font-size: 0.94rem; }
.setting-control { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.setting-control .listbox { flex: 1 1 auto; min-width: 0; }
.setting-number .search-input { width: 6rem; }
.setting-unit { color: var(--muted); font-size: 0.86rem; }
/* Caption tight to its group, air between groups. */
.setting-note { color: var(--muted); font-size: 0.85rem; margin: 0.8rem 0 0; }

.back-link { display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 600; text-decoration: none; font-size: 0.9rem; }
.back-link .nav-icon { width: 1em; height: 1em; }
.back-link:hover { text-decoration: underline; }

.rule-list { list-style: none; margin: 0 0 0.9rem; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.rule-row { display: flex; align-items: flex-end; gap: 0.5rem; }
.rule-form {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) 5.5rem 5.5rem auto auto;
  align-items: end;
  gap: 0.5rem;
}
.rule-form-new { border-top: 1px solid var(--line); padding-top: 0.9rem; }
.rule-field { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.rule-field span { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.rule-field .search-input { width: 100%; }
.rule-check { display: flex; align-items: center; gap: 0.35rem; font-size: 0.84rem; height: var(--control-h); white-space: nowrap; }
.rule-form .btn { height: var(--control-h); }

@media (max-width: 720px) {
  .setting-row { grid-template-columns: 1fr; gap: 0.35rem; }
  .rule-form { grid-template-columns: 1fr 1fr; }
}

.transcript-building { display: flex; align-items: center; gap: 0.6rem; }
.transcript-building .show-filter-spinner { position: static; margin: 0; }
.transcript-source { font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-left: 0.4rem; }
.episode-download-actions { display: contents; }

/* Present for a password manager or a screen reader, invisible on screen. Not
   display:none, which some managers skip when deciding what a form is for. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ===== Marketing pages: /, /privacy, /terms, /support =====================
   One accent (the cyan), one display face, air between things. The brand's
   gradient stays in the app icon; the page itself is ink on paper. */

.mk, .mk-prose { text-wrap: pretty; }
.mk-h1, .mk-h2, .mk-prose h1 { text-wrap: balance; }

.mk-eyebrow {
  margin: 0 0 1rem;
  font-family: var(--f-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}

/* hero */

.mk-hero { padding: 2.5rem 0 1rem; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 60rem) {
  .mk-hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; padding: 4.5rem 0 2rem; }
}

.mk-h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.35rem, 7vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.mk-lede { margin: 0; font-size: clamp(1.08rem, 1.6vw, 1.25rem); line-height: 1.5; color: var(--ink-soft); max-width: 34rem; }
/* Each sentence is its own line: the break is chosen, not left to the width. */
.mk-lede > span { display: block; }
.mk-lede > span + span { margin-top: 0.25rem; }
/* A clause kept whole, so a wrap lands at the comma before it or not at all. */
.nw { display: inline; white-space: nowrap; }

.mk-cta { margin: 1.75rem 0 0; }
/* Not a button yet: there is no store page to open. Reads as a label that
   will become one (muted, dashed, no hover), so nobody clicks at nothing. */
.mk-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.8rem;
  padding: 0 1.25rem;
  border: 1.5px dashed color-mix(in srgb, var(--ink) 30%, transparent);
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 650;
  font-size: 0.98rem;
  cursor: default;
  user-select: none;
}
.mk-soon .nav-icon { width: 1em; height: 1em; opacity: 0.8; }

/* the demo card */

.mk-demo { margin: 0; min-width: 0; }
.mk-card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.1rem 1rem;
  display: grid;
  gap: 0.9rem;
}
.mk-card-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.75rem; align-items: center; }
.mk-art {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--pink), var(--violet) 55%, var(--accent));
}
.mk-card-titles { display: grid; gap: 0.05rem; min-width: 0; }
.mk-card-show { font-family: var(--f-display); font-weight: 700; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-card-ep { font-size: 0.82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-ready {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-text);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  white-space: nowrap;
}
.mk-ready .nav-icon { width: 0.9em; height: 0.9em; }
/* The chip's two words stay together on a narrow card. */
@media (max-width: 24rem) { .mk-card-head { grid-template-columns: auto minmax(0, 1fr); } .mk-ready { grid-column: 1 / -1; justify-self: start; } }

.mk-cues { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.mk-cues li {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 0.2rem 0.6rem;
  padding: 0.45rem 0.5rem;
  border-radius: 9px;
}
.mk-cues li.is-ad { background: color-mix(in srgb, var(--pink) 10%, transparent); }
.mk-cue-time { color: var(--accent-text); font-weight: 650; font-size: 0.82rem; font-variant-numeric: tabular-nums; line-height: 1.55; }
.mk-cue-text { font-size: 0.93rem; color: var(--ink-soft); line-height: 1.5; }
.mk-adchip {
  grid-column: 2;
  justify-self: start;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pink);
  background: color-mix(in srgb, var(--pink) 14%, transparent);
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
}

.mk-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}
.mk-foot-label { font-size: 0.84rem; font-weight: 600; color: var(--ink-soft); }
.mk-seg {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 2px;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--ink-soft);
}
.mk-seg span { padding: 0.3rem 0.65rem; border-radius: 7px; text-align: center; }
.mk-seg .on { background: var(--accent); color: var(--accent-ink); }

/* sections */

.mk-section { margin-top: 4rem; }
@media (min-width: 60rem) { .mk-section { margin-top: 6rem; } }

.mk-h2 { margin: 0 0 1.5rem; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em; font-weight: 700; }
.mk-h2::before { content: ""; display: block; width: 2.5rem; height: 3px; border-radius: 2px; background: var(--accent); margin-bottom: 1rem; }

.mk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 2rem; }
.mk-list li { padding: 1rem 0; border-top: 1px solid var(--line); color: var(--ink-soft); line-height: 1.55; }
.mk-list li strong { color: var(--ink); font-weight: 700; }
@media (min-width: 44rem) { .mk-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .mk-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mk-list-plus { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Plus */

.mk-plus {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem 1.25rem 1.25rem;
}
@media (min-width: 44rem) { .mk-plus { padding: 2.25rem 2.25rem 1.75rem; } }
.mk-plus-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.mk-plus-head .mk-h2 { margin-bottom: 0.5rem; }
.mk-price { margin: 0; display: flex; align-items: baseline; gap: 0.45rem; flex-wrap: wrap; color: var(--ink-soft); font-size: 1rem; }
.mk-price strong { font-family: var(--f-display); font-size: 2.1rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); line-height: 1; }
.mk-price-trial {
  margin-left: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-text);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
  white-space: nowrap;
  align-self: center;
}
.mk-plus .mk-list li { border-top-color: color-mix(in srgb, var(--line) 70%, var(--surface)); }
.mk-fine { margin: 1rem 0 0; font-size: 0.9rem; color: var(--ink-soft); }

/* legal and support prose */

.mk-prose { max-width: 42rem; padding-top: 1.5rem; }
.mk-prose h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 0.75rem; }
.mk-prose .prose-updated { margin-bottom: 2.25rem; }
.mk-prose h2 { margin-top: 2.5rem; font-size: 1.2rem; }
.mk-prose p { font-size: 1.04rem; line-height: 1.65; }
.mk-prose h1 + p, .mk-prose .prose-updated + p { font-size: 1.1rem; }
.mk-legal { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.9rem !important; color: var(--ink-soft) !important; }

/* footer: five things, wrapped on purpose on a phone */
.footer-inner, .footer-nav { flex-wrap: wrap; }
.footer-brand a { color: var(--ink-soft); font-weight: 600; text-decoration: none; }
.footer-brand a:hover, .footer-nav a:hover { color: var(--ink); }
