/* Scenewick site: the app's "candlelight" look. System fonts only (nothing loaded from elsewhere). */
:root {
  --bg: #0c0a12; --bg2: #13101c; --card: #181424; --line: #2a2338; --text: #ece8f6; --dim: #a9a2bd; --dim2: #7d7693;
  --violet: #6b4ee6; --violet2: #8b6cff; --ember: #ff8a3d; --gold: #ffd08a;
  --flame: linear-gradient(135deg, #5a3fd6 0%, #8b4fd8 45%, #ff7a3a 100%);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
a:hover { color: #fff; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 6px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font: 600 16px/1 var(--sans); text-decoration: none; color: #fff; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn.small { padding: 9px 16px; font-size: 14px; }
.btn.flame { background: var(--flame); box-shadow: 0 6px 24px #ff7a3a33, inset 0 1px 0 #ffffff33; }
.btn.flame:hover { transform: translateY(-1px); box-shadow: 0 10px 30px #ff7a3a55, inset 0 1px 0 #ffffff44; color: #fff; }
.btn.ghost { border-color: var(--line); background: #ffffff08; color: var(--text); }
.btn.ghost:hover { background: #ffffff12; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

/* nav */
.nav { position: sticky; top: 0; z-index: 5; background: #0c0a12d9; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid #ffffff0d; }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav nav a:not(.btn) { color: var(--dim); text-decoration: none; font-size: 15px; }
.nav nav a:not(.btn):hover { color: var(--text); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.wordmark { font-weight: 700; font-size: 21px; letter-spacing: -.02em; }
.wordmark em { color: var(--ember); font-size: 1.05em; }
.brand.small .wordmark { font-size: 17px; }
@media (max-width: 760px) { .nav nav a:not(.btn):not([href$="learn.html"]):not([href="/learn"]) { display: none; } }

/* hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 64px; }
.hero::before { content: ''; position: absolute; inset: -30% -10% auto 40%; height: 120%; background: radial-gradient(closest-side, #6b4ee640, transparent 70%), radial-gradient(closest-side at 70% 30%, #ff8a3d2e, transparent 70%); pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; margin: 0 0 18px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--gold); background: #ff8a3d14; border: 1px solid #ff8a3d40; }
h1 { font-size: clamp(38px, 5.4vw, 62px); font-weight: 800; }
.flame-text { background: var(--flame); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--dim); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--dim); font-size: 15px; }
.ticks li::before { content: '✦'; color: var(--ember); margin-right: 8px; }
.hero-shot { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px #000a, 0 0 0 1px #ffffff08, 0 0 60px #6b4ee633; }
@media (max-width: 900px) { .hero { padding-top: 44px; } .hero-in { grid-template-columns: 1fr; gap: 32px; } }

/* sections */
.section { padding: 84px 0; }
.section.alt { background: var(--bg2); border-block: 1px solid #ffffff0a; }
.section-title { font-size: clamp(30px, 4vw, 44px); font-weight: 800; text-align: center; margin-bottom: 14px; }
.section-title em { color: var(--ember); }
.section-lead { text-align: center; color: var(--dim); max-width: 40em; margin: 0 auto 36px; }
.center { text-align: center; }
.fine { font-size: 13px; color: var(--dim2); line-height: 1.55; }

/* features */
.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; margin: 64px 0; }
.feature.flip .feature-copy { order: 2; }
.feature h3 { font-size: 28px; }
.feature p { color: var(--dim); }
.feature img { border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 20px 60px #0009; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; gap: 20px; margin: 44px 0; } .feature.flip .feature-copy { order: 0; } }
.grid { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.grid h4 { font-size: 17px; margin-bottom: 6px; }
.grid h4::before { content: '✦ '; color: var(--ember); }
.grid p { margin: 0; color: var(--dim); font-size: 15px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

/* pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 820px; margin: 36px auto 20px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 30px; }
.plan.pro { border-color: #ff8a3d66; background: linear-gradient(180deg, #ff8a3d10, var(--card) 60%); box-shadow: 0 0 50px #ff7a3a1f; }
.plan h3 { font-size: 22px; }
.plan h3 em { color: var(--ember); }
.price { font-size: 40px; font-weight: 800; margin: 4px 0 14px; }
.price span { font-size: 17px; font-weight: 500; color: var(--dim); }
.plan ul { margin: 0; padding-left: 20px; color: var(--dim); }
.plan li { margin: 6px 0; }
@media (max-width: 680px) { .plans { grid-template-columns: 1fr; } }

/* comparison */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 16px; }
.compare { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 15px; }
.compare th, .compare td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim2); background: var(--bg2); }
.compare tbody th { font-weight: 600; }
.compare td { color: var(--dim); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare tr.us { background: linear-gradient(90deg, #ff8a3d18, #6b4ee618); }
.compare tr.us th, .compare tr.us td { color: var(--text); }

/* sign-up */
.signup-section { background: radial-gradient(60% 80% at 50% 0%, #6b4ee62a, transparent 70%); }
.signup { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.signup-row { display: flex; gap: 10px; }
.signup input[type=email] { flex: 1; min-width: 0; padding: 14px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: 16px var(--sans); }
.signup input[type=email]:focus { border-color: var(--violet2); outline: none; box-shadow: 0 0 0 3px #8b6cff40; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 14px; color: var(--dim); line-height: 1.5; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ember); flex: none; }
.signup-msg { min-height: 1.5em; margin: 12px 0 0; font-size: 15px; }
.signup-msg.ok { color: #9ff0b0; }
.signup-msg.bad { color: #ffa7b0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 560px) { .signup-row { flex-direction: column; } }

/* faq */
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin: 10px 0; }
summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 0; top: 13px; font-size: 22px; color: var(--ember); }
details[open] summary::after { content: '–'; }
details p { margin: 0 0 16px; color: var(--dim); }

/* footer */
.footer { padding: 40px 0 28px; border-top: 1px solid #ffffff0d; }
.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-in > div { max-width: 560px; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer nav a { color: var(--dim); text-decoration: none; font-size: 15px; }
.footer nav a:hover { color: var(--text); }

/* simple pages (privacy, help) */
.page { padding: 56px 0 72px; }
.page h1 { font-size: clamp(32px, 4vw, 44px); }
.page h2 { font-size: 22px; margin-top: 36px; }
.page p, .page li { color: var(--dim); }
.page b, .page strong { color: var(--text); }
.page .updated { color: var(--dim2); font-size: 14px; }

/* anchors land below the sticky header */
section[id], h2[id] { scroll-margin-top: 80px; }

/* demo videos: vertical clips in a phone-shaped frame */
.demo { margin: 0 auto; width: min(100%, 340px); position: relative; }
.demo video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; background: #000; border-radius: 28px; border: 6px solid #221d30; box-shadow: 0 24px 70px #000b, 0 0 0 1px #ffffff12, 0 0 60px #6b4ee62e; }
.demo.square { width: min(100%, 460px); }
.demo.square video { aspect-ratio: 1 / 1; border-radius: 22px; }
.demo.wide { width: min(100%, 600px); }
.demo.wide video { aspect-ratio: 16 / 9; border-radius: 18px; }
.demo figcaption { margin-top: 12px; text-align: center; font-size: 13px; color: var(--dim2); }
.demo-sound { position: absolute; right: 16px; top: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid #ffffff30; background: #0c0a12b3; color: #fff; font: 600 13px var(--sans); cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.demo-sound:hover { background: #0c0a12e0; }
.demo-play { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--flame); color: #fff; font-size: 22px; cursor: pointer; box-shadow: 0 8px 30px #0008; }
.demo-play[hidden], .demo-sound[hidden] { display: none; }

.pro-tag { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 3px 8px; border-radius: 999px; font: 700 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); border: 1px solid #ff8a3d66; background: #ff8a3d14; }

/* the three-part headline: one phrase per line */
h1.stack > span { display: block; }

/* Learn: video lessons */
.learn-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 8px; }
.learn-nav a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); text-decoration: none; font-size: 14px; background: #ffffff08; }
.learn-nav a:hover { border-color: var(--ember); }
.learn-sec { padding-top: 24px; scroll-margin-top: 80px; }
.learn-sec h2 { font-size: 26px; margin: 28px 0 18px; }
.lessons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.lesson { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; scroll-margin-top: 80px; }
.lesson video, .lesson-soon { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0c0a12; }
.lesson-soon { display: grid; place-items: center; color: var(--dim); }
.lesson-text { padding: 18px 20px 20px; }
.lesson-text h3 { font-size: 18px; margin: 0 0 6px; }
.lesson-text p { margin: 0 0 10px; }
.lesson-text ol { margin: 0; padding-left: 20px; font-size: 15px; }
.lesson-text li { margin: 3px 0; }
.pro-pill { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--flame); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; vertical-align: 2px; }
@media (max-width: 760px) { .lessons { grid-template-columns: 1fr; } }

/* how-to pages (training/seo.py) */
.howto h1 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.1; margin: 8px 0 14px; }
.howto h2 { font-size: 22px; margin: 36px 0 12px; }
.howto .eyebrow a { color: inherit; text-decoration: none; }
.howto video { width: 100%; height: auto; border-radius: 14px; margin: 26px 0 6px; background: #000; box-shadow: 0 20px 60px #0008; }
.howto-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 22px 0; }
.howto-cta .fine { margin: 0; max-width: 360px; }
.howto-steps { font-size: 18px; line-height: 1.6; padding-left: 22px; }
.howto-pro { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
.howto-more { padding-left: 20px; line-height: 1.9; }


/* YouTube section videos on the Learn page: click-to-play (training/youtube-web.py, js/yt.js) */
.yt-play { margin: 0 0 22px; max-width: 760px; }
.yt-play .yt-start, .yt-play iframe { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 20px 60px #0008; }
.yt-play img { display: block; width: 100%; height: 100%; object-fit: cover; filter: brightness(.94); transition: filter .2s; }
.yt-play .yt-start:hover img, .yt-play .yt-start:focus-visible img { filter: brightness(1.04); }
.yt-btn { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; padding-left: 6px; font-size: 34px; color: #fff; background: var(--flame); box-shadow: 0 10px 40px #0009; }
.yt-len { position: absolute; left: 14px; bottom: 12px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #fff; background: #000a; }
.yt-play img.yt-blur { filter: blur(14px) brightness(.55); transform: scale(1.12); }
.yt-play .yt-start:hover img.yt-blur, .yt-play .yt-start:focus-visible img.yt-blur { filter: blur(14px) brightness(.7); }
.yt-title { position: absolute; left: 0; right: 0; top: 14%; text-align: center; font-family: var(--serif); font-size: clamp(22px, 4vw, 38px); color: #fff; text-shadow: 0 2px 16px #000a; padding: 0 16px; }
.yt-play figcaption { margin-top: 8px; font-size: 13px; color: var(--dim); }
.yt-play figcaption a, .howto-yt a { font-weight: 600; }
.howto-yt { margin: 4px 0 0; font-size: 15px; }
@media (max-width: 600px) { .yt-btn { width: 60px; height: 60px; font-size: 24px; } .yt-title { top: 9%; } .yt-len { font-size: 12px; bottom: 8px; left: 8px; } }
@media (max-width: 760px) { .nav nav { gap: 14px; } .nav nav .btn { white-space: nowrap; } }
@media (max-width: 380px) { .nav .wordmark { font-size: 18px; } .nav nav .btn { padding-left: 12px; padding-right: 12px; font-size: 13px; } }
.feature > * { min-width: 0; } /* a wide picture can never push the page wider than the phone */

/* Learn page: written lessons under each section's YouTube video (training/youtube-web.py) */
.learn-sec .yt-play { max-width: 820px; }
.lesson-text { display: flex; flex-direction: column; height: 100%; box-sizing: border-box; }
.lesson-text .fine { margin: 10px 0 0; }
.lesson-watch, .lesson-new { margin: auto 0 0; padding-top: 14px; }
.yt-jump { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #ffffff0a; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; }
.yt-jump:hover, .yt-jump:focus-visible { border-color: var(--ember); }
.yt-jump span { color: var(--dim); font-weight: 500; font-variant-numeric: tabular-nums; }
.lesson-new { font-size: 13px; color: var(--gold); }
.yt-plain { position: absolute; inset: 0; background: radial-gradient(120% 90% at 30% 20%, #3a2470, #0c0a12 70%); }
.howto .yt-play { margin: 26px 0 6px; max-width: none; }

/* press kit (tools/make-press-kit.py) */
.press .eyebrow { margin-bottom: 6px; }
.press .lead { max-width: 46em; }
.press h2 { font-size: 26px; margin: 56px 0 16px; }
.press h3 { font-size: 17px; margin: 22px 0 6px; color: var(--text); }
.press .cta-row { margin: 22px 0 8px; }
.compare.facts { min-width: 0; }
.compare.facts th { width: 26%; color: var(--dim); font-weight: 600; vertical-align: top; }
.compare.facts td { color: var(--text); }
.press-copy { max-width: 46em; }
.press-copy h3:first-child { margin-top: 0; }
.press .plans { margin: 8px 0 14px; max-width: none; }
.press-feats { columns: 2; column-gap: 40px; }
.press-feats h3 { break-after: avoid; }
.press-feats ul { break-inside: avoid; margin: 0 0 8px; padding-left: 20px; }
.press-quote { margin: 0; padding: 22px 26px; border-left: 3px solid var(--ember); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; max-width: 46em; }
.press-quote p { color: var(--text); font: italic 20px/1.5 var(--serif); margin: 0 0 10px; }
.press-quote footer { color: var(--dim); font-size: 15px; }
.press-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.press-shots figure { margin: 0; }
.press-shots img { border-radius: 10px; border: 1px solid var(--line); width: 100%; height: auto; }
.press-shots figcaption { color: var(--dim2); font-size: 13px; margin-top: 6px; }
.press-logos { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.press-logos a { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.press-logos img { height: 110px; width: 100%; object-fit: contain; padding: 18px; }
.press-logos .on-light img { background: #f4f1fa; }
.press-logos span { padding: 10px 14px; font-size: 14px; color: var(--dim); border-top: 1px solid var(--line); }
@media (max-width: 900px) { .press-feats { columns: 1; } .press-shots { grid-template-columns: 1fr 1fr; } .press-logos { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .press-shots { grid-template-columns: 1fr; } }

/* Coming next: the roadmap on the homepage and the press page */
.roadmap { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.roadmap li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.roadmap li b { display: block; color: var(--text); margin-bottom: 4px; }
.roadmap li span { color: var(--dim); font-size: .95em; }
