/* Same language as the app: black, white, red only for recording. */
:root {
  --bg: #000;
  --surface: #121212;
  --raised: #1f1f1f;
  --line: rgba(255, 255, 255, 0.14);
  --text: #fff;
  --dim: rgba(255, 255, 255, 0.6);
  --faint: rgba(255, 255, 255, 0.36);
  --rec: #ff453b;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 var(--sans); }
a { color: inherit; }
img { display: block; max-width: 100%; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* Wide heavy titles: SF Pro expands on Apple devices, elsewhere it falls back to a bold sans. */
.title { font-family: var(--display); font-weight: 900; font-stretch: 125%; letter-spacing: -0.01em; line-height: 0.98; margin: 0; }
.eyebrow { font: 600 12px/1 var(--display); font-stretch: 125%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.mono { font-family: var(--mono); }
.dim { color: var(--dim); }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 900 18px/1 var(--display); font-stretch: 125%; letter-spacing: 0.04em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav nav { display: flex; gap: 22px; }
.nav nav a { text-decoration: none; color: var(--dim); font-size: 15px; }
.nav nav a:hover { color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; text-decoration: none;
  font: 600 15px/1 var(--display); font-stretch: 125%; border: 1px solid var(--line); }
.btn.solid { background: #fff; color: #000; border-color: #fff; }
.btn small { font: 500 11px/1 var(--mono); letter-spacing: 0; opacity: 0.6; font-stretch: 100%; }
.btn[aria-disabled="true"] { cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { padding: 56px 0 72px; display: grid; gap: 48px; }
.hero h1 { font-size: clamp(44px, 9vw, 104px); margin-top: 18px; }
.hero p.lead { font-size: clamp(18px, 2.2vw, 22px); color: var(--dim); max-width: 34ch; margin: 22px 0 32px; }

/* The controller mock-up */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 18px; }
.mock-grid { --gap: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.cam { aspect-ratio: 16 / 9; border-radius: 12px; border: 1px solid var(--line); position: relative; overflow: hidden;
  background:
    linear-gradient(90deg, transparent 33%, rgba(255,255,255,.12) 33.2%, transparent 33.6%, transparent 66.4%, rgba(255,255,255,.12) 66.6%, transparent 66.8%),
    linear-gradient(0deg, transparent 33%, rgba(255,255,255,.12) 33.4%, transparent 34%, transparent 66%, rgba(255,255,255,.12) 66.4%, transparent 67%),
    radial-gradient(120% 90% at 50% 120%, #1d3b22 0 45%, transparent 46%),
    #0b0b0b; }
/* The ball: each camera moves it across the whole panorama, offset by its own place (--i), so it seems to pass from one to the next. */
.cam:nth-child(1) { --i: 0; } .cam:nth-child(2) { --i: 1; } .cam:nth-child(3) { --i: 2; }
.ball { position: absolute; inset: 0; pointer-events: none; display: none; }
.ball i { position: absolute; left: 0; bottom: 24%; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.motion .ball { display: block; animation: run 7s linear infinite; }
.motion .ball i { animation: hop 0.7s ease-in-out infinite alternate; }
.motion .flash { animation: clap 7s ease-out infinite; }
.motion .chip.rec, .motion .timer::before { animation: blink 1.4s steps(1, end) infinite; }
@keyframes run {
  from { transform: translateX(calc((-0.1 - var(--i)) * (100% + var(--gap)))); }
  to { transform: translateX(calc((3.1 - var(--i)) * (100% + var(--gap)))); }
}
@keyframes hop { to { transform: translateY(-14px); } }
@keyframes clap { 0%, 95% { opacity: 0; } 96% { opacity: 0.3; } 100% { opacity: 0; } }
@keyframes blink { 50% { opacity: 0.25; } }

.chip { position: absolute; z-index: 1; top: 8px; left: 8px; padding: 4px 8px; border-radius: 99px; background: rgba(0,0,0,.7);
  font: 700 9px/1 var(--display); font-stretch: 125%; letter-spacing: 0.08em; text-transform: uppercase; }
.chip.rec { left: auto; right: 8px; color: var(--rec); }
.mock-bar { display: flex; align-items: center; justify-content: space-between; padding: 18px 8px 4px; }
.timer { font: 600 18px/1 var(--mono); display: flex; align-items: center; gap: 8px; }
.timer::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rec); }
.shutter { width: 58px; height: 58px; border-radius: 50%; border: 3px solid #fff; display: grid; place-items: center; }
.shutter::after { content: ""; width: 22px; height: 22px; border-radius: 5px; background: var(--rec); }

/* Sections */
section { padding: 72px 0; border-top: 1px solid var(--line); }
section h2.title { font-size: clamp(32px, 5vw, 56px); margin: 14px 0 36px; }
.steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px;
  transition: border-color 0.25s, transform 0.25s; }
@media (hover: hover) {
  .card:hover { border-color: rgba(255, 255, 255, 0.32); transform: translateY(-3px); }
  .btn { transition: opacity 0.2s; }
  .btn:not([aria-disabled="true"]):hover { opacity: 0.8; }
}

/* Scroll reveal, only when motion is allowed (the script adds .motion). */
.motion .reveal { opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), transform 0.7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
.motion .reveal.in { opacity: 1; transform: none; }
.motion .card.reveal.in:hover { transform: translateY(-3px); }
.card .num { font: 13px var(--mono); color: var(--faint); }
.card h3 { font: 900 24px/1.1 var(--display); font-stretch: 125%; margin: 36px 0 8px; }
.card p { margin: 0; color: var(--dim); font-size: 16px; }

.features { display: grid; gap: 28px 40px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.features h3 { font-size: 18px; margin: 0 0 6px; }
.features p { margin: 0; color: var(--dim); font-size: 16px; }

/* Pricing */
.plans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.plan h3 { font: 900 28px/1 var(--display); font-stretch: 125%; margin: 14px 0 4px; }
.plan .price { font: 600 15px var(--mono); color: var(--dim); }
.plan ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 10px; height: 1px; background: var(--text); }
.plan.pro { background: #fff; color: #000; border-color: #fff; }
.plan.pro .price, .plan.pro .eyebrow { color: rgba(0,0,0,.6); }
.plan.pro li::before { background: #000; }
.note { margin-top: 20px; color: var(--dim); font-size: 15px; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); color: var(--dim); }
details[open] summary::after { content: "−"; }
details p { color: var(--dim); margin: 10px 0 0; max-width: 70ch; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 48px; display: flex; flex-wrap: wrap; gap: 14px 28px;
  justify-content: space-between; color: var(--faint); font-size: 14px; }
footer a { color: var(--dim); text-decoration: none; }
footer a:hover { color: var(--text); }

/* Long text pages (privacy) */
.doc { max-width: 720px; padding: 32px 0 72px; }
.doc h1 { font-size: clamp(36px, 7vw, 64px); margin: 18px 0 8px; }
.doc h2 { font: 900 22px/1.2 var(--display); font-stretch: 125%; margin: 40px 0 10px; }
.doc p, .doc li { color: rgba(255,255,255,.82); }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.doc th { font: 600 12px var(--display); font-stretch: 125%; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 56px 0; }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr 1fr; align-items: center; padding: 88px 0 112px; }
}
@media (max-width: 600px) {
  .nav nav a:not(.keep) { display: none; }
  .mock { padding: 12px; border-radius: 22px; }
  .mock-grid { --gap: 6px; }
  .chip { font-size: 7px; padding: 3px 6px; top: 6px; left: 6px; }
  .chip.rec { right: 6px; }
  section { padding: 56px 0; }
}

/* Language switch in the nav, and the language chooser at "/" */
.nav nav a.lang { color: var(--text); font: 600 12px/1 var(--mono); padding: 6px 10px; border: 1px solid var(--line); border-radius: 99px; }
.choose { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 28px; text-align: center; }
.choose img { border-radius: 22px; }
.choose h1 { font-size: clamp(40px, 9vw, 72px); }
