/* sparkroll.app's search pages (/ai-video-editor/, /auto-captions/, /templates/ …): plain pre-rendered HTML, no script.
   Same look as the landing (web/src/ui/landing/landing.css): deep ground, hairline borders, frosted panels, peach only on
   the main button and one accent word. Poppins display (Latin subset here), Inter body (the landing's own files). */
@font-face { font-family: 'Poppins SR'; src: url(/seo/poppins-600.woff2) format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins SR'; src: url(/seo/poppins-700.woff2) format('woff2'); font-weight: 700 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter LP'; src: url(/landing/inter-500.woff2) format('woff2'); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter LP'; src: url(/landing/inter-600.woff2) format('woff2'); font-weight: 600 800; font-style: normal; font-display: swap; }

:root {
  --g0: #060D13; --g1: #0B141B; --g2: #0E1820;
  --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.12); --line3: rgba(255,255,255,.18);
  --tx: #FFFFFF; --tx2: rgba(255,255,255,.78); --tx3: #9AA6B0;
  --pe: #F4A28C; --peHi: #F8B9A7; --peInk: #2B1209;
  --glass: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.022));
  --edge: inset 0 1px 0 rgba(255,255,255,.06);
  --lift: 0 1px 2px rgba(0,0,0,.35), 0 14px 36px rgba(0,0,0,.32);
  --disp: 'Poppins SR', 'Poppins', system-ui, sans-serif;
  --body: 'Inter LP', Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1160px; --gut: 16px;
  color-scheme: dark;
}
@media (min-width: 720px) { :root { --gut: 24px; } }
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--g0); scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--g0); color: var(--tx); font: 500 16px/1.6 var(--body); letter-spacing: -.003em; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--peHi); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin: 0 auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--pe); color: var(--peInk); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15.5px/1 var(--disp); letter-spacing: -.005em; text-decoration: none; white-space: nowrap; transition: background-color .2s, border-color .2s, transform .2s; }
.btn.sm { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn svg { width: 16px; height: 16px; }
.primary { background: var(--pe); color: var(--peInk); border-color: rgba(255,255,255,.22); box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 1px 2px rgba(0,0,0,.4), 0 8px 22px rgba(0,0,0,.3); }
.primary:hover { background: #F7B3A1; transform: translateY(-1px); }
.ghost { background: rgba(255,255,255,.04); color: var(--tx); border-color: var(--line3); box-shadow: var(--edge); }
.ghost:hover { background: rgba(255,255,255,.075); border-color: rgba(255,255,255,.3); }
.glass { background: var(--glass); border: 1px solid var(--line); box-shadow: var(--edge), var(--lift); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(6,13,19,.8); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.navin { height: 64px; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; flex: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand span { font: 700 18px var(--disp); letter-spacing: -.02em; }
.navlinks { flex: 1; display: flex; justify-content: center; gap: 4px; }
.navlinks a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; font-size: 14.5px; color: var(--tx2); text-decoration: none; }
.navlinks a:hover { color: var(--tx); background: rgba(255,255,255,.04); }
@media (max-width: 820px) { .navlinks { display: none; } .navin { justify-content: space-between; } }

/* hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { content: ''; position: absolute; right: -10%; top: -10%; width: 60%; height: 120%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(244,162,140,.09), rgba(244,162,140,.02) 60%, transparent); }
.herogrid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 6vw, 88px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--tx3); }
.crumbs a { color: var(--tx3); text-decoration: none; }
.crumbs a:hover { color: var(--tx); text-decoration: underline; }
.eyebrow { margin-top: 18px; font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--pe); }
h1 { margin-top: 12px; font: 700 clamp(34px, 4.4vw, 58px)/1.06 var(--disp); letter-spacing: -.035em; text-wrap: balance; }
h1 em, h2 em { font-style: normal; color: var(--pe); }
.lead { margin-top: 20px; max-width: 34em; font-size: 18px; line-height: 1.6; color: var(--tx2); text-wrap: pretty; }
.ctas { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.fine { margin-top: 16px; font-size: 13.5px; color: var(--tx3); }
.shots { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 14px; }
.shots figure { flex: 0 1 31%; max-width: 210px; }
.shots figure:nth-child(2) { flex-basis: 36%; max-width: 250px; }
.shots img { width: 100%; aspect-ratio: 396 / 573; object-fit: cover; border-radius: 18px; border: 1px solid var(--line2); box-shadow: 0 2px 4px rgba(0,0,0,.4), 0 24px 60px rgba(0,0,0,.5); background: var(--g2); }
.shots figcaption { margin-top: 10px; text-align: center; font-size: 13px; color: var(--tx3); }
@media (max-width: 900px) { .herogrid { grid-template-columns: 1fr; } .shots { max-width: 520px; margin: 0 auto; } }

/* body */
.sec { padding: clamp(48px, 6vw, 84px) 0; border-bottom: 1px solid var(--line); }
.sec.alt { background: var(--g1); }
.prose { max-width: 760px; }
.wrap.prose { max-width: none; }
.wrap.prose > * { max-width: 760px; }
.wrap.prose > .tblwrap, .wrap.prose > .faqs { max-width: 860px; }
h2 { font: 700 clamp(26px, 2.8vw, 38px)/1.15 var(--disp); letter-spacing: -.028em; text-wrap: balance; }
h3 { font: 600 18px/1.35 var(--disp); letter-spacing: -.01em; }
.prose p, .prose li { color: var(--tx2); font-size: 17px; line-height: 1.7; }
.prose p { margin-top: 16px; }
.prose h2 + p { margin-top: 18px; }
.prose h3 { margin-top: 28px; }
.prose ul, .prose ol { margin-top: 14px; padding-left: 1.25em; display: grid; gap: 8px; }
.prose b, .prose strong { color: var(--tx); font-weight: 600; }
.prose a { color: var(--tx); text-decoration: underline; text-decoration-color: rgba(244,162,140,.6); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--pe); }
.prose .steps, .steps { list-style: none; padding: 0 !important; counter-reset: s; }
.steps li { position: relative; padding-left: 48px; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line3); background: rgba(255,255,255,.04); color: var(--tx); font: 600 14px/1 var(--disp); }
.cards { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; list-style: none; padding: 0; }
.card { padding: 20px; border-radius: 18px; }
.card h3 { font-size: 16.5px; }
.card p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--tx2); }
.prose .says, .says { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0 !important; }
.says li { padding: 10px 16px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(255,255,255,.035); color: var(--tx); font-size: 15px; line-height: 1.4; }
.says li::before { content: '\201C'; color: var(--pe); margin-right: 2px; }
.says li::after { content: '\201D'; color: var(--pe); margin-left: 1px; }
.tbl { margin-top: 22px; width: 100%; border-collapse: collapse; font-size: 15.5px; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.tbl th { font: 600 14px var(--disp); color: var(--tx); background: rgba(255,255,255,.03); }
.tbl td { color: var(--tx2); }
.tblwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* pricing strip */
.plans { margin-top: 26px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.plan { padding: 18px; border-radius: 18px; }
.plan b { display: block; font: 600 15px var(--disp); }
.plan .amt { margin-top: 6px; font: 700 26px/1.1 var(--disp); letter-spacing: -.02em; }
.plan .amt small { font: 500 14px var(--body); color: var(--tx3); margin-left: 4px; }
.plan p { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--tx2); }
@media (max-width: 900px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* gallery (templates page) */
.gal { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; list-style: none; padding: 0; }
.gal img { width: 100%; aspect-ratio: 396 / 573; object-fit: cover; border-radius: 14px; border: 1px solid var(--line2); background: var(--g2); }
.gal b { display: block; margin-top: 10px; font: 600 15px var(--disp); }
.gal span { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.45; color: var(--tx3); }
.fxgal { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.fxgal img { aspect-ratio: auto; }
.names { margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 18px; list-style: none; padding: 0 !important; }
.names li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.names b { color: var(--tx); font-weight: 600; }
.names span { display: block; font-size: 14px; color: var(--tx3); line-height: 1.5; }

/* faq */
.faqs { margin-top: 24px; display: grid; gap: 10px; }
details { border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); }
summary { cursor: pointer; list-style: none; padding: 16px 20px; font: 600 16px/1.4 var(--disp); display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--tx3); font-weight: 500; font-size: 20px; line-height: 1; }
details[open] summary::after { content: '\2212'; }
details p { padding: 0 20px 18px; margin: 0 !important; color: var(--tx2); font-size: 15.5px; line-height: 1.65; }

/* related + final */
.rel { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; list-style: none; padding: 0; }
.rel a { display: block; height: 100%; padding: 16px 18px; border-radius: 16px; text-decoration: none; border: 1px solid var(--line); background: rgba(255,255,255,.03); transition: border-color .2s, background-color .2s; }
.rel a:hover { border-color: var(--line3); background: rgba(255,255,255,.055); }
.rel b { display: block; font: 600 15.5px var(--disp); }
.rel span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--tx3); }
.final { text-align: center; }
.final .lead { margin-left: auto; margin-right: auto; }
.final .ctas { justify-content: center; }

/* footer */
.foot { padding: 40px 0 36px; }
.footgrid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.foot h2 { font: 600 13px var(--disp); letter-spacing: .12em; text-transform: uppercase; color: var(--tx3); }
.foot ul { margin-top: 10px; list-style: none; padding: 0; display: grid; gap: 2px; }
.foot li a { display: inline-flex; align-items: center; min-height: 36px; font-size: 14.5px; color: var(--tx2); text-decoration: none; }
.foot li a:hover { color: var(--tx); text-decoration: underline; }
.foot p { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--tx3); max-width: 30em; }
.footlow { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--tx3); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
@media (max-width: 760px) { .footgrid { grid-template-columns: 1fr; } .btn { white-space: normal; text-align: center; line-height: 1.2; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
.fxgal img { max-width: 140px; }
