/* =================================================================
   Roll — design tokens (matched to the iOS app's Theme)
   ================================================================= */
:root {
  /* Backgrounds — warm near-blacks, as in the app */
  --bg:           #100D0B;    /* Theme.background  */
  --bg-elev:      #181411;    /* Theme.backgroundElev */
  --bg-2:         #1E1814;
  --line:         rgba(255, 255, 255, 0.07);

  /* Foregrounds */
  --cream:        #F5ECDE;    /* Theme.cream */
  --cream-soft:   rgba(245, 236, 222, 0.78);
  --cream-mute:   rgba(245, 236, 222, 0.55);
  --muted:        rgba(245, 236, 222, 0.45);

  /* Accent — amber */
  --amber:        #E8A032;    /* Theme.amber */
  --amber-soft:   #EAB266;

  /* Polaroid */
  --paper:        #F5ECDE;
  --paper-shade:  rgba(0, 0, 0, 0.55);

  /* Fonts */
  --serif:        "Fraunces", "Times New Roman", serif;
  --sans:         "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --marker:       "Caveat", "Bradley Hand", "Marker Felt", cursive;

  --radius:       16px;
  --radius-sm:    8px;
  --shadow-lg:    0 30px 60px -20px rgba(0, 0, 0, 0.65), 0 8px 20px -8px rgba(0, 0, 0, 0.5);
  --shadow-md:    0 14px 30px -12px rgba(0, 0, 0, 0.55);
  --shadow-sm:    0 6px 14px -6px rgba(0, 0, 0, 0.5);
}

/* =================================================================
   Reset + base
   ================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--cream);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  font-size: 17px;
  overflow-x: hidden;
}

/* Subtle film grain over the whole page */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.045;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 0.9  0 0 0 0 0.78  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* =================================================================
   Typography
   ================================================================= */
.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
  font-size: clamp(48px, 9vw, 124px);
  margin: 0 0 24px;
}
.display em, h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--amber);
}
.closer .display em { color: var(--amber-soft); }
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  margin: 0 0 18px;
}
h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
}
p { margin: 0 0 16px; }
.lede {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--cream-soft);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.5;
}
.eyebrow, .kicker {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
  font-weight: 500;
  color: var(--amber);
  margin: 0 0 18px;
}
.kicker { margin-bottom: 14px; }

/* =================================================================
   Nav
   ================================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px clamp(20px, 4vw, 48px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(16, 13, 11, 0.7);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.01em;
}
.brand img {
  width: 30px; height: 30px;
  border-radius: 7px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.nav-cta {
  font-size: 14px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 100px;
  background: var(--cream);
  color: var(--bg);
  transition: transform .2s ease, background .2s ease;
}
.nav-cta:hover { transform: translateY(-1px); background: #fff; }

/* =================================================================
   Buttons
   ================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cream);
  color: var(--bg);
  padding: 15px 26px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.005em;
  box-shadow: var(--shadow-md);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6);
  background: #fff;
}
.btn--light { background: var(--cream); color: var(--bg); }

/* =================================================================
   Hero
   ================================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px clamp(20px, 6vw, 80px) 80px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(232, 160, 50, 0.22), transparent 60%),
    radial-gradient(ellipse at 0% 100%, rgba(232, 160, 50, 0.10), transparent 50%),
    var(--bg);
}
.hero-inner { position: relative; z-index: 2; }
.hero-meta {
  margin-top: 18px;
  font-size: 13px;
  color: var(--cream-mute);
  letter-spacing: 0.02em;
}
.hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
}

/* =================================================================
   Polaroid (shared)
   ================================================================= */
.polaroid {
  background: var(--paper);
  padding: 14px 14px 50px;
  border-radius: 4px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform-origin: center;
}
.polaroid-window {
  position: relative;
  width: 300px;
  height: 300px;
  overflow: hidden;
  background: var(--paper);
}
.polaroid-window img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.polaroid-caption {
  position: absolute;
  bottom: 12px;
  left: 12px; right: 12px;
  text-align: center;
  font-family: var(--marker);
  font-size: 22px;
  color: rgba(0, 0, 0, 0.72);
  letter-spacing: 0.005em;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.polaroid--hero {
  transform: rotate(-2.5deg);
  animation: floatPolaroid 8s ease-in-out infinite;
}
@keyframes floatPolaroid {
  0%, 100% { transform: rotate(-2.5deg) translateY(0); }
  50%      { transform: rotate(-2deg) translateY(-10px); }
}

/* "Developing" veil that fades on scroll-in */
.develop-veil {
  position: absolute;
  inset: 0;
  background: var(--paper);
  backdrop-filter: blur(20px) saturate(0.4);
  -webkit-backdrop-filter: blur(20px) saturate(0.4);
  opacity: 1;
  transition: opacity 2.5s ease, backdrop-filter 2.5s ease;
}
.develop-veil.is-developed {
  opacity: 0;
  backdrop-filter: blur(0) saturate(1);
  -webkit-backdrop-filter: blur(0) saturate(1);
}
.develop-veil--shake { background: rgba(245, 236, 222, 0.55); }

/* =================================================================
   Strip — numbered steps
   ================================================================= */
.strip {
  padding: 60px clamp(20px, 6vw, 80px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
}
.strip-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}
.strip-item {
  display: flex;
  align-items: baseline;
  gap: 18px;
}
.strip-item .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--amber);
}

/* =================================================================
   Features
   ================================================================= */
.features {
  padding: clamp(80px, 12vw, 160px) clamp(20px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  gap: clamp(80px, 10vw, 160px);
  max-width: 1280px;
  margin: 0 auto;
}
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
}
.feature--reverse .feature-copy { order: 2; }
.feature--reverse .feature-visual { order: 1; }
.feature-copy { max-width: 480px; }
.feature-copy p { color: var(--cream-soft); font-size: 18px; }
.feature-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 540px;
}

/* =================================================================
   Phone mockup — matches actual iPhone 17 silhouette
   ================================================================= */
.phone {
  width: 290px;
  height: 600px;
  background: linear-gradient(180deg, #2a2520 0%, #1c1814 100%);
  border-radius: 46px;
  padding: 7px;
  box-shadow:
    0 50px 90px -40px rgba(0,0,0,0.7),
    0 0 0 1.5px rgba(255,255,255,0.05) inset,
    0 0 0 2px #0b0907;
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 28px;
  background: #000;
  border-radius: 100px;
  z-index: 3;
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: var(--bg);
}

/* =================================================================
   App screen — the inside of the phone for the iOS-app mockups
   ================================================================= */
.app-screen {
  display: flex;
  flex-direction: column;
  padding: 50px 14px 12px;
  background: var(--bg);
  color: var(--cream);
}

/* ----- Header ----- */
.app-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 0 6px;
  margin-bottom: 12px;
}
.app-header--centered {
  align-items: center;
  justify-content: space-between;
}
.app-title-block {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.app-brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  color: var(--cream);
  letter-spacing: -0.01em;
  line-height: 1;
}
.app-subtitle {
  font-size: 10px;
  color: var(--cream-mute);
}
.app-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.app-spacer { width: 28px; }

/* Badges */
.app-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  padding: 4px 9px;
  border-radius: 100px;
  background: rgba(232, 160, 50, 0.13);
  color: var(--amber);
  border: 1px solid rgba(232, 160, 50, 0.4);
}

/* Icon buttons (flip, films, settings) */
.app-icon-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
}
.app-icon-btn--accent { color: var(--amber); }
.app-close {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-size: 16px;
  line-height: 1;
}

/* ----- Camera preview frame (capture screen) ----- */
.app-preview {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  margin: 4px 4px 0;
}
.app-preview img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ----- Controls (shutter row) ----- */
.app-controls {
  margin-top: auto;
  padding: 12px 12px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-thumb {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
}
.app-shutter {
  width: 58px; height: 58px;
  border: 2.5px solid var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-shutter span {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--cream);
}

/* ----- Floating tab bar at the bottom ----- */
.app-tabbar {
  margin: 8px 24px 4px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 8px;
  display: flex;
  gap: 4px;
  box-shadow: 0 8px 14px -6px rgba(0,0,0,0.6);
}
.app-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 100px;
  color: var(--cream-mute);
  font-size: 10px;
  font-weight: 600;
}
.app-tab--active {
  background: rgba(232, 160, 50, 0.13);
  color: var(--amber);
}

/* ============= Print + Develop screens (camera + emerging polaroid) ============= */
.app-screen--develop {
  padding: 50px 14px 18px;
  align-items: center;
}
.app-screen--develop .app-header { width: 100%; }

.app-stage {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 0 0;
  position: relative;
}

/* Camera body */
.app-camera-body {
  width: 230px;
  height: 108px;
  background: linear-gradient(180deg, #2d2823 0%, #11100e 100%);
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  box-shadow: 0 18px 26px -12px rgba(0,0,0,0.7);
  flex: 0 0 auto;
}
.app-lens-ring {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
}
.app-slit {
  position: absolute;
  bottom: 10px; left: 50%;
  transform: translateX(-50%);
  width: 185px; height: 6px;
  border-radius: 100px;
  background: rgba(0,0,0,0.85);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}

/* Clipping slot that sits directly under the camera body.
   The polaroid slides down INTO this region from above (where it's clipped)
   so it never floats over the camera body. */
.app-polaroid-slot {
  width: 100%;
  height: 200px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  margin-top: -3px; /* tucks the polaroid's top under the slit */
  position: relative;
}
.app-polaroid-emerging,
.app-polaroid-out {
  display: flex;
  justify-content: center;
  will-change: transform;
}
.app-polaroid-emerging {
  animation: printLoop 5s ease-in-out infinite;
}
@keyframes printLoop {
  0%, 8%    { transform: translateY(-105%); }
  45%, 75%  { transform: translateY(0); }
  100%      { transform: translateY(-105%); }
}

.polaroid.mini-app {
  width: 175px;
  padding: 8px 8px 26px;
  border-radius: 3px;
  background: var(--paper);
  box-shadow: 0 10px 20px -8px rgba(0,0,0,0.6);
  position: relative;
}
.polaroid.mini-app .polaroid-window {
  width: 100%;
  height: 158px;
}
.polaroid.mini-app .polaroid-caption {
  font-size: 14px;
  bottom: 6px;
}
.polaroid.mini-app .develop-veil {
  background: rgba(245, 236, 222, 0.5);
  animation: developCycle 4s ease-in-out infinite;
}
@keyframes developCycle {
  0%, 20%   { opacity: 0.9; backdrop-filter: blur(14px) saturate(0.4); }
  60%, 80%  { opacity: 0.2; backdrop-filter: blur(2px) saturate(1); }
  100%      { opacity: 0.9; backdrop-filter: blur(14px) saturate(0.4); }
}
.blank-film {
  width: 100%; height: 100%;
  background: var(--paper);
}

/* Status text under the polaroid */
.app-hint {
  margin: auto 0 0;
  color: var(--cream-mute);
  font-size: 12px;
  font-weight: 500;
}
.app-progress-area {
  margin: 18px 0 0;
  width: 80%;
  text-align: center;
}
.app-shake-text {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--cream);
  margin: 0 0 10px;
}
.app-progress-bar {
  height: 4px;
  background: var(--line);
  border-radius: 100px;
  overflow: hidden;
}
.app-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--amber);
  border-radius: 100px;
  animation: fillBar 5s ease-in-out infinite;
}
@keyframes fillBar {
  0%   { width: 0%; }
  60%  { width: 100%; }
  100% { width: 0%; }
}
.app-progress-pct {
  display: block;
  margin-top: 8px;
  color: var(--amber);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

/* =================================================================
   Film stack (revealed memories)
   ================================================================= */
.film-stack {
  position: relative;
  width: 100%;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.polaroid.mini {
  position: absolute;
  padding: 10px 10px 38px;
  width: 215px;
  transition: transform .4s ease;
  background: var(--paper);
  border-radius: 3px;
  box-shadow: var(--shadow-md);
}
.polaroid.mini .polaroid-window {
  width: 195px;
  height: 195px;
}
.polaroid.mini .polaroid-caption {
  font-size: 17px;
  bottom: 8px;
}
.polaroid--a { transform: rotate(-8deg) translate(-110px, 10px); z-index: 1; }
.polaroid--b { transform: rotate(2deg)  translate(0, -10px);    z-index: 3; }
.polaroid--c { transform: rotate(7deg)  translate(110px, 20px); z-index: 2; }
.film-stack:hover .polaroid--a { transform: rotate(-10deg) translate(-140px, 0); }
.film-stack:hover .polaroid--c { transform: rotate(9deg)   translate(140px, 10px); }

/* =================================================================
   Manifesto
   ================================================================= */
.manifesto {
  padding: clamp(100px, 14vw, 180px) clamp(20px, 6vw, 80px);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(232, 160, 50, 0.10), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--line);
  text-align: center;
}
.manifesto-inner { max-width: 820px; margin: 0 auto; }
.manifesto-body {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.4;
  color: var(--cream-soft);
  margin: 0 0 28px;
}
.manifesto-emph { margin-top: 40px; color: var(--cream); }
.manifesto-emph em { font-style: italic; color: var(--amber); }

/* =================================================================
   Collection — album grid
   ================================================================= */
.collection {
  padding: clamp(80px, 12vw, 140px) clamp(20px, 6vw, 80px);
  background: var(--bg-elev);
  text-align: center;
  border-top: 1px solid var(--line);
}
.collection-inner { max-width: 1100px; margin: 0 auto; }
.collection-body {
  max-width: 540px;
  margin: 0 auto 64px;
  font-size: 18px;
  color: var(--cream-soft);
}
.album-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  max-width: 920px;
  margin: 0 auto;
}
.album-tile {
  background: var(--paper);
  padding: 6px 6px 22px;
  border-radius: 2px;
  box-shadow: var(--shadow-md);
  transform: rotate(var(--r, 0deg));
  transition: transform .4s ease;
}
.album-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.album-tile:nth-child(1) { --r: -2deg; }
.album-tile:nth-child(2) { --r: 1.5deg; }
.album-tile:nth-child(3) { --r: -1deg; }
.album-tile:nth-child(4) { --r: 2deg; }
.album-tile:nth-child(5) { --r: -1.5deg; }
.album-tile:nth-child(6) { --r: 1deg; }
.album-tile:hover { transform: rotate(0) translateY(-4px); }

/* =================================================================
   For / Not for
   ================================================================= */
.for-not-for {
  padding: clamp(100px, 14vw, 160px) clamp(20px, 6vw, 80px);
  background: var(--bg);
  text-align: center;
  border-top: 1px solid var(--line);
}
.fnf-inner { max-width: 760px; margin: 0 auto; }
.fnf-list {
  list-style: none; padding: 0; margin: 32px 0 0;
  display: flex; flex-direction: column; gap: 14px;
}
.fnf-list li {
  font-family: var(--serif);
  font-size: clamp(28px, 4.5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.fnf-list .strike {
  color: var(--cream-mute);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(245, 236, 222, 0.35);
}
.fnf-list .keep {
  color: var(--cream);
  font-style: italic;
  display: inline-block;
  margin-top: 24px;
}

/* =================================================================
   Closer
   ================================================================= */
.closer {
  background: var(--bg);
  color: var(--cream);
  padding: clamp(100px, 14vw, 180px) clamp(20px, 6vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.closer::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(232, 160, 50, 0.22), transparent 60%);
}
.closer-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.closer .display { color: var(--cream); margin-bottom: 48px; }
.closer-kicker {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2vw, 26px);
  color: var(--amber-soft);
  margin: 0 0 24px;
}
.hashtag {
  margin-top: 32px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--amber-soft);
  letter-spacing: 0.02em;
}

/* =================================================================
   Footer
   ================================================================= */
.foot {
  background: var(--bg);
  color: var(--cream);
  padding: 40px clamp(20px, 6vw, 80px) 60px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.foot-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.foot-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 18px;
}
.foot-brand img { width: 28px; height: 28px; border-radius: 6px; }
.foot-links { display: flex; gap: 28px; }
.foot-links a {
  font-size: 14px; color: rgba(245, 236, 222, 0.7);
  transition: color .2s;
}
.foot-links a:hover { color: var(--cream); }
.foot-copy {
  margin: 0;
  font-size: 13px;
  color: rgba(245, 236, 222, 0.5);
}
.foot-inline {
  color: var(--cream);
  border-bottom: 1px solid rgba(245, 236, 222, 0.25);
  transition: color .2s, border-color .2s;
}
.foot-inline:hover {
  color: var(--amber);
  border-color: var(--amber);
}

/* =================================================================
   Legal pages (privacy + terms)
   ================================================================= */
.legal {
  padding: 140px clamp(20px, 6vw, 80px) 80px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(232, 160, 50, 0.10), transparent 50%),
    var(--bg);
  min-height: 100vh;
}
.legal-inner {
  max-width: 720px;
  margin: 0 auto;
  color: var(--cream-soft);
}
.legal-title {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.022em;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  color: var(--cream);
  margin: 0 0 14px;
}
.legal-sub {
  font-size: 13px;
  color: var(--cream-mute);
  letter-spacing: 0.02em;
  margin: 0 0 36px;
}
.legal-lede {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.45;
  color: var(--cream);
  margin: 0 0 48px;
}
.legal h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin: 44px 0 14px;
}
.legal p {
  color: var(--cream-soft);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 16px;
}
.legal ul {
  margin: 8px 0 20px;
  padding-left: 22px;
  color: var(--cream-soft);
  font-size: 16px;
  line-height: 1.6;
}
.legal ul li { margin-bottom: 6px; }
.legal-link {
  color: var(--amber);
  border-bottom: 1px solid rgba(232, 160, 50, 0.35);
  transition: color .2s, border-color .2s;
}
.legal-link:hover {
  color: var(--amber-soft);
  border-color: var(--amber-soft);
}
.legal-foot {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.legal-back {
  color: var(--cream-mute);
  font-size: 14px;
  transition: color .2s;
}
.legal-back:hover { color: var(--cream); }

/* =================================================================
   Waitlist modal
   ================================================================= */
.waitlist-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.waitlist-modal.is-open { display: flex; }
.waitlist-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 6, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: waitlistFade .3s ease;
}
.waitlist-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px 28px 28px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.7);
  animation: waitlistPop .4s cubic-bezier(.2,.7,.3,1.2);
}
.waitlist-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--cream);
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}
.waitlist-close:hover {
  background: var(--bg-2);
  color: var(--amber);
}
.waitlist-kicker { margin-bottom: 10px; }
.waitlist-title {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  font-size: 26px;
  line-height: 1.15;
  color: var(--cream);
  margin: 0 0 6px;
}
.waitlist-body {
  color: var(--cream-mute);
  font-size: 14px;
  margin: 0 0 18px;
}
.waitlist-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  min-height: 220px;
}
.waitlist-form iframe {
  width: 100%;
  border: 0;
  display: block;
}
@keyframes waitlistFade {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes waitlistPop {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
@media (max-width: 520px) {
  .waitlist-card { padding: 32px 20px 20px; border-radius: 20px; }
  .waitlist-title { font-size: 22px; }
}

/* =================================================================
   Reveal animation
   ================================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease, transform 1s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =================================================================
   Responsive
   ================================================================= */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 110px;
    text-align: left;
    gap: 40px;
  }
  .hero-stage { min-height: 420px; }
  .polaroid-window { width: 250px; height: 250px; }

  .strip-row { grid-template-columns: 1fr; gap: 18px; }

  .feature {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: left;
  }
  .feature--reverse .feature-copy { order: 0; }
  .feature--reverse .feature-visual { order: 0; }
  .feature-visual { min-height: 480px; }

  .film-stack { height: 420px; }
  .polaroid--a { transform: rotate(-8deg) translate(-90px, 10px); }
  .polaroid--c { transform: rotate(7deg)  translate(90px, 20px); }
}

@media (max-width: 760px) {
  .album-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .nav { padding: 12px 18px; }
  .polaroid-window { width: 220px; height: 220px; }
  .phone { width: 260px; height: 540px; }
  .phone-screen { border-radius: 34px; }
  .app-camera-body { width: 200px; height: 92px; }
  .app-slit { width: 158px; height: 5px; }
  .polaroid.mini-app { width: 155px; }
  .polaroid.mini-app .polaroid-window { height: 140px; }
  .display { font-size: clamp(44px, 14vw, 72px); }
  .foot-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
