:root {
  --bg: #f3f4f6;
  --bg-accent: #020617;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --accent-strong: #1d4ed8;
  --text-main: #111827;
  --text-muted: #6b7280;
  --border-soft: #d1d5db;
  --card-bg: #ffffff;

  /* fallback so layout isn’t broken before JS runs */
  --vh: 1vh;
  --vw: 1vw;

  /* reserved space for fixed footer so it never overlaps */
  --footer-space: 52px;
}

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

html, body {
  position: fixed;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text-main);
  font-size: 19px;
  display: block;
  overflow: hidden;
}

/* APP SHELL */
.page {
  width: 100vw;
  height: calc(var(--vh) * 100);
  max-height: calc(var(--vh) * 100);
  display: flex;
  flex-direction: column;
  background: #f9fafb;
  overflow: hidden;
}

@media (min-width: 900px) {
  .page {
    flex-direction: row;
    background:
      linear-gradient(135deg, #eef2ff 0, #f9fafb 48%, #020617 48%, #020617 100%);
  }
}

/* LEFT: CONTENT PANEL */
.content {
  flex: 1.05;
  padding: 16px 0 20px;
  display: flex;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
}

@media (min-width: 900px) {
  .content {
    padding: 24px 0 32px;
  }
}

/* Centered inner column */
.content-inner {
  width: 90%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

@media (min-width: 900px) {
  .content-inner {
    width: 80%;
  }
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
  margin-bottom: 14px;
}

.status-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  border:1px solid lightgray;
  border-radius: 9999px;
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.15);
}

.status-left span.icon {
  font-size: 19px;
}

.location-select {
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 18px;
  font-weight: 500;
  outline: none;
  padding: 4px 0px 2px 4px;
  cursor: pointer;
}

.location-select option {
  color: #111827;
}

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

.clock {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-muted);
}

.menu-icon {
  width: 24px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.menu-icon span {
  height: 2px;
  border-radius: 999px;
  background: #4b5563;
}

.hero-block {
  max-width: 100%;
  margin: 10px 0 12px;
  padding-top: 4px;
}

.logo-submark, .tagline-carousel {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.logo-text {
  font-weight: bold;
  font-size: 40px;
  line-height: 1;
  margin-bottom: 7px;
  color: #1E1B4B;
  background: linear-gradient(90deg, #1D4ED8, #0EA5E9);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.headline {
  font-size: 1.2em;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
}

.headline span {
  display: block;
}

.subheadline {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 34rem;
}

.ctas {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  font-size: 19px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  background: #ffffff;
  color: var(--text-main);
  transition: background 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

.btn span.icon {
  font-size: 22px;
}

.btn-primary {
  background: var(--accent);
  color: #f9fafb;
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.15);
  border: 1px solid #F8FAFF;
}

.btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.3);
}

.btn-outline {
background: #F8FAFF;
border: 1px solid #2563EB;
color: #1D4ED8;

}

.btn-outline:hover {
  background: var(--accent-soft);
}

.microcopy {
  font-size: 17px;
  color: var(--text-muted);
  margin: 4px 0 12px;
}

.microcopy span {
  margin: 0 4px;
}

/* LEFT SCROLLABLE FEED */
.left-feed-wrapper {
  flex: 1;
  min-height: 0;
  margin-top: 1px;
  margin-bottom: 10px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  border:0px dashed red;
}

@media (max-width: 768px) {
  /* LEFT SCROLLABLE FEED */
.left-feed-wrapper {
  margin-top: -10px;
  margin-bottom: -10px
}
}

.feed-title {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.left-feed {
  flex: 1;
  min-height: 0;
  max-height: 100%;
  border-radius: 22px;
  background: var(--card-bg);
  border: 1px solid lightgray;
  padding: 14px 16px;
  overflow-y: auto;
  box-shadow:
    0 20px 40px rgba(15, 23, 42, 0.13),
    0 0 0 1px rgba(148, 163, 184, 0.25);
}

.feed-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 9px;
  font-size: 18px;
  color: var(--text-main);
}

.feed-item span.icon {
  font-size: 22px;
  width: 24px;
  text-align: center;
}

.feed-item span.label {
  font-size: 18px;
}

.left-feed::-webkit-scrollbar,
.visual-list::-webkit-scrollbar {
  width: 6px;
}

.left-feed::-webkit-scrollbar-thumb,
.visual-list::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.8);
  border-radius: 999px;
}

.left-feed::-webkit-scrollbar-track,
.visual-list::-webkit-scrollbar-track {
  background: transparent;
}

/* RIGHT: VISUAL PANEL */
.visual {
  display: none;
}

@media (min-width: 900px) {
  .visual {
    display: flex;
    flex: 1;
    position: relative;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    padding: 32px 32px 40px;
  }

  .visual-inner {
    position: relative;
    width: 80%;
    max-width: 80%;
    /* IMPORTANT: do NOT lock height here; we will contract list heights below */
    border-radius: 34px;
    background:
      radial-gradient(circle at 10% 0%, rgba(248, 250, 252, 0.12) 0, transparent 55%),
      radial-gradient(circle at 90% 100%, rgba(56, 189, 248, 0.25) 0, transparent 55%),
      linear-gradient(145deg, #020617 0, #020617 30%, #020617 100%);
    box-shadow:
      0 30px 60px rgba(15, 23, 42, 0.9),
      0 0 0 1px rgba(15, 23, 42, 0.9);
    padding: 18px 18px 16px;
    color: #e5e7eb;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
  }

  .visual-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    color: #9ca3af;
    margin-bottom: 10px;
    flex: 0 0 auto;
  }

  .visual-title {
    font-weight: bold;
    font-size: 24px;
    color: #f9fafb;
    margin-bottom: 6px;
    flex: 0 0 auto;
  }

  .visual-cta {
    align-self: flex-start;
    margin-top: 6px;
    padding: 8px 15px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.7);
  }

  .visual-cta span.icon {
    font-size: 18px;
  }

  .visual-list-wrapper {
    flex: 1;
    min-height: 0;
    margin-top: 14px;
    padding: 1.5%;
    box-sizing: border-box;
    /* remove debug border */
    border: 0;
    overflow: hidden;
  }

  .visual-list {
    height: 100%;
    overflow-y: auto;
    padding-right: 4px;
    font-size: 16px;
  }

  .month-divider {
    margin: 10px 0 6px;
    padding-top: 6px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #cbd5f5;
    border-top: 1px solid rgba(148, 163, 184, 0.5);
  }

  .visual-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
  }

  .visual-list-item span.icon {
    font-size: 18px;
    width: 22px;
    text-align: center;
  }

  .visual-footer {
    font-size: 13px;
    color: #9ca3af;
    text-align: right;
    margin-top: 8px;
    flex: 0 0 auto;
  }
}

/* responsive text tweaks */
@media (max-width: 600px) {
  .content-inner { width: 90%; }
  .headline { font-size: 24px; }
  .subheadline { font-size: 17px; }
}

/* legacy / misc */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.logo {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.main-nav {
  display: flex;
  gap: 2em;
  font-size: 2em;
}

.main-nav a {
  text-decoration: none;
  color: navy;
}

.main-nav a:hover {
  text-decoration: underline;
}

body.app {
  overflow: auto;
}

body.app .page {
  height: 100vh;
  max-height: 100vh;
  background: #f9fafb;
}

body.app .visual {
  display: none !important;
}

/* Hamburger button (legacy) */
.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

/* ---------- MOBILE (legacy nav) ---------- */
@media (max-width: 768px) {
  .app-header {
    position: relative;
    padding: 10px 16px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(0,0,0,0.45);
    border-radius: 12px;
    padding: 10px 16px;
    display: none;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
    font-size: 0.8em;
    color: navy;
  }

  .main-nav.nav-open {
    display: flex;
  }

  .main-nav a {
    font-size: 1.5em;
    color: navy;
    white-space: nowrap;
  }
}

.stars { letter-spacing: 1px; }

.star {
  color: #d1d5db;
  font-size: 14px;
}

.star.filled {
  color: #f59e0b;
  text-shadow: 0 0 2px rgba(245,158,11,0.4);
}

.rating-num {
  font-size: 12px;
  opacity: 0.75;
  margin-left: 2px;
}

/* NOTE: native validation bubbles can't be styled reliably */
input:invalid {
  background-color: #ffdddd;
}

/* ===========================================
   FIXES (Desktop list alignment + footer)
   =========================================== */

/* Make space for footer so content never sits behind it */
.content {
  padding-bottom: calc(20px + var(--footer-space));
}
@media (min-width: 900px) {
  .content {
    padding-bottom: calc(32px + var(--footer-space));
  }
  .visual {
    padding-bottom: calc(40px + var(--footer-space));
  }
}

/* Ensure both columns compute scroll area height the SAME WAY:
   They both become: (their column height) - (header/hero) - (reserved footer space) */
@media (min-width: 900px) {
  /* left side: force the wrapper to be the only flexible remainder */
  .content-inner {
    height: 100%;
  }

  /* right side: allow inner card to stretch vertically with the column */
  .visual-inner {
    height: 100%;
  }

  /* THIS is the key: both scroll areas flex within their own columns */
  .left-feed-wrapper {
    flex: 1 1 auto;
    min-height: 0;
  }

  .visual-list-wrapper {
    flex: 1 1 auto;
    min-height: 0;
  }
}

/* Global fixed footer (less contrast, never blocks clicks) */
#globalFooter {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
  z-index: 6000;

  font-size: 0.7em;
  font-weight: 500;
  line-height: 1.2;
  padding: 6px 12px;
  border-radius: 999px;

  /* background: rgba(2, 6, 23, 0.30);
  color: rgba(255,255,255,0.62);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  backdrop-filter: blur(6px); */
  color:gray;

  pointer-events: none;
  text-align: center;
  white-space: nowrap;
}

/* mobile is light background -> darker text */
@media (max-width: 899px) {
  #globalFooter {
    /* background: rgba(255,255,255,0.55); */
    color: rgba(17,24,39,0.52);
    /* box-shadow: 0 6px 18px rgba(15,23,42,0.12); */
  }
}

/* Kill any old footer remnants so nothing fights #globalFooter */
.launch-note,
.launch-note-left,
.launch-note-right,
#RightsReserved {
  display: none !important;
}
