@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #141414;
  --panel: #1d1d1d;
  --line: #2e2e2e;
  --text: #ececec;
  --muted: #a3a3a3;
  --accent: #e0913a;
  --on-accent: #181818;
  --radius: 14px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(40px, 4.6vw, 62px); line-height: 1.05; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }
h3 { font-size: 19px; line-height: 1.3; }
p { margin: 0; }

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.fine { color: var(--muted); font-size: 14px; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); background: #ea9f4c; }
.btn:focus-visible, .chip:focus-visible, .thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--panel); }
.btn-small { padding: 8px 16px; font-size: 15px; }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(18px, 4vw, 40px);
  background: rgba(20, 20, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; }
.brand img { border-radius: 7px; }
.nav nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav nav a:not(.btn) { color: var(--muted); text-decoration: none; }
.nav nav a:not(.btn):hover { color: var(--text); }

main > section { padding: clamp(64px, 9vw, 120px) clamp(18px, 4vw, 40px); }
.section-head { max-width: var(--max); margin: 0 auto 40px; }
.section-head p { color: var(--muted); margin-top: 12px; max-width: 620px; }

/* Hero */
.hero {
  max-width: calc(var(--max) + 80px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(340px, 1fr) 1.35fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.lede { color: var(--muted); font-size: 19px; margin: 22px 0 30px; max-width: 470px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }

/* Before / after slider */
.compare {
  --pos: 50%;
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  user-select: none;
}
.compare-before-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare-before-wrap img { width: 100%; height: 100%; object-fit: cover; }
.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  pointer-events: none;
}
.compare-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.compare-handle span::before, .compare-handle span::after {
  content: "";
  position: absolute;
  top: 50%;
  border: 6px solid transparent;
  margin-top: -6px;
}
.compare-handle span::before { left: 6px; border-right-color: #222; }
.compare-handle span::after { right: 6px; border-left-color: #222; }
.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.compare figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.compare figcaption span, .viewer-label {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

/* Film viewer */
.viewer { max-width: 980px; margin: 0 auto; }
.viewer-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  aspect-ratio: 3 / 2;
}
.viewer-frame img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.25s ease; }
.viewer-frame img.is-loading { opacity: 0.55; }
.viewer-label { position: absolute; left: 14px; bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 18px; }
.chip {
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
}
.chip:hover { border-color: #4a4a4a; }
.chip.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  aspect-ratio: 3 / 2;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 0.9; }
.thumb.is-on { border-color: var(--accent); opacity: 1; }

/* Features */
.features { background: #181818; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.grid article p { color: var(--muted); margin-top: 10px; font-size: 16px; }

/* App screenshots */
.shot { max-width: calc(var(--max) + 80px); margin: 0 auto; }
.shot img, .ai > img {
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

/* AI */
.ai {
  max-width: calc(var(--max) + 80px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1.3fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.ai-text > p:not(.eyebrow) { color: var(--muted); margin-top: 16px; }
.ai-text em { color: var(--text); font-style: normal; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-size: 16px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 600; }

/* Download */
.download { border-top: 1px solid var(--line); }
.cards {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.card h3 { font-size: 24px; display: flex; align-items: center; gap: 10px; }
.card .meta { color: var(--muted); font-size: 15px; }
.tag {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  padding: 2px 9px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px clamp(18px, 4vw, 40px) 56px;
  color: var(--muted);
  font-size: 14px;
  display: grid;
  gap: 10px;
  max-width: calc(var(--max) + 80px);
  margin: 0 auto;
}
.footer .brand { color: var(--text); margin-bottom: 6px; }

@media (max-width: 900px) {
  .hero, .ai { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr; }
  .nav nav a:not(.btn) { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.films .section-head { max-width: 980px; }

/* Download form */
.dl-form { max-width: var(--max); margin: 0 auto; display: grid; gap: 18px; }
.dl-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.visually-hidden, .hp {
  position: absolute !important;
  width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.platform { cursor: pointer; position: relative; transition: border-color 0.15s ease; }
.platform input { position: absolute; opacity: 0; pointer-events: none; }
.platform-head { display: flex; align-items: center; gap: 12px; }
.radio {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid #5a5a5a; flex: none;
  display: grid; place-items: center;
}
.platform:has(input:checked) { border-color: var(--accent); }
.platform:has(input:checked) .radio { border-color: var(--accent); }
.platform:has(input:checked) .radio::after {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
}
.platform:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.form-card { align-items: stretch; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
.field em { color: var(--muted); font-style: normal; font-weight: 400; }
.field input {
  font: inherit; font-weight: 400; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px;
}
.field input:focus { outline: none; border-color: var(--accent); }
.field input[aria-invalid="true"] { border-color: #e5604d; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--muted); cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-foot .fine a { color: var(--muted); }
.form-status { min-height: 1.5em; font-size: 15px; }
.form-status.is-error { color: #f08a7a; }
.form-status.is-ok { color: #8fd19e; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* Plain pages (privacy) */
.page { max-width: 720px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) clamp(18px, 4vw, 40px); }
.page h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 24px; }
.page h2 { font-size: 22px; margin: 32px 0 10px; }
.page p, .page li { color: var(--muted); }
.page p + p { margin-top: 12px; }

@media (max-width: 600px) {
  .fields { grid-template-columns: 1fr; }
}
