/* ============================================================
   Grainy — Native Instant web (BRAND.md §0, follows the app):
   white page, system type, safelight-amber accent. Chrome is
   Apple, content is film — all warmth and personality lives
   INSIDE the prints.
   Stripped 2026-07-10 to a minimal page: a header, the hero
   (interactive camera demo + one email form), and a footer.
   The site now only holds the app's policies and general info.
   ============================================================ */

:root {
  /* Palette — chrome */
  --bg: #FFFFFF;
  --ink: #1D1D1F;             /* near-black text */
  --gray: #6E6E73;            /* secondary text */
  --hairline: rgba(0, 0, 0, 0.10);
  --band: #F7F5F1;            /* faintly warm alternate section band */
  --amber: #E8A94E;           /* safelight amber — fills, buttons */
  --amber-deep: #B4761B;      /* accessible amber for TEXT on white */
  --amber-bright: #F2BC6A;

  /* Palette — the prints (physical objects, never restyled by chrome) */
  --paper: #FDFAF3;           /* print borders — never darken */
  --darkroom: #1A1613;
  --darkroom-text: #F2EBDD;

  /* Type — chrome is the system stack (SF Pro on Apple devices),
     exactly what the app uses. No loaded faces: the datestamp is burned
     into the photos themselves. */
  --system: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
            "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;

  --shadow-print: 0 20px 45px rgba(29, 29, 31, 0.16), 0 3px 10px rgba(29, 29, 31, 0.08);
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--system);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

:focus-visible { outline: 2px solid var(--amber-deep); outline-offset: 3px; }

/* Eyebrow — small amber section label ------------------------- */
.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 0.8rem;
}

/* Buttons ---------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--system);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.btn--primary { background: var(--amber); color: var(--ink); }
.btn--primary:hover { background: var(--amber-bright); transform: translateY(-2px); }
.btn:disabled { opacity: 0.55; cursor: default; transform: none; pointer-events: none; }

/* Header ----------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 2rem;
  padding: 0.9rem clamp(1.2rem, 5vw, 3rem);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav__logo {
  display: flex; align-items: center; gap: 0.55rem;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav__mark, .footer__mark { display: block; }
/* the "Back to Grainy" pill on the legal pages */
.nav__cta { margin-left: auto; padding: 0.6em 1.3em; font-size: 0.92rem; }

/* HERO ------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.2rem, 5vw, 3rem) clamp(5rem, 9vw, 7.5rem);
}
.hero__title {
  font-weight: 700;
  font-size: clamp(2.8rem, 6.5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
/* single-ink headline (Apple restraint) — amber is reserved for eyebrows,
   badges, and interactive elements, not the display type */
.hero__title em { font-style: normal; }
.hero__sub {
  margin: 1.4rem 0 0.9rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--gray);
  max-width: 44ch;
}
.hero__privacy {
  margin: 0 0 2rem;
  font-size: 0.95rem;
  color: var(--gray);
  max-width: 44ch;
}
.hero__privacy strong { color: var(--ink); font-weight: 600; }
.hero__actions { display: flex; flex-direction: column; align-items: stretch; gap: 0.6rem; max-width: 27rem; }
.hero__reassure { font-size: 0.85rem; color: var(--gray); margin: 0.1rem 0 0; }

/* HERO — the app itself, in the browser. A faithful camera inside an
   iPhone: press the shutter, the flash fires, and a real print blooms
   out of darkness and files itself into the gallery — the exact ritual
   from CameraScreen.swift + DevelopingView.swift, on the free SNAP '98
   (whose hard flash fires every frame). --------------------------- */
.hero__stage {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* the iPhone shell */
.phone {
  position: relative;
  width: min(300px, 82vw);
  padding: 12px;
  border-radius: 46px;
  background: linear-gradient(155deg, #3b3b40, #17171a 42%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 1px 2px rgba(255, 255, 255, 0.22) inset,
    0 40px 70px -22px rgba(29, 29, 31, 0.5),
    0 14px 34px rgba(29, 29, 31, 0.26);
}
/* the black camera deck */
.cam {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  background: #000;
  padding: 18px 14px 14px;
  display: flex;
  flex-direction: column;
}
.cam__notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 32%; height: 20px;
  background: #000;
  border-radius: 0 0 13px 13px;
  z-index: 6;
}

/* the shared Liquid-Glass look for every floating control */
.cam__glass {
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  backdrop-filter: blur(14px) saturate(1.6);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* top control row */
.cam__top {
  display: flex; align-items: center; justify-content: space-between;
  height: 40px;
  margin-top: 10px;   /* clear the notch */
}
.cam__circle {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}

/* viewfinder — a clean 4:5 window, like Apple Camera (no corner radius) */
.cam__viewfinder {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  margin: 14px 0;
  background: #0a0a0a;
  overflow: hidden;
}
.cam__feed {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  /* reads as a live digital feed — brighter + flatter than the warm print */
  filter: brightness(1.08) saturate(0.9) contrast(0.97);
  transform: scale(1.02);
  transition: filter 0.5s ease;
}
.cam__viewfinder::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 55px rgba(0, 0, 0, 0.45);
}
.cam--breathe .cam__feed { animation: feedBreathe 8s ease-in-out infinite; }
@keyframes feedBreathe {
  0%, 100% { transform: scale(1.02); }
  50% { transform: scale(1.06); }
}

/* loaded-camera chip */
.cam__chip {
  align-self: center;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 13px 5px 6px; border-radius: 999px;
  margin-bottom: 16px;
}
/* the mini is a black line-art glyph on transparent — invert it to white so
   it reads on the dark camera chip */
.cam__chipMini { width: 26px; height: 26px; object-fit: contain; filter: invert(1); }
.cam__chipName {
  font-size: 0.8rem; font-weight: 700; color: #fff; letter-spacing: 0.02em;
}
.cam__chipChev { color: rgba(255, 255, 255, 0.5); font-size: 0.72rem; margin-left: -2px; }

/* shutter row */
.cam__shutterRow {
  display: flex; align-items: center; justify-content: space-between;
}
.cam__gallery {
  width: 44px; height: 44px; border-radius: 11px; padding: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; cursor: default;
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.4, 1);
}
.cam__gallery.has-shot svg { display: none; }
.cam__flip { flex: 0 0 auto; }

.cam__shutter {
  width: 66px; height: 66px; border-radius: 50%;
  border: 4px solid #fff; background: transparent; padding: 0;
  cursor: pointer; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.cam__shutterDisc {
  width: 50px; height: 50px; border-radius: 50%; background: #fff;
  transition: transform 0.18s cubic-bezier(0.34, 1.4, 0.4, 1);
}
.cam__shutter:active .cam__shutterDisc { transform: scale(0.9); }
.cam__shutter[disabled] { opacity: 0.5; cursor: default; }
.cam__shutter[disabled] .cam__shutterDisc { transform: none; }
/* a quiet invitation to press while shots remain */
.cam__shutter.pulse .cam__shutterDisc { animation: shutterPulse 2.6s ease-in-out infinite; }
@keyframes shutterPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.9); }
}

/* deck status line — plain, never glass (matches the app) */
.cam__deck {
  text-align: center; color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem; line-height: 1.35; margin-top: 12px;
  min-height: 1.35em; padding: 0 6px;
}
.cam__deck a { color: var(--amber); font-weight: 600; text-decoration: none; }

/* the in-phone flash burst (SNAP '98 always fires) */
.cam__flash {
  position: absolute; inset: 0; z-index: 9;
  background: #fff; opacity: 0; pointer-events: none;
  border-radius: 36px;
}
.cam__flash.is-firing { animation: flash-burst 0.5s ease-out; }
@keyframes flash-burst {
  0% { opacity: 0; }
  10% { opacity: 0.95; }
  100% { opacity: 0; }
}

/* THE DEVELOP SCENE — overlays the whole deck (black); the print rises
   and blooms out of darkness, holds, then files itself into the gallery
   (DevelopingView.swift: eject spring → 2s bloom → hold → auto-keep). */
.cam__develop {
  position: absolute; inset: 0; z-index: 7;
  border-radius: 36px; background: #000; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease;
}
.cam__develop.is-active { opacity: 1; visibility: visible; }
/* the room warming with the print — its own light, blurred huge behind it */
.cam__developGlow {
  position: absolute; inset: -25%;
  background-size: cover; background-position: center;
  filter: blur(38px) brightness(0.5) saturate(1.3);
  transform: scale(1.4); opacity: 0;
}
.cam__develop.blooming .cam__developGlow { animation: glowIn 2s ease forwards; }
@keyframes glowIn {
  0%, 80% { opacity: 0; }
  100% { opacity: 0.65; }
}
/* the print (scoped selectors outrank the base .print rule below) */
.cam__develop .cam__print {
  position: relative; z-index: 2;
  width: 68%; margin: 0;
  transform: translateY(-135%);
  transition: transform 0.7s cubic-bezier(0.34, 1.35, 0.4, 1);
}
.cam__develop .cam__print.is-out { transform: translateY(0); }
/* the bloom: the photo window emerges from near-black, blur→sharp, dull→full */
.cam__develop .cam__print.blooming .print__photo { animation: heroBloom 2s ease forwards; }
@keyframes heroBloom {
  0%   { filter: blur(8px) saturate(0.2) brightness(0.12); }
  12%  { filter: blur(8px) saturate(0.2) brightness(0.12); }
  100% { filter: blur(0)   saturate(1)   brightness(1); }
}
/* a faint safelight over the wet print, breathing, fading as it develops */
.cam__develop .cam__print .print__photo::after {
  content: ""; position: absolute; inset: 0; z-index: 2; opacity: 0;
  background: radial-gradient(circle at 50% 45%, rgba(217, 85, 59, 0.24), transparent 68%);
}
.cam__develop .cam__print.blooming .print__photo::after { animation: safelight 2s ease forwards; }
@keyframes safelight {
  0% { opacity: 0.85; }
  70% { opacity: 0.45; }
  100% { opacity: 0; }
}
/* the burned datestamp arrives only once the print is developed */
/* file-away: the finished print shrinks and flies to the gallery thumb */
.cam__develop .cam__print.filing {
  transition: transform 0.5s ease-in, opacity 0.5s ease-in;
  transform: translate(-40%, 150%) scale(0.12) rotate(-8deg);
  opacity: 0;
}
.cam__developStatus {
  position: absolute; bottom: 20px;
  color: rgba(255, 255, 255, 0.6); font-size: 0.72rem;
}

/* The developed print ----------------------------------------
   The hero develop scene builds on this base .print + .print__photo:
   warm paper, 4:5 portrait (PrintFormat.swift), burned datestamp. */
.print {
  background: var(--paper);
  padding: 14px 14px 46px;
  border-radius: 4px;
  border: 1px solid rgba(29, 29, 31, 0.06);
  box-shadow: var(--shadow-print);
  transform: rotate(-3deg);
  width: min(320px, 74vw);
}
.print__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 2px;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.25);
}

/* Waitlist form — one elegant capsule: the email field and the amber button
   share a single rounded pill. Stacks into two pills on narrow phones. */
.waitlist {
  display: flex; align-items: center; gap: 6px;
  width: 100%; max-width: 30rem; margin: 0 auto;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: #FFFFFF;
  box-shadow: 0 12px 30px rgba(29, 29, 31, 0.10);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.waitlist:focus-within {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(232, 169, 78, 0.28), 0 12px 30px rgba(29, 29, 31, 0.12);
}
.waitlist__email {
  flex: 1 1 auto; min-width: 0;
  font-family: var(--system);
  font-size: 1rem;
  padding: 0.7em 0.5em 0.7em 1.15em;
  border: none; background: transparent; color: var(--ink);
  outline: none;
}
.waitlist__email::placeholder { color: var(--gray); }
.waitlist .btn { flex: 0 0 auto; white-space: nowrap; padding: 0.8em 1.5em; }

.waitlist__msg {
  font-size: 0.95rem;
  color: var(--gray);
  margin-top: 0.9rem;
  min-height: 1.4em;
  text-align: center;
}
.waitlist__msg:empty { margin-top: 0; }
.waitlist__msg[data-state="ok"] { color: var(--amber-deep); font-weight: 600; }
.waitlist__msg[data-state="err"] { color: #E56A50; }

/* honeypot spam trap — present in the DOM, invisible to humans */
.waitlist__hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* point-of-collection notice under the waitlist form */
.hero__reassure a { color: var(--amber-deep); text-decoration: underline; text-underline-offset: 2px; }

/* stack into two full-width pills on very narrow screens */
@media (max-width: 460px) {
  .waitlist {
    flex-direction: column; gap: 0.6rem;
    padding: 0; border: none; background: transparent; box-shadow: none;
    border-radius: 0;
  }
  .waitlist:focus-within { box-shadow: none; }
  .waitlist__email {
    width: 100%;
    padding: 0.85em 1.2em;
    border: 1.5px solid var(--hairline); border-radius: 999px; background: #FFFFFF;
  }
  .waitlist .btn { width: 100%; }
}

/* FOOTER ----------------------------------------------------- */
.footer {
  max-width: var(--maxw); margin: 0 auto;
  padding: 2.5rem clamp(1.2rem, 5vw, 3rem);
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  border-top: 1px solid var(--hairline);
}
.footer__logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em;
}
.footer__links { display: flex; gap: 1.2rem; }
.footer__links a { color: var(--gray); text-decoration: none; font-size: 0.9rem; }
.footer__links a:hover { color: var(--ink); }
/* a quiet system-type sign-off, in the vein of "Shot on iPhone" */
.footer__tag { margin-left: auto; font-size: 0.9rem; font-weight: 500; color: var(--gray); }
/* footer copyright / non-affiliation line — a full-width row under the footer */
.footer__copy {
  flex-basis: 100%;
  margin-top: 0.4rem;
  color: var(--gray);
  font-size: 0.8rem;
  line-height: 1.5;
}

/* Responsive ------------------------------------------------- */
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero__sub, .hero__privacy { margin-left: auto; margin-right: auto; }
  .hero__actions { margin-left: auto; margin-right: auto; }
  .hero__stage { order: -1; margin-bottom: 1rem; }
  .eyebrow { text-align: inherit; }
}
@media (prefers-reduced-motion: reduce) {
  /* the hero camera holds still — the JS reveals each print already developed */
  .cam--breathe .cam__feed { animation: none; }
  .cam__shutter.pulse .cam__shutterDisc { animation: none; }
  .cam__develop .cam__print { transition: none; }
  .cam__develop .cam__print.blooming .print__photo,
  .cam__develop .cam__print.blooming .print__photo::after,
  .cam__develop.blooming .cam__developGlow { animation: none; }
  .cam__develop .cam__print.filing { transition: none; }
}

/* ============================================================
   Legal pages (privacy.html / terms.html) — a clean, readable
   prose column on the white page.
   ============================================================ */
.legal {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.2rem, 5vw, 3rem) clamp(4rem, 8vw, 6rem);
  color: #2c2c31;
}
.legal__back { display: inline-block; margin-bottom: 1.4rem; color: var(--gray); text-decoration: none; font-size: 0.9rem; }
.legal__back:hover { color: var(--ink); }
.legal h1 {
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  letter-spacing: -0.025em; line-height: 1.08;
  color: var(--ink); margin-bottom: 0.5rem;
}
.legal__updated { color: var(--gray); font-size: 0.9rem; margin-bottom: 2rem; }
.legal h2 {
  font-weight: 700;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  letter-spacing: -0.015em; color: var(--ink);
  margin: 2.4rem 0 0.8rem; scroll-margin-top: 84px;
}
.legal h3 { font-weight: 600; font-size: 1.05rem; color: var(--ink); margin: 1.4rem 0 0.5rem; }
.legal p, .legal li { font-size: 1rem; line-height: 1.7; }
.legal p { margin-bottom: 1rem; }
.legal ul { margin: 0 0 1rem 1.3rem; }
.legal li { margin-bottom: 0.5rem; }
.legal a { color: var(--amber-deep); text-underline-offset: 2px; }
.legal strong { color: var(--ink); }
.legal__toc { margin: 0 0 2.5rem; padding: 1.1rem 1.4rem; background: var(--band); border: 1px solid var(--hairline); border-radius: 14px; }
.legal__toc p { font-weight: 600; margin-bottom: 0.5rem; color: var(--ink); }
.legal__toc ol { margin: 0 0 0 1.2rem; }
.legal__toc li { margin-bottom: 0.3rem; font-size: 0.95rem; }
