/* Tube Player for Safari — Support Site */
:root {
  --bg: #ffffff;
  --bg2: #f5f5f7;
  --bg3: #e8e8ed;
  --text: #1d1d1f;
  --text2: #6e6e73;
  --accent: #0071e3;
  --accent2: #0077ed;
  --border: #d2d2d7;
  --card: #ffffff;
  --shadow: 0 2px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius: 18px;
  --radius-sm: 10px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg2: #1c1c1e;
    --bg3: #2c2c2e;
    --text: #f5f5f7;
    --text2: #8e8e93;
    --accent: #2997ff;
    --accent2: #409cff;
    --border: #38383a;
    --card: #1c1c1e;
    --shadow: 0 2px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.6);
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 52px;
  background: rgba(var(--bg-rgb, 255,255,255), 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

@media (prefers-color-scheme: dark) {
  nav { background: rgba(0,0,0,0.85); }
}

.nav-brand {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-brand .icon {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

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

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

.lang-toggle {
  display: flex;
  background: var(--bg3);
  border-radius: 20px;
  padding: 2px;
  gap: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text2);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.lang-btn.active {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 80px 24px 60px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}

.hero-icon {
  width: 96px;
  height: 96px;
  background: var(--accent);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  margin: 0 auto 24px;
  box-shadow: var(--shadow-lg);
}

.hero h1 {
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: clamp(16px, 3vw, 20px);
  color: var(--text2);
  max-width: 560px;
  margin: 0 auto 32px;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg3);
  color: var(--text);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
}

.btn-secondary:hover { background: var(--border); transform: translateY(-1px); }

/* ── Features ── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 24px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

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

.feature-card p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
}

/* ── Screenshots ── */
.screenshots-section {
  background: var(--bg2);
  padding: 60px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.section-header p {
  font-size: 16px;
  color: var(--text2);
}

.device-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.device-tab {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text2);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 980px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.device-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.screenshot-gallery {
  display: none;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

.screenshot-gallery.active { display: flex; }

.screenshot-item {
  text-align: center;
}

.screenshot-item img {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: block;
  max-width: 100%;
}

.screenshot-item.iphone img { width: 220px; }
.screenshot-item.ipad img   { width: 340px; }
.screenshot-item.mac img    { width: 580px; }

.screenshot-caption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text2);
}

/* ── How to Use ── */
.howto-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px;
}

.platform-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.platform-btn {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text2);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 980px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.platform-btn.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.platform-steps { display: none; }
.platform-steps.active { display: block; }

.steps-list {
  list-style: none;
  counter-reset: step;
}

.steps-list li {
  counter-increment: step;
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.steps-list li:last-child { border-bottom: none; }

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

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

.step-content code {
  background: var(--bg3);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 12px;
  font-family: ui-monospace, "SF Mono", monospace;
}

/* ── FAQ ── */
.faq-section {
  background: var(--bg2);
  padding: 60px 24px;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}

summary {
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  font-size: 20px;
  color: var(--text2);
  transition: transform 0.2s;
}

details[open] summary::after { transform: rotate(45deg); }

details p {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text2);
  text-decoration: none;
}

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

.footer-copy {
  font-size: 12px;
  color: var(--text2);
}

/* ── Privacy page ── */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px;
}

.prose h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.prose .updated {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 40px;
}

.prose h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 36px 0 12px;
}

.prose p {
  font-size: 15px;
  color: var(--text2);
  margin-bottom: 14px;
  line-height: 1.75;
}

.prose ul {
  padding-left: 20px;
  margin-bottom: 14px;
}

.prose li {
  font-size: 15px;
  color: var(--text2);
  margin-bottom: 6px;
  line-height: 1.75;
}

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

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.data-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--bg3);
  font-weight: 600;
  border-bottom: 2px solid var(--border);
}

.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
}

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

.tag-no {
  display: inline-block;
  background: #34c759;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .nav-links { display: none; }
  .screenshot-item.mac img { width: 100%; }
  .screenshot-item.ipad img { width: 260px; }
}
