/* EON OS phone intake — premium dark, teal intelligence accent. */
:root {
  --void: #050a0f;
  --surface: #0b141c;
  --surface-2: #101d27;
  --eon: #4fe3c1;
  --eon-deep: #0e7a66;
  --gold: #d8b24a;
  --ivory: #edf4f2;
  --mist: #7c929b;
  --line: rgba(79, 227, 193, 0.16);
  --display: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --mono: "Cascadia Code", "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(14, 122, 102, 0.28), transparent 60%),
    var(--void);
  color: var(--ivory);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

.shell {
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  padding: max(env(safe-area-inset-top), 20px) 24px max(env(safe-area-inset-bottom), 24px);
  display: flex;
  flex-direction: column;
}

.panel {
  display: none;
  flex: 1;
  flex-direction: column;
  gap: 20px;
  animation: rise 0.5s ease both;
}
.panel.is-active { display: flex; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
}
.brand-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--eon);
  box-shadow: 0 0 14px var(--eon);
}
.brand-word {
  font-size: 12px;
  letter-spacing: 0.42em;
  color: var(--mist);
}

.headline {
  font-size: clamp(34px, 9vw, 44px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-top: 10px;
}
.headline em {
  font-style: normal;
  color: var(--eon);
}
.headline--center { text-align: center; margin-top: 24px; }

.lede { color: var(--mist); font-size: 16px; line-height: 1.55; }
.lede--center { text-align: center; }
.lede strong { color: var(--ivory); }

.privacy-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 16px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--mist);
}
.privacy-card strong { color: var(--eon); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--eon);
}

.title { font-size: 26px; font-weight: 400; line-height: 1.2; }

.cta {
  margin-top: auto;
  width: 100%;
  padding: 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--eon) 0%, #37b89b 100%);
  color: #04211a;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta:active { transform: scale(0.98); }
.cta:focus-visible, .ghost-btn:focus-visible, .choice:focus-visible {
  outline: 2px solid var(--eon);
  outline-offset: 3px;
}
.cta[disabled] { opacity: 0.4; }

.ghost-btn {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--mist);
  font-family: var(--display);
  font-size: 15px;
  text-align: center;
  cursor: pointer;
}

/* camera */
.camera-stage {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.camera-stage video {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}
.camera-guide {
  position: absolute;
  inset: 8% 16%;
  border: 1.5px dashed rgba(79, 227, 193, 0.5);
  border-radius: 46% 46% 40% 40%;
  pointer-events: none;
}
.camera-actions { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.hint { font-size: 13px; color: var(--mist); text-align: center; min-height: 1.2em; }

/* avatar */
.avatar-frame {
  width: min(68vw, 300px);
  aspect-ratio: 3 / 4;
  margin: 8px auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(79, 227, 193, 0.35);
  box-shadow: 0 0 44px rgba(79, 227, 193, 0.18);
}
.avatar-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* questionnaire */
.q-progress {
  height: 3px;
  border-radius: 3px;
  background: rgba(124, 146, 155, 0.2);
  overflow: hidden;
}
.q-progress-fill {
  height: 100%;
  width: 0;
  background: var(--eon);
  transition: width 0.35s ease;
}

.question { display: flex; flex-direction: column; gap: 16px; animation: rise 0.35s ease both; }
.question .title { min-height: 2.2em; }

.choices { display: flex; flex-direction: column; gap: 10px; }
.choices--grid { display: grid; grid-template-columns: 1fr 1fr; }

.choice {
  padding: 16px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ivory);
  font-family: var(--display);
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.choice:active { background: var(--surface-2); }
.choice.is-picked {
  border-color: var(--eon);
  background: rgba(79, 227, 193, 0.1);
}

.text-input {
  width: 100%;
  padding: 18px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ivory);
  font-family: var(--display);
  font-size: 20px;
}
.text-input:focus { outline: none; border-color: var(--eon); }

.delivery-status {
  text-align: center;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--mist);
  min-height: 1.4em;
}
.delivery-status.is-ok { color: var(--eon); }
.delivery-status.is-err { color: #e0a56a; }

/* done pulse */
.pulse-ring {
  position: relative;
  width: 120px; height: 120px;
  margin: 36px auto 0;
}
.pulse-ring span {
  position: absolute; inset: 0;
  border: 1px solid var(--eon);
  border-radius: 50%;
  animation: pulse 2.6s ease-out infinite;
  opacity: 0;
}
.pulse-ring span:nth-child(2) { animation-delay: 0.85s; }
.pulse-ring span:nth-child(3) { animation-delay: 1.7s; }

@keyframes pulse {
  0% { transform: scale(0.35); opacity: 0.9; }
  100% { transform: scale(1.25); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .panel, .question { animation: none; }
  .pulse-ring span { animation: none; opacity: 0.3; }
}

/* ---- retention consent (avatar screen) ---------------------------------- */
.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 14px 0 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ivory);
  text-align: left;
}
.consent input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--eon);
}
.consent em { display: block; font-style: normal; color: var(--mist); margin-top: 4px; }
