/* Hero, live feed comparison, assistant and tour */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== Hero ===== */
.hero { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 1fr; min-height: 440px; background: var(--card); }
.hero-text { padding: 48px 40px 40px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--green-dark); }
.hero h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -1px; color: var(--navy); font-weight: 800; }
.hero-lead { font-size: 17.5px; color: #3e4a54; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.btn-hero { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 10px; background: var(--green-dark); color: #fff; font-weight: 800; font-size: 16.5px; text-decoration: none; box-shadow: 0 6px 18px rgba(0,132,63,.3); }
.btn-hero:hover { background: #006e34; }
.btn-hero-ghost { display: inline-flex; align-items: center; min-height: 52px; padding: 0 22px; border-radius: 10px; border: 2px solid var(--navy); background: #fff; color: var(--navy); font-weight: 800; font-size: 16px; }
.btn-hero-ghost:hover { background: #eef3f7; }
.hero .demo-note { max-width: 560px; }
.hero-photo { background: url("../img/hero-rider.jpg") center 30% / cover no-repeat; position: relative; }
.hero-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0) 18%); }

/* ===== Today vs. hub (live) ===== */
.today { max-width: 1400px; margin: 24px 20px 0; display: grid; grid-template-columns: 300px 1fr; background: var(--navy); color: #fff; border-radius: 16px; overflow: hidden; }
@media (min-width: 1480px) { .today { margin-inline: auto; } }
.today-photo { background: url("../img/riders-waiting.jpg") center / cover no-repeat; min-height: 220px; }
.today-body { padding: 22px 26px; }
.today h2 { font-size: 22px; letter-spacing: -.3px; }
.today h2 em { color: #7fd6a3; font-style: normal; }
.today-sub { color: #b8c4cc; font-size: 14px; margin: 4px 0 14px; }
.today-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.today .small { color: #b8c4cc; }
.feed-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-top: 4px solid var(--ac); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; align-content: start; }
.feed-head { display: flex; justify-content: space-between; align-items: center; }
.feed-count { font-size: 24px; font-weight: 800; }
.feed-verdict { font-size: 13px; font-weight: 700; }
.feed-verdict.bad { color: #ff9b8f; }
.feed-verdict.warn { color: #ffd479; }
.feed-verdict.good { color: #7fd6a3; }
.feed-item { font-size: 12.5px; color: #d7e3ea; font-style: italic; }
.today-foot { margin-top: 12px; font-size: 14px; color: #d7e3ea; }

/* ===== Assistant ===== */
.assistant { border: 2px solid var(--green-dark); border-radius: 12px; overflow: hidden; margin-bottom: 8px; background: #fbfefc; }
.assistant-head { display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: var(--green-dark); color: #fff; }
.assistant-head strong { display: block; font-size: 15.5px; }
.assistant-head span { font-size: 13px; }
.assistant-icon { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; flex-shrink: 0; }
.chat { max-height: 280px; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 92%; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.msg-bot { background: #eef3f7; align-self: flex-start; border-bottom-left-radius: 4px; }
.msg-user { background: var(--navy); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.draft-line { display: block; margin: 6px 0 4px; }
.draft-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.draft-tags span { font-size: 12px; font-weight: 700; background: #fff; border: 1px solid var(--line); padding: 2px 8px; border-radius: 999px; }
.msg-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.btn-chat-primary, .btn-chat { min-height: 40px; padding: 0 14px; border-radius: 8px; font-weight: 700; font-size: 14px; }
.btn-chat-primary { background: var(--green-dark); color: #fff; border: 0; }
.btn-chat { background: #fff; border: 1px solid #c3ccd4; }
.assistant-input { display: flex; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; }
.assistant-input input { flex: 1; min-width: 0; }
.btn-mic { width: var(--tap); min-width: var(--tap); height: var(--tap); border-radius: 50%; border: 1px solid #c3ccd4; background: #fff; color: var(--navy); display: grid; place-items: center; }
.btn-mic.listening { background: #d9272d; color: #fff; border-color: #d9272d; animation: pulse 1.2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(217,39,45,.5); } 50% { box-shadow: 0 0 0 8px rgba(217,39,45,0); } }
.btn-send { min-height: var(--tap); padding: 0 16px; border-radius: 8px; border: 0; background: var(--navy); color: #fff; font-weight: 800; }
.try-chips { display: flex; gap: 6px; padding: 0 12px 12px; overflow-x: auto; align-items: center; background: #fff; }
.try-chip { flex-shrink: 0; max-width: 260px; min-height: 40px; padding: 4px 12px; border-radius: 999px; border: 1px dashed #9aa7b1; background: #fff; font-size: 12.5px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.try-chip:hover { border-color: var(--green-dark); background: #eaf6ef; }
.form-details > summary { cursor: pointer; font-weight: 800; min-height: var(--tap); display: flex; align-items: center; gap: 6px; }
.flash { animation: flash 1.4s ease-out; }
@keyframes flash { 0% { background: #d8f3e2; } 100% { background: #fff; } }

/* ===== Tour ===== */
.tour-pop { position: fixed; z-index: 500; right: 24px; bottom: 24px; width: min(360px, calc(100vw - 24px)); background: #fff; border-radius: 14px; box-shadow: 0 18px 50px rgba(13,31,44,.35); padding: 16px 18px; border-top: 5px solid var(--green); }
.tour-pop[hidden] { display: none; }
.tour-step { font-size: 12px; font-weight: 800; color: var(--green-dark); text-transform: uppercase; letter-spacing: .5px; }
.tour-pop h3 { font-size: 18px; margin: 2px 0 4px; }
.tour-pop p { font-size: 14.5px; color: #3e4a54; }
.tour-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.btn-tour-next { min-height: 42px; padding: 0 20px; border-radius: 8px; border: 0; background: var(--green-dark); color: #fff; font-weight: 800; }
.tour-target { position: relative; z-index: 450; outline: 4px solid var(--green) !important; outline-offset: 4px; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(13,31,44,.45); }

@media (max-width: 1180px) {
  .today-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { order: -1; min-height: 210px; background-position: center 25%; }
  .hero-photo::before { background: linear-gradient(0deg, #fff 0%, rgba(255,255,255,0) 30%); }
  .hero-text { padding: 8px 16px 22px; gap: 12px; }
  .hero h2 { font-size: 29px; }
  .hero-lead { font-size: 16px; }
  .hero-actions > * { flex: 1; justify-content: center; }
  .today { grid-template-columns: 1fr; margin: 18px 10px 0; }
  .today-photo { display: none; }
  .today-body { padding: 18px 16px; }
  .today-grid { grid-template-columns: 1fr 1fr; }
  .tour-pop { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .header-inner { flex-wrap: nowrap; }
  .brand-sub { display: none; }
  .brand h1 { font-size: 16px; }
  .btn-ghost { min-height: 40px; padding: 0 10px; font-size: 13px; white-space: nowrap; }
  .tour-target { scroll-margin-top: 64px; }
}
