/* Leny Welcome / Hero — Extracted from LenyHero_v9.html */

:root {
  --orange:      #C05220;
  --orange-dark: #A84618;
  --orange-glow: rgba(192,82,32,0.10);
  --slate-900:   #0F172A;
  --slate-800:   #1E293B;
  --slate-700:   #334155;
  --slate-600:   #475569;
  --slate-500:   #64748B;
  --slate-400:   #94A3B8;
  --slate-300:   #CBD5E1;
  --slate-200:   #E2E8F0;
  --slate-100:   #F1F5F9;
  --slate-50:    #F8FAFC;
  --cream:       #FFFCF8;
  --white:       #FFFFFF;
  --grn:         #2A7A4B;
  --grn-l:       rgba(42,122,75,.08);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--white);
  color: var(--slate-900);
  overflow-x: hidden;
}

/* ── Keyframes ── */

@keyframes fadeUp  { from { opacity:0; transform:translateY(14px) } to { opacity:1; transform:translateY(0) } }
@keyframes chipIn  { from { opacity:0; transform:translateY(6px) }  to { opacity:1; transform:translateY(0) } }
@keyframes ticker  { from { transform:translateX(0) } to { transform:translateX(-50%) } }

.a1 { animation: fadeUp .5s cubic-bezier(.16,1,.3,1) .05s both }
.a2 { animation: fadeUp .5s cubic-bezier(.16,1,.3,1) .14s both }
.a3 { animation: fadeUp .5s cubic-bezier(.16,1,.3,1) .23s both }
.a4 { animation: fadeUp .5s cubic-bezier(.16,1,.3,1) .32s both }
.a5 { animation: fadeUp .5s cubic-bezier(.16,1,.3,1) .41s both }
.a6 { animation: fadeUp .5s cubic-bezier(.16,1,.3,1) .50s both }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── Nav ── */

.nav-outer {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255,255,255,.93);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-100);
  transition: box-shadow .3s;
}

.nav-outer.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.07); }

nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 60px; max-width: 1280px; margin: 0 auto;
}

.nav-logo {
  font-family: 'Instrument Serif', serif;
  font-size: 22px; letter-spacing: -.03em;
  color: var(--slate-900); text-decoration: none;
}

.nav-logo-dot { color: var(--orange); }

.nav-right { display: flex; align-items: center; gap: 14px; }

.nav-signin {
  font-size: 13px; font-weight: 500; color: var(--slate-500);
  text-decoration: none; transition: color .15s;
}
.nav-signin:hover { color: var(--slate-900); }

.nav-cta {
  background: var(--slate-900); color: var(--white);
  border: none; border-radius: 8px; padding: 9px 20px;
  font-size: 12px; font-weight: 700; cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: .02em; transition: all .15s;
  text-decoration: none; display: inline-flex; align-items: center;
}
.nav-cta:hover { background: var(--orange); transform: translateY(-1px); }

/* ── Hero ── */

.hero {
  min-height: 100svh;
  background: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 100px 40px 60px;
  position: relative; overflow: hidden;
}

.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 72% 38%, rgba(192,82,32,.045) 0%, transparent 100%),
    radial-gradient(ellipse 50% 60% at 18% 72%, rgba(29,111,164,.03) 0%, transparent 100%);
}

.hero-inner {
  width: 100%; max-width: 680px;
  display: flex; flex-direction: column; align-items: flex-start;
  position: relative;
}

/* ── Pre-label ── */

.pre-label {
  font-family: 'Instrument Serif', serif;
  font-size: 16px; font-style: italic;
  color: var(--orange);
  margin-bottom: 10px; letter-spacing: -.01em;
}

/* ── Headline ── */

h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(38px, 5.5vw, 66px);
  line-height: 1.06; letter-spacing: -.025em;
  color: var(--slate-900);
  margin-bottom: 14px;
}

.accent {
  color: var(--orange);
  font-style: italic;
}

/* ── Subhead ── */

.subhead {
  font-size: 16px; font-weight: 400;
  color: var(--slate-500);
  line-height: 1.65; margin-bottom: 20px;
  max-width: 560px;
}

/* ── Input card ── */

.input-wrap { width: 100%; margin-bottom: 14px; position: relative; }

.input-container {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 2px solid #EAE0D8;
  border-radius: 20px;
  padding: 16px 16px 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,.07), 0 2px 6px rgba(0,0,0,.04);
  transition: border-color .2s, box-shadow .2s;
}

.input-container:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 5px rgba(192,82,32,.08), 0 8px 40px rgba(0,0,0,.08);
}

.symptom-input {
  width: 100%; border: none; outline: none;
  background: transparent; resize: none;
  font-size: 17px; font-weight: 400;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--slate-900);
  line-height: 1.6; min-height: 54px; max-height: 220px;
  overflow-y: auto; padding: 0;
}

.symptom-input::placeholder { color: var(--slate-400); }

.input-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--slate-100);
}

.attach-btn {
  display: flex; align-items: center; gap: 5px;
  background: transparent;
  border: 1.5px solid var(--slate-200);
  border-radius: 8px; padding: 6px 12px;
  font-size: 11px; font-weight: 600;
  color: var(--slate-500);
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer; transition: all .15s;
  white-space: nowrap; min-height: 36px;
}
.attach-btn:hover { border-color: var(--slate-400); color: var(--slate-700); }
.attach-btn svg { width: 13px; height: 13px; flex-shrink: 0; }

.authority-badge {
  font-size: 10.5px; color: var(--slate-400);
  font-weight: 500; flex: 1; text-align: center;
  pointer-events: none; letter-spacing: .01em;
}

.send-btn {
  width: 40px; height: 40px; border-radius: 50%;
  flex-shrink: 0; background: var(--orange);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(192,82,32,.35);
  transition: all .15s;
}
.send-btn:hover { background: var(--orange-dark); transform: scale(1.06); }
.send-btn:disabled { opacity: .3; cursor: default; }
.send-btn:disabled:hover { background: var(--orange); transform: none; }
.send-btn svg { width: 15px; height: 15px; }

/* ── Chips ── */

.chips-wrap {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px;
}

.chip {
  font-size: 12.5px; font-weight: 600;
  color: var(--slate-600);
  background: var(--white);
  border: 1.5px solid var(--slate-300);
  border-radius: 50px;
  padding: 7px 16px;
  cursor: pointer; transition: all .15s;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  animation: chipIn .4s cubic-bezier(.16,1,.3,1) both;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.chip:hover {
  border-color: var(--orange); color: var(--orange);
  box-shadow: 0 2px 10px rgba(192,82,32,.15);
  transform: translateY(-1px);
}

/* ── Ticker ── */

.hero-ticker {
  width: 100%; overflow: hidden; margin-top: 20px;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.ticker-track {
  display: flex; white-space: nowrap;
  animation: ticker 28s linear infinite;
}

.ticker-item {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 0 20px;
  font-size: 11.5px; font-weight: 500; color: var(--slate-500);
}

.ticker-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--slate-300); flex-shrink: 0;
}

/* ── Role selection overlay ── */

.overlay {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}

.overlay[hidden] { display: none; }

.overlay-backdrop {
  position: absolute; inset: 0;
  background: rgba(15,23,42,.35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fadeUp .2s ease both;
}

.overlay-card {
  position: relative;
  background: var(--white);
  border-radius: 16px;
  padding: 28px 24px 20px;
  width: 100%; max-width: 520px;
  box-shadow: 0 8px 40px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
  animation: fadeUp .35s cubic-bezier(.16,1,.3,1) both;
}

.overlay-question {
  font-size: 13px; color: var(--slate-500);
  margin-bottom: 20px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.role-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; margin-bottom: 16px;
}

.role-card {
  border: 1.5px solid var(--slate-200);
  border-radius: 16px;
  padding: 24px 16px; text-align: center;
  cursor: pointer;
  transition: transform .2s cubic-bezier(.16,1,.3,1), box-shadow .2s, border-color .2s;
}

.role-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

.role-patient:hover { border-color: var(--grn); }
.role-medpro:hover  { border-color: var(--orange); }

.role-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  margin-bottom: 12px;
}

.role-patient .role-icon { background: var(--grn-l); color: var(--grn); }
.role-medpro  .role-icon { background: var(--orange-glow); color: var(--orange); }

.role-title {
  font-size: 16px; font-weight: 600;
  color: var(--slate-900); margin-bottom: 4px;
}

.role-sub {
  font-size: 13px; color: var(--slate-500); line-height: 1.4;
}

.overlay-close {
  display: block; width: 100%;
  font-family: inherit; font-size: 14px;
  color: var(--slate-500); background: none;
  border: none; cursor: pointer; padding: 8px 0 0;
}
.overlay-close:hover { color: var(--slate-900); }

/* ── Responsive ── */

@media (max-width: 640px) {
  nav, .hero { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 80px; }
  .authority-badge { display: none; }
  .chips-wrap { display: none; }
  .role-grid { grid-template-columns: 1fr; }
  .overlay-card { padding: 24px 16px 16px; }
}
