/* ---------- Theme image base URL ---------- */
/* ---------- Theme Colors ---------- */
/* ---------- Gray Color ---------- */
/* ---------- Other Colors ---------- */
/* ---------- Shadow Colors ---------- */
/* ---------- Global Link ---------- */
/* ---------- Border radius ---------- */
/* ---------- Typography - Font, line-height, and color for body text, headings, and more ---------- */
/* ---------- Font weight ---------- */
/* ---------- Heading ---------- */
/* ---------- Padding and marign spacing ---------- */
/* ---------- Button ---------- */
/* ---------- Alert box ---------- */
/* ---------- Screen size definitions ---------- */
/* ---------- Logo height ---------- */
/* ---------- Show image sizes ---------- */
/* ---------- Modal ---------- */
/* --- Design System Variables --- */
:root {
  --primary-purple: rgba(155, 89, 182, 0.7);
  --primary-blue: rgba(52, 152, 219, 0.7);
  --primary-green: rgba(46, 204, 113, 0.7);
  --header-bg: #00264D;
  --footer-bg: #333;
  --footer-text: #ccc;
  --card-bg-light: #f7f7f7;
  /* For the card bottom section */
  --card-bg-dark: #002244;
  /* Dark blue background for card tops */
  --text-dark: #1a1a1a;
  --text-medium: #555;
  --border-light: #eee;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* General Content Styling */
#primaryContainer {
  margin: 20px auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  background-color: white;
  padding: 0;
}

.content-section {
  padding: 24px 24px;
  text-align: left;
}

/* Used for Section Headlines */
.headline-main {
  font-size: 60px !important;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 30px;
  color: var(--text-dark);
}

/* Used for Card and Feature Headlines */
.headline-secondary {
  font-size: 32px !important;
  font-weight: 700;
  color: var(--text-dark);
}

.headline-grid {
  font-size: 24px !important;
  line-height: 32px;
  font-weight: 700;
  color: var(--text-dark);
}

/* Text Style for content */
.text-content {
  font-size: 16px !important;
  color: var(--text-medium);
  line-height: 1.4;
  margin: 0;
}

/* --- Header Banner Styling (Top half) --- */
.header-banner {
  background-color: var(--header-bg);
  color: white;
  display: flex;
  text-align: center;
  flex-direction: column;
  /* MOBILE: Stack items vertically (Mascot -> Text/Buttons) */
  align-items: center;
  /* Center items on mobile */
  border-radius: 8px 8px 0 0;
  gap: 30px;
  padding-top: 24px;
}

.header-mascot {
  width: 220px;
  height: 220px;
  min-width: 150px;
  border-radius: 50%;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.header-mascot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-banner h1 {
  font-size: 60px !important;
  font-weight: 800;
  margin: 0 0 4px 0;
  line-height: 1.2;
}

.header-banner p {
  font-size: 20px;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.header-banner p.secondary {
  font-size: 16px;
}

.image-wrapper {
  display: flex;
  justify-content: center;
}

/* App Wrapper for store badges */
.app-wrapper {
  display: flex;
  flex-direction: column;
  /* MOBILE: Stack app icons vertically ("one by one") */
  align-items: center;
  gap: 15px;
  padding-bottom: 40px;
}

.app-wrapper img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* --- Staggered/Feature Section (Chat Examples) --- */
.staggered-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.staggered-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.staggered-item-text {
  flex-grow: 1;
  margin-top: 16px;
}

/* Updated to be rectangular media frame, not circular icon */
.icon-rectangle {
  height: auto;
  min-width: 150px;
  border-radius: 12px;
  /* Square/Rectangular look with rounded corners */
  background-color: #E0E0E0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  margin: 0;
}

.icon-rectangle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- New "What Stella Can Do Today" Grid Styling --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px 16px;
  justify-content: space-between;
  align-items: stretch;
}

.feature-item {
  display: flex;
  align-items: stretch;
  flex: 1 1 100%;
  gap: 15px;
}

.feature-icon-wrapper {
  flex-shrink: 0;
  width: 60px;
  color: var(--header-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon-wrapper i {
  font-size: 60px;
}

.feature-text-block {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* --- Three-Card Grid (The best is yet to come) Styling --- */
.grid-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.grid-item {
  flex: 1 1 100%;
  min-width: 250px;
}

.card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  background-color: var(--card-bg-light);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-top {
  background-color: var(--card-bg-dark);
  position: relative;
  padding: 0;
  min-height: 150px;
  color: white;
}

.card-top img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
}

.card-top-content {
  display: none;
}

.card-bottom {
  padding: 20px;
  background-color: var(--card-bg-light);
  flex-grow: 1;
}

.card-bottom h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: var(--text-dark);
}

.card-bottom p {
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.4;
}

/* --- Footer App Download Section --- */
.app-download-footer {
  padding: 30px 16px 50px 16px;
  text-align: center;
  background-color: white;
}

.app-download-footer p {
  font-size: 16px;
  color: var(--text-dark);
  margin: 0 0 20px 0;
  font-weight: 600;
}

.app-download-footer .app-wrapper {
  justify-content: center;
}

.footer-small-icon {
  width: 30px;
  height: 30px;
  margin-left: 20px;
}

/* --- DESKTOP MEDIA QUERIES --- */
@media (min-width: 768px) {
  .extra-padding {
    padding: 120px 145px 0px !important;
  }

  .content-section-desktop {
    padding: 120px 55px 0px;
    text-align: center;
  }

  /* Header Banner for desktop: Row layout */
  .header-banner {
    flex-direction: row;
    /* Go back to horizontal layout */
    align-items: center;
    padding: 40px 190px;
  }

  .header-text-container {
    text-align: left;
    /* Align text left on desktop */
  }

  /* App Wrapper for desktop: Row layout */
  .app-wrapper {
    flex-direction: row;
    /* Go back to row on desktop */
    justify-content: flex-start;
    /* Align store badges left on desktop */
  }

  /* Staggered Layout adjustments */
  .staggered-item {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
  }

  .staggered-item.reverse {
    flex-direction: row-reverse;
  }

  .staggered-item .icon-rectangle {
    margin-right: 24px;
    width: 250px;
    min-width: 250px;
  }

  .staggered-item.reverse .icon-rectangle {
    margin-right: 0;
    margin-left: 24px;
  }

  .staggered-item-text {
    margin-top: 0;
  }

  /*  Stella banner */
  .stella-banner {
    max-width: 641px;
    max-height: 149px;
  }
}
@media (min-width: 600px) {
  .feature-grid {
    gap: 40px 60px;
  }

  .feature-item {
    flex: 1 1 calc(50% - 30px);
  }

  .grid-container.three-col .grid-item {
    flex: 1 1 calc(33.333% - 11px);
  }
}
@media (min-width: 900px) {
  .grid-container.three-col .grid-item {
    flex: 1 1 calc(33.333% - 11px);
  }
}
/* --- Cleanup/Override Styles --- */
.icon-card, .icon-card .icon-circle, .footer-cta, .footer-cta-text, .footer-cta h2, .footer-cta p, .chat-cta-wrapper, .chat-cta-pill, .chat-cta-icon {
  display: none !important;
}

/* Overrides to remove inline styles */
#primaryContainer, .headline-main {
  padding: 0 !important;
}

/* Helper class for left alignment */
.text-align-left {
  text-align: left;
}