/* DovaCam — dovacam.com v2
   Dark, editorial, Inter Display. Red accent per the reference comp. */
:root {
  --bg: #0c0c0e;
  --bg-2: #121216;
  --panel: #17171c;
  --panel-2: #1d1d23;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --fg: #f3efea;
  --fg-2: #c9c5c0;
  --muted: #8d8a88;
  --brand: #253238;          /* logo / splash background */
  --accent: #8fb8b2;         /* logo hue, lifted for legibility */
  --accent-2: #6f9a94;
  --accent-soft: rgba(143, 184, 178, 0.16);
  --radius: 22px;
  --max: 1200px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* ---------- type helpers */
.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px;
}
.eyebrow.light { color: var(--fg-2); }
.lede { font-size: 18px; color: var(--fg-2); max-width: 46ch; }
.h-display { font-size: clamp(56px, 8.4vw, 116px); }
.h-section { font-size: clamp(38px, 5.2vw, 64px); }
.h-sub { font-size: clamp(30px, 3.6vw, 44px); }
.accent { color: var(--accent); }

/* ---------- App Store badge */
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; border: 1px solid rgba(255,255,255,0.22);
  border-radius: 12px; padding: 9px 16px 9px 13px; line-height: 1.05;
  transition: transform .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.badge:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.45); }
.badge svg { width: 24px; height: 24px; flex: none; }
.badge small { display: block; font-size: 10px; font-weight: 500; letter-spacing: 0.01em; opacity: .85; }
.badge b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.badge.sm { padding: 7px 13px 7px 11px; border-radius: 10px; }
.badge.sm svg { width: 20px; height: 20px; }
.badge.sm b { font-size: 16px; }
.badge.sm small { font-size: 9px; }
.badge.lg { padding: 12px 22px 12px 18px; border-radius: 14px; }
.compare-stage .tag.on, .shot .tag.on { color: #0c0c0e; }
.badge.lg svg { width: 28px; height: 28px; }
.badge.lg b { font-size: 22px; }

/* ---------- nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12,12,14,0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; font-size: 17px; }
.brand img { height: 22px; width: auto; display: block; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-2); }
.nav-links a:hover { color: var(--fg); }
@media (max-width: 760px) { .nav-links { display: none; } }

/* ---------- hero */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; 
  background: radial-gradient(70% 70% at 18% -10%, rgba(70, 110, 118, 0.6), transparent 62%),
              radial-gradient(45% 50% at 85% -15%, rgba(37, 60, 66, 0.85), transparent 70%);
  pointer-events: none;
}
.hero .wrap {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: 24px; padding-top: 72px; padding-bottom: 0; min-height: 840px;
}
.hero-copy { padding-bottom: 110px; }
.hero h1 { font-size: clamp(56px, 7vw, 100px); }
.hero h1 span { display: block; }
.hero .lede { margin: 28px 0 36px; }
.phones { position: relative; height: 840px; }
.phone { position: absolute; width: 330px; height: auto; filter: drop-shadow(0 40px 60px rgba(0,0,0,0.6)); }
.phone.back { left: 0; top: 170px; width: 400px; transform: rotate(-7deg); opacity: .96; }
.phone.front { right: 0; top: 110px; width: 420px; transform: rotate(5deg); z-index: 2; }
@media (max-width: 1000px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 64px; }
  .hero-copy { padding-bottom: 24px; }
  .phones { height: 560px; max-width: 560px; margin: 0 auto; width: 100%; }
  .phone.back { width: 290px; left: 2%; top: 90px; } .phone.front { width: 300px; right: 2%; top: 50px; }
}
@media (max-width: 480px) {
  .phones { height: 440px; }
  .phone.back { width: 220px; left: 0; top: 70px; } .phone.front { width: 230px; right: 0; top: 40px; }
}

/* ---------- feature band */
.features { position: relative; z-index: 3; margin-top: -40px; }
.features .grid {
  background: linear-gradient(180deg, #1c2326, #141418); border: 1px solid var(--line-2);
  border-radius: var(--radius); display: grid; grid-template-columns: repeat(4, 1fr);
  overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.feature { padding: 34px 26px; text-align: center; border-left: 1px solid var(--line); }
.feature:first-child { border-left: 0; }
.feature svg { width: 34px; height: 34px; margin: 0 auto 16px; stroke: var(--fg); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 8px; }
.feature p { font-size: 13.5px; color: var(--muted); }
@media (max-width: 900px) {
  .features .grid { grid-template-columns: 1fr 1fr; }
  .feature:nth-child(3) { border-left: 0; }
  .feature:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .features .grid { grid-template-columns: 1fr; }
  .feature { border-left: 0 !important; border-top: 1px solid var(--line); }
  .feature:first-child { border-top: 0; }
}

/* ---------- LUT library section */
.luts { padding: 120px 0 40px; }
.luts .head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 8px; }
.luts .head .lede { justify-self: end; }
@media (max-width: 900px) { .luts .head { grid-template-columns: 1fr; } .luts .head .lede { justify-self: start; } }
.strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.strip figure { margin: 0; }
.strip .img { aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.strip figure:hover img { transform: scale(1.04); }
.strip figcaption { margin-top: 12px; font-size: 11px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--fg-2); display: flex; justify-content: space-between; }
.strip figcaption span { color: var(--muted); letter-spacing: 0.08em; font-weight: 500; }
@media (max-width: 900px) { .strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .strip { grid-template-columns: repeat(2, 1fr); } }
.stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.stat b { display: block; font-size: 36px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.stat span { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* ---------- LOG → REC compare */
.compare { margin: 36px 0 0; }
.compare-stage {
  --pos: 50%;
  position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line-2); background: var(--panel); user-select: none; -webkit-user-select: none;
}
.compare-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.compare-stage .before-wrap { position: absolute; inset: 0; width: var(--pos); overflow: hidden; }
.compare-stage .before-wrap img { width: var(--stage-w, 100vw); max-width: none; }
.compare-stage .handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: rgba(255,255,255,0.9);
  transform: translateX(-1px); box-shadow: 0 0 0 1px rgba(0,0,0,0.25); pointer-events: none;
}
.compare-stage .handle span {
  position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; border-radius: 50%; background: #fff;
  transform: translate(-50%, -50%); box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}
.compare-stage .handle span::before, .compare-stage .handle span::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0; border: 6px solid transparent; transform: translateY(-50%);
}
.compare-stage .handle span::before { left: 8px; border-right-color: #0c0c0e; border-left: 0; }
.compare-stage .handle span::after { right: 8px; border-left-color: #0c0c0e; border-right: 0; }
.compare-stage .tag {
  position: absolute; top: 16px; background: rgba(0,0,0,0.6); color: #fff; font-size: 10px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; padding: 7px 11px; border-radius: 8px; backdrop-filter: blur(6px); pointer-events: none;
}
.compare-stage .tag.l { left: 16px; } .compare-stage .tag.r { right: 16px; } .compare-stage .tag.on { background: var(--accent); }
.compare-stage input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none;
}
.compare-stage input::-webkit-slider-thumb { -webkit-appearance: none; width: 60px; height: 100%; }
.compare-stage input::-moz-range-thumb { width: 60px; height: 100%; border: 0; }
.compare figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 14px; font-size: 14px; color: var(--fg-2); }
.compare figcaption b { color: var(--fg); font-weight: 600; }
.compare figcaption .meta { color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- workflow (Create your LUTs) */
.workflow { position: relative; margin: 80px 0 0; overflow: hidden; }
.workflow .bg { position: absolute; inset: 0; background: url(bg-clouds.jpg) center 35% / cover no-repeat; }
.workflow .bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,12,0.92) 0%, rgba(10,10,12,0.78) 38%, rgba(10,10,12,0.35) 70%, rgba(10,10,12,0.55) 100%),
              linear-gradient(180deg, rgba(12,12,14,1) 0%, transparent 18%, transparent 80%, rgba(12,12,14,1) 100%);
}
.workflow .wrap { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; padding-top: 120px; padding-bottom: 120px; min-height: 640px; }
.workflow .lede { margin: 24px 0 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.32); background: rgba(255,255,255,0.04); color: var(--fg);
  font-weight: 600; font-size: 14px; transition: background .15s ease, border-color .15s ease;
}
.btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); }
.stage { position: relative; height: 640px; }
.stage .phone { width: 310px; left: 4%; top: 0; transform: none; }
.cube-wrap { position: absolute; right: 0; top: 40px; width: 260px; filter: drop-shadow(0 30px 50px rgba(0,0,0,0.6)); }
.cube-wrap svg { width: 100%; height: auto; display: block; }
.chip {
  position: absolute; right: 0; bottom: 140px; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 12px; background: rgba(20,20,24,0.85); border: 1px solid var(--line-2);
  backdrop-filter: blur(8px); font-size: 14px; font-weight: 600; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.chip svg { width: 18px; height: 18px; stroke: var(--fg); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chip code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--muted); font-weight: 500; }
@media (max-width: 1000px) {
  .workflow .wrap { grid-template-columns: 1fr; padding-top: 80px; padding-bottom: 80px; }
  .stage { height: 520px; max-width: 520px; width: 100%; }
  .stage .phone { width: 250px; left: 0; }
  .cube-wrap { width: 190px; right: 0; top: 30px; }
  .chip { bottom: 80px; }
}
@media (max-width: 480px) {
  .stage { height: 440px; }
  .stage .phone { width: 200px; }
  .cube-wrap { width: 150px; top: 20px; }
  .chip { bottom: 40px; padding: 10px 14px; font-size: 13px; }
}

/* ---------- before/after */
.results { padding: 100px 0 20px; }
.results .panel {
  background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 22px; display: grid; grid-template-columns: 1.1fr 1.1fr 0.9fr; gap: 22px; align-items: center;
}
.shot { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot .tag { position: absolute; left: 14px; top: 14px; background: rgba(0,0,0,0.6); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; padding: 7px 11px; border-radius: 8px; backdrop-filter: blur(6px); }
.shot .tag.on { background: var(--accent); }
.results .copy { padding: 10px 6px 10px 10px; }
.results .copy .lede { font-size: 16px; margin-top: 16px; }
@media (max-width: 1000px) { .results .panel { grid-template-columns: 1fr 1fr; } .results .copy { grid-column: 1 / -1; padding: 10px 6px; } }
@media (max-width: 560px) { .results .panel { grid-template-columns: 1fr; } }

/* ---------- pro + support */
.support { padding: 100px 0 60px; }
.support .grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .support .grid { grid-template-columns: 1fr; gap: 36px; } }
.pro-card {
  background: linear-gradient(160deg, #1b2a2d, #141418 60%); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 28px; margin-top: 28px;
}
.pro-card h3 { font-size: 22px; margin-bottom: 8px; }
.pro-card.shop-teaser { background: var(--panel); margin-top: 14px; }
.pro-card p { color: var(--fg-2); font-size: 14.5px; }
.pro-card ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 14px; }
.pro-card li { display: flex; gap: 10px; align-items: flex-start; color: var(--fg-2); }
.pro-card li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 8px; flex: none; }
.faq { display: grid; gap: 8px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 15.5px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 22px; color: var(--muted); line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 18px; color: var(--fg-2); font-size: 14.5px; max-width: 62ch; }
.faq .a a { color: var(--accent); }
.contact { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 18px 20px; border: 1px dashed var(--line-2); border-radius: 14px; }
.contact .mail { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; user-select: all; }
.contact button { font-family: var(--font); font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line-2); background: transparent; color: var(--fg); cursor: pointer; }
.contact button:hover { background: rgba(255,255,255,0.06); }
.contact .note { font-size: 13px; color: var(--muted); flex-basis: 100%; }

/* ---------- CTA footer */
.cta { padding: 20px 0 40px; }
.cta .bar {
  background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 26px 30px;
}
.cta .lbl { font-size: 11px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--fg-2); line-height: 1.8; }
.cta .icons { display: flex; justify-content: flex-end; gap: 28px; }
.cta .icons span { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--fg-2); }
.cta .icons svg { width: 20px; height: 20px; stroke: var(--fg); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) { .cta .bar { grid-template-columns: 1fr; text-align: center; } .cta .icons { justify-content: center; flex-wrap: wrap; } }
footer { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
footer .fmark { height: 18px; width: auto; opacity: .7; margin-right: 14px; vertical-align: middle; }
footer nav { display: flex; gap: 22px; }
footer a:hover { color: var(--fg); }

/* ---------- legal pages */
.legal { padding: 72px 0 100px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 10px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 44px; }
.legal h2 { font-size: 20px; letter-spacing: -0.02em; line-height: 1.25; margin: 38px 0 10px; }
.legal p { color: var(--fg-2); font-size: 16px; margin-bottom: 12px; }
.legal .toc { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; margin: 0 0 40px; padding: 22px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; font-size: 14px; }
.legal .toc a { color: var(--fg-2); } .legal .toc a:hover { color: var(--accent); }
.legal a { color: var(--accent); }
.legal .notice { font-size: 14px; color: var(--muted); border-left: 2px solid var(--accent); padding-left: 14px; margin-bottom: 36px; }

@media (max-width: 640px) { .legal .toc { grid-template-columns: 1fr; } }
