:root {
  color-scheme: light;
  --ink: #13201f;
  --muted: #64706f;
  --line: #d9e4e2;
  --paper: #f7faf9;
  --surface: #ffffff;
  --teal: #0f8f8a;
  --teal-dark: #0b5e5b;
  --coral: #f16f5c;
  --gold: #f4bb44;
  --blue: #3276c3;
  --shadow: 0 18px 40px rgba(22, 50, 48, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 76px 1fr;
  min-height: 100vh;
}

.rail {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  height: 100vh;
  padding: 18px 12px;
  background: #102825;
  color: white;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--teal);
  font-weight: 900;
}

.rail-button,
.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-size: 20px;
}

.rail-button:hover,
.rail-button.active {
  background: rgba(255, 255, 255, 0.14);
}

.workspace {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 28px;
}

.topbar,
.section-heading,
.scanner-band,
.modal-head,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar h1,
.section-heading h2,
.modal-head h2 {
  margin: 0;
  letter-spacing: 0;
}

.topbar h1 {
  font-size: 48px;
  line-height: 1;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.primary-action,
.secondary-action,
.voice-button,
.plan-card button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
}

.primary-action {
  background: var(--ink);
  color: white;
}

.secondary-action,
.plan-card button {
  background: #e6f2f1;
  color: var(--teal-dark);
}

.scanner-band {
  position: relative;
  overflow: hidden;
  margin: 28px 0 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(15, 143, 138, 0.12), rgba(244, 187, 68, 0.12)),
    var(--surface);
  box-shadow: var(--shadow);
}

.scanner-orbit {
  position: relative;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(15, 143, 138, 0.35);
  border-radius: 50%;
}

.scanner-orbit::before,
.scanner-orbit span {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(15, 143, 138, 0.35);
  border-radius: 50%;
}

.scanner-orbit span {
  inset: 28px;
  background: var(--coral);
  border: 0;
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  50% {
    transform: scale(1.35);
    opacity: 0.55;
  }
}

.scanner-copy {
  flex: 1;
}

.scanner-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #18a765;
}

#nearbySummary {
  display: block;
  margin: 5px 0;
  font-size: 21px;
}

#locationText,
.plan-card p,
.event-card p,
.metrics-grid small {
  color: var(--muted);
}

.search-panel {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.search-box {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  min-height: 58px;
  padding: 0 8px 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.search-box input {
  min-width: 0;
  border: 0;
  outline: 0;
  font-size: 17px;
}

.voice-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: white;
}

.voice-button.listening {
  background: var(--coral);
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.filter-row select,
.post-form input,
.post-form select,
.post-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: white;
  color: var(--ink);
}

.view-tabs {
  display: flex;
  gap: 8px;
  margin: 18px 0;
  overflow-x: auto;
}

.tab {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: white;
  color: var(--muted);
  font-weight: 800;
}

.tab.active {
  background: var(--teal-dark);
  color: white;
}

.content-view {
  display: none;
}

.content-view.active {
  display: block;
}

.event-grid,
.pricing-grid,
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.event-card,
.plan-card,
.metrics-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(22, 50, 48, 0.08);
}

.event-card {
  overflow: hidden;
}

.event-art {
  min-height: 128px;
  padding: 14px;
  background: var(--art);
  color: white;
}

.event-art span {
  display: inline-block;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(0, 0, 0, 0.22);
  font-size: 12px;
  font-weight: 800;
}

.event-card-body {
  padding: 14px;
}

.event-card h3,
.plan-card h3 {
  margin: 0;
  font-size: 18px;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.event-meta span {
  border-radius: 999px;
  padding: 5px 8px;
  background: #f0f5f4;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 10px;
  overflow-x: auto;
}

.day-column {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: white;
}

.day-column strong {
  display: block;
  margin-bottom: 10px;
}

.timeline-item {
  margin-bottom: 8px;
  border-left: 4px solid var(--teal);
  padding: 8px;
  background: #f3f8f7;
  font-size: 13px;
}

.map-board {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(19, 32, 31, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(19, 32, 31, 0.06) 1px, transparent 1px),
    #edf6f4;
  background-size: 48px 48px;
}

.pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: grid;
  gap: 6px;
  justify-items: center;
}

.pin-dot {
  width: 20px;
  height: 20px;
  border: 4px solid white;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.pin label {
  max-width: 140px;
  border-radius: 8px;
  padding: 6px 8px;
  background: white;
  box-shadow: var(--shadow);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.plan-card,
.metrics-grid article {
  padding: 18px;
}

.plan-card strong,
.metrics-grid strong {
  display: block;
  margin: 12px 0;
  font-size: 36px;
}

.plan-card.featured {
  border-color: var(--gold);
  box-shadow: 0 18px 42px rgba(244, 187, 68, 0.2);
}

.plan-card.featured > span {
  display: inline-block;
  margin-bottom: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--gold);
  font-weight: 900;
}

.metrics-grid article span {
  color: var(--muted);
  font-weight: 800;
}

.heatmap {
  position: relative;
  min-height: 320px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #eaf5f3, #f9f7ef);
}

.heatmap span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 111, 92, 0.75), rgba(241, 111, 92, 0));
}

dialog {
  width: min(760px, calc(100vw - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(10, 23, 22, 0.55);
}

.post-form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.post-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.post-form textarea {
  min-height: 96px;
  padding-top: 10px;
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: min(420px, calc(100vw - 44px));
  transform: translateY(18px);
  opacity: 0;
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .rail {
    z-index: 10;
    position: fixed;
    top: auto;
    bottom: 0;
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    height: 68px;
    padding: 10px;
  }

  .brand-mark {
    display: none;
  }

  .workspace {
    padding: 20px 16px 88px;
  }

  .topbar,
  .scanner-band,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-row,
  .event-grid,
  .pricing-grid,
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .topbar h1 {
    font-size: 32px;
  }

  .topbar-actions,
  .search-box,
  .filter-row,
  .event-grid,
  .pricing-grid,
  .metrics-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    display: grid;
    width: 100%;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .search-box {
    gap: 10px;
    padding: 12px;
  }

  .search-box input {
    min-height: 44px;
  }

  .voice-button {
    justify-content: center;
  }
}

/* Phone-first sponsor demo skin inspired by the previous Iview trial */
body {
  background: #ffffff;
}

.app-shell {
  display: block;
  min-height: 100vh;
}

.rail,
.eyebrow,
.feed-count-heading,
.utility-tabs,
.filter-row,
.compact-scanner .scanner-orbit,
.compact-scanner .scanner-copy p,
.compact-scanner .secondary-action,
.topbar-actions .primary-action {
  display: none;
}

.workspace {
  width: min(430px, 100%);
  min-height: 100vh;
  padding: 48px 24px 118px;
  background: #ffffff;
}

.topbar {
  display: block;
  margin-bottom: 18px;
  text-align: center;
}

.topbar h1 {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.topbar-actions {
  position: absolute;
  top: 12px;
  right: 14px;
}

.topbar-actions .icon-button {
  color: #111111;
}

.compact-scanner {
  justify-content: center;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.compact-scanner .scanner-copy {
  flex: 0 1 auto;
}

.scanner-status {
  justify-content: center;
  font-size: 12px;
}

#nearbySummary {
  display: none;
}

.search-panel {
  padding: 0;
  border: 0;
  background: transparent;
}

.search-box {
  grid-template-columns: 34px 1fr auto;
  min-height: 78px;
  border: 0;
  border-radius: 20px;
  padding: 0 14px 0 20px;
  background: #f4f4f5;
  color: #5f6368;
}

.search-box > span {
  font-size: 34px;
  line-height: 1;
}

.search-box input {
  background: transparent;
  color: #111111;
  font-size: 30px;
  font-weight: 400;
}

.search-box input::placeholder {
  color: #4f5256;
  opacity: 1;
}

.voice-button {
  width: 44px;
  min-height: 44px;
  overflow: hidden;
  border-radius: 50%;
  padding: 0;
  background: #ffffff;
  color: #0f8f8a;
  text-indent: -999px;
}

.voice-button span {
  display: block;
  text-indent: 0;
}

.content-view {
  display: none;
}

#discoverView.content-view.active {
  display: block;
}

.event-grid {
  display: block;
}

.feed-section {
  margin-top: 36px;
}

.feed-section:first-child {
  margin-top: 42px;
}

.feed-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.feed-section-head h2 {
  margin: 0;
  color: #000000;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.feed-section-head button {
  border: 0;
  background: transparent;
  color: #0975ff;
  font-size: 28px;
  font-weight: 500;
  white-space: nowrap;
}

.feed-list {
  display: grid;
  gap: 18px;
}

.event-card,
.event-card.list-event {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 120px;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(24, 34, 42, 0.06);
}

.event-art,
.photo-art {
  min-height: 120px;
  padding: 0;
  background-color: #d9e4e2;
  background-position: center;
  background-size: cover;
}

.event-art span {
  display: none;
}

.event-card-body {
  display: grid;
  align-content: center;
  justify-items: start;
  min-width: 0;
  padding: 16px 14px 14px 22px;
}

.event-card h3 {
  margin: 0;
  color: #000000;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

.event-card p {
  margin: 10px 0 20px;
  color: #4a4d50;
  font-size: 25px;
  line-height: 1.15;
}

.category-badge {
  justify-self: end;
  max-width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 9px;
  padding: 6px 10px;
  background: #ffd42a;
  color: #111111;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.category-badge.music {
  background: #2f7dff;
  color: #ffffff;
}

.category-badge.family {
  background: #ff7a2f;
  color: #ffffff;
}

.category-badge.church {
  background: #7e5cff;
  color: #ffffff;
}

.category-badge.business {
  background: #0f8f8a;
  color: #ffffff;
}

.category-badge.festival {
  background: #f16f5c;
  color: #ffffff;
}

.empty-card {
  grid-template-columns: 1fr;
}

.empty-card .event-card-body {
  padding: 22px;
}

.empty-card p {
  font-size: 18px;
}

.topbar::before {
  content: "9:41";
  position: fixed;
  top: 12px;
  left: max(24px, calc(50% - 190px));
  z-index: 5;
  color: #000000;
  font-size: 15px;
  font-weight: 800;
}

.topbar::after {
  content: "▮▮▮  WiFi  ▭";
  position: fixed;
  top: 12px;
  right: max(24px, calc(50% - 190px));
  z-index: 5;
  color: #000000;
  font-size: 12px;
  font-weight: 800;
}

.workspace::after {
  content: "";
  position: fixed;
  left: 50%;
  bottom: 8px;
  z-index: 20;
  width: 128px;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000000;
}

.workspace > .topbar .primary-action,
.workspace > .topbar + .compact-scanner + .search-panel + .utility-tabs + #discoverView::after {
  content: none;
}

.topbar + .compact-scanner + .search-panel + .utility-tabs + #discoverView {
  position: relative;
}

.topbar + .compact-scanner + .search-panel + .utility-tabs + #discoverView::after {
  display: none;
}

.topbar-actions .primary-action {
  position: fixed;
  right: max(24px, calc(50% - 191px));
  bottom: 30px;
  left: max(24px, calc(50% - 191px));
  z-index: 18;
  display: grid;
  place-items: center;
  min-height: 70px;
  width: auto;
  border-radius: 12px;
  background: #2e86ff;
  color: #ffffff;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.14), 0 12px 26px rgba(46, 134, 255, 0.28);
  font-size: 30px;
  font-weight: 900;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.24);
}

@media (min-width: 720px) {
  body {
    background: #f5f5f5;
  }

  .workspace {
    margin: 28px auto;
    border: 12px solid #101010;
    border-radius: 46px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  }
}

@media (max-width: 430px) {
  .workspace {
    padding-right: 20px;
    padding-left: 20px;
  }

  .topbar h1 {
    font-size: 44px;
  }

  .search-box {
    min-height: 68px;
  }

  .search-box input {
    font-size: 26px;
  }

  .feed-section-head h2 {
    font-size: 30px;
  }

  .feed-section-head button {
    font-size: 24px;
  }

  .event-card,
  .event-card.list-event {
    grid-template-columns: 42% 58%;
  }

  .event-card h3 {
    font-size: 24px;
  }

  .event-card p {
    margin-bottom: 18px;
    font-size: 21px;
  }

  .category-badge {
    font-size: 15px;
  }
}
