/* The home page. Tokens and components come from ui.css. */
.announce { background: var(--ink); color: #fff; text-align: center; font-size: 13.5px; font-weight: 600; padding: 9px 16px; }
.mark { background: linear-gradient(transparent 62%, rgba(34,197,94,.35) 62%); }
.ico { width: 20px; height: 20px; display: block; }

/* ── hero: the pitch and one prompt bar inside a framed panel, then covers of real outputs ── */
.hero { padding: 20px 20px 0; }
.hero-frame { position: relative; max-width: 1240px; margin: 0 auto; padding: 84px 32px 64px; border: 1px solid var(--line); border-bottom: 0; border-radius: 32px 32px 0 0; overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(34,197,94,.13), transparent 70%),
    linear-gradient(var(--bg), var(--bg)); }
.hero-frame::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(17,17,19,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(17,17,19,.045) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000, transparent 75%); mask-image: radial-gradient(70% 60% at 50% 20%, #000, transparent 75%); }
.hero-copy { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.6vw, 68px); font-weight: 700; letter-spacing: -.045em; line-height: 1.02; margin: 0 0 20px; }
.hero h1 .soft { background: linear-gradient(90deg, #15803d, #22c55e 55%, #65a30d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(16px, 1.5vw, 18.5px); color: var(--muted); max-width: 560px; margin: 0 0 34px; }

.starter { display: flex; align-items: center; gap: 4px; width: 100%; max-width: 680px; padding: 6px; background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; box-shadow: 0 1px 2px rgba(17,17,19,.04), 0 12px 32px rgba(17,17,19,.08); transition: border-color .15s, box-shadow .15s; }
.starter:focus-within { border-color: #b5b5ad; box-shadow: 0 1px 2px rgba(17,17,19,.04), 0 12px 32px rgba(17,17,19,.1), 0 0 0 4px rgba(34,197,94,.12); }
.st-niche { height: 48px; border: 0; background: none; outline: none; font-size: 15px; }
.st-niche { flex: 1 1 260px; padding: 0 46px 0 18px; font-weight: 700; border-right: 1px solid var(--line); border-radius: 0; cursor: pointer; appearance: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23111113' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 18px center / 15px; }
.starter .btn { flex: 0 0 auto; height: 48px; padding: 0 22px; }
.ticks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; list-style: none; padding: 0; margin: 20px 0 0; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.ticks li::before { content: '✓'; color: var(--accent); font-weight: 800; margin-right: 6px; }

/* covers: a still from the video and its title, like a Reels cover */
.covers { position: relative; display: grid; gap: 22px; margin: 64px -32px 0; padding: 6px 0 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee { overflow: hidden; padding: 6px 0 2px; }
.track { display: flex; gap: 18px; width: max-content; animation: drift var(--dur, 60s) linear infinite; }
.marquee.right .track { animation-direction: reverse; }
.marquee:hover .track, .marquee:focus-within .track { animation-play-state: paused; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 9px)); } }
.cover-item { flex: 0 0 196px; }
@media (prefers-reduced-motion: reduce) {
  .track { animation: none; }
  .marquee { overflow-x: auto; scrollbar-width: none; }
  .cover-item[aria-hidden="true"] { display: none; }
}
.cover-item { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cover { position: relative; display: block; width: 100%; padding: 0; border: 0; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #111; cursor: pointer; text-align: left; color: #fff;
  box-shadow: 0 1px 2px rgba(17,17,19,.06), 0 14px 34px rgba(17,17,19,.14); transition: transform .2s, box-shadow .2s; }
.cover:hover { transform: translateY(-5px); box-shadow: 0 1px 2px rgba(17,17,19,.06), 0 22px 44px rgba(17,17,19,.22); }
.cover:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cover:hover img { transform: scale(1.04); }
.cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(0,0,0,.55) 58%, rgba(0,0,0,.92) 100%); }
.cover-title { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 16px; font-size: clamp(15px, 1.45vw, 19px); font-weight: 800; line-height: 1.12; letter-spacing: -.015em; text-wrap: balance;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.cover-play { position: absolute; z-index: 1; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.22); backdrop-filter: blur(8px); transition: background .2s, transform .2s; }
.cover-play .ico { width: 14px; height: 14px; margin-left: 2px; }
.cover:hover .cover-play { background: var(--accent-2); color: var(--accent-ink); transform: scale(1.08); }
.cover-meta { display: flex; flex-direction: column; gap: 1px; padding: 0 4px; font-size: 14px; line-height: 1.3; }
.cover-meta b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cover-meta span { color: var(--muted); white-space: nowrap; font-size: 13px; }

/* ── the video popup: the video, its price, a sign-up ── */
body.pop-open { overflow: hidden; }
.vpop { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 24px; background: rgba(17,17,19,.6); backdrop-filter: blur(6px); }
.vpop-card { position: relative; display: grid; grid-template-columns: auto 360px; max-height: calc(100dvh - 48px); background: var(--card); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); }
.vpop-media { background: #000; display: grid; }
.vpop-media video { height: min(calc(100dvh - 48px), 720px); aspect-ratio: 9 / 16; width: auto; max-width: 100%; object-fit: contain; background: #000; }
.vpop-info { display: flex; flex-direction: column; gap: 10px; padding: 34px 28px 26px; overflow-y: auto; }
.vpop-niche { font-size: 14px; font-weight: 700; color: var(--accent); }
.vpop-title { font-size: 22px; line-height: 1.2; margin: 0 0 8px; padding-right: 24px; }
.vpop-price { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.vpop-price > div { display: flex; flex-direction: column; gap: 2px; padding: 16px; }
.vpop-price > div + div { border-left: 1px solid var(--line); background: var(--accent-soft); }
.vpop-price b { white-space: nowrap; font-size: 24px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.vpop-price > div > span { font-size: 13px; color: var(--muted); }
.vpop-list { list-style: none; padding: 14px 0 0; margin: 4px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.vpop-list li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 8px; }
.vpop-price > div + div > span { color: #166534; }
.vpop-base { margin: 0; }
.vpop-free { margin: auto 0 4px; padding-top: 12px; font-weight: 600; font-size: 15px; }
.vpop-go { width: 100%; }
.vpop .muted.small { margin: 4px 0 0; }
.vpop-x { position: absolute; z-index: 2; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--soft); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; }
.vpop-x:hover { background: var(--line-2); }
.vpop-x .ico { width: 18px; height: 18px; }

/* ── the rest of the page ── */
.section { padding: 84px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.sec-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin-bottom: 12px; text-wrap: balance; }
.wrap.narrow { max-width: 780px; }

.thumb { flex: 0 0 auto; display: block; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 9px; background: var(--soft); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step .n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--accent-soft); color: #166534; font-weight: 800; margin-bottom: 14px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 46px; }
.why h3 { font-size: 18px; margin-bottom: 8px; }

.niche-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 1080px; margin: 0 auto; }
.niche-row { display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 10px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-align: left; cursor: pointer; min-width: 0; transition: border-color .15s, box-shadow .15s, transform .15s; }
.niche-row:hover { border-color: var(--ink); box-shadow: var(--shadow); transform: translateY(-2px); }
.niche-row img { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: var(--soft); }
.nr-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.nr-txt b { font-size: 15px; }
.nr-txt span { font-size: 13px; color: var(--muted); line-height: 1.35; }
.nr-price { flex: 0 0 auto; font-size: 12.5px; color: var(--muted); text-align: right; white-space: nowrap; }
.nr-price b { display: block; font-size: 15px; color: var(--ink); }

.ladder { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -8px 0 26px; }
.ladder span { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); }
.ladder span b { color: var(--accent); }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 980px; margin: 0 auto 18px; }
.tier { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 20px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.tier.top { border: 2px solid var(--ink); }
.tier .ribbon { position: absolute; top: -12px; right: 18px; background: var(--accent-2); color: var(--accent-ink); font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.tier .price { font-size: 38px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.tier .credits { font-weight: 800; font-size: 15px; }
.tier .credits s { color: var(--muted); font-weight: 600; margin-right: 6px; }
.tier ul { list-style: none; padding: 0; margin: 6px 0 14px; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); }
.tier li::before { content: '✓'; color: var(--accent); font-weight: 800; margin-right: 8px; }
.tier .btn { margin-top: auto; }

.aff { display: flex; align-items: center; justify-content: space-between; gap: 28px; background: var(--ink); color: #fff; border: 0; }
.aff .muted { color: #b4b4bb; }
.aff h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 10px; }
.aff .btn-dark { background: var(--accent-2); color: var(--accent-ink); }

.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: '+'; font-size: 20px; color: var(--muted); }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 0 0 16px; color: var(--ink-2); }

.final { padding: 90px 0; }
.final h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 10px; }
.final .btn { margin-top: 20px; }

.foot { border-top: 1px solid var(--line); padding: 30px 0; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; justify-content: space-between; }
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }
.foot nav a { text-decoration: none; color: var(--ink-2); }

.modal-title { font-size: 24px; margin-bottom: 6px; padding-right: 30px; }
.chosen { display: flex; align-items: center; gap: 10px; margin: 16px 0; padding: 10px 12px; border-radius: 12px; background: var(--soft); font-size: 14px; font-weight: 600; }
.chosen select { margin-left: auto; height: 34px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; padding: 0 8px; font-weight: 600; }

/* price per video, by niche */
.niche-pricing { max-width: 820px; margin: 46px auto 0; }
.np-head { text-align: center; margin-bottom: 16px; } .np-head h3 { font-size: 22px; margin-bottom: 4px; }
.price-table td { padding: 8px 12px; }
.price-table .pn { display: flex; align-items: center; gap: 12px; }
.price-table .pn .thumb { width: 30px; border-radius: 7px; }
.price-table .pn > span { display: flex; flex-direction: column; line-height: 1.25; }
.price-table small { color: var(--muted); font-size: 12px; }

@media (max-width: 1100px) {
  .niche-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero-frame { padding: 56px 20px 44px; }
  .covers { margin-left: -20px; margin-right: -20px; }
  .steps, .why { grid-template-columns: 1fr; }
  .aff { flex-direction: column; align-items: flex-start; }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .starter { flex-direction: column; align-items: stretch; border-radius: 22px; padding: 8px; gap: 4px; }
  .st-niche { flex: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .starter .btn { width: 100%; }
  .vpop { padding: 0; place-items: end center; }
  .vpop-card { grid-template-columns: 1fr; width: 100%; max-height: 100dvh; border-radius: 22px 22px 0 0; overflow-y: auto; }
  .vpop-media video { height: 46dvh; width: 100%; }
  .vpop-go { position: sticky; bottom: 12px; z-index: 1; box-shadow: 0 8px 24px rgba(17,17,19,.25); }
  .vpop-info { overflow: visible; padding: 22px 20px 24px; }
  .vpop-x { background: rgba(255,255,255,.9); }
}
@media (max-width: 520px) {
  .hero { padding: 10px 10px 0; }
  .hero-frame { padding: 44px 14px 36px; border-radius: 24px 24px 0 0; }
  .tiers { grid-template-columns: 1fr; }
  .niche-list { grid-template-columns: 1fr; }
  .covers { margin: 40px -14px 0; gap: 16px; }
  .cover-item { flex-basis: 150px; }
  .track { gap: 12px; }
  @keyframes drift { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 6px)); } }
  .cover { border-radius: 14px; }
  .cover-title { font-size: 15px; left: 11px; right: 11px; bottom: 12px; }
  .cover-meta { font-size: 13px; }
  .section { padding: 60px 0; }
}

/* the home page's links to the other pages */
.explore { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.explore-card { display: flex; flex-direction: column; gap: 8px; padding: 26px; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
.explore-card:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.explore-card h3 { font-size: 21px; }
.explore-card p { margin: 0 0 6px; }
.explore-card > span { margin-top: auto; font-weight: 700; color: var(--accent); }
.final-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.final-actions .btn { margin-top: 0; }
@media (max-width: 860px) { .explore { grid-template-columns: 1fr; } }
