/* Camera Filmode landing — same component set as the Video Compressor landing,
   restyled dark: film-lab black, bone ink, teal/amber viewfinder gradients.
   Dark only, on purpose — it is a camera app. No external assets, no build step. */

:root {
  color-scheme: dark;

  --bg: #0B0B0C;
  --bg-soft: #141416;
  --ink: #F3EFE8;
  --muted: #9B968C;
  --line: #26262A;
  --accent: #57E3CF;
  --accent-deep: #7FF0DE;
  --accent-warm: #FFB454;
  --accent-soft: rgba(87, 227, 207, 0.13);
  --card: #131315;
  --card-shadow: 0 18px 44px -24px rgba(0, 0, 0, 0.9);
  --btn-bg: #F3EFE8;
  --btn-ink: #0B0B0C;
  --grad-hero: radial-gradient(130% 190% at 10% 0%, #0E4F4A 0%, #14776D 34%, #57E3CF 72%, #FFB454 100%);
  --grad-text: linear-gradient(90deg, #57E3CF, #FFB454);
  --grad-wash: linear-gradient(180deg, #0B0B0C 0%, #0E1A1B 38%, #12201F 64%, #0B0B0C 100%);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* film grain, carried over from the Filmode house style */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  z-index: 90;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 780px; }

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.8vw, 2.7rem); margin-bottom: 0.6em; }
h3 { font-size: 1.2rem; margin-bottom: 0.45em; font-weight: 600; }

em.accent, .accent {
  font-style: normal;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kicker {
  font-weight: 600;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  letter-spacing: -0.01em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
  width: fit-content;
}

a { color: inherit; }

/* ============ Announcement topbar ============ */
.topbar {
  background: var(--grad-hero);
  color: #04211F;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.topbar-pill {
  background: #04211F;
  color: #7FF0DE;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  border-radius: 999px;
  padding: 3px 10px;
}

/* ============ Header (floating rounded card) ============ */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 50;
  padding: 0 12px;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
  background: rgba(19, 19, 21, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 34px -16px rgba(0, 0, 0, 0.9);
  padding: 0 18px 0 20px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1.18rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.wordmark-bubble { color: var(--accent); flex: none; }
.site-nav {
  display: none;
  gap: 22px;
  margin-left: 6px;
}
.site-nav a {
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--ink); }
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
@media (min-width: 860px) {
  .site-nav { display: flex; }
}

.btn {
  display: inline-block;
  white-space: nowrap;
  text-decoration: none;
  border-radius: 999px;
  border: 0;
  padding: 12px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-solid {
  background: var(--btn-bg);
  color: var(--btn-ink);
  box-shadow: 0 8px 20px -10px rgba(87, 227, 207, 0.6);
}
.btn-solid:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -10px rgba(87, 227, 207, 0.55);
}
.btn-small { padding: 9px 18px; font-size: 0.86rem; }
@media (max-width: 520px) {
  .btn-small { padding: 9px 14px; font-size: 0.8rem; }
}

/* ============ Hero ============ */
.hero {
  padding: 72px 0 88px;
  overflow: hidden;
  position: relative;
  background: var(--grad-wash);
  margin-top: -76px;      /* wash flows behind the floating header */
  padding-top: 148px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  justify-items: center;
}
.hero-copy {
  text-align: center;
  max-width: 820px;
}
.hero-copy .kicker { margin: 0 auto 0.9rem; }
.hero-copy .lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 38em;
  margin: 1.4rem auto 2.2rem;
}
.hero-copy .lede strong { color: var(--ink); font-weight: 600; }

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
/* The app is not on Google Play yet, so the badge is deliberately not a link. */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--accent);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 22px 10px 16px;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 14px 32px -18px rgba(87, 227, 207, 0.5);
}
a.badge:hover { transform: translateY(-1px); box-shadow: 0 18px 38px -18px rgba(87, 227, 207, 0.7); }
.badge > svg { color: var(--accent); flex: none; }
.badge-text { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.badge-text small {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.badge-text strong { font-size: 1.02rem; font-weight: 600; }
.badge-lg { padding: 14px 30px 14px 20px; gap: 14px; }
.badge-lg .badge-text strong { font-size: 1.16rem; }
.badge-note {
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  color: var(--muted);
  margin-top: 1.2rem;
}

/* ============ Viewfinder readout strip ============ */
.readout {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 2.4rem auto 0;
  max-width: 720px;
}
.readout span {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--line);
  background: rgba(87, 227, 207, 0.06);
  border-radius: 8px;
  padding: 6px 12px;
}

/* ============ Sections ============ */
.section { padding: 92px 0; }
.section-bordered { border-top: 1px solid var(--line); }
.section-lede {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 40em;
  margin-bottom: 2.4rem;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 2.4rem;
}
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px 26px 34px;
  box-shadow: var(--card-shadow);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}
.step p { color: var(--muted); font-size: 0.95rem; }

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 2.4rem;
}
@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px 26px 32px;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature:hover {
  transform: translateY(-3px);
  border-color: rgba(87, 227, 207, 0.35);
  box-shadow: 0 22px 44px -20px rgba(87, 227, 207, 0.28);
}
.feat-icon {
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 16px;
  padding: 14px;
  width: 52px;
  height: 52px;
  margin-bottom: 1.1rem;
  box-sizing: border-box;
}
.feature p { color: var(--muted); font-size: 0.95rem; }

/* ============ Band ============ */
.band {
  background: var(--grad-hero);
  color: #04211F;
  padding: 96px 0;
  text-align: center;
  border-radius: 40px;
  max-width: 1180px;
  margin: 0 auto;
}
@media (max-width: 1220px) {
  .band { border-radius: 0; }
}
.band .kicker-band {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: rgba(4, 33, 31, 0.72);
  margin-left: auto;
  margin-right: auto;
}
.band h2 { color: #04211F; }
.band-lede {
  color: rgba(4, 33, 31, 0.82);
  font-size: 1.1rem;
  max-width: 38em;
  margin: 0 auto 3rem;
}
.band-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}
.stat {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 18px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(4, 33, 31, 0.18);
  border-radius: 24px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.stat strong {
  font-size: 2.5rem;
  font-weight: 700;
  color: #04211F;
  line-height: 1.1;
}
.stat span {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(4, 33, 31, 0.78);
}
@media (max-width: 620px) {
  .stat { flex-basis: 100%; }
}

/* ============ Chips ============ */
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 900px;
}
.chips li {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.chips li:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #04211F;
  transform: translateY(-1px);
}
.chips .chip-more {
  border-style: dashed;
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent);
}
.chips-title {
  font-weight: 600;
  margin: 2.4rem 0 0.9rem;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ============ Mode cards (P / S / I / M) ============ */
.fmt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 2.4rem;
}
@media (min-width: 640px) {
  .fmt-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .fmt-grid { grid-template-columns: repeat(4, 1fr); }
}
.fmt-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px 24px 28px;
  box-shadow: var(--card-shadow);
}
.fmt-card .fmt-name {
  display: inline-block;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.02em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.1rem;
}
.fmt-card .fmt-ext {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
}
.fmt-card p { color: var(--muted); font-size: 0.92rem; }

/* ============ Screenshots ============ */
.shots {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 8px 4px 24px;
  margin-top: 2.2rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-soft) transparent;
}
.shots figure {
  flex: 0 0 auto;
  width: 216px;
  scroll-snap-align: start;
  margin: 0;
}
.shots img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 480 / 1066;
  object-fit: cover;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  box-shadow: 0 26px 54px -28px rgba(87, 227, 207, 0.4), var(--card-shadow);
}
.shots figcaption {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 12px;
}
@media (min-width: 1120px) {
  .shots figure { width: 168px; }
}

/* ============ Screenshot lightbox ============ */
.shot-trigger {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: zoom-in;
  border-radius: 26px;
  -webkit-tap-highlight-color: transparent;
}
.shot-trigger img { transition: transform 0.25s ease; }
.shot-trigger:hover img { transform: translateY(-4px); }
.shot-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.lightbox {
  width: 100%;
  height: 100%;
  max-width: 100vw;
  max-height: 100vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: hidden;
}
.lightbox::backdrop {
  background: rgba(4, 4, 5, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Fallback when <dialog>.showModal() is unavailable */
.lightbox.is-fallback[open] {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(4, 4, 5, 0.96);
}
.lightbox-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 64px 20px 28px;
  max-width: 100%;
  max-height: 100%;
}
.lightbox-img {
  display: block;
  max-width: min(92vw, 460px);
  max-height: calc(100vh - 150px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 24px;
  background: #0B0B0C;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.95);
}
.lightbox-cap {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  text-align: center;
}
.lightbox-count {
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(243, 239, 232, 0.18);
  border-radius: 999px;
  background: rgba(20, 20, 22, 0.78);
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.lightbox button:hover { background: var(--accent); color: #04211F; border-color: transparent; }
.lightbox button:focus-visible { outline: 2px solid var(--accent-warm); outline-offset: 3px; }
.lightbox-close {
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  font-size: 22px;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 26px;
  padding-bottom: 4px;
}
.lightbox-nav:hover { transform: translateY(-50%) scale(1.06); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
@media (max-width: 560px) {
  .lightbox-inner { padding: 58px 12px 22px; }
  .lightbox-img { max-height: calc(100vh - 140px); }
  .lightbox-nav { width: 42px; height: 42px; font-size: 22px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .shot-trigger img,
  .lightbox button { transition: none; }
  .shot-trigger:hover img { transform: none; }
  .lightbox-nav:hover { transform: translateY(-50%); }
}

/* ============ Legal / support prose pages ============ */
.prose { padding: 56px 0 72px; }
.prose h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 0.3em; }
.prose .upd { color: var(--muted); font-size: 0.88rem; margin-bottom: 2.2rem; }
.prose h2 { font-size: 1.32rem; margin: 2.2rem 0 0.5rem; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 0.8rem; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0.6rem 0; display: grid; gap: 8px; }
.prose h3 { font-size: 1.05rem; margin: 1.5rem 0 0.4rem; }
.prose a { color: var(--accent); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose code {
  font-family: var(--mono);
  font-size: 0.84em;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--ink);
}
.prose strong { color: var(--ink); }
.prose .prose-nav { margin-top: 3rem; font-size: 0.92rem; }

/* ============ FAQ ============ */
.faq-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--card-shadow);
  padding: 0 22px;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 36px 18px 0;
  font-size: 1.02rem;
  font-weight: 600;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq-list details p {
  padding: 0 0 20px;
  color: var(--muted);
  max-width: 46em;
}

/* ============ Final CTA ============ */
.cta { padding: 96px 0 40px; text-align: center; }
.cta .kicker { margin-left: auto; margin-right: auto; }
.cta .store-badges { margin-top: 2rem; }

/* ============ Footer ============ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-start;
}
.footer-wordmark { font-size: 1.16rem; font-weight: 700; }
.footer-brand p {
  color: var(--muted);
  font-size: 0.93rem;
  margin-top: 0.6rem;
  max-width: 26em;
}
.footer-pkg {
  font-family: var(--mono);
  font-size: 0.68rem !important;
  letter-spacing: 0.08em;
  opacity: 0.75;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-links a {
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--muted);
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  margin-top: 40px;
  padding-top: 20px;
}
.footer-copy p {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* ============ Scroll reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
