/* App Cambox V3+ website. System type, semantic light/dark tokens, Cambox yellow kept for
   primary actions and the ring mark only. Hero and camera bands stay dark: the brand moment. */

:root {
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --text-2: #6e6e73;   /* 5.1:1 on #fff, 4.7:1 on #f5f5f7 */
  --sep: rgba(0, 0, 0, 0.1);
  --link: #0066cc;     /* 5.6:1 on #fff */
  --accent: #ffe300;   /* Cambox yellow, used as a fill with black text: 16:1 */
  --on-accent: #000000;
  --radius: 22px;
  --wrap: 1080px;
  --gutter: max(20px, env(safe-area-inset-left));
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-2: #0d0d0f;
    --card: #1c1c1e;
    --text: #f5f5f7;
    --text-2: #a1a1a6; /* 8.1:1 on #000, 6.6:1 on #1c1c1e */
    --sep: rgba(255, 255, 255, 0.14);
    --link: #2997ff;   /* 7.2:1 on #000 */
  }
}

/* Bands that stay dark in both appearances */
.dark {
  --bg: #000000;
  --card: #1c1c1e;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --sep: rgba(255, 255, 255, 0.14);
  --link: #2997ff;
  background: var(--bg);
  color: var(--text);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
/* Body stays black: Safari tints its status bar area with it, matching the dark nav. Sections paint their own background. */
body {
  margin: 0;
  background: #000;
  color: var(--text);
  font: 400 17px/1.47 var(--font);
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0; }
code { font: 600 0.94em ui-monospace, "SF Mono", Menlo, monospace; background: var(--bg-2); padding: 0.1em 0.4em; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Navigation: translucent material, like a toolbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; margin-bottom: -56px; /* floats over the dark hero */
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #f5f5f7;
}
.nav__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); height: 56px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; font-weight: 600; font-size: 15px; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 7px; }
.brand__tag { color: #a1a1a6; font-weight: 400; margin-left: 2px; }
.nav__links { list-style: none; display: flex; gap: 22px; margin: 0 0 0 auto; padding: 0; }
.nav__links a { color: #d2d2d7; font-size: 13px; }
.nav__links a:hover { color: #fff; text-decoration: none; }
@media (max-width: 640px) { .nav__links { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- Buttons (44 px min targets) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 980px;
  font: 600 17px/1 var(--font); letter-spacing: -0.01em; cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, background-color 0.2s ease;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn:active { transform: scale(0.97); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--glass { background: rgba(255, 255, 255, 0.12); color: #f5f5f7; border: 1px solid rgba(255, 255, 255, 0.18); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn--glass:hover { background: rgba(255, 255, 255, 0.18); }
.btn--small { min-height: 34px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Type ---------- */
/* Compatibility badge */
.compat {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  padding: 6px 14px 6px 8px; border-radius: 980px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f5f5f7; font-size: 15px; font-weight: 600;
}
.compat svg { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); fill: none; stroke: #000; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; padding: 3px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 17px; margin-bottom: 14px; }
.eyebrow--muted { color: var(--text-2); }
h1 { font-size: clamp(42px, 5.6vw, 72px); line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.07; letter-spacing: -0.025em; }
h3 { font-size: 24px; line-height: 1.17; }
.lead { font-size: clamp(19px, 2.1vw, 22px); line-height: 1.42; color: var(--text-2); margin-top: 22px; max-width: 34em; }
.lead--narrow { margin-left: auto; margin-right: auto; }
.section-head { text-align: center; margin-bottom: clamp(48px, 7vw, 80px); }

/* ---------- Hero ---------- */
.hero { padding: calc(56px + clamp(48px, 7vw, 88px)) 0 clamp(64px, 9vw, 112px); position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: 40px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 26px 0 0; color: #a1a1a6; font-size: 14px; }
.facts li { display: flex; align-items: center; gap: 7px; }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.hero__visual { position: relative; display: grid; place-items: center; min-height: 560px; }
/* Signature: the yellow-ringed lens of the app icon, drawn large behind the phone */
.ring {
  position: absolute; width: min(460px, 86vw); aspect-ratio: 1; border-radius: 50%;
  border: clamp(34px, 5vw, 54px) solid var(--accent);
  box-shadow: inset 0 0 0 clamp(14px, 2vw, 22px) #000, inset 0 0 80px rgba(255, 227, 0, 0.18);
  filter: drop-shadow(0 0 60px rgba(255, 227, 0, 0.28));
}
.ring::after { content: ""; position: absolute; width: 16%; aspect-ratio: 1; border-radius: 50%; left: 16%; top: 16%; background: rgba(255, 255, 255, 0.85); }
.phone--hero { position: relative; z-index: 1; width: min(270px, 62vw); transform: rotate(-4deg); }

/* ---------- Phone frame (screenshots) ---------- */
.phone {
  margin: 0; width: min(300px, 72vw); flex: none;
  padding: 9px; border-radius: 52px; background: #1d1d1f;
  box-shadow: 0 0 0 1.5px #3a3a3c, 0 30px 80px -20px rgba(0, 0, 0, 0.45);
}
.phone img { border-radius: 44px; width: 100%; }

/* ---------- Story ---------- */
.story { padding: clamp(56px, 8vw, 96px) 0; background: var(--bg-2); }
.story__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.story__steps h3 { font-size: 21px; margin: 16px 0 8px; }
.story__steps p { color: var(--text-2); }
.story__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--card); box-shadow: 0 1px 0 var(--sep); }
.story__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Features ---------- */
.features { padding: clamp(80px, 11vw, 140px) 0; background: var(--bg); }
.feature { display: flex; align-items: center; gap: clamp(32px, 8vw, 110px); justify-content: center; }
.feature + .feature { margin-top: clamp(80px, 11vw, 140px); }
.feature--flip { flex-direction: row-reverse; }
.feature__copy { max-width: 440px; }
.feature__copy h3 { font-size: clamp(30px, 4vw, 40px); line-height: 1.1; letter-spacing: -0.022em; }
.feature__copy > p { color: var(--text-2); font-size: 19px; line-height: 1.47; margin-top: 16px; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: baseline; }
.ticks li::before {
  content: ""; flex: none; width: 16px; height: 16px; transform: translateY(2px); border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* ---------- Camera band ---------- */
.camera { padding: clamp(80px, 11vw, 140px) 0; }
.camera .section-head { margin-bottom: 56px; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; background: rgba(255, 255, 255, 0.12); border-radius: var(--radius); overflow: hidden; }
.specs > div { background: #0d0d0f; padding: 28px 26px; }
.specs dt { color: var(--accent); font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.specs dd { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; }
.specs dd span { font-size: 15px; font-weight: 400; color: var(--text-2); letter-spacing: -0.01em; }

/* ---------- Install ---------- */
.install { padding: clamp(80px, 11vw, 140px) 0; background: var(--bg-2); }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { background: var(--card); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; }
.card h3 { display: flex; align-items: center; gap: 10px; font-size: 28px; }
.card h3 svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.card__note { color: var(--text-2); margin-top: 8px; }
.steps { margin: 22px 0 26px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; flex: 1; }
.steps li { counter-increment: s; position: relative; padding-left: 40px; min-height: 28px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-2); font-weight: 600; font-size: 15px; }
.card__fine { color: var(--text-2); font-size: 14px; margin-top: 14px; text-align: center; }

.connect { margin-top: 20px; background: var(--card); border-radius: var(--radius); padding: 32px; }
.connect h3 { font-size: 24px; }
.connect__steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: c; }
.connect__steps li { counter-increment: c; display: grid; gap: 6px; align-content: start; }
.connect__steps li::before { content: counter(c); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; margin-bottom: 6px; }
.connect__steps span { color: var(--text-2); font-size: 15px; }
.connect__note { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--sep); color: var(--text-2); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(80px, 11vw, 140px) 0; background: var(--bg); }
.qa { border-top: 1px solid var(--sep); }
.qa details { border-bottom: 1px solid var(--sep); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 44px; padding: 20px 0; font-size: 19px; font-weight: 600;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-right: 4px;
  border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.25s ease;
}
.qa details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.qa details p { color: var(--text-2); padding: 0 0 22px; max-width: 46em; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--sep); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--text-2); }
.footer__inner { display: grid; grid-template-columns: auto 1fr; gap: 24px 40px; align-items: center; }
.footer__brand { display: flex; gap: 14px; align-items: center; }
.footer__brand img { border-radius: 9px; }
.footer__brand strong { color: var(--text); font-size: 15px; }
.footer__links { list-style: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 24px; margin: 0; padding: 0; }
.footer__links a { display: inline-block; padding: 8px 0; }
.legal { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--sep); line-height: 1.5; }

/* ---------- Reveal on scroll (skipped with Reduce Motion) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: #000; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Layout follows available width ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .cta, .facts { justify-content: center; }
  .hero__visual { min-height: 0; padding: 40px 0 10px; }
  .story__steps { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .feature, .feature--flip { flex-direction: column; text-align: center; }
  .feature__copy { max-width: 560px; }
  .ticks { justify-items: center; }
  .specs { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr; }
  .connect__steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .cta .btn { width: 100%; }
  .specs { grid-template-columns: 1fr; }
  .connect__steps { grid-template-columns: 1fr; }
  .card, .connect { padding: 24px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { justify-content: flex-start; }
}
