/* Wireframe styling — layout mirrors the design PDF; brand polish comes later.
   Target: Galaxy Tab A11 portrait in a kiosk browser. */

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

:root {
  --ink: #1c1c1e;
  --ink-soft: #4a4a4f;
  --pill-bg: rgba(255, 255, 255, 0.82);
  --radius-pill: 48px;
  --radius-card: 24px;
}

html, body {
  height: 100%;
  overscroll-behavior: none;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, #f6c9cf 0%, #d9b7e8 45%, #ece6fb 100%);
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

#app {
  max-width: 640px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 4vh 6vw;
  display: flex;
  flex-direction: column;
}

.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.screen[hidden] { display: none; }

h1 { font-size: clamp(2rem, 7vw, 3.2rem); line-height: 1.15; text-align: center; }
h2 { font-size: clamp(1.6rem, 6vw, 2.6rem); line-height: 1.2; text-align: center; margin: 6vh 0 5vh; }

/* ---------- start ---------- */

.lang-switch { display: flex; gap: 12px; justify-content: flex-end; }

.lang-btn {
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
}

.lang-btn.active { background: var(--ink); color: #fff; }

.start-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4vh;
  /* subtle drift against OLED/LCD burn-in on an always-on start screen */
  animation: drift 24s ease-in-out infinite;
}

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.5vh); }
}

.subtitle {
  font-size: clamp(1.05rem, 3.4vw, 1.4rem);
  color: var(--ink-soft);
  text-align: center;
  max-width: 34ch;
  margin: 0 auto;
}

.start-footer { padding-bottom: 3vh; }

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  background: var(--pill-bg);
  border: none;
  border-radius: var(--radius-pill);
  padding: 22px 30px;
  font-size: clamp(1.3rem, 4.5vw, 1.8rem);
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(90, 60, 120, 0.18);
}

.btn-primary:active { transform: scale(0.98); }

.hint { text-align: center; margin-top: 2vh; color: var(--ink-soft); font-size: 1.05rem; }

.btn-secondary {
  background: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 18px 36px;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(90, 60, 120, 0.18);
}

/* ---------- question ---------- */

.qbar { display: flex; align-items: center; gap: 18px; }

.back {
  background: none;
  border: none;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--ink);
  padding: 6px 14px 10px;
}

.progress {
  flex: 1;
  height: 16px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  overflow: hidden;
}

#progressFill {
  height: 100%;
  width: 0;
  background: var(--ink);
  border-radius: 999px;
  transition: width 0.25s ease;
}

#qCounter { font-size: 1.15rem; font-weight: 600; min-width: 3ch; text-align: right; }

#answers { display: flex; flex-direction: column; gap: 3.5vh; }

.answer {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--pill-bg);
  border: 3px solid transparent;
  border-radius: var(--radius-pill);
  padding: 24px 28px;
  font-size: clamp(1.05rem, 3.6vw, 1.35rem);
  text-align: left;
  color: var(--ink);
  min-height: 96px;
  box-shadow: 0 6px 18px rgba(90, 60, 120, 0.12);
}

.answer:active { transform: scale(0.985); }
.answer.selected { border-color: var(--ink); }

.answer-icon { font-size: 2rem; flex: 0 0 auto; }
.answer-text { flex: 1; }

/* ---------- result ---------- */

#screen-result { gap: 2.2vh; }
#screen-result h1 { font-size: clamp(1.9rem, 6vw, 2.8rem); }

.tagline { text-align: center; font-weight: 600; font-size: 1.2rem; }

.device-card {
  background: #f6f4f8;
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.device-card img { width: 70%; max-height: 30vh; object-fit: contain; }

.device-name { font-size: 1.5rem; font-weight: 700; }

.result-desc { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.5; }

.cta-pill {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 20px 26px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
}

.subscribe-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 26px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.subscribe-card p { color: var(--ink-soft); font-size: 1rem; }

#subForm { display: flex; flex-direction: column; gap: 12px; }

#subEmail {
  border: 1.5px solid #cfc7dd;
  border-radius: 999px;
  padding: 16px 22px;
  font-size: 1.1rem;
  text-align: center;
  background: #fff;
  color: var(--ink);
  -webkit-user-select: text;
  user-select: text;
}

.btn-sub { padding: 16px 24px; font-size: 1.2rem; background: linear-gradient(90deg, #cbb7f2, #b9a5ef); }

.sub-error { color: #b3261e; font-size: 0.95rem; }

.disclaimer { color: #9a93a8; font-size: 0.85rem; }

/* ---------- success / error ---------- */

.center-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3vh;
  text-align: center;
}

.success-count { font-size: 1.4rem; color: var(--ink-soft); }

#errorMsg { font-size: 1.2rem; color: var(--ink-soft); max-width: 40ch; }
