:root {
  color-scheme: light dark;
  --page: #f5f5f7;
  --surface: #ffffff;
  --surface-soft: #faf8f9;
  --ink: #1d1d1f;
  --secondary: #6e6e73;
  --tertiary: #65656a;
  --line: rgba(29, 29, 31, 0.1);
  --line-strong: rgba(29, 29, 31, 0.16);
  --accent: #943c55;
  --accent-hover: #7f3048;
  --accent-soft: #f6e9ed;
  --accent-ink: #654956;
  --link: #0066cc;
  --success: #30734c;
  --content: 1180px;
  --radius-large: 26px;
  --radius-medium: 20px;
  --radius-small: 12px;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.03), 0 12px 34px rgba(0, 0, 0, 0.055);
  --surface-muted: #f7f7f8;
  --recent-bg: #fbf0f3;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

[data-theme="dark"] {
  --page: #141416;
  --surface: #202023;
  --surface-soft: #1b1b1e;
  --ink: #f5f5f7;
  --secondary: #b8b7bd;
  --tertiary: #929197;
  --line: rgba(245, 245, 247, 0.12);
  --line-strong: rgba(245, 245, 247, 0.2);
  --accent: #d99178;
  --accent-hover: #e5a089;
  --accent-soft: #352723;
  --accent-ink: #efc6b8;
  --link: #83b9e6;
  --surface-muted: #2a2a2e;
  --recent-bg: #211e20;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.24), 0 16px 38px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  background: var(--page);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

:focus-visible {
  outline: 3px solid rgba(0, 102, 204, 0.42);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--ink);
  font-size: 0.82rem;
  font-weight: 650;
  transform: translateY(-180%);
  transition: transform 140ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
main,
footer {
  width: min(calc(100% - 48px), var(--content));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 64px;
  background: color-mix(in srgb, var(--page) 84%, transparent);
  box-shadow: 0 0 0 100vmax color-mix(in srgb, var(--page) 84%, transparent), inset 0 -1px var(--line);
  clip-path: inset(0 -100vmax);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.theme-toggle {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--secondary);
  background: var(--surface);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 650;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.theme-toggle:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--surface-muted);
}

.theme-toggle-icon {
  color: var(--accent);
  font-size: 0.95rem;
  line-height: 1;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #806d66;
  font-size: 1.06rem;
  font-weight: 730;
  letter-spacing: -0.035em;
}

.brand-icon {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.wordmark-accent {
  color: #9f5d4d;
}

.site-header nav {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.site-header nav a {
  color: var(--secondary);
  font-size: 0.82rem;
  font-weight: 560;
  letter-spacing: -0.01em;
  transition: color 160ms ease;
}

.site-header nav a:hover {
  color: var(--ink);
}

.site-header nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 680;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-weight: 650;
  transition: background 160ms ease, transform 160ms ease;
}

.button-compact {
  min-height: 34px;
  padding: 0 16px;
  font-size: 0.8rem;
}

.button:hover {
  background: var(--accent-hover);
}

.button:active,
.like-link:active {
  transform: scale(0.97);
}

.hero {
  display: flex;
  align-items: center;
  min-height: clamp(150px, 22vh, 260px);
  padding: clamp(18px, 3.2vw, 30px) 0;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 900px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 870px;
  margin: 0;
  font-size: clamp(1.72rem, 3.5vw, 2.45rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.hero-description {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--secondary);
  font-size: clamp(0.9rem, 1.3vw, 1.08rem);
  line-height: 1.48;
  letter-spacing: -0.025em;
}

.hero-about-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.82rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.hero .button {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.84rem;
}

.text-link {
  color: var(--link);
  font-size: 0.94rem;
  font-weight: 560;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hero-metric {
  display: inline-flex;
  min-width: 126px;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.metric-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.metric-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.metric-copy {
  display: grid;
  gap: 1px;
  line-height: 1.1;
}

.metric-copy strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 720;
}

.metric-copy span {
  color: var(--tertiary);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.eligibility-note {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--secondary);
  font-size: 0.83rem;
  line-height: 1.5;
}

.eligibility-note a,
.support-link,
.legal-copy a:not(.button) {
  color: var(--link);
  font-weight: 590;
}

.eligibility-note a:hover,
.support-link:hover,
.legal-copy a:not(.button):hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.demo-notice,
.empty-state {
  margin: 28px 0 0;
  padding: 14px 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 14px;
  color: var(--accent-ink);
  background: var(--accent-soft);
  font-size: 0.83rem;
  line-height: 1.45;
}

.demo-notice[hidden],
.empty-state[hidden] {
  display: none;
}

.shelf,
.directory {
  padding: 86px 0;
  border-bottom: 1px solid var(--line);
}

#recentes {
  background: var(--recent-bg);
  box-shadow: 0 0 0 100vmax var(--recent-bg);
  clip-path: inset(0 -100vmax);
}

#recentes .section-heading {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-strong);
}

#recentes .section-heading .eyebrow::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 8px 1px 0;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent);
}

.recent-label {
  display: none;
  margin: 15px 0 0;
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.recent-card {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
  background: var(--surface);
}

.recent-card .recent-label {
  display: block;
}

.recent-card .card-copy h3 {
  margin-top: 12px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 30px;
}

.section-heading .eyebrow,
.directory-heading .eyebrow {
  margin: 0 0 9px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h2,
.directory-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.052em;
}

.section-heading > p {
  max-width: 390px;
  margin: 0 0 3px;
  color: var(--secondary);
  font-size: 0.91rem;
  line-height: 1.48;
  text-align: right;
}

.card-row,
.directory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 318px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.app-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.03), 0 18px 42px rgba(0, 0, 0, 0.075);
}

.card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.app-icon {
  position: relative;
  display: grid;
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 18px;
  color: hsl(var(--icon-hue, 340) 35% 30%);
  background: linear-gradient(
    145deg,
    hsl(var(--icon-hue, 340) 62% 94%),
    hsl(calc(var(--icon-hue, 340) + 20) 52% 84%)
  );
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.72), 0 8px 20px rgba(0, 0, 0, 0.08);
  font-size: 1.45rem;
  font-weight: 760;
  letter-spacing: -0.05em;
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

[data-theme="dark"] .app-icon {
  border-color: rgba(245, 245, 247, 0.12);
  color: hsl(var(--icon-hue, 340) 45% 84%);
  background: linear-gradient(
    145deg,
    hsl(var(--icon-hue, 340) 30% 31%),
    hsl(calc(var(--icon-hue, 340) + 20) 26% 23%)
  );
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 8px 20px rgba(0, 0, 0, 0.22);
}

.like-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--secondary);
  background: var(--surface-muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 650;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.like-link:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.app-card h3 {
  margin: 24px 0 5px;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.developer {
  margin: 0;
  color: var(--tertiary);
  font-size: 0.8rem;
}

.developer a,
.app-profile-developer a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.developer a:hover,
.app-profile-developer a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.description {
  display: -webkit-box;
  margin: 16px 0 22px;
  overflow: hidden;
  color: var(--secondary);
  font-size: 0.91rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 0;
}

.card-actions .app-link {
  margin-right: auto;
}

.card-report-link {
  color: var(--tertiary);
  font-size: 0.72rem;
  font-weight: 560;
}

.card-report-link:hover {
  color: var(--accent);
}

.platform-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--secondary);
  background: var(--surface-muted);
  font-size: 0.67rem;
  font-weight: 650;
}

.episode-reference {
  margin: auto 0 18px;
  color: var(--tertiary);
  font-size: 0.72rem;
  line-height: 1.45;
}

.episode-reference a,
.app-link {
  color: var(--link);
  font-weight: 620;
}

.episode-reference a:hover,
.app-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.directory {
  padding-bottom: 104px;
}

.directory-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filter-button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--secondary);
  background: var(--surface);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 620;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.filter-button:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.filter-button[aria-pressed="true"] {
  color: var(--page);
  border-color: var(--ink);
  background: var(--ink);
}

.result-count {
  margin: 0 0 18px;
  color: var(--tertiary);
  font-size: 0.75rem;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 18px;
}

.pagination-button {
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--secondary);
  background: var(--surface);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 620;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.pagination-button:hover:not(:disabled) {
  color: var(--ink);
  border-color: var(--line-strong);
}

.pagination-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.page-indicator {
  color: var(--tertiary);
  font-size: 0.76rem;
  white-space: nowrap;
}

.search-field {
  position: relative;
  width: min(100%, 330px);
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 17px;
  color: var(--tertiary);
  font-size: 1.15rem;
  transform: translateY(-54%);
  pointer-events: none;
}

.search-field input {
  width: 100%;
  height: 46px;
  padding: 0 18px 0 43px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025);
  outline: 0;
}

.search-field input::placeholder {
  color: var(--tertiary);
}

.search-field input:focus {
  border-color: rgba(0, 102, 204, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

footer {
  display: grid;
  grid-template-columns: minmax(250px, 1.2fr) minmax(140px, 0.55fr) minmax(280px, 1.2fr);
  align-items: start;
  gap: 56px;
  min-height: 250px;
  padding: 58px 0;
  color: var(--tertiary);
  font-size: 0.77rem;
}

footer p {
  margin: 0;
}

.footer-intro p {
  max-width: 320px;
  margin: 14px 0 18px;
  line-height: 1.5;
}

.footer-nav {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  color: var(--secondary);
  font-size: 0.79rem;
  font-weight: 560;
}

.footer-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 680;
}

.footer-legal {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
}

.footer-legal p {
  max-width: 470px;
  line-height: 1.5;
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 650;
}

.github-link img {
  width: 20px;
  height: 20px;
}

footer a {
  color: var(--secondary);
}

footer a:hover {
  color: var(--ink);
}

.empty-state strong,
.empty-state span {
  display: block;
}

.empty-state span {
  margin-top: 4px;
  color: var(--secondary);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.content-page {
  max-width: 980px;
}

.page-hero {
  padding: 108px 0 80px;
  border-bottom: 1px solid var(--line);
}

.page-hero .eyebrow {
  margin-bottom: 22px;
}

.page-hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(3rem, 7.2vw, 5.45rem);
  line-height: 0.98;
  letter-spacing: -0.062em;
  text-wrap: balance;
}

.page-lede {
  max-width: 760px;
  margin: 30px 0 0;
  color: var(--secondary);
  font-size: clamp(1.08rem, 2vw, 1.34rem);
  line-height: 1.5;
  letter-spacing: -0.025em;
}

.effective-date {
  margin: 26px 0 0;
  color: var(--tertiary);
  font-size: 0.78rem;
}

.prose {
  max-width: 760px;
  padding: 78px 0 112px;
}

.prose > section {
  margin-top: 64px;
}

.prose > section:first-child {
  margin-top: 0;
}

.prose h2 {
  margin: 0 0 18px;
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  line-height: 1.15;
  letter-spacing: -0.042em;
  text-wrap: balance;
}

.prose h3 {
  margin: 34px 0 12px;
  font-size: 1.05rem;
}

.prose p,
.prose li {
  color: var(--secondary);
  font-size: 1rem;
  line-height: 1.72;
}

.prose p {
  margin: 0 0 18px;
}

.prose ul {
  margin: 0;
  padding-left: 1.25rem;
}

.page-callout,
.eligibility-card,
.legal-summary {
  margin: 70px 0;
  padding: 34px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: var(--radius-large);
  background: var(--accent-soft);
}

.page-callout .eyebrow,
.eligibility-card .eyebrow {
  margin-bottom: 10px;
  font-size: 0.7rem;
}

.page-callout h2,
.eligibility-card h2,
.legal-summary h2 {
  margin-bottom: 14px;
}

.page-callout p,
.eligibility-card p,
.legal-summary p {
  color: var(--accent-ink);
}

.page-callout .button,
.prose > section > .button {
  min-height: 44px;
  margin-top: 8px;
  padding: 0 20px;
  font-size: 0.87rem;
}

.button-secondary {
  min-height: 44px;
  margin-top: 10px;
  padding: 0 20px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 0.87rem;
}

.button-secondary:hover {
  color: #fff;
}

.inline-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin: 14px 0;
}

.inline-actions .button-secondary {
  margin-top: 0;
}

.steps {
  margin: 72px 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 22px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.steps li:first-child {
  border-top: 1px solid var(--line);
}

.step-number {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 0.86rem;
  font-weight: 720;
}

.steps h2 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.steps p {
  margin: 0;
}

.check-list li {
  padding: 4px 0 4px 6px;
}

.legal-copy > section {
  margin-top: 58px;
}

.legal-summary {
  margin-top: 0;
}

.legal-copy strong {
  color: var(--ink);
}

@media (max-width: 900px) {
  .site-header nav {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .hero {
    min-height: auto;
    padding: 28px 0;
  }

  .card-row,
  .directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-legal {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 32px), var(--content));
  }

  .site-header {
    min-height: 58px;
  }

  .button-compact {
    min-height: 32px;
    padding-inline: 13px;
  }

  .hero {
    padding: 24px 0 26px;
  }

  .hero h1 {
    font-size: clamp(1.62rem, 10.5vw, 2.05rem);
  }

  .hero-description {
    margin-top: 14px;
    font-size: 0.92rem;
    line-height: 1.46;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-top: 16px;
  }

  .hero-meta {
    margin-top: 22px;
    font-size: 0.76rem;
    gap: 8px 10px;
  }

  .shelf,
  .directory {
    padding: 64px 0;
  }

  .section-heading,
  .directory-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .section-heading > p {
    max-width: none;
    text-align: left;
  }

  .card-row,
  .directory-grid {
    grid-template-columns: 1fr;
  }

  .app-card {
    min-height: 300px;
  }

  .search-field {
    width: 100%;
  }

  footer {
    align-items: flex-start;
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: 0;
    padding: 48px 0;
  }

  .footer-legal {
    grid-column: auto;
  }

  .page-hero {
    padding: 72px 0 58px;
  }

  .page-hero h1 {
    font-size: clamp(2.75rem, 13.3vw, 4.1rem);
  }

  .prose {
    padding: 58px 0 84px;
  }

  .page-callout,
  .eligibility-card,
  .legal-summary {
    margin: 52px 0;
    padding: 26px;
    border-radius: var(--radius-medium);
  }

  .legal-summary {
    margin-top: 0;
  }

  .steps li {
    grid-template-columns: 40px 1fr;
    gap: 16px;
  }
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 42px;
  color: var(--secondary);
  font-size: 0.84rem;
  font-weight: 620;
}

.back-link:hover {
  color: var(--accent);
}

.app-profile {
  max-width: 820px;
  padding: 72px 0 110px;
}

.app-profile-icon {
  width: 112px;
  height: 112px;
  margin-bottom: 24px;
  border-radius: 25px;
}

.app-profile h1 {
  max-width: 760px;
  margin: 24px 0 8px;
  font-size: clamp(3.25rem, 8vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.app-profile-developer {
  margin: 0;
  color: var(--tertiary);
  font-size: 0.92rem;
}

.app-profile-description {
  max-width: 680px;
  margin: 34px 0 0;
  color: var(--secondary);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.5;
  letter-spacing: -0.025em;
}

.app-profile-actions,
.detail-secondary-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.app-profile-actions {
  margin-top: 34px;
}

.app-profile-actions .button {
  min-height: 48px;
  margin: 0;
  padding: 0 22px;
  border: 0;
  cursor: pointer;
  font-size: 0.9rem;
}

.app-like-link {
  text-decoration: none;
}

.app-like-link:hover {
  text-decoration: none;
}

.app-like-count {
  font-weight: 700;
}

.share-status {
  min-height: 24px;
  margin: 10px 0 0;
  color: var(--tertiary);
  font-size: 0.78rem;
}

.mention-panel {
  margin-top: 58px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.mention-panel .eyebrow {
  margin-bottom: 12px;
}

.mention-panel h2 {
  margin: 0;
  font-size: 1.65rem;
  letter-spacing: -0.035em;
}

.mention-panel p:not(.eyebrow) {
  margin: 10px 0 18px;
  color: var(--secondary);
}

.episode-title-link:hover {
  color: var(--accent);
}

.mention-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.episode-page {
  max-width: 1120px;
}

.episode-hero {
  padding-bottom: 58px;
}

.episode-hero h1 {
  text-wrap: balance;
}

.episode-listening-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: 42px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-large);
  background: linear-gradient(135deg, var(--surface), var(--surface-soft));
  box-shadow: var(--shadow-card);
}

.episode-listening-number {
  display: grid;
  width: 96px;
  aspect-ratio: 1;
  place-content: center;
  border-radius: 24px;
  color: #fff;
  background: var(--accent);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.24), 0 12px 24px color-mix(in srgb, var(--accent) 24%, transparent);
  text-align: center;
}

.episode-listening-number span {
  font-size: 0.55rem;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.episode-listening-number strong {
  margin-top: 2px;
  font-size: 2.15rem;
  line-height: 1;
  letter-spacing: -0.08em;
}

.episode-listening-copy .eyebrow {
  margin: 0 0 8px;
}

.episode-listening-copy h2 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(1.25rem, 2.8vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.episode-listening-date {
  margin: 10px 0 0;
  color: var(--tertiary);
  font-size: 0.82rem;
}

.episode-listening-card .button {
  white-space: nowrap;
}

.episode-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
}

.episode-apps {
  padding: 68px 0 112px;
}

.episode-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-strong);
}

.episode-section-heading .eyebrow {
  margin-bottom: 10px;
}

.episode-section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.055em;
}

.episode-section-heading > p {
  max-width: 330px;
  margin: 0;
  color: var(--secondary);
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: right;
}

.episode-app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 42px;
}

.episode-app-card {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.episode-app-card-main {
  position: relative;
  display: grid;
  grid-template-columns: 78px 1fr 22px;
  align-items: start;
  gap: 18px;
}

.episode-app-card-main .app-icon {
  width: 78px;
  height: 78px;
  border-radius: 19px;
}

.episode-app-card-copy h2 {
  margin: 1px 0 5px;
  font-size: 1.3rem;
  letter-spacing: -0.035em;
}

.episode-app-card-copy p {
  margin: 0;
  color: var(--secondary);
  font-size: 0.88rem;
  line-height: 1.45;
}

.episode-app-card-copy .episode-app-developer {
  margin-bottom: 8px;
  color: var(--tertiary);
  font-size: 0.78rem;
  font-weight: 650;
}

.episode-app-arrow {
  padding-top: 2px;
  color: var(--tertiary);
  font-size: 1.15rem;
  transition: color 150ms ease, transform 150ms ease;
}

.episode-app-card-main:hover .episode-app-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.detail-secondary-actions {
  margin-top: 28px;
  color: var(--tertiary);
  font-size: 0.78rem;
}

.detail-secondary-actions a:hover {
  color: var(--accent);
}

.author-page .page-hero {
  padding-bottom: 54px;
}

.author-apps {
  max-width: 820px;
  padding-bottom: 110px;
}

.author-apps > h2 {
  margin: 0 0 24px;
  color: var(--tertiary);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.author-app-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.author-app-card h2 {
  margin: 3px 0 8px;
  font-size: 1.35rem;
  letter-spacing: -0.035em;
}

.author-app-card h2 a:hover {
  color: var(--accent);
}

.author-app-card p {
  margin: 0;
  color: var(--secondary);
  line-height: 1.5;
}

.share-panel {
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid var(--line-strong);
}

.share-panel-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 640px;
}

.share-app-icon {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 18px;
  font-size: 1.25rem;
}

.share-app-icon img {
  object-fit: cover;
}

.share-panel-heading .eyebrow {
  margin-bottom: 10px;
}

.share-panel-heading h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.share-panel-heading p:last-child {
  margin: 14px 0 0;
  color: var(--secondary);
  line-height: 1.55;
}

.social-links,
.share-context-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links {
  margin-top: 26px;
}

.social-icon {
  display: inline-flex;
  width: 17px;
  height: 17px;
  align-items: center;
  justify-content: center;
}

.social-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.social-link,
.share-context-links a,
.share-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--secondary);
  background: var(--surface);
  font-size: 0.76rem;
  font-weight: 650;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.share-button {
  min-height: 42px;
  padding: 0 17px;
  gap: 8px;
  cursor: pointer;
  font-size: 0.78rem;
}

.social-link:hover,
.share-context-links a:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: var(--surface-muted);
}

.share-context-links {
  margin-top: 18px;
}

.share-context-links a {
  min-height: auto;
  padding: 0;
  border: 0;
  color: var(--link);
  background: transparent;
}

.share-context-links a:hover {
  border-color: transparent;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.share-status {
  margin-top: 12px;
}

.not-found-page {
  display: grid;
  min-height: min(680px, calc(100vh - 180px));
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: clamp(42px, 8vw, 120px);
  padding: 72px 0 92px;
}

.not-found-visual {
  position: relative;
  display: grid;
  min-height: 360px;
  place-items: center;
  isolation: isolate;
}

.not-found-visual::before {
  position: absolute;
  width: min(330px, 80vw);
  height: min(330px, 80vw);
  border-radius: 50%;
  background: var(--accent-soft);
  content: "";
  z-index: -2;
}

.not-found-number {
  color: var(--accent);
  font-size: clamp(7rem, 18vw, 13rem);
  font-weight: 850;
  letter-spacing: -0.12em;
  line-height: 0.8;
  transform: translateX(-0.05em) rotate(-8deg);
}

.not-found-icon {
  position: absolute;
  right: 16%;
  bottom: 17%;
  width: 104px;
  height: 104px;
  border-radius: 28px;
  box-shadow: 0 18px 36px rgba(48, 25, 26, 0.2);
  transform: rotate(11deg);
  animation: not-found-float 4s ease-in-out infinite;
}

.not-found-sticker {
  position: absolute;
  top: 12%;
  right: 11%;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 50%;
  color: #fff8f4;
  background: var(--accent);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  transform: rotate(14deg);
}

.not-found-orbit {
  position: absolute;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  width: 280px;
  height: 150px;
  transform: rotate(28deg);
}

.orbit-two {
  width: 190px;
  height: 300px;
  transform: rotate(-35deg);
}

.not-found-copy {
  max-width: 590px;
}

.not-found-copy h1 {
  max-width: 560px;
  margin: 18px 0 22px;
  font-size: clamp(3rem, 6vw, 5.8rem);
  letter-spacing: -0.07em;
  line-height: 0.96;
}

.not-found-copy > p:not(.eyebrow):not(.not-found-hint) {
  max-width: 520px;
  color: var(--secondary);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.55;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
}

.not-found-hint {
  margin-top: 42px;
  color: var(--tertiary);
  font-size: 0.86rem;
}

.not-found-footer {
  margin-top: 0;
}

@keyframes not-found-float {
  0%, 100% { transform: rotate(11deg) translateY(0); }
  50% { transform: rotate(7deg) translateY(-8px); }
}

@media (max-width: 640px) {
  .theme-toggle {
    padding-inline: 10px;
  }

  .theme-toggle-label {
    display: none;
  }

  .share-panel {
    margin-top: 48px;
    padding-top: 32px;
  }

  .share-panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .social-links {
    align-items: stretch;
    flex-direction: column;
  }

  .social-link,
  .share-button {
    justify-content: center;
  }

  .share-context-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .episode-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .episode-section-heading > p {
    text-align: left;
  }

  .episode-listening-card {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
  }

  .episode-listening-number {
    width: 64px;
    border-radius: 17px;
  }

  .episode-listening-number strong {
    font-size: 1.55rem;
  }

  .episode-listening-card .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .episode-app-grid {
    grid-template-columns: 1fr;
  }

  .episode-app-card-main {
    grid-template-columns: 64px 1fr 18px;
    gap: 14px;
  }

  .episode-app-card-main .app-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }

  .episode-app-card-copy h2 {
    font-size: 1.15rem;
  }

  .not-found-page {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 56px 0 78px;
  }

  .not-found-visual {
    min-height: 270px;
  }

  .not-found-icon {
    right: 18%;
    bottom: 12%;
    width: 82px;
    height: 82px;
    border-radius: 22px;
  }

  .not-found-sticker {
    top: 6%;
    right: 15%;
    width: 62px;
    height: 62px;
    font-size: 0.95rem;
  }

  .orbit-one {
    width: 240px;
    height: 125px;
  }

  .orbit-two {
    width: 160px;
    height: 245px;
  }

  .not-found-copy h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }
}

@media (max-width: 680px) {
  .app-profile {
    padding: 52px 0 84px;
  }

  .app-profile h1 {
    font-size: clamp(3rem, 16vw, 4.4rem);
  }

  .mention-panel {
    padding: 26px;
  }

  .app-profile-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .app-profile-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--page);
    box-shadow: 0 0 0 100vmax var(--page), inset 0 -1px var(--line);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --secondary: #464649;
    --tertiary: #56565a;
    --line: rgba(0, 0, 0, 0.24);
    --line-strong: rgba(0, 0, 0, 0.38);
  }
}
