/* Adapted from Impeccable's Neo Kinpaku direction; Latent keeps its film motif. */
@font-face {
  font-family: "Albert Sans";
  src: url("assets/fonts/albert-sans.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Alumni Sans";
  src: url("assets/fonts/alumni-sans.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: oklch(16% 0.012 95);
  --surface: oklch(20% 0.014 95);
  --deep: oklch(12% 0.01 95);
  --paper: oklch(94% 0.009 95);
  --text: oklch(88% 0.012 95);
  --muted: oklch(74% 0.017 95);
  --accent: oklch(84% 0.15 80);
  --accent-hover: oklch(90% 0.09 84);
  --ink: oklch(19% 0.018 95);
  --line: oklch(80% 0.015 95 / 0.18);
  --line-strong: oklch(78% 0.09 82 / 0.5);
  --font-body: "Albert Sans", "Avenir Next", sans-serif;
  --font-display: "Alumni Sans", "Avenir Next Condensed", sans-serif;
  --body-size: 1rem;
  --small-size: 0.875rem;
  --display-size: clamp(4rem, 8vw, 6rem);
  --heading-size: clamp(3rem, 5vw, 4rem);
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --section-space: clamp(4rem, 8vw, 7rem);
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --width: 76rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-body);
  font-size: 16px;
  font-synthesis: none;
  color: var(--text);
  background: var(--bg);
}
* { box-sizing: border-box; }
html { scrollbar-color: var(--line-strong) var(--bg); }
body { margin: 0; position: relative; isolation: isolate; overflow-x: clip; min-height: 100svh; background: var(--bg); }
.ambient-backdrop { position: absolute; z-index: -1; isolation: isolate; top: 0; bottom: 0; left: min(0px, calc((var(--width) - 100vw) / 2)); width: 100vw; overflow: hidden; pointer-events: none; }
.ambient-backdrop::after { content: ""; position: absolute; z-index: 2; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / .22), rgb(0 0 0 / .04) 65%, transparent); }
.ambient-layer { position: absolute; top: var(--ambient-y, 50%); left: var(--ambient-x, 50%); width: var(--ambient-width, 140%); height: var(--ambient-height, 140%); transform: translate(-50%, -50%); max-width: none; object-fit: cover; filter: blur(3px); opacity: 0; transition: opacity 1s ease; }
.ambient-layer.is-current { opacity: 1; transition-duration: 1.8s; }

::selection { color: var(--ink); background: var(--accent); }
a { color: inherit; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
img, svg { max-width: 100%; }
button { font: inherit; }
main, footer { width: min(100%, var(--width)); margin-inline: auto; }
p { margin: 0 0 var(--space-md); line-height: 1.75; }
h1, h2 { font-family: var(--font-display); color: var(--paper); font-weight: 300; line-height: 1; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: var(--display-size); margin: 0 0 var(--space-lg); }
h1 em { font-style: normal; color: var(--accent); }
h2 { font-size: var(--heading-size); margin: 0 0 var(--space-md); }
h3 { color: var(--paper); font-size: 1.25rem; font-weight: 550; line-height: 1.4; margin: 0 0 var(--space-xs); text-wrap: balance; }
.skip { position: absolute; z-index: 10; top: -5rem; left: var(--space-sm); padding: var(--space-sm); background: var(--deep); }
.skip:focus { top: var(--space-sm); }
.wordmark { display: inline-flex; align-items: center; gap: 0.625rem; text-decoration: none; color: var(--paper); font-family: var(--font-display); font-size: 2rem; font-weight: 500; line-height: 1; letter-spacing: 0.09em; text-transform: uppercase; }
.brand-mark { display: block; width: 1.375rem; height: 1.375rem; color: var(--accent); flex: none; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); font-size: var(--small-size); }
nav a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
.icon { display: inline-block; width: 1.125rem; height: 1.125rem; flex: none; }
.opening { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; align-content: center; min-height: 100vh; min-height: 100svh; gap: var(--space-md) var(--space-xl); padding: clamp(1.5rem, 3vw, 2.5rem) var(--gutter) clamp(3rem, 6vw, 5rem); }
.hero { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; container-type: inline-size; }
.hero-brand { grid-column: 1 / -1; justify-self: start; margin: 0; }
.hero h1 { font-size: min(8.5rem, 21cqi); line-height: 1; letter-spacing: -.025em; margin: 0 0 var(--space-md); white-space: nowrap; }
.piling-up { display: block; color: var(--paper); }
.intro strong { display: block; font-weight: 550; color: var(--accent); }
.hero-spacer { flex: none; height: 3.3em; font-size: var(--small-size); margin-bottom: var(--space-md); }
.memory-photo { margin: 0; min-width: 0; width: 100%; align-self: start; container-type: inline-size; }
.imac-body { overflow: hidden; border: 1px solid #a9afb2; border-radius: 10px; background: #d0d3d5; box-shadow: 0 18px 38px rgb(0 0 0 / .25); }
.imac-bezel { position: relative; padding: clamp(8px, 1.8cqi, 12px); padding-top: clamp(12px, 2.7cqi, 17px); background: linear-gradient(110deg, #c8cccf, #e2e4e6 50%, #cbd0d3); }
.imac-camera { position: absolute; top: 6px; left: calc(50% - 2px); width: 4px; height: 4px; border-radius: 50%; background: #111719; box-shadow: inset 0 0 0 1px #080b0a; }
.imac-screen { display: flex; flex-direction: column; aspect-ratio: 16 / 9; overflow: hidden; background: #111210; }
.imac-chin { height: clamp(30px, 10cqi, 60px); background: linear-gradient(110deg, #c5c9cc, #d5d8da 48%, #c7cccf); border-top: 1px solid #c0c5c8; }
.imac-stand { position: relative; z-index: -1; width: 24%; height: clamp(42px, 14.2cqi, 88px); margin: -1px auto 0; border-inline: 1px solid rgb(224 228 230 / .35); background: linear-gradient(#8f969a, #c9ced1 66%, #adb4b9 96%, #dce0e2); }
.imac-foot { width: 24.2%; height: clamp(4px, 1.2cqi, 8px); margin: -1px auto 0; border-radius: 0 0 3px 3px; background: linear-gradient(#edf0f1 0%, #adb4b8 30%, #c9ced1 65%, #777f85 100%); box-shadow: 0 5px 9px rgb(0 0 0 / .25); }
.memory-frame { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #111210; }
.memory-picture { position: absolute; inset: 0; }
.memory-frame img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.memory-photo.is-searching .memory-frame img { opacity: 0; transition: none; }
.memory-searching { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; opacity: 0; }
.memory-searching > span { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); opacity: .3; }
.memory-photo.is-searching .memory-searching { opacity: 1; }
.memory-photo.is-searching .memory-searching > span { animation: memory-thinking 1.4s ease-in-out var(--delay, 0ms) infinite; }
.memory-photo.is-suspended .memory-searching > span { animation-play-state: paused; }
.memory-searching > span:nth-child(2) { --delay: 160ms; }
.memory-searching > span:nth-child(3) { --delay: 320ms; }
@keyframes memory-thinking { 0%, 100% { opacity: .2; } 50% { opacity: .65; } }
.memory-query { display: grid; align-items: center; flex: 1; min-width: 0; min-height: 3em; }
.memory-readable, .memory-phrase { grid-area: 1 / 1; }
.memory-readable { opacity: 0; pointer-events: none; }
.memory-phrase.is-typing::after { content: ""; display: inline-block; height: .95em; margin-left: 2px; border-right: 1px solid var(--accent); vertical-align: -.1em; }
.memory-pause { display: grid; place-items: center; align-self: center; flex: none; width: 2rem; height: 2rem; padding: .4rem; border: 0; background: none; color: var(--muted); cursor: pointer; }
.memory-pause svg { display: block; width: .875rem; height: .875rem; }
.memory-pause .play-symbol, .memory-pause[data-paused="true"] .pause-symbol { display: none; }
.memory-pause[data-paused="true"] .play-symbol { display: block; }
.memory-pause:hover { color: var(--paper); }
.memory-search { display: flex; flex: none; align-items: center; gap: .5rem; padding: .375rem .625rem; border-top: 1px solid var(--line); font-size: clamp(.75rem, 2.5cqi, .875rem); line-height: 1.5; color: var(--paper); background: #1a1c18; }
.memory-search .icon { color: var(--accent); width: .875rem; height: .875rem; }
[hidden] { display: none !important; }
.hero-line { white-space: nowrap; }
.intro { max-width: 36ch; color: var(--text); font-size: 1.125rem; line-height: 1.7; margin-bottom: var(--space-md); }
.intro br { display: none; }
.eyebrow { font-size: var(--small-size); line-height: 1.6; color: var(--accent); margin-bottom: var(--space-lg); }
.hero .eyebrow { margin: var(--space-lg) 0 0; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: var(--space-lg); min-height: 3.25rem; padding: 0.875rem var(--space-md); border: 1px solid transparent; border-radius: 6px; background: var(--accent); color: var(--ink); font-size: var(--body-size); font-weight: 600; line-height: 1.4; text-decoration: none; transition: background 180ms var(--ease), border-color 180ms var(--ease); }
.button:hover { background: var(--accent-hover); color: var(--ink); }
.requirements { color: var(--muted); font-size: var(--small-size); line-height: 1.7; margin-top: var(--space-sm); }
.hero .requirements { max-width: 36ch; margin-bottom: 0; font-size: 0.75rem; color: oklch(62% 0.012 95); }
body::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 40px; background: url("assets/film-rail.svg") repeat-y top right / 40px 225px; pointer-events: none; }
@media (max-width: 1099px) {
  body::after { width: 20px; background-size: 20px 112.5px; }
  main { padding-right: 20px; }
  footer { padding-right: calc(var(--gutter) + 20px); }
}
.value { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 7rem); padding: var(--section-space) var(--gutter); border-block: 1px solid var(--line); }
.value > div > p:not(.eyebrow) { max-width: 42ch; }
.value small { color: var(--muted); font-size: var(--small-size); }
.query { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm) 0; border-bottom: 1px solid var(--line-strong); margin: var(--space-lg) 0 var(--space-xs); font-size: 1.125rem; line-height: 1.6; }
.query .icon { color: var(--accent); width: 1.5rem; height: 1.5rem; }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { padding-bottom: var(--space-md); margin-bottom: var(--space-md); border-bottom: 1px solid var(--line); }
.steps li:last-child { margin: 0; padding: 0; border: 0; }
.steps p { margin: 0; color: var(--muted); max-width: 45ch; }
.privacy-feature { padding: var(--section-space) var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-xl); }
.privacy-feature h2 { grid-column: 1; grid-row: 1 / span 4; }
.privacy-feature > p, .privacy-feature > a { grid-column: 2; }
.privacy-feature > p:not(.eyebrow) { max-width: 45ch; font-size: 1.125rem; }
.privacy-feature > p.secondary { font-size: var(--body-size); color: var(--muted); }
.mac-feature { border-top: 1px solid var(--line); }
.text-link { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 2.75rem; width: fit-content; font-size: var(--small-size); color: var(--accent); }
.pricing { padding: var(--section-space) var(--gutter); background: var(--surface); border-block: 1px solid var(--line); }
.pricing > p { max-width: 65ch; }
.pricing .eyebrow { margin-bottom: var(--space-sm); }
.price-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-block: var(--space-xl); }
.price-options article { display: flex; flex-direction: column; padding: var(--space-lg) var(--space-md); border-top: 1px solid oklch(80% 0.015 95 / 0.08); border-bottom: 1px solid var(--line); min-width: 0; }
.price-options article:first-child { padding-left: 0; }
.price-options article:last-child { padding-right: 0; }
.price-options article + article { border-left: 1px solid var(--line); }
.price-options h3 { font-weight: 500; }
.price-options .price { font-size: 3.5rem; font-weight: 400; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -0.03em; line-height: 1.2; margin: var(--space-sm) 0; color: var(--paper); }
.price-options .price .price-amount { display: block; }
/* Room is kept for the tax line so a local price arriving doesn't move the layout. */
.price-options .price .price-tax { display: block; min-height: 1.5em; font-size: var(--small-size); line-height: 1.5; letter-spacing: 0; color: var(--muted); }
.price-options article > p { margin-bottom: var(--space-sm); }
.price-options article > p:last-of-type { font-size: var(--small-size); color: var(--muted); }
.price-options ul { padding: 0; margin: var(--space-sm) 0 var(--space-lg); list-style: none; flex: 1; }
.price-options li { position: relative; padding-left: var(--space-md); margin-bottom: 0.75rem; line-height: 1.6; }
.price-options li::before { content: ""; position: absolute; width: 0.45rem; height: 0.45rem; background: #fff; border-radius: 50%; top: 0.6em; left: 0; }
.checkout-button { cursor: pointer; width: 100%; margin-top: var(--space-xs); }
.checkout-button:disabled { opacity: 0.55; cursor: wait; }
.checkout-status { min-height: 1.75em; color: var(--accent); }
.checkout-status:empty { display: none; }
.faq { padding: var(--section-space) var(--gutter); }
.faq h2 { margin-bottom: var(--space-xl); }
.faq-item { display: grid; grid-template-columns: 2fr 3fr; gap: var(--space-xl); padding: var(--space-lg) 0; border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: 1.125rem; font-weight: 500; line-height: 1.5; margin: 0; }
.faq-item p { margin: 0; color: var(--muted); max-width: 60ch; }
footer { border-top: 1px solid var(--line); padding: var(--space-xl) var(--gutter) var(--space-lg); display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--space-lg); row-gap: var(--space-md); }
footer .wordmark { font-size: 1.75rem; }
footer p { flex: 1; margin: 0; color: var(--muted); font-size: var(--small-size); }
footer nav { gap: var(--space-md); font-size: var(--small-size); }
footer small { width: 100%; color: oklch(82% 0.012 95); font-size: 0.75rem; line-height: 1.8; }
.credits-open { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.credits-open:hover { color: var(--accent); }
.credits-dialog { width: min(54rem, calc(100% - 2rem)); max-height: 85svh; padding: 0 clamp(1.25rem, 4vw, 2.5rem) 2rem; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); }
.credits-dialog::backdrop { background: rgb(0 0 0 / .7); }
body:has(.credits-dialog[open]) { overflow: hidden; }
.credits-heading { position: sticky; z-index: 1; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; background: var(--bg); }
.credits-heading h2 { margin: 0; font-size: 2.75rem; }
.credits-heading form { margin: 0; }
.credits-close { min-height: 2.75rem; padding: .5rem .875rem; border: 1px solid var(--line); border-radius: 6px; background: none; color: var(--paper); cursor: pointer; }
.credits-close:hover { border-color: var(--accent); }
.credits-intro { color: var(--muted); font-size: .875rem; line-height: 1.6; }
.credits-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
.credit-item { display: grid; grid-template-columns: 80px 1fr; align-items: start; gap: 1rem; padding-block: 1rem; border-top: 1px solid var(--line); min-width: 0; }
.credit-item img { display: block; width: 80px; height: 60px; object-fit: cover; border-radius: 2px; }
.credit-item h3 { font-family: var(--font-body); font-size: .8125rem; line-height: 1.5; font-weight: 500; overflow-wrap: anywhere; }
.credit-item h3 a { text-decoration: none; }
.credit-item p { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.6; }
.credit-item p a { color: var(--accent); }
.page-head { max-width: 52rem; padding: var(--space-xl) var(--gutter) var(--space-lg); }
.page-head h1 { font-size: clamp(3.5rem, 7vw, 5rem); margin-bottom: var(--space-md); }
.page-head .lead { font-size: 1.25rem; line-height: 1.6; color: var(--text); max-width: 60ch; }
.policy { max-width: 52rem; padding: var(--space-xl) var(--gutter) var(--section-space); }
.policy h1 { font-size: clamp(3.5rem, 7vw, 5rem); margin-bottom: var(--space-md); }
.policy > .eyebrow { color: var(--muted); margin: var(--space-xl) 0 var(--space-md); }
.policy .lead { font-size: 1.25rem; line-height: 1.6; margin-bottom: var(--space-lg); color: var(--text); }
.policy h2 { font-family: var(--font-body); font-size: 1.5rem; font-weight: 550; line-height: 1.35; letter-spacing: -0.015em; margin-top: var(--space-xl); margin-bottom: var(--space-sm); }
.policy h3 { font-size: 1.125rem; margin-top: var(--space-lg); }
.policy p { color: var(--text); max-width: 72ch; }
.policy p a { color: var(--accent); overflow-wrap: anywhere; }
[id] { scroll-margin-top: var(--space-lg); }
@media (max-width: 900px) {
  .opening { grid-template-columns: 1fr; gap: var(--space-lg); padding-top: var(--space-md); }
  .hero { max-width: none; }
  .memory-photo { width: 100%; margin-inline: 0; }
  .intro { max-width: 48ch; }
  .value { gap: var(--space-xl); }
  .price-options { grid-template-columns: 1fr; gap: var(--space-xl); }
  .price-options article, .price-options article + article { padding: var(--space-md) 0; border-left: 0; }
  footer nav { width: 100%; }
}
@media (max-width: 600px) {
  .credits-list { grid-template-columns: 1fr; }
  .wordmark { font-size: 1.75rem; }
  /* Leave room for expanded phone browser controls; the desktop spacer is
     unnecessary here and can push the search caption beneath Safari's toolbar. */
  .opening { min-height: calc(100svh - 2rem); align-content: start; gap: .75rem; padding-top: .75rem; padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px)); }
  .hero h1 { margin-bottom: 1rem; }
  .hero .intro { margin-bottom: 1rem; }
  .hero-spacer { display: none; }
  .hero .requirements { margin-top: .75rem; }
  .hero .eyebrow { margin-top: var(--space-md); }
  .memory-search { font-size: .75rem; }
  .value, .privacy-feature { grid-template-columns: 1fr; }
  .privacy-feature h2 { grid-column: auto; grid-row: auto; }
  .privacy-feature > p, .privacy-feature > a { grid-column: auto; }
  .faq-item { grid-template-columns: 1fr; gap: var(--space-sm); padding-block: var(--space-md); }
  footer nav { gap: 0 var(--space-md); }
  .policy { padding-top: var(--space-lg); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .memory-pause, .memory-phrase::after { display: none !important; }
}
@media print {
  :root { color-scheme: light; background: white; color: #222; }
  body, h1, h2, h3, p, .policy p, a { color: #222; }
  body, #local-processing, .pricing { background: transparent; }
  footer, .hero-brand, .skip, .policy > .text-link { display: none; }
  .memory-pause { display: none; }
  .memory-photo.is-searching .memory-frame img { opacity: 1; }
  .ambient-backdrop, .memory-searching, .credits-open, .credits-dialog { display: none; }
  .policy { max-width: none; padding: 0; }
}
