/* Yourtake web - design tokens mirror the iOS app exactly.
   Dark background, cream textPrimary, amber accent, soft borders. */

:root {
  --bg:               #0D0D0F;
  --surface:          #171719;
  --surface-elevated: #222225;
  --text-primary:     #F5F1E8;
  --text-secondary:   #A9A49A;
  --border:           #343235;
  --accent:           #FFB84D;
  --accent-secondary: #FF5C3E;
  --scrim:            rgba(0, 0, 0, 0.55);
  --events-bg:        #101015;

  --yt-border: var(--border);
  --yt-elevated: var(--surface-elevated);
  --yt-accent: var(--accent);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;

  --font-display: 'Fraunces', 'New York', 'Crimson Pro', Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.55);
}

html[data-theme="cream"] {
  --bg:               #F6EFE3;
  --surface:          #FFF8EC;
  --surface-elevated: #FFFFFF;
  --text-primary:     #17120E;
  --text-secondary:   #6E6256;
  --border:           #E1D4C3;
  --accent:           #B86A12;
  --accent-secondary: #D64B2A;
  --scrim:            rgba(23, 18, 14, 0.38);
  --shadow-card: 0 14px 34px rgba(77, 54, 32, 0.14);
  --events-bg:        #EFE6D6;
}

html[data-theme="cream"] .nav {
  background: rgba(246, 239, 227, 0.78);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  /* Guard against any stray horizontal bleed shifting the centered layout.
     `clip` (not `hidden`) so the sticky nav + section switcher still work. */
  overflow-x: clip;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img, video { max-width: 100%; display: block; }

button {
  font-family: inherit;
  cursor: pointer;
}

/* --- Layout helpers --- */

.container {
  max-width: 1080px;
  margin: 0 auto;
  /* Comfortable side margins so the nav (logo / menu) and content never
     hug the window edges. */
  padding: 0 clamp(20px, 3vw, 34px);
}
.container.narrow { max-width: 720px; }
@media (max-width: 760px) {
  .container { padding: 0 20px; }
}

.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }

/* --- Typography --- */

.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
  color: var(--text-primary);
  /* Fraunces variable-axis optical sizing - feels editorial at large
     sizes without losing legibility in the section headings. */
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 96, 'SOFT' 30, 'WONK' 0;
  text-wrap: balance;
}
.display em {
  font-style: italic;
  font-weight: 500;
  font-variation-settings: 'opsz' 144, 'SOFT' 60, 'WONK' 1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}
.display.hero-title {
  font-size: clamp(46px, 6vw, 76px);
  letter-spacing: -0.03em;
  line-height: 1.0;
  font-weight: 500;
  font-variation-settings: 'opsz' 144, 'SOFT' 40, 'WONK' 0;
}
.display.section {
  font-size: clamp(36px, 5.4vw, 64px);
  letter-spacing: -0.028em;
  line-height: 1.0;
  font-weight: 500;
}
.display.card { font-size: 26px; letter-spacing: -0.02em; line-height: 1.1; }

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--accent);
}

.secondary { color: var(--text-secondary); }

.mono { font-family: var(--font-mono); }

/* --- Top nav --- */

.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(13, 13, 15, 0.65);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  /* Horizontal value must match the container - a `0` here was overriding
     the container's side padding, so the logo/menu hugged the edges. */
  padding: var(--space-sm) clamp(20px, 3vw, 34px);
}
.brand {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: 2.2px; font-weight: 700;
  color: var(--text-primary);
}
.brand-dot {
  width: 10px; height: 10px;
  border: 1.5px dotted var(--accent);
  border-radius: 50%;
}
.brand-mark {
  width: 24px; height: 24px; border-radius: 6px;
  object-fit: cover; flex-shrink: 0;
}
.nav-links {
  display: flex; gap: 22px; align-items: center;
  font-size: 13px; font-weight: 500;
}
.nav-links a { color: var(--text-secondary); }
.nav-links a:hover { color: var(--text-primary); }

.theme-toggle {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface-elevated); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; font-size: 15px; line-height: 1;
}

/* --- Buttons --- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  font-size: 15px; font-weight: 600;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: transform 120ms ease, opacity 120ms ease, background 120ms ease;
  font-family: inherit;
  cursor: pointer;
  background: transparent;
  color: var(--text-primary);
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0);    opacity: 0.92; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn.primary {
  background: var(--text-primary);
  color: var(--bg);
}
.btn.secondary {
  background: var(--surface-elevated);
  border-color: var(--border);
}
.btn.amber {
  background: var(--accent);
  color: #1a0e00;
}
.btn.ghost {
  background: transparent;
  border-color: var(--border);
}

.btn-sm { padding: 10px 16px; font-size: 13px; }

/* --- Cards --- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}
.card.elev { background: var(--surface-elevated); }

/* --- Hero --- */

.hero {
  padding: clamp(44px, 7vw, 92px) 0 clamp(40px, 6vw, 72px);
  position: relative;
  overflow: hidden;
  /* Branded hero scene (peach skyline + product phones) - light in both
     themes, so the hero text is forced dark below for legibility. */
  background: #f6e9d8 url('/assets/marketing/hero-background.jpg') center / cover no-repeat;
  min-height: clamp(520px, 50vw, 880px);
  display: flex;
  align-items: flex-start;
}
.hero::before { content: none; }
/* Soft light pool behind the copy so dark text reads cleanly over the
   skyline, while the edges of the scene stay vivid. */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 64% 62% at 50% 40%,
    rgba(249, 241, 229, 0.88) 0%, rgba(249, 241, 229, 0.42) 42%, transparent 72%);
}
/* Hero text always reads on the light scene, regardless of dark/cream. */
.hero .hero-title { color: #1c140c; text-shadow: 0 1px 10px rgba(249, 241, 229, 0.6); }
.hero p.lead { color: #463829; text-shadow: 0 1px 6px rgba(249, 241, 229, 0.7); }
.hero .hero-proof {
  color: #3d3022;
  opacity: 1;
  text-shadow: 0 1px 3px rgba(249, 241, 229, 0.95), 0 0 14px rgba(249, 241, 229, 0.7);
}
.hero .eyebrow { color: #b8641a; }
.hero .btn.ghost {
  color: #1c140c;
  border-color: rgba(28, 20, 12, 0.28);
  background: rgba(255, 255, 255, 0.35);
}
.hero .btn.ghost:hover { border-color: rgba(28, 20, 12, 0.5); }
.hero-inner { position: relative; z-index: 1; }
.hero h1 {
  margin: 14px 0 22px;
  max-width: 18ch;
}
.hero h1.display.hero-title {
  background: none !important;
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.hero p.lead {
  font-size: clamp(17px, 2.1vw, 21px);
  color: var(--text-secondary);
  max-width: 34ch;
  margin: 0 auto var(--space-lg);
  line-height: 1.5;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
/* One quiet proof line replaces the old stat-bar + aside + trust stack. */
.hero-proof {
  margin: 22px auto 0;
  max-width: 44ch;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0.8;
}

/* --- Store badges (official-style artwork) --- */

.appstore-badge,
.store-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 9px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.appstore-badge { margin-top: 18px; }
.appstore-badge:hover,
.store-badge:hover { transform: translateY(-1px); opacity: 0.92; }
.appstore-badge img,
.store-badge img { display: block; height: 50px; width: auto; }
.store-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 18px;
}
.store-badges-center { justify-content: center; }
.section-downloads { margin-top: var(--space-xl); }

.hero-stat-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
  margin-top: 18px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.hero-stat-bar span {
  padding: 0 12px;
  border-right: 1px solid var(--border);
}
.hero-stat-bar span:first-child { padding-left: 0; }
.hero-stat-bar span:last-child { border-right: 0; padding-right: 0; }
@media (max-width: 520px) {
  .hero-stat-bar {
    display: grid;
    gap: 6px;
  }
  .hero-stat-bar span {
    padding: 0;
    border: 0;
  }
}

.hero-meta .hero-aside {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
  opacity: 0.85;
  max-width: 44ch;
}

/* --- Feature row --- */

section { padding: clamp(42px, 6.5vw, 78px) 0; }

.section-header { margin-bottom: var(--space-xl); }
.section-header .eyebrow { display: block; margin-bottom: 8px; }
.section-header h2 { margin: 0; max-width: 18ch; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
@media (max-width: 800px) {
  .features { grid-template-columns: 1fr; }
}
.feature {
  padding: var(--space-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.feature .icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(255, 184, 77, 0.15);
  border: 1px solid rgba(255, 184, 77, 0.4);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 14px;
}
.feature .icon svg { width: 20px; height: 20px; }
.feature h3 {
  font-size: 18px; font-weight: 600;
  margin: 0 0 6px;
  color: var(--text-primary);
}
.feature p { margin: 0; color: var(--text-secondary); font-size: 14px; }

/* --- Events callout --- */

.events-callout {
  padding: clamp(40px, 6vw, 64px);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 184, 77, 0.25), transparent 50%),
    linear-gradient(135deg, #1f1408, #0F0F12 75%);
  border: 1px solid rgba(255, 184, 77, 0.35);
}
.events-callout h2 { margin-top: 0; max-width: 14ch; }
.events-callout .lead { color: var(--text-secondary); font-size: 17px; max-width: 50ch; }
.events-callout .pricing-strip {
  margin-top: var(--space-lg);
  display: inline-flex; gap: 10px; align-items: baseline;
  padding: 10px 16px;
  background: rgba(255, 184, 77, 0.12);
  border: 1px solid rgba(255, 184, 77, 0.4);
  border-radius: var(--radius-pill);
  color: var(--accent);
  font-weight: 700;
}

/* --- Pricing tier list (used on landing + pricing page) --- */

.tiers { display: grid; gap: 10px; }
.tier {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}
.tier.popular {
  border-color: var(--accent);
  background: rgba(255, 184, 77, 0.06);
}
.tier .meta { display: flex; flex-direction: column; }
.tier .label { font-weight: 600; font-size: 15px; }
.tier .sub   { font-size: 12px; color: var(--text-secondary); }
.tier .price { font-weight: 800; font-size: 18px; color: var(--accent); font-variant-numeric: tabular-nums; }

/* --- Footer --- */

footer {
  padding: var(--space-xl) 0 var(--space-lg);
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
}
footer .row { justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a:hover { color: var(--text-primary); }
.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-links a { color: var(--text-secondary); }

/* --- Legal pages --- */

.legal-page {
  padding-bottom: var(--space-xxl);
}
.legal-hero {
  padding: clamp(38px, 6vw, 74px) 0 var(--space-lg);
}
.legal-hero h1 {
  margin: 10px 0 14px;
  letter-spacing: 0;
}
.legal-hero p {
  margin: 0;
  max-width: 64ch;
}
.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.legal-toc a {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 7px;
}
.legal-toc a:hover,
.legal-toc a.active {
  color: var(--text-primary);
  background: var(--surface-elevated);
}
.legal-document {
  max-width: 820px;
}
.legal-document a,
.legal-note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-callout {
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  border: 1px solid rgba(255, 184, 77, 0.35);
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 184, 77, 0.16), transparent 44%),
    var(--surface);
}
.legal-callout p {
  margin: 8px 0 0;
  color: var(--text-primary);
}
.legal-section {
  padding: 0 0 var(--space-xl);
}
.legal-section h2 {
  margin: 0 0 12px;
  color: var(--text-primary);
  font-size: 22px;
  line-height: 1.2;
}
.legal-section p,
.legal-section li {
  color: var(--text-secondary);
}
.legal-section p {
  margin: 0 0 14px;
}
.legal-section ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}
.legal-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.legal-table th,
.legal-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}
.legal-table th {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.legal-table td {
  color: var(--text-secondary);
}
.legal-table td:first-child {
  color: var(--text-primary);
  font-weight: 800;
}
.legal-table tr:last-child th,
.legal-table tr:last-child td {
  border-bottom: 0;
}
.legal-note {
  margin: 12px 0 0;
  max-width: 54ch;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
}
@media (max-width: 820px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .legal-toc {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .legal-toc a {
    text-align: center;
  }
}

/* --- Join + Event app pages --- */

.app-shell {
  min-height: 100vh;
  display: flex; flex-direction: column;
}
.app-shell main {
  flex: 1;
  padding: var(--space-xl) 0 var(--space-xxl);
}

.event-hero {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 184, 77, 0.3), transparent 50%),
    linear-gradient(135deg, #281A0C, #0F0F12);
  border: 1px solid rgba(255, 184, 77, 0.3);
  margin-bottom: var(--space-lg);
  position: relative;
  overflow: hidden;
}
.event-hero .eyebrow { display: flex; align-items: center; gap: 6px; }
.event-hero h1 { margin: 8px 0 var(--space-sm); font-size: clamp(32px, 6vw, 56px); font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }
.event-hero .stats { display: flex; gap: 16px; color: var(--text-secondary); font-size: 13px; }
.event-hero .stat { display: inline-flex; align-items: center; gap: 6px; }

.toolbar {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.media-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface-elevated);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}
.media-tile img,
.media-tile video {
  width: 100%; height: 100%; object-fit: cover;
}
.media-tile .badges {
  position: absolute; bottom: 6px; right: 6px;
  display: flex; gap: 4px;
  font-size: 11px;
}
.media-tile .badges .pill {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  padding: 3px 7px;
  border-radius: var(--radius-pill);
}
.media-tile .contributor {
  position: absolute; top: 6px; left: 6px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--bg);
  font-size: 10px; font-weight: 800;
  border: 1.2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.media-tile .video-icon {
  position: absolute; top: 6px; right: 6px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  padding: 4px;
  color: white;
}

/* --- Forms --- */

.input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 16px;
  outline: none;
}
.input:focus { border-color: var(--accent); }
.input.code {
  font-family: var(--font-mono);
  letter-spacing: 6px;
  font-weight: 700;
  font-size: 24px;
  text-align: center;
  text-transform: uppercase;
}

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-md); }
.field label {
  font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--text-secondary); font-weight: 700;
}

/* --- Upload area --- */

.uploader {
  position: relative;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}
.uploader:hover { border-color: var(--accent); background: rgba(255, 184, 77, 0.05); }
.uploader.dragging { border-color: var(--accent); background: rgba(255, 184, 77, 0.08); }
.uploader input[type="file"] { display: none; }
.uploader strong { color: var(--text-primary); font-weight: 600; }

.upload-progress {
  margin-top: var(--space-sm);
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--surface-elevated);
  overflow: hidden;
}
.upload-progress .bar { height: 100%; background: var(--accent); width: 0%; transition: width 200ms ease; }

/* --- Toast --- */

.toast {
  position: fixed;
  top: 24px; left: 50%; transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--accent);
  color: var(--text-primary);
  padding: 12px 18px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  z-index: 999;
  font-size: 13px; font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
}
.toast.shown { opacity: 1; transform: translateX(-50%) translateY(0); }

/* --- Empty state --- */

.empty {
  text-align: center;
  padding: var(--space-xxl) var(--space-md);
  color: var(--text-secondary);
}
.empty h3 { color: var(--text-primary); font-weight: 600; margin: 0 0 6px; }

/* --- QR card --- */

.qr-card {
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
  padding: var(--space-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.qr-card img { background: var(--bg); padding: 8px; border-radius: var(--radius-md); }
.qr-card .code {
  font-family: var(--font-mono);
  letter-spacing: 6px;
  font-weight: 800;
  font-size: 22px;
}

/* =========================================================================
   PREMIUM MARKETING - added in the redesign pass.
   All new components below. Existing tokens above are reused.
   ========================================================================= */

/* Subtle film-grain overlay layered above the whole page background.
   Pure SVG turbulence - no image hit. */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  opacity: 0.035;
  z-index: 1;
  mix-blend-mode: overlay;
  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.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* All content sits above the grain. */
body > * { position: relative; z-index: 2; }
body > .grain { z-index: 1; }

/* --- Marketing nav with mobile drawer --- */

/* Higher specificity than `.nav-links a` so the pill text/icon don't
   inherit the muted link colour (which made it dark-on-dark). */
.nav-links a.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--text-primary);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 13px;
}
.nav-links a.nav-cta:hover { color: var(--bg); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 16px; height: 1.5px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}
/* Collapse the full link row to the hamburger while there's still room -
   below this the links + CTA overflow and clip "Get the app". */
@media (max-width: 1100px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-toggle { display: inline-flex; }
}

.drawer {
  position: fixed; inset: 0;
  /* Theme-aware so the links (which use text-primary) stay readable -
     was hardcoded near-black, which made dark cream-theme text invisible. */
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 97%, transparent);
  backdrop-filter: blur(20px);
  z-index: 100;
  display: none;
  flex-direction: column;
  padding: 72px var(--space-lg) var(--space-lg);
}
.drawer.open { display: flex; }
.drawer a {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.drawer .close {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 18px;
}

/* --- Hero ----------------------------------------------------------------- */

/* Centered hero: headline + one line + CTAs stacked and centered, with a
   single big product screen below. Calmer, more of a "welcome". */
.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(34px, 5vw, 60px);
}
.hero-content,
.hero-meta.hero-content {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  background: none; background-color: transparent;
  border: 0; border-radius: 0; box-shadow: none; padding: 0;
}
.hero-content .lead { margin-left: auto; margin-right: auto; }
.hero-content .hero-cta { justify-content: center; align-items: center; }
.hero-proof { text-align: center; }
/* Single hero phone, upright + centered, riding the glow.
   (Sizing lives in the canonical .hero-devices block below.) */
.hero-visual { width: 100%; display: flex; justify-content: center; }
.hero-meta .trust {
  margin-top: 18px;
  font-size: 12px;
  color: var(--text-secondary);
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-meta .trust::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #6CD9B9;
  box-shadow: 0 0 12px #6CD9B9;
}

/* iPhone mockup - pure CSS frame containing a miniature roll detail. */

.phone {
  --frame: 30px;
  --w: clamp(300px, 40vw, 420px);
  position: relative;
  width: var(--w);
  aspect-ratio: 9 / 19;
  margin: 0 auto;
  border-radius: 46px;
  background:
    linear-gradient(160deg, #2a2a2e, #0d0d0f 70%),
    #0d0d0f;
  padding: 12px;
  box-shadow:
    0 60px 80px rgba(0, 0, 0, 0.6),
    0 30px 40px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: rotate(-1deg);
}
.phone::before {
  content: '';
  position: absolute;
  top: 18px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 24px;
  background: #000;
  border-radius: 14px;
  z-index: 5;
}
.phone .screen {
  width: 100%; height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: var(--bg);
  position: relative;
  border: 1px solid #000;
}

/* Float + glow halo behind the phone */
.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1200px;
}
.phone-stage::before {
  content: '';
  position: absolute;
  inset: 0% -8%;
  background: radial-gradient(circle at 50% 45%,
    rgba(255, 184, 77, 0.13) 0%, transparent 62%);
  filter: blur(24px);
  z-index: -1;
}
.phone {
  animation: phoneFloat 9s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%, 100% { transform: rotate(-1deg) translateY(0); }
  50%      { transform: rotate(-1deg) translateY(-6px); }
}

/* Two faint stacked cards behind the phone - depth only, kept subtle so
   the phone stays the clear focal point. */
.float-photos {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.float-photo {
  position: absolute;
  top: 8%; left: 50%;
  width: clamp(240px, 32vw, 340px);
  aspect-ratio: 9 / 18;
  border-radius: 36px;
  background: linear-gradient(160deg, #23232a, #121214);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 40px 70px rgba(0, 0, 0, 0.45);
  transform-origin: center;
}
.float-photo:nth-child(1) {
  transform: translateX(-62%) rotate(-9deg);
  opacity: 0.45;
  animation: floatA 12s ease-in-out infinite;
}
.float-photo:nth-child(2) {
  transform: translateX(-38%) rotate(7deg);
  opacity: 0.30;
  animation: floatB 14s ease-in-out infinite;
}
@keyframes floatA { 0%,100% { transform: translateX(-62%) rotate(-9deg) translateY(0); } 50% { transform: translateX(-62%) rotate(-9deg) translateY(-7px); } }
@keyframes floatB { 0%,100% { transform: translateX(-38%) rotate(7deg) translateY(0); }  50% { transform: translateX(-38%) rotate(7deg) translateY(7px); } }

/* --- Mock roll detail inside the phone screen --- */

.mock-screen {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  padding: 32px 12px 0;
  background:
    radial-gradient(circle at 80% -10%, rgba(255, 184, 77, 0.2), transparent 50%),
    var(--bg);
  color: var(--text-primary);
}
.mock-statusbar {
  display: flex; justify-content: space-between;
  font-size: 9px; font-weight: 700; opacity: 0.65;
  padding: 0 4px 6px;
}
.mock-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 0 10px;
}
.mock-toolbar .avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 10px;
  color: var(--bg);
}
.mock-toolbar .icons { display: flex; gap: 4px; }
.mock-toolbar .icons span {
  width: 22px; height: 22px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 50%;
}
.mock-hero {
  height: 110px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 184, 77, 0.4), transparent 60%),
    linear-gradient(135deg, #281A0C, #0F0F12);
  border: 1px solid rgba(255, 184, 77, 0.4);
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}
.mock-hero::before {
  content: 'BDAY';
  position: absolute; bottom: 8px; left: 10px;
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.mock-hero::after {
  content: '🎉 PARTY';
  position: absolute; top: 8px; left: 10px;
  font-size: 7px; font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--accent);
}
.mock-pills {
  display: flex; gap: 6px;
  font-size: 8px;
  margin-bottom: 8px;
}
.mock-pills .pill {
  flex: 1;
  padding: 8px;
  border-radius: 10px;
  background: var(--text-primary);
  color: var(--bg);
  text-align: center;
  font-weight: 700;
}
.mock-pills .pill.ghost {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.mock-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px;
}
.mock-card .icon {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(255, 184, 77, 0.18);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
}
.mock-card .text { flex: 1; font-size: 9px; font-weight: 600; }
.mock-card .meta { font-size: 8px; color: var(--text-secondary); }
.mock-tabs {
  display: flex; gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  margin: 6px 0;
  font-size: 8px;
}
.mock-tabs span {
  flex: 1; text-align: center;
  padding: 4px 6px;
  border-radius: 999px;
  color: var(--text-secondary);
  font-weight: 600;
}
.mock-tabs span.active {
  background: var(--text-primary);
  color: var(--bg);
}
.mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.mock-grid div {
  aspect-ratio: 1;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--surface-elevated), var(--surface));
  position: relative;
}
.mock-grid div::before {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.mock-grid div:nth-child(1)::before { background: #6CD9B9; }
.mock-grid div:nth-child(2)::before { background: #FF8295; }
.mock-grid div:nth-child(3)::before { background: #B57BFF; }
.mock-grid div:nth-child(4)::before { background: var(--accent); }
.mock-grid div:nth-child(5)::before { background: #3F8EFC; }
.mock-grid div:nth-child(6)::before { background: #FF8A4C; }

/* --- Section heading shared --- */

.section-head {
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 46px);
}
.section-head .eyebrow { display: block; margin-bottom: 10px; }
.section-head h2 { margin: 0 auto; max-width: 18ch; }
.section-head p {
  margin-top: 14px;
  max-width: 52ch;
  margin-left: auto; margin-right: auto;
  color: var(--text-secondary);
  font-size: 16px;
}

/* --- How it works (numbered cards) --- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 22px);
  align-items: stretch;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; } }

.step {
  padding: clamp(18px, 2vw, 26px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  text-align: center;
  /* Flex column so every card is equal height and the phone sits flush at
     the top regardless of how many lines the caption wraps to. */
  display: flex;
  flex-direction: column;
}
.step .step-shot { flex: 0 0 auto; }
.step .num {
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 700;
  color: rgba(255, 184, 77, 0.9);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 4px 0 8px;
}
.step h3 { font-size: 17px; margin: 4px 0 6px; font-weight: 700; }
.step p { margin: 0 auto; color: var(--text-secondary); font-size: 13.5px; line-height: 1.5; max-width: 30ch; }
.step::after {
  content: ''; position: absolute; right: -20px; bottom: -20px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(255, 184, 77, 0.12), transparent 60%);
}

/* --- Use cases (consumer rolls) --- */

.usecases {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
@media (max-width: 1000px) { .usecases { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .usecases { grid-template-columns: 1fr; } }
.usecase {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px;
  min-height: 260px;
  display: flex; flex-direction: column; justify-content: flex-end;
  isolation: isolate;
}
.usecase::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gradient, linear-gradient(160deg, #321a14, #0d0d0f));
  z-index: -1;
}
.usecase::after {
  content: ''; position: absolute; inset: auto -30% -40% auto;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255, 184, 77, 0.15), transparent 60%);
  z-index: -1;
}
.usecase .emoji {
  font-size: 38px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  margin-bottom: auto;
}
.usecase h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.usecase p { margin: 0; font-size: 13px; color: var(--text-secondary); }
.usecase.trip      { --gradient: linear-gradient(160deg, #1f2c44, #0d0d0f); }
.usecase.party     { --gradient: linear-gradient(160deg, #3d0e1e, #0d0d0f); }
.usecase.birthday  { --gradient: linear-gradient(160deg, #3a1c3d, #0d0d0f); }
.usecase.pet       { --gradient: linear-gradient(160deg, #133e2f, #0d0d0f); }
.usecase.friends   { --gradient: linear-gradient(160deg, #2c2410, #0d0d0f); }

/* --- Live roll feature with callouts --- */

/* Feature grid (replaced the cluttered 3-phone cluster). */
.live-callouts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 2vw, 20px);
  max-width: 920px;
  margin: 0 auto;
}
@media (max-width: 640px) { .live-callouts { grid-template-columns: 1fr; } }
.callout {
  padding: clamp(18px, 2vw, 24px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex; gap: 14px; align-items: flex-start;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
@media (hover: hover) {
  .callout:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: rgba(255, 184, 77, 0.45);
  }
}
.callout .icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255, 184, 77, 0.18);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.callout h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.callout p  { margin: 0; font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* --- Recap templates (six cards with real mode previews) --- */

.recaps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .recaps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .recaps { grid-template-columns: 1fr; } }

.recap-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  aspect-ratio: 9 / 16;
  isolation: isolate;
  box-shadow: 0 24px 48px rgba(45, 31, 22, 0.14);
}
.recap-card::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(13, 13, 15, 0), rgba(13, 13, 15, 0.78));
}
.recap-card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #0d0d0f;
}
.recap-card .label {
  position: absolute; bottom: 12px; left: 14px; right: 14px;
  display: flex; justify-content: space-between; align-items: flex-end;
  z-index: 3;
}
.recap-card .label h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #F5EFE6;
  text-shadow: 0 2px 14px rgba(0,0,0,0.45);
}
.recap-card .label p {
  margin: 4px 0 0;
  font-size: 11px;
  color: rgba(245, 239, 230, 0.84);
  text-shadow: 0 2px 10px rgba(0,0,0,0.42);
}
.recap-card .label .badge {
  font-size: 9px; letter-spacing: 1.4px; font-weight: 800;
  background: #F5EFE6; color: #17120E;
  padding: 3px 6px; border-radius: 4px;
}

/* --- Editions: souvenir newspaper front pages --- */

.editions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  align-items: start;
}
@media (max-width: 900px) { .editions { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (max-width: 560px) { .editions { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; } }

.edition-card { margin: 0; }

.edition-paper {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  aspect-ratio: 1055 / 1491;
  box-shadow: 0 24px 48px rgba(45, 31, 22, 0.18);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.edition-paper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Scatter the prints like souvenirs on a table; straighten on hover. */
.editions .edition-card:nth-child(3n+1) .edition-paper { transform: rotate(-2deg); }
.editions .edition-card:nth-child(3n+2) .edition-paper { transform: rotate(1.2deg); }
.editions .edition-card:nth-child(3n)   .edition-paper { transform: rotate(2.2deg); }
.edition-paper:hover {
  transform: rotate(0) translateY(-4px);
  box-shadow: 0 30px 60px rgba(45, 31, 22, 0.26);
}

.edition-card figcaption { margin-top: 14px; text-align: center; }
.edition-card figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.edition-card figcaption span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-secondary);
}

@media (max-width: 560px) {
  .editions .edition-card .edition-paper { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .edition-paper { transition: none; }
  .editions .edition-card .edition-paper { transform: none; }
}

/* --- Events product section --- */

.events-section {
  position: relative;
}
.events-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}
@media (max-width: 960px) {
  .events-grid { grid-template-columns: 1fr; }
}
.events-mock-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.qr-mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
  align-items: center;
  text-align: center;
}
.qr-mock svg { width: 100%; height: auto; background: var(--text-primary); padding: 8px; border-radius: 8px; }
.qr-mock .code {
  font-family: var(--font-mono);
  font-weight: 800;
  letter-spacing: 4px;
  font-size: 16px;
}
.qr-mock .label {
  font-size: 9px; letter-spacing: 1.6px; font-weight: 800;
  color: var(--accent);
}
.event-feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
}
.event-feature-card h4 {
  margin: 6px 0 2px;
  font-size: 14px; font-weight: 600;
}
.event-feature-card p { margin: 0; font-size: 12px; color: var(--text-secondary); }
.event-feature-card .icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(255, 184, 77, 0.15);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.event-feature-wide { grid-column: 1 / -1; }
.event-side-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.event-side-shots .appframe:first-child { transform: rotate(-2deg); }
.event-side-shots .appframe:last-child { transform: rotate(2deg); }

/* Events closer - one product shot + the differentiators not already in the
   5-step flow, in a single tidy grid. Replaced the 3-phone + scattered-card
   pile-up. */
.event-closer {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin-top: clamp(40px, 6vw, 76px);
}
@media (max-width: 900px) { .event-closer { grid-template-columns: 1fr; gap: 34px; } }
.event-closer-visual { display: flex; justify-content: center; }
.event-closer-visual .appframe { width: min(100%, 300px); transform: rotate(-1.5deg); }
.event-closer-body { max-width: 580px; }
.event-closer-body h3 { font-size: clamp(24px, 3vw, 34px); margin: 8px 0 10px; letter-spacing: -0.01em; }
.event-closer-lead { color: var(--text-secondary); font-size: 15px; line-height: 1.6; margin: 0 0 24px; max-width: 46ch; }
.event-feature-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 18px 22px; margin-bottom: 26px;
}
@media (max-width: 520px) { .event-feature-grid { grid-template-columns: 1fr; } }
.event-feat { display: flex; gap: 12px; align-items: flex-start; }
.event-feat .ic {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255, 184, 77, 0.16);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.event-feat h4 { margin: 0 0 2px; font-size: 14.5px; font-weight: 700; }
.event-feat p { margin: 0; font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.event-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.event-actions .btn.amber {
  background: linear-gradient(135deg, #FFB23D 0%, #FF7A1A 100%);
  color: #2A1400;
  box-shadow: 0 10px 24px rgba(255, 122, 26, 0.32);
  font-weight: 700;
}
.event-actions .btn.amber:hover { filter: saturate(1.05) brightness(1.02); transform: translateY(-2px); }

/* --- Premium pricing cards --- */

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 960px) { .tier-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tier-grid { grid-template-columns: 1fr; } }
.tier-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
}
.tier-card.popular {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 184, 77, 0.25), transparent 60%),
    var(--surface);
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.4);
}
.tier-card .pop-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--bg);
  font-size: 9px; letter-spacing: 1.4px; font-weight: 900;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.tier-card .seat {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1;
}
.tier-card .seat-sub {
  font-size: 10px; letter-spacing: 1.6px; font-weight: 800;
  color: var(--text-secondary);
  margin-top: 4px;
}
.tier-card .price {
  font-size: 24px; font-weight: 800;
  color: var(--accent);
  margin: 14px 0 6px;
}
.tier-card .desc {
  font-size: 12px; color: var(--text-secondary);
  min-height: 32px;
}

.addons {
  margin-top: var(--space-xl);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 520px) { .addons { grid-template-columns: 1fr; } }
.addon {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex; justify-content: space-between; align-items: center;
}
.addon .meta { font-size: 13px; font-weight: 600; }
.addon .price { font-size: 14px; font-weight: 800; color: var(--accent); }

/* --- Keepsakes (coming soon) --- */

.keepsakes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .keepsakes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .keepsakes { grid-template-columns: 1fr; } }
.keepsake {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  position: relative;
  overflow: hidden;
}
.keepsake .soon {
  position: absolute; top: 12px; right: 12px;
  font-size: 8px; letter-spacing: 1.6px; font-weight: 800;
  color: var(--accent);
  background: rgba(255, 184, 77, 0.15);
  padding: 3px 7px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 184, 77, 0.4);
}
.keepsake .visual {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--surface-elevated), var(--surface));
  position: relative;
  overflow: hidden;
}
.keepsake.prints  .visual { background: linear-gradient(135deg, #e8d6b8, #8b6c40); }
.keepsake.book    .visual { background: linear-gradient(135deg, #3d2818, #1a0e08); }
.keepsake.poster  .visual { background: linear-gradient(135deg, #0e0d0b, #2a271f); }
.keepsake.magnets .visual { background: linear-gradient(135deg, #ff8295, #b57bff); }
.keepsake h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.keepsake p  { margin: 0; font-size: 12px; color: var(--text-secondary); }
.keepsake.book,
.keepsake.poster {
  background: #171719;
  color: #F5EFE6;
}
.keepsake.book h3,
.keepsake.poster h3 {
  color: #F5EFE6;
}
.keepsake.book p,
.keepsake.poster p {
  color: rgba(245, 239, 230, 0.82);
}

/* --- Privacy --- */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: var(--space-xl);
}
@media (max-width: 900px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 13px;
  display: inline-flex; align-items: center; gap: 8px;
}
.trust-pill::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #6CD9B9;
  box-shadow: 0 0 8px #6CD9B9;
}

/* --- Final CTA --- */

.final-cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 56px);
  background:
    radial-gradient(circle at 80% 30%, rgba(255, 184, 77, 0.28), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(255, 92, 62, 0.16), transparent 50%),
    linear-gradient(140deg, #1a1108, #0d0d0f);
  border: 1px solid rgba(255, 184, 77, 0.3);
  text-align: center;
}
.final-cta h2 { margin: 0 auto 18px; max-width: 18ch; color: #F5EFE6; }
.final-cta .eyebrow { color: #FFB84D; }
.final-cta .lead { color: #F5EFE6; font-size: 16px; max-width: 48ch; margin: 0 auto 28px; }
.final-cta .btn.ghost {
  color: #F5EFE6;
  border-color: rgba(245, 239, 230, 0.34);
}
.final-cta .cta-row { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* Background filmstrip behind final CTA */
.filmstrip-bg {
  position: absolute; inset: auto 0 -10% 0;
  height: 60px;
  display: flex; gap: 4px;
  opacity: 0.18;
  pointer-events: none;
}
.filmstrip-bg div {
  width: 60px; aspect-ratio: 1;
  background: linear-gradient(135deg, var(--surface-elevated), var(--surface));
  flex-shrink: 0;
  border-radius: 2px;
}

/* --- Footer (expanded) --- */

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  padding: var(--space-xxl) 0 var(--space-lg);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid .col-brand p { color: var(--text-secondary); margin: 8px 0 0; font-size: 13px; max-width: 36ch; }
.footer-grid h5 {
  font-size: 11px; letter-spacing: 1.6px; font-weight: 800;
  color: var(--accent);
  margin: 0 0 12px;
  text-transform: uppercase;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 13px; }
.footer-grid a { color: var(--text-secondary); }
.footer-grid a:hover { color: var(--text-primary); }
.footer-bottom {
  display: flex; justify-content: space-between;
  border-top: 1px solid var(--border);
  padding: var(--space-md) 0 var(--space-xl);
  font-size: 12px;
  color: var(--text-secondary);
}

/* --- Testimonials --- */

.social-proof { padding-top: clamp(24px, 4vw, 46px); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.testimonial-card {
  background: #FDFAF7;
  color: #17120E;
  border: 1px solid rgba(92, 58, 30, 0.14);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: 0 16px 34px rgba(77, 54, 32, 0.10);
}
.testimonial-card .stars {
  color: #B8862F;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.testimonial-card p {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.25;
}
.testimonial-card .person {
  color: #6E6256;
  font-size: 13px;
}
.testimonial-card strong { color: #17120E; }
/* Hover: the card lifts, tilts and warms up while its stars pop - a small
   bit of life on pointer devices. */
@media (hover: hover) {
  .testimonial-card {
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.4s ease, border-color 0.4s ease;
    will-change: transform;
  }
  .testimonial-card:hover {
    transform: translateY(-10px) scale(1.025) rotate(-0.5deg);
    box-shadow: 0 34px 64px rgba(77, 54, 32, 0.24);
    border-color: rgba(184, 134, 47, 0.55);
  }
  .testimonial-card .stars {
    display: inline-block; transform-origin: left center;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), letter-spacing 0.4s ease;
  }
  .testimonial-card:hover .stars {
    transform: scale(1.14);
    letter-spacing: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .testimonial-card, .testimonial-card .stars { transition: none; }
  .testimonial-card:hover { transform: none; }
}
@media (max-width: 820px) {
  .testimonial-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    margin-inline: -20px;
    padding-inline: 20px;
  }
  .testimonial-card {
    flex: 0 0 min(86vw, 360px);
    scroll-snap-align: start;
  }
}

/* --- Why YourTake --- */

.why-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 260px);
  gap: clamp(18px, 4vw, 40px);
  align-items: center;
  max-width: 880px;
  margin: 0 auto;
}
.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.why-visual {
  width: 100%;
  transform: rotate(2deg);
}
@media (max-width: 760px) {
  .why-layout {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
  .why-visual {
    max-width: 240px;
    margin: 0 auto;
  }
}
.why-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 600;
}
.why-row:last-child { border-bottom: 0; }
.why-row strong {
  color: #B8862F;
  font-size: 20px;
}

/* --- Pricing proof + included chips --- */

.pricing-proof {
  display: grid;
  grid-template-columns: minmax(160px, 230px) 1fr;
  gap: clamp(18px, 4vw, 36px);
  align-items: center;
  margin: 0 auto var(--space-xl);
  max-width: 820px;
}
.pricing-proof .appframe {
  width: 100%;
  transform: rotate(-2deg);
}
.included-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 3vw, 26px);
}
.included-panel .eyebrow { display: block; margin-bottom: 12px; }
.included-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.included-chips span {
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: var(--radius-pill);
  background: rgba(255, 184, 77, 0.12);
  border: 1px solid rgba(255, 184, 77, 0.32);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
}
.reveal-lead {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  max-width: 46ch;
}
@media (max-width: 720px) {
  .pricing-proof { grid-template-columns: 1fr; max-width: 360px; }
}

/* Reveal "beats" - a large phone/card on one side, copy on the other,
   alternating sides. Media is intentionally big so the on-screen UI reads. */
.reveal-beat {
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  max-width: 1040px;
  margin: clamp(44px, 7vw, 96px) auto 0;
}
.reveal-beat.flip { grid-template-columns: 1fr minmax(300px, 420px); }
.reveal-beat.flip .reveal-media { order: 2; }
.reveal-media { width: 100%; }
.reveal-media .appframe { transform: rotate(-2deg); }
.reveal-copy .eyebrow { display: block; margin-bottom: 12px; }
.reveal-h {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3.1vw, 40px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--text-primary);
  text-wrap: balance;
}
.optional-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  margin-bottom: 16px;
  border-radius: var(--radius-pill);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
}
.settings-card {
  margin: 0;
  border-radius: 30px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  padding: 12px;
  box-shadow: 0 36px 80px rgba(60, 40, 15, 0.24);
  transform: rotate(1.6deg);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.settings-card:hover { transform: rotate(0deg) scale(1.015); }
.settings-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--border);
}
@media (max-width: 820px) {
  .reveal-beat,
  .reveal-beat.flip { grid-template-columns: 1fr; max-width: 440px; gap: 28px; }
  .reveal-beat.flip .reveal-media { order: -1; }
  .reveal-media { max-width: 360px; margin: 0 auto; }
}

/* --- Compact event pricing --- */
.mini-tiers {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  max-width: 880px;
  margin: 0 auto;
}
.mini-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 20px 10px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.mini-tier.popular {
  border-color: var(--accent);
  box-shadow: 0 14px 34px rgba(184, 106, 18, 0.16);
}
.mt-badge {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--bg);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.mt-seat {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  color: var(--text-primary);
}
.mt-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.mt-price {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--accent);
}
.mini-note {
  max-width: 52ch;
  margin: 22px auto 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
}
@media (max-width: 720px) {
  .mini-tiers { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 420px) {
  .mini-tiers { grid-template-columns: repeat(2, 1fr); }
}

/* --- Organiser subscription pricing --- */
.organiser-pricing {
  padding: var(--space-xxl) 0;
  background: var(--events-bg);
}
.billing-toggle {
  display: inline-flex;
  gap: 4px;
  margin-top: 22px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
}
.billing-toggle button {
  border: 0;
  border-radius: var(--radius-pill);
  padding: 9px 14px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.billing-toggle button[aria-pressed="true"] {
  background: var(--text-primary);
  color: var(--bg);
}
.organiser-pricing[data-billing="annual"] .price-monthly,
.organiser-pricing[data-billing="monthly"] .price-annual {
  display: none;
}
.organiser-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 980px;
  margin: 0 auto;
}
.organiser-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.organiser-plan-card.popular {
  border-color: var(--accent);
  border-width: 2px;
  box-shadow: 0 18px 38px rgba(184, 106, 18, 0.18);
}
.plan-save-badge {
  align-self: flex-end;
  padding: 3px 0;
  color: var(--text-primary);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-wrap: balance;
}
.organiser-plan-card.popular .plan-save-badge {
  color: var(--accent);
}
.plan-name {
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
}
.plan-price {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: 0;
}
.plan-sub {
  min-height: 34px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
}
.plan-line {
  margin: 0;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 800;
}
.organiser-plan-cta {
  width: 100%;
  margin-top: 2px;
}
.plan-features {
  display: grid;
  gap: 7px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.plan-features li {
  position: relative;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.35;
}
.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 900;
}
.organiser-note {
  max-width: 68ch;
  margin: 22px auto 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
}
.organiser-audience {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 960px;
  margin: 26px auto 0;
  color: var(--text-secondary);
  font-size: 13px;
}
.organiser-audience div {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.organiser-audience span {
  flex: 0 0 auto;
  line-height: 1.2;
}
.organiser-audience strong {
  display: block;
  color: var(--text-primary);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.organiser-bottom-cta {
  margin-top: 28px;
  text-align: center;
}
.organiser-bottom-cta p {
  margin: 0 0 4px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 20px;
}
.organiser-bottom-cta a {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}
@media (max-width: 900px) {
  .organiser-plan-grid { grid-template-columns: 1fr; max-width: 520px; }
  .organiser-plan-card.popular { order: -1; }
  .organiser-audience { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 520px) {
  .billing-toggle { width: 100%; }
  .billing-toggle button {
    flex: 1 1 0;
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* --- FAQ --- */

.faq-list {
  display: grid;
  gap: 10px;
}
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  color: var(--text-primary);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
}
.faq-list details[open] summary::after { content: '-'; }
.faq-list details p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--text-secondary);
  font-size: 14px;
}

/* --- Scroll reveal hooks --- */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}
[data-reveal][data-reveal-delay="1"] { transition-delay: 80ms; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 160ms; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 240ms; }
[data-reveal][data-reveal-delay="4"] { transition-delay: 320ms; }
[data-reveal][data-reveal-delay="5"] { transition-delay: 400ms; }

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

/* =========================================================================
   VISUAL POLISH PASS - hero product chips, polaroid use-cases, event flow.
   ========================================================================= */

/* --- Hero floating product chips around the phone --- */

.hero-chips {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}
.hero-chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 9px;
  max-width: 184px;
  padding: 10px 13px;
  background: rgba(20, 20, 23, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  font-size: 13px; font-weight: 600; line-height: 1.25;
  color: #FFFFFF;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  /* Entrance (plays once on load, staggered) + gentle idle float. */
  opacity: 0;
  animation:
    calloutIn 0.6s ease forwards,
    chipFloat 7s ease-in-out infinite;
}
.hero-chip .ic {
  position: relative;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: rgba(255, 184, 77, 0.16);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-chip .ic svg { width: 17px; height: 17px; }
/* Live "uploading now" dot on the first callout. */
.hero-chip .live-dot {
  position: absolute; top: -2px; right: -2px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #6CD9B9; border: 2px solid rgba(20,20,23,0.92);
  animation: livePulse 2s ease-in-out infinite;
}

/* Four corners framing the product. Small offsets keep them inside the
   visual column's side margins (not over the phone UI, not in the text).
   Per-chip stagger (entrance) + varied float so they don't bob in unison. */
.hero-chip.c1 { top:  6%;    left: 0;    animation-delay: 0.25s, 0.9s; animation-duration: 0.6s, 8s;   }
.hero-chip.c3 { top:  3%;    right: 0;   animation-delay: 0.40s, 1.1s; animation-duration: 0.6s, 9s;   }
.hero-chip.c2 { bottom: 18%; left: -1%;  animation-delay: 0.55s, 1.3s; animation-duration: 0.6s, 8.6s; }
.hero-chip.c4 { bottom: 6%;  right: 2%;  animation-delay: 0.70s, 1.5s; animation-duration: 0.6s, 9.4s; }

@keyframes calloutIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}
@keyframes livePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.35); opacity: 0.6; }
}

@media (max-width: 960px) {
  /* Mobile: keep only 3 key callouts (upload / react+comment / recap) so
     they don't collide with the phone, and pin them tight to the corners. */
  .hero-chip { font-size: 12.5px; max-width: 168px; padding: 9px 12px; }
  .hero-chip.c2 { display: none; }
  .hero-chip.c1 { top: -3%;  left: 0; }
  .hero-chip.c3 { top: -3%;  right: 0; }
  .hero-chip.c4 { bottom: 6%; right: 0; }
}

/* --- Polaroid use-case cards (replace plain emoji blocks) --- */

.polaroid {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0;
  min-height: 320px;
  display: flex; flex-direction: column;
  cursor: default;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.polaroid:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.5);
}
.polaroid .photo {
  flex: 1;
  position: relative;
  min-height: 200px;
  overflow: hidden;
}
.polaroid .photo::after {
  /* Bottom-to-center scrim so the chip + tag stay readable on any bg. */
  content: '';
  position: absolute; inset: 30% 0 0 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.45));
}
.polaroid .tag {
  position: absolute; top: 12px; left: 12px;
  font-size: 9px; letter-spacing: 1.4px; font-weight: 800;
  background: rgba(0, 0, 0, 0.5);
  color: var(--accent);
  padding: 5px 8px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
  z-index: 2;
}
.polaroid .reactions {
  position: absolute; bottom: 12px; right: 12px;
  display: flex; gap: 4px;
  z-index: 2;
}
.polaroid .reactions .r {
  font-size: 10px; font-weight: 800;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  padding: 4px 7px;
  border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; gap: 3px;
}
.polaroid .frame-caption {
  background: #f5f1e8;
  color: #1a1610;
  padding: 14px 16px;
  font-family: var(--font-display);
  display: flex; flex-direction: column; gap: 2px;
}
.polaroid .frame-caption .name {
  font-size: 22px; font-weight: 600; letter-spacing: -0.01em;
}
.polaroid .frame-caption .sub {
  font-family: var(--font-body);
  font-size: 12px; color: #4d4a45;
}

/* Per-category photo "compositions" using pure CSS gradients + dots. */
.polaroid.trip .photo {
  background:
    radial-gradient(circle at 30% 75%, #f7ca40 0 12%, transparent 13%),
    radial-gradient(circle at 75% 65%, #ff8a4c 0 7%, transparent 8%),
    linear-gradient(180deg, #5da6d6 0 55%, #2c6f95 55% 70%, #3a4e3e 70%);
}
.polaroid.party .photo {
  background:
    radial-gradient(circle at 50% 30%, rgba(255,184,77,0.85) 0 6%, transparent 7%),
    radial-gradient(circle at 25% 65%, rgba(255,92,62,0.7) 0 4%, transparent 5%),
    radial-gradient(circle at 80% 70%, rgba(255,130,149,0.7) 0 5%, transparent 6%),
    radial-gradient(circle at 60% 80%, rgba(181,123,255,0.6) 0 3%, transparent 4%),
    linear-gradient(160deg, #3d0e1e, #1a0710);
}
.polaroid.birthday .photo {
  background:
    radial-gradient(circle at 50% 60%, #ffa8b6 0 18%, transparent 19%),
    radial-gradient(circle at 50% 60%, #ff5c8b 0 8%, transparent 9%),
    radial-gradient(circle at 30% 30%, rgba(255,184,77,0.5) 0 6%, transparent 7%),
    radial-gradient(circle at 70% 40%, rgba(255,184,77,0.5) 0 5%, transparent 6%),
    linear-gradient(160deg, #ffe2c7, #fff1e0);
}
.polaroid.pet .photo {
  background:
    radial-gradient(circle at 50% 70%, #2a1810 0 14%, transparent 15%),
    radial-gradient(circle at 50% 55%, #5a3a25 0 10%, transparent 11%),
    radial-gradient(circle at 60% 55%, rgba(255,255,255,0.8) 0 1.5%, transparent 2%),
    radial-gradient(circle at 42% 55%, rgba(255,255,255,0.8) 0 1.5%, transparent 2%),
    linear-gradient(180deg, #c9d5ad 0 65%, #6b8a4f 65%);
}
.polaroid.friends .photo {
  background:
    radial-gradient(circle at 25% 55%, #f5d4a8 0 10%, transparent 11%),
    radial-gradient(circle at 50% 50%, #d9a878 0 12%, transparent 13%),
    radial-gradient(circle at 75% 55%, #a87858 0 10%, transparent 11%),
    linear-gradient(180deg, #fdc56a 0 50%, #cb6b3e 50%);
}

/* Subtle warm border + slight rotation for the polaroid feel. */
.polaroid {
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.4);
}
.usecases .polaroid:nth-child(odd) { transform: rotate(-0.4deg); }
.usecases .polaroid:nth-child(even) { transform: rotate(0.4deg); }
.usecases .polaroid:nth-child(odd):hover  { transform: rotate(-0.4deg) translateY(-4px); }
.usecases .polaroid:nth-child(even):hover { transform: rotate(0.4deg)  translateY(-4px); }

/* --- Event flow (5 numbered steps with connectors) --- */

.event-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  margin: 0 0 var(--space-xl);
}
.event-flow::before {
  /* The amber connector line linking all 5 steps. */
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 2px;
  background-image: linear-gradient(to right,
    rgba(255, 184, 77, 0.5) 50%, transparent 50%);
  background-size: 14px 2px;
  z-index: 0;
}
.event-step {
  position: relative;
  text-align: center;
  padding: 0 6px;
  z-index: 1;
}
.event-step .circle {
  width: 72px; height: 72px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 184, 77, 0.25), transparent 60%),
    var(--bg);
  border: 1.5px solid var(--accent);
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  color: var(--accent);
}
.event-step .circle svg { width: 28px; height: 28px; }
.event-step .num {
  position: absolute; top: -6px; right: -6px;
  background: var(--accent);
  color: var(--bg);
  font-size: 10px; font-weight: 900;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}
.event-step h4 {
  margin: 0 0 4px;
  font-size: 14px; font-weight: 600;
  color: var(--text-primary);
}
.event-step p {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}
@media (max-width: 800px) {
  .event-flow {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .event-flow::before { display: none; }
  .event-step { text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
  .event-step .circle { margin: 0; width: 56px; height: 56px; }
  .event-step .circle svg { width: 22px; height: 22px; }
}

/* Hero meta tweaks for tighter rhythm */
.hero .lead {
  font-size: clamp(15px, 2vw, 19px);
  max-width: 48ch;
}

/* Recap CTA pill - slightly more cinematic on hover */
.recap-card { cursor: default; transition: transform 200ms ease; }
.recap-card:hover { transform: translateY(-4px); }

/* --- Free vs paid comparison (positioning clarifier) --- */

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 800px) { .compare { grid-template-columns: 1fr; } }

.compare-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  isolation: isolate;
}
.compare-card::after {
  content: ''; position: absolute; inset: auto -20% -40% auto;
  width: 320px; height: 320px;
  z-index: -1;
}
.compare-card.free::after {
  background: radial-gradient(circle, rgba(108, 217, 185, 0.18), transparent 60%);
}
.compare-card.paid::after {
  background: radial-gradient(circle, rgba(255, 184, 77, 0.22), transparent 60%);
}
.compare-card.paid {
  border-color: rgba(255, 184, 77, 0.45);
}

.compare-card .tag {
  display: inline-block;
  font-size: 10px; letter-spacing: 1.6px; font-weight: 800;
  padding: 5px 9px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.compare-card.free .tag {
  color: #6CD9B9;
  background: rgba(108, 217, 185, 0.12);
  border: 1px solid rgba(108, 217, 185, 0.4);
}
.compare-card.paid .tag {
  color: var(--accent);
  background: rgba(255, 184, 77, 0.12);
  border: 1px solid rgba(255, 184, 77, 0.4);
}

.compare-card h3 {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 600; letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.compare-card .price-line {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 14px;
}
.compare-card .price-line .big {
  font-family: var(--font-display);
  font-size: 40px; font-weight: 700; letter-spacing: -0.02em;
  line-height: 1;
}
.compare-card.free .price-line .big { color: #6CD9B9; }
.compare-card.paid .price-line .big { color: var(--accent); }
.compare-card .price-line .note {
  font-size: 12px; color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.compare-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 18px;
  max-width: 42ch;
  line-height: 1.55;
}

.compare-card .bullets {
  list-style: none; padding: 0;
  margin: 0 0 22px;
  display: grid; gap: 8px;
  font-size: 13px;
  color: var(--text-primary);
}
.compare-card .bullets li {
  display: flex; align-items: center; gap: 8px;
}
.compare-card .bullets li::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.compare-card.free .bullets li::before { background: #6CD9B9; }
.compare-card.paid .bullets li::before { background: var(--accent); }

/* Tier card hover tilt */
.tier-card { transition: transform 200ms ease, box-shadow 200ms ease; }
.tier-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.4);
}
.tier-card.popular:hover {
  transform: translateY(-10px);
}

/* ─────────────────────────────────────────────────────────────────
   Web app surface - auth, app shell, rolls, create, viewer
   ───────────────────────────────────────────────────────────────── */

.auth-tabs {
  display: flex; gap: 6px; margin: 16px 0 28px;
  border-bottom: 1px solid var(--border);
}
.auth-tab {
  background: transparent; color: var(--text-secondary);
  border: 0; padding: 12px 16px; font-weight: 700; font-size: 13px;
  cursor: pointer; letter-spacing: 0.4px;
}
.auth-tab.active {
  color: var(--text-primary);
  border-bottom: 2px solid var(--accent);
}
.auth-section { padding: 8px 0 40px; }
.optional {
  color: var(--text-secondary); font-weight: 500;
  font-size: 11px; margin-left: 4px;
}

/* App home - list of joined rolls */
.app-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; padding: 32px 0 24px; flex-wrap: wrap;
}
.app-cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.rolls-grid {
  list-style: none; padding: 0; margin: 24px 0 80px;
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.roll-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 0;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.roll-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.3);
  border-color: var(--accent);
}
.roll-card-link {
  display: block; padding: 20px; text-decoration: none; color: inherit;
}
.roll-card-link h3 {
  margin: 8px 0 12px; font-size: 22px; line-height: 1.15;
  color: var(--text-primary);
}
.roll-card-link .stats {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.empty-state {
  text-align: center; padding: 60px 20px;
}
.spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; margin: 0 auto 16px;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Roll viewer */
.roll-layout {
  display: block;
  padding: 24px 0 80px;
  max-width: 920px; margin: 0 auto;
}

/* --- Roll header --------------------------------------------------- */
.roll-header { padding: 4px 0 2px; }
.roll-header .eyebrow {
  display: block; margin-bottom: 10px;
  font-size: 11px; letter-spacing: 3px;
}
.roll-title {
  font-size: clamp(38px, 6.4vw, 60px);
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin: 0 0 18px;
}
.roll-meta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 10px 18px;
}
.roll-meta-item {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; color: var(--text-secondary);
  letter-spacing: 0.01em;
}
.roll-meta-icon {
  color: var(--accent); font-size: 13px; line-height: 1;
  opacity: 0.9;
}
.roll-invite {
  display: inline-flex; align-items: center; gap: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0; overflow: hidden;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}
.roll-invite:hover { border-color: rgba(240,176,80,0.5); background: rgba(240,176,80,0.06); }
.roll-invite-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--text-secondary);
  padding: 7px 10px 7px 13px;
}
.roll-invite-code {
  font-family: var(--font-mono); font-weight: 700;
  font-size: 13px; letter-spacing: 1.5px; color: var(--text-primary);
  padding: 7px 4px;
}
.roll-invite-action {
  font-size: 13px; color: var(--text-secondary);
  padding: 7px 12px 7px 8px;
  border-left: 1px solid var(--border);
  margin-left: 4px;
}
.roll-invite.copied { border-color: rgba(120,200,120,0.5); background: rgba(120,200,120,0.08); }
.roll-invite.copied .roll-invite-action { color: #8ed18e; }

.roll-whatsapp {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.3px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}
.roll-whatsapp svg { display: block; }
.roll-whatsapp:hover {
  border-color: rgba(37,211,102,0.55);
  background: rgba(37,211,102,0.10);
  color: #25d366;
}

/* --- Contributors face-pile --------------------------------------- */
.contributors {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0 4px;
}
.facepile { display: inline-flex; align-items: center; }
.facepile-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 15px;
  overflow: visible; position: relative;
  border: 2px solid var(--bg, #0d0d0f);
  margin-left: -10px; padding: 0; cursor: pointer;
  transition: transform 140ms ease, margin 200ms ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}
.facepile-avatar:first-child { margin-left: 0; }
.facepile-avatar img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.facepile-avatar > span:not(.facepile-host-dot) {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}
.facepile:hover .facepile-avatar { margin-left: -4px; }
.facepile:hover .facepile-avatar:first-child { margin-left: 0; }
.facepile-avatar:hover, .facepile-avatar.active {
  transform: translateY(-3px) scale(1.06);
}
.facepile-avatar.host { box-shadow: 0 0 0 2px var(--accent), 0 2px 6px rgba(0,0,0,0.35); }
.facepile-host-dot {
  position: absolute; bottom: -1px; right: -1px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 2px solid #0d0d0f;
}
.facepile-avatar.more {
  background: rgba(255,255,255,0.08); color: var(--text-secondary);
  font-size: 12px; cursor: default;
}
.contributors-label {
  font-size: 13px; color: var(--text-secondary);
}
.contributor-pop {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 60;
  display: flex; align-items: center; gap: 12px;
  background: #1a1a1e; border: 1px solid var(--border);
  border-radius: 14px; padding: 12px 16px 12px 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  animation: pop-in 160ms cubic-bezier(0.22, 1, 0.36, 1);
  min-width: 190px;
}
@keyframes pop-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.contributor-pop::before {
  content: ''; position: absolute; top: -6px; left: 18px;
  width: 12px; height: 12px; background: #1a1a1e;
  border-left: 1px solid var(--border); border-top: 1px solid var(--border);
  transform: rotate(45deg);
}
.contributor-pop-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 17px; overflow: hidden;
}
.contributor-pop-avatar img { width: 100%; height: 100%; object-fit: cover; }
.contributor-pop-text { display: flex; flex-direction: column; gap: 2px; }
.contributor-pop-text strong { font-size: 15px; color: var(--text-primary); }
.contributor-pop-role {
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--accent);
}
.roll-toolbar {
  display: flex; gap: 10px; align-items: center;
  margin: 24px 0 16px; flex-wrap: wrap;
}
.invite-pill {
  font-family: 'JetBrains Mono', monospace; letter-spacing: 1px;
  font-weight: 700;
}

.memories-grid {
  display: grid; gap: 4px;
  grid-template-columns: repeat(3, 1fr);
}
@media (min-width: 640px)  { .memories-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .memories-grid { grid-template-columns: repeat(5, 1fr); } }
.memory-tile {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: 8px; cursor: pointer;
  background: #15151a;
}
.memory-tile img, .memory-tile video {
  width: 100%; height: 100%; object-fit: cover;
}
.memory-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 28px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  pointer-events: none;
}
.memory-footer {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
  color: #fff; font-size: 11px;
}
.memory-counts { display: flex; gap: 6px; }

/* Modal */
.modal[open] {
  border: 0; padding: 0; background: transparent;
  max-width: 520px; width: calc(100% - 24px);
  border-radius: 18px;
}
.modal::backdrop { background: rgba(0,0,0,0.7); }
.modal-body {
  background: #161618; border-radius: 18px;
  border: 1px solid var(--border);
  padding: 20px;
  max-height: 90vh; overflow-y: auto;
  color: var(--text-primary);
}
.modal-close {
  background: rgba(255,255,255,0.06); color: var(--text-primary);
  border: 0; width: 32px; height: 32px; border-radius: 50%;
  font-size: 14px; cursor: pointer;
}
.modal-tabs {
  display: flex; gap: 4px; margin: 12px 0; padding: 4px;
  background: rgba(255,255,255,0.04); border-radius: 999px;
}
.modal-tab {
  flex: 1; background: transparent; color: var(--text-secondary);
  border: 0; padding: 8px 12px; border-radius: 999px;
  font-weight: 700; cursor: pointer; font-size: 12px;
}
.modal-tab.active { background: var(--accent); color: #0d0d0f; }
.modal-section { padding: 12px 0; }

.camera-preview-wrap {
  position: relative; aspect-ratio: 4 / 3; background: #000;
  border-radius: 12px; overflow: hidden; margin-bottom: 12px;
}
.camera-preview-wrap video {
  width: 100%; height: 100%; object-fit: cover;
}
.camera-overlay {
  position: absolute; top: 12px; left: 12px;
  background: rgba(220, 50, 50, 0.92); color: #fff;
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
}

.upload-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 36px 16px; border: 2px dashed var(--border);
  border-radius: 14px; cursor: pointer;
}
.upload-drop.dragging { border-color: var(--accent); background: rgba(240,176,80,0.06); }
.upload-progress { margin-top: 10px; }
.upload-progress-bar {
  height: 6px; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden;
}
.upload-progress-bar > div {
  height: 100%; width: 0%; background: var(--accent);
  transition: width 200ms ease;
}

/* --- Web → iOS handoff banner + landing page -------------------------- */
.handoff-banner {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
  margin: 16px 0 8px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(240,176,80,0.10), rgba(240,176,80,0.04));
  border: 1px solid rgba(240,176,80,0.35);
  border-radius: 16px;
  position: relative;
}
.handoff-banner-art img {
  width: 48px; height: 48px; border-radius: 14px;
}
.handoff-banner-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.handoff-banner-text strong { font-size: 15px; color: var(--text-primary); }
.handoff-banner-text span {
  font-size: 13px; color: var(--text-secondary); line-height: 1.35;
}
.handoff-banner-actions {
  display: inline-flex; gap: 8px; align-items: center;
}
.handoff-cta { padding: 10px 16px; font-size: 13px; }
.handoff-secondary { padding: 10px 14px; font-size: 13px; }
.handoff-dismiss {
  width: 28px; height: 28px; border-radius: 50%;
  background: transparent; color: var(--text-secondary);
  border: 0; cursor: pointer; font-size: 13px;
}
.handoff-status {
  grid-column: 1 / -1; font-size: 12px; color: var(--text-secondary);
}
.handoff-status-error { color: #e88; }

@media (max-width: 640px) {
  .handoff-banner {
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    row-gap: 10px; padding: 12px 14px;
  }
  .handoff-banner-art img { width: 40px; height: 40px; border-radius: 12px; }
  .handoff-banner-actions {
    grid-column: 1 / -1; justify-content: flex-end;
    flex-wrap: wrap;
  }
  .handoff-cta, .handoff-secondary { flex: 1; min-width: 0; text-align: center; }
  .handoff-dismiss {
    position: absolute; top: 6px; right: 6px;
  }
}

.handoff-page {
  min-height: 70vh; display: flex; align-items: center;
  padding: 40px 16px;
}
.handoff-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 14px;
  padding: 36px 24px; background: #131316;
  border: 1px solid var(--border); border-radius: 22px;
}
.handoff-mark { width: 76px; height: 76px; border-radius: 22px; }
.handoff-lead {
  font-size: 15px; line-height: 1.45; max-width: 36ch; margin: 0;
}
.handoff-card .handoff-cta { min-width: 220px; padding: 14px 24px; font-size: 15px; }
.handoff-card .handoff-secondary { min-width: 220px; padding: 12px 22px; font-size: 14px; }
.handoff-back {
  color: var(--text-secondary); font-size: 13px; margin-top: 4px;
  text-decoration: underline;
}
.handoff-error {
  font-size: 13px; color: #e88; max-width: 36ch; line-height: 1.45;
}

/* --- Capture modal (Add memory) -------------------------------------- */
.capture-modal[open] {
  border: 0; padding: 0; background: transparent;
  max-width: 720px; width: calc(100% - 24px);
  border-radius: 22px;
}
.capture-modal::backdrop { background: rgba(0,0,0,0.78); }
.capture-body {
  background: #0e0e10;
  border: 1px solid var(--border);
  border-radius: 22px;
  color: var(--text-primary);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.capture-head {
  display: grid; grid-template-columns: 36px 1fr 36px; gap: 8px;
  align-items: center; padding: 12px 14px;
  background: #0a0a0c;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.capture-icon-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,0.08); color: var(--text-primary);
  font-size: 16px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.capture-icon-btn.ghost { background: transparent; pointer-events: none; }
.capture-tabs {
  display: flex; gap: 4px; padding: 4px;
  background: rgba(255,255,255,0.06); border-radius: 999px;
  justify-self: center;
}
.capture-tab {
  background: transparent; color: var(--text-secondary);
  border: 0; padding: 8px 18px; border-radius: 999px;
  font-weight: 700; font-size: 13px; cursor: pointer;
  min-width: 88px;
}
.capture-tab.active { background: var(--accent); color: #0d0d0f; }
.capture-stage {
  display: flex; flex-direction: column;
  flex: 1; min-height: 0;
  padding: 14px;
  gap: 14px;
}
.capture-viewport {
  position: relative; flex: 1; min-height: 0;
  aspect-ratio: 4 / 3;
  background: #000; border-radius: 16px; overflow: hidden;
}
.capture-media {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.capture-rec-badge {
  position: absolute; top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(220, 50, 50, 0.95); color: #fff;
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
}
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.capture-flash {
  position: absolute; inset: 0; background: #fff;
  animation: capture-flash 280ms ease-out forwards;
  pointer-events: none;
}
@keyframes capture-flash {
  from { opacity: 0.9; }
  to   { opacity: 0;   }
}
.capture-error {
  color: var(--text-secondary); font-size: 13px; margin: 0;
  padding: 8px 12px; background: rgba(220,80,80,0.1);
  border: 1px solid rgba(220,80,80,0.2); border-radius: 10px;
}
.capture-controls {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 4px 8px 6px;
}
.capture-shutter {
  width: 76px; height: 76px; border-radius: 50%;
  background: #fff; border: 4px solid rgba(255,255,255,0.85);
  outline: 3px solid transparent;
  cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 90ms ease, outline-color 120ms ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}
.capture-shutter:hover:not(:disabled) { outline-color: rgba(255,255,255,0.5); }
.capture-shutter:active:not(:disabled) { transform: scale(0.93); }
.capture-shutter:disabled { opacity: 0.5; cursor: not-allowed; }
.shutter-ring {
  width: 60px; height: 60px; border-radius: 50%;
  background: #fff; border: 2px solid #0e0e10;
}
.capture-record {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 120ms ease;
}
.capture-record.on { background: rgba(220,50,50,0.25); border-color: rgba(220,50,50,0.6); }
.capture-record.placeholder { visibility: hidden; pointer-events: none; }
.rec-square {
  width: 16px; height: 16px; border-radius: 4px;
  background: #e84545;
}
.capture-record.on .rec-square { border-radius: 2px; }
.capture-action {
  flex: 1; min-height: 52px;
  border: 0; border-radius: 14px;
  font-weight: 700; font-size: 15px; cursor: pointer;
  padding: 0 22px;
}
.capture-action.primary { background: var(--accent); color: #0d0d0f; }
.capture-action.ghost {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
}
.capture-action:disabled { opacity: 0.6; cursor: progress; }

.upload-stage { padding: 22px; gap: 14px; }
.upload-stage .upload-drop { padding: 56px 20px; min-height: 240px; }

/* Phone - full-bleed modal, taller portrait viewport, larger controls */
@media (max-width: 760px) {
  .capture-modal[open] {
    width: 100vw; height: 100dvh; max-width: none;
    border-radius: 0;
  }
  .capture-body { height: 100%; border-radius: 0; border-width: 0; }
  .capture-stage { padding: 12px; gap: 12px; }
  .capture-viewport { aspect-ratio: 3 / 4; border-radius: 14px; }
  .capture-shutter { width: 84px; height: 84px; }
  .shutter-ring { width: 66px; height: 66px; }
  .capture-tab { min-width: 76px; padding: 8px 14px; font-size: 13px; }
  .capture-action { min-height: 56px; font-size: 16px; }
}

/* --- Bottom sheet (Chat / Missions / Recaps) ------------------------- */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: flex-end; justify-content: center;
  animation: sheet-fade-in 200ms ease;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.sheet-backdrop.closing { animation: sheet-fade-out 200ms ease forwards; }
.sheet {
  width: 100%; max-width: 640px;
  max-height: 88dvh; min-height: 320px;
  background: #131316;
  border: 1px solid var(--border); border-bottom: 0;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -16px 48px rgba(0,0,0,0.5);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: sheet-slide-up 260ms cubic-bezier(0.22, 1, 0.36, 1);
  padding-bottom: env(safe-area-inset-bottom);
}
.sheet.closing { animation: sheet-slide-down 200ms ease forwards; }
@keyframes sheet-fade-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheet-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes sheet-slide-up   { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes sheet-slide-down { from { transform: translateY(0); } to { transform: translateY(100%); } }
.sheet-grip-zone {
  flex: 0 0 auto; cursor: grab; user-select: none;
  padding-top: 8px;
  touch-action: none;
}
.sheet-grip-zone:active { cursor: grabbing; }
.sheet-grip {
  display: block; width: 40px; height: 5px; border-radius: 999px;
  background: rgba(255,255,255,0.2); margin: 4px auto 8px;
}
.sheet-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 18px 14px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sheet-header h3 {
  margin: 0; font-size: 18px; font-weight: 700;
  letter-spacing: -0.01em; color: var(--text-primary);
}
.sheet-close {
  background: rgba(255,255,255,0.07); color: var(--text-primary);
  border: 0; width: 32px; height: 32px; border-radius: 50%;
  font-size: 14px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.sheet-content {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
@media (min-width: 720px) {
  /* On desktop float it as a centered rounded card rather than a true
     bottom-anchored sheet. */
  .sheet-backdrop { align-items: center; padding: 20px; }
  .sheet { border-radius: 22px; border-bottom: 1px solid var(--border); max-height: 82vh; }
}

.chat-list {
  flex: 1; overflow-y: auto; list-style: none; padding: 12px;
  margin: 0; display: flex; flex-direction: column; gap: 8px;
}
.chat-msg {
  display: flex; flex-direction: column;
  max-width: 78%;
}
.chat-msg.mine { align-self: flex-end; align-items: flex-end; }
.chat-msg.theirs { align-self: flex-start; }
.chat-author {
  font-size: 11px; color: var(--text-secondary); margin: 2px 8px;
}
.chat-bubble {
  background: rgba(255,255,255,0.07); color: var(--text-primary);
  padding: 8px 12px; border-radius: 14px;
  font-size: 14px; line-height: 1.35;
}
.chat-msg.mine .chat-bubble { background: var(--accent); color: #0d0d0f; }
.chat-time { font-size: 10px; color: var(--text-secondary); margin: 2px 8px; }
.chat-system {
  align-self: center; color: var(--text-secondary);
  font-size: 12px; padding: 6px 12px;
}
.chat-input {
  display: flex; gap: 8px; padding: 12px;
  border-top: 1px solid var(--border);
  position: sticky; bottom: 0;
  background: #131316;
}
.chat-input input {
  flex: 1; background: rgba(255,255,255,0.05); color: var(--text-primary);
  border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px;
  font-size: 14px;
}

/* Lightbox - two-pane: image stage on the left, meta/reactions/comments
   panel on the right. On narrow screens the panel stacks below. */
.lightbox[open] {
  border: 0; background: rgba(10,10,12,0.96);
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  padding: 0; margin: 0; color: #fff;
  display: grid;
  grid-template-columns: 1fr min(420px, 36vw);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(0,0,0,0.92); }
.lightbox #lightbox-close {
  position: fixed; top: 16px; right: 16px; z-index: 10;
}
.lightbox-stage {
  display: flex; align-items: center; justify-content: center;
  padding: 24px; min-width: 0; min-height: 0;
  background: #050507;
}
#lightbox-content {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}
#lightbox-content img,
#lightbox-content video {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox-panel {
  display: flex; flex-direction: column; gap: 14px;
  padding: 24px 22px; overflow-y: auto;
  border-left: 1px solid rgba(255,255,255,0.06);
  background: #0d0d0f;
}
.lightbox-author {
  font-size: 15px; color: var(--text-primary);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.lightbox-author strong { font-weight: 700; }
.reaction-row {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.reaction-btn {
  background: rgba(255,255,255,0.08); color: #fff;
  border: 0; padding: 8px 12px; border-radius: 999px;
  font-size: 16px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.reaction-btn:hover { background: rgba(255,255,255,0.16); }
.reaction-count {
  font-size: 12px; font-weight: 700; color: var(--text-secondary);
}
.lightbox-comment {
  display: flex; gap: 8px;
  padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.08);
}
.lightbox-comment input {
  flex: 1; background: rgba(255,255,255,0.06); color: #fff;
  border: 1px solid rgba(255,255,255,0.12); border-radius: 999px;
  padding: 9px 14px; font-size: 14px;
}
.lightbox-comments {
  list-style: none; padding: 0; margin: 0; overflow-y: auto;
  font-size: 14px; line-height: 1.5;
}
.lightbox-comments li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.lightbox-comments li strong { margin-right: 6px; color: var(--accent); }

@media (max-width: 760px) {
  .lightbox[open] {
    grid-template-columns: 1fr;
    grid-template-rows: 55vh 1fr;
  }
  .lightbox-stage { padding: 12px; }
  .lightbox-panel { border-left: 0; border-top: 1px solid rgba(255,255,255,0.06); }
}

/* Profile page */
.profile-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 22px;
  margin-bottom: 18px;
}
.profile-header {
  display: flex; align-items: center; gap: 16px; margin-bottom: 16px;
}
.profile-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent); color: #0d0d0f;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 24px;
  overflow: hidden; flex-shrink: 0;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-upload-label {
  display: inline-flex; cursor: pointer; font-size: 13px;
  padding: 8px 14px;
}
.status-line { margin-top: 12px; font-size: 12px; }

/* Shop browse */
.shop-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  padding-bottom: 80px;
}
.shop-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 0;
  cursor: pointer; text-align: left; color: inherit;
  transition: transform 180ms ease, border-color 180ms ease;
}
.shop-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.shop-card-hero {
  aspect-ratio: 16 / 10; background: #15151a;
  border-radius: 14px 14px 0 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.shop-card-hero img { width: 100%; height: 100%; object-fit: cover; }
.shop-card-fallback { font-size: 40px; opacity: 0.4; }
.shop-card-body { padding: 14px 16px 18px; }
.shop-card-body h3 { margin: 8px 0 4px; font-size: 18px; }
.shop-card-body p { margin: 0 0 8px; font-size: 13px; }
.shop-price {
  display: inline-block; font-family: 'JetBrains Mono', monospace;
  font-weight: 700; font-size: 12px; letter-spacing: 1px;
  color: var(--accent);
}
.badge.featured {
  background: var(--accent); color: #0d0d0f;
  padding: 2px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 700;
}
.badge.soon {
  background: rgba(255,255,255,0.08); color: var(--text-secondary);
  padding: 2px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 700;
}

/* Missions panel */
.missions-summary { padding: 12px; }
.missions-score { font-size: 28px; font-weight: 800; color: var(--text-primary); }
.missions-list {
  list-style: none; padding: 0 12px; margin: 0;
  overflow-y: auto; flex: 0 1 auto;
}
.mission-row {
  padding: 10px 12px; margin: 8px 0;
  background: rgba(255,255,255,0.04); border-radius: 12px;
  border: 1px solid var(--border);
}
.mission-row.done { opacity: 0.7; border-color: var(--accent); }
.mission-points { color: var(--accent); font-size: 12px; font-weight: 700; }
.mission-bar {
  height: 5px; background: rgba(255,255,255,0.08);
  border-radius: 999px; overflow: hidden;
  margin: 6px 0 4px;
}
.mission-bar > div { height: 100%; background: var(--accent); transition: width 240ms ease; }
.mission-progress { font-size: 11px; color: var(--text-secondary); }
.missions-board { padding-bottom: 24px; }
.leaderboard {
  list-style: none; padding: 0 12px; margin: 0;
}
.leaderboard li {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.leader-rank {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,0.06); color: var(--text-primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.leader-name { flex: 1; font-size: 13px; color: var(--text-primary); }
.leader-score { font-family: 'JetBrains Mono', monospace; color: var(--accent); font-weight: 700; }

/* Recap list */
.recaps-upload { padding: 16px; border-bottom: 1px solid var(--border); }
.recaps-list { list-style: none; padding: 0; margin: 0; overflow-y: auto; flex: 1; }
.recap-row { padding: 14px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.recap-row video,
.recap-row img {
  width: 100%; aspect-ratio: 16 / 9; background: #000;
  border-radius: 10px; margin-bottom: 8px; object-fit: cover;
}
.recap-meta { display: flex; flex-direction: column; gap: 2px; }

.activity-list { display: flex; flex-direction: column; }
.activity-row { border-bottom: 1px solid var(--border); }
.activity-row-button {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border: 0; background: transparent;
  color: var(--text-primary); text-align: left;
}
.activity-row-button:disabled { cursor: default; opacity: 1; }
.activity-avatar {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
  background: var(--surface-elevated); border: 1px solid var(--border);
  flex: 0 0 auto;
}
.activity-avatar.fallback {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent); font-weight: 800;
}
.activity-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.activity-copy strong { font-size: 13px; line-height: 1.25; color: var(--text-primary); }
.activity-copy span { font-size: 12px; color: var(--text-secondary); }
.activity-thumb {
  width: 48px; height: 48px; border-radius: 8px; object-fit: cover;
  border: 1px solid var(--border); flex: 0 0 auto;
}
.activity-batch {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px;
  padding: 0 16px 14px 66px;
}
.activity-batch button { padding: 0; border: 0; background: transparent; }
.activity-batch img { width: 100%; aspect-ratio: 1; border-radius: 8px; object-fit: cover; }

/* Builders (shared) */
.builder-head { padding: 24px 0 16px; }
.step-progress {
  display: flex; gap: 4px; margin-top: 16px;
}
.step-pill {
  flex: 1; height: 4px; background: var(--surface-elevated);
  border-radius: 999px;
}
.step-pill.on { background: var(--accent); }
.builder-step { display: flex; flex-direction: column; gap: 14px; padding-bottom: 24px; }
.builder-footer {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 18px 0 12px;
  border-top: 1px solid var(--border);
  position: sticky; bottom: 0; background: var(--bg);
  z-index: 5;
}
.builder-footer .btn { min-width: 140px; }

.field-group h4 { margin: 0 0 8px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  background: var(--surface); color: var(--text-primary);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 10px 14px; cursor: pointer; text-align: left;
  display: inline-flex; flex-direction: column; gap: 2px;
}
.chip:hover:not(.disabled) { border-color: var(--accent); }
.chip.on {
  background: var(--accent); color: #0d0d0f; border-color: var(--accent);
}
.chip.disabled { opacity: 0.45; cursor: not-allowed; }
.chip strong { font-size: 14px; font-weight: 800; }
.chip span { font-size: 11px; color: var(--text-secondary); }
.chip.on span { color: rgba(13,13,15,0.7); }

.builder-photo-grid { gap: 4px; padding-bottom: 4px; }
.photo-tile {
  position: relative; aspect-ratio: 1 / 1;
  background: var(--surface-elevated); background-size: cover; background-position: center;
  border-radius: 8px; cursor: pointer; border: 2px solid transparent;
}
.photo-tile.on { border-color: var(--accent); }
.tile-tag {
  position: absolute; top: 4px; right: 4px;
  background: var(--accent); color: #0d0d0f;
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
  box-shadow: 0 0 0 2px #0d0d0f;
}

/* Roll Vault archive export */
.archive-roll-actions {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.archive-shell {
  max-width: 960px;
  padding-top: 28px;
  padding-bottom: 80px;
}
.archive-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 20px;
  align-items: end;
  padding: 8px 0 18px;
}
.archive-hero h1 {
  margin: 8px 0 0;
  font-size: clamp(38px, 6vw, 62px);
}
.archive-hero p {
  margin: 0;
  font-size: 15px;
  max-width: 34rem;
}
.archive-panel {
  margin-top: 14px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 184, 77, 0.07), rgba(255, 184, 77, 0.015)),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.archive-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.archive-section-head h2,
.archive-section-head h3 {
  margin: 3px 0 0;
  line-height: 1.1;
}
.archive-section-head.compact { margin-top: 18px; margin-bottom: 10px; }
.archive-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
}
.archive-chip { min-width: 150px; }
.archive-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.archive-mode-card {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 14px;
  color: var(--text-primary);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: left;
}
.archive-mode-card > span {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(255, 184, 77, 0.14);
  color: var(--accent);
  font-size: 12px; font-weight: 900;
}
.archive-mode-card strong { font-size: 15px; line-height: 1.1; }
.archive-mode-card small { color: var(--text-secondary); font-weight: 700; }
.archive-mode-card.on {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(255, 184, 77, 0.28);
}
.archive-mode-card.on > span {
  background: var(--accent);
  color: #0d0d0f;
}
.archive-subpanel {
  margin-top: 16px;
  padding-top: 2px;
  border-top: 1px solid var(--border);
}
.archive-tag-chip {
  --tag-color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid color-mix(in srgb, var(--tag-color) 45%, var(--border));
  background: color-mix(in srgb, var(--tag-color) 12%, var(--surface));
  color: var(--text-primary);
  font-weight: 800;
}
.archive-tag-chip.on {
  background: var(--tag-color);
  color: #0d0d0f;
  border-color: var(--tag-color);
}
.archive-tag-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--tag-color);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--tag-color) 22%, transparent);
}
.archive-tag-chip.on .archive-tag-dot {
  background: #0d0d0f;
  box-shadow: none;
}
.archive-tag-chip small {
  opacity: 0.7;
  font-size: 11px;
}
.archive-photo-grid {
  max-height: 560px;
  overflow: auto;
  padding-right: 2px;
}
.archive-photo {
  overflow: hidden;
  isolation: isolate;
}
.archive-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0) 52%);
  opacity: 0.82;
}
.archive-photo:not(.on) {
  opacity: 0.52;
  filter: saturate(0.75);
}
.archive-photo-meta {
  position: absolute;
  z-index: 1;
  left: 8px;
  right: 8px;
  bottom: 7px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  align-items: flex-start;
  color: #fff;
  text-shadow: 0 1px 5px rgba(0,0,0,0.5);
  pointer-events: none;
}
.archive-photo-meta span,
.archive-photo-meta small {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.archive-photo-meta span { font-size: 11px; font-weight: 900; }
.archive-photo-meta small { font-size: 10px; opacity: 0.78; }
.archive-actions {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.archive-create-panel {
  display: grid;
  gap: 14px;
}
.archive-create-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
.archive-ready {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 184, 77, 0.10);
  border: 1px solid rgba(255, 184, 77, 0.34);
  border-radius: 14px;
}
.archive-ready h3 {
  margin: 4px 0 2px;
  font-size: 20px;
}
.archive-ready p { margin: 0; }
.archive-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.archive-alert {
  margin: 10px 0 12px;
  padding: 12px 14px;
  background: rgba(255, 92, 62, 0.12);
  border: 1px solid rgba(255, 92, 62, 0.35);
  border-radius: 14px;
  color: var(--text-primary);
  font-weight: 700;
}
.archive-export-list {
  display: grid;
  gap: 8px;
}
.archive-export-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.archive-export-row > div:first-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.archive-export-row strong,
.archive-export-row span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.archive-export-row span {
  color: var(--text-secondary);
  font-size: 12px;
}
.archive-public {
  min-height: 66vh;
  display: grid;
  place-items: center;
  padding-top: 34px;
  padding-bottom: 80px;
}
.archive-public-card {
  width: min(100%, 620px);
  padding: clamp(24px, 5vw, 42px);
  background:
    linear-gradient(180deg, rgba(255, 184, 77, 0.10), rgba(255, 184, 77, 0.02)),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}
.archive-public-card h1 {
  margin: 8px 0 10px;
  font-size: clamp(34px, 7vw, 58px);
}
.archive-public-card p {
  margin: 0 0 18px;
  font-size: 15px;
}
.archive-public-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}
.archive-public-stats div {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 12px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.archive-public-stats strong {
  font-size: 17px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.archive-public-stats span {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 800;
}

@media (max-width: 760px) {
  .archive-hero {
    grid-template-columns: 1fr;
  }
  .archive-mode-grid {
    grid-template-columns: 1fr;
  }
  .archive-create-row {
    grid-template-columns: 1fr;
  }
  .archive-public-stats {
    grid-template-columns: 1fr;
  }
  .archive-export-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

.arrange-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.arrange-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px;
}
.arrange-thumb {
  width: 56px; height: 56px; border-radius: 6px;
  background-size: cover; background-position: center;
  background-color: var(--surface-elevated); flex-shrink: 0;
}

.country-grid {
  display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.country-tile {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-primary); border-radius: 12px;
  padding: 10px 12px; cursor: pointer; text-align: left;
  display: flex; flex-direction: column; gap: 2px;
}
.country-tile.on { background: var(--accent); color: #0d0d0f; border-color: var(--accent); }
.country-tile strong { font-size: 13px; font-weight: 700; }
.country-tile span { font-size: 11px; opacity: 0.75; }

.review-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px; margin-bottom: 12px;
}
.review-card h3 { margin: 4px 0 6px; font-size: 18px; }
.review-card h4 { margin: 0 0 6px; }

/* React roll viewer - supporting styles for elements the vanilla
   version didn't need. */
.btn.ghost.active {
  background: rgba(240, 176, 80, 0.12);
  border-color: var(--accent);
  color: var(--text-primary);
}
.nav-links .link-like {
  background: none; border: 0;
  color: var(--text-secondary); cursor: pointer;
  font-size: 13px; font-weight: 500;
  padding: 0;
}
.nav-links .link-like:hover { color: var(--text-primary); }

/* React shop product dialog uses a div backdrop instead of <dialog>. */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000; overflow-y: auto;
  padding: 24px;
}
.modal-backdrop > .modal-body {
  background: #161618; border: 1px solid var(--border);
  border-radius: 18px; padding: 20px;
  max-width: 520px; margin: 40px auto;
  color: var(--text-primary);
}

/* Wall Art crop window */
.crop-window {
  width: 100%; max-width: 460px; margin: 8px auto 4px;
  background-color: var(--surface-elevated);
  background-repeat: no-repeat;
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: grab; user-select: none;
  position: relative; touch-action: none;
}
.crop-window:active { cursor: grabbing; }
.crop-safe-area {
  position: absolute; inset: 8%;
  border: 1px dashed rgba(240,176,80,0.55);
  border-radius: 6px;
  pointer-events: none;
}

/* Badge on shop cards - wall art surfaces these for "Easy to move",
   "Popular", "Premium", "Made for rolls", "US only". */
.shop-card .badge.eyebrow {
  display: inline-block; margin-bottom: 6px;
}

/* =========================================================================
   REAL APP SCREENSHOTS - hero / live showcase / events / recap preview
   Drops real captures into the existing .phone frame. The frame already
   supplies rounded corners (.screen overflow:hidden), the notch
   (.phone::before), shadow + gentle float, so the screenshot just needs
   object-fit:cover. Reduced-motion is handled globally above.
   ========================================================================= */

/* A real screenshot (or future muted video) filling the phone screen. */
.app-preview { position: absolute; inset: 0; z-index: 1; }
.app-shot {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  background: var(--bg);
}
/* When a screenshot is present, hide the CSS mock fallback. If the image
   fails to load we flip .shot-failed and the mock returns. */
.screen:not(.shot-failed) > .mock-screen { display: none; }
.screen.shot-failed > .app-preview { display: none; }

/* Subtle entrance for screenshot phones (opacity + translateY). Layered
   on top of the existing float. Disabled under reduced-motion globally. */
[data-reveal] .phone.has-shot { will-change: transform, opacity; }

/* --- LiveRollShowcase: one phone, tabbed between Story / Reactions / Map --- */
.live-showcase { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.live-tabs {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px;
}
.live-tab {
  appearance: none; border: 0; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 16px; border-radius: 999px;
  background: transparent; transition: background 0.2s, color 0.2s;
}
.live-tab[aria-selected="true"] { background: var(--accent); color: #0d0d0f; }
.live-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Crossfade between captures inside the screen. */
.live-showcase .app-preview .app-shot {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.4s ease;
}
.live-showcase .app-preview .app-shot.active { opacity: 1; }

/* --- Event showcase: real event-feed screenshot beside concise features --- */
.event-showcase {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(24px, 5vw, 56px); align-items: center;
  margin-bottom: clamp(28px, 5vw, 48px);
}
@media (max-width: 960px) { .event-showcase { grid-template-columns: 1fr; } }
.event-showcase .phone { transition: transform 0.4s ease; }
.event-showcase .phone:hover { transform: rotate(-1deg) translateY(-6px); }
.event-showcase-copy h3 { font-size: clamp(20px, 3vw, 26px); margin: 0 0 6px; }
.event-showcase-copy .eyebrow { margin-bottom: 10px; }

/* --- RecapVideoPreview: vertical 9:16 video container w/ poster fallback --- */
.recap-video-preview {
  max-width: 300px; margin: clamp(28px, 5vw, 40px) auto 0;
  display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.recap-video-frame {
  position: relative; width: 100%; aspect-ratio: 9 / 16;
  border-radius: 20px; overflow: hidden;
  background: linear-gradient(160deg, #2a1a14, #0d0d0f 70%);
  border: 1px solid var(--border);
  box-shadow: 0 30px 50px rgba(0,0,0,0.5);
}
.recap-video-frame img, .recap-video-frame video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.recap-video-frame .play-btn {
  position: absolute; inset: 0; margin: auto;
  width: 64px; height: 64px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: rgba(255,184,77,0.92); color: #0d0d0f;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}
.recap-video-frame .play-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.recap-video-preview .label { font-size: 13px; color: var(--text-secondary); text-align: center; }

/* Reaction button loading state - spinner while the toggle round-trips. */
.reaction-btn[disabled] { opacity: 0.7; cursor: progress; }
.reaction-btn.is-loading { cursor: progress; }
.reaction-spin {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.25); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.7s linear infinite;
  vertical-align: middle;
}

/* Creator-only join-PIN control on the roll page. */
.join-pin-control {
  margin: 14px 0;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.join-pin-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.join-pin-control strong { color: var(--text-primary); font-size: 14px; }

/* =========================================================================
   REAL APP SCREENS - shared device frame + section compositions
   Fewer, larger, overlapping phones that act as product proof (not
   decorative wallpaper). One frame style reused everywhere.
   ========================================================================= */
.appframe {
  position: relative;
  border-radius: 34px;
  background: linear-gradient(160deg, #2a2a2e, #0d0d0f 72%);
  padding: 8px;
  box-shadow: 0 36px 64px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(255,255,255,0.06);
}
.appframe picture { display: block; }
.appframe img { display: block; width: 100%; height: auto; border-radius: 27px; }
.appframe video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 27px;
}
/* ---- Hero visual: product-first, large album + overlapping recap ---- */
.hero-visual { position: relative; }
/* Soft amber glow behind the product only - subtle depth, no boxed panel. */
.hero-glow {
  position: absolute; z-index: 0; pointer-events: none;
  width: 94%; aspect-ratio: 1; left: 50%; top: 48%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle,
    rgba(255,184,77,0.28) 0%, rgba(255,124,32,0.10) 38%, transparent 66%);
  filter: blur(34px);
}
.hero-devices {
  position: relative; z-index: 1;
  display: flex; justify-content: center; align-items: center;
  min-height: 0;
}
.hero-devices .d-primary {
  position: relative; z-index: 3;
  width: clamp(258px, 34vw, 384px);
  margin: 0 auto;
  transform: rotate(0deg);
  animation: phoneFloat 9s ease-in-out infinite;
}
@media (max-width: 560px) {
  .hero-devices .d-primary { width: clamp(228px, 66vw, 300px); }
}

/* ---- Free vs paid split (two big real screens) ---- */
.split-lanes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 44px); }
@media (max-width: 760px) { .split-lanes { grid-template-columns: 1fr; gap: 36px; } }
/* Stacked cards: phone on top, copy below at full width - gives the
   headline + body room to breathe instead of a squished side column,
   while keeping the phones at full size. */
.lane {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: clamp(22px, 3vw, 36px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(28px, 3vw, 46px) clamp(22px, 3vw, 40px);
}
/* Phones stay big; just centered with a playful tilt. */
.lane .appframe { width: clamp(244px, 30vw, 320px); margin: 0 auto; }
.lane.free .appframe { transform: rotate(-2deg); }
.lane.paid .appframe { transform: rotate(2deg); }
.lane.free .free-screen-frame { transform: rotate(-2deg) scale(1.04); transform-origin: center; }
.lane.paid .free-screen-frame { transform: rotate(2deg)  scale(1.04); transform-origin: center; }
/* Eyebrow + headline sit ABOVE the phone; body + CTA below it. */
.lane-head { max-width: 460px; margin: 0 auto; }
.lane-head h3 {
  font-size: clamp(23px, 2.2vw, 31px);
  margin: 10px 0 0; line-height: 1.14; letter-spacing: -0.01em;
}
.lane-copy { max-width: 460px; margin: 0 auto; }
.lane-copy p { color: var(--text-secondary); font-size: 15px; margin: 0 0 16px; line-height: 1.55; }
.lane-copy .lane-note {
  font-size: 12.5px;
  margin-top: -6px;
  color: var(--text-secondary);
  opacity: 0.88;
}
.lane-copy .eyebrow.paid { color: var(--accent-secondary); }

/* Lane CTAs - give them depth + a vivid gradient so they pop off the
   cream card instead of reading as flat dull fills. */
.lane-copy .btn {
  margin-top: 4px;
  padding: 16px 32px;
  font-size: 15.5px; font-weight: 700; letter-spacing: 0.1px;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.28s ease, filter 0.28s ease;
}
.lane-copy .btn.primary {
  background: linear-gradient(135deg, #34343A 0%, #0D0D0F 92%);
  color: #fff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.10);
}
.lane-copy .btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.40), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.lane-copy .btn.amber {
  background: linear-gradient(135deg, #FFB23D 0%, #FF7A1A 100%);
  color: #2A1400;
  box-shadow: 0 12px 26px rgba(255, 122, 26, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.lane-copy .btn.amber:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 46px rgba(255, 122, 26, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  filter: saturate(1.06) brightness(1.03);
}
.lane-copy .btn:active { transform: translateY(-1px); }

/* ---- Roll+ feature section ---- */
.roll-plus-section {
  padding: var(--space-xxl) 0;
  background:
    linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--surface) 38%, transparent) 100%);
}
.roll-plus-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.roll-plus-feature {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.roll-plus-feature:nth-child(2) {
  border-color: color-mix(in srgb, var(--accent) 68%, var(--border));
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 184, 77, 0.18), transparent 48%),
    var(--surface);
}
.roll-plus-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 184, 77, 0.14);
  color: var(--accent);
  margin-bottom: 18px;
}
.roll-plus-icon svg {
  width: 20px;
  height: 20px;
}
.roll-plus-feature h3 {
  margin: 0 0 8px;
  font-size: 21px;
  letter-spacing: 0;
}
.roll-plus-feature p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}
.roll-plus-feature ul {
  display: grid;
  gap: 8px;
  margin: auto 0 0;
  padding: 22px 0 0;
  list-style: none;
}
.roll-plus-feature li {
  position: relative;
  padding-left: 20px;
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 650;
}
.roll-plus-feature li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.roll-plus-footnote {
  max-width: 70ch;
  margin: 18px auto 0;
  color: var(--text-secondary);
  font-size: 13px;
  text-align: center;
}
@media (max-width: 900px) {
  .roll-plus-feature-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .roll-plus-feature { min-height: 0; }
}

/* ---- How-it-works steps: FULL phone screenshot in a device bezel so the
        whole screen is visible, not a cropped strip. ---- */
.step .step-shot {
  width: min(100%, 230px);
  margin: 0 auto 16px;
  border-radius: 30px;
  padding: 7px;
  background: linear-gradient(160deg, #2a2a2e, #0d0d0f 72%);
  box-shadow: 0 22px 44px rgba(0,0,0,0.34), inset 0 0 0 1px rgba(255,255,255,0.06);
  overflow: hidden;
}
.step .step-shot img,
.step .step-shot video {
  width: 100%; height: auto; display: block;
  border-radius: 23px;
}

/* ---- Alive feed trio: 5 (main) + 8 (front) + 3 (behind) ---- */
.alive-devices { position: relative; min-height: clamp(420px, 44vw, 560px); display: flex; justify-content: center; align-items: center; }
.alive-devices .d-main { position: relative; z-index: 3; width: clamp(220px, 28vw, 300px); transform: rotate(-1deg); }
.alive-devices .d-behind { position: absolute; z-index: 1; width: clamp(170px, 22vw, 240px); left: 3%; top: 4%; transform: rotate(-8deg); opacity: 0.7; }
.alive-devices .d-front { position: absolute; z-index: 4; width: clamp(150px, 19vw, 210px); right: 1%; bottom: 2%; transform: rotate(7deg); }
@media (max-width: 560px) { .alive-devices .d-behind { display: none; } }
.map-proof {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px;
  overflow: hidden;
}
.map-proof img {
  width: 100%;
  display: block;
  border-radius: 14px;
}

/* ---- Recap flow: choose -> customize -> export ---- */
.recap-flow {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 24px); align-items: start;
  margin-bottom: clamp(36px, 5vw, 56px);
}
@media (max-width: 720px) { .recap-flow { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; } }
.recap-step { text-align: center; position: relative; }
.recap-step .appframe {
  width: min(100%, 280px);
  aspect-ratio: 9 / 16;
  margin: 0 auto 14px;
}
/* Steps 01 & 02 are tall app screenshots (736×1600). Forcing them into a
   9:16 frame pillarboxed them, so the frame looked too wide. Match the
   frame to the screenshot's aspect (no bars) and keep them a touch
   narrower than the 9:16 export clip in step 03. */
.recap-flow .recap-step:nth-child(1) .appframe,
.recap-flow .recap-step:nth-child(2) .appframe {
  width: min(100%, 232px);
  aspect-ratio: 736 / 1600;
}
.recap-step .appframe > img,
.recap-step .appframe > picture,
.recap-step .appframe > video {
  width: 100%;
  height: 100%;
}
.recap-step .appframe img,
.recap-step .appframe video {
  object-position: center center;
}
.recap-step .appframe img {
  object-fit: contain;
  background: #f8f1e5;
}
.recap-step .appframe video {
  object-fit: contain;
  background: #050505;
}
.recap-step .step-num {
  display: inline-block; font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  color: var(--accent); letter-spacing: 2px; margin-bottom: 4px;
}
.recap-step h4 { margin: 0 0 4px; font-size: 16px; }
.recap-step p { margin: 0; font-size: 13px; color: var(--text-secondary); }

/* ---- Final CTA collage (1 + 3 + 5) ---- */
.cta-collage { position: relative; height: clamp(200px, 26vw, 280px); margin: 8px auto 32px; max-width: 460px; }
.cta-collage .appframe { position: absolute; top: 0; width: clamp(120px, 16vw, 168px); }
.cta-collage .c-1 { left: 8%; transform: rotate(-8deg); z-index: 1; opacity: 0.92; }
.cta-collage .c-2 { left: 50%; transform: translateX(-50%) rotate(-1deg); z-index: 3; }
.cta-collage .c-3 { right: 8%; transform: rotate(8deg); z-index: 2; opacity: 0.92; }

@media (prefers-reduced-motion: reduce) {
  .hero-devices .d-primary, .hero-devices .d-secondary { animation: none; }
}

/* Secondary sections (e.g. Keepsakes "coming soon") - quieter + tighter so
   they don't interrupt the main conversion story. */
.section-secondary { padding-top: clamp(36px, 5vw, 60px); padding-bottom: clamp(36px, 5vw, 60px); }
.section-secondary .section-head h2 { font-size: clamp(24px, 3.4vw, 34px); }
.section-secondary .keepsakes { opacity: 0.9; }

/* ===========================================================================
   Sticky Rolls / Events section switcher + the two page "halves"
   =========================================================================== */
html {
  scroll-behavior: smooth;
  /* Anchor jumps clear both the nav and the sticky switcher. */
  scroll-padding-top: calc(var(--nav-h, 56px) + var(--tabs-h, 56px) + 10px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.section-tabs {
  position: sticky;
  top: var(--nav-h, 56px);
  z-index: 40;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.section-tabs > .container { padding-top: 10px; padding-bottom: 10px; }
.section-tabs-inner {
  position: relative;
  width: min(320px, 82vw);
  margin: 0 auto;
  display: flex;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}
.section-tabs-thumb {
  position: absolute;
  top: 5px; bottom: 5px; left: 5px;
  width: calc(50% - 5px);
  border-radius: var(--radius-pill);
  background: var(--text-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  transition: transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 0;
}
.section-tabs[data-active="events"] .section-tabs-thumb { transform: translateX(100%); }
.section-tab {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 9px 10px;
  border: 0; background: transparent;
  font-family: inherit; font-size: 14px; font-weight: 700; letter-spacing: 0.2px;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: color 0.28s ease;
}
.section-tab.is-active { color: var(--bg); }
@media (prefers-reduced-motion: reduce) { .section-tabs-thumb { transition: none; } }

/* The "Events" half: a distinct background band so the long page splits
   into two digestible sections. */
.events-zone {
  background: var(--events-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ===========================================================================
   Chat section - the group chat, built in
   =========================================================================== */
.chat-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 900px) { .chat-grid { grid-template-columns: 1fr; gap: 36px; } }
.chat-copy { max-width: 540px; }
.chat-copy h2 { margin: 10px 0 14px; }
.chat-copy > p { color: var(--text-secondary); font-size: clamp(15px, 1.6vw, 17px); line-height: 1.6; margin: 0 0 24px; }
.chat-points { display: grid; gap: 16px; margin-bottom: 26px; }
.chat-point h3 { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.chat-point p { margin: 0; font-size: 14px; color: var(--text-secondary); line-height: 1.55; }

.chat-visual { display: flex; justify-content: center; }
.chat-shot { width: min(100%, 318px); margin: 0 auto; transform: rotate(1.5deg); }

/* Two overlapping phones: the everyday chat + a live poll. */
.chat-shots { display: flex; justify-content: center; align-items: center; width: 100%; }
.chat-shots .chat-shot { width: min(50%, 196px); margin: 0; }
.chat-shots .chat-shot.primary { transform: rotate(-4deg) translateY(10px); z-index: 1; margin-right: -20px; }
.chat-shots .chat-shot.poll { transform: rotate(4deg) translateY(-10px); z-index: 2; }

/* ====================================================================
   Web parity additions: roll cover, view switcher, map + calendar,
   richer lightbox (highlight / delete / download / comment tools).
   ==================================================================== */

/* --- Roll cover banner --------------------------------------------- */
.roll-header.has-cover {
  position: relative;
  padding: 0;
  margin-bottom: 18px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 220px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.roll-header.has-cover .eyebrow,
.roll-header.has-cover .roll-title { color: #fff; position: relative; z-index: 2; }
.roll-header.has-cover .roll-title { margin-bottom: 12px; }
.roll-header.has-cover .roll-meta { position: relative; z-index: 2; }
.roll-header.has-cover .roll-meta-item { color: rgba(255,255,255,0.86); }
.roll-header.has-cover { padding: 24px 22px; }
.roll-cover { position: absolute; inset: 0; z-index: 0; }
.roll-cover img { width: 100%; height: 100%; object-fit: cover; }
.roll-cover-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.30) 55%, rgba(0,0,0,0.15) 100%);
}

/* --- View switcher (Album / Map / Calendar) ------------------------ */
.view-switcher {
  display: inline-flex; gap: 4px; padding: 4px;
  margin: 4px 0 14px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}
.view-tab {
  border: 0; background: transparent; color: var(--text-primary);
  font-family: inherit; font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em;
  padding: 7px 14px; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; gap: 6px;
  transition: background 140ms ease, color 140ms ease;
}
.view-tab.active { background: var(--text-primary); color: var(--bg); }
.view-tab:disabled { opacity: 0.4; cursor: not-allowed; }

/* --- Highlight star on tiles --------------------------------------- */
.memory-star {
  position: absolute; top: 6px; right: 7px; z-index: 2;
  color: var(--accent); font-size: 15px; line-height: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  pointer-events: none;
}

/* --- Map view (Leaflet) -------------------------------------------- */
.memory-map-wrap { position: relative; }
.memory-map {
  height: 60vh; min-height: 360px; width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
}
.memory-map-empty {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.memory-pin {
  background: none; border: 0;
}
.memory-pin-img {
  display: block; width: 44px; height: 44px;
  border-radius: 10px;
  border: 2px solid #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.45);
  background-size: cover; background-position: center;
  position: relative;
}
.memory-pin-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}
/* Leaflet attribution: keep it legible on both themes. */
.leaflet-container { font-family: var(--font-body); }

/* --- Calendar view ------------------------------------------------- */
.calendar-view { display: flex; flex-direction: column; gap: 26px; }
.calendar-day-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border); padding-bottom: 8px;
}
.calendar-day-head h3 {
  margin: 0; font-family: var(--font-display);
  font-size: 20px; letter-spacing: -0.01em;
}

/* --- Lightbox caption + actions + review --------------------------- */
.lightbox-caption {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-size: 13px; margin-top: -4px;
}
.lightbox-filter {
  text-transform: capitalize;
  color: var(--accent);
}
.lightbox-review {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 8px 12px;
  background: rgba(255,184,77,0.12);
  border: 1px solid rgba(255,184,77,0.4);
  border-radius: 12px;
}
.lightbox-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.lightbox-action {
  background: rgba(255,255,255,0.08); color: #fff;
  border: 0; padding: 7px 12px; border-radius: 999px;
  font-family: inherit; font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 5px;
  transition: background 140ms ease;
}
.lightbox-action:hover { background: rgba(255,255,255,0.16); }
.lightbox-action.on { background: rgba(255,184,77,0.22); color: var(--accent); }
.lightbox-action.danger:hover { background: rgba(214,75,42,0.30); }
.lightbox-action:disabled { opacity: 0.5; cursor: default; }

/* Reaction mine-state */
.reaction-btn.mine { background: rgba(255,184,77,0.24); }
.reaction-btn[aria-pressed="true"] { outline: 1px solid rgba(255,184,77,0.5); }

/* --- Comment rows: like + delete ----------------------------------- */
.lightbox-comment-row {
  display: flex; align-items: flex-start; gap: 8px;
  justify-content: space-between;
}
.lightbox-comment-text { flex: 1; }
.lightbox-comment-tools {
  display: inline-flex; gap: 6px; align-items: center; flex-shrink: 0;
}
.comment-heart, .comment-delete {
  background: transparent; border: 0; cursor: pointer;
  color: var(--text-secondary); font-size: 12px;
  padding: 2px 4px; border-radius: 8px;
}
.comment-heart:hover, .comment-delete:hover { background: rgba(255,255,255,0.08); }
.comment-heart.on { color: var(--accent-secondary); }
.comment-heart:disabled, .comment-delete:disabled { opacity: 0.5; cursor: default; }

/* ====================================================================
   Story viewer (full-screen playback) — web parity with iOS.
   ==================================================================== */
.view-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.play-story-btn { font-size: 13px; padding: 8px 16px; }

.story-viewer {
  position: fixed; inset: 0; z-index: 1000;
  background: #000;
  display: flex; flex-direction: column;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.story-progress {
  position: absolute; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; gap: 4px; padding: 12px 12px 0;
}
.story-seg {
  flex: 1; height: 3px; border-radius: 999px;
  background: rgba(255,255,255,0.3); overflow: hidden;
}
.story-seg-fill {
  display: block; height: 100%; background: #fff;
  border-radius: 999px;
  transition: width 80ms linear;
}
.story-topbar {
  position: absolute; top: 18px; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px;
}
.story-author { display: flex; align-items: center; gap: 10px; }
.story-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #000;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
}
.story-author-text { display: flex; flex-direction: column; line-height: 1.2; }
.story-author-text strong { color: #fff; font-size: 14px; }
.story-time { color: rgba(255,255,255,0.7); font-size: 12px; }
.story-close {
  background: rgba(255,255,255,0.14); color: #fff; border: 0;
  width: 34px; height: 34px; border-radius: 50%; font-size: 15px;
}

.story-zone {
  position: absolute; top: 0; bottom: 0; z-index: 20;
  width: 34%; background: transparent; border: 0; cursor: pointer;
}
.story-zone.left { left: 0; }
.story-zone.right { right: 0; width: 66%; }

.story-stage {
  flex: 1; display: flex; align-items: center; justify-content: center;
  min-height: 0; padding: 56px 0 96px;
}
.story-stage img, .story-stage video {
  max-width: 100%; max-height: 100%; object-fit: contain;
}

.story-bottom {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 30;
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}
.story-caption { color: rgba(255,255,255,0.85); font-size: 13px; margin-bottom: 10px; }
.story-actions { display: flex; align-items: center; gap: 8px; }
.story-spacer { flex: 1; }
.story-react {
  background: rgba(0,0,0,0.45); border: 0; color: #fff;
  font-size: 18px; line-height: 1; border-radius: 999px;
  padding: 9px 12px; display: inline-flex; align-items: center; gap: 6px;
  backdrop-filter: blur(6px);
}
.story-react.mine { background: rgba(255,184,77,0.30); outline: 1px solid rgba(255,184,77,0.6); }
.story-react:disabled { opacity: 0.6; }
.story-react-count { font-size: 12px; font-weight: 700; }
.story-icon {
  background: rgba(0,0,0,0.45); border: 0; color: #fff;
  width: 40px; height: 40px; border-radius: 50%; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
}
.story-icon.on { color: var(--accent); background: rgba(255,184,77,0.25); }

/* ====================================================================
   Capture filters (camera) — web parity with iOS FilterEngine looks.
   ==================================================================== */
.filter-strip {
  display: flex; gap: 10px; overflow-x: auto;
  padding: 12px 4px 4px;
  -webkit-overflow-scrolling: touch;
}
.filter-chip {
  flex: 0 0 auto; background: none; border: 0; padding: 0;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer;
}
.filter-swatch {
  width: 54px; height: 54px; border-radius: 12px;
  background-size: cover; background-position: center;
  border: 2px solid transparent;
  transition: border-color 120ms ease;
}
.filter-chip.active .filter-swatch { border-color: var(--accent); }
.filter-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.7);
}
.filter-chip.active .filter-label { color: #fff; }
.filter-chip:disabled { opacity: 0.6; cursor: default; }

/* ====================================================================
   Sticker overlay (read-only) — web parity with iOS placed stickers.
   Coordinates are normalized to the media box; .media-wrap tightly bounds
   the media and is a container so stickers size in cqw (scale with media).
   ==================================================================== */
/* Container that holds the media + measured sticker frame. */
.stickered-media {
  position: relative; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  min-width: 0; min-height: 0;
}
.stickered-media img, .stickered-media video {
  max-width: 100%; max-height: 100%; object-fit: contain;
}
#lightbox-content .stickered-media img,
#lightbox-content .stickered-media video { border-radius: 8px; }
/* The sticker frame is positioned (px) to the displayed media rect by JS and
   is a container so stickers size in cqw relative to the media width. */
.media-wrap.sticker-frame {
  position: absolute; display: block;
  container-type: inline-size;
  pointer-events: none;
}
.memory-tile { container-type: inline-size; }

.sticker-layer {
  position: absolute; inset: 0; overflow: hidden;
  pointer-events: none;
}
.sticker {
  position: absolute;
  display: flex; flex-direction: column; align-items: center;
  font-size: calc(4cqw * var(--s, 1));
  font-weight: 800; letter-spacing: 0.04em; line-height: 1.15;
  white-space: nowrap; text-align: center;
  padding: 0.4em 0.8em; border-radius: 999px;
  background: #fff; color: #111;
  box-shadow: 0 0.15em 0.4em rgba(0,0,0,0.35);
}
.sticker-sub { font-size: 0.68em; font-weight: 600; opacity: 0.85; margin-top: 0.15em; }
.sticker-glyph { margin-right: 0.3em; }

/* Variant treatments (approximations of the iOS StickerView looks). */
.sticker--darkPill { background: rgba(0,0,0,0.62); color: #fff; border: 1px solid rgba(255,184,77,0.6); }
.sticker--outlined { background: transparent; color: #fff; border: 0.12em solid #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.6); }
.sticker--passportStamp {
  background: transparent; color: #c0392b; border: 0.14em solid #c0392b;
  border-radius: 0.4em; text-transform: uppercase; letter-spacing: 0.12em;
  box-shadow: none;
}
.sticker--stacked, .sticker--timestamp, .sticker--flipClock, .sticker--scrapbook {
  background: #111; color: #fff; border-radius: 0.4em;
  font-family: var(--font-mono); letter-spacing: 0.08em;
}
.sticker--filmTitle {
  background: transparent; color: #fff; box-shadow: none;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.2em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}
.sticker--captionChip, .sticker--lowerThird, .sticker--polaroidCaption, .sticker--signedCard {
  background: #fff; color: #111; border-radius: 0.35em;
}
.sticker--neonSign {
  background: #131018; color: #ff77e1; border-radius: 0.4em;
  text-shadow: 0 0 0.4em #ff77e1, 0 0 0.8em rgba(255,119,225,0.6);
}
.sticker--gradientChip, .sticker--marqueeBanner, .sticker--retroSticker, .sticker--starburst,
.sticker--ribbon, .sticker--scoreBadge, .sticker--trophyChip {
  background: linear-gradient(120deg, var(--accent), var(--accent-secondary));
  color: #1a1207;
}
.sticker--retroSticker { border: 0.14em solid #fff; border-radius: 0.7em; }
.sticker--hologram {
  background: linear-gradient(120deg, #c9f5ff, #ffd6f5, #d6ffe0);
  color: #222;
}
.sticker--speechBubble { background: #fff; color: #111; border-radius: 0.8em; }

/* =========================================================================
   ARCADE - Pip's skins squad (#arcade). One shared SVG otter recolored per
   card via --fur/--belly/--ear/--acc inline vars; colors mirror OtterSkin.swift.
   ========================================================================= */

.otter-squad {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: var(--space-xl);
}
@media (max-width: 960px) { .otter-squad { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .otter-squad { grid-template-columns: repeat(3, 1fr); gap: 10px; } }

.otter-card {
  position: relative;
  margin: 0;
  padding: 18px 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  overflow: hidden;
  transition: transform 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}
/* skin-tinted glow behind each otter */
.otter-card::before {
  content: '';
  position: absolute;
  inset: -30% 10% 35% 10%;
  background: radial-gradient(closest-side, var(--glow, transparent), transparent 70%);
  opacity: 0.35;
  transition: opacity 250ms ease;
  pointer-events: none;
}
.otter-card { --glow: var(--fur, transparent); }
.otter-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
}
.otter-card:hover::before { opacity: 0.6; }

.otter-svg {
  width: min(100%, 96px);
  height: auto;
  margin: 0 auto;
  display: block;
  position: relative;
  /* gentle idle bob, staggered per card so the squad feels alive */
  animation: otter-bob 3.2s ease-in-out infinite;
  transform-origin: 50% 100%;
}
.otter-card:nth-child(2n) .otter-svg { animation-delay: -0.7s; }
.otter-card:nth-child(3n) .otter-svg { animation-delay: -1.4s; }
.otter-card:nth-child(5n) .otter-svg { animation-delay: -2.2s; }
.otter-card:hover .otter-svg { animation: otter-hop 600ms ease; }

@keyframes otter-bob {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  50%      { transform: translateY(-3px) scale(0.99, 1.01); }
}
@keyframes otter-hop {
  0%   { transform: translateY(0) scale(1, 1); }
  30%  { transform: translateY(2px) scale(1.06, 0.92); }
  60%  { transform: translateY(-8px) scale(0.96, 1.05); }
  100% { transform: translateY(0) scale(1, 1); }
}

.otter-card figcaption {
  margin-top: 8px;
  font-weight: 700;
  font-size: 14px;
  position: relative;
}

.otter-tier {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  position: relative;
}
.otter-tier.free { color: var(--text-secondary); }

.arcade-footnote {
  margin-top: var(--space-lg);
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}
.arcade-footnote a {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .otter-svg { animation: none !important; }
}
