/* Family base for the glasses companion sites. Each site sets its own tokens
   in :root below this file's defaults; the layout is shared. */

:root {
  --bg: #05090b;
  --bg-2: #0a1216;
  --card: #0d171b;
  --card-2: #122026;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --ink: #f5f5f7;
  --ink-2: #c4c4cc;
  --ink-3: #9a9aa4;
  --accent: #00d4ff;
  --accent-ink: #00161d;
  --accent-soft: #b8e8ff;
  --accent-wash: rgba(0, 212, 255, 0.1);
  --glow: rgba(0, 212, 255, 0.28);
  --btn: #00d4ff;
  --radius: 22px;
  --wrap: 1180px;
  --gutter: 24px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.025em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(5, 9, 11, 0.8);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.site-brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 18px; text-decoration: none; letter-spacing: -0.01em; }
.site-brand img { width: 30px; height: 30px; border-radius: 8px; }
.top nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--ink-2); }
.top nav a:hover { color: var(--ink); }
.top nav a.pill {
  color: var(--accent-ink); background: var(--btn); padding: 8px 16px; border-radius: 999px; font-weight: 700;
}
.top nav a.pill:hover { color: var(--accent-ink); filter: brightness(1.08); }
.menu-toggle {
  display: none; width: 44px; height: 44px; margin-right: -8px; border: 0; border-radius: 12px;
  background: transparent; color: var(--ink); cursor: pointer; place-items: center;
}
.menu-toggle:hover { background: rgba(255, 255, 255, 0.06); }
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle .x { display: none; }
.menu-open .menu-toggle .bars { display: none; }
.menu-open .menu-toggle .x { display: block; }
@media (max-width: 760px) {
  .js .menu-toggle { display: grid; }
  .js .top nav {
    position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px;
    background: #081013;
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
    font-size: 18px;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
  }
  .js.menu-open .top nav { visibility: visible; opacity: 1; transform: none; transition: opacity 160ms ease, transform 160ms ease; }
  .js .top nav a { padding: 15px 4px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; }
  .js .top nav a.pill { margin-top: 16px; padding: 14px 16px; text-align: center; border-bottom: 0; color: var(--accent-ink); font-weight: 700; }
  html:not(.js) .top .wrap { height: auto; min-height: 64px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  html:not(.js) .top nav { flex-wrap: wrap; gap: 8px 18px; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .js .top nav, .js.menu-open .top nav { transition: none; transform: none; }
}

/* ---------- jump button ---------- */
.jump {
  position: fixed; z-index: 30;
  right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom));
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  color: var(--ink); background: rgba(28, 28, 32, 0.88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--line-2);
  box-shadow: 0 10px 30px -6px rgba(0, 0, 0, 0.7), 0 0 0 0 var(--glow);
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(0.92);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
}
.jump.on { opacity: 1; visibility: visible; transform: none; transition: opacity 180ms ease, transform 180ms ease; }
.jump:hover { border-color: var(--accent); color: var(--accent); }
.jump svg { width: 22px; height: 22px; }
@media (prefers-reduced-motion: reduce) { .jump, .jump.on { transition: none; transform: none; } }

/* ---------- buttons, chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  min-height: 50px; padding: 0 22px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  border: 1px solid var(--line-2); color: var(--ink);
}
.btn:hover { background: rgba(255, 255, 255, 0.05); }
.btn.primary { background: var(--btn); color: var(--accent-ink); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.1); background: var(--btn); }
.btn svg { width: 18px; height: 18px; }

.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: var(--accent-wash); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  color: var(--accent-soft); font-size: 14px; font-weight: 650;
}
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

.sec-eyebrow {
  display: block; font-size: 13px; font-weight: 750; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 88px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 120%;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  opacity: 0.55; pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 56px; align-items: center; }
.app-id { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.app-id img { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 10px 40px -8px var(--glow), 0 0 0 1px var(--line); }
.app-id b { display: block; font-size: 22px; letter-spacing: -0.01em; }
.app-id span { display: block; color: var(--ink-3); font-size: 14px; font-weight: 600; margin-top: 2px; }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); font-weight: 800; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: 19px; color: var(--ink-2); max-width: 36em; margin-bottom: 26px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.hero .meta { font-size: 14px; color: var(--ink-3); margin: 0; }

/* ---------- lens (HUD illustration frame) ---------- */
figure { margin: 0; }
.lens-fig { display: flex; flex-direction: column; align-items: center; }
.lens {
  --s: 0.8;
  position: relative;
  width: calc(600px * var(--s)); height: calc(600px * var(--s));
  border-radius: calc(40px * var(--s));
  overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px var(--line-2), 0 0 0 calc(10px * var(--s)) #0f0f11, 0 0 0 calc(11px * var(--s)) var(--line), 0 40px 120px -30px var(--glow);
}
.lens > .hud600 { position: absolute; left: 0; top: 0; width: 600px; height: 600px; transform: scale(var(--s)); transform-origin: 0 0; }
.lens::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent 38%);
}
.caption { margin-top: 26px; font-size: 13px; color: var(--ink-3); text-align: center; max-width: 30em; }
.caption b { color: var(--ink-2); font-weight: 650; }
.tag {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 7px; margin-right: 6px; vertical-align: 1px;
}

/* ---------- sections ---------- */
section.block { padding: 96px 0; border-top: 1px solid var(--line); }
section.block.alt { background: var(--bg-2); }
.head2 { max-width: 760px; margin-bottom: 48px; }
.head2 h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; margin-bottom: 16px; }
.head2 p { color: var(--ink-2); font-size: 18px; margin: 0; }

/* how it works */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.flow li { list-style: none; }
.flow { padding: 0; margin: 0; }
.step {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px 26px;
}
.step .where {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 18px;
}
.step .where svg { width: 18px; height: 18px; color: var(--accent); }
.step .n {
  position: absolute; top: 22px; right: 24px; font: 800 14px/1 var(--mono); color: var(--ink-3);
}
.step h3 { font-size: 22px; margin-bottom: 10px; letter-spacing: -0.015em; }
.step p { color: var(--ink-2); margin: 0; font-size: 16px; }

/* lens gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.gallery .lens { --s: 0.58; }
.gallery figcaption { margin-top: 26px; text-align: center; }
.gallery figcaption b { display: block; font-size: 17px; margin-bottom: 4px; }
.gallery figcaption span { color: var(--ink-3); font-size: 15px; }
.gallery-note { margin-top: 36px; color: var(--ink-3); font-size: 14px; text-align: center; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 24px;
}
.feature .ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-wash); color: var(--accent); margin-bottom: 18px;
}
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { font-size: 19px; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.feature.wide { grid-column: span 2; }

/* controls table */
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ctable { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 24px; }
.ctable h3 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); padding: 16px 0 8px; }
.ctable dl { margin: 0; }
.ctable .row { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.ctable dt { font-weight: 700; white-space: nowrap; }
.ctable dd { margin: 0; color: var(--ink-2); text-align: right; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.chips li {
  padding: 9px 16px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line);
  font-weight: 650; font-size: 15px; color: var(--ink);
}
.chips li::before { content: "\201C"; color: var(--accent); }
.chips li::after { content: "\201D"; color: var(--accent); }

/* split text + panel */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.bullets { list-style: none; padding: 0; margin: 0; }
.bullets li { position: relative; padding: 0 0 14px 28px; color: var(--ink-2); }
.bullets li::before {
  content: ""; position: absolute; left: 4px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}
.bullets li b { color: var(--ink); }

/* closing */
.closing { padding: 110px 0 100px; text-align: center; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.closing::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 900px; height: 600px; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow), transparent 70%); opacity: 0.45; pointer-events: none;
}
.closing .wrap { position: relative; }
.closing img { width: 104px; height: 104px; border-radius: 24px; margin: 0 auto 28px; box-shadow: 0 20px 60px -12px var(--glow); }
.closing h2 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; margin-bottom: 16px; }
.closing p { color: var(--ink-2); font-size: 18px; max-width: 34em; margin: 0 auto 30px; }
.closing .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; color: var(--ink-3); }
.site-foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; }
.site-foot .site-brand { font-size: 16px; color: var(--ink); margin-bottom: 12px; }
.site-foot .site-brand img { width: 26px; height: 26px; border-radius: 7px; }
.site-foot p { margin: 0 0 6px; max-width: 44em; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-foot nav a { color: var(--ink-2); text-decoration: none; }
.site-foot nav a:hover { color: var(--ink); text-decoration: underline; }
.site-foot .berth { color: var(--ink-2); }

/* ---------- doc pages (privacy, support, 404) ---------- */
.doc { padding: 64px 0 96px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 800; margin-bottom: 12px; }
.doc .updated { color: var(--ink-3); font-size: 14px; margin-bottom: 36px; }
.doc h2 { font-size: 24px; margin: 44px 0 14px; letter-spacing: -0.015em; }
.doc h3 { font-size: 18px; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 22px; margin: 0 0 1em; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--accent-soft); }
.doc strong { color: var(--ink); }
.callout {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 24px 0;
}
.callout p:last-child { margin: 0; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 12px 0 0; }

.nf { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.nf .code { font: 800 15px/1 var(--mono); letter-spacing: 0.2em; color: var(--accent); margin-bottom: 18px; }
.nf h1 { font-size: clamp(36px, 6vw, 60px); margin-bottom: 14px; }
.nf p { color: var(--ink-2); margin-bottom: 28px; }
.nf .actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 1140px) {
  .gallery .lens { --s: 0.52; }
}
@media (max-width: 1040px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
  .hero .lens { --s: 0.72; }
  .features { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .lens { --s: 0.62; }
  .split { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; }
  .controls { grid-template-columns: 1fr; }
  .gallery .lens { --s: 0.56; }
}
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr; gap: 48px; }
  .gallery .lens { --s: 0.72; }
}
@media (max-width: 640px) {
  :root { --gutter: 18px; }
  body { font-size: 16px; }
  .hero { padding: 44px 0 64px; }
  .hero .lens, .gallery .lens { --s: 0.56; }
  .lede { font-size: 17px; }
  section.block { padding: 72px 0; }
  .head2 { margin-bottom: 32px; }
  .head2 p { font-size: 17px; }
  .features { grid-template-columns: 1fr; }
  .feature.wide { grid-column: auto; }
  .site-foot .wrap { grid-template-columns: 1fr; }
  .hero .actions .btn, .closing .actions .btn { flex: 1 1 auto; }
  .ctable .row { flex-direction: column; gap: 2px; }
  .ctable dd { text-align: left; }
}
@media (max-width: 380px) {
  .hero .lens, .gallery .lens { --s: 0.52; }
}
