/* Typography setup */
:root {
  --brand-teal: #0f9aa6;
  --brand-green: #24c168;
  --brand-deep: #0b5a66;
  --dark: #0e1720;
  --text: #25313c;
  --muted: #5a6b7a;
  --surface: #ffffff;
  --lore-pull-bg: #f5f5f5;
  --gradient-hero: linear-gradient(180deg, #3794AA 0%, #13707F 100%);
  --gradient-green: radial-gradient(1200px 600px at 15% 20%, rgba(255,255,255,0.25), rgba(255,255,255,0) 40%), linear-gradient(90deg, #1c774b 0%, #2dbb63 100%);
  --gradient-purple: radial-gradient(1200px 600px at 80% 20%, rgba(255,255,255,0.18), rgba(255,255,255,0) 40%), linear-gradient(90deg, #5b60d6 0%, #9a6ee8 100%);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 12px;
  --shadow-elev: 0 12px 40px rgba(16, 24, 40, 0.2);
}

html { 
  overflow-x: hidden;
}
body {
  margin: 0;
  padding-top: 60px;
  color: var(--text);
  background: #f7f8fa;
  font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  overflow-y: visible;
}

/* Homepage: match body to Pull band so no lighter hairline under the hero curve */
body:has(.hero-home) {
  background-color: var(--lore-pull-bg);
}

.display, h1, h2, h3 {
  margin: 0 0 12px;
  color: var(--text);
}

.display {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 3.5vw + 1rem, 4rem);
  line-height: 1.05;
}

h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 2.2vw + 1rem, 3rem);
  line-height: 1.1;
}

h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--surface);
}

.eyebrow {
  letter-spacing: .02em;
  text-transform: none;
  opacity: .95;
}

.lead { color: var(--text); max-width: 60ch; }
.lead.subtle { color: var(--text); }
strong { font-weight: 800; color: inherit; }

.container {
  /* Keeps any horizontal padding inside the percentage width. Without this a
     padded .container lays out wider than the viewport, which lets the page pan
     sideways and zoom out on phones. */
  box-sizing: border-box;
  width: min(1200px, 92%);
  margin: 0 auto;
}

.site-header .container.nav {
  box-sizing: border-box;
  width: min(1200px, 92%);
  margin-left: auto;
  margin-right: auto;
}

/* Header — always solid white, color logo + teal links */
.site-header { 
  position: fixed; 
  top: 0; 
  left: 0; 
  right: 0; 
  z-index: 1000; 
  background: #ffffff;
  color: #333;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 2px 24px rgba(0, 0, 0, 0.14);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

/* Scroll down: hide (see index.html); scroll up: show. Mobile menu open keeps bar visible. */
.site-header.site-header--hidden {
  transform: translateY(calc(-100% - 2px));
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .site-header {
    transition-duration: 0.01ms;
  }

  .site-header.site-header--hidden {
    transform: none;
  }
}
.site-header .brand { 
  color: #333;
}
.site-header .menu a { 
  color: #3794AA;
  font-family: 'Roboto', sans-serif !important;
  font-size: 15.5px;
  font-weight: 500;
}
.site-header .menu a[style*="font-weight: bold"]::after,
.site-header .menu a[style*="font-weight:bold"]::after {
  background-color: #3794AA;
  border-radius: 2px;
}
.site-header .menu a:hover { 
  color: #2a7a8a;
}

/* No horizontal padding: align with .container (min(1200px, 92%)) so logo matches section edges */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 0; margin: 0; min-height: 60px; }
.brand { display: flex; align-items: center; color: #fff; transition: color 0.3s ease; position: relative; width: calc(127px * 40 / 32); height: 40px; }
.logo { width: calc(127px * 40 / 32); height: 40px; transition: opacity 0.3s ease; }

/* Medicare Banner */
.medicare-banner {
    position: relative;
    width: 100%;
    height: 60px;
    background-color: #3794AA;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    margin-top: 0;
    opacity: 1;
    background: #3794AA;
}

@media (max-width: 768px) {
    .medicare-banner {
        position: relative;
        z-index: 100;
    }
}

.medicare-banner-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.medicare-banner-content {
    display: flex;
    align-items: center;
}

.medicare-banner-content[aria-hidden="true"] {
    display: none;
}

.medicare-banner-icon {
    width: 40px;
    height: 40px;
    margin-right: 0;
    flex-shrink: 0;
    filter: none !important;
    color: inherit !important;
    fill: currentColor !important;
}

.medicare-banner p {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 24px;
    color: #ffffff;
    margin: 0;
    text-align: center;
    padding: 0 2rem;
    white-space: nowrap;
}

.medicare-banner .medicare-bold {
    font-weight: 700;
}


@media (max-width: 768px) {
    .medicare-banner {
        height: 60px;
        overflow: hidden;
        justify-content: flex-start;
        margin-top: 0;
        position: relative;
        z-index: 100;
        display: flex;
        width: 100%;
    }
    
    .medicare-banner-wrapper {
        animation: scroll-banner 15s linear infinite;
        display: flex;
        align-items: center;
        width: max-content;
        will-change: transform;
    }
    
    .medicare-banner-content {
        display: inline-flex;
        align-items: center;
        padding: 0 20px;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .medicare-banner-content[aria-hidden="true"] {
        display: inline-flex;
    }
    
    .medicare-banner-icon {
        margin-right: 16px;
    }
    
    .medicare-banner p {
        font-family: 'Roboto', sans-serif;
        font-weight: 500;
        font-size: 18px;
        padding: 0;
        white-space: nowrap;
    }
    
    .medicare-banner .medicare-bold {
        font-weight: 700;
    }
    
    
    @keyframes scroll-banner {
        0% {
            transform: translate3d(0, 0, 0);
        }
        100% {
            transform: translate3d(-50%, 0, 0);
        }
    }
}

/* Index homepage: static wrapped banner on tablet + mobile (no marquee; long copy) */
@media (max-width: 1024px) {
  body.has-banner .medicare-banner {
    height: auto;
    min-height: 52px;
    overflow: visible;
    justify-content: center;
    padding: 10px 0;
  }
  body.has-banner .medicare-banner-wrapper {
    animation: none;
    width: 100%;
    max-width: min(42rem, 100%);
    justify-content: center;
  }
  body.has-banner .medicare-banner-content {
    white-space: normal;
    padding: 0 clamp(12px, 3vw, 20px);
    flex-wrap: wrap;
    justify-content: center;
  }
  body.has-banner .medicare-banner-content[aria-hidden="true"] {
    display: none;
  }
  body.has-banner .medicare-banner p {
    white-space: normal;
    font-size: clamp(0.9rem, 2.2vw + 0.55rem, 1.1rem);
    line-height: 1.4;
    text-align: center;
  }
}

@media (max-width: 768px) {
  body.has-banner .medicare-banner-icon {
    display: none;
  }
}

body.has-banner {
    padding-top: 60px;
}
.logo-transparent { opacity: 0; position: absolute; top: 0; left: 0; pointer-events: none; }
.logo-white { opacity: 1; position: absolute; top: 0; left: 0; }
.desktop-menu { display: flex; align-items: center; gap: 24px; }
.menu { display: flex; align-items: center; gap: 24px; }
.menu a { color: #3794AA; text-decoration: none; font-family: 'Roboto', sans-serif !important; font-size: 15.5px; font-weight: 500; letter-spacing: 0.02em; transition: color 0.3s ease; transform: translateY(1px); position: relative; }
.menu a:hover { color: #2a7a8a; }
.menu a[style*="font-weight: bold"]::after,
.menu a[style*="font-weight:bold"]::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #3794AA;
    border-radius: 2px;
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; font-family: 'Montserrat', sans-serif; transition: transform .12s ease, box-shadow .2s ease, background .2s ease; }
.btn-dark { background: #111827; color: #fff; box-shadow: 0 6px 20px rgba(17,24,39,.25); }
.btn-dark:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(17,24,39,.35); }
.btn-dark:active { transform: translateY(0); }

/* Hero */
.hero { 
  background: var(--gradient-hero); 
  color: #fff; 
  padding: 48px 0 0; 
  margin-top: -60px;
  margin-bottom: -15px;
  padding-top: 108px;
  position: relative;
  z-index: 2;
}

body.has-banner .hero {
  margin-top: -120px;
  padding-top: 144px;
}

body.has-banner .hero .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  body.has-banner .hero {
    margin-top: -136px;
    padding-top: 156px !important;
    z-index: 50;
  }
}

.hero .container.hero-grid,
.hero .container {
  width: min(1200px, 92%) !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; position: relative; z-index: 2; }
.hero-left-column { display: flex; flex-direction: column; gap: 0; margin-top: -20px; }
.hero-card { background: #ffffff; color: var(--text); padding: 32px; border-radius: var(--radius-xl); box-shadow: var(--shadow-elev); margin-top: -60px; margin-bottom: 24px; position: relative; z-index: 3; }
.hero-card .display { 
  color: #1c8b52; 
  font-size: clamp(1.8rem, 2.8vw + 0.7rem, 2.8rem);
}

/* Hero Tabs Container */
.hero-tabs-container {
  width: 100%;
  max-width: 100%;
  height: 64px;
  background: transparent;
  border: 4px solid #9BE1E1;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: space-around;
  position: relative;
  z-index: 3;
  margin-top: 0;
  box-sizing: border-box;
  padding: 8px;
}

.hero-tab {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
  transition: all 0.3s ease;
  user-select: none;
  text-decoration: none;
}

.hero-tab.active {
  background: #9BE1E1;
  color: #13707F;
  font-weight: 600;
  border-radius: calc(var(--radius-xl) - 4px);
  margin: 0;
  padding: 8px 16px;
  border: none;
  height: auto;
  min-height: 60%;
  align-self: center;
}
.hero-phone { display: flex; justify-content: center; position: relative; z-index: 10; margin-bottom: -96px; }
.phone-full { width: 360px; max-width: 100%; filter: drop-shadow(0 24px 40px rgba(0,0,0,.25)); border-radius: 34px; }
.phone-hero { width: 360px; max-width: 100%; height: auto; object-fit: contain; }

.store-buttons { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; }
.store-button { 
  height: 60px; 
  width: auto; 
  transition: transform 0.2s ease, filter 0.2s ease;
  border-radius: 8px;
}
.store-button:hover { 
  transform: translateY(-2px); 
  filter: brightness(1.1);
}
.store-button:active { 
  transform: translateY(0); 
}

/* Homepage hero — two columns: copy left, illustration right */
.hero-home {
  background: #13707F;
  color: #fff;
  margin-top: -60px;
  padding: 196px 0 0;
  position: relative;
  z-index: 2;
  /* Clip content (including scaled hero art) to the curved bottom */
  overflow: hidden;
  /* Smooth curved bottom edge into the next section */
  border-radius: 0 0 50vw 50vw / 0 0 clamp(20px, 4.5vw, 44px) clamp(20px, 4.5vw, 44px);
}

/* Homepage + Medicare banner: pull hero under fixed header + 60px strip (see .medicare-banner) */
body.has-banner .hero-home {
  margin-top: -120px;
  padding-top: calc(196px + 60px);
}

/* Index: longer banner copy — wrap, flexible height (base .medicare-banner is fixed 60px / nowrap) */
body.has-banner .medicare-banner {
  height: auto;
  min-height: 60px;
  padding: 10px 0;
  box-sizing: border-box;
}
body.has-banner .medicare-banner p {
  white-space: normal;
  font-size: clamp(1rem, 1.1vw + 0.7rem, 1.35rem);
  line-height: 1.35;
  padding: 0 clamp(12px, 3vw, 1.5rem);
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}
body.has-banner .medicare-banner-content {
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Cover anti-alias seam: Pull sits slightly above hero bottom with same gray as body:has */
.hero-home + .pull-section {
  margin-top: -2px;
  position: relative;
  z-index: 3;
}

.hero-home .container.hero-home__inner {
  position: relative;
  z-index: 3;
  width: min(1100px, 88%) !important;
  margin: 0 auto !important;
  padding: 0 clamp(16px, 4vw, 32px) !important;
  box-sizing: border-box;
  overflow: visible;
}

.hero-home__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: stretch;
  width: 100%;
  overflow: visible;
}

.hero-home__copy {
  min-width: 0;
  text-align: left;
  align-self: start;
  position: relative;
  z-index: 4;
}

.hero-home__visual {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  align-self: stretch;
  min-width: 0;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.hero-home__img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 901px) {
  /* Let hero art extend past the viewport edge if needed */
  html:has(.hero-home),
  body:has(.hero-home) {
    overflow-x: visible;
    max-width: none;
  }

  .hero-home .container.hero-home__inner {
    padding-right: 0 !important;
  }

  .hero-home__visual {
    /* Pull past the inner edge toward the viewport right; less negative = sits more left */
    margin-right: clamp(-120px, -28vw, -480px);
  }

  .hero-home__img {
    transform: scale(1.22);
    transform-origin: bottom right;
  }
}

.hero-home__headline {
  width: 100%;
  max-width: min(48rem, 100%);
  margin-inline: 0;
  text-align: left;
}
.hero-home__title {
  margin: 0;
  color: #ffffff;
  font-family: 'Roboto Condensed', 'Roboto', sans-serif;
  font-size: clamp(2rem, 2.4vw + 0.9rem, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: left;
  text-wrap: balance;
}
.hero-home__title-block {
  display: block;
}
.hero-home__title-block--extrabold {
  font-weight: 500;
}
.hero-home__title-block--light {
  /* Secondary hero line — Montserrat scale */
  margin-top: 32px;
  font-family: 'Montserrat', sans-serif;
  font-size: max(0.875rem, calc(clamp(1rem, 1.2vw + 0.75rem, 22pt) - 4pt));
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: normal;
}
.hero-home__stores {
  justify-content: flex-start;
  gap: 32px;
  margin-top: clamp(32px, 5vw, 48px);
  margin-inline: 0;
  width: 100%;
  max-width: min(48rem, 100%);
}
.hero-home__stores .store-button {
  height: 54px;
}

@media (max-width: 900px) {
  .hero-home__grid {
    grid-template-columns: 1fr;
    gap: clamp(28px, 5vw, 40px);
  }

  .hero-home__copy {
    text-align: center;
    order: 1;
  }

  .hero-home__visual {
    justify-content: center;
    align-items: center;
    order: 2;
  }

  .hero-home__img {
    max-width: min(620px, 96vw);
  }

  .hero-home__headline {
    margin-inline: auto;
    text-align: center;
    max-width: min(54rem, 100%);
  }

  .hero-home__title {
    text-align: center;
  }

  .hero-home__stores {
    justify-content: center;
    margin-inline: auto;
    max-width: min(54rem, 100%);
  }
}

/* Mobile hero offset + padding: see @media (max-width: 768px) — body padding-top, .hero-home margin, #main-content > section.hero-home */

/* “The Pull of Life” — two-column: image + copy (homepage) */
.pull-section {
  --pull-blob-opacity: 0;
  --pull-blob-scale: 0.86;
  /* Light gray below the hero curve; pairs with .built-section gray */
  background: var(--lore-pull-bg);
  color: #555555;
  padding: clamp(16px, 2.5vw, 28px) 0;
  text-wrap: balance;
}
/* “Built to Move You” — same layout as pull-section, separate BEM namespace */
.built-section {
  --built-blob-opacity: 0;
  --built-blob-scale: 0.86;
  background: var(--lore-pull-bg);
  color: #555555;
  padding: 0;
  text-wrap: balance;
}
.pull-section__inner,
.built-section__inner {
  width: min(1200px, 92%) !important;
  margin: 0 auto !important;
  padding: calc(clamp(56px, 8vw, 96px) + 16px) 0;
}
.pull-section__title,
.built-section__title {
  /* Match .how-it-works__section-title (“How it works”) */
  margin: 0 0 clamp(40px, 6vw, 56px);
  text-align: center;
  font-family: 'Roboto Condensed', 'Roboto', sans-serif;
  font-size: clamp(1.75rem, 3vw + 1rem, 48pt);
  font-weight: 700;
  color: #595959;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
/* Pull — two equal columns; inner uses site content width (min(1200px, 92%)) */
.pull-section__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
  min-height: 0;
}
.pull-section__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  width: 100%;
}
.pull-section__img {
  --pull-img-opacity: 0;
  width: 100%;
  /* Fill the grid column; avoid a fixed px cap (was 600px) that kept the art small on tablets. */
  max-width: 100%;
  height: auto;
  display: block;
  opacity: var(--pull-img-opacity);
  transition: opacity 0.14s ease-out;
}
.pull-section__copy {
  text-align: left;
  min-width: 0;
}
.pull-section__copy .pull-section__title {
  text-align: left;
}
@media (max-width: 900px) {
  .pull-section__grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  /* Stack copy above image (DOM has visual first for the side-by-side layout). */
  .pull-section__copy {
    order: 1;
    text-align: center;
    max-width: min(40rem, 100%);
  }
  .pull-section__visual {
    order: 2;
  }
  .pull-section__copy .pull-section__title {
    text-align: center;
  }
  .pull-section__img {
    max-width: min(720px, 100%);
  }
}
/* Two-column tablet / small laptop: slightly wider image column than 50/50 (tuned down from 1.32/0.68). */
@media (min-width: 901px) and (max-width: 1199px) {
  .pull-section__grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
    gap: clamp(28px, 4.5vw, 56px);
  }
}
.built-section__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  align-items: stretch;
}

.built-section__tagline {
  margin: calc(clamp(40px, 6vw, 56px) + 16px) auto 0;
  padding: 0 clamp(16px, 3vw, 32px);
  box-sizing: border-box;
  text-align: center;
  /* A touch smaller than .built-section__title */
  font-family: 'Roboto Condensed', 'Roboto', sans-serif;
  font-size: clamp(1.35rem, 2vw + 0.72rem, 34pt);
  font-weight: 700;
  color: #595959;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.built-section__tagline-note {
  margin: 0.65em auto 0;
  padding: 0 clamp(16px, 3vw, 32px);
  box-sizing: border-box;
  text-align: center;
  font-family: 'Roboto', sans-serif;
  font-size: clamp(0.9375rem, 0.85vw + 0.72rem, 17pt);
  font-weight: 400;
  font-style: italic;
  color: #595959;
  line-height: 1.45;
}
.built-section__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 clamp(16px, 3vw, 32px);
}
.pull-section__icon-wrap,
.built-section__icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  flex-shrink: 0;
}

/* Layered columns: blob slot + foreground SVG (only __blob animates) */
.pull-section__icon-wrap--layered,
.built-section__icon-wrap--layered {
  width: 120px;
  margin-left: auto;
  margin-right: auto;
}

.pull-section__icon-wrap--layered.pull-section__icon-wrap--phone {
  height: 100px;
}

.pull-section__icon-wrap--layered.pull-section__icon-wrap--cart {
  height: 97px;
}

.pull-section__icon-wrap--layered.pull-section__icon-wrap--mechanic {
  height: 108px;
}

/* Same height for all three columns so subheads and body copy line up across the row */
.built-section__icon-wrap--layered {
  height: 108px;
  min-height: 108px;
  align-items: center;
}

.pull-section__icon-wrap--mechanic .pull-section__blob,
.built-section__icon-wrap--mechanic .built-section__blob {
  width: 118px;
}

.pull-section__blob-slot,
.built-section__blob-slot {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
  pointer-events: none;
}

.pull-section__blob-pop {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: var(--pull-blob-opacity, 0);
  transform: scale(var(--pull-blob-scale, 0.86));
}
.built-section__blob-pop {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: var(--built-blob-opacity, 0);
  transform: scale(var(--built-blob-scale, 0.86));
}

.pull-section__blob,
.built-section__blob {
  display: block;
  width: 119px;
  max-width: 100%;
  height: auto;
  filter: brightness(0.94);
}

@keyframes pull-section-blob-wobble {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  22% {
    transform: translate3d(2px, -3px, 0) rotate(0.55deg);
  }
  45% {
    transform: translate3d(-2.5px, 2px, 0) rotate(-0.45deg);
  }
  68% {
    transform: translate3d(1.5px, 2.5px, 0) rotate(0.3deg);
  }
  88% {
    transform: translate3d(-2px, -1.5px, 0) rotate(-0.2deg);
  }
}

.pull-section__icon,
.built-section__icon {
  display: block;
  width: auto;
  max-width: 120px;
  height: auto;
}

.pull-section__icon-wrap--layered .pull-section__icon,
.built-section__icon-wrap--layered .built-section__icon {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
}

.pull-section.is-in-view .pull-section__blob,
.built-section.is-in-view .built-section__blob {
  animation: pull-section-blob-wobble 9s ease-in-out infinite;
}

.pull-section.is-in-view .pull-section__col:nth-child(1) .pull-section__blob,
.built-section.is-in-view .built-section__col:nth-child(1) .built-section__blob {
  animation-delay: 0s;
}

.pull-section.is-in-view .pull-section__col:nth-child(2) .pull-section__blob,
.built-section.is-in-view .built-section__col:nth-child(2) .built-section__blob {
  animation-delay: 0.45s;
}

.pull-section.is-in-view .pull-section__col:nth-child(3) .pull-section__blob,
.built-section.is-in-view .built-section__col:nth-child(3) .built-section__blob {
  animation-delay: 0.9s;
}

@media (prefers-reduced-motion: reduce) {
  .pull-section.is-in-view .pull-section__blob,
  .built-section.is-in-view .built-section__blob {
    animation: none !important;
  }
}
.pull-section__subhead,
.built-section__subhead {
  margin: 0 0 16px;
  width: 100%;
  font-family: 'Roboto', sans-serif;
  font-size: clamp(0.875rem, 0.5vw + 0.72rem, 14pt);
  font-weight: 700;
  color: #555555;
  line-height: 1.3;
  min-height: calc(2 * 1.3em);
}
.pull-section__body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  font-size: clamp(1rem, 0.85vw + 0.65rem, 18pt);
  font-weight: 400;
  line-height: 1.55;
  color: #595959;
}
.built-section__body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  font-size: clamp(0.875rem, 0.5vw + 0.72rem, 14pt);
  font-weight: 400;
  line-height: 1.5;
  color: #555555;
}
.pull-section__body--bold {
  font-weight: 700;
}
.pull-section__copy > .pull-section__body + .pull-section__body {
  margin-top: 1.25em;
}
@media (max-width: 768px) {
  .built-section__grid {
    grid-template-columns: 1fr;
  }
  .built-section__col:not(:first-child) {
    padding-top: 32px;
    margin-top: 32px;
  }
  .pull-section__copy,
  .built-section__col {
    padding-left: 0;
    padding-right: 0;
  }
  .pull-section__grid {
    gap: clamp(28px, 5vw, 48px);
  }
  .pull-section__img {
    max-width: min(480px, 88%);
    margin-inline: auto;
  }
  .pull-section__inner {
    padding-bottom: calc(clamp(40px, 5vw, 72px) + 8px);
  }
}

/* “Problem isn’t grit…” — teal band + illustration */
.problem-section {
  background: #13707F;
  color: #ffffff;
  padding: clamp(56px, 8vw, 96px) 0;
}
.problem-section__inner {
  width: min(1200px, 92%) !important;
  margin: 0 auto !important;
}
.problem-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
.problem-section__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.problem-section__img {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
}
.problem-section__copy {
  text-align: left;
}
.problem-section__text {
  margin: 0;
  font-family: 'Roboto Condensed', 'Roboto', sans-serif;
  font-size: clamp(1.25rem, 2.5vw + 0.5rem, 40pt);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.problem-section__lead {
  font-family: 'Roboto Condensed', 'Roboto', sans-serif;
  font-weight: 700;
  color: #9BE1E1;
}
.problem-section__rest {
  font-family: 'Roboto Condensed', 'Roboto', sans-serif;
  font-weight: 400;
  color: #ffffff;
}
@media (max-width: 768px) {
  .problem-section__grid {
    grid-template-columns: 1fr;
  }
  .problem-section__copy {
    text-align: center;
  }
}

/* “How it works” — three zigzag rows, horizontal dividers */
.how-it-works {
  background: #ffffff;
  color: #595959;
  padding: 0;
  text-wrap: pretty;
}
.how-it-works__inner {
  width: min(1000px, 92%) !important;
  margin: 0 auto !important;
  padding: calc(clamp(48px, 7vw, 80px) + 16px) 0 calc(clamp(56px, 8vw, 96px) + 16px);
}
.how-it-works__section-title {
  margin: 0 0 clamp(12px, 2vw, 20px);
  text-align: center;
  font-family: 'Roboto Condensed', 'Roboto', sans-serif;
  font-size: clamp(1.75rem, 3vw + 1rem, 48pt);
  font-weight: 700;
  color: #595959;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.how-it-works__subhead {
  margin: 0 auto calc(32px + clamp(40px, 6vw, 56px));
  max-width: 52rem;
  padding: 0 clamp(8px, 2vw, 16px);
  box-sizing: border-box;
  text-align: center;
  font-family: 'Roboto', sans-serif;
  font-size: clamp(1rem, 0.85vw + 0.65rem, 18pt);
  font-weight: 400;
  line-height: 1.55;
  color: #595959;
  text-wrap: balance;
}
.how-it-works__rows {
  display: flex;
  flex-direction: column;
}
.how-it-works__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  padding: clamp(40px, 5vw, 56px) 0;
  border-bottom: 2px solid #ececec;
}
.how-it-works__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.how-it-works__row:first-of-type {
  padding-top: 0;
}
.how-it-works__row--reverse .how-it-works__visual {
  order: 2;
}
.how-it-works__row--reverse .how-it-works__copy {
  order: 1;
}
.how-it-works__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.how-it-works__img {
  --hiw-img-opacity: 0;
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  opacity: var(--hiw-img-opacity);
  transition: opacity 0.14s ease-out;
}
.how-it-works__rows > .how-it-works__row:first-child .how-it-works__img,
.how-it-works__rows > .how-it-works__row:last-child .how-it-works__img {
  max-width: calc(400px * 0.8 * 0.9);
}
.how-it-works__title {
  margin: 0 0 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.125rem, 1.2vw + 0.65rem, 22pt);
  font-weight: 700;
  color: #595959;
  line-height: 1.2;
}
.how-it-works__body p {
  margin: 0 0 1em;
  font-family: 'Roboto', sans-serif;
  font-size: clamp(1rem, 0.85vw + 0.65rem, 18pt);
  font-weight: 400;
  line-height: 1.55;
  color: #595959;
}
.how-it-works__body p:last-child {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .how-it-works__img,
  .pull-section__img {
    opacity: 1 !important;
    transition: none;
  }
}

@media (max-width: 768px) {
  .how-it-works__row {
    grid-template-columns: 1fr;
  }
  .how-it-works__row--reverse .how-it-works__visual,
  .how-it-works__visual {
    order: -1;
  }
  .how-it-works__row--reverse .how-it-works__copy {
    order: 0;
  }
}

/* Teal band — rewards / partners copy */
.lore-value-band {
  background: #3794AA;
  color: #ffffff;
  padding: calc(clamp(48px, 7vw, 88px) + 16px) 0;
}
.lore-value-band__inner {
  width: min(1100px, 92%) !important;
  margin: 0 auto !important;
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 4.75vw, 56px);
  container-type: inline-size;
  container-name: lore-value-band;
}
.lore-value-band__intro {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  align-self: stretch;
}
.lore-value-band__intro .lore-value-band__lead {
  margin: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.35rem, 2.35vw + 0.85rem, 2.125rem);
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-wrap: balance;
  color: #ffffff;
}
@supports (width: 1cqw) {
  .lore-value-band__intro .lore-value-band__lead {
    font-size: clamp(1.35rem, calc(1.1rem + 2.65cqw), 2.125rem);
  }
}
.lore-value-band__grid {
  display: grid;
  /* ~25% image / ~75% copy (gap is additional); DOM: visual then body copy */
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: clamp(44px, 6vw, 80px);
  /* Match row height to the body copy column so the card can scale to that height */
  align-items: stretch;
}
.lore-value-band__visual {
  display: grid;
  place-items: center;
  height: 100%;
  min-width: 0;
  min-height: 0;
}
.lore-value-band__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}
.lore-value-band__grid .lore-value-band__copy {
  text-align: left;
}
.lore-value-band__copy {
  text-align: center;
}
.lore-value-band__copy p {
  margin: 0 0 1.25em;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1rem, 1.2vw + 0.75rem, 22pt);
  font-weight: 500;
  line-height: 1.45;
  color: #ffffff;
}
.lore-value-band__copy p:last-child {
  margin-bottom: 0;
}

/* Same layout as lore-value-band — white band (§6), gray body text */
.lore-value-band--on-white {
  background: #ffffff;
  color: #595959;
  /* Homepage §6: +64px top/bottom beyond base .lore-value-band rhythm */
  padding-top: calc(clamp(48px, 7vw, 88px) + 16px + 64px);
  padding-bottom: calc(clamp(48px, 7vw, 88px) + 16px + 64px);
}
.lore-value-band--on-white .lore-value-band__intro .lore-value-band__lead {
  color: #595959;
}
.lore-value-band--on-white .lore-value-band__copy p {
  color: #595959;
}

/* Tablet / narrow desktop: let the value-band inner use full section width so the lead matches the grid */
@media (max-width: 1024px) {
  .lore-value-band .lore-value-band__inner {
    width: min(1100px, 100%) !important;
    max-width: 100%;
    padding-left: clamp(16px, 3vw, 28px) !important;
    padding-right: clamp(16px, 3vw, 28px) !important;
    box-sizing: border-box !important;
  }

  .lore-value-band__intro,
  .lore-value-band__intro .lore-value-band__lead {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .lore-value-band__inner {
    gap: clamp(48px, 7.5vw, 88px);
  }
  .lore-value-band__grid {
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
    gap: clamp(44px, 7.5vw, 72px);
  }
  .lore-value-band__grid .lore-value-band__copy {
    text-align: center;
    order: 1;
  }
  .lore-value-band__visual {
    order: 2;
    align-self: center;
    width: 100%;
    max-width: min(320px, 78vw);
    height: auto;
    min-height: clamp(96px, 18vw, 140px);
  }
  .lore-value-band__img {
    width: 100%;
    height: auto;
    max-height: none;
    max-width: 100%;
    aspect-ratio: 148 / 100;
  }
}

/* “Your decisions / Try it and see” — teal CTA + white card */
.cta-final {
  background: #13707F;
  color: #ffffff;
  padding-top: calc(clamp(48px, 7vw, 88px) + 32px);
  padding-bottom: calc(clamp(48px, 7vw, 88px) + 16px);
  padding-left: 0;
  padding-right: 0;
  text-wrap: pretty;
  --cta-lore-line-progress: 0;
  position: relative;
  overflow-x: clip;
}
.cta-final__arch {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  height: clamp(32px, 5.25vw, 60px);
  line-height: 0;
  z-index: 1;
  pointer-events: none;
}
.cta-final__arch-svg {
  display: block;
  width: 100%;
  height: 100%;
  vertical-align: top;
}
.cta-final__inner {
  position: relative;
  z-index: 2;
  width: min(1200px, 92%) !important;
  margin: 0 auto !important;
}
.cta-final__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 48px);
  align-items: center;
}
.cta-final__headline {
  text-align: left;
}
.cta-final__line {
  margin: 0 0 0.12em;
  font-family: 'Roboto Condensed', 'Roboto', sans-serif;
  font-size: clamp(2.25rem, 4vw + 1.25rem, 6.825rem); /* up to ~82pt */
  line-height: 1.05;
  color: #ffffff;
  letter-spacing: -0.02em;
  opacity: 0;
  transition: opacity 1.75s ease;
}
.cta-final__headline--reveal .cta-final__line {
  opacity: 1;
}
.cta-final__headline--reveal .cta-final__line:nth-child(1) {
  transition-delay: 0ms;
}
.cta-final__headline--reveal .cta-final__line:nth-child(2) {
  transition-delay: 750ms;
}
.cta-final__headline--reveal .cta-final__line:nth-child(3) {
  transition-delay: 1500ms;
}
@media (prefers-reduced-motion: reduce) {
  .cta-final__line {
    opacity: 1;
    transition: none;
  }
}
.cta-final__line:last-child {
  margin-bottom: 0;
}
.cta-final__line--light {
  font-weight: 300;
  font-size: clamp(1.5rem, 2vw + 0.6rem, 2.5rem);
}
.cta-final__line--regular {
  font-weight: 400;
}
.cta-final__line--bold {
  font-weight: 500;
}
.cta-final__lore {
  position: relative;
  display: inline-block;
  border-bottom: none;
  padding-bottom: 0.06em;
}
.cta-final__lore::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 8px;
  background: #9BE1E1;
  top: 100%;
  transform: translateY(-8px) scaleX(var(--cta-lore-line-progress, 0));
  transform-origin: left center;
}
.cta-final__card {
  background: #ffffff;
  color: #595959;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-elev);
  padding: clamp(28px, 4vw, 40px);
  text-align: center;
}
.cta-final__card-title {
  margin: 0 0 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1rem, 1.2vw + 0.75rem, 22pt);
  font-weight: 800;
  line-height: 1.45;
  color: #595959;
}
.cta-final__card-lead {
  margin: 0 0 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1rem, 1.2vw + 0.75rem, 22pt);
  font-weight: 500;
  line-height: 1.45;
  color: #595959;
}
.cta-final__stores {
  margin-top: 0;
  justify-content: center;
}
.cta-final__stores .store-button {
  height: 54px;
}
@media (max-width: 768px) {
  .cta-final__grid {
    grid-template-columns: 1fr;
  }
  .cta-final__headline {
    text-align: center;
    margin-bottom: clamp(24px, 5vw, 40px);
  }
  .cta-final__line {
    font-size: clamp(2.625rem, 7vw + 1rem, 3.85rem);
  }
  .cta-final__lore::after {
    height: 6px;
    transform: translateY(-6px) scaleX(var(--cta-lore-line-progress, 0));
  }
  .cta-final__card {
    text-align: center;
  }
  .cta-final__stores {
    justify-content: center;
  }
}

.hero-certification-block { margin-top: 0; display: flex; align-items: center; justify-content: flex-start; gap: 12px; flex-wrap: wrap; width: 100%; padding-left: 32px; box-sizing: border-box; }
.hero-certification { margin: 0; font-size: 0.95rem; color: inherit; opacity: 0.9; display: flex; align-items: center; line-height: 1; min-height: 36px; }
.hero-certification-badge-link { display: flex; align-items: center; justify-content: center; height: 36px; flex-shrink: 0; text-decoration: none; line-height: 0; }
.hero-certification-badge { height: 36px; width: auto; display: block; flex-shrink: 0; margin: 0 8px 0 0; vertical-align: middle; }

/* Headline slab */
.headline-slab { background: rgba(245, 245, 245, 0.5); padding: 160px 0 160px 0; text-align: center; position: relative; z-index: 0; margin-top: -15px; }
.headline-slab .container { 
  width: 100%; 
  max-width: 100%; 
  margin: 0; 
  padding: 0;
}
.headline-slab h2 { color: #1b6a7a; }
.headline-slab .subheadline {
  margin-top: 20px;
  font-size: 1.25rem;
  font-weight: 400;
  color: #5a6b7a;
}

/* Carousel Container */
.carousel-container {
  margin-top: 0;
  width: 100%;
  padding: 20px 0;
  position: relative;
  overflow: visible;
}

.carousel-row {
  margin-bottom: 0;
  position: relative;
  padding: 15px 30px;
  overflow: visible;
  margin-left: -30px;
  margin-right: -30px;
  width: calc(100% + 60px);
}

.carousel-row::before,
.carousel-row::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 200px;
  z-index: 10;
  pointer-events: none;
}

.carousel-row::before {
  left: 0;
  background: linear-gradient(to right, rgba(245, 245, 245, 0.5) 0%, rgba(245, 245, 245, 0.5) 50%, transparent 100%);
}

.carousel-row::after {
  right: 0;
  background: linear-gradient(to left, rgba(245, 245, 245, 0.5) 0%, rgba(245, 245, 245, 0.5) 50%, transparent 100%);
}

.carousel-track {
  display: flex;
  gap: 32px;
  width: fit-content;
  --animation-duration: 60s;
  animation: scroll-carousel var(--animation-duration) linear infinite;
  will-change: transform;
  padding: 10px 0;
  margin: -10px 0;
  backface-visibility: hidden;
  perspective: 1000px;
  transform: translate3d(-410px, 0, 0);
}

.carousel-container:hover .carousel-track {
  animation-play-state: paused;
}

@media (hover: none) {
  .carousel-container:hover .carousel-track,
  .carousel-container .carousel-track {
    animation-play-state: running !important;
  }
}


.carousel-track-offset {
  margin-left: 237px;
}

@keyframes scroll-carousel {
  0% {
    transform: translate3d(-410px, 0, 0);
  }
  100% {
    transform: translate3d(calc(-410px - 378px * 15 - 32px * 14), 0, 0);
  }
}

.carousel-item {
  flex-shrink: 0;
  width: 378px;
  min-width: 378px;
  height: 180px;
  background: #ffffff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 32px;
  padding-right: 32px;
  box-sizing: border-box;
  color: #000;
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  border-radius: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .carousel-container {
    padding: 15px 0;
  }
  
  .carousel-row {
    padding: 0 15px;
  }
  
  .carousel-item {
    width: 300px;
    min-width: 300px;
    height: 150px;
    font-size: 14px;
  }
  
  .carousel-row::before,
  .carousel-row::after {
    width: 80px;
  }
  
  .carousel-track-offset {
    margin-left: 150px;
  }
  
  @keyframes scroll-carousel {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-300px * 7.5 - 32px * 7));
    }
  }
}

@media (max-width: 480px) {
  .carousel-container {
    padding: 10px 0;
  }
  
  .carousel-row {
    padding: 0 10px;
  }
  
  .carousel-item {
    width: 250px;
    min-width: 250px;
    height: 130px;
    font-size: 12px;
    padding: 15px;
  }
  
  .carousel-row::before,
  .carousel-row::after {
    width: 50px;
  }
  
  .carousel-track-offset {
    margin-left: 100px;
  }
  
  @keyframes scroll-carousel {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-250px * 7.5 - 32px * 7));
    }
  }
}

/* Feature block (green) */
.feature { padding: 80px 0; }
.feature-green { 
  background: var(--gradient-green); 
  color: #eafff5; 
  position: relative; 
  overflow: hidden;
}

.feature-green::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 736px;
  height: 370px;
  background-image: url('images/SM background logo element.png');
  background-size: 736px 370px;
  background-repeat: no-repeat;
  background-position: left bottom;
  opacity: 0.7;
  z-index: 1;
}
.feature-grid { 
  display: grid; 
  grid-template-columns: .9fr 1.1fr; 
  gap: 48px; 
  align-items: start;
  position: relative;
  z-index: 2;
}
.feature-phone { 
  display: flex; 
  justify-content: center; 
}
.phone-shadow { width: 320px; max-width: 100%; filter: drop-shadow(0 24px 50px rgba(0,0,0,.35)); border-radius: 28px; }
.feature-headline { 
  color: #ffffff; 
  margin: 0 0 24px 0;
  padding-top: 72px;
  position: relative;
  z-index: 1;
}
.feature-content h2 { color: #ffffff; }
.feature-content {
  position: relative;
  display: flex;
  flex-direction: column;
}
/* Homepage: Lore Conversations (#app-demo) — teal band, frosted panels, carousel */
#app-demo .app-demo__arch {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  height: clamp(32px, 5.25vw, 60px);
  line-height: 0;
  z-index: 1;
  pointer-events: none;
}

#app-demo .app-demo__arch-svg {
  display: block;
  width: 100%;
  height: 100%;
  vertical-align: top;
}

#app-demo.feature-green::before {
  content: none;
}
#app-demo.feature-green {
  background: #3794aa;
  color: #ffffff;
  padding: clamp(10px, 1.5vw, 18px) 0 0;
  overflow: hidden;
  /* Top of teal section (above the in-section headline); clears fixed site header */
  scroll-margin-top: 68px;
  /* Avoid instant scroll adjustment when carousel panels swap height */
  overflow-anchor: none;
}
#app-demo .feature-panels,
#app-demo .feature-panel {
  overflow-anchor: none;
}
@media (max-width: 768px) {
  #app-demo.feature-green {
    scroll-margin-top: 92px;
  }
}

/* Tablet / desktop: Lore glyph watermark (full section width; ::after keeps ::before unused for corner asset) */
@media (min-width: 640px) {
  #app-demo.feature-green::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url('images/LoreGlyphWhite.svg');
    background-repeat: no-repeat;
    /* Breathing room below the top arch before the watermark */
    background-position: center clamp(2.25rem, 2vw + 1.35rem, 3rem);
    background-size: 100% auto;
    opacity: 0.09;
  }

  #app-demo.feature-green > .container {
    position: relative;
    z-index: 1;
  }
}

/* ----- Lore team page (team.html) — hero mirrors .hero-home ----- */
.loreteam-hero {
  background: #13707f;
  color: #fff;
  margin-top: -60px;
  padding: 236px 0 196px;
  position: relative;
  z-index: 2;
}

.loreteam-hero .container.loreteam-hero__inner {
  width: min(1100px, 88%) !important;
  margin: 0 auto !important;
  padding: 0 clamp(16px, 4vw, 32px) !important;
  box-sizing: border-box;
  text-align: center;
}

.loreteam-hero__headline {
  width: 100%;
  max-width: min(54rem, 100%);
  margin-inline: auto;
  text-align: center;
}

.loreteam-hero__title {
  margin: 0;
  font-family: 'Roboto Condensed', 'Roboto', sans-serif;
  font-size: clamp(calc(2.25rem - 8pt), calc(4vw + 1.25rem - 8pt), calc(6.825rem - 8pt));
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-align: center;
  color: #ffffff;
}

.loreteam-hero__lead {
  margin: 32px 0 0;
  font-family: 'Montserrat', sans-serif;
  font-size: max(0.875rem, calc(clamp(1rem, 1.2vw + 0.75rem, 22pt) - 4pt));
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: normal;
  color: rgba(255, 255, 255, 0.92);
}

.loreteam-section {
  background: #fff;
  color: #25313c;
  padding: 80px 0 88px;
}

.loreteam-section--muted {
  background: #f0f4f5;
}
.loreteam-section__inner {
  width: min(1140px, 92%) !important;
  margin: 0 auto !important;
  padding: 0 clamp(16px, 4vw, 28px) !important;
  box-sizing: border-box;
}

.loreteam-section__headline {
  margin: 0 auto 0.5rem;
  max-width: min(48rem, 100%);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(1.65rem, 2.5vw + 1rem, 2.35rem);
  line-height: 1.15;
  color: #13707f;
  letter-spacing: -0.02em;
  text-align: center;
  text-wrap: balance;
}

.loreteam-section__subhead {
  margin: 0 auto 1.25rem;
  max-width: min(48rem, 100%);
  font-family: 'Roboto', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted, #5a6b7a);
  text-align: center;
  text-wrap: balance;
}

.loreteam-section__intro {
  margin: 0 auto 2.5rem;
  max-width: 46rem;
  text-align: center;
}

.loreteam-section__intro p {
  margin: 0 0 0.75rem;
  font-family: 'Roboto', sans-serif;
  font-size: 1.08rem;
  line-height: 1.65;
  color: #3d4f5c;
  text-align: center;
}

.loreteam-section__intro p:last-child {
  margin-bottom: 0;
}

.loreteam-people-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: clamp(1.5rem, 3vw, 2rem);
}

.loreteam-person-card {
  display: flex;
  flex-direction: column;
  flex: 0 1 320px;
  max-width: min(360px, 100%);
  min-width: 0;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(16, 24, 40, 0.08);
  border: 1px solid rgba(19, 112, 127, 0.12);
}

.loreteam-section--muted .loreteam-person-card {
  box-shadow: 0 8px 28px rgba(16, 24, 40, 0.06);
}

.loreteam-person-card__image {
  aspect-ratio: 1;
  background: #e8f0f2;
  overflow: hidden;
}

.loreteam-person-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.loreteam-person-card__body {
  padding: 1.25rem 1.35rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

/* Long name: bleed name + role row into body padding; bios keep default body padding */
.loreteam-person-card--long-name .loreteam-person-card__name,
.loreteam-person-card--long-name .loreteam-person-card__role-row {
  margin-inline: -0.7rem;
}

.loreteam-person-card__name {
  margin: 0 0 0.35rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.25;
  color: #13707f;
}

.loreteam-person-card__name:has(+ .loreteam-person-card__role-row) {
  margin-bottom: 0;
}

.loreteam-person-card__credentials {
  font-weight: 500;
}

.loreteam-person-card__role-row {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  margin: 0 0 0.1rem;
  flex-shrink: 0;
}

.loreteam-person-card__role {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5a6b7a;
  line-height: 1.35;
}

.loreteam-person-card__bio-details {
  margin: 0;
  padding: 0;
  flex: 1;
  min-width: 0;
  border: 0;
  text-align: center;
}

.loreteam-person-card__role-row + .loreteam-person-card__bio-details {
  margin-top: 0;
}

.loreteam-section--advisory .loreteam-person-card__name + .loreteam-person-card__bio-details {
  margin-top: 0.15rem;
}

.loreteam-person-card__bio-summary {
  list-style: none;
  display: inline-block;
  margin: 0;
  padding: 0.15rem 0;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #13707f;
  text-decoration: underline;
  text-decoration-color: rgba(19, 112, 127, 0.35);
  text-underline-offset: 0.2em;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.loreteam-person-card__bio-summary::-webkit-details-marker {
  display: none;
}

.loreteam-person-card__bio-summary::marker {
  content: none;
}

.loreteam-person-card__bio-summary:hover {
  text-decoration-color: #13707f;
}

.loreteam-person-card__bio-summary:focus-visible {
  outline: 2px solid #13707f;
  outline-offset: 3px;
  border-radius: 2px;
}

.loreteam-person-card__bio-panel {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(19, 112, 127, 0.12);
  text-align: left;
}

.loreteam-person-card__bio-details[open] .loreteam-person-card__bio-panel {
  border-top-color: rgba(19, 112, 127, 0.2);
}

.loreteam-person-card__bio {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  font-size: 0.98rem;
  line-height: 1.58;
  color: #25313c;
}

.loreteam-person-card__bio-note {
  margin: 0.5rem 0 0;
  font-family: 'Roboto', sans-serif;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #5a6b7a;
}

.loreteam-close {
  background: #13707f;
  color: #fff;
  padding: 72px 0 88px;
  text-align: center;
}

.loreteam-close__inner {
  width: min(52rem, 92%) !important;
  margin: 0 auto !important;
  padding: 0 clamp(16px, 4vw, 28px) !important;
  box-sizing: border-box;
}

.loreteam-close__line {
  margin: 0 auto;
  max-width: min(50rem, 100%);
  font-family: 'Roboto', sans-serif;
  font-size: 1.08rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
}

.loreteam-close__line:last-child {
  margin-bottom: 0;
}

.loreteam-close__tagline {
  margin: 0 auto 1rem;
  max-width: min(48rem, 100%);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(1.65rem, 2.5vw + 1rem, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  text-align: center;
}

/* Mobile / narrow: full-bleed arch & curve SVGs (edge to edge) */
@media (max-width: 768px) {
  /* Let decorative full-width rows extend to viewport edges (overflow:hidden clips 100vw) */
  html,
  body {
    overflow-x: visible;
  }
  /* Match fixed header height (mobile .nav is min 80px + padding; 60px body offset was too small) */
  body {
    padding-top: 96px;
  }
  /* Keep tall top offset when banner + fixed nav (don’t let body.has-banner win with 60px) */
  body.has-banner {
    padding-top: 96px;
  }
  .hero-home {
    margin-top: -96px;
  }
  body.has-banner .hero-home {
    margin-top: calc(-96px - 60px);
  }

  .loreteam-hero {
    margin-top: -96px;
  }

  #main-content > section.loreteam-hero {
    padding-top: calc(max(7rem, 112px) + 32px + 100px) !important;
    padding-bottom: calc(96px + 100px) !important;
  }

  #main-content {
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }
  .pull-section,
  .built-section,
  .how-it-works,
  .lore-value-band,
  #app-demo.feature-green {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }
  /* Uniform top/bottom on every homepage section */
  #main-content > section {
    padding-top: 96px !important;
    padding-bottom: 96px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  /* Pull: a little extra breathing room inside the uniform section padding */
  #main-content > section.pull-section {
    padding-top: calc(96px + clamp(12px, 2vw, 20px)) !important;
    padding-bottom: calc(72px + clamp(8px, 2vw, 14px)) !important;
  }
  /* Hero: top padding clears fixed nav + banner stack; trimmed vs prior +20+52 */
  #main-content > section.hero-home {
    padding-top: calc(max(7rem, 112px) + 14px + 40px) !important;
    padding-bottom: 0 !important;
  }
  body.has-banner #main-content > section.hero-home {
    padding-top: calc(max(7rem, 112px) + 14px + 40px + 60px) !important;
  }
  #main-content > section.lore-value-band--on-white {
    /* Less top inset on mobile so the lead sits closer to the section above */
    padding-top: calc(72px + 24px) !important;
    /* Tighter bottom on mobile so less empty space under the rewards card */
    padding-bottom: calc(72px + 24px) !important;
  }
  #main-content > section.cta-final {
    padding-top: calc(96px + 16px) !important;
  }
  /* Larger type + comfortable inset on phones */
  .hero-home .container.hero-home__inner {
    width: min(1100px, 90%) !important;
  }
  .loreteam-hero .container.loreteam-hero__inner {
    width: min(1100px, 90%) !important;
  }
  .hero-home__title {
    font-size: clamp(1.875rem, 6.25vw + 1rem, 2.875rem);
    line-height: 1.08;
  }
  .hero-home__stores {
    margin-top: clamp(28px, 4vw, 40px);
  }
  .hero-home__stores .store-button {
    height: 48px;
  }

  .loreteam-hero__title {
    font-size: clamp(1.875rem, 6.25vw + 1rem, 2.875rem);
    line-height: 1.08;
    max-width: 100%;
  }

  .loreteam-hero__lead {
    max-width: 100%;
  }

  #main-content > section.loreteam-section,
  #main-content > section.loreteam-close {
    padding-top: 72px !important;
    padding-bottom: 72px !important;
  }
}

#app-demo .feature-panel {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}
#app-demo .feature-chat-quote {
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.15);
}
#app-demo .feature-chat-divider {
  background: rgba(255, 255, 255, 0.22);
}
#app-demo .feature-chat-label {
  color: rgba(255, 255, 255, 0.74);
  text-transform: none;
  letter-spacing: 0.06em;
}
#app-demo .feature-carousel-btn {
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
}
#app-demo .feature-carousel-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.85);
}
#app-demo .feature-carousel-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}
#app-demo .feature-dot {
  border: 2px solid rgba(255, 255, 255, 0.45);
}
#app-demo .feature-dot:hover {
  border-color: rgba(255, 255, 255, 0.85);
}
#app-demo .feature-dot.active {
  background: #ffffff;
  border-color: #ffffff;
}
#app-demo .feature-dot:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}
#app-demo .feature-grid {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 0;
  padding: calc(clamp(48px, 7vw, 72px) + 16px + clamp(10px, 1.8vw, 20px)) 0 0;
}

@media (max-width: 1024px) {
  #app-demo .feature-grid {
    padding-top: clamp(34px, 4.8vw, 52px);
  }

  /* Flush phone BG to section bottom (avoids generic section padding-bottom on narrow viewports) */
  #main-content > section#app-demo {
    padding-bottom: 0 !important;
  }
}

@media (max-width: 768px) {
  /* Less than the generic section 96px + grid padding (stacked too tall above the headline) */
  #main-content > section#app-demo {
    padding-top: clamp(48px, 9vw, 64px) !important;
  }

  #app-demo .feature-grid {
    padding-top: clamp(22px, 3.5vw, 34px);
  }
}

#app-demo .feature-content {
  width: 100%;
  max-width: min(900px, 100%);
  align-items: center;
}
#app-demo .feature-headline {
  margin: 0 0 clamp(12px, 2vw, 20px);
  padding-top: 0;
  width: 100%;
  text-align: center;
  font-family: 'Roboto Condensed', 'Roboto', sans-serif;
  font-size: clamp(1.75rem, 3vw + 1rem, 48pt);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.12);
}
#app-demo .feature-subject-lines {
  width: 100%;
  max-width: min(900px, 100%);
  margin: 0 0 clamp(28px, 4vw, 40px);
  box-sizing: border-box;
}
#app-demo .feature-subject-line {
  margin: 0;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1rem, 1.2vw + 0.75rem, 22pt);
  font-weight: 500;
  line-height: 1.45;
  font-style: normal;
  color: #ffffff;
  text-shadow: none;
}
#app-demo .feature-carousel {
  width: 100%;
}

/* Mobile: full-bleed frosted chat on teal — no phone frame asset */
@media (max-width: 639px) {
  #app-demo .feature-phone-shell {
    display: contents;
    background: none;
    background-image: none;
    padding: 0;
    margin: 0;
    width: auto;
    max-width: none;
    overflow: visible;
    box-sizing: border-box;
  }

  #app-demo .feature-phone-screen {
    display: contents;
  }

  /* Edge-to-edge section: drop .container 92% width; chat column uses full viewport */
  #app-demo .container.feature-grid {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }

  #app-demo .feature-grid {
    justify-items: stretch;
  }

  #app-demo .feature-content {
    max-width: none;
    width: 100%;
  }

  #app-demo .feature-subject-lines {
    max-width: none;
  }

  /* Typographic inset for headline + subject (glass panel is full-bleed) */
  #app-demo .feature-headline,
  #app-demo .feature-subject-lines {
    padding-left: clamp(16px, 4vw, 24px);
    padding-right: clamp(16px, 4vw, 24px);
    box-sizing: border-box;
  }

  #app-demo .feature-panel {
    margin-left: 0;
    margin-right: 0;
    padding: clamp(16px, 3.5vw, 22px) clamp(14px, 3vw, 20px);
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
  }

  #app-demo .feature-chat-msg--lore {
    margin-left: clamp(6px, 2vw, 12px);
  }

  #app-demo .feature-chat-msg--you {
    margin-right: clamp(6px, 2vw, 12px);
  }

  #app-demo .feature-carousel-nav {
    margin-bottom: 32px;
  }
}

/* Tablet / desktop: phone mockup + clipped BG */
@media (min-width: 640px) {
  #app-demo .feature-phone-shell {
    display: flex;
    flex-direction: column;
    width: min(100%, 900px);
    margin-inline: auto;
    box-sizing: border-box;
    /* Bottom padding shows more of the phone asset under the nav (home-indicator / bezel). */
    padding: 20.5% 8.5% clamp(18px, 4.2vw, 40px) 8.5%;
    background-image: url('images/LB_Chat_IMG_Background.png');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% auto;
    /* Outer shell stays visible so the mockup + nav aren’t clipped; chat is clipped inside .feature-phone-screen */
    overflow: visible;
  }

  /* Chat area only — preserves rounded screen mask without clipping carousel dots */
  #app-demo .feature-phone-shell .feature-phone-screen {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    overflow: hidden;
  }

  #app-demo .feature-carousel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  #app-demo .feature-phone-shell .feature-carousel-nav {
    flex-shrink: 0;
    flex-wrap: nowrap;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
    margin-top: clamp(10px, 2vw, 20px);
  }

  /* Keep all dots on one row */
  #app-demo .feature-phone-shell .feature-dots {
    flex-shrink: 0;
    flex-wrap: nowrap;
    min-width: min-content;
    gap: 7px;
  }

  /* Nav on light “screen” — frosted teal buttons are illegible on white */
  #app-demo .feature-phone-shell .feature-carousel-btn {
    border: 2px solid rgba(55, 148, 170, 0.55);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: #2a7f92;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  }

  #app-demo .feature-phone-shell .feature-carousel-btn:hover {
    background: #ffffff;
    border-color: #3794aa;
    color: #237386;
  }

  #app-demo .feature-phone-shell .feature-carousel-btn:focus-visible {
    outline: 2px solid #3794aa;
    outline-offset: 2px;
  }

  #app-demo .feature-phone-shell .feature-dot {
    border: 2px solid rgba(55, 148, 170, 0.45);
    background: rgba(255, 255, 255, 0.85);
  }

  #app-demo .feature-phone-shell .feature-dot:hover {
    border-color: #3794aa;
  }

  #app-demo .feature-phone-shell .feature-dot.active {
    background: #3794aa;
    border-color: #3794aa;
  }

  #app-demo .feature-phone-shell .feature-dot:focus-visible {
    outline: 2px solid #3794aa;
    outline-offset: 2px;
  }

  #app-demo .feature-phone-shell .feature-panels {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;
    min-height: 0;
  }

  #app-demo .feature-phone-shell .feature-panel {
    background: transparent;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    padding: 0;
    flex: 0 1 auto;
    min-height: 0;
  }

  #app-demo .feature-phone-shell .feature-panel:not(.active) {
    display: none !important;
  }

  #app-demo .feature-phone-shell .feature-panel.active {
    display: flex;
    flex-direction: column;
    /* Start of thread at top so first message stays visible (was flex-end, which hid the top). */
    justify-content: flex-start;
  }

  #app-demo .feature-phone-shell .feature-chat-card {
    flex: 0 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  #app-demo .feature-phone-shell .feature-chat-thread {
    flex: 0 1 auto;
    overflow: visible;
    gap: 8px;
  }

  #app-demo .feature-phone-shell .feature-chat-label {
    color: rgba(150, 150, 150, 0.95);
  }

  #app-demo .feature-phone-shell .feature-chat-quote {
    text-shadow: none;
  }
}

.feature-carousel {
  width: 100%;
}
.feature-panels {
  position: relative;
  min-height: 320px;
}
.feature-panel {
  display: none;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  backdrop-filter: blur(2px);
  box-sizing: border-box;
}
.feature-panel.active {
  display: block;
}

/* Chat content sits inside the same frosted panel as the old feature blocks */
.feature-chat-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  box-sizing: border-box;
  max-width: 100%;
}

.feature-chat-quote {
  font-family: "Roboto", system-ui, -apple-system, sans-serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 16px;
  text-align: left;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.15);
}

.feature-chat-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
  margin: 0 0 18px;
  border: 0;
}

.feature-chat-thread {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-chat-msg {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* LoreBot: left column, inset from left edge; max-width keeps bubbles short of the right side */
.feature-chat-msg--lore {
  align-self: flex-start;
  align-items: flex-start;
  max-width: min(86%, calc(100% - clamp(1.25rem, 5vw, 3rem)));
  margin-left: clamp(10px, 2.5vw, 20px);
}

/* Participant: right column, inset from right edge; max-width keeps bubbles short of the left side */
.feature-chat-msg--you {
  align-self: flex-end;
  align-items: flex-end;
  text-align: right;
  max-width: min(86%, calc(100% - clamp(1.25rem, 5vw, 3rem)));
  margin-right: clamp(10px, 2.5vw, 20px);
}

.feature-chat-msg--you .feature-chat-bubble {
  text-align: left;
}

.feature-chat-label {
  font-family: "Roboto", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  color: rgba(255, 255, 255, 0.62);
  text-transform: uppercase;
}

.feature-chat-bubble {
  font-family: "Roboto", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.45;
  padding: 12px 16px;
  border-radius: 12px;
  margin: 0;
}

.feature-chat-msg--lore .feature-chat-bubble {
  background: #ebebeb;
  color: #1a1a1a;
  /* sharp bottom-left (incoming “tail” side) */
  border-radius: 12px 12px 12px 0;
}

.feature-chat-msg--you .feature-chat-bubble {
  background: #ffffff;
  color: #1a1a1a;
  border: 3px solid #3794aa;
  box-sizing: border-box;
  /* sharp bottom-right (outgoing “tail” side) */
  border-radius: 12px 12px 0 12px;
}

/* Legacy class names if reused elsewhere */
.feature-panel-kicker {
  margin: 0 0 8px 0;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}
.feature-panel-subhead {
  margin: 0 0 12px 0;
  font-size: clamp(1.25rem, 2vw + 0.5rem, 1.5rem);
  line-height: 1.25;
  color: #ffffff;
  font-weight: 700;
}
.feature-panel-text {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}
.feature-carousel-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 22px;
}

.feature-carousel-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.feature-carousel-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.95);
}

.feature-carousel-btn:active {
  transform: scale(0.96);
}

.feature-carousel-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.feature-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  align-items: center;
  margin: 0;
}
.feature-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}
.feature-dot:hover {
  border-color: rgba(255, 255, 255, 0.9);
  transform: scale(1.12);
}
.feature-dot.active {
  background: #ffffff;
  border-color: #ffffff;
  transform: scale(1.22);
}
.feature-dot:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* Desktop — center green feature headline + carousel dots */
@media (min-width: 1024px) {
  .feature-green .feature-headline {
    text-align: center;
    width: 100%;
  }

  .feature-carousel-nav {
    justify-content: center;
  }

  .feature-dots {
    justify-content: center;
  }
}

/* #app-demo: center nav/dots on the phone mockup (nav sits in shell; chat clips in .feature-phone-screen) */
#app-demo .feature-carousel-nav {
  justify-content: center;
  margin-top: clamp(22px, 3.5vw, 36px);
  margin-bottom: 32px;
  gap: 8px;
}
#app-demo .feature-dots {
  justify-content: center;
}

/* Single phone (green feature): no stacked absolute images */
.feature-green .phone-container.feature-phone-single img {
  position: relative;
  top: auto;
  left: auto;
  opacity: 1;
}

@media (max-width: 639px) {
  .feature.feature-green .feature-panels {
    min-height: 260px;
  }
  .feature.feature-green .feature-panel {
    padding: 16px 18px;
  }
  .feature.feature-green .feature-chat-quote {
    font-size: 0.98rem;
    margin-bottom: 14px;
  }
  .feature.feature-green .feature-chat-thread {
    gap: 8px;
  }
  .feature.feature-green .feature-chat-bubble {
    padding: 10px 14px;
    border-radius: 10px;
  }
  .feature.feature-green .feature-chat-msg--lore .feature-chat-bubble {
    border-radius: 10px 10px 10px 0;
  }
  .feature.feature-green .feature-chat-msg--you .feature-chat-bubble {
    border-radius: 10px 10px 0 10px;
  }
  .feature.feature-green .feature-chat-msg--lore {
    max-width: min(88%, calc(100% - clamp(1rem, 4vw, 2.5rem)));
    margin-left: clamp(8px, 2vw, 16px);
  }
  .feature.feature-green .feature-chat-msg--you {
    max-width: min(88%, calc(100% - clamp(1rem, 4vw, 2.5rem)));
    margin-right: clamp(8px, 2vw, 16px);
  }
  .feature.feature-green .feature-carousel-nav {
    margin-top: 18px;
    gap: 8px;
    justify-content: center;
  }
  .feature.feature-green .feature-carousel-btn {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }
  .feature.feature-green .feature-dots {
    gap: 10px;
    justify-content: center;
  }
}

.feature-list { 
  list-style: none; 
  padding: 0; 
  margin: 0; 
  display: grid; 
  gap: 10px;
  position: relative;
  min-height: 350px;
}

/* Interactive feature items */
.feature-item { 
  padding: 0; 
  background: rgba(255,255,255,.12); 
  border: 1px solid rgba(255,255,255,.22); 
  border-radius: var(--radius-md); 
  backdrop-filter: blur(2px);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
  position: relative;
}

.feature-item:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.32);
}

.feature-item.active {
  background: rgba(255,255,255,.20);
  border-color: rgba(255,255,255,.40);
}

.feature-item-header {
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.feature-item-title {
  font-weight: 500;
  color: #ffffff;
  font-size: 1.1rem;
  margin: 0;
}

.feature-item-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
  filter: brightness(0) invert(1);
  transform: rotate(180deg);
}

.feature-item.active .feature-item-icon {
  transform: rotate(0deg);
}

.feature-item-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 14px;
  position: relative;
  z-index: 0;
}

.feature-item.active .feature-item-content {
  max-height: 200px;
  padding: 0 14px 14px 14px;
}

.feature-item-content h2 {
  margin: 0 0 8px 0;
  font-size: 1.5rem;
  color: #ffffff;
}

.feature-item-content p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  color: rgba(255,255,255,0.9);
}

/* Phone container with smooth transitions */
.phone-container {
  position: relative;
  width: 320px;
  height: auto;
  margin: 0 auto;
}

.phone-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.phone-container img.active {
  opacity: 1;
  position: relative;
}

/* Testimonials - Single Quote Carousel */
.testimonials { 
  background: #ffffff; 
  padding: 100px 0 150px 0; 
  text-align: center; 
  position: relative;
}

  .testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('images/Tetimonial_Quote_IMG.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 1;
    z-index: 1;
    pointer-events: none;
  }

.testimonials-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.testimonials h2 { 
  color: #F58C17; 
  margin-top: 48px;
  margin-bottom: 12px;
}

.testimonials-subhead { 
  color: var(--muted); 
  margin-bottom: 48px;
}

/* Single testimonial container */
.testimonial-single { 
  position: relative;
  margin: 0 auto;
  max-width: 600px;
  height: 180px;
  display: flex;
  align-items: center;
  margin-top: 48px;
  margin-bottom: 48px;
  padding: 32px 0;
}

.testimonial-quote {
  background: #ffffff;
  border-radius: 40px; /* Even more rounded corners */
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  padding: 36px 32px;
  border: 1px solid #f0f4f7;
  transition: all 0.6s ease;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-quote blockquote {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
}

.testimonial-quote p {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
  font-weight: 400;
  text-align: center;
  transition: all 0.6s ease;
}

/* Quote styling - decorative quotation marks removed */

/* Hover and focus pause for accessibility - now handled by JavaScript */

/* Dot Navigation */
.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  margin-bottom: 16px;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #D8D8D8;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.testimonial-dot:hover {
  background: #B8B8B8;
  transform: scale(1.1);
}

.testimonial-dot.active {
  background: #F58C17;
  transform: scale(1.2);
}

.testimonial-dot:focus {
  outline: 2px solid #3794AA;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(55, 148, 170, 0.3);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .testimonials-track {
    transition: none;
  }
}

/* CTA purple */
.cta { 
  background: var(--gradient-purple); 
  color: #fff; 
  padding: 80px 0 0; 
  position: relative;
  margin-bottom: 0;
  padding-bottom: 0;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('images/Large BG logo element.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.1;
  z-index: 1;
}

.cta .container {
  position: relative;
  z-index: 2;
  padding-bottom: 0;
  margin-bottom: 0;
}
.cta-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: stretch; gap: 40px; margin-bottom: 0; padding-bottom: 0; }
.cta-copy { display: flex; flex-direction: column; justify-content: center; padding-bottom: 80px; }
.cta-copy h2 { color: #ffffff; }
.cta-phone { display: flex; justify-content: center; align-items: flex-end; margin-bottom: 0; padding-bottom: 0; }
.phone-crop { width: 360px; max-width: 100%; filter: drop-shadow(0 24px 40px rgba(0,0,0,.3)); margin-bottom: -1px; padding-bottom: 0; display: block; }

.cta-certification-block { margin-top: 40px; padding-left: 0; justify-content: flex-start; }
.cta .hero-certification { color: #fff; }

/* Footer */
.site-footer { 
  background: #ffffff; 
  color: #595959; 
  padding: 22px 0; 
  position: relative;
  z-index: 100;
}
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.footer-links a { color: #595959; text-decoration: none; margin-left: 18px; }
.footer-links a:hover { color: #333333; }

/* Screen-reader-only labels */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Contact Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modal.show {
  opacity: 1;
}

/* Homepage email contact modal (nav) — center card in viewport (not top-aligned) */
.lore-home-contact-modal.show {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
  overflow-y: auto;
  min-height: 100%;
}

/* Drop legacy block margin so flex centering is true center; cap height for scroll on small viewports */
.lore-home-contact-modal.show .lore-home-contact-modal__content {
  margin: 0;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
}

.lore-home-contact-modal__hint {
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  margin: -8px 0 24px 0 !important;
}

.lore-home-contact-modal__content .form-group input,
.lore-home-contact-modal__content .form-group textarea {
  background: #f5f6f8;
  border: 1px solid #e2e8eb;
  border-radius: 10px;
}

.lore-home-contact-modal__content .lore-home-contact-submit {
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  background: #13707f;
  border-radius: 10px;
}

.lore-home-contact-modal__content .lore-home-contact-submit:hover {
  background: #0f5f6b;
  box-shadow: 0 4px 14px rgba(19, 112, 127, 0.35);
}

.lore-home-contact-modal__content .lore-home-contact-submit:focus {
  box-shadow: 0 0 0 3px rgba(19, 112, 127, 0.35);
}

.lore-home-contact-modal .modal-close {
  background: none;
  border: none;
  line-height: 1;
  font-family: inherit;
}

/* Success panel: when [hidden], must stay off-screen — #id { display:flex } otherwise beats attribute hidden in some UAs */
#contact-email-modal-success[hidden] {
  display: none !important;
}

#contact-email-modal-success:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 240px;
  padding: 48px 48px 44px;
}

.lore-home-contact-modal__success-title {
  margin: 0 0 16px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #13707f;
  text-align: center;
  width: 100%;
  max-width: 28em;
}

/* Override .modal p (higher specificity than .modal p alone) */
.lore-home-contact-modal__success .lore-home-contact-modal__success-body {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #3d4f56;
  max-width: 28em;
  width: 100%;
  text-align: center;
}

.modal-content {
  background-color: #ffffff;
  margin: 5% auto;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 600px;
  position: relative;
  animation: modalSlideIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 32px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #333;
}

.modal h2 {
  color: var(--text);
  font-size: 2rem;
  margin: 0 0 12px 0;
  text-align: center;
}

.modal p {
  color: var(--muted);
  text-align: center;
  margin: 0 0 32px 0;
  font-size: 1.1rem;
}


.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group:not(:last-child) {
  margin-bottom: 12px;
}

.email-field {
  padding-bottom: 6px;
}


.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e6eef2;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Roboto', sans-serif;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(15, 154, 166, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  background: var(--brand-teal);
  color: #ffffff;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 10px;
}

.submit-btn:hover {
  background: var(--brand-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 154, 166, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(55, 148, 170, 0.3);
}

/* Checkbox Section */
.checkbox-section {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 20px 0;
}

.checkbox-column {
  width: 24px;
  flex-shrink: 0;
}

.checkbox-text-column {
  flex: 1;
}

.checkbox-icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  filter: brightness(0) saturate(100%) invert(53%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.checkbox-icon:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(55, 148, 170, 0.3);
}

.checkbox-icon.checked {
  filter: brightness(0) saturate(100%) invert(30%) sepia(100%) saturate(1000%) hue-rotate(90deg) brightness(80%) contrast(100%);
}

.checkbox-text-column p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--muted);
}

.checkbox-text-column a {
  color: var(--brand-teal);
  text-decoration: none;
}

.checkbox-text-column a:hover {
  text-decoration: underline;
}




/* Mobile responsive for modal */
@media (max-width: 639px) {
  .modal-content {
    margin: 10% auto;
    padding: 30px 24px;
    width: 95%;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .modal h2 {
    font-size: 1.5rem;
  }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .feature-grid, .cta-grid { grid-template-columns: 1fr; }
  .hero-left-column { order: 2; }
  .hero-phone { order: 1; }
  .quotes { grid-template-columns: 1fr; }
  
  /* Center HITRUST line on tablet and mobile */
  .hero-certification-block {
    justify-content: center;
    padding-left: 0;
  }
  .cta-certification-block {
    justify-content: center;
  }
  
  /* Feature section: content above, phone below */
  .feature-content {
    order: 1;
  }
  
  .feature-phone {
    order: 2;
  }
}

/* Tablet responsive - 2 cards visible */
@media (max-width: 1023px) and (min-width: 640px) {
  .testimonial-card { 
    flex: 0 0 calc(50% - var(--slide-gap) / 2);
  }
  
  /* Hero section - same as mobile: hide image and center content */
  .hero {
    padding: 180px 0 132px 0;
  }
  
  body.has-banner .hero {
    padding-top: 240px !important;
  }
  
  .hero-phone {
    display: none;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .hero-left-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  
  .hero-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }
  
  .hero-tabs-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    align-self: stretch;
  }
}

/* Desktop navigation - hide mobile menu toggle */
.mobile-menu-toggle {
  display: none;
}

/* Mobile responsive */
@media (max-width: 639px) {
  /* overflow-x:visible so full-bleed arch/curve SVGs can span the viewport */
  html,
  body {
    overflow-x: visible;
    max-width: 100vw;
  }
  
  /* Navigation */
  .site-header {
    top: 0;
  }
  
  .nav {
    padding: 20px 0;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .brand {
    display: flex;
    align-items: center;
    position: relative;
    width: calc(127px * 40 / 32);
    height: 40px;
  }
  
  .logo {
    position: relative;
  }
  
  .logo-transparent {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
  }
  
  .logo-white {
    opacity: 1;
    position: absolute;
    top: 0;
    left: 0;
  }
  
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .mobile-menu-toggle:focus {
    outline: 2px solid #3794AA;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(55, 148, 170, 0.3);
  }
  
  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
  }
  
  .menu.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }
  
  .site-header:has(.menu.active) {
    background: #ffffff !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  }
  
  .site-header:has(.menu.active) .mobile-menu-toggle {
    color: #3794AA !important;
  }
  
  .menu a {
    color: #13707F;
    padding: 12px 0;
    border-bottom: 1px solid #e6eef2;
    font-family: 'Roboto', sans-serif;
    font-size: 20px !important;
    font-weight: 700 !important;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .menu a:last-child {
    border-bottom: none;
  }
  
  /* Mobile menu toggle button */
  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    color: #3794AA;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    transition: all 0.4s ease;
  }
  
  .desktop-menu {
    display: none;
  }
  
  /* Mobile logo alignment */
  .brand {
    position: relative;
  }
  
  .logo {
    position: relative;
  }
  
  .logo-white {
    position: absolute;
    top: 0;
    left: 0;
  }
  
  /* Hero section */
  .hero {
    padding: 180px 0 40px 0;
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  .hero-grid {
    gap: 30px;
    text-align: center;
  }
  
  .hero-left-column {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1000;
    margin-top: 20px;
  }
  
  .hero-tabs-container {
    width: 100%;
    height: auto;
    min-height: 56px;
    padding: 6px;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  
  .hero-tab {
    font-size: 0.85rem;
    padding: 0 4px;
    min-width: 0;
    flex: 1 1 auto;
  }
  
  .hero-tab.active {
    padding: 6px 8px;
    min-height: auto;
  }
  
  .display {
    font-size: 2.7rem !important;
    line-height: 1.1;
    margin-bottom: 16px;
  }
  
  .hero-card .display {
    font-size: 2.7rem !important;
  }
  
  .lead {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 12px;
  }
  
  .store-buttons {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  
  .store-button {
    height: 50px;
    width: auto;
  }
  
  .hero-certification-badge {
    height: 32px;
  }
  
  /* Feature section */
  .feature {
    padding: 80px 0 172px 0;
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  .feature-grid {
    gap: 30px;
  }
  
  .feature-phone {
    display: flex;
    justify-content: center;
    align-items: center;
    order: 2;
  }
  
  .feature-list {
    gap: 16px;
  }
  
  /* Feature section: content above, phone below */
  .feature-content {
    order: 1;
  }
  
  .feature-green:not(#app-demo) .feature-headline {
    padding-top: 24px !important;
  }
  
  .feature-item {
    padding: 16px;
  }
  
  .feature-item-title {
    font-size: 1.1rem;
  }
  
  .feature-item-content h2 {
    font-size: 1.3rem;
    margin-bottom: 8px;
  }
  
  .feature-item-content p {
    font-size: 1rem;
    line-height: 1.4;
  }
  
  /* Testimonials */
  .testimonials {
    padding: 132px 0 152px 0;
    overflow-x: hidden;
    max-width: 100vw;
  }

  .testimonials::before {
    background-image: none;
  }
  
  
  .testimonials h2 {
    font-size: 1.8rem;
    margin-top: 48px;
    margin-bottom: 16px;
  }
  
  .testimonial-single {
    max-width: 100%;
    margin: 0 auto;
    height: 160px;
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 32px 0;
  }
  
  .testimonial-quote {
    padding: 24px 18px;
    border-radius: 32px;
  }
  
  .testimonial-quote p {
    font-size: 1.1rem;
    line-height: 1.5;
  }
  
  .testimonials-dots {
    gap: 16px;
  }
  
  .testimonial-dot {
    width: 16px;
    height: 16px;
  }
  
  /* CTA section */
  .cta {
    padding: 64px 0 0 0;
    overflow-x: hidden;
    max-width: 100vw;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  
  .cta-grid {
    gap: 8px;
    text-align: center;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  
  .cta-phone {
    margin-bottom: 0;
    padding-bottom: 0;
  }
  
  .phone-crop {
    margin-bottom: -1px;
    padding-bottom: 0;
  }
  
  .cta-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px;
  }
  
  .cta h1 {
    font-size: 2rem;
    line-height: 1.1;
  }
  
  .cta .lead {
    font-size: 1.1rem;
    margin-bottom: 24px;
  }
  
  /* Footer */
  .site-footer {
    padding: 24px 0;
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  .footer-grid {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .copyright {
    order: 1;
    text-align: center;
    width: 100%;
  }
  
  .footer-links {
    order: 2;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }
  
  /* General mobile improvements */
  .container {
    width: 90%;
    padding: 0 20px;
  }
  
  .headline-slab {
    padding: 120px 0;
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  .headline-slab h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
  }
  
  .headline-slab .subhead {
    font-size: 1rem;
  }
  
  /* Touch targets */
  .store-button,
  .feature-item {
    min-height: 44px;
    min-width: 44px;
  }
  
  .phone-full {
    max-width: 140px;
  }
  
  .phone-shadow {
    max-width: 240px;
    display: block;
    margin: 0 auto;
    transition: opacity 0.3s ease;
    filter: none;
  }
  
  .phone-shadow:not(.active) {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .phone-shadow.active {
    opacity: 1;
    position: relative;
  }
  
  /* Hide hero image on mobile */
  .hero-phone {
    display: none;
  }
  
  /* Mobile Contact Modal */
  .modal-content {
    margin: 1% auto;
    padding: 20px;
    width: 98%;
    max-width: none;
    border-radius: 12px;
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
    top: 0;
    transform: none;
  }
  
  .modal h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }
  
  .modal p {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }
  
  .form-row {
    flex-direction: column;
    gap: 16px;
  }
  
  .form-group input, .form-group textarea {
    font-size: 16px;
    padding: 12px 16px;
  }
  
  .submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
  }
  
  /* Mobile modal width adjustment — horizontal margin auto keeps card centered */
  #contact-modal .modal-content,
  #contact-email-modal .lore-home-contact-modal__content {
    width: calc(100% - 32px);
    padding: 30px 16px;
    margin: 20px auto;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
    position: relative;
  }

  .lore-home-contact-modal__content .lore-home-contact-submit {
    max-width: none;
    width: 100%;
  }

  #contact-email-modal-success:not([hidden]) {
    padding: 40px 20px 36px;
    min-height: 200px;
  }
}

/* People Section */
.people-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #50C0CC;
  z-index: -1;
}

.lore-people {
  position: relative;
  color: white;
  text-align: center;
  min-height: auto;
  padding: 3rem 0;
}

.people-content h2 {
  color: white;
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

.people-content p {
  color: white;
  margin-bottom: 3rem;
}

.people-tabs {
  display: flex;
  justify-content: flex-start;
  gap: 0;
  margin-bottom: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
}

.tab {
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #3794AA;
  color: white;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 0;
  text-align: center;
}

.tab:first-child {
  border-radius: 8px 0 0 8px;
}

.tab:last-child {
  border-radius: 0 8px 8px 0;
}

.tab:only-child {
  border-radius: 8px;
  flex: none;
  width: 100%;
}

.tab.active {
  background: #3794AA;
  color: white;
}

.tab:hover {
  background: rgba(55, 148, 170, 0.8);
}

.people-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
}

.person {
  display: none;
  max-width: 1200px;
  width: 100%;
  grid-template-columns: 60% 40%;
  gap: 3rem;
  align-items: center;
  box-sizing: border-box;
}

.person.active {
  display: grid;
}

.person-info {
  text-align: left;
}

.person-info h3 {
  color: #3794AA;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.person-info h4 {
  color: #ffffff;
  font-size: 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  margin: 0 0 8px 0;
}

.person-info h4 .person-role {
  font-weight: 500;
}

.person-info .bio {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  font-size: 1rem;
}

.person-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.person-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
}

.people-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 2rem auto 0;
  position: relative;
  padding: 0;
}

.nav-arrow {
  background: #3794AA;
  border: none;
  color: white;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.nav-arrow.prev {
  left: -25px;
}

.nav-arrow.next {
  right: -25px;
}

.nav-arrow:hover {
  background: #2a7a8a;
  transform: translateY(-50%) scale(1.1);
}

.people-thumbnails {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.person-thumbnail {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.person-thumbnail:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

.person-thumbnail.active {
  opacity: 1;
  border-color: #3794AA;
  transform: scale(1.1);
}

.person-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* People Section Media Queries */
@media (max-width: 1024px) {
  .person {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .person-image img {
    width: 100%;
    max-width: 400px;
  }
  
  .people-carousel {
    text-align: center;
  }
  
  .person {
    justify-items: center;
  }
  
  .person-info {
    text-align: center;
    padding-top: 2rem;
  }
  
  .person-image {
    display: flex;
    justify-content: center;
  }
  
  .people-tabs {
    align-items: center;
  }
  
  .people-thumbnails {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .person {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .person-info {
    text-align: center;
    padding-top: 0;
  }
  
  .person-image img {
    max-width: 300px;
  }
  
  .people-tabs {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .tab {
    border-radius: 8px;
  }
  
  .people-content h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
  }
  
  .person-info h3 {
    font-size: 0.9rem;
  }
  
  .person-info h4 {
    font-size: 1.3rem;
  }
}


