/* =============================================================
   TifloGroup WebTalk — design system
   Brand: navy #003366 on sky #aed4e6. Accessibility-first.
   ============================================================= */
:root {
  --primary: #0a4a8a;
  --primary-dark: #063a6e;
  --primary-soft: #e9f1fa;
  --navy: #003366;
  --navy-deep: #0a2b4a;
  --sky: #aed4e6;
  --sky-strong: #4a90c2;
  --sky-soft: #eef6fb;
  --green: #1f9d55;
  --red: #d64545;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --ink: #16222e;
  --ink-2: #3c4a57;
  --muted: #6b7a8a;
  --line: #e3e9ef;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16,40,64,.06), 0 2px 8px rgba(16,40,64,.05);
  --shadow: 0 2px 6px rgba(16,40,64,.08), 0 14px 34px rgba(16,40,64,.10);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.hidden { display: none !important; }

a { color: var(--primary); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 0 0 10px 0; text-decoration: none;
}
.skip-link:focus { left: 0; top: 0; }

:focus-visible { outline: 3px solid var(--sky-strong); outline-offset: 2px; }

/* ===== Buttons ===== */
.btn {
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .05s, box-shadow .15s, border-color .15s;
  font-family: inherit;
  line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(6,58,110,.25); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: #eef2f7; color: var(--ink); }
.btn-ghost:hover { background: #e2e8f0; }
.btn-outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: rgba(10,74,138,.06); }
.btn-link { background: none; color: var(--primary); padding: 6px; font-weight: 500; }
.btn-link:hover { text-decoration: underline; }
.btn-icon { background: none; color: var(--muted); font-size: 18px; padding: 6px 10px; border-radius: 8px; }
.btn-icon:hover { color: var(--ink); background: rgba(0,0,0,.05); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #b93535; }
.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: 12px; }
.btn-row { display: flex; gap: 10px; margin-top: 12px; }
.btn-row .btn { flex: 1; }

/* ===== Inputs ===== */
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
  margin-top: 8px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sky-strong); outline-offset: -1px; border-color: transparent; }
.field-label { font-size: 13px; color: var(--ink-2); font-weight: 600; }

/* =============================================================
   LANDING
   ============================================================= */
.landing { min-height: 100vh; display: flex; flex-direction: column; background: var(--surface); }

.landing-nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 20px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { height: 34px; width: 34px; border-radius: 8px; }
.brand-name { font-weight: 800; font-size: 17px; color: var(--navy); letter-spacing: -.01em; }
.brand-name em { font-style: normal; font-weight: 500; color: var(--primary); }
.landing-links { display: flex; gap: 6px; margin-left: auto; }
.landing-links a {
  text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 15px;
  padding: 8px 14px; border-radius: 8px; transition: background .15s, color .15s;
}
.landing-links a:hover { background: var(--sky-soft); color: var(--navy); }
.landing-actions { display: flex; gap: 8px; }

.hero {
  position: relative;
  padding: clamp(56px, 10vw, 120px) clamp(20px, 6vw, 80px);
  text-align: center;
  background:
    radial-gradient(900px 420px at 50% -10%, #dceef8 0%, transparent 60%),
    linear-gradient(180deg, var(--sky-soft) 0%, var(--surface) 70%);
}
.hero-inner { max-width: 820px; margin: 0 auto; }
.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary); font-weight: 600; font-size: 13px;
  letter-spacing: .02em; margin-bottom: 22px;
}
.hero-title {
  margin: 0 0 22px;
  font-size: clamp(1.9rem, 5.5vw, 3.2rem);
  font-weight: 800; line-height: 1.15; color: var(--navy-deep);
  letter-spacing: -.02em;
}
.hero-sub {
  margin: 0 auto 32px; max-width: 640px;
  font-size: clamp(1.02rem, 2.2vw, 1.2rem); line-height: 1.65; color: var(--ink-2);
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.section { padding: clamp(48px, 8vw, 88px) clamp(20px, 6vw, 80px); }
.section-tint { background: var(--sky-soft); }
.section-title { text-align: center; margin: 0 0 12px; font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 800; color: var(--navy-deep); letter-spacing: -.01em; }
.section-sub { text-align: center; margin: 0 auto 40px; max-width: 560px; color: var(--ink-2); font-size: 16px; line-height: 1.6; }

.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px; max-width: 1120px; margin: 0 auto;
}
.feature-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 26px; transition: transform .16s, box-shadow .16s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { font-size: 34px; width: 60px; height: 60px; border-radius: 16px; background: var(--sky-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.feature-title { margin: 0 0 8px; font-size: 17px; font-weight: 700; color: var(--navy-deep); }
.feature-text { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; max-width: 960px; margin: 0 auto; }
.step { text-align: center; padding: 8px; }
.step-num {
  width: 44px; height: 44px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin: 0 0 8px; font-size: 17px; color: var(--navy-deep); }
.step p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }

.about-copy { max-width: 680px; margin: 0 auto; }
.about-copy p { color: var(--ink-2); font-size: 16px; line-height: 1.75; margin: 0 0 16px; }
.about-copy p:last-child { margin-bottom: 0; }

.landing-footer {
  margin-top: auto; border-top: 1px solid var(--line);
  padding: 32px clamp(20px, 6vw, 80px);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--surface);
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); }
.footer-note { color: var(--ink-2); margin: 0; }
.footer-copy { margin: 0 0 0 auto; color: var(--muted); font-size: 13px; }

/* =============================================================
   CONFIRM (magic-link → set password)
   ============================================================= */
.confirm { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: linear-gradient(180deg, var(--sky-soft), var(--bg)); }
.confirm-card {
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 40px; width: 100%; max-width: 440px; text-align: center;
}
.confirm-card .landing-logo { height: 52px; width: 52px; border-radius: 12px; margin-bottom: 14px; }
.confirm-card .landing-title { font-size: 22px; margin: 0 0 8px; font-weight: 800; color: var(--navy-deep); }
.confirm-card .landing-sub { color: var(--ink-2); font-size: 14px; line-height: 1.55; margin: 0 0 22px; }
.confirm-card .pass-field { display: flex; gap: 8px; }
.confirm-card .pass-field input { margin-top: 0; flex: 1; }

/* =============================================================
   APP LAYOUT
   ============================================================= */
.app { display: flex; height: 100vh; }
.sidebar {
  width: 264px; flex-shrink: 0;
  background: #101b28; color: #fff;
  display: flex; flex-direction: column;
}
.sidebar-head { display: flex; align-items: center; gap: 10px; padding: 18px 18px 12px; }
.sidebar-logo { height: 32px; width: 32px; border-radius: 8px; }
.sidebar-title { font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.sidebar-nav { flex: 1; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  background: none; border: none; color: #c6cbd1; text-align: left;
  padding: 12px 14px; border-radius: 10px; font-size: 15px; cursor: pointer;
  font-family: inherit; font-weight: 500; transition: background .12s, color .12s;
}
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.active { background: var(--primary); color: #fff; }
.sidebar-foot { padding: 12px; border-top: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; gap: 6px; }
.me { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.me-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--sky-strong); color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
}
.me-info { min-width: 0; }
.me-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-username { font-size: 12px; color: #8a97a6; }
.sidebar-foot .btn-icon { color: #8a97a6; }

.main { flex: 1; min-width: 0; display: flex; }
.view { flex: 1; display: flex; min-width: 0; }

/* ===== Chats ===== */
.chat-list { width: 330px; flex-shrink: 0; border-right: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; }
.chat-list-head { padding: 16px; border-bottom: 1px solid var(--line); display: flex; gap: 8px; align-items: center; }
.chat-list-head .btn { padding: 10px 14px; font-size: 18px; }
.chat-items { flex: 1; overflow-y: auto; }
.chat-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer;
  border-bottom: 1px solid #f0f2f4; transition: background .1s;
}
.chat-item:hover { background: #f7f9fb; }
.chat-item.active { background: var(--primary-soft); }
.chat-item-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; position: relative;
  background: #e2e8f0; color: var(--ink-2); display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.chat-item-avatar .online-dot { position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--green); border: 2px solid #fff; }
.chat-item-body { flex: 1; min-width: 0; }
.chat-item-title { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item-preview { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item-preview.typing { color: var(--primary); }
.chat-item-meta { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.chat-item-unread { background: var(--primary); color: #fff; border-radius: 12px; font-size: 11px; min-width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; padding: 0 6px; font-weight: 700; }

.chat-pane { flex: 1; display: flex; flex-direction: column; min-width: 0; background: var(--bg); }
.chat-pane-head { padding: 13px 18px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.chat-back { display: none; font-size: 20px; padding: 8px 10px; }
.chat-pane-head .chat-title { font-weight: 700; font-size: 16px; }
.chat-pane-head .chat-sub { font-size: 12px; color: var(--muted); }
.chat-pane-head .spacer { flex: 1; }
.messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.msg { max-width: 70%; padding: 9px 13px; border-radius: 16px; font-size: 15px; line-height: 1.45; word-wrap: break-word; }
.msg.in { background: var(--surface); align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); }
.msg.out { background: var(--primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg-meta { font-size: 11px; opacity: .7; margin-top: 3px; }
.chat-input { padding: 14px; background: var(--surface); border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: flex-end; }
.chat-input textarea { flex: 1; margin-top: 0; resize: none; height: 46px; max-height: 120px; }

.empty-state { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); text-align: center; padding: 24px; }
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-title { font-size: 18px; font-weight: 700; color: var(--ink-2); }
.empty-sub { font-size: 14px; margin-top: 6px; }

/* ===== Conferences ===== */
.conf-wrap { flex: 1; overflow-y: auto; padding: 28px clamp(16px, 4vw, 40px); max-width: 760px; }
.view-title { margin: 0 0 4px; font-size: 24px; font-weight: 800; color: var(--navy-deep); letter-spacing: -.01em; }
.view-sub { color: var(--muted); margin: 0 0 20px; }
.conf-actions { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.conf-section { margin-bottom: 28px; }
.conf-head { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; margin: 0 0 12px; }
.conf-list { display: flex; flex-direction: column; gap: 10px; }
.conf-item {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  padding: 16px 18px; display: flex; align-items: center; gap: 14px; cursor: pointer;
  transition: box-shadow .15s, transform .15s;
}
.conf-item:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.conf-item-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--sky-soft); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.conf-item-body { flex: 1; min-width: 0; }
.conf-item-name { font-weight: 600; font-size: 15px; }
.conf-item-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.conf-item-countdown { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--primary); font-size: 15px; }
.conf-item-join { flex-shrink: 0; }

/* ===== Channels grid (Discord / Meet style) ===== */
.channels-wrap { flex: 1; overflow-y: auto; padding: 28px clamp(16px, 4vw, 40px); }
.channels-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; max-width: 1080px; }
.channel-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .16s, box-shadow .16s; position: relative; overflow: hidden;
}
.channel-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.channel-card-top { display: flex; align-items: center; justify-content: space-between; }
.channel-avatar {
  width: 54px; height: 54px; border-radius: 16px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: #fff;
  background: hsl(var(--ch), 55%, 44%);
}
.channel-name { font-weight: 700; font-size: 17px; color: var(--navy-deep); }
.channel-desc { color: var(--ink-2); font-size: 14px; line-height: 1.55; flex: 1; }
.channel-join { width: 100%; }
.empty-channels {
  grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--muted);
  background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius-lg);
}

/* ===== Call overlay ===== */
.call-overlay {
  position: fixed; inset: 0; background: rgba(8,13,20,.97); z-index: 50;
  display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff;
  padding: 20px;
}
.call-head { text-align: center; margin-bottom: 24px; }
.call-title { font-size: 20px; font-weight: 600; }
.call-timer { font-size: 15px; color: #aab; margin-top: 4px; font-variant-numeric: tabular-nums; }
.call-stage { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; padding: 16px; max-width: 900px; }
.call-controls { display: flex; gap: 18px; margin-top: 32px; }
.call-btn {
  width: 64px; height: 64px; border-radius: 50%; border: none; font-size: 24px; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; transition: background .15s, transform .05s;
}
.call-btn:hover { background: rgba(255,255,255,.22); }
.call-btn:active { transform: scale(.95); }
.call-btn-danger { background: var(--red); }
.call-btn-danger:hover { background: #b93535; }
.call-btn-accept { background: var(--green); }
.call-btn-accept:hover { background: #178a49; }
.call-btn.muted { background: var(--red); }
.participant {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px; border-radius: 12px;
  background: rgba(255,255,255,.05);
}
.participant .p-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--sky-strong); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; }
.participant.speaking { box-shadow: 0 0 0 2px var(--green); }
.participant .p-name { font-size: 13px; }
.participant video { width: 160px; height: 120px; border-radius: 10px; object-fit: cover; background: #000; }
.local-video { position: fixed; right: 20px; bottom: 20px; width: 160px; height: 120px; border-radius: 12px; object-fit: cover; background: #000; z-index: 60; }

/* ===== Incoming call ===== */
.incoming {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 80;
  background: var(--surface); border-radius: 16px; box-shadow: 0 8px 40px rgba(0,0,0,.3);
  padding: 20px 24px; text-align: center; min-width: 280px;
}
.incoming-ring { font-size: 34px; animation: pulse 1.2s infinite; }
.incoming-title { font-weight: 700; margin: 8px 0 16px; }
.incoming-actions { display: flex; gap: 16px; justify-content: center; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.15); } }

/* ===== Modal ===== */
.modal-root { position: fixed; inset: 0; z-index: 70; background: rgba(8,13,20,.5); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: var(--surface); border-radius: var(--radius-lg); padding: 28px; width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto; }
.modal h3 { margin: 0 0 14px; font-size: 20px; color: var(--navy-deep); }
.modal-sub { color: var(--ink-2); font-size: 14px; line-height: 1.5; margin: 0 0 16px; }
.modal .modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal .modal-actions .btn { flex: 1; }
.preview-link { display: block; word-break: break-all; font-size: 13px; color: var(--primary); margin: 4px 0 0; }
.user-pick { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; margin-top: 10px; }
.user-pick label { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.user-pick label:hover { background: #f4f6f8; }

/* ===== Admin ===== */
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); padding: 16px; text-align: center; }
.stat-card .stat-num { font-size: 24px; font-weight: 800; color: var(--primary); }
.stat-card .stat-label { font-size: 12px; color: var(--muted); }
.admin-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.admin-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); padding: 20px; }
.admin-card h3 { margin: 0 0 14px; font-size: 16px; color: var(--navy-deep); }
.admin-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f0f2f4; }
.admin-row:last-child { border-bottom: none; }
.admin-row .grow { flex: 1; min-width: 0; }
.admin-row .muted, .muted { color: var(--muted); font-size: 12px; }
.quality-tag { font-size: 11px; padding: 3px 9px; border-radius: 10px; background: #eef2f7; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.quality-tag.max { background: #fde8e8; color: #b93535; }
.quality-tag.improved { background: #e8f4fd; color: #1a6fbf; }

/* ===== Toast ===== */
#toast-root { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; max-width: 92vw; }
.toast { background: #101b28; color: #fff; padding: 12px 20px; border-radius: 10px; font-size: 14px; box-shadow: 0 4px 16px rgba(0,0,0,.3); animation: slideup .25s; text-align: center; }
.toast.error { background: var(--red); }
@keyframes slideup { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 860px) {
  .landing-links { display: none; }
}

@media (max-width: 720px) {
  /* bottom nav */
  .app { flex-direction: column; }
  .sidebar {
    position: fixed; bottom: 0; left: 0; right: 0; top: auto;
    width: 100%; height: 62px; flex-direction: row; z-index: 40;
    padding-bottom: env(safe-area-inset-bottom);
    background: #101b28; border-top: 1px solid rgba(255,255,255,.08);
  }
  .sidebar-head, .sidebar-foot { display: none; }
  .sidebar-nav { flex-direction: row; justify-content: space-around; align-items: center; padding: 0; gap: 0; flex: 1; }
  .nav-item { flex: 1; text-align: center; padding: 12px 0; font-size: 22px; border-radius: 0; height: 100%; display: flex; align-items: center; justify-content: center; }
  .nav-item span { display: none; }
  .nav-item.active { background: transparent; color: var(--sky); }
  .main { height: 100vh; padding-bottom: 62px; }

  /* chat list full-width, pane slides over */
  .chat-list { width: 100%; border-right: none; }
  .chat-pane {
    position: fixed; inset: 0 0 62px 0; z-index: 30;
    transform: translateX(100%); transition: transform .22s ease; background: var(--bg);
  }
  .chat-pane.pane-open { transform: translateX(0); }
  .chat-back { display: inline-flex; }

  .hero { text-align: left; }
  .hero-inner, .hero-cta { text-align: left; justify-content: flex-start; }
  .hero-sub { margin: 0 0 28px; }
  .section { text-align: left; }
  .section-title, .section-sub { text-align: left; }
  .section-sub { margin: 0 0 28px; }
  .landing-actions .btn { padding: 10px 16px; font-size: 14px; }
  .brand-name { font-size: 15px; }
  .landing-footer { justify-content: center; text-align: center; }
  .footer-copy { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
