/*
 * Styles for the static, crawlable pages under /video-editor/.
 *
 * These pages deliberately sit outside the React app. The SPA paints its
 * content after JavaScript runs, which the assistant crawlers that matter here
 * (OAI-SearchBot, PerplexityBot, ClaudeBot) do not do — so anything that needs
 * to be readable by a model has to ship as server-returned HTML. Keeping them
 * as plain files also means no build step can accidentally hide them.
 *
 * Lives at /static/ rather than /video-editor/ so every page in the cluster can
 * reference one absolute path regardless of how deeply it is nested.
 *
 * Palette is inherited from public/talk/index.html so the App Store hand-off
 * looks like one continuous surface.
 */

:root {
  --bg: #0b0b0f;
  --bg-raised: #12121a;
  --text: #f2f0ec;
  --text-dim: #9b99a3;
  --text-faint: #7c7a85;
  --stroke: #1f1f27;
  --stroke-strong: #2a2a33;
  --accent: #f2f0ec;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- Masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--stroke);
}

.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: block;
}

.masthead nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.masthead nav a {
  color: var(--text-dim);
  text-decoration: none;
}

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

/* ---------- Typography ---------- */

main {
  padding: 52px 0 72px;
}

h1 {
  font-size: 40px;
  line-height: 1.12;
  font-weight: 640;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}

h2 {
  font-size: 25px;
  line-height: 1.25;
  font-weight: 620;
  letter-spacing: -0.022em;
  margin: 54px 0 14px;
}

h3 {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.012em;
  margin: 30px 0 8px;
}

p {
  margin: 0 0 17px;
}

/*
 * The opening paragraph is the sentence a model is most likely to lift, so it
 * is styled as a deliberate answer rather than as body copy. Every page in this
 * cluster leads with one.
 */
.answer {
  font-size: 20px;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 26px;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--stroke-strong);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--text-dim);
}

strong {
  font-weight: 600;
}

ul,
ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

li {
  margin-bottom: 8px;
}

.dim {
  color: var(--text-dim);
}

.small {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-faint);
}

/* ---------- Call to action ---------- */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 30px 0 12px;
}

.cta {
  display: inline-block;
  padding: 15px 26px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 13px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16.5px;
  letter-spacing: -0.01em;
}

.cta:hover {
  opacity: 0.88;
}

.cta-note {
  font-size: 14.5px;
  color: var(--text-faint);
}

/* ---------- Fact table ---------- */

.facts {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 15.5px;
}

.facts th,
.facts td {
  text-align: left;
  padding: 11px 0;
  border-bottom: 1px solid var(--stroke);
  vertical-align: top;
}

.facts th {
  font-weight: 500;
  color: var(--text-dim);
  width: 40%;
  padding-right: 18px;
}

/* ---------- Comparison table ---------- */

.compare-scroll {
  overflow-x: auto;
  margin: 0 0 12px;
}

.compare {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
}

.compare th,
.compare td {
  text-align: left;
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--stroke);
  vertical-align: top;
}

.compare thead th {
  color: var(--text-dim);
  font-weight: 500;
  border-bottom-color: var(--stroke-strong);
  white-space: nowrap;
}

.compare tbody th {
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 0 42px;
  margin-bottom: 20px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 27px;
  height: 27px;
  border: 1px solid var(--stroke-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
}

.steps li strong {
  display: block;
  margin-bottom: 2px;
}

/* ---------- FAQ ---------- */

.faq {
  border-top: 1px solid var(--stroke);
  margin-top: 14px;
}

.faq > div {
  border-bottom: 1px solid var(--stroke);
  padding: 20px 0;
}

.faq h3 {
  margin: 0 0 7px;
  font-size: 17px;
}

.faq p {
  margin: 0;
  color: var(--text-dim);
  font-size: 16px;
}

/* ---------- Feature groups ---------- */

.group {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 20px 22px 6px;
  margin-bottom: 14px;
  background: var(--bg-raised);
}

.group h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.group ul {
  margin-bottom: 16px;
  padding-left: 20px;
  font-size: 15.5px;
  color: var(--text-dim);
}

.group li {
  margin-bottom: 6px;
}

/* ---------- Related links ---------- */

.related {
  display: grid;
  gap: 10px;
  margin: 0 0 8px;
}

.related a {
  display: block;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 15px 17px;
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 500;
}

.related a:hover {
  border-color: var(--stroke-strong);
}

.related span {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-faint);
}

/* ---------- Breadcrumb ---------- */

.crumbs {
  font-size: 14px;
  color: var(--text-faint);
  margin: 0 0 22px;
}

.crumbs a {
  color: var(--text-faint);
  text-decoration: none;
}

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

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--stroke);
  padding: 26px 0 40px;
  font-size: 14px;
  color: var(--text-faint);
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}

footer a {
  color: var(--text-dim);
  text-decoration: none;
}

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

/* ---------- Narrow screens ---------- */

@media (max-width: 560px) {
  body {
    font-size: 16.5px;
  }

  h1 {
    font-size: 31px;
  }

  h2 {
    font-size: 22px;
    margin-top: 44px;
  }

  .answer {
    font-size: 18.5px;
  }

  .masthead nav {
    gap: 14px;
    font-size: 13.5px;
  }

  .cta {
    display: block;
    width: 100%;
    text-align: center;
  }
}
