/* ==========================================================================
   Taki Player - Minimalist Brand Design System
   Palette: Deep Teal (#004945), Mint Glow (#0c5e55), Clean Background (#f7fbfa)
   Font: Rancho (Brand Name), System UI / Inter (Body & UI)
   ========================================================================== */

/* Rancho Font Definition */
@font-face {
  font-family: 'Rancho';
  src: url('../assets/fonts/rancho_regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #004945;
  --brand-light: #0c5e55;
  --brand-dark: #013a34;
  --brand-hover: #086b62;
  --brand-gold: #f5b722;
  --ink: #0a2523;
  --ink-secondary: #102f2c;
  --bg: #f7fbfa;
  --card-bg: #ffffff;
  --muted: #5e7f7a;
  --border: #e7f0ee;
  --border-light: #f0f6f4;
  --pill-bg: #e6f2f0;
  --pill-text: #0b5e56;
  --pill-accent-bg: #d8efe9;
  --accent-mint: #00b894;
  --hero-text: #ecfffd;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --font-main: system-ui, -apple-system, 'Segoe UI', Roboto, Inter, Arial, sans-serif;
  --font-brand: 'Rancho', cursive, sans-serif;
  
  --shadow-sm: 0 2px 8px rgba(0, 73, 69, 0.04);
  --shadow-card: 0 8px 24px rgba(0, 73, 69, 0.06);
  --shadow-lg: 0 16px 36px rgba(0, 73, 69, 0.12);
  --transition: all 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--brand-hover);
}

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

/* ==========================================================================
   Hero Section (Refined, Clean & Balanced)
   ========================================================================== */

header.hero {
  min-height: 52vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 20px 76px;
  background: radial-gradient(80% 80% at 30% 20%, #0c5e55 0%, #004945 60%, #013a34 100%);
  color: var(--hero-text);
  position: relative;
  overflow: hidden;
}

header.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to top, rgba(1, 58, 52, 0.4), transparent);
  pointer-events: none;
}

.hero-wrap {
  max-width: 1020px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: center;
}

.hero-logo-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo {
  width: min(230px, 45vw);
  height: auto;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.32));
  transition: var(--transition);
}

.hero-logo:hover {
  transform: scale(1.03);
}

.hero-text-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Taki Player Brand Title using Rancho Font */
.hero-title, .brand-font {
  font-family: var(--font-brand);
  margin: 0;
  font-size: clamp(52px, 6.8vw, 76px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.03em;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.hero-lead {
  font-size: clamp(16px, 2vw, 19px);
  opacity: 0.95;
  line-height: 1.55;
  max-width: 580px;
  margin: 4px 0 14px;
}

/* Platform availability pill badges (iOS & Android) */
.platforms-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.platform-pill svg {
  flex-shrink: 0;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #003b36;
  background: #ecfffd;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  color: #002e2a;
}

.btn.secondary {
  background: transparent;
  border-color: rgba(236, 255, 253, 0.4);
  color: #ecfffd;
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(236, 255, 253, 0.7);
  color: #ffffff;
}

.btn.brand-solid {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
}

.btn.brand-solid:hover {
  background: var(--brand-hover);
  color: #ffffff;
}

/* ==========================================================================
   Main Content Container
   ========================================================================== */

main.main-wrap {
  max-width: 1020px;
  margin: -40px auto 40px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 10;
}

/* ==========================================================================
   Section Headers & Badges
   ========================================================================== */

.section-head {
  margin-bottom: 24px;
}

.section-head.center {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

h2 {
  font-size: clamp(22px, 3vw, 28px);
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 18px;
  color: var(--brand-dark);
  font-weight: 700;
  margin-bottom: 6px;
}

.subtext {
  color: var(--muted);
  font-size: 15px;
}

.pill {
  display: inline-block;
  background: var(--pill-bg);
  color: var(--pill-text);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
}

/* ==========================================================================
   Screenshots Showcase Gallery
   ========================================================================== */

.screenshots-showcase {
  margin: 36px 0 44px;
}

.screenshots-scroll-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  align-items: flex-start;
}

.screenshot-item {
  background: #fbfdfc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.screenshot-item:hover {
  transform: translateY(-4px);
  border-color: #b5d5cf;
  box-shadow: var(--shadow-card);
}

.device-frame {
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 73, 69, 0.15);
  border: 3px solid #1a3330;
  margin-bottom: 12px;
}

.device-frame img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.screenshot-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 2px;
}

.screenshot-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}

/* ==========================================================================
   Sources Grid (4 Pillars of Music Sources)
   ========================================================================== */

.sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 16px;
  margin: 20px 0 40px;
}

.source-item {
  background: #fbfdfc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  transition: var(--transition);
}

.source-item:hover {
  transform: translateY(-2px);
  border-color: #b5d5cf;
  box-shadow: var(--shadow-sm);
}

.source-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--pill-bg);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.source-item strong {
  display: block;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 4px;
}

.source-item p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   Feature Cards Grid
   ========================================================================== */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.feature-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  background: #fff;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: #b5d5cf;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.feature-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.feature-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--pill-bg);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-card strong {
  font-size: 16px;
  color: var(--brand-dark);
}

.feature-card p {
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   Streaming Comparison Table
   ========================================================================== */

.comparison-box {
  margin: 40px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14.5px;
}

.comp-table th, .comp-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.comp-table th {
  background: #f3f8f7;
  color: var(--brand-dark);
  font-weight: 700;
}

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

.comp-table td.brand-col {
  font-weight: 600;
  color: var(--brand);
  background: #fbfdfc;
}

.comp-table td.dim-col {
  color: var(--muted);
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.faq-wrap {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fbfdfc;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: #b5d5cf;
}

.faq-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
  user-select: none;
}

.faq-header:hover {
  color: var(--brand);
}

.faq-icon {
  color: var(--brand);
  transition: transform 0.25s ease;
  font-size: 13px;
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.faq-item.active .faq-header {
  color: var(--brand);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-item.active .faq-body {
  max-height: 250px;
  padding: 0 20px 18px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer.site-foot {
  text-align: center;
  color: var(--muted);
  padding: 32px 20px 48px;
  font-size: 14px;
  line-height: 1.8;
}

footer.site-foot a {
  color: var(--brand);
  font-weight: 500;
}

footer.site-foot a:hover {
  text-decoration: underline;
}

.footer-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  margin: 0 auto 10px;
}

/* ==========================================================================
   Privacy Policy Page Styling
   ========================================================================== */

.wrap-privacy {
  max-width: 980px;
  margin: 36px auto;
  padding: 0 20px;
}

.privacy-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
}

.privacy-header {
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}

.privacy-card h1 {
  margin: 0 0 6px;
  font-size: clamp(28px, 4vw, 36px);
  color: var(--brand);
  font-weight: 800;
}

.privacy-card h2 {
  margin-top: 30px;
  color: var(--brand);
  font-size: clamp(19px, 3vw, 23px);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px;
}

.privacy-card h3 {
  margin-top: 18px;
  color: var(--brand-dark);
  font-size: 17px;
}

.privacy-card p, .privacy-card li {
  color: var(--ink-secondary);
  font-size: 15px;
}

.privacy-card ul {
  padding-left: 22px;
  margin: 10px 0 16px;
}

.privacy-summary-card {
  background: #fbfdfc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 20px 0;
}

.privacy-foot {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 860px) {
  header.hero .hero-wrap {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }

  .hero-logo-col {
    order: -1;
  }

  .platforms-row {
    justify-content: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .screenshots-scroll-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  main.main-wrap {
    margin-top: -20px;
    padding: 28px 20px;
  }

  .comp-table th, .comp-table td {
    padding: 10px 12px;
    font-size: 13.5px;
  }
}

@media (max-width: 480px) {
  .screenshots-scroll-grid {
    grid-template-columns: 1fr;
  }
}
