/* latentsnap.com: one stylesheet, no fonts, no scripts.
   Text in the system sans (SF on Apple devices), display titles in the
   system serif (New York), one accent per app page, none on the home. */

:root {
  color-scheme: light dark;
  --font-text: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --bg: #FFFFFF;
  --fg: #111318;
  --muted: #5F6670;
  --rule: #E5E7EB;
  --surface: #F5F6F8;
  --accent: var(--fg);
  --on-accent: #FFFFFF;
  --link: var(--fg);
  --hero-bg: var(--bg);
  --radius: 22px;
  --measure: 62ch;
  --measure-title: 22ch;
  --col: 1080px;
  --gutter: 16px;
}
[data-app="photos"] { --accent: #2E80D8; --on-accent: #111318; --link: #1F6BC0; }
[data-app="frames"] { --accent: #5B4BD8; --on-accent: #FFFFFF; --link: #5B4BD8; --hero-bg: #EEF6F7; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #0E1116; --fg: #F0F1F2; --muted: #9AA0A6; --rule: #262A31; --surface: #161A21; --on-accent: #111318; }
  [data-app="photos"] { --accent: #E3B341; --on-accent: #111318; --link: #E3B341; }
  [data-app="frames"] { --bg: #111113; --surface: #19191C; --accent: #3ED3EA; --on-accent: #111318; --link: #3ED3EA; --hero-bg: #111113; }
}
@media (min-width: 600px) { :root { --gutter: 24px; } }

/* base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.5 var(--font-text); background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0 0 16px; }
h1 { font: 500 clamp(34px, 2rem + 2.5vw, 56px)/1.1 var(--font-display); letter-spacing: -.02em; max-inline-size: var(--measure-title); }
h2 { font: 500 clamp(26px, 1.4rem + 1vw, 30px)/1.2 var(--font-display); letter-spacing: -.01em; }
h3 { font: 600 20px/1.3 var(--font-text); }
p { margin: 0 0 16px; max-inline-size: var(--measure); }
p:last-child { margin-bottom: 0; }
a { color: var(--link); text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
a:hover { opacity: .8; }
img, svg, picture { display: block; max-width: 100%; height: auto; }
code { font: 15px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.wrap { max-width: var(--col); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }
.center h1, .center h2, .center p { margin-inline: auto; }
.muted { color: var(--muted); }
.line { font-size: 20px; line-height: 1.4; color: var(--muted); }
.caption, .req, .price, figcaption, .small { font-size: 15px; line-height: 1.5; color: var(--muted); }
.price { color: var(--fg); }
.legal { font-size: 13px; line-height: 1.5; color: var(--muted); }
.amount { font: 500 48px/1 var(--font-display); letter-spacing: -.02em; color: var(--accent); margin-bottom: 20px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[id] { scroll-margin-top: 80px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 100; text-decoration: none; }
.skip:focus { left: 8px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* header */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--rule); }
@supports not (background: color-mix(in srgb, red 50%, transparent)) { .top { background: var(--bg); } }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; color: var(--fg); text-decoration: none; }
.brand .bolt { width: 22px; height: 22px; flex: none; }
.brand span { display: none; }
@media (min-width: 600px) { .brand span { display: inline; } }
.top nav { display: flex; gap: 24px; }
.top nav a { color: var(--fg); font-size: 16px; font-weight: 500; text-decoration: none; padding: 6px 0; }
.top nav a[aria-current="page"] { box-shadow: inset 0 -2px var(--accent); }
.top nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: .3em; }

/* sections */
main > section { padding-block: clamp(64px, 10vw, 128px); }
main > section + section { border-top: 1px solid var(--rule); }
.hero { background: var(--hero-bg); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; margin-bottom: 20px; }
.icon { border-radius: 22.37%; box-shadow: 0 0 0 1px var(--rule); background: #fff; }
.eyebrow .icon { width: 40px; height: 40px; }
.hero .line { max-inline-size: 48ch; margin-bottom: 28px; }
.hero-shot { margin: 48px auto 0; width: min(80vw, 400px); }
.hero-shot figcaption { margin-top: 16px; text-align: center; }

/* store link, the one filled control, in the app's own button style */
.store { display: inline-block; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 17px; line-height: 1.2; padding: 14px 24px; border-radius: 12px; text-decoration: none; min-width: 240px; text-align: center; }
.store:hover { opacity: .9; }
.store-pending { display: grid; place-items: center; min-height: 48px; margin: 0 auto; color: var(--muted); font-weight: 500; }
.store + .price, .store-pending + .price { margin-top: 16px; }
.req { margin-top: 4px; }

/* home doors */
.doors { display: grid; gap: 24px; margin-top: 48px; }
@media (min-width: 720px) { .doors { grid-template-columns: 1fr 1fr; } }
.door { position: relative; background: var(--surface); border-radius: var(--radius); padding: 28px; text-align: center; }
.door picture { width: min(70vw, 280px); margin: 0 auto 24px; }
.door-head { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 12px; }
.door-head .icon { width: 56px; height: 56px; }
.door-head span { font: 600 20px/1.2 var(--font-text); }
.door .tagline { font: 500 20px/1.3 var(--font-display); margin-bottom: 6px; }
.door .muted { margin-bottom: 16px; }
.door .more { font-weight: 500; }
.door .more::after { content: ""; position: absolute; inset: 0; }
.door:hover { background: color-mix(in srgb, var(--surface) 80%, var(--rule)); }
.doors-note { margin-top: 24px; text-align: center; }
.engine p { margin-inline: auto; }

/* shots */
.shot { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--rule); background: #000; }
figure { margin: 0; }

/* screens: one horizontal rail, each screen with its own words.
   Scroll-snap does the work; assets/js/rail.js only adds arrows and mouse drag. */
.rail-wrap { position: relative; margin-top: 8px; }
.rail { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 4px var(--gutter) 12px; margin-inline: calc(-1 * var(--gutter)); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline-offset: -2px; }
.rail.dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.slide { flex: 0 0 min(78vw, 320px); scroll-snap-align: start; }
.slide figcaption { margin-top: 16px; text-align: left; }
.slide figcaption strong { display: block; font: 500 20px/1.3 var(--font-display); color: var(--fg); margin-bottom: 4px; }
.slide figcaption .line { display: block; font-size: 16px; margin-bottom: 8px; }
.slide figcaption p { font-size: 15px; color: var(--fg); }
.rail-btn { display: none; position: absolute; top: 330px; z-index: 2; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--rule); background: var(--bg); color: var(--fg); align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 20px rgba(0, 0, 0, .12); padding: 0; }
.rail-btn svg { width: 18px; height: 18px; }
.rail-btn.prev { left: -22px; }
.rail-btn.next { right: -22px; }
.rail-btn[hidden] { display: none !important; }
@media (hover: hover) and (min-width: 820px) {
  .js .rail-btn { display: flex; }
  .js .rail { cursor: grab; }
}
@media (min-width: 820px) { .rail { margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; } }
.ipad { margin-top: 40px; }
.ipad .slide { flex: 0 0 min(85vw, 480px); }
@media (min-width: 820px) { .ipad { justify-content: center; } }

/* places (Frames) */
.places { display: grid; gap: 24px; margin-top: 32px; }
@media (min-width: 720px) { .places { grid-template-columns: repeat(3, 1fr); } }
.places h3 { margin-bottom: 8px; }
.places p { color: var(--muted); }

/* sister card */
.sister-card { display: flex; align-items: center; gap: 20px; background: var(--surface); border-radius: var(--radius); padding: 24px; max-width: 560px; margin-inline: auto; }
.sister-card .icon { width: 48px; height: 48px; flex: none; }
.sister-card strong { display: block; font: 600 17px/1.3 var(--font-text); margin-bottom: 2px; }
.sister-card p { margin: 0; }

/* doc pages: support and policies */
.doc { max-width: 760px; margin-inline: auto; padding-block: clamp(48px, 8vw, 96px); }
.doc h1 { margin-bottom: 8px; }
.doc h2 { margin-top: 48px; }
.doc h3 { margin-top: 32px; margin-bottom: 8px; }
.doc .switch { margin-bottom: 32px; color: var(--muted); }
.qa h2 { font: 600 20px/1.3 var(--font-text); margin: 36px 0 8px; }
.doc .updated { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
.doc ul { padding-left: 1.2rem; }
.doc li { margin-bottom: .5rem; }

/* footer */
.foot { border-top: 1px solid var(--rule); padding: 40px 0 48px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 20px; }
.foot-links a { color: var(--muted); font-size: 15px; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; opacity: 1; }
.foot .legal { max-inline-size: none; margin-bottom: 6px; }
