/* ===================================================
   NEXORA HEALTH — Premium Survey Styles
   LIGHT THEME · Mobile-First
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Plus+Jakarta+Sans:wght@700;800&display=swap');

:root {
  /* ── Light Palette ── */
  --bg-primary:     #FAFBFF;
  --bg-secondary:   #F4F6FC;
  --bg-card:        #FFFFFF;
  --bg-card-hover:  #F8F9FF;
  --bg-input:       #F4F6FC;
  --bg-input-focus: #EEF2FF;

  --border-subtle:  rgba(0,0,0,0.07);
  --border-medium:  rgba(0,0,0,0.12);
  --border-focus:   rgba(88,130,247,0.5);

  --text-primary:   #0F172A;
  --text-secondary: #475569;
  --text-muted:     #94A3B8;
  --text-placeholder: #B0BAD0;

  /* ── Brand Colors ── */
  --accent-blue:    #5882F7;
  --accent-purple:  #8B5CF6;
  --accent-teal:    #06B6D4;
  --accent-rose:    #EF4444;

  --gradient-brand: linear-gradient(135deg, #5882F7 0%, #8B5CF6 100%);
  --gradient-brand-soft: linear-gradient(135deg, rgba(88,130,247,0.08) 0%, rgba(139,92,246,0.08) 100%);
  --gradient-hero-bg: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(88,130,247,0.12) 0%, transparent 65%);

  /* ── Shape ── */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  20px;
  --radius-2xl: 28px;

  /* ── Shadows ── */
  --shadow-sm:   0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md:   0 4px 16px rgba(15,23,42,0.08), 0 2px 4px rgba(15,23,42,0.04);
  --shadow-lg:   0 8px 32px rgba(15,23,42,0.10), 0 2px 8px rgba(15,23,42,0.05);
  --shadow-focus:0 0 0 3px rgba(88,130,247,0.18);

  /* ── Motion ── */
  --ease-fast:   150ms cubic-bezier(0.4,0,0.2,1);
  --ease-smooth: 280ms cubic-bezier(0.4,0,0.2,1);
  --ease-spring: 380ms cubic-bezier(0.34,1.56,0.64,1);
}

/* ─────────────────────────────────────────────────── */
/*  RESET                                               */
/* ─────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  font-size: 16px;
}

h1,h2,h3,h4 {
  font-family: 'Bricolage Grotesque','Inter',sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ─────────────────────────────────────────────────── */
/*  LANGUAGE BAR / NAVBAR                               */
/* ─────────────────────────────────────────────────── */
.lang-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 20px;
  height: 56px;
  background: rgba(250,251,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 0 rgba(15,23,42,0.04);
}

.lang-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}

/* Real logo image in navbar */
.navbar-logo-img {
  height: 30px;
  width: auto;
  display: block;
  object-fit: contain;
  /* The logo has a white background — add subtle contrast on light bg */
  filter: none;
}

@media (max-width: 400px) {
  .navbar-logo-img { height: 24px; }
}

/* SVG Logo mark container */
.lang-logo-mark {
  width: 34px; height: 34px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}

.lang-logo-text {
  font-weight: 800; font-size: 16px;
  letter-spacing: -0.03em; color: var(--text-primary);
  display: flex; align-items: center; gap: 1px;
}
.lang-logo-text .logo-health {
  font-weight: 400; color: var(--text-muted); font-size: 14px; margin-left: 4px;
}

.lang-switcher {
  display: flex; gap: 2px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px; padding: 3px;
}

.lang-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 5px; border: none;
  background: transparent; color: var(--text-muted);
  font-size: 11px; font-weight: 700; cursor: pointer;
  transition: all var(--ease-fast);
  letter-spacing: 0.04em; text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  min-width: 36px; text-align: center;
}
.lang-flag { font-size: 16px; line-height: 1; }
.lang-code { font-size: 11px; font-weight: 700; }
.lang-btn:hover { color: var(--text-primary); background: white; }
.lang-btn.active { background: var(--gradient-brand); color: white; box-shadow: 0 1px 4px rgba(88,130,247,0.3); }
.lang-btn.active .lang-flag { filter: none; }

/* ─────────────────────────────────────────────────── */
/*  HERO / LANDING                                      */
/* ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 96px 20px 72px;
  background: var(--gradient-hero-bg);
  position: relative; overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(88,130,247,0.15), transparent);
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 16px;
  background: rgba(88,130,247,0.08);
  border: 1.5px solid rgba(88,130,247,0.18);
  border-radius: 100px;
  font-size: 11px; font-weight: 700; color: var(--accent-blue);
  letter-spacing: 0.07em; text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeInDown 0.6s ease both;
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-blue);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.35; transform:scale(0.65); }
}

.hero-title {
  font-size: clamp(32px, 6vw, 60px);
  font-family: 'Plus Jakarta Sans', 'Bricolage Grotesque', 'Inter', sans-serif;
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.07;
  margin-bottom: 20px;
  color: var(--text-primary);
  animation: fadeInUp 0.65s ease 0.1s both;
}
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-secondary);
  max-width: 500px; margin: 0 auto 44px;
  line-height: 1.75;
  animation: fadeInUp 0.65s ease 0.2s both;
}

.hero-cta-group {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  animation: fadeInUp 0.65s ease 0.3s both;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px;
  background: var(--gradient-brand); color: white;
  font-size: 16px; font-weight: 600; border-radius: 100px;
  border: none; cursor: pointer; text-decoration: none;
  transition: all var(--ease-smooth);
  box-shadow: 0 4px 20px rgba(88,130,247,0.3);
  font-family: 'Inter', sans-serif; letter-spacing: -0.01em;
  /* Touch friendly */
  min-height: 54px; touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(88,130,247,0.38); }
.btn-primary:active { transform: translateY(0) scale(0.98); }

.hero-note {
  font-size: 13px; color: var(--text-muted);
  display: flex; align-items: center; gap: 6px;
}

.hero-stats {
  display: flex; gap: 40px; flex-wrap: wrap; justify-content: center;
  margin-top: 64px; padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
  animation: fadeInUp 0.65s ease 0.4s both;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-size: 28px; font-weight: 800; letter-spacing: -0.03em;
  background: var(--gradient-brand);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-stat-label { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

/* ─────────────────────────────────────────────────── */
/*  PROGRESS BAR                                        */
/* ─────────────────────────────────────────────────── */
.survey-progress {
  position: fixed; top: 56px; left: 0; right: 0; z-index: 99;
  height: 3px; background: rgba(88,130,247,0.1);
}
.survey-progress-fill {
  height: 100%; background: var(--gradient-brand);
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 0 8px rgba(88,130,247,0.4);
}
.survey-progress-label {
  position: fixed; top: 62px; right: 16px; z-index: 99;
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--border-subtle);
  padding: 3px 10px; border-radius: 100px;
  box-shadow: var(--shadow-sm);
  display: none;
}

/* ─────────────────────────────────────────────────── */
/*  SURVEY PAGE                                         */
/* ─────────────────────────────────────────────────── */
#survey-page {
  display: none;
  padding: 72px 0 80px;
  min-height: 100vh;
  background: var(--bg-primary);
}

.survey-wrapper {
  max-width: 640px; margin: 0 auto; padding: 0 16px;
}

/* ─────────────────────────────────────────────────── */
/*  SECTION HEADERS                                     */
/* ─────────────────────────────────────────────────── */
.section-header { margin-bottom: 20px; padding-top: 24px; }
.section-eyebrow {
  display: inline-block; font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-blue); margin-bottom: 6px;
}
.section-title {
  font-size: clamp(20px, 4vw, 26px); font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 6px; color: var(--text-primary);
}
.section-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }

.section-microcopy {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(88,130,247,0.06), rgba(139,92,246,0.06));
  border: 1px solid rgba(88,130,247,0.12);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}
.microcopy-icon { font-size: 17px; flex-shrink: 0; margin-top: 1px; }
.microcopy-text { font-size: 13px; color: var(--text-secondary); line-height: 1.65; }
.microcopy-text strong { color: var(--text-primary); font-weight: 600; }

/* ─────────────────────────────────────────────────── */
/*  QUESTION CARDS                                      */
/* ─────────────────────────────────────────────────── */
.question-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 20px 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--ease-smooth), border-color var(--ease-smooth);
}
.question-card:focus-within {
  border-color: rgba(88,130,247,0.25);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(88,130,247,0.08);
}
.question-card.has-error {
  border-color: rgba(239,68,68,0.35);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.08);
}

.question-label {
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  margin-bottom: 16px; line-height: 1.5;
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--text-primary);
}
.q-num {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px;
  background: var(--gradient-brand-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--accent-blue); margin-top: 1px;
}
.question-hint {
  font-size: 12px; font-weight: 400; color: var(--text-muted);
  margin-top: 3px; display: block;
}

/* ─────────────────────────────────────────────────── */
/*  OPTION GRID                                         */
/* ─────────────────────────────────────────────────── */
.options-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.options-grid.cols-1 { grid-template-columns: 1fr; }
.options-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

/* Mobile: always single column for comfort */
@media (max-width: 480px) {
  .options-grid,
  .options-grid.cols-3 { grid-template-columns: 1fr; }
  .options-grid.cols-2-mobile { grid-template-columns: 1fr 1fr; }
}

/* ─────────────────────────────────────────────────── */
/*  OPTION BUTTONS (touch-first design)                 */
/* ─────────────────────────────────────────────────── */
.opt { position: relative; }
.opt input[type=radio],
.opt input[type=checkbox] {
  position: absolute; opacity: 0; width: 0; height: 0;
  pointer-events: none;
}

.opt-label {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 15px;
  background: var(--bg-input);
  border: 1.5px solid rgba(0,0,0,0.07);
  border-radius: var(--radius-md);
  cursor: pointer; font-size: 14px; font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--ease-fast);
  user-select: none; line-height: 1.4;
  /* Touch minimum */
  min-height: 50px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.opt-label:active {
  transform: scale(0.98);
  background: rgba(88,130,247,0.06);
}

@media (hover: hover) {
  .opt-label:hover {
    border-color: rgba(88,130,247,0.3);
    color: var(--text-primary);
    background: rgba(88,130,247,0.04);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
  }
}

.opt input:checked + .opt-label {
  border-color: var(--accent-blue);
  background: rgba(88,130,247,0.07);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(88,130,247,0.2), var(--shadow-sm);
}

/* ── Radio dot ── */
.opt-dot {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--border-medium);
  flex-shrink: 0; transition: all var(--ease-fast); position: relative;
  background: white;
}
.opt-dot::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%;
  background: var(--accent-blue); opacity: 0; transform: scale(0);
  transition: all var(--ease-spring);
}
.opt input:checked + .opt-label .opt-dot { border-color: var(--accent-blue); }
.opt input:checked + .opt-label .opt-dot::after { opacity: 1; transform: scale(1); }

/* ── Checkbox ── */
.opt input[type=checkbox] + .opt-label .opt-dot {
  border-radius: 5px;
}
.opt input[type=checkbox] + .opt-label .opt-dot::after {
  content: '✓'; font-size: 10px; font-weight: 900; color: white;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-blue); border-radius: 3px; inset: 0;
  opacity: 0; transform: scale(0.4);
}
.opt input[type=checkbox]:checked + .opt-label .opt-dot { border-color: var(--accent-blue); }
.opt input[type=checkbox]:checked + .opt-label .opt-dot::after { opacity: 1; transform: scale(1); }

/* ─────────────────────────────────────────────────── */
/*  SCALE WIDGET                                        */
/* ─────────────────────────────────────────────────── */
.scale-wrap { padding: 2px 0; }
.scale-track {
  display: flex; gap: 5px; margin-bottom: 8px;
  /* Scrollable on tiny screens */
}
.scale-btn {
  flex: 1;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--text-muted); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all var(--ease-fast);
  font-family: 'Inter', sans-serif;
  display: flex; align-items: center; justify-content: center;
  /* Good touch target */
  min-height: 46px; padding: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.scale-btn:active { transform: scale(0.93); }
@media (hover: hover) {
  .scale-btn:hover {
    border-color: rgba(88,130,247,0.35); color: var(--text-primary);
    transform: translateY(-2px); background: rgba(88,130,247,0.06);
    box-shadow: var(--shadow-sm);
  }
}
.scale-btn.selected {
  background: var(--gradient-brand); border-color: transparent;
  color: white;
  box-shadow: 0 3px 12px rgba(88,130,247,0.3);
  transform: translateY(-2px);
}
.scale-labels {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--text-muted); padding: 0 2px;
}

/* ─────────────────────────────────────────────────── */
/*  TEXTAREAS                                           */
/* ─────────────────────────────────────────────────── */
.survey-textarea {
  width: 100%; min-height: 110px; padding: 14px 16px;
  background: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary); font-size: 15px;
  font-family: 'Inter', sans-serif; line-height: 1.65;
  resize: vertical; transition: all var(--ease-fast);
  outline: none;
  -webkit-appearance: none;
}
.survey-textarea::placeholder { color: var(--text-placeholder); font-style: italic; }
.survey-textarea:focus {
  border-color: var(--accent-blue);
  background: var(--bg-input-focus);
  box-shadow: var(--shadow-focus);
}

/* ─────────────────────────────────────────────────── */
/*  CONTACT INPUTS                                      */
/* ─────────────────────────────────────────────────── */
.contact-fields { display: grid; gap: 10px; }
.contact-field { position: relative; }
.contact-icon {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%); font-size: 16px;
  color: var(--text-muted); pointer-events: none;
}
.survey-input {
  width: 100%; padding: 14px 14px 14px 44px;
  background: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary); font-size: 15px;
  font-family: 'Inter', sans-serif;
  transition: all var(--ease-fast); outline: none;
  min-height: 50px;
  -webkit-appearance: none;
}
.survey-input::placeholder { color: var(--text-placeholder); }
.survey-input:focus {
  border-color: var(--accent-blue);
  background: var(--bg-input-focus);
  box-shadow: var(--shadow-focus);
}

/* Country dropdown */
.survey-select {
  padding-right: 40px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238B9AB5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  appearance: none;
  -webkit-appearance: none;
}
.survey-select option { background: var(--bg-card); color: var(--text-primary); }

/* ─────────────────────────────────────────────────── */
/*  SECTION DIVIDER                                     */
/* ─────────────────────────────────────────────────── */
.section-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 28px 0; padding: 0 4px;
}
.divider-line { flex: 1; height: 1px; background: var(--border-subtle); }
.divider-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted); white-space: nowrap;
}

/* ─────────────────────────────────────────────────── */
/*  NAVIGATION BUTTONS                                  */
/* ─────────────────────────────────────────────────── */
.survey-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0 8px; gap: 10px;
}
.btn-nav {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 20px; border-radius: 100px;
  border: 1.5px solid var(--border-medium);
  background: white; color: var(--text-secondary);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all var(--ease-fast); font-family: 'Inter', sans-serif;
  min-height: 48px; touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn-nav:hover { border-color: var(--border-focus); color: var(--text-primary); box-shadow: var(--shadow-sm); }
.btn-nav:active { transform: scale(0.97); }

.btn-nav-next {
  padding: 14px 28px;
  background: var(--gradient-brand); color: white; border-color: transparent;
  font-size: 15px; box-shadow: 0 4px 16px rgba(88,130,247,0.25);
  min-height: 52px;
}
.btn-nav-next:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(88,130,247,0.35); color: white; border-color: transparent; }
.btn-nav-next:active { transform: scale(0.97); }

.btn-nav-submit {
  padding: 15px 32px; min-height: 52px;
  background: linear-gradient(135deg, #5882F7, #8B5CF6 50%, #06B6D4);
  color: white; border-color: transparent; font-size: 15px;
  box-shadow: 0 4px 20px rgba(88,130,247,0.28);
}
.btn-nav-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(88,130,247,0.38); color: white; border-color: transparent; }
.btn-nav-submit:active { transform: scale(0.97); }

/* ── Anonymous Toggle ── */
.anon-toggle {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-muted); cursor: pointer; user-select: none;
}
.toggle-sw { position: relative; width: 34px; height: 19px; }
.toggle-sw input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute; inset: 0; background: var(--border-medium);
  border-radius: 10px; transition: all var(--ease-fast); cursor: pointer;
}
.toggle-track::before {
  content: ''; position: absolute; width: 13px; height: 13px;
  left: 3px; top: 3px; background: white; border-radius: 50%;
  transition: all var(--ease-fast); box-shadow: var(--shadow-sm);
}
.toggle-sw input:checked + .toggle-track { background: var(--accent-blue); }
.toggle-sw input:checked + .toggle-track::before { transform: translateX(15px); }

/* ─────────────────────────────────────────────────── */
/*  VALIDATION                                          */
/* ─────────────────────────────────────────────────── */
.err-msg {
  font-size: 12px; color: var(--accent-rose); margin-top: 8px;
  display: flex; align-items: center; gap: 4px;
}

/* ─────────────────────────────────────────────────── */
/*  THANK YOU PAGE                                      */
/* ─────────────────────────────────────────────────── */
#thankyou-page {
  display: none; min-height: 100vh;
  align-items: center; justify-content: center;
  text-align: center; padding: 80px 20px;
  background: var(--bg-primary);
}
.ty-card { max-width: 520px; margin: 0 auto; }
.ty-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; margin: 0 auto 24px;
  box-shadow: 0 8px 32px rgba(88,130,247,0.3);
  animation: scaleIn 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes scaleIn { from{transform:scale(0);opacity:0;} to{transform:scale(1);opacity:1;} }

.ty-title {
  font-size: clamp(24px, 5vw, 36px); font-weight: 800; letter-spacing: -0.03em;
  margin-bottom: 14px; color: var(--text-primary);
  animation: fadeInUp 0.5s ease 0.15s both;
}
.ty-sub {
  font-size: 16px; color: var(--text-secondary); line-height: 1.7;
  margin-bottom: 32px; animation: fadeInUp 0.5s ease 0.25s both;
}
.ty-notes {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 32px; animation: fadeInUp 0.5s ease 0.35s both;
}
.ty-note {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 13px 16px;
  background: white; border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
  font-size: 13px; color: var(--text-secondary); text-align: left;
}
.ty-note-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }

/* ─────────────────────────────────────────────────── */
/*  ANIMATIONS                                          */
/* ─────────────────────────────────────────────────── */
@keyframes fadeInUp   { from{opacity:0;transform:translateY(16px);} to{opacity:1;transform:translateY(0);} }
@keyframes fadeInDown { from{opacity:0;transform:translateY(-10px);} to{opacity:1;transform:translateY(0);} }
.anim-in { animation: fadeInUp 0.4s ease both; }

/* ─────────────────────────────────────────────────── */
/*  SCROLLBAR                                           */
/* ─────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-medium); border-radius: 3px; }
::selection { background: rgba(88,130,247,0.15); color: var(--text-primary); }

/* ─────────────────────────────────────────────────── */
/*  CONFETTI CANVAS                                     */
/* ─────────────────────────────────────────────────── */
#confetti-canvas {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 9999;
}

/* ─────────────────────────────────────────────────── */
/*  MOBILE — PRIMARY BREAKPOINT                         */
/* ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .lang-bar { height: 52px; padding: 0 12px; gap: 8px; }
  .lang-logo-text .logo-health { display: none; }

  /* Make logo smaller so switcher always fits */
  .navbar-logo-img { height: 22px; }

  /* Switcher — flags only on mobile */
  .lang-switcher { gap: 1px; padding: 2px; flex-shrink: 0; }
  .lang-btn { padding: 4px 8px; gap: 0; min-width: unset; }
  .lang-flag { font-size: 18px; }
  .lang-code { display: none; }

  .hero { padding: 80px 16px 56px; }
  .hero-stats { gap: 20px; }
  .hero-badge { font-size: 10px; padding: 6px 14px; }

  #survey-page { padding: 66px 0 100px; }
  .survey-wrapper { padding: 0 12px; }

  .question-card { padding: 18px 14px; border-radius: var(--radius-lg); margin-bottom: 10px; }
  .question-label { font-size: 14px; margin-bottom: 14px; }
  .opt-label { font-size: 14px; padding: 12px 13px; min-height: 50px; }
  .scale-btn { min-height: 44px; font-size: 13px; }
  .scale-track { gap: 4px; }

  .survey-nav { flex-wrap: wrap; gap: 8px; }
  .btn-nav-next, .btn-nav-submit { flex: 1; justify-content: center; min-height: 54px; }

  .section-header { padding-top: 16px; }
  .section-title { font-size: 20px; }
}

/* Sticky bottom nav on mobile for easy thumb reach */
@media (max-width: 640px) {
  .survey-nav {
    position: sticky; bottom: 0;
    background: rgba(250,251,255,0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-subtle);
    margin: 0 -12px;
    padding: 12px 14px 20px;
    border-radius: 0;
    box-shadow: 0 -4px 20px rgba(15,23,42,0.06);
  }
}
