/* burningbridgesaivideo.app — "ember & ink" theme.
   Same layout language as the reference site, deliberately different palette:
   paper-white ground, espresso-ink primary pills, muted ember-amber accents,
   dark footer band. Manrope for type. */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
	--bg: #f7f6f3;
	--bg-soft: #f0eeea;
	--bg-deep: #e9e6e0;
	--panel: #ffffff;
	--ink: #1b1713;
	--ink-hover: #2e2822;
	--muted: #6e675e;
	--accent: #b45309;
	--accent-deep: #92400e;
	--accent-tint: #fdf1e0;
	--ember: linear-gradient(135deg, #d97706, #b45309);
	--line: rgba(27, 23, 19, .12);
	--line-soft: rgba(27, 23, 19, .08);
	--ok: #1a7f4b;
	--err: #b3361a;
	--radius: 16px;
	--pill: 999px;
	--maxw: 1120px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
	background: var(--bg);
	color: var(--ink);
	font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", sans-serif;
	font-size: 16px;
	line-height: 1.6;
}
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; border-radius: 12px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.eyebrow {
	display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .16em;
	text-transform: uppercase; color: var(--accent);
}

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(247, 246, 243, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 20px; }
.logo { font-weight: 800; font-size: 16.5px; color: var(--ink); display: flex; align-items: center; gap: 9px; letter-spacing: -.01em; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--ember); display: flex; align-items: center; justify-content: center; flex: none; }
.logo-mark svg { width: 14px; height: 14px; fill: #fff; }
.nav-links { display: flex; gap: 22px; margin: 0 auto; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* Buttons — ink pills (primary), ghost, invert (on dark) */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 7px;
	border: 0; cursor: pointer; border-radius: var(--pill);
	padding: 10px 20px; font-size: 14.5px; font-weight: 700; font-family: inherit;
	background: var(--ink); color: #fff; text-decoration: none; line-height: 1.4;
	transition: background .15s;
}
.btn:hover { background: var(--ink-hover); text-decoration: none; }
.btn svg { width: 15px; height: 15px; fill: currentColor; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: rgba(27, 23, 19, .05); }
.btn.invert { background: #fff; color: var(--ink); }
.btn.invert:hover { background: var(--bg-soft); }
.btn.sm { padding: 8px 16px; font-size: 13.5px; }
.btn.lg { padding: 13px 26px; font-size: 15.5px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-play { background: transparent; color: var(--ink); border: 1px solid transparent; }
.btn-play:hover { background: rgba(27, 23, 19, .05); }
.btn-play svg { fill: none; stroke: currentColor; stroke-width: 1.8; }

/* Hero */
.hero { padding: 72px 0 36px; text-align: center; }
.hero h1 { font-size: clamp(40px, 6vw, 60px); font-weight: 800; line-height: 1.05; letter-spacing: -.04em; margin: 14px 0 0; }
.hero h1 .accent { background: var(--ember); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { color: var(--muted); font-size: 18px; max-width: 620px; margin: 20px auto 0; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.trust { margin-top: 16px; font-size: 13.5px; color: var(--muted); }

/* Stat cards */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 860px; margin: 40px auto 0; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; text-align: left; box-shadow: 0 1px 2px rgba(27, 23, 19, .04); }
.stat b { display: block; font-size: 15.5px; font-weight: 800; }
.stat span { color: var(--muted); font-size: 13.5px; }

/* Generator panel */
.gen-panel { max-width: 980px; margin: 44px auto 0; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 20px; box-shadow: 0 1px 2px rgba(27,19,16,.05), 0 16px 44px -20px rgba(27,19,16,.18); text-align: left; overflow: hidden; }
.gen-head { padding: 22px 26px; border-bottom: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.gen-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }
.gen-head .hint { color: var(--muted); font-size: 14px; max-width: 380px; }
.gen-body { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; }
.gen-form { padding: 24px 26px; border-right: 1px solid var(--line-soft); }
.gen-form .label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.dropzone {
	border: 1.5px dashed rgba(180, 83, 9, .45); border-radius: 14px; padding: 28px 16px;
	text-align: center; color: var(--muted); cursor: pointer; transition: border-color .15s, background .15s; background: var(--bg);
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-tint); }
.dropzone .dz-icon { width: 34px; height: 34px; margin: 0 auto 8px; border-radius: 50%; background: var(--accent-tint); display: flex; align-items: center; justify-content: center; }
.dropzone .dz-icon svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 1.8; }
.dropzone input { display: none; }
.dropzone .picked { color: var(--ok); font-size: 13.5px; margin-top: 8px; display: block; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
select {
	width: 100%; background: #fff; color: var(--ink); border: 1px solid var(--line);
	border-radius: 10px; padding: 10px 12px; font-size: 14px; font-family: inherit;
}
.credit-line { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted); margin: 10px 0; }
.credit-line b { color: var(--ink); font-weight: 700; }
.acct-status { font-size: 13px; color: var(--muted); margin: 8px 0 14px; }
.acct-status.ok { color: var(--ok); }
.gen-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.gen-result { margin-top: 14px; font-size: 14px; }
.gen-result .err { color: var(--err); }
.gen-result .ok { color: var(--ok); }
.gen-result a { margin-top: 10px; }
.gen-preview { padding: 24px 26px; background: linear-gradient(180deg, #fbf9f6, #f3efe8); display: flex; flex-direction: column; gap: 14px; }
.media-frame { background: #221c15; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; position: relative; display: flex; align-items: center; justify-content: center; }
.media-frame .ph { color: rgba(255,255,255,.72); font-size: 13.5px; text-align: center; padding: 12px; }
.media-frame .play { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; }
.media-frame .play svg { width: 16px; height: 16px; fill: #fff; margin-left: 2px; }
.media-cap { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.chips { display: flex; gap: 8px; }
.chip { font-size: 12.5px; font-weight: 600; border: 1px solid var(--line); border-radius: var(--pill); padding: 5px 12px; color: var(--muted); background: #fff; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Sections */
section { padding: 56px 0; }
.sec-head { text-align: center; margin-bottom: 34px; max-width: 640px; margin-left: auto; margin-right: auto; }
.sec-head h2 { font-size: clamp(26px, 3.6vw, 34px); font-weight: 800; letter-spacing: -.03em; margin-top: 10px; }
.sec-head p { color: var(--muted); margin-top: 10px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 22px; box-shadow: 0 1px 2px rgba(27, 23, 19, .04); }
.step .n { width: 30px; height: 30px; border-radius: 50%; background: var(--ember); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.step h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* Split 2-col */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split h2 { font-size: clamp(26px, 3.6vw, 34px); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; }
.split .lead { color: var(--muted); margin-top: 14px; }
.feat { display: flex; gap: 12px; margin-top: 18px; }
.feat .f-ic { width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--accent-tint); display: flex; align-items: center; justify-content: center; }
.feat .f-ic svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 1.8; }
.feat b { display: block; font-size: 15px; font-weight: 700; }
.feat p { color: var(--muted); font-size: 14px; }

/* Cards */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 22px; box-shadow: 0 1px 2px rgba(27, 23, 19, .04); }
.card h3 { font-size: 16px; font-weight: 700; margin-bottom: 7px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card .f-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-tint); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.card .f-ic svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 1.8; }
.sample .ph { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(45deg, #edeae4, #edeae4 14px, #f1efea 14px, #f1efea 28px); color: var(--muted); font-size: 13.5px; border-radius: 12px; padding: 12px; }
.sample img { width: 100%; display: block; border-radius: 12px; aspect-ratio: 16 / 9; object-fit: cover; }
.sample .cap { padding: 10px 4px 0; font-size: 13.5px; color: var(--muted); }
.sample .cap b { color: var(--ink); }

/* Tables (light) */
.table { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft); }
.table th, .table td { padding: 13px 16px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--line-soft); }
.table th { color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.table tr:last-child td { border-bottom: 0; }
.table .price { font-weight: 800; color: var(--accent-deep); }

/* Pricing cards */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.plan { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(27, 23, 19, .04); }
.plan.pop { border: 1.5px solid var(--accent); box-shadow: 0 12px 32px -16px rgba(180, 83, 9, .38); }
.plan .p-name { font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.plan .p-name .tag { font-size: 11px; background: var(--accent-tint); color: var(--accent-deep); border-radius: var(--pill); padding: 3px 9px; letter-spacing: 0; }
.plan .p-price { font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin: 10px 0 2px; }
.plan .p-price s { color: var(--muted); font-size: 15px; font-weight: 500; margin-left: 8px; }
.plan .p-credits { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.plan ul { list-style: none; margin-bottom: 18px; flex: 1; }
.plan li { font-size: 13.5px; color: var(--muted); padding: 4px 0 4px 20px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-tint); border: 1.5px solid var(--accent); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 16px 18px; font-weight: 700; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 20px; font-weight: 400; flex: none; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .a { padding: 0 18px 16px; color: var(--muted); font-size: 14.5px; }

/* Article pages */
.article { max-width: 760px; margin: 0 auto; }
.article h1 { font-size: clamp(30px, 4.6vw, 44px); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; margin: 8px 0 6px; }
.article .meta { color: var(--muted); font-size: 13.5px; margin-bottom: 22px; }
.article h2 { font-size: 23px; font-weight: 800; letter-spacing: -.02em; margin: 36px 0 12px; }
.article h3 { font-size: 17.5px; font-weight: 700; margin: 22px 0 8px; }
.article p, .article li { color: #443e36; font-size: 15.5px; margin-bottom: 10px; }
.article ul, .article ol { padding-left: 22px; margin-bottom: 12px; }
.article pre {
	background: #241d15; color: #f4ede1; border-radius: 12px;
	padding: 16px 18px; overflow-x: auto; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 13px; line-height: 1.6; margin: 12px 0 16px;
}
.article .note { background: var(--accent-tint); border: 1px solid rgba(180, 83, 9, .28); border-radius: 12px; padding: 13px 16px; font-size: 14px; color: var(--accent-deep); margin: 14px 0; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent-deep); }
.page-head { padding: 48px 0 8px; }

/* CTA band (dark) + footer (dark) */
.cta-band { text-align: center; padding: 64px 0; background: #201a14; }
.cta-band h2 { font-size: clamp(26px, 3.6vw, 34px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 8px; color: #fff; }
.cta-band p { color: #b5aca0; margin-bottom: 22px; }
footer { padding: 40px 0 46px; background: #201a14; color: #b5aca0; font-size: 13.5px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.foot-grid h4 { color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 10px; }
.foot-grid a { display: block; color: #b5aca0; margin-bottom: 7px; }
.foot-grid a:hover { color: #fff; }
.foot-grid p { color: #b5aca0; }
.copyright { margin-top: 26px; font-size: 12.5px; color: #877e72; border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; }

@media (max-width: 860px) {
	.gen-body { grid-template-columns: 1fr; }
	.gen-form { border-right: 0; border-bottom: 1px solid var(--line-soft); }
	.plans { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
	.steps, .grid3, .split, .row2, .foot-grid, .stats { grid-template-columns: 1fr; }
	.nav-links { display: none; }
	.hero { padding: 48px 0 26px; }
}

/* ---- Pay-per-generation paywall (opens in place when credits run short) ---- */
.paywall { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; background: rgba(27,23,19,.55); backdrop-filter: blur(3px); padding: 18px; }
.paywall[hidden] { display: none; }
.paywall-card { position: relative; width: min(540px, 100%); max-height: 92vh; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px 20px; box-shadow: 0 24px 60px rgba(27,23,19,.28); }
.paywall-close { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; background: transparent; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 50%; }
.paywall-close:hover { background: rgba(27,23,19,.06); color: var(--ink); }
.paywall-card h2 { font-size: 22px; margin: 0 0 6px; letter-spacing: -.01em; }
.paywall-sub { color: var(--muted); font-size: 14.5px; margin: 0 0 14px; }
.paywall-packs { display: grid; gap: 9px; margin: 0 0 14px; }
.pack-opt { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 12px; border: 1.5px solid var(--line); border-radius: 13px; padding: 12px 14px; cursor: pointer; background: #fff; transition: border-color .12s, background .12s; text-align: left; font-family: inherit; }
.pack-opt:hover { border-color: var(--accent); }
.pack-opt.sel { border-color: var(--accent); background: var(--accent-tint); }
.pack-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pack-name { font-weight: 700; font-size: 15px; color: var(--ink); }
.pack-price { font-weight: 800; font-size: 16px; color: var(--ink); }
.pack-per { grid-column: 2 / 4; color: var(--muted); font-size: 12.8px; }
.pack-tag { display: inline-block; margin-left: 7px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-deep); background: var(--accent-tint); border: 1px solid rgba(180,83,9,.25); border-radius: 999px; padding: 1.5px 8px; vertical-align: 1.5px; }
.paywall-cta { width: 100%; background: var(--ember); }
.paywall-cta:hover { filter: brightness(1.06); }
.paywall-foot { text-align: center; color: var(--muted); font-size: 12px; margin: 12px 0 0; }
@media (max-width: 560px) { .paywall-card { padding: 20px 16px 16px; } }

/* ---- Generator preview: real sample clip + before/after strip ---- */
.media-frame video { display: block; width: 100%; border-radius: 12px; background: #000; aspect-ratio: 16/9; object-fit: cover; }
.demo-strip { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.demo-strip figure { margin: 0; }
.demo-strip img, .demo-strip video { display: block; width: 100%; border-radius: 10px; border: 1px solid var(--line-soft); aspect-ratio: 16/10; object-fit: cover; background: #000; }
.demo-strip figcaption { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 5px; letter-spacing: .02em; }
.demo-arrow { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* ---- Sample clip sound toggle (muted autoplay, one tap to hear the track) ---- */
.media-frame { position: relative; }
.sound-toggle { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(27,23,19,.72); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(2px); }
.sound-toggle:hover { background: rgba(27,23,19,.9); }
.sound-toggle svg { width: 17px; height: 17px; fill: currentColor; }

/* Author styles (e.g. .btn's inline-flex) must never resurrect [hidden] elements. */
[hidden] { display: none !important; }
