/* Store home and product pages (site/index.html, site/<product>/), built by tools/build_docs.py on top of site.css. */
.wide { max-width: 1080px; }
.top.wide { max-width: 1080px; }
.landing main { padding-bottom: 24px; }
.top nav { align-items: center; flex-wrap: wrap; }
.nav-cta { color: var(--accent) !important; font-weight: 700; }

.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 700; color: var(--accent); margin: 0 0 10px; }
.small { font-size: 14px; color: var(--muted); }
.center { text-align: center; justify-content: center; }
.btn { transition: transform .12s ease, filter .12s ease; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn.ghost, .buttons .btn.ghost { background: transparent; color: var(--text); border: 2px solid var(--line); }
.btn.ghost:hover { border-color: var(--text); }
.buttons .btn:first-child:not(.ghost) { background: var(--accent); color: var(--accent-ink); border: 0; }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 40px 0 24px; }
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.03; letter-spacing: -0.025em; margin: 0 0 18px; }
.hero h1 em { font-style: normal; display: block; color: var(--accent); }
.hero .lead { font-size: 19px; margin: 0 0 22px; }
.hero .buttons { margin: 0 0 10px; }

/* hero illustration: a finished stream becoming clips (same art as the Gumroad cover) */
.hero-art { position: relative; height: 470px; border-radius: 28px; overflow: hidden;
  background: radial-gradient(600px 400px at 78% 90%, rgba(255,154,85,.45), transparent 60%),
              linear-gradient(160deg, #1b1240 0%, #3b1b55 45%, #8e2f7a 80%, #d9485f 100%); color: #fff; }
.hero-art .ended { position: absolute; left: 50%; top: 22px; transform: translateX(-50%); width: 300px; background: rgba(13,13,18,.86);
  border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 12px 16px; box-shadow: 0 16px 40px rgba(10,4,30,.45); }
.hero-art .row { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; }
.hero-art .dot { width: 11px; height: 11px; border-radius: 50%; background: #8a8f9c; flex: none; }
.hero-art .meta { font-size: 14px; color: rgba(255,255,255,.66); margin-top: 3px; padding-left: 21px; }
.hero-art .arrow { position: absolute; left: 50%; top: 104px; transform: translateX(-50%); width: 3px; height: 32px; background: linear-gradient(rgba(255,179,107,.2), #ffb36b); }
.hero-art .arrow::after { content: ""; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); border: 8px solid transparent; border-top: 10px solid #ffb36b; border-bottom: 0; }
.hero-art .clips { position: absolute; left: 0; right: 0; top: 150px; height: 300px; }
.hero-art .clip { position: absolute; top: 22px; width: 150px; height: 266px; border-radius: 20px; background: #0d0d12; padding: 6px; box-shadow: 0 20px 50px rgba(10,4,30,.55); }
.hero-art .clip.l { left: calc(50% - 205px); transform: rotate(-9deg); top: 38px; }
.hero-art .clip.r { right: calc(50% - 205px); transform: rotate(9deg); top: 38px; }
.hero-art .clip.m { left: 50%; transform: translateX(-50%); top: 0; width: 164px; height: 292px; z-index: 2; }
.hero-art .screen { width: 100%; height: 100%; border-radius: 15px; overflow: hidden; display: flex; flex-direction: column; position: relative; }
.hero-art .cam { height: 38%; background: radial-gradient(34px 40px at 50% 64%, #f2c39b 0 58%, transparent 60%), radial-gradient(60px 46px at 50% 122%, var(--shirt, #4a6cf0) 0 70%, transparent 72%), linear-gradient(#2b2f4a, #1b1e30); }
.hero-art .game { flex: 1; background: var(--game, linear-gradient(180deg, #2d8a6a 0%, #1f5f63 40%, #12304a 100%)); position: relative; }
.hero-art .game::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: repeating-linear-gradient(100deg, rgba(255,255,255,.07) 0 14px, transparent 14px 32px); }
.hero-art .cap { position: absolute; left: 8px; right: 8px; top: 52%; text-align: center; font-weight: 800; font-size: 16px; line-height: 1.15; text-shadow: 0 2px 0 #000, 0 0 4px #000, 2px 0 0 #000, -2px 0 0 #000, 0 -2px 0 #000; }
.hero-art .l .cap { right: 48px; font-size: 13px; }
.hero-art .r .cap { left: 48px; font-size: 13px; }
.hero-art .cap b { color: #ffd23f; }
.hero-art .ready { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 3; white-space: nowrap; background: #fff; color: #17181a; font-weight: 800; font-size: 16px; padding: 9px 16px; border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,.35); display: flex; align-items: center; gap: 8px; }
.hero-art .ready i { width: 18px; height: 18px; border-radius: 50%; background: #22a06b; position: relative; flex: none; }
.hero-art .ready i::after { content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* sections */
.block { padding: 48px 0 8px; }
.block > h2, .cta h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.015em; line-height: 1.1; margin: 0 0 22px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; margin-bottom: 10px; }
.steps h3, .features h3, .plan h3 { margin: 0 0 6px; font-size: 18px; }
.steps p, .features p { margin: 0; color: var(--muted); font-size: 15px; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.features > div { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.demo { margin: 8px 0 0; }
.demo video, .demo iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 20px; background: #000; }

.compare-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; font-size: 15px; min-width: 520px; }
.compare th, .compare td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { background: var(--surface-2); font-size: 14px; }
.compare td:nth-child(2) { font-weight: 700; }
.compare thead th:nth-child(2) { color: var(--accent); }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 18px; justify-content: center; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; }
.plan.best { border: 2px solid var(--accent); }
.plan .price { font-size: 40px; font-weight: 800; margin: 4px 0 8px; letter-spacing: -0.02em; }
.plan .price span { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { padding-left: 20px; margin: 0 0 20px; flex: 1; }
.plan li + li { margin-top: 4px; }
.plan .btn { text-align: center; }

.qa details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin-bottom: 10px; }
.qa summary { cursor: pointer; font-weight: 700; }
.qa p { margin: 8px 0 0; color: var(--muted); }
.help-links { color: var(--muted); font-size: 15px; }
.cta { text-align: center; margin: 48px 0 8px; padding: 40px 20px; border-radius: 24px;
  background: linear-gradient(160deg, #1b1240 0%, #3b1b55 50%, #8e2f7a 100%); color: #fff; }
.cta .btn.ghost { color: #fff; border-color: rgba(255,255,255,.4); }

/* store home */
.store-hero { padding: 48px 0 12px; max-width: 720px; }
.store-hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.05; letter-spacing: -0.025em; margin: 0 0 14px; }
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.product img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.product .body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product h2 { margin: 0; font-size: 24px; }
.product p { margin: 0; color: var(--muted); }
.product .buttons { margin-top: auto; }
.product.soon { border-style: dashed; justify-content: center; text-align: center; padding: 28px; }
.product.soon p { margin: 6px auto 16px; max-width: 320px; }

.site-foot { max-width: 1080px; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 20px; }
  .hero-art { height: 430px; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .plans, .products { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
  .compare { min-width: 0; font-size: 13px; }
  .compare th, .compare td { padding: 9px 8px; }
  .top nav a:not(.nav-cta) { display: none; }
  .hero-art { height: 400px; }
  .hero-art .clip.l { left: calc(50% - 170px); }
  .hero-art .clip.r { right: calc(50% - 170px); }
  .hero-art .ended { width: 260px; }
}
