/* Weri WebAR — system fonts only, no external requests. */
:root {
  --cyan: #00e5ff;
  --cyan-dim: rgba(0, 229, 255, 0.35);
  --bg: #0a0a0f;
  --bg2: #1a1a2e;
  --text: #eaf9fc;
  --muted: #a9c3c9;
  --radius: 14px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
}

[hidden] { display: none !important; }

#app { position: fixed; inset: 0; }

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: radial-gradient(120% 90% at 50% 0%, var(--bg2) 0%, var(--bg) 70%);
  overflow-y: auto;
  z-index: 20;
}

.card {
  width: 100%;
  max-width: 420px;
  margin: auto;
  padding: 24px 20px;
  border: 1px solid var(--cyan-dim);
  border-radius: var(--radius);
  background: rgba(10, 10, 15, 0.72);
  text-align: center;
}

.intro-logo { width: 84px; height: auto; display: block; margin: 0 auto 8px; }

h1, h2 { margin: 8px 0 12px; font-size: 1.5rem; line-height: 1.2; color: var(--cyan); }
p { margin: 0 0 12px; line-height: 1.45; font-size: 1rem; }
.why { color: var(--text); }
.privacy {
  color: var(--text);
  border-left: 3px solid var(--cyan);
  background: rgba(0, 229, 255, 0.08);
  padding: 8px 10px;
  text-align: left;
  border-radius: 6px;
}
.small { font-size: 0.9rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 48px;
  padding: 10px 20px;
  margin: 6px 4px;
  border-radius: 999px;
  border: 2px solid var(--cyan);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary { background: var(--cyan); color: #00161a; }
.btn-secondary { background: transparent; color: var(--cyan); }
.btn-ghost { background: rgba(10, 10, 15, 0.7); color: var(--cyan); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn:focus-visible, .cta-link:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}
#btn-start { width: 100%; margin: 8px 0 12px; font-size: 1.1rem; }

.cta-link {
  display: inline-block;
  padding: 10px 4px;
  color: var(--cyan);
  font-weight: 600;
  text-underline-offset: 3px;
}

/* AR view */
.screen-ar { position: absolute; inset: 0; background: #000; z-index: 10; }
#ar-container { position: absolute; inset: 0; overflow: hidden; }
#ar-container video { max-width: none; }

.corner-logo {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: 12px;
  width: 44px;
  height: auto;
  z-index: 15;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.6));
  pointer-events: none;
}

.status {
  position: absolute;
  left: 50%;
  top: max(16px, env(safe-area-inset-top));
  transform: translateX(-50%);
  max-width: calc(100% - 96px);
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(10, 10, 15, 0.78);
  color: var(--text);
  font-size: 0.95rem;
  text-align: center;
  z-index: 15;
}
.status:empty { display: none; }

.ar-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 8px;
  z-index: 15;
}
.btn-shot { font-size: 1.1rem; min-width: 150px; }

/* Preview */
.card-preview { max-width: 480px; }
#preview-img {
  display: block;
  width: 100%;
  max-height: 55vh;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--cyan-dim);
  margin: 0 auto 12px;
  background: #000;
}
.row { display: flex; flex-wrap: wrap; justify-content: center; }

/* link to street mode (v2) */
.street-link {
  display: block;
  margin-top: 2px;
  padding: 10px 4px;
  color: var(--text);
  font-size: 0.95rem;
  text-underline-offset: 3px;
}
.street-link:focus-visible { outline: 3px solid #ffffff; outline-offset: 3px; }

.noscript { padding: 16px; text-align: center; }
.noscript a { color: var(--cyan); }

@media (max-width: 360px) {
  .card { padding: 18px 14px; }
  h1, h2 { font-size: 1.3rem; }
  .btn { padding: 10px 14px; }
}
