/*
 * Responsive breakpoints (3 tiers)
 * ---------------------------------
 * Mobile:  max-width: 639px
 * Tablet:  min-width: 640px and max-width: 1023px
 * Desktop: min-width: 1024px (default — no max-width query)
 *
 * Shared “not desktop” rules use max-width: 1023px; phone-only rules use max-width: 639px.
 */

/* Typography setup */
:root {
  --brand-teal: #0f9aa6;
  --brand-green: #24c168;
  --brand-deep: #0b5a66;
  --dark: #0e1720;
  --text: #25313c;
  --muted: #5a6b7a;
  --surface: #ffffff;
  --gradient-hero: linear-gradient(180deg, #3794AA 0%, #13707F 100%);
  --gradient-green: radial-gradient(1200px 600px at left bottom, rgba(255,255,255,0.28), rgba(255,255,255,0) 42%), linear-gradient(90deg, #2dbb63 0%, #1c774b 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;
}

.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 {
  width: min(1000px, 92%);
  margin: 0 auto;
}

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

/* Header */
.site-header { 
  position: fixed; 
  top: 0; 
  left: 0; 
  right: 0; 
  z-index: 1000; 
  background: transparent; 
  color: #fff; 
  transition: all 0.3s ease;
}
.site-header.scrolled { 
  background: rgba(255, 255, 255, 0.95) !important; 
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}
.site-header.scrolled .brand { 
  color: #333 !important; 
  transition: color 0.3s ease;
}
.site-header.scrolled .menu a { 
  color: #3794AA !important; 
  font-family: 'Roboto', sans-serif !important;
  font-size: 15.5px;
  font-weight: 500;
  transition: color 0.3s ease;
}
.site-header.scrolled .menu a[style*="font-weight: bold"]::after,
.site-header.scrolled .menu a[style*="font-weight:bold"]::after {
    background-color: #3794AA;
    border-radius: 2px;
}
.site-header.scrolled .menu a:hover { 
  color: #2a7a8a !important; 
  transition: color 0.3s ease;
}

.nav { display: flex; align-items: center; justify-content: space-between; padding: 0 32px; margin: 0; min-height: 60px; }
.brand { display: flex; align-items: center; color: #fff; transition: color 0.3s ease; position: relative; width: 127px; height: 32px; }
.logo { width: 127px; height: 32px; transition: opacity 0.3s ease; }

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

.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;
}


/* Not desktop: banner stacks (tablet + mobile) */
@media (max-width: 1023px) {
    .medicare-banner {
        height: auto;
        min-height: 60px;
        overflow: visible;
        justify-content: center;
        margin-top: 0;
        position: relative;
        z-index: 100;
        display: flex;
        width: 100%;
        padding: 12px 16px;
        box-sizing: border-box;
    }

    .medicare-banner-wrapper {
        animation: none;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        will-change: auto;
        flex-wrap: wrap;
    }

    .medicare-banner-content {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 8px;
        flex-shrink: 1;
        white-space: normal;
        max-width: 100%;
        gap: 0;
    }

    /* Single visible row; duplicate used only for desktop marquee */
    .medicare-banner-content[aria-hidden="true"] {
        display: none;
    }

    .medicare-banner-icon {
        margin-right: 16px;
        flex-shrink: 0;
    }

    .medicare-banner p {
        font-family: 'Roboto', sans-serif;
        font-weight: 500;
        font-size: 18px;
        padding: 0;
        white-space: normal;
        text-align: center;
        line-height: 1.35;
        max-width: 100%;
    }

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

body.has-banner {
    padding-top: 60px;
}
.logo-transparent { opacity: 1; position: absolute; top: 0; left: 0; }
.logo-white { opacity: 0; position: absolute; top: 0; left: 0; }
.site-header.scrolled .logo-transparent { 
  opacity: 0 !important; 
  transition: opacity 0.3s ease;
}
.site-header.scrolled .logo-white { 
  opacity: 1 !important; 
  transition: opacity 0.3s ease;
}
.desktop-menu { display: flex; align-items: center; gap: 24px; }
.menu { display: flex; align-items: center; gap: 24px; }
.menu a { color: #eaf6f8; 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: #fff; }
.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: #ffffff;
    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;
  /* Visible so hero phone isn’t clipped; Lore glyph uses clip-path on .hero::before + width cap */
  overflow: visible;
}

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

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

/* Not desktop: extra hero offset when banner present (tablet + mobile; tablet hero block may override) */
@media (max-width: 1023px) {
  body.has-banner .hero {
    margin-top: -136px;
    padding-top: 188px !important;
    z-index: 50;
  }
}

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

/* Lore glyph watermark — all breakpoints; vertical center of graphic on hero bottom edge */
.hero::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  /* Cap at 100vw so we don’t need overflow-y:hidden on .hero (which clipped the phone) */
  width: min(100vw, 1800px);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, 50%);
  background-image: url('../../images/LoreGlyphWhite.svg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  opacity: 0.07;
  /* Hide half of glyph below hero bottom (replaces clipping via .hero overflow:hidden) */
  clip-path: inset(0 0 50% 0);
  -webkit-clip-path: inset(0 0 50% 0);
}

.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: 54px 42px 42px; 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;
}
/* Above Meet Lore (z-index 0) so full screenshot can extend past hero bottom */
.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; }
.hero-card .hero-cta,
.cta-copy .hero-cta {
  margin-top: 28px;
  margin-bottom: 20px;
  box-sizing: border-box;
  padding: 14px 40px;
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: 400;
  background: #4DB748;
  color: #fff;
}

/* Hero only: no drop shadow (override .btn-dark + shared CTA styles) */
.hero-card .hero-cta {
  box-shadow: none;
}

.hero-card .hero-cta:hover,
.cta-copy .hero-cta:hover {
  background: #45a840;
}
.cta-copy .hero-cta:hover {
  box-shadow: 0 10px 18px rgba(77, 183, 72, 0.45);
}
.hero-card .hero-cta:hover {
  box-shadow: none;
}

.hero-card .hero-cta:active,
.cta-copy .hero-cta:active {
  background: #3d9638;
}
.hero-card .hero-cta:active {
  box-shadow: none;
}

/* Purple CTA only: green glow, pill width, white ring */
.cta-copy .hero-cta {
  width: fit-content;
  max-width: 100%;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 14px rgba(77, 183, 72, 0.35);
}

.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); 
}

/* Meet Lore Section — z-index below .hero (2) so hero phone/screenshot paints on top */
.meet-lore {
  position: relative;
  z-index: 0;
  background: #ffffff;
  color: var(--text);
  padding: 216px 0 152px;
  overflow: hidden;
}

/* Decorative chat bubbles (chat_bubbles.svg): align to left column (same inset as Meet Lore .container) */
.meet-lore-bubbles {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  top: 0;
  bottom: 0;
  width: min(340px, 42vw);
  /* Shift left from content column edge */
  left: calc((100vw - min(1000px, 92vw)) / 2 - clamp(32px, 5vw, 72px));
  opacity: 0.07;
  background-image: url('../../images/chat_bubbles.svg');
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
}

.meet-lore-grid {
  display: grid;
  /* 40% / 60% — use fr ratio so gap doesn’t fight with % tracks */
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  position: relative;
  z-index: 1;
}

.meet-lore-headline {
  min-width: 0;
}

.meet-lore-headline h2 {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 2.2vw + 1rem, 2.75rem);
  line-height: 1.15;
  color: #1b6a7a; /* same as .headline-slab h2 (Value Proposition divider) */
  letter-spacing: -0.02em;
}

.meet-lore-body {
  min-width: 0;
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text);
}

/* Keep margin-only here so it never competes with font-weight on .meet-lore-body p.meet-lore-body-italic */
.meet-lore-body p {
  margin: 0 0 1rem;
}

.meet-lore-body p:last-child {
  margin-bottom: 0;
}

/* Compound selector: beats .meet-lore-body p (0,2,1 vs 0,1,1) so weight/italic can't be lost to the paragraph rule */
.meet-lore-body p.meet-lore-body-italic {
  font-style: italic;
  font-weight: 700;
  color: var(--text);
  margin-top: 1.25rem;
}

/* Not desktop: Meet Lore single column + centered */
@media (max-width: 1023px) {
  .meet-lore {
    padding: 176px 0 128px;
  }

  .meet-lore-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
    justify-items: center;
  }

  .meet-lore-headline {
    width: 100%;
  }

  .meet-lore-headline h2 {
    text-align: center;
  }

  .meet-lore-body {
    text-align: center;
  }
}

@media (max-width: 639px) {
  /* Stack above .hero (z-index 0) so headline/copy cover the overlapping handset + shadow */
  .meet-lore {
    position: relative;
    z-index: 2;
    padding: min(140px, 22vw) 0 80px;
  }

  .meet-lore-bubbles {
    display: none;
  }
}

/* Trust Section (same layout as Three Moments) */
.lp-container {
  width: min(1000px, 92%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.lp-moments {
  background: #3794aa;
  color: #fff;
  padding: 48px 0 100px 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Faded lock watermark — lower-left */
.lp-moments.trust-section::before {
  content: '';
  position: absolute;
  z-index: 0;
  left: clamp(8px, 2.5vw, 28px);
  bottom: clamp(8px, 2.5vw, 28px);
  width: min(280px, 58vw);
  aspect-ratio: 309.12 / 445.73;
  max-height: min(52vh, 420px);
  background-image: url('../../images/Lock.svg');
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: contain;
  opacity: 0.12;
  pointer-events: none;
  filter: brightness(0) invert(1);
}

/* Tablet: align max-width with hero / site tablet range (640px–1023px) */
@media (max-width: 1023px) and (min-width: 640px) {
  .lp-moments {
    padding-top: 48px;
    padding-bottom: 72px;
  }

  .lp-moments-heading {
    padding-top: 40px;
  }

  /* Trust section — lock watermark centered in section on tablet */
  .lp-moments.trust-section::before {
    width: min(200px, 44vw);
    max-height: min(40vh, 300px);
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    background-position: center center;
  }
}

.lp-moments-heading {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 2.2vw + 1rem, 3rem);
  line-height: 1.1;
  color: #fff;
  text-align: center;
  margin: 0 0 24px 0;
  padding-top: 40px;
}

.lp-moments-intro {
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #fff;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto 48px auto;
}

.lp-moments-intro strong {
  color: #fff;
}

.lp-moments-outro {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: #fff;
  text-align: center;
  max-width: 800px;
  margin: 48px auto 0 auto;
}

/* Wrapper: full width so margin:auto centering works */
.lp-moments-list-wrap {
  width: 100%;
  box-sizing: border-box;
}

/*
 * Shrink-wrap to longest line (fit-content), then center — avoids a wide empty
 * band on the right that makes the block look left-shifted vs. centered headings.
 */
.lp-moments-list {
  list-style: none;
  list-style-type: none;
  margin: 0 auto;
  padding: 0;
  padding-inline-start: 0;
  padding-inline-end: 0;
  width: fit-content;
  max-width: min(720px, 100%);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* let rows be content-width so fit-content centers the text block */
  gap: 14px;
}

.lp-moment {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  padding: 0;
  margin: 0;
  list-style: none;
  background: none;
  border-radius: 0;
  max-width: min(720px, 100%);
  box-sizing: border-box;
}

.lp-moment-check-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  color: #fff;
  display: block;
}

.lp-moment-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.45;
  color: #fff;
  margin: 0;
  min-width: 0; /* allow wrapping when row hits max-width */
}

.lp-moment-text {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
}

.lp-moment-content {
  margin-left: 0;
}

.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; }

/* HITRUST row: shrink-wrap + center so it lines up visually with checklist */
.hero-certification-block.trust-certification-block {
  width: fit-content;
  max-width: min(1000px, 100%);
  margin-top: 40px;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  padding-left: 0;
  box-sizing: border-box;
}

.trust-section .hero-certification {
  color: rgba(255, 255, 255, 0.95);
  opacity: 1;
}
.hero-certification { margin: 0; font-size: 1rem; 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; }
/* Let base .container width apply (min(1000px, 92%)); old full-bleed override removed */
.headline-slab .container {
  padding: 0;
  box-sizing: border-box;
}
.headline-slab h2 { color: #1b6a7a; }
.headline-slab .subheadline {
  margin-top: 20px;
  margin-bottom: 0;
  font-size: 1.25rem;
  font-weight: 400;
  color: #5a6b7a;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

/* Single content bubble — full width of .container */
.headline-slab-bubble {
  margin: 40px auto 0 auto;
  width: 100%;
  max-width: none;
  text-align: left;
  padding: 40px 36px;
  background: #ffffff;
  border-radius: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.headline-slab-bubble-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.35;
  color: #1b6a7a;
  margin: 0 0 16px 0;
}

.headline-slab-bubble-body {
  font-family: 'Roboto', sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0;
}

.headline-slab-bubble-emphasis {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #5a6b7a;
  margin: 20px 0 0 0;
}

.headline-slab-bubble-emphasis em {
  font-style: italic;
}

/* Feature block (green) */
.feature { padding: 80px 0; }
/* Green block: section top padding shifts all content down evenly */
.feature.feature-green {
  padding-top: 72px;
  padding-bottom: 80px;
}
.feature-green { 
  background: var(--gradient-green); 
  color: #eafff5; 
  position: relative; 
  overflow: hidden;
}

.feature-green::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  left: auto;
  width: 736px;
  height: 370px;
  background-image: url('../../images/SM background logo element.png');
  background-size: 736px 370px;
  background-repeat: no-repeat;
  background-position: right bottom;
  opacity: 0.7;
  z-index: 1;
}
.feature-grid { 
  display: grid; 
  /* Text left (wider), phone right (narrower) */
  grid-template-columns: 1.3fr 0.7fr; 
  gap: 40px; 
  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: 0;
  position: relative;
  z-index: 1;
}
.feature-content h2 { color: #ffffff; }
.feature-content {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Dot carousel: one panel visible at a time (homepage BE green feature) */
.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;
  max-width: 92%;
}

.feature-chat-msg--lore {
  align-self: flex-start;
  align-items: flex-start;
}

.feature-chat-msg--you {
  align-self: flex-end;
  align-items: flex-end;
  text-align: right;
}

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

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

.feature-chat-bubble {
  font-family: "Roboto", system-ui, -apple-system, sans-serif;
  font-size: 0.9375rem;
  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;
  }
}

.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;
}

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

/* 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;
  min-height: 200px;
  height: auto;
  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%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-quote blockquote {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.testimonial-intro {
  margin: 0 0 16px;
  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
  font-size: 0.8rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
  font-style: normal;
  transition: opacity 0.3s ease;
}

/* Main quote only — not .testimonial-byline (both are <p>, so avoid .testimonial-quote p) */
#testimonial-text {
  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;
}

.testimonial-byline {
  margin: 24px 0 0;
  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #888888;
  font-style: normal;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.02em;
  transition: opacity 0.3s 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;
  }
}

/* How It Works */
.how-it-works {
  background: #eceef1;
  color: var(--text);
  padding: 88px 0 96px;
  position: relative;
}

.how-it-works-inner {
  text-align: center;
}

.how-it-works-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(1.85rem, 2vw + 1rem, 2.5rem);
  line-height: 1.15;
  color: #1b6a7a; /* match Meet Lore .meet-lore-headline h2 */
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.how-it-works-lead {
  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 42rem;
  margin: 0 auto;
}

.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 32px;
  margin-top: 52px;
  text-align: left;
}

.how-it-works-col {
  margin: 0;
}

.how-it-works-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: #ffffff;
  color: #3794aa;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.how-it-works-icon svg {
  flex-shrink: 0;
}

.how-it-works-col-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 10px;
}

.how-it-works-col-text {
  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

/* Not desktop: How it works 2-column subgrid */
@media (max-width: 1023px) {
  .how-it-works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 28px;
    margin-top: 44px;
  }
}

/* In Action */
.in-action {
  background: #ffffff;
  color: var(--text);
  padding: 88px 0 96px;
  position: relative;
}

.in-action-inner {
  text-align: center;
}

.in-action-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(1.85rem, 2vw + 1rem, 2.5rem);
  line-height: 1.15;
  color: #1b6a7a;
  margin: 0 0 48px;
  letter-spacing: -0.02em;
}

.in-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 36px;
  text-align: center;
}

.in-action-col {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.in-action-shot {
  width: 100%;
  max-width: 260px;
  margin: 0 auto 34px;
  line-height: 0;
  background: transparent;
}

/* Screenshot only — filter drop-shadow follows image alpha (transparent areas stay out of the shadow).
   box-shadow always rectangles the full <img> box, which looks wrong on transparent PNGs. */
.in-action .in-action-image {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 36px rgba(16, 24, 40, 0.2)) drop-shadow(0 6px 14px rgba(16, 24, 40, 0.12));
}

.in-action-col-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 10px;
}

.in-action-col-text {
  font-family: 'Roboto', system-ui, -apple-system, sans-serif;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
  max-width: 28rem;
}

/* Not desktop: In Action single column */
@media (max-width: 1023px) {
  .in-action-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .in-action-title {
    margin-bottom: 36px;
  }
}

/* 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; }

/* Footer */
.site-footer { 
  background: #F5F5F5; 
  color: #595959; 
  padding: 22px 0; 
  position: relative;
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}
.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; }

/* 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;
}

.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;
  }
}

/* Not desktop: single-column grids + default hero stack order (tablet hero block overrides hero) */
@media (max-width: 1023px) {
  .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;
  }
  
  /* 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 tablet: text left, phone right — show handset, no overlap (overrides max-width:1023px single column) */
  .hero {
    padding: 96px 0 64px 0;
    overflow: visible;
  }
  
  body.has-banner .hero {
    padding-top: 176px !important;
  }
  
  .hero .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(20px, 3.5vw, 40px);
    align-items: center;
    text-align: left;
  }
  
  .hero .hero-left-column {
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-top: 0;
  }
  
  .hero .hero-phone {
    display: flex;
    justify-content: center;
    align-items: center;
    order: 2;
    position: relative;
    z-index: 10;
    margin-bottom: 0;
    align-self: center;
  }
  
  .hero .hero-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
  }
  
  .hero .phone-full.phone-hero {
    width: min(100%, 300px);
    max-width: 300px;
  }
  
  .hero-tabs-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    align-self: stretch;
  }

  /* Meet Lore — top padding (headline sits a bit higher vs previous 168px) */
  .meet-lore {
    padding-top: 148px;
  }

  .meet-lore-grid {
    gap: 32px;
  }

  /* Chat bubble art: top center on tablet (mobile hides .meet-lore-bubbles).
     Empty div needs explicit height — base uses top+bottom stretch; here we replace with a fixed box. */
  .meet-lore-bubbles {
    left: 50%;
    right: auto;
    top: clamp(36px, 6vw, 72px);
    bottom: auto;
    transform: translateX(-50%);
    width: min(280px, 58vw);
    height: min(38vh, 300px);
    max-height: min(38vh, 300px);
    opacity: 0.065;
    background-position: center top;
  }

  /* Green feature — center headline + carousel dots / nav on tablet */
  .feature.feature-green {
    padding-bottom: 48px;
  }

  .feature-green .feature-headline {
    text-align: center;
    width: 100%;
  }

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

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

  /* Purple CTA — center copy + handset column on tablet */
  .cta-grid {
    text-align: center;
    justify-items: center;
  }

  .cta-copy {
    align-items: center;
    text-align: center;
  }

  .cta-phone {
    justify-content: center;
  }

  /* Value proposition (headline slab) — less vertical padding on tablet */
  .headline-slab {
    padding: 120px 0;
  }
}

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

/* Mobile responsive */
@media (max-width: 639px) {
  /* Prevent horizontal overflow on mobile */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  /* Navigation */
  .site-header {
    top: 0;
  }
  
  .nav {
    padding: 20px 20px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .brand {
    display: flex;
    align-items: center;
    position: relative;
    width: 152px;
    height: 40px;
  }
  
  .logo {
    position: relative;
  }
  
  .logo-transparent {
    opacity: 1;
    position: absolute;
    top: 0;
    left: 0;
  }
  
  .logo-white {
    opacity: 0;
    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: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    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);
  }
  
  /* Trigger scrolled header style when mobile menu is active */
  .site-header:has(.menu.active) {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  }
  
  .site-header:has(.menu.active) .logo-transparent {
    opacity: 0 !important;
  }
  
  .site-header:has(.menu.active) .logo-white {
    opacity: 1 !important;
  }
  
  .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: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    transition: all 0.4s ease;
  }
  
  .site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  }
  
  .site-header.scrolled .brand {
    color: #333;
  }
  
  .site-header.scrolled .logo-transparent {
    opacity: 0;
  }
  
  .site-header.scrolled .logo-white {
    opacity: 1;
  }
  
  .site-header.scrolled .mobile-menu-toggle {
    color: #3794AA;
  }
  
  .site-header.scrolled .menu a {
    font-size: 20px !important;
    font-weight: 700 !important;
  }
  
  .desktop-menu {
    display: none;
  }
  
  /* Mobile logo alignment */
  .brand {
    position: relative;
  }
  
  .logo {
    position: relative;
  }
  
  .logo-white {
    position: absolute;
    top: 0;
    left: 0;
  }
  
  /* Hero below Meet Lore on mobile so phone + inset shadow sit under the white section */
  .hero {
    padding: 130px 0 0 0;
    overflow: visible;
    max-width: 100vw;
    z-index: 0;
  }

  body.has-banner .hero {
    padding-top: 148px !important;
    padding-bottom: 0 !important;
    z-index: 0;
  }
  
  .hero-grid {
    gap: 0;
    text-align: center;
  }

  /* Stack: text card first, then hero image (overrides max-width:1023px phone-above-text order) */
  .hero-left-column {
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-phone {
    order: 2;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    align-self: stretch;
    position: relative;
    margin-top: -12px;
    /* Pull Meet Lore up; handset tucks under Meet Lore (section stacks above .hero on mobile) */
    margin-bottom: -120px;
    width: 100%;
    overflow: visible;
  }

  /* Inner shadow in front of the handset (inset box-shadow on .hero paints behind children) */
  .hero-phone::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: min(55%, 200px);
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(
      to top,
      rgba(0, 55, 65, 0.22) 0%,
      rgba(0, 55, 65, 0.06) 55%,
      transparent 100%
    );
    box-shadow: inset 0 -10px 24px -4px rgba(0, 55, 65, 0.2);
  }

  .hero .phone-full.phone-hero {
    max-width: min(100%, 300px);
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
    /* Slight overlap into Meet Lore; Meet Lore paints on top on mobile */
    transform: translateY(40px);
  }
  
  .hero-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1000;
    margin-top: 36px;
    margin-bottom: 0;
  }
  
  .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 — no phone screenshot on mobile; tighter bottom */
  .feature {
    padding: 80px 0 56px 0;
    overflow-x: hidden;
    max-width: 100vw;
  }

  .feature.feature-green {
    padding-top: 44px;
    padding-bottom: 56px;
  }
  
  .feature-grid {
    gap: 20px;
  }
  
  .feature-phone {
    display: none;
  }
  
  .feature-list {
    gap: 16px;
  }

  .feature-panels {
    min-height: 260px;
  }

  .feature-panel {
    padding: 16px 18px;
  }

  .feature-chat-quote {
    font-size: 0.98rem;
    margin-bottom: 14px;
  }

  .feature-chat-thread {
    gap: 8px;
  }

  .feature-chat-bubble {
    font-size: 0.9rem;
    padding: 10px 14px;
    border-radius: 10px;
  }

  .feature-chat-msg--lore .feature-chat-bubble {
    border-radius: 10px 10px 10px 0;
  }

  .feature-chat-msg--you .feature-chat-bubble {
    border-radius: 10px 10px 0 10px;
  }

  .feature-chat-msg {
    max-width: 94%;
  }

  .feature-carousel-nav {
    margin-top: 18px;
    gap: 8px;
    justify-content: center;
  }

  .feature-carousel-btn {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }

  .feature-dots {
    gap: 10px;
    justify-content: center;
  }

  /* Feature section: content above, phone below */
  .feature-content {
    order: 1;
  }
  
  .feature-green .feature-headline {
    padding-top: 0 !important;
    text-align: center;
  }
  
  .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: 88px 0 96px 0;
    overflow-x: hidden;
    max-width: 100vw;
  }

  .testimonials::before {
    background-image: none;
  }
  
  
  .testimonials h2 {
    font-size: 1.8rem;
    margin-top: 32px;
    margin-bottom: 16px;
  }
  
  .testimonial-single {
    max-width: 100%;
    margin: 0 auto;
    min-height: 180px;
    height: auto;
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 32px 0;
  }
  
  .testimonial-quote {
    padding: 24px 18px;
    border-radius: 32px;
  }
  
  #testimonial-text {
    font-size: 1.1rem;
    line-height: 1.5;
  }

  .testimonial-intro {
    font-size: 0.72rem;
    margin-bottom: 14px;
    letter-spacing: 0.12em;
  }

  .testimonial-byline {
    font-size: 0.875rem;
    margin-top: 20px;
    color: #888888;
  }
  
  .testimonials-dots {
    gap: 8px;
    justify-content: center;
  }

  .how-it-works {
    padding: 64px 0 72px;
  }

  .how-it-works-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-top: 36px;
    text-align: center;
  }

  .how-it-works-icon {
    margin-left: auto;
    margin-right: auto;
  }

  .how-it-works-lead {
    font-size: 1.05rem;
  }

  .how-it-works-col-title {
    font-size: 1.1rem;
  }

  .in-action {
    padding: 64px 0 72px;
  }

  .in-action-title {
    margin-bottom: 28px;
  }

  .in-action-grid {
    gap: 40px;
  }

  .in-action-shot {
    max-width: 200px;
    margin-bottom: 28px;
  }

  .in-action .in-action-image {
    max-width: 100%;
  }

  .in-action-col-title {
    font-size: 1.1rem;
  }
  
  /* CTA section — don’t set overflow-x:hidden here: it forces overflow-y to compute as auto,
     which creates a second scrollbar on this section. html/body already hide horizontal overflow. */
  .cta {
    padding: 64px 0 0 0;
    max-width: 100%;
    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;
  }
  
  /* Trust Section - stack on mobile */
  .lp-moments {
    padding: 60px 0 64px 0;
  }

  /* Lock watermark: top center on mobile */
  .lp-moments.trust-section::before {
    width: min(200px, 62vw);
    opacity: 0.1;
    left: 50%;
    right: auto;
    top: clamp(12px, 4vw, 28px);
    bottom: auto;
    transform: translateX(-50%);
    background-position: center top;
  }

  .lp-moments-heading {
    font-size: 2.2rem;
    margin-bottom: 12px;
    padding-top: 40px;
  }

  .lp-moments-intro {
    font-size: 1rem;
    padding: 0 16px;
  }

  .lp-moments-list-wrap {
    padding: 0 16px;
    box-sizing: border-box;
  }

  .lp-moments-list {
    gap: 12px;
    width: fit-content;
    max-width: 100%;
  }

  .lp-moment-title {
    font-size: 1.05rem;
  }

  .lp-moment-text {
    font-size: 1rem;
  }

  .headline-slab {
    padding: 88px 0;
    overflow-x: hidden;
    max-width: 100vw;
  }

  .headline-slab .container {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }
  
  .headline-slab h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
  }
  
  .headline-slab .subheadline {
    font-size: 1rem;
  }

  .headline-slab-bubble {
    margin-top: 28px;
    padding: 28px 22px;
    text-align: center;
  }

  .headline-slab-bubble-title {
    font-size: 1.2rem;
  }

  .headline-slab-bubble-body,
  .headline-slab-bubble-emphasis {
    font-size: 1rem;
  }
  
  /* Touch targets */
  .cta-copy .hero-cta,
  .feature-item {
    min-height: 44px;
    min-width: 44px;
  }
  
  section {
    padding: 64px 0;
  }
  
  .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;
  }
  
  /* 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 */
  #contact-modal .modal-content {
    width: calc(100% - 32px);
    padding: 30px 16px;
    margin: 20px 16px;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
    left: 0;
    right: 0;
    position: relative;
  }
}

/* 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: 1000px;
  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: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
}

.person {
  display: none;
  max-width: 1000px;
  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 .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: 1000px;
  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 — Tablet */
@media (max-width: 1023px) and (min-width: 640px) {
  .person {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    justify-items: center;
  }
  
  .person-image img {
    width: 100%;
    max-width: 400px;
  }
  
  .people-carousel {
    text-align: 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;
  }
}

/* People Section — Mobile */
@media (max-width: 639px) {
  .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;
  }
}


