/* PeakSense site. Same palette as the app's Dark theme: black first,
   green only on buttons and peaks. Flat surfaces, no glows. Motion is
   slow and filmic (the hero scene, a fade up as things come into view) and
   switches off for anyone who asks their system for less motion. */
@font-face { font-family: "Figtree"; src: url("fonts/Figtree-latin-var.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/Archivo-latin-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0f0d13;
  --panel: #19161f;
  --inset: #141118;
  --border: #2e2937;
  --text: #efebf6;
  --muted: #a59eb3;
  --green: #3be37a;
  --on-green: #0c0b10;
  --maxw: 1200px;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--text); text-decoration-color: color-mix(in srgb, var(--green) 70%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--green); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(36px, 6.4vw, 64px); font-weight: 800; font-stretch: 112%; letter-spacing: -0.015em; }
h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 750; font-stretch: 108%; }
h3 { font-size: 19px; font-weight: 700; font-stretch: 104%; }
p { margin: 0; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--green); color: var(--on-green); padding: 8px 14px; border-radius: 8px; font-weight: 700; z-index: 20; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--border); }
.section-head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 680px; }
.section-head p { color: var(--muted); font-size: 18px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 1px solid var(--border); backdrop-filter: blur(8px); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 26px; width: auto; display: block; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 6px 12px; font: inherit; cursor: pointer; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 20px 16px; }
  .nav-links a { padding: 10px 0; }
  .nav.open .nav-links { display: flex; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 10px; font: 600 16px/1.2 var(--body); text-decoration: none; border: 1px solid var(--border); color: var(--text); background: var(--panel); cursor: pointer; }
.btn:hover { border-color: var(--muted); color: var(--text); }
.btn-primary { background: var(--green); border-color: var(--green); color: var(--on-green); }
.btn-primary:hover { background: color-mix(in srgb, var(--green) 88%, white); color: var(--on-green); border-color: transparent; }
.nav-links .btn { min-height: 38px; padding: 7px 16px; font-size: 15px; color: var(--on-green); }

/* hero */
.hero { padding: 80px 0 64px; border-bottom: 1px solid var(--border); }
.hero .wrap { display: grid; gap: 40px; }
.hero-copy { display: grid; gap: 20px; max-width: 760px; }
.hero-copy .lede { font-size: 19px; color: var(--muted); max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.fine { font-size: 14px; color: var(--muted); }

/* VOD timeline */
.timeline { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px 18px; }
.tl-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.tl-head b { color: var(--text); font-weight: 600; }
.tl-plot { display: block; width: 100%; height: auto; }
.tl-axis { position: relative; height: 14px; font: 500 12px/1 var(--body); color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.tl-axis span { position: absolute; top: 0; }
.tl-axis span:not(:first-child):not(:last-child) { transform: translateX(-50%); }
.tl-clips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.tl-clip { background: var(--inset); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; display: grid; gap: 2px; }
.tl-clip .t { font: 600 13px/1.3 var(--body); color: var(--green); font-variant-numeric: tabular-nums; }
.tl-clip .w { font-size: 15px; }
@media (max-width: 640px) { .tl-clips { grid-template-columns: 1fr; } }

.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 15px; }
.facts li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: var(--green); margin-right: 10px; vertical-align: 2px; }

/* three things */
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.three article { display: grid; gap: 10px; align-content: start; }
.three p { color: var(--muted); }
.three a { font-weight: 600; font-size: 15px; }
@media (max-width: 820px) { .three { grid-template-columns: 1fr; gap: 32px; } }

/* why I built this (hidden until filled in) */
.why { display: grid; grid-template-columns: 96px 1fr; gap: 24px; align-items: start; max-width: 760px; }
.why img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.why blockquote { margin: 0; font-size: 20px; line-height: 1.55; }
.why .who { margin-top: 12px; color: var(--muted); font-size: 15px; }

/* real clips (hidden until filled in) */
.shorts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.shorts video { width: 100%; aspect-ratio: 9 / 16; background: var(--inset); border: 1px solid var(--border); border-radius: 12px; object-fit: cover; }
@media (max-width: 640px) { .shorts { grid-template-columns: 1fr 1fr; } }

/* feature groups */
.group { display: grid; grid-template-columns: 260px 1fr; gap: 40px; }
.group + .group { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--border); }
.group > header { display: grid; gap: 10px; align-content: start; }
.group > header p { color: var(--muted); }
.items { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.items div { display: grid; gap: 6px; align-content: start; }
.items h3 { font-size: 17px; }
.items p { color: var(--muted); font-size: 15px; }
.tag { display: inline-block; font: 600 11px/1 var(--body); letter-spacing: .04em; text-transform: uppercase; color: var(--green); border: 1px solid color-mix(in srgb, var(--green) 45%, transparent); border-radius: 5px; padding: 3px 6px; vertical-align: 2px; margin-left: 6px; }
@media (max-width: 820px) { .group { grid-template-columns: 1fr; gap: 20px; } .items { grid-template-columns: 1fr; } }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
thead th { font: 600 14px/1.3 var(--body); color: var(--muted); background: var(--panel); white-space: nowrap; }
tbody th { font-weight: 600; }
tr:last-child td, tr:last-child th { border-bottom: 0; }
/* Comparison tables: colour says who's ahead at a glance, and a mark says
   it without colour too (✓ yes, ✗ no). */
thead th.us { color: var(--green); }
td.us { font-weight: 600; background: color-mix(in srgb, var(--green) 6%, transparent); box-shadow: inset 3px 0 0 var(--green); }
td.yes { color: var(--green); }
td.no { color: #ff7a7a; }
td.partial { color: #ffc24d; }
td.na { color: var(--muted); }
td.us.yes, td.us { color: var(--green); }
td .sub { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--muted); line-height: 1.4; }
td.us .sub { color: color-mix(in srgb, var(--text) 70%, transparent); }
tbody tr:hover td, tbody tr:hover th { background-color: rgba(255,255,255,0.02); }
.note { font-size: 14px; color: var(--muted); margin-top: 14px; max-width: 820px; }

/* pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; margin: 0 auto; }
.plan { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 22px 24px; display: grid; gap: 16px; align-content: start; }
.plan.pro { border-color: color-mix(in srgb, var(--green) 55%, var(--border)); }
.price { font: 800 36px/1 var(--display); font-stretch: 110%; }
.price small { font: 500 16px var(--body); color: var(--muted); margin-left: 6px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan li { padding-left: 22px; position: relative; font-size: 15px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 9px; height: 5px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }
.faq details { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-bottom: 18px; }

/* launch list */
.notify { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 32px; display: grid; gap: 14px; max-width: 680px; }

/* footer */
footer { border-top: 1px solid var(--border); padding: 48px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
footer h2 { font: 600 14px/1.3 var(--body); color: var(--text); margin-bottom: 10px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 20px; }
@media (max-width: 760px) { footer .wrap { grid-template-columns: 1fr 1fr; } footer .wrap > :first-child { grid-column: 1 / -1; } }

/* Hero: copy on the left, the real app on the right */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 48px; align-items: center; }
.hero-grid h1 { font-size: clamp(34px, 4.2vw, 54px); }
.hero-shot { margin: 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--panel); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.hero-shot img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 640px) {
  table { font-size: 14px; }
  th, td { padding: 10px 10px; }
  tbody th, thead th:first-child { width: 34%; }
  thead th { white-space: normal; }
  td .sub { font-size: 12px; }
}

/* ---------- The opening scene (home) ----------
   A stream's activity line draws across a dark, letterboxed frame; its
   three peaks light up and a Short rises out of each. Pure HTML/CSS. */
.cine { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); background:
  radial-gradient(120% 90% at 50% 0%, #1d1826 0%, var(--bg) 62%); isolation: isolate; }
.cine::before { /* film grain */
  content: ""; position: absolute; inset: -50%; z-index: 3; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite; }
.cine::after { /* vignette */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(90% 80% at 50% 45%, transparent 55%, rgba(0,0,0,.65) 100%); }
@keyframes grain { 0% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); }
  60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,1%); } 100% { transform: translate(0,0); } }
.cine-bars { position: absolute; left: 0; right: 0; height: 0; background: #000; z-index: 4; animation: bars 1.4s cubic-bezier(.2,.7,.2,1) .1s forwards; }
.cine-bars.top { top: 0; } .cine-bars.bottom { bottom: 0; }
@keyframes bars { to { height: clamp(10px, 2.4vw, 26px); } }
.cine-backdrop { position: absolute; inset: -6%; z-index: 0; background: url("app-home.webp") center / cover no-repeat;
  opacity: .06; filter: blur(10px) saturate(.7); animation: pushin 26s ease-out forwards; }
@keyframes pushin { from { transform: scale(1.12) translateY(2%); } to { transform: scale(1.0) translateY(0); } }
.cine .wrap { position: relative; z-index: 5; display: grid; gap: 22px; justify-items: center; text-align: center;
  padding-top: clamp(64px, 9vw, 120px); padding-bottom: 0; }
.cine h1 { font-size: clamp(38px, 6vw, 76px); max-width: 20ch; }
.cine h1 .dim { color: var(--muted); }
.cine .lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 640px; }
.cine .hero-actions { justify-content: center; }
.cine-copy > * { opacity: 0; transform: translateY(14px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.cine-copy > :nth-child(1) { animation-delay: .35s; } .cine-copy > :nth-child(2) { animation-delay: .6s; }
.cine-copy > :nth-child(3) { animation-delay: .8s; } .cine-copy > :nth-child(4) { animation-delay: 1s; }
.cine-copy { display: grid; gap: 22px; justify-items: center; }
@keyframes rise { to { opacity: 1; transform: none; } }

.scene { position: relative; width: 100%; max-width: 1100px; aspect-ratio: 1100 / 520; margin-top: 20px; }
.scene svg { position: absolute; inset: auto 0 0 0; width: 100%; height: 40%; overflow: visible; }
.scene .line { fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 3.2s cubic-bezier(.45,.05,.3,1) 1.1s forwards; }
.scene .area { fill: var(--text); fill-opacity: 0; animation: fadein 1.4s ease 3.6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { fill-opacity: .05; } }
.peak { position: absolute; bottom: 0; width: 2px; height: calc(var(--pk) * 40%); background: var(--green); transform-origin: bottom; transform: scaleY(0);
  animation: peakup .5s ease-out forwards; }
.peak::after { content: ""; position: absolute; left: 50%; top: -6px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%;
  background: var(--green); border: 2px solid var(--bg); }
@keyframes peakup { to { transform: scaleY(1); } }
.short { position: absolute; bottom: 45%; width: clamp(68px, 12vw, 150px); aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--green) 40%, var(--border)); background: #0b0a0e; box-shadow: 0 30px 60px rgba(0,0,0,.6);
  opacity: 0; transform: translate(-50%, 40px) scale(.9); animation: shortup 1.1s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes shortup { to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
.short .cam { height: 34%; background: linear-gradient(160deg, #3a2f4d, #1b1724); border-bottom: 1px solid #000; }
.short .game { position: absolute; inset: 34% 0 0 0; background: linear-gradient(170deg, #1e3a2c 0%, #12241b 45%, #2b2140 100%); }
.short .game::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 18px, rgba(255,255,255,.025) 18px 19px);
  animation: pan 6s linear infinite; }
@keyframes pan { to { background-position: 120px 0; } }
.short .cap { position: absolute; left: 6%; right: 6%; top: 58%; font: 900 clamp(9px, 1.2vw, 15px)/1.05 var(--display); font-stretch: 112%;
  text-transform: uppercase; color: #fff; text-align: center; text-shadow: 0 2px 0 #000, 0 0 6px #000; }
.short .cap b { color: var(--green); }
.short .tm { position: absolute; left: 8px; top: 8px; font: 600 10px/1 var(--body); color: #fff; background: rgba(0,0,0,.55);
  border-radius: 4px; padding: 3px 5px; font-variant-numeric: tabular-nums; }
.cine .facts { justify-content: center; padding: 26px 0 clamp(40px, 5vw, 64px); }
@media (max-width: 640px) { .scene { aspect-ratio: 1100 / 900; } .scene svg { height: 30%; } .peak { height: calc(var(--pk) * 30%); } .short { bottom: 36%; } .short .tm { display: none; } }

/* ---------- Things fade up as they come into view (site.js adds .in) ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- The app, on a slow tilt into view ---------- */
.stage { perspective: 1600px; }
.stage-shot { margin: 0; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--panel);
  box-shadow: 0 40px 90px rgba(0,0,0,.55); transform: rotateX(14deg) scale(.94); transform-origin: 50% 0;
  transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.stage-shot.in { transform: none; }
.stage-shot img { display: block; width: 100%; height: auto; }
.stage figcaption { text-align: center; color: var(--muted); font-size: 15px; margin-top: 18px; }

/* ---------- Everything after the stream (home tiles) ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { display: grid; grid-template-rows: auto 1fr; background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; text-decoration: none; color: var(--text); transition: border-color .2s, transform .3s; }
.tile:hover { border-color: color-mix(in srgb, var(--green) 45%, var(--border)); transform: translateY(-3px); color: var(--text); }
.tile .ph { aspect-ratio: 16 / 9; background: var(--inset); border-bottom: 1px solid var(--border); overflow: hidden; }
.tile .ph img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; transition: transform 1.2s ease; }
.tile:hover .ph img { transform: scale(1.04); }
.tile .tx { padding: 18px 20px 20px; display: grid; gap: 6px; align-content: start; }
.tile .tx p { color: var(--muted); font-size: 15px; }
.tile .ph.pending { display: none; }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tiles { grid-template-columns: 1fr; } }

/* ---------- One night, start to finish ---------- */
.night { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: n; position: relative; }
.night::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 1px; background: var(--border); }
.night li { list-style: none; position: relative; padding: 36px 20px 0 0; display: grid; gap: 6px; align-content: start; }
.night li::before { content: ""; position: absolute; top: 7px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--bg);
  border: 2px solid var(--green); }
.night .when { font: 600 13px/1.3 var(--body); color: var(--green); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.night p { color: var(--muted); font-size: 15px; }
.night { padding: 0; margin: 0; }
@media (max-width: 820px) { .night { grid-template-columns: 1fr 1fr; row-gap: 28px; } .night::before { display: none; } }
@media (max-width: 520px) { .night { grid-template-columns: 1fr; } }

/* ---------- Feature scenes: words on one side, the app on the other ---------- */
.chapter { padding-top: 24px; }
.chapter + .chapter { margin-top: 72px; padding-top: 72px; border-top: 1px solid var(--border); }
.chapter > header { display: grid; gap: 10px; max-width: 680px; margin-bottom: 44px; }
.chapter > header .kicker { font: 600 13px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.chapter > header p { color: var(--muted); font-size: 18px; }
.scene-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.scene-row + .scene-row { margin-top: 64px; }
.scene-row.flip > .copy { order: 2; }
.scene-row .copy { display: grid; gap: 12px; align-content: start; }
.scene-row .copy p { color: var(--muted); }
.scene-row ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.scene-row li { padding-left: 20px; position: relative; font-size: 15px; }
.scene-row li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 2px; background: var(--green); }
.shot { margin: 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--panel);
  box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.shot img { display: block; width: 100%; height: auto; transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
.shot:hover img { transform: scale(1.025); }
.shot.tall { max-width: 360px; justify-self: center; }
/* A screenshot that isn't there yet: the words take the row (add ?shots to
   the address to see where each one goes). */
.shot.pending { display: none; }
.scene-row:has(.shot.pending) { grid-template-columns: minmax(0, 1fr); }
.show-shots .shot.pending, .show-shots .tile .ph.pending { display: grid; place-items: center; aspect-ratio: 16 / 10; border: 1px dashed var(--muted);
  background: var(--inset); color: var(--muted); font: 600 14px/1.4 var(--body); padding: 20px; text-align: center; }
.show-shots .shot.pending::after, .show-shots .tile .ph.pending::after { content: attr(data-shot); }
.show-shots .shot.pending img, .show-shots .tile .ph.pending img { display: none; }
.show-shots .scene-row:has(.shot.pending) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 28px; margin-top: 24px; }
.minis div { display: grid; gap: 4px; align-content: start; }
.minis h3 { font-size: 16px; }
.minis p { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) {
  .scene-row, .show-shots .scene-row:has(.shot.pending) { grid-template-columns: 1fr; gap: 24px; }
  .scene-row.flip > .copy { order: 0; }
  .minis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .minis { grid-template-columns: 1fr; } }
.chapter-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chapter-nav a { text-decoration: none; font-size: 14px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; }
.chapter-nav a:hover { color: var(--text); border-color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .cine::before, .cine-backdrop, .short .game::before { animation: none; }
  .cine-bars { animation: none; height: clamp(10px, 2.4vw, 26px); }
  .cine-copy > *, .short { animation: none; opacity: 1; transform: translate(-50%, 0); }
  .cine-copy > * { transform: none; }
  .scene .line { animation: none; stroke-dashoffset: 0; }
  .scene .area { animation: none; fill-opacity: .05; }
  .peak { animation: none; transform: none; }
  .reveal, .stage-shot { opacity: 1; transform: none; transition: none; }
  .tile, .tile .ph img, .shot img { transition: none; }
}

/* Features: the page's opening with the app beside it (no empty half). */
.page-hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: center; margin-bottom: 24px; }
.page-hero .section-head { margin-bottom: 0; }
.page-hero-shot { margin: 0; }
@media (max-width: 900px) { .page-hero { grid-template-columns: 1fr; } }
/* Pictures that are tall or close to square stay a sensible size. */
.shot.narrow { max-width: 460px; justify-self: center; width: 100%; }
/* Home: a link to the rest under each big feature. */
.scene-row .more { font-weight: 600; text-decoration: none; color: var(--green); margin-top: 4px; }
.scene-row .more::after { content: " \2192"; }
.more-all { margin-top: 56px; text-align: center; }
/* FAQ and Pro: centred. */
.head-center { margin-left: auto; margin-right: auto; text-align: center; }

/* Comparison on a phone: the row names stay put while the apps scroll. */
.swipe-hint { display: none; color: var(--muted); font-size: 14px; margin: 0 0 8px; }
@media (max-width: 760px) {
  .swipe-hint { display: block; }
  .wide-table table { min-width: 640px; font-size: 14px; }
  .wide-table tbody th, .wide-table thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--panel); min-width: 120px; box-shadow: 1px 0 0 var(--border); }
}

/* Features: each part's smaller items folded under one line. */
.more-box { margin-top: 48px; border-top: 1px solid var(--border); padding-top: 20px; }
.more-box > summary { cursor: pointer; list-style: none; font-weight: 600; color: var(--green); display: inline-flex; align-items: center; gap: 8px; }
.more-box > summary::-webkit-details-marker { display: none; }
.more-box > summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid currentColor; border-radius: 6px; font-weight: 400; line-height: 1; }
.more-box[open] > summary::before { content: "\2212"; }
.scene-row + .scene-row { margin-top: 48px; }

/* Calmer pages: the pictures smaller and the words wider, a little less of everything. */
.scene-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.scene-row + .scene-row { margin-top: 44px; }
.scene-row > .shot { max-width: 480px; width: 100%; justify-self: center; box-shadow: 0 12px 32px rgba(0,0,0,.35); }
.scene-row > .shot.narrow { max-width: 340px; }
.scene-row > .shot.tall { max-width: 220px; }
.scene-row .copy p { font-size: 17px; }
.chapter + .chapter { margin-top: 56px; padding-top: 56px; }
.chapter > header { margin-bottom: 32px; }
.stage-shot { max-width: 960px; margin-left: auto; margin-right: auto; }
.page-hero-shot { max-width: 520px; justify-self: end; }
@media (max-width: 900px) { .scene-row > .shot { max-width: 420px; } .page-hero-shot { justify-self: center; } }
