:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --border: #ebebe8;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --accent: #2D6A4F;
  --accent-hover: #214f3a;
  --accent-soft: #e8f0eb;
  --danger: #c0392b;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 10px 30px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.container {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 20px 120px;
}

.hero {
  background: linear-gradient(160deg, var(--accent) 0%, #3a8766 100%);
  color: #fff;
  padding: 48px 28px 40px;
  margin: 0 -20px 20px;
  border-radius: 0 0 28px 28px;
  text-align: left;
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
  margin: 0 0 6px;
  font-weight: 500;
}

.hero h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.hero-welcome {
  font-size: 15px;
  opacity: 0.92;
  margin: 0;
  line-height: 1.55;
}

.section-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  margin: 0 -20px 16px;
  padding: 0 20px;
}
.snav-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 10px 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.snav-track::-webkit-scrollbar { display: none; }

.snav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  color: var(--accent);
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.snav-pill i { font-size: 12px; }
.snav-pill:hover {
  background: var(--accent-soft);
  border-color: #c8ddd0;
}
.snav-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.section-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-margin-top: 56px;
}

.section {
  scroll-margin-top: 56px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.section.open { box-shadow: var(--shadow); border-color: #dadad6; }

.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  user-select: none;
}

.section-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.section-title {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.section-chevron {
  color: var(--muted);
  font-size: 12px;
  transition: transform 0.2s;
}
.section.open .section-chevron { transform: rotate(180deg); }

.section-body {
  display: none;
  padding: 0 18px 18px 72px;
  font-size: 14px;
  color: #333;
  white-space: pre-wrap;
  line-height: 1.6;
}
.section.open .section-body { display: block; }

/* concierge */
.concierge {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.concierge-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: #1a3d2e;
  color: #fff;
}

.concierge-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.15);
  color: #8fd4b0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.concierge-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.concierge-head p {
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

.concierge-body {
  padding: 16px 20px 20px;
}

.concierge-locked {
  text-align: center;
  padding: 24px 16px;
  background: var(--accent-soft);
  border-radius: 10px;
  color: #355545;
}
.concierge-locked i { font-size: 22px; color: var(--accent); margin-bottom: 8px; }
.concierge-locked p { margin: 4px 0 0; font-size: 13px; }

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
  max-height: 280px;
  overflow-y: auto;
  padding: 4px;
}
.chat-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
}
.chat-msg.bot {
  background: var(--accent-soft);
  color: #264a36;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-msg.user {
  background: var(--accent);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.quick-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.quick-q {
  background: #f0fdf4;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.quick-q:hover {
  background: var(--accent-soft);
  border-color: var(--accent-hover);
}
.quick-q:active { transform: scale(0.97); }

.chat-msg.typing {
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
  align-items: center;
}
.chat-msg.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
  animation: typingDot 1.2s infinite ease-in-out;
}
.chat-msg.typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-msg.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingDot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.chat-input {
  display: flex;
  gap: 8px;
}
.chat-input input {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
}
.chat-input input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.12);
}
.chat-input button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0 16px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.chat-input button:hover { background: var(--accent-hover); }

/* emergency floating button */
.emergency-fab {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  right: 20px;
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(192, 57, 43, 0.3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  z-index: 50;
}
.emergency-fab:hover { background: #a93224; }

.watermark {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 40px;
  padding-bottom: 20px;
}
.watermark a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.loading, .not-found {
  text-align: center;
  padding: 120px 24px;
  color: var(--muted);
}
.not-found h2 { color: var(--text); font-size: 20px; margin: 0 0 8px; }
.not-found p { font-size: 14px; margin: 0; }

@media (max-width: 520px) {
  .snav-pill { padding: 6px 10px; font-size: 12px; }
  .snav-label {
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: middle;
  }
}

@media (min-width: 700px) {
  .hero { border-radius: 0 0 32px 32px; padding: 64px 36px 52px; }
  .hero h1 { font-size: 32px; }
}
