/* ==========================================================================
   SubSync AI - design tokens
   Dark "cinema screen" background, subtitle-yellow accent, Fraunces + Inter.
   ========================================================================== */

:root {
  --bg: #0e1116;
  --bg-raised: #151a21;
  --bg-raised-2: #1b212a;
  --line: #262e38;
  --text: #eef1f5;
  --text-dim: #a7b0bd;
  --text-faint: #6b7482;
  --accent: #f2c94c;
  --accent-dim: #cfa93c;
  --accent-ink: #1a1506;
  --teal: #5fd6c4;
  --danger: #ef6f6f;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1120px;
  --radius: 10px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.5em;
}

h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 21px; font-weight: 600; }

p { color: var(--text-dim); max-width: 62ch; }

.lede { font-size: 19px; color: var(--text-dim); max-width: 56ch; }

.eyebrow {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--sans);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #ffd766; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text-dim); }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 17, 22, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.brand span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 15px;
}
.nav-links a { text-decoration: none; color: var(--text-dim); }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 16px; }

.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: inline-flex;
    background: none;
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 8px;
    padding: 8px 10px;
  }
}

/* ------------------------------------------------------------------ hero */

.hero {
  padding: 76px 0 60px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
}

.hero h1 {
  font-size: clamp(36px, 5.4vw, 56px);
  letter-spacing: -0.01em;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-faint);
}

/* --- the literal product demo: a fake video frame with two subtitle lines */

.demo-frame {
  background: linear-gradient(180deg, #171d26, #0c0f14);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}
.demo-chrome {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.demo-chrome span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #333c48;
}
.demo-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, #23303c 0%, transparent 55%),
    radial-gradient(circle at 75% 70%, #1a2530 0%, transparent 50%),
    #0a0d11;
}
.demo-timeline {
  position: absolute;
  top: 16px; left: 16px; right: 16px;
  height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
}
.demo-timeline::after {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 38%;
  background: var(--accent);
  border-radius: 2px;
}
.demo-subs {
  position: absolute;
  left: 6%; right: 6%; bottom: 14%;
  text-align: center;
}
.sub-original {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  text-decoration: line-through;
  text-decoration-color: rgba(255,255,255,0.25);
  margin-bottom: 6px;
}
.sub-translated {
  font-family: var(--serif);
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 600;
  color: var(--accent);
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.demo-caption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-faint);
  text-align: center;
}

/* ------------------------------------------------------------- how it works */

.section { padding: 88px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 48px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; }
}
.step { position: relative; padding-left: 44px; }
.step-num {
  position: absolute; left: 0; top: 2px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--accent);
  width: 32px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 15px; }

/* ------------------------------------------------------------------ features */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
}
.feature-row:not(:last-child) { border-bottom: 1px solid var(--line); }
.feature-row.reverse .feature-media { order: 2; }
@media (max-width: 820px) {
  .feature-row, .feature-row.reverse .feature-media { grid-template-columns: 1fr; order: 0; }
  .feature-row { grid-template-columns: 1fr; }
}

.feature-media {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 13px;
  text-align: center;
  padding: 24px;
}
.feature-media img { border-radius: calc(var(--radius) - 1px); }

.feature-text h3 { font-size: 24px; }
.feature-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-list li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  color: var(--text-dim);
}
.feature-list li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 8px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------- providers */

.provider-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.provider-chip {
  border: 1px solid var(--line);
  background: var(--bg-raised);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text-dim);
}

/* -------------------------------------------------------------------- pricing */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 760px;
}
@media (max-width: 700px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
.plan {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.plan.featured {
  border-color: var(--accent-dim);
  background: linear-gradient(180deg, var(--bg-raised-2), var(--bg-raised));
}
.plan-name { font-size: 14px; color: var(--text-faint); margin-bottom: 6px; }
.plan-price {
  font-family: var(--serif);
  font-size: 44px;
  color: var(--text);
  margin-bottom: 2px;
}
.plan-price sup { font-size: 18px; top: -1.2em; }
.plan-period { font-size: 14px; color: var(--text-faint); margin-bottom: 22px; }
.plan-save {
  display: inline-block;
  font-size: 12px;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
  font-weight: 600;
}
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; }
.plan li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-dim);
}
.plan li:first-child { border-top: none; }
.plan .btn { width: 100%; justify-content: center; }

.pricing-note {
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-faint);
  max-width: 60ch;
}

/* ------------------------------------------------------------------------ faq */

.faq-list { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--serif);
  font-size: 22px;
  color: var(--accent);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding-bottom: 20px; font-size: 15px; }

/* --------------------------------------------------------------------- cta band */

.cta-band {
  border-top: 1px solid var(--line);
  padding: 80px 0;
  text-align: center;
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { margin: 0 auto 28px; }
.cta-band .hero-actions { justify-content: center; }

/* ------------------------------------------------------------------------ footer */

footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
  font-size: 14px;
  color: var(--text-faint);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--text-faint); }
.footer-links a:hover { color: var(--text-dim); }
.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* ------------------------------------------------------------------- legal pages */

.legal main {
  padding: 64px 0 100px;
}
.legal h1 { font-size: 34px; margin-bottom: 6px; }
.legal .updated { color: var(--text-faint); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: 22px; margin-top: 40px; }
.legal p, .legal li { color: var(--text-dim); max-width: 72ch; font-size: 15.5px; }
.legal ul { padding-left: 20px; }
.legal .fill {
  background: rgba(242, 201, 76, 0.12);
  border: 1px dashed var(--accent-dim);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.95em;
}
