/* Topic pages (AI video editor, edit with ChatGPT / Claude / Gemini, team editing, free editor).
   Same look as the homepage — white, soft mesh gradients, glass, Helvetica, violet — but static and light:
   no animation scripts, so they load instantly and read well on phones. Built by tools/make-pages.mjs. */
@font-face { font-family: "CR Sans"; font-weight: 400; font-display: swap; src: local("Helvetica Neue"), local("Helvetica Neue Roman"), local("HelveticaNeue"), local("HelveticaNeue-Roman"), url("../assets/fonts/heros-regular.woff2") format("woff2"); }
@font-face { font-family: "CR Sans"; font-weight: 500; font-display: swap; src: local("Helvetica Neue Medium"), local("HelveticaNeue-Medium"), url("../assets/fonts/heros-regular.woff2") format("woff2"); }
@font-face { font-family: "CR Sans"; font-weight: 700; font-display: swap; src: local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"), url("../assets/fonts/heros-bold.woff2") format("woff2"); }

:root {
  --ink: #0b0b0f;
  --ink-2: #33333d;
  --mute: #6f6f7a;
  --soft: #f5f5f8;
  --line: rgba(12, 12, 24, 0.09);
  --violet: #6b4eff;
  --brand: linear-gradient(90deg, #6b4eff 0%, #c04bff 55%, #ff6a3d 100%);
  --shadow: 0 1px 2px rgba(16, 16, 40, 0.05), 0 12px 32px rgba(16, 16, 40, 0.08), 0 40px 90px rgba(16, 16, 40, 0.12);
  --pad: clamp(18px, 4vw, 40px);
  --max: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: "CR Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--violet); text-underline-offset: 3px; }
::selection { background: rgba(107, 78, 255, 0.18); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.ico { width: 20px; height: 20px; flex: none; }

/* ---------- Top bar ---------- */
.pg-nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.pg-nav .in { max-width: var(--max); margin: 0 auto; padding: 12px var(--pad); display: flex; align-items: center; gap: 20px; }
.pg-brand img { height: 24px; width: auto; }
.pg-links { display: flex; gap: 4px; margin-left: 12px; }
.pg-links a { color: var(--ink-2); text-decoration: none; font-size: 14px; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.pg-links a:hover { background: var(--soft); color: var(--ink); }
.pg-links a[aria-current="page"] { color: var(--ink); background: var(--soft); }
.pg-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pg-signin { color: var(--ink-2); text-decoration: none; font-size: 14px; padding: 6px 10px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; font-weight: 500; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s, background 0.2s; white-space: nowrap; }
.btn-ink { background: var(--ink); color: #fff; padding: 13px 22px; font-size: 16px; box-shadow: 0 6px 20px rgba(11, 11, 15, 0.18); }
.btn-ink:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(11, 11, 15, 0.24); }
.btn-ghost { color: var(--ink); padding: 12px 20px; font-size: 16px; background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line); }
.btn-ghost:hover { background: #fff; }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* ---------- Hero ---------- */
.pg-hero { position: relative; overflow: hidden; padding: 56px 0 72px; isolation: isolate; }
.pg-hero::before {
  content: ""; position: absolute; inset: -20% -10% 0; z-index: -1;
  background:
    radial-gradient(600px 420px at 12% 18%, rgba(255, 170, 120, 0.32), transparent 70%),
    radial-gradient(620px 460px at 88% 8%, rgba(143, 120, 255, 0.28), transparent 70%),
    radial-gradient(560px 420px at 72% 92%, rgba(142, 197, 255, 0.3), transparent 70%),
    radial-gradient(520px 400px at 8% 88%, rgba(255, 126, 182, 0.18), transparent 70%);
}
.crumbs { font-size: 13px; color: var(--mute); margin-bottom: 18px; }
.crumbs a { color: var(--mute); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { margin: 0 6px; opacity: 0.6; }
.pg-hero h1 { font-weight: 500; letter-spacing: -0.045em; line-height: 1.02; font-size: clamp(40px, 6.2vw, 76px); margin: 4px 0 18px; max-width: 900px; }
.grad { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 680px; line-height: 1.5; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; align-items: center; }
.cta-note { font-size: 14px; color: var(--mute); }
.hero-shot { margin-top: 48px; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(255, 255, 255, 0.8); background: #fff; }

/* ---------- Sections ---------- */
.sec { padding: 72px 0; }
.sec + .sec { padding-top: 24px; }
.sec h2 { font-weight: 500; letter-spacing: -0.035em; line-height: 1.08; font-size: clamp(30px, 3.6vw, 46px); margin-bottom: 14px; max-width: 820px; }
.sec .sub { color: var(--ink-2); max-width: 720px; margin-bottom: 32px; }
.prose { max-width: 760px; }
.prose p { color: var(--ink-2); margin-bottom: 16px; }
.prose h3 { font-weight: 700; font-size: 19px; margin: 26px 0 8px; }
.prose ul { margin: 0 0 16px 22px; color: var(--ink-2); }
.prose li { margin: 6px 0; }
.prose strong { color: var(--ink); }
code { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 0.9em; background: var(--soft); border-radius: 6px; padding: 2px 6px; color: var(--ink); overflow-wrap: anywhere; }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px 22px 24px; box-shadow: 0 1px 2px rgba(16, 16, 40, 0.04); }
.steps li::before { content: counter(s); display: flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(107, 78, 255, 0.1); color: var(--violet); font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.steps h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.steps p { color: var(--ink-2); font-size: 15px; }

/* Feature cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.card { background: var(--soft); border-radius: 20px; padding: 22px; }
.card .ic { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--violet); margin-bottom: 14px; box-shadow: 0 1px 2px rgba(16, 16, 40, 0.06); }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.card p { color: var(--ink-2); font-size: 15px; }

/* Things to ask */
.asks { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.ask { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; font-size: 15px; color: var(--ink); line-height: 1.45; }
.ask .ic { color: var(--violet); margin-top: 1px; }

/* Split: text + picture */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.split .shot { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }

/* Table */
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.tbl th, .tbl td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th { background: var(--soft); font-weight: 700; }
.tbl td { color: var(--ink-2); }

/* Callout */
.note { display: flex; gap: 12px; background: rgba(107, 78, 255, 0.07); border-radius: 16px; padding: 16px 18px; color: var(--ink-2); font-size: 15px; margin-top: 20px; max-width: 760px; }
.note .ic { color: var(--violet); margin-top: 2px; }

/* FAQ */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 500; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 26px; font-weight: 400; color: var(--mute); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding: 0 0 20px; max-width: 720px; }

/* Related pages */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.related a { display: block; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; transition: border-color 0.2s, transform 0.2s; }
.related a:hover { border-color: var(--violet); transform: translateY(-2px); }
.related b { display: block; font-weight: 700; margin-bottom: 4px; }
.related span { color: var(--mute); font-size: 14px; }

/* Final call to action */
.band { margin: 40px 0 0; border-radius: 28px; padding: clamp(32px, 5vw, 56px); text-align: center; position: relative; overflow: hidden; isolation: isolate; background: #fff; border: 1px solid var(--line); }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px 300px at 20% 0%, rgba(255, 170, 120, 0.3), transparent 70%), radial-gradient(500px 300px at 85% 100%, rgba(143, 120, 255, 0.3), transparent 70%); }
.band h2 { font-weight: 500; letter-spacing: -0.035em; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; margin-bottom: 10px; }
.band p { color: var(--ink-2); margin-bottom: 24px; }
.band .cta-row { justify-content: center; margin-top: 0; }

/* ---------- Footer ---------- */
.pg-foot { border-top: 1px solid var(--line); background: var(--soft); }
.pg-foot .in { max-width: var(--max); margin: 0 auto; padding: 44px var(--pad) 32px; display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 28px; }
.pg-foot img { height: 22px; width: auto; margin-bottom: 12px; }
.pg-foot p { color: var(--mute); font-size: 14px; max-width: 280px; }
.pg-foot h5 { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.pg-foot ul { list-style: none; display: grid; gap: 6px; }
.pg-foot a { color: var(--ink-2); text-decoration: none; font-size: 14px; }
.pg-foot a:hover { color: var(--ink); }
.pg-foot .bottom { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) 32px; color: var(--mute); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.post-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.post-card:hover { border-color: var(--violet); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(16, 16, 40, 0.08); }
.post-card h2 { font-weight: 500; letter-spacing: -0.02em; font-size: 23px; line-height: 1.2; }
.post-card p { color: var(--ink-2); font-size: 15px; flex: 1; }
.post-card span { color: var(--mute); font-size: 13px; }

.post-hero { position: relative; overflow: hidden; padding: 48px 0 24px; isolation: isolate; }
.post-hero::before { content: ""; position: absolute; inset: -30% -10% 0; z-index: -1; background: radial-gradient(560px 380px at 10% 20%, rgba(255, 170, 120, 0.26), transparent 70%), radial-gradient(600px 420px at 90% 0%, rgba(143, 120, 255, 0.24), transparent 70%); }
.post-col { max-width: 900px; }
.post-hero h1 { font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; font-size: clamp(36px, 5vw, 60px); margin: 4px 0 16px; }
.post-meta { color: var(--mute); font-size: 14px; }
.post-meta a { color: var(--ink-2); text-decoration: none; }
.post-meta a:hover { color: var(--violet); }
.answer { margin-top: 24px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--violet); border-radius: 16px; padding: 18px 22px; box-shadow: 0 1px 2px rgba(16, 16, 40, 0.04); max-width: 760px; }
.answer p { color: var(--ink); font-size: 17px; line-height: 1.6; }

.post-grid { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 56px; padding-top: 32px; padding-bottom: 24px; }
.post-toc { position: sticky; top: 92px; align-self: start; font-size: 14px; }
.post-toc p { font-weight: 700; font-size: 13px; color: var(--mute); margin-bottom: 8px; }
.post-toc ol { list-style: none; display: grid; gap: 2px; }
.post-toc a { display: block; color: var(--ink-2); text-decoration: none; padding: 5px 10px; border-radius: 8px; line-height: 1.35; }
.post-toc a:hover { background: var(--soft); color: var(--ink); }
.post-body { max-width: 760px; }
.post-body h2 { font-weight: 500; letter-spacing: -0.03em; font-size: clamp(26px, 2.8vw, 34px); line-height: 1.15; margin: 44px 0 14px; }
.post-body h2:first-child { margin-top: 0; }
.post-body h3 { font-size: 19px; font-weight: 700; margin: 26px 0 8px; }
.post-body ol { margin: 0 0 16px 22px; color: var(--ink-2); }
.post-body ol li, .post-body ul li { margin: 8px 0; padding-left: 4px; }
.post-body pre { background: var(--soft); border-radius: 14px; padding: 16px 18px; overflow-x: auto; margin: 0 0 16px; }
.post-body pre code { background: none; padding: 0; font-size: 14px; }
.post-body .tbl { margin: 8px 0 20px; }
.post-body .note { margin: 4px 0 18px; }
.post-body .faq { margin-top: 4px; }
.post-body .faq details p { padding-bottom: 12px; }
.author { display: flex; gap: 14px; align-items: center; margin-top: 44px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; }
.author img { width: 44px; height: 44px; border-radius: 12px; }
.author p { font-size: 14px; color: var(--mute); margin: 0; }
.author strong { color: var(--ink); }
@media (max-width: 900px) {
  .post-grid { grid-template-columns: 1fr; gap: 0; }
  .post-toc { display: none; }
}

/* ---------- Phones & tablets ---------- */
@media (max-width: 900px) {
  .pg-links { display: none; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .pg-foot .in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .pg-signin { display: none; }
  .pg-hero { padding: 36px 0 48px; }
  .hero-shot { margin-top: 32px; border-radius: 14px; }
  .sec { padding: 52px 0; }
  .btn-ink, .btn-ghost { padding: 12px 18px; font-size: 15px; }
  .asks { grid-template-columns: 1fr; }
  .pg-foot .in { grid-template-columns: 1fr; }
  /* Tables fit the phone instead of hiding a column off to the side. */
  .tbl table { min-width: 0; font-size: 13px; }
  .tbl th, .tbl td { padding: 10px 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .related a { transition: none; } }
