/* Audiobook Binder Pro — Unified Styles */
/* Catppuccin Mocha/Latte theme */

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ===== Catppuccin Mocha (dark) ===== */
[data-theme="dark"] {
  --base: #1e1e2e;
  --mantle: #181825;
  --surface0: #313244;
  --surface1: #45475a;
  --surface2: #585b70;
  --text: #cdd6f4;
  --text-secondary: #bac2de;
  --muted: #a6adc8;
  --blue: #89b4fa;
  --mauve: #cba6f7;
  --pink: #f5c2e7;
  --lavender: #b4befe;
  --green: #a6e3a1;
  --red: #f38ba8;
  --border: #45475a;
  --nav-bg: rgba(30,30,46,0.9);
  --glow-mauve: rgba(203,166,247,0.12);
  --glow-pink: rgba(245,194,231,0.08);
  --feature-bg: rgba(255,255,255,0.03);
  --shadow-hero: rgba(0,0,0,0.5);
  --shadow-shot: rgba(0,0,0,0.4);
  --toggle-bg: #313244;
  --toggle-fg: #cdd6f4;
  --card-bg: #313244;
  --card-shadow: rgba(0,0,0,0.3);
  --contact-bg: rgba(203,166,247,0.08);
}

/* ===== Catppuccin Latte (light) ===== */
[data-theme="light"] {
  --base: #eff1f5;
  --mantle: #e6e9ef;
  --surface0: #ccd0da;
  --surface1: #bcc0cc;
  --surface2: #acb0be;
  --text: #4c4f69;
  --text-secondary: #5c5f77;
  --muted: #6c6f85;
  --blue: #1e66f5;
  --mauve: #8839ef;
  --pink: #ea76cb;
  --lavender: #7287fd;
  --green: #40a02b;
  --red: #d20f39;
  --border: #bcc0cc;
  --nav-bg: rgba(239,241,245,0.9);
  --glow-mauve: rgba(136,57,239,0.06);
  --glow-pink: rgba(234,118,203,0.04);
  --feature-bg: rgba(0,0,0,0.03);
  --shadow-hero: rgba(0,0,0,0.15);
  --shadow-shot: rgba(0,0,0,0.12);
  --toggle-bg: #ccd0da;
  --toggle-fg: #4c4f69;
  --card-bg: #dce0e8;
  --card-shadow: rgba(0,0,0,0.06);
  --contact-bg: rgba(136,57,239,0.06);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  background: var(--base);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

a { color: var(--mauve); }

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Nav ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 16px 24px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

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

/* ===== Theme Toggle ===== */
.theme-toggle {
  background: var(--toggle-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: background 0.3s, border-color 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.theme-toggle:hover { border-color: var(--mauve); }
.theme-toggle .icon-sun,
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: inline; }
[data-theme="light"] .theme-toggle .icon-moon { display: inline; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--blue), var(--mauve), var(--pink));
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--glow-mauve);
}

/* ===== Homepage Hero ===== */
.hero {
  padding: 140px 24px 80px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, var(--glow-mauve) 0%, transparent 60%);
}

.hero h1 {
  font-size: clamp(36px, 8vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--blue), var(--mauve), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 32px;
}

.hero-image {
  margin-top: 48px;
  width: 100%;
  max-width: 800px;
  border-radius: 12px;
  box-shadow: 0 30px 60px var(--shadow-hero);
}

/* ===== Landing Hero ===== */
.landing-hero {
  padding: 140px 24px 80px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, var(--glow-mauve) 0%, transparent 60%);
}

.landing-hero h1 {
  font-size: clamp(32px, 7vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--blue), var(--mauve), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.landing-hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 32px;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  padding: 0 24px;
  margin-top: 80px;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

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

/* ===== Sections ===== */
/* Homepage uses nth-child (counts nav as sibling) */
body.home-page section:nth-child(even) {
  background: var(--mantle);
}

/* Landing pages use nth-of-type (counts only sections) */
body.landing-page section:nth-of-type(even) {
  background: var(--mantle);
}

section {
  padding: 80px 24px;
}

h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
}

h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* ===== Content Prose ===== */
.content {
  max-width: 720px;
  margin: 0 auto;
}

.content p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}

.content h2 {
  text-align: left;
  font-size: 26px;
  margin-top: 48px;
  margin-bottom: 16px;
}

.content h3 {
  font-size: 20px;
  margin-top: 32px;
  margin-bottom: 12px;
}

.content ul, .content ol {
  padding-left: 24px;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.content li {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.6;
}

.content a {
  color: var(--mauve);
}

/* ===== Steps ===== */
.steps {
  max-width: 720px;
  margin: 0 auto;
  counter-reset: step;
}

.step {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--mauve));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.step-content h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 15px;
  color: var(--muted);
}

/* ===== Feature Cards ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.feature {
  padding: 24px;
  background: var(--feature-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: background 0.3s, border-color 0.3s;
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.feature h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.feature p {
  font-size: 14px;
  color: var(--muted);
}

/* ===== Screenshots (homepage) ===== */
.screenshots-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 0 20px;
  scroll-snap-type: x mandatory;
}

.screenshots-scroll img {
  flex: 0 0 80%;
  max-width: 700px;
  border-radius: 10px;
  scroll-snap-align: center;
  box-shadow: 0 20px 40px var(--shadow-shot);
}

/* ===== Player Grid ===== */
.player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.player-card {
  padding: 28px;
  background: var(--feature-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.3s;
}

.player-card:hover {
  border-color: var(--mauve);
}

.player-card h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.player-card .platform {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.player-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.player-card .tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
  background: var(--surface0);
  color: var(--muted);
  margin-top: 12px;
  margin-right: 6px;
}

.tag.free { background: rgba(166,227,161,0.15); color: var(--green); }
.tag.paid { background: rgba(203,166,247,0.15); color: var(--mauve); }

/* ===== Comparison Table ===== */
.comparison-table {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 32px;
  border-collapse: collapse;
  font-size: 14px;
}

.comparison-table th,
.comparison-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  font-weight: 600;
  color: var(--text);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comparison-table td {
  color: var(--text-secondary);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.check { color: var(--green); }
.cross { color: var(--red); }

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  transition: border-color 0.3s;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 14px;
  color: var(--muted);
}

/* ===== Price / CTA ===== */
.price-tag {
  font-size: 42px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue), var(--mauve), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-note {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

/* ===== Related Pages ===== */
.related-pages {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-link {
  display: inline-block;
  padding: 8px 16px;
  background: var(--surface0);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: border-color 0.2s, color 0.2s;
}

.related-link:hover {
  border-color: var(--mauve);
  color: var(--mauve);
}

/* ===== Callout Box ===== */
.callout {
  max-width: 720px;
  margin: 24px auto;
  padding: 20px 24px;
  background: var(--feature-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--mauve);
  border-radius: 8px;
}

.callout p {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
}

/* ===== Homepage Privacy Section ===== */
.privacy-content h3 {
  font-size: 18px;
  margin: 28px 0 12px;
}

.privacy-content p,
.privacy-content ul {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.privacy-content ul {
  padding-left: 20px;
}

/* ===== Footer ===== */
footer {
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
  transition: border-color 0.3s;
}

footer p {
  font-size: 13px;
  color: var(--muted);
}

/* ===== Cookie Consent Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface0);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 200;
  font-size: 14px;
  color: var(--muted);
  transition: transform 0.3s;
}

.cookie-banner.hidden { transform: translateY(100%); }
.cookie-banner a { color: var(--mauve); }

.cookie-btn {
  padding: 8px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.cookie-accept {
  background: var(--mauve);
  color: var(--base);
}

.cookie-decline {
  background: var(--surface1);
  color: var(--text);
}

/* ===== Utility Pages (Privacy, Support) ===== */
body.utility-page {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  line-height: 1.7;
  padding: 40px 20px;
}

.card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--card-bg);
  padding: 48px;
  border-radius: 16px;
  box-shadow: 0 4px 20px var(--card-shadow);
  border: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}

.card h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card .subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.card h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 12px;
  text-align: left;
}

.card p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.card strong {
  color: var(--text);
}

.card ul {
  margin: 0 0 16px 24px;
  color: var(--text-secondary);
}

.card li {
  margin-bottom: 8px;
}

.card a {
  color: var(--mauve);
}

.card .faq-item p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.back-link {
  color: var(--mauve);
  text-decoration: none;
  font-size: 14px;
}

.back-link:hover {
  text-decoration: underline;
}

.contact-box {
  background: var(--contact-bg);
  padding: 24px;
  border-radius: 12px;
  margin: 24px 0;
  border: 1px solid var(--border);
}

.contact-box p {
  color: var(--muted);
  font-size: 14px;
}

.contact-box a {
  font-size: 18px;
  font-weight: 500;
}

.card-footer {
  margin-top: 40px;
  color: var(--muted);
  font-size: 13px;
}

/* Utility page cookie banner uses card-bg */
body.utility-page .cookie-banner {
  background: var(--card-bg);
}

body.utility-page .cookie-decline {
  background: var(--contact-bg);
  color: var(--text);
}

/* ===== Media Queries ===== */
@media (max-width: 600px) {
  .nav-links { display: none; }
  .screenshots-scroll img { flex: 0 0 90%; }
  .comparison-table { font-size: 13px; }
  .comparison-table th,
  .comparison-table td { padding: 10px 8px; }
  .player-grid { grid-template-columns: 1fr; }
  .cookie-banner { flex-direction: column; text-align: center; gap: 12px; }
  .step { flex-direction: column; gap: 12px; }
}
