/* Steerify story: the pixel film. Pairs with story.js; uses the site's variables. */
.story { margin-top: 36px; max-width: 960px }
.st-stage { position: relative; border: 1px solid var(--line); border-radius: 14px; background: #07080a; overflow: hidden }
.st-stage canvas { display: block; width: 100%; height: auto; image-rendering: crisp-edges; image-rendering: pixelated; cursor: pointer }
.st-play { position: absolute; top: 12px; right: 12px; font: 700 10px/1 var(--f-pix); letter-spacing: .06em; color: var(--mute); background: rgba(7, 8, 10, .7); border: 1px solid var(--line2); border-radius: 6px; padding: 7px 9px; cursor: pointer }
.st-play:hover, .st-play:focus-visible { color: var(--cream); border-color: var(--cream) }
.st-cap { display: flex; gap: 20px; align-items: flex-start; margin-top: 22px; min-height: 92px }
.st-num { font: 700 34px/1 var(--f-pix); color: var(--amber); flex: none; padding-top: 2px }
.st-cap h3 { font: 700 clamp(22px, 2.6vw, 30px)/1.1 var(--f-sans); letter-spacing: -.02em }
.st-cap p { margin: 8px 0 0; color: #c8c2b3; font-size: clamp(16px, 1.6vw, 19px); max-width: 640px }
.st-rail { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px }
.st-rail button { position: relative; overflow: hidden; width: 100%; display: flex; flex-direction: column; gap: 6px; text-align: left; font: 700 11px/1 var(--f-pix); letter-spacing: .04em; text-transform: uppercase; color: var(--mute); background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 10px 12px; cursor: pointer }
.st-rail button b { font-size: 10px; color: var(--line2) }
.st-rail button::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--p, 0) * 100%); background: var(--amber) }
.st-rail button.past { color: #b9b3a4 } .st-rail button.past b { color: var(--green) } .st-rail button.past::after { width: 100%; background: var(--green); opacity: .55 }
.st-rail button.on { color: var(--cream); border-color: var(--line2) } .st-rail button.on b { color: var(--amber) }
.st-rail button:hover { border-color: var(--cream) }
@media (max-width: 900px) { .st-rail { grid-template-columns: repeat(4, minmax(0, 1fr)) } .st-cap { min-height: 120px } }
/* Single looping scenes on the scrolling page */
.st-hero { margin-top: 48px }
.st-fin { max-width: 760px; margin: 0 auto 28px }
.mv .st-stage { box-shadow: 0 40px 90px -50px #000 }
/* Under the hood */
.tech { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; font-size: 15.5px; color: #c8c2b3 }
.tech b { color: var(--cream) }
.tech code, .mv p code { font: 13px var(--f-mono); color: var(--amber) }
.maconly { display: inline-block; width: 25px; height: 14px; vertical-align: -2px; margin-right: 8px }
.maconly svg { width: 100%; height: 100%; display: block }
/* The problem: 9, 19, 99 */
.problem .big s { color: var(--mute); text-decoration-color: #ff5a36; text-decoration-thickness: .12em }
.st-crowd { margin-top: 36px; max-width: 820px }
/* Download + GitHub */
.ghlinks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px }
.ghlinks a { font: 700 13px var(--f-pix); letter-spacing: .04em; color: var(--cream); text-decoration: none }
.ghlinks a:hover { color: var(--amber) }
.ghlinks span { display: block; font-size: 13.5px; color: var(--mute); margin-top: 4px }
.ghlinks b, .btn b[data-stars] { margin-left: 8px; color: var(--amber) }
.starpix { width: 12px; height: 12px; display: inline-block; color: var(--amber) } .starpix svg { width: 100%; height: 100%; display: block }
.brewbox { margin-top: 18px; border: 1px solid var(--line2); border-radius: 10px; background: #050607; overflow: hidden; max-width: 560px }
.bb-top { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--line); font: 700 10px var(--f-pix); letter-spacing: .08em; color: var(--mute) }
.bb-copy { font: 700 10px var(--f-pix); letter-spacing: .08em; color: #1a1200; background: var(--amber); border: 0; border-radius: 5px; padding: 6px 9px; cursor: pointer }
.bb-copy:hover { filter: brightness(1.08) }
.brewbox pre { margin: 0; padding: 12px 14px; overflow-x: auto; font: 12.5px/1.7 var(--f-mono); color: var(--cream) }
.brewbox pre i { font-style: normal; color: var(--amber); user-select: none; margin-right: 8px }
/* The real app: screenshot gallery (gallery.js). Without JS the figures simply stack. */
.gal { margin: 36px auto 0; max-width: 1000px }
.gal figure { margin: 0; border: 1px solid #2c3038; border-radius: 12px; overflow: hidden; background: var(--panel); box-shadow: 0 40px 90px -40px #000 }
.gal figure + figure { margin-top: 18px }
.gal figure a { display: block; cursor: zoom-in }
.gal figure img { display: block; width: 100%; height: auto }
.gal figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 16px; font-size: 15px; color: var(--mute) }
.gal figcaption b { color: var(--cream) }
.gal figcaption i { font: 12px var(--f-mono); font-style: normal; white-space: nowrap }
.gal-on .gal-stage { position: relative }
.gal-on figure + figure { margin-top: 0 }
.gal-on figure:not([hidden]) { animation: gal-in .25s ease-out }
@keyframes gal-in { from { opacity: .35 } to { opacity: 1 } }
.gal-nav { position: absolute; top: calc(50% - 48px); z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(7, 8, 10, .86); color: var(--cream); font: 700 16px/1 var(--f-pix); cursor: pointer }
.gal-nav:hover, .gal-nav:focus-visible { background: var(--amber); border-color: var(--amber); color: #1a1200 }
.gal-nav.prev { left: -23px } .gal-nav.next { right: -23px }
.gal-thumbs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-top: 14px }
.gal-thumbs button { padding: 0; text-align: left; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--bg2); color: var(--mute); cursor: pointer }
.gal-thumbs img { display: block; width: 100%; height: auto; aspect-ratio: 1600 / 1043; object-fit: cover; opacity: .55 }
.gal-thumbs span { display: block; padding: 8px 9px 9px; font: 700 10px/1 var(--f-pix); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.gal-thumbs button:hover img, .gal-thumbs button.on img { opacity: 1 }
.gal-thumbs button:hover { border-color: var(--line2); color: var(--cream) }
.gal-thumbs button.on { border-color: var(--amber); color: var(--cream) }
.gal-zoom { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible }
.gal-zoom::backdrop { background: rgba(0, 0, 0, .88) }
.gal-zoom img { display: block; max-width: 96vw; max-height: 88vh; width: auto; height: auto; border-radius: 10px; border: 1px solid #2c3038; cursor: zoom-out }
.gal-zoom p { margin: 12px 0 0; display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: #c8c2b3 }
.gal-zoom button { font: 700 11px var(--f-pix); letter-spacing: .06em; color: var(--cream); background: transparent; border: 1px solid var(--line2); border-radius: 6px; padding: 7px 10px; cursor: pointer }
@media (max-width: 1240px) { .gal-nav.prev { left: 10px } .gal-nav.next { right: 10px } }
@media (max-width: 760px) { .gal-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)) } .gal figcaption { flex-direction: column; gap: 6px } }
/* Videos: the hero film and the episodes shelf (videos.js) */
.herovid { position: relative; margin-top: 48px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #07080a }
.herovid video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; cursor: pointer }
.herovid.vert { max-width: 340px; margin-inline: auto } .herovid.vert video { aspect-ratio: 9 / 16 }
.hv-play { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; border: 0; cursor: pointer; color: var(--cream); background: rgba(7, 8, 10, .62) }
.hv-play:hover { background: rgba(7, 8, 10, .5) }
.hv-ico { width: clamp(72px, 9vw, 108px); aspect-ratio: 1; border-radius: 50%; background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9'%3E%3Cpath d='M3 2h1v1h1v1h1v1H5v1H4v1H3z' fill='%231a1200'/%3E%3C/svg%3E") center / 56% no-repeat; box-shadow: 0 0 0 10px rgba(255, 176, 32, .18), 0 14px 40px rgba(0, 0, 0, .6) }
.hv-play:hover .hv-ico, .hv-play:focus-visible .hv-ico { box-shadow: 0 0 0 14px rgba(255, 176, 32, .28), 0 14px 40px rgba(0, 0, 0, .6) }
.hv-play b { font: 700 clamp(16px, 2.2vw, 24px)/1 var(--f-pix); letter-spacing: .06em }
.hv-play i { font: 13.5px var(--f-mono); font-style: normal; color: #c8c2b3 }
.herovid.on .hv-play { display: none }
.hv-end { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center; background: rgba(7, 8, 10, .9); padding: 20px }
.hv-end[hidden] { display: none }
.hv-end p { margin: 0; display: flex; flex-direction: column; gap: 10px; align-items: center }
.hv-end p i { font: 700 11px var(--f-pix); font-style: normal; letter-spacing: .1em; color: var(--mute) }
.hv-end p b { font: 700 clamp(18px, 2.6vw, 30px)/1.1 var(--f-pix); color: var(--cream) }
.hv-end p span { font: 12.5px var(--f-mono); color: var(--amber); min-height: 1.2em }
.hv-row { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; justify-content: center }
.eps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 34px }
.ep { padding: 0; text-align: left; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg2); color: var(--cream); cursor: pointer }
.ep:hover, .ep:focus-visible { border-color: var(--amber) }
.ep-i { position: relative; display: block }
.ep-i img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover }
.ep-i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9'%3E%3Cpath d='M3 2h1v1h1v1h1v1H5v1H4v1H3z' fill='%231a1200'/%3E%3C/svg%3E") center / 20px no-repeat; box-shadow: 0 6px 20px rgba(0, 0, 0, .6) }
.ep-t { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 10px 11px 12px; font-size: 13.5px; line-height: 1.25 }
.ep-t b { font-weight: 600 } .ep-t i { font: 11px var(--f-mono); font-style: normal; color: var(--mute); white-space: nowrap }
.epdlg { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible }
.epdlg::backdrop { background: rgba(0, 0, 0, .88) }
.epdlg video { display: block; max-width: 96vw; max-height: 84vh; width: auto; height: auto; border-radius: 10px; border: 1px solid #2c3038; background: #000 }
.epdlg p { margin: 12px 0 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; color: #c8c2b3 }
.epdlg button { font: 700 11px var(--f-pix); letter-spacing: .06em; color: var(--cream); background: transparent; border: 1px solid var(--line2); border-radius: 6px; padding: 7px 10px; cursor: pointer }
@media (max-width: 860px) { .eps { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px } .ep { flex: 0 0 62%; scroll-snap-align: start } }
/* Tutorial page: the getting-started video and its jump links */
.gs-jump { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 26px; max-width: 1000px }
.gs-jump a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg2); color: var(--cream); text-decoration: none; font-size: 15px }
.gs-jump a b { font-weight: 600 } .gs-jump a i { font: 12px var(--f-mono); font-style: normal; color: var(--mute) }
.gs-jump a:hover { border-color: var(--line2) } .gs-jump a.on { border-color: var(--amber) } .gs-jump a.on i { color: var(--amber) }
.gs-player { margin-top: 18px; max-width: 1000px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #07080a }
.gs-player video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9 }
.gs-code { font: 13.5px var(--f-mono); font-style: normal; color: var(--amber); background: #050607; border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; user-select: all }
.gs-why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 8px; max-width: 1000px } .gs-why figure { margin: 0 }
.gs-why figcaption { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin-top: 12px; align-items: baseline } .gs-why figcaption b { font-size: 17px; color: var(--cream) }
.gs-why figcaption i { font: 12px var(--f-mono); font-style: normal; color: var(--amber) } .gs-why figcaption span { grid-column: 1 / -1; font-size: 14.5px; color: var(--mute); line-height: 1.5 }
@media (max-width: 760px) { .gs-jump { grid-template-columns: 1fr } .gs-why { grid-template-columns: 1fr } }

/* the big phone cycles through the screens (iphone.js) */
.ip-phone { min-width: 0 }
.ip-rotate { display: grid }
.ip-rotate img { grid-area: 1 / 1; opacity: 0; transition: opacity .6s ease }
.ip-rotate img.on { opacity: 1 }
.ip-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; margin-top: 14px; max-width: 260px }
.ip-dots button { font: 700 9.5px var(--f-pix); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); background: none; border: 1px solid transparent; border-radius: 6px; padding: 6px 4px; cursor: pointer }
.ip-dots button:hover { color: var(--ink) } .ip-dots button[aria-current] { color: var(--amber); border-color: var(--line2) }
@media (max-width: 860px) { .ip-dots { max-width: none } }
