/* ═════════════════════════════════════════════════════════════════
   YouTube to WordPress — Marketing site
   ═════════════════════════════════════════════════════════════════ */

:root {
  --brand-red: #e74134;
  --brand-red-dark: #c72f23;
  --brand-blue: #3b8fb9;
  --brand-blue-dark: #2c7396;
  --gradient: linear-gradient(135deg, #3b8fb9 0%, #2c7396 100%);
  --gradient-red: linear-gradient(135deg, #e74134 0%, #c72f23 100%);

  --ink: #0f1f28;
  --ink-2: #334a56;
  --ink-3: #5a7380;
  --line: #e1e8ed;
  --bg: #ffffff;
  --bg-soft: #f5f8fa;
  --bg-mute: #ebf2f6;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(15, 31, 40, 0.06), 0 1px 1px rgba(15, 31, 40, 0.04);
  --shadow: 0 10px 30px -12px rgba(15, 31, 40, 0.18), 0 4px 12px -4px rgba(15, 31, 40, 0.08);
  --shadow-lg: 0 30px 60px -20px rgba(15, 31, 40, 0.25), 0 10px 30px -10px rgba(15, 31, 40, 0.1);

  --container: 1160px;
  --container-narrow: 780px;
}

/* ═ Reset ═ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-blue); text-decoration: none; }
a:hover { color: var(--brand-blue-dark); }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-weight: 800; font-size: clamp(2.2rem, 5vw + 1rem, 3.8rem); }
h2 { font-weight: 700; font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem); }
h3 { font-weight: 600; font-size: 1.25rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
code { background: var(--bg-mute); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }

/* ═ Layout ═ */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: var(--container-narrow); }
.container.center { text-align: center; }
.section { padding: 80px 0; }
@media (max-width: 720px) { .section { padding: 56px 0; } }

/* ═ Buttons ═ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: linear-gradient(135deg, #2c7396 0%, #1f5c7a 100%); color: #fff; box-shadow: var(--shadow); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-xl { padding: 18px 36px; font-size: 1.1rem; border-radius: var(--radius); }
.btn-block { display: flex; width: 100%; }

/* ═════════════ HEADER ═════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 2px 10px -4px rgba(15, 31, 40, 0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
}
.brand:hover { color: var(--ink); }
.brand-logo { border-radius: 8px; }
.brand-name { white-space: nowrap; }
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 0;
  position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; gap: 10px; }
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
@media (max-width: 860px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .site-header.menu-open .nav-links {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--line);
    gap: 16px;
  }
  .site-header.menu-open .nav-actions {
    display: flex;
    position: absolute;
    top: 250px;
    left: 24px;
    right: 24px;
  }
}

/* ═════════════ HERO ═════════════ */
.hero {
  padding: 80px 0 100px;
  background:
    radial-gradient(ellipse 1000px 500px at 80% -10%, rgba(59, 143, 185, 0.18), transparent 60%),
    radial-gradient(ellipse 800px 400px at 10% 110%, rgba(231, 65, 52, 0.12), transparent 60%),
    #fff;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 48px 0 72px; }
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-blue);
  padding: 6px 12px;
  background: rgba(59, 143, 185, 0.08);
  border: 1px solid rgba(59, 143, 185, 0.2);
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero-title { margin-bottom: 20px; color: var(--ink); }
.accent-red {
  background: var(--gradient-red);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.accent-blue {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lede {
  font-size: 1.15rem;
  color: var(--ink-2);
  margin-bottom: 32px;
  max-width: 560px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--ink-3);
  font-size: 0.9rem;
}
.hero-trust li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-trust li::before {
  content: '✓';
  color: var(--brand-blue);
  font-weight: 700;
}

/* ─ Hero mockup ─ */
.mockup-window {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transform: perspective(1400px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.4s ease;
}
.mockup-window:hover { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }
.mockup-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.mockup-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }
.mockup-url {
  margin-left: 12px;
  font-size: 0.8rem;
  color: var(--ink-3);
  background: #fff;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.mockup-body { padding: 20px; display: grid; gap: 16px; }
.mockup-video {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #0f1f28;
  position: relative;
}
.mockup-video-thumb {
  width: 100%; height: 100%;
  background:
    radial-gradient(circle at 30% 40%, rgba(231, 65, 52, 0.3), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(59, 143, 185, 0.3), transparent 50%),
    #0f1f28;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mockup-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.mockup-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(231, 65, 52, 0.08), rgba(59, 143, 185, 0.08));
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.mockup-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-3);
}
.mockup-panel-body { padding: 14px; display: grid; gap: 10px; }
.mockup-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink-2);
}
.mockup-row span {
  display: inline-flex;
  width: 18px; height: 18px;
  align-items: center;
  justify-content: center;
  background: var(--bg-mute);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--brand-blue);
  font-weight: 700;
}
.mockup-group {
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: var(--bg-soft);
  display: grid;
  gap: 8px;
}
.mockup-group-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
}
.mockup-row-pro em {
  font-style: normal;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  background: var(--gradient-red);
  color: #fff;
  border-radius: 4px;
  letter-spacing: 0.03em;
}
.mockup-btn {
  margin-top: 4px;
  padding: 10px 14px;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

/* ═════════════ SECTIONS ═════════════ */
.section-title { text-align: center; }
.section-lede {
  font-size: 1.1rem;
  color: var(--ink-2);
  max-width: 640px;
}
.section-lede-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-bottom: 48px;
}

/* ─ Pain section ─ */
.section-pain {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-pain .section-title { margin-bottom: 20px; }
.section-pain .section-lede { text-align: center; margin-left: auto; margin-right: auto; }

/* ─ Features ─ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.feature-icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 16px;
}
.feature-icon-red { background: rgba(231, 65, 52, 0.1); color: var(--brand-red); }
.feature-icon-blue { background: rgba(59, 143, 185, 0.1); color: var(--brand-blue); }
.feature-icon-pro {
  background: var(--gradient);
  color: #fff;
}
.feature-card-pro {
  background: linear-gradient(180deg, #fff 0%, rgba(59, 143, 185, 0.04) 100%);
  border-color: rgba(59, 143, 185, 0.3);
}
.pro-chip {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  background: var(--gradient-red);
  color: #fff;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
.feature-card h3 small {
  font-size: 0.75em;
  font-weight: 500;
  color: var(--ink-3);
}
.feature-card p { color: var(--ink-2); font-size: 0.95rem; }

/* ─ How it works ─ */
.section-how { background: var(--bg-soft); }
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
}
.step-num {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 10px;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-2); font-size: 0.95rem; }

/* ─ Pricing ─ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card-featured {
  border: 2px solid var(--brand-blue);
  box-shadow: var(--shadow);
  transform: translateY(-8px);
}
@media (max-width: 720px) { .price-card-featured { transform: none; } }
.price-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.price-head { margin-bottom: 24px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.price-amount {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.price-unit { color: var(--ink-3); font-size: 1rem; }
.price-tagline { color: var(--ink-2); font-size: 0.95rem; margin: 0; }
.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 10px;
  flex: 1;
}
.price-features li {
  padding-left: 26px;
  position: relative;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.price-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  background: rgba(59, 143, 185, 0.1);
  color: var(--brand-blue);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}
.price-features li small { color: var(--ink-3); }
.price-small {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-3);
}

/* ─ Install ─ */
.section-install {
  background:
    radial-gradient(ellipse 800px 400px at 50% 100%, rgba(59, 143, 185, 0.15), transparent 60%),
    var(--bg-soft);
  border-top: 1px solid var(--line);
  text-align: center;
}
.section-install .section-title { margin-bottom: 16px; }
.section-install .section-lede { margin: 0 auto 28px; text-align: center; }
.hint { margin-top: 18px; font-size: 0.9rem; color: var(--ink-3); }

/* ─ FAQ ─ */
.faq {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 24px;
  margin-bottom: 12px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.faq[open] {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-sm);
}
.faq summary {
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0;
  outline: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-mute);
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: transform 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}
.faq[open] summary::after {
  content: '−';
  background: var(--brand-blue);
  color: #fff;
}
.faq p {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 0.97rem;
}

/* ═════════════ FOOTER ═════════════ */
.site-footer {
  background: #0f1f28;
  color: #c4d5dd;
  padding: 56px 0 28px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-brand img { border-radius: 6px; }
.footer-name { font-weight: 700; color: #fff; font-size: 1rem; }
.footer-tagline { font-size: 0.85rem; color: #8ba4b0; }
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.footer-col h4 {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8ba4b0;
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-col a {
  display: block;
  color: #c4d5dd;
  font-size: 0.9rem;
  padding: 4px 0;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #8ba4b0;
}

/* ═════════════ LEGAL PAGES ═════════════ */
.legal-wrap { padding: 60px 0 80px; }
.legal-wrap h1 { font-size: 2.2rem; margin-bottom: 8px; }
.legal-wrap .updated {
  color: var(--ink-3);
  font-size: 0.9rem;
  margin-bottom: 32px;
}
.legal-wrap h2 { font-size: 1.3rem; margin-top: 32px; margin-bottom: 12px; }
.legal-wrap p, .legal-wrap li { color: var(--ink-2); }
.legal-wrap ul { padding-left: 22px; }
.legal-wrap li { margin-bottom: 6px; }

/* ═ Reduced motion ═ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .mockup-window { transform: none; }
}
