/* PodSync landing page — local, dependency-free build of the UX Pilot design. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/fonts/PlusJakartaSans-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/fonts/PlusJakartaSans-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/fonts/PlusJakartaSans-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/fonts/PlusJakartaSans-700.ttf") format("truetype");
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f9fafb;
  --card: #ffffff;
  --border: #e5e7eb;
  --accent: #00b8e6;
  --soft: #e6f8fd;
  --text: #111827;
  --subtext: #6b7280;
  --radius: 1rem;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  fill: currentColor;
}

/* --- Header ---------------------------------------------------------------- */

.site-header {
  width: 100%;
  padding: 1.25rem 1rem 0;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  color: var(--subtext);
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-links a {
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 0.625rem 1.25rem;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.15s ease;
}

.nav-cta:hover {
  background: #000;
}

/* --- Hero ------------------------------------------------------------------ */

.hero {
  display: flex;
  align-items: center;
  padding-block: 4rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 3.5rem;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--accent);
}

.hero-title {
  font-size: clamp(2.125rem, 8.5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.hero-lede {
  max-width: 28rem;
  color: var(--subtext);
  font-size: 1.125rem;
  line-height: 1.625;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1.25rem 0.625rem 1rem;
  border-radius: 0.75rem;
  background: var(--text);
  color: #fff;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.store-btn:hover {
  background: #000;
}

.store-btn-light {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
}

.store-btn-light:hover {
  border-color: #d1d5db;
  background: var(--card);
}

.store-btn-soon {
  cursor: default;
}

.store-btn-soon:hover {
  border-color: var(--border);
  background: var(--card);
}

.store-icon {
  font-size: 1.5rem;
}

.store-icon-play {
  font-size: 1.25rem;
}

.store-icon-desktop {
  font-size: 1.125rem;
}

.store-label {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.store-kicker {
  color: rgb(255 255 255 / 0.7);
  font-size: 0.625rem;
}

.store-name {
  font-size: 0.875rem;
  font-weight: 600;
}

.store-btn-light .store-kicker {
  color: var(--subtext);
}

/* App preview */

.hero-visual {
  display: flex;
  justify-content: center;
}

.app-window {
  width: 100%;
  max-width: 36rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: var(--card);
  box-shadow: 0 24px 60px -24px rgb(17 24 39 / 0.18);
}

.preview-library {
  padding: 1.5rem;
  background: var(--bg);
}

.preview-heading {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.cover-card {
  min-width: 0;
}

.cover-art {
  aspect-ratio: 1;
  margin-bottom: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

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

.cover-title {
  overflow: hidden;
  font-size: 0.875rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cover-category {
  overflow: hidden;
  color: var(--subtext);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-player {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--card);
}

.now-playing {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.75rem;
}

.episode-cover {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

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

.now-playing-text {
  min-width: 0;
}

.episode-title {
  overflow: hidden;
  font-size: 0.875rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.episode-meta {
  overflow: hidden;
  color: var(--subtext);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-controls {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.transport {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.icon-btn {
  color: var(--subtext);
  font-size: 0.875rem;
  transition: color 0.15s ease;
}

.icon-btn:hover {
  color: var(--text);
}

.play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-size: 0.875rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.time {
  color: var(--subtext);
  font-size: 0.625rem;
  font-variant-numeric: tabular-nums;
}

.progress-track {
  position: relative;
  flex: 1;
  height: 0.25rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
}

.progress-fill {
  display: block;
  width: 35%;
  height: 100%;
  background: var(--accent);
}

.cast-btn {
  display: none;
  color: var(--subtext);
  font-size: 0.875rem;
  transition: color 0.15s ease;
}

.cast-btn:hover {
  color: var(--accent);
}

/* --- Features -------------------------------------------------------------- */

.features {
  padding-block: 5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.section-title {
  margin-bottom: 3.5rem;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}

.feature {
  text-align: center;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1.25rem;
  border-radius: 0.75rem;
  background: var(--soft);
  color: var(--accent);
  font-size: 1.125rem;
}

.feature h3 {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.feature p {
  color: var(--subtext);
  font-size: 0.875rem;
  line-height: 1.625;
}

/* --- Download -------------------------------------------------------------- */

.download {
  padding-block: 5rem;
}

.download-inner {
  text-align: center;
}

.download .section-title {
  margin-bottom: 0.75rem;
}

.download-lede {
  margin-bottom: 3rem;
  color: var(--subtext);
}

.device-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  max-width: 56rem;
  margin-inline: auto;
}

.device-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
}

.device-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--bg);
  font-size: 1.25rem;
}

.device-name {
  font-weight: 600;
}

.device-meta {
  margin-top: 0.25rem;
  color: var(--subtext);
  font-size: 0.75rem;
}

.device-cta {
  width: 100%;
  padding: 0.625rem;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.15s ease, filter 0.15s ease;
}

.device-cta:hover {
  background: #000;
}

.device-cta-disabled {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--subtext);
  cursor: default;
}

.device-cta-disabled:hover {
  background: var(--bg);
}

/* --- Footer ---------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 2rem;
  color: var(--subtext);
  font-size: 0.875rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand img {
  width: 1.5rem;
  height: 1.5rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--text);
}

/* --- Legal pages ----------------------------------------------------------- */

.legal-page {
  padding-block: 4rem 5rem;
}

.legal {
  max-width: 44rem;
  margin-inline: auto;
}

.legal-back {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--subtext);
  font-size: 0.875rem;
  font-weight: 500;
}

.legal-back:hover {
  color: var(--text);
}

.legal h1 {
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.legal-updated {
  margin-top: 0.75rem;
  color: var(--subtext);
  font-size: 0.875rem;
}

.legal-intro {
  margin: 2rem 0 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  color: var(--subtext);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.legal h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.legal p,
.legal li {
  color: #374151;
  font-size: 0.9375rem;
  line-height: 1.75;
}

.legal p + p {
  margin-top: 0.875rem;
}

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

.legal ul + p {
  margin-top: 0.875rem;
}

.legal li + li {
  margin-top: 0.5rem;
}

.legal a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.legal a:hover {
  color: var(--accent);
}

/* --- Responsive ------------------------------------------------------------ */

@media (min-width: 40rem) {
  .mini-player {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }

  .now-playing {
    width: 12rem;
  }

  .device-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 48rem) {
  .nav-links {
    display: flex;
  }

  .hero-title {
    font-size: 3.75rem;
  }

  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
  }

  .feature {
    text-align: left;
  }

  .feature-icon {
    margin-inline: 0;
  }

  .section-title {
    font-size: 2.25rem;
  }

  .footer-inner {
    flex-direction: row;
  }

  .cast-btn {
    display: block;
  }
}

@media (min-width: 64rem) {
  .hero {
    height: 620px;
    padding-block: 0;
  }

  .hero-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3.5rem;
  }

  .hero-visual {
    justify-content: flex-end;
  }
}

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

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