/* Font Declarations */
@font-face {
  font-family: 'Chivo-Black';
  src: url('../fonts/Chivo-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'Bitter-Regular';
  src: url('../fonts/Bitter-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Alegreya-Italic';
  src: url('../fonts/Alegreya-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
}

/* Remove old device styles */
/* .device { ... } */
/* .device-screen { ... } */
/* .device-showcase .device { ... } */
/* .download-device .device { ... } */
/* @media (max-width: 768px) { .device { ... } } */
/* @media (max-width: 768px) { .device-showcase .device { ... } } */
/* @media (max-width: 768px) { .download-device .device { ... } } */

/* Simple Phone Mockup CSS */
.phone-mockup {
  position: relative;
  border: 10px solid #333; /* Frame border */
  border-radius: 40px; /* Rounded corners */
  background-color: #333; /* Frame background */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* Subtle shadow */
  overflow: hidden; /* Hide overflowing screen content */
  padding-top: 20px; /* Space for notch/top bar */
  box-sizing: border-box;
  /* Sizing will be handled per section */
}

.phone-mockup::before { /* Notch */
  content: '';
  position: absolute;
  top: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%; 
  height: 15px; /* Notch height */
  background-color: #333;
  border-radius: 0 0 10px 10px;
  z-index: 2;
}

.phone-screen {
  background-color: #fff; /* Screen background */
  overflow: hidden;
  position: relative;
  z-index: 1;
  /* The image inside will size itself */
}

.phone-screen img {
  display: block; /* Remove extra space below image */
  width: 100%;
  height: auto;
}

/* --- Sizing adjustments per section --- */

/* Removed old device showcase styles */
/* 
.device-showcase .phone-mockup {
  max-width: 200px;
  margin: 0;
}
*/

.download-device .phone-mockup {
  max-width: 250px;
  margin: 0 auto 1rem;
}

/* --- Responsive adjustments --- */

@media (max-width: 768px) {
  /* Right-align feature header images on mobile */
  #features .feature-text .feature-bunny {
    margin-left: auto;
  }
  /* Add rule to hide specific nav items */
  .hide-on-mobile {
    display: none;
  }

  /* Mobile logo adjustments */
  .logo-image {
    height: 35px; /* Slightly smaller on mobile */
  }

  .logo-text {
    font-size: 1.3rem; /* Slightly smaller text on mobile */
  }

  .hero {
    padding: 5rem 1.5rem 4rem;
  }

  .hero-content {
    gap: 1rem; /* match spacing above/below store buttons */
  }

  .hero-title {
    font-size: clamp(2.4rem, 6vw + 1rem, 3.3rem);
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .hero-banner {
    height: auto;
    padding: 0.9rem 1.1rem;
  }

  .hero-banner-item {
    font-size: 0.95rem;
  }

  .hero-logos {
    gap: 0.75rem;
  }

  .hero-logo {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
  }

  .hero-trust-badge {
    width: 100%;
    justify-content: center;
  }

  .hero-quote {
    font-size: 0.85rem !important;
    padding: 0.4rem 0.75rem !important;
  }

  .hero-emoji {
    display: none;
  }
  
  .device-showcase {
     flex-direction: column;
     align-items: center;
   }

  .device-showcase .phone-mockup {
    max-width: 220px;
    margin: 0 auto;
  }

  .download-device .phone-mockup {
    max-width: 200px;
    margin: 0 auto 1rem;
  }

  .testimonial-cards { /* Adjust parent container on mobile */
    padding: 0; /* Remove padding */
    gap: 0; /* Remove gap */
  }

  .testimonial-card {
     flex: 0 0 100%; /* Explicitly set width to 100%, don't shrink/grow */
     scroll-snap-align: start; /* Align to start instead */
     padding: 1.5rem; 
   }

  .quote-marks {
    font-size: 3rem; /* Slightly smaller quote marks on mobile */
    margin-bottom: 0.2rem;
  }

  .quote-text {
    font-size: 0.9rem; /* Slightly smaller quote text on mobile */
    margin-bottom: 1rem; /* Adjust spacing */
  }

  .carousel-btn.prev {
    left: -5px; /* Adjust position for mobile */
  }

  .carousel-btn.next {
    right: -5px; /* Adjust position for mobile */
  }

  .download-screenshots-row .phone-mockup {
    flex-basis: 120px; /* Adjust size further for mobile */
  }

  .testimonial-carousel { /* Add overflow hidden on mobile */
    overflow: hidden;
  }

  .feature-text {
    margin: 0 auto;
  }

  .screenshot-card {
    width: min(100%, 320px);
  }
}

/* Add breakpoint for tablet-like view */
@media (max-width: 1024px) {
  .testimonial-card {
    flex-basis: 45%; /* Show ~2 cards */
  }

  .download-screenshots-row .phone-mockup {
    flex-basis: 140px; /* Adjust size */
  }
}

/* Mobile-only layout refinements (keep desktop unchanged) */
@media (max-width: 768px) {
  /* Center ornaments side-by-side and balance scale */
  .hero-ornament-left,
  .hero-ornament-right {
    left: 50% !important;
    right: auto !important;
    top: 3.9rem !important;
    transform-origin: center;
  }
  .hero-ornament-left {
    /* Slightly reduce inquisitive size on mobile and keep vertical alignment */
    width: clamp(90px, 20vw, 140px) !important;
    /* Even more left */
    transform: translate(-100%, 8px) rotate(-8deg) !important;
    margin-left: -37px !important;
  }
  .hero-ornament-right {
    width: clamp(140px, 32vw, 185px) !important;
    transform: translate(20px, 8px) scaleX(-1) rotate(6deg) !important;
  }

  /* Keep store buttons side-by-side on mobile (reading below both) */
  .hero-app-buttons {
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr 1fr; /* equal widths */
    justify-content: center;
    align-items: center;
    column-gap: 0.8rem !important;
    row-gap: clamp(3rem, 12vw, 6rem) !important; /* much more space between buttons and reading image */
    margin: 1.1rem 0 0; /* keep top spacing, hand off bottom gap to brand belt */
  }
  .hero-app-buttons > * + * { margin-left: 0; }
  .hero-app-buttons > a.store-button { margin: 0; display: inline-flex; }

  /* Wrapper acts as the second grid item */
  .apple-with-reading { display: block; width: 100%; }

  /* Hide desktop-positioned reading in mobile */
  .hero-reading { display: none !important; }

  /* Mobile-specific reading below both buttons */
  .hero-reading-mobile { 
    display: block !important; 
    grid-column: 1 / -1; 
    justify-self: center; 
  }
.hero-reading-mobile img {
    width: clamp(60px, 21vw, 100px); /* about half size on mobile */
    height: auto;
    margin-top: 0; /* grid row gap handles vertical spacing */
  }

  .brand-belt {
    margin-top: 0.6rem; /* slightly tighter space below reading image */
  }

  .hero-app-buttons .store-button,
  .apple-with-reading a.store-button {
    justify-content: center !important;
    display: inline-flex;
    align-self: center;
    text-align: center;
    width: 100% !important; /* fill column */
  }

  /* Equal footprint for badges on mobile */
  .hero-app-buttons .store-button.store-button-image,
  .apple-with-reading a.store-button.store-button-image {
    width: 100% !important;
    height: clamp(44px, 7.2vw, 52px) !important;
  }

  /* Apple badge uses same height on mobile as Google (no override) */

  .hero-app-buttons .store-button.store-button-image .store-badge,
  .apple-with-reading a.store-button.store-button-image .store-badge {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
  }

  /* Equalize badge heights on mobile */
  .hero-app-buttons .store-button.store-button-image .store-badge,
  .apple-with-reading a.store-button.store-button-image .store-badge {
    height: clamp(44px, 7.2vw, 52px);
    width: auto;
  }

  /* Apply same equalized heights globally on mobile */
  .store-button.store-button-image .store-badge {
    height: clamp(44px, 7.2vw, 52px);
    width: auto;
  }

  /* Brand centered on mobile (rely on earlier center rules) */
}

/* --- Feature Rows --- */
.feature-row-container {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 6vw, 5rem);
}

.feature-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.feature-row.feature-row-reverse {
  /* On mobile the row stays stacked; reversal happens at desktop */
}

.feature-image,
.feature-text {
  width: 100%;
}

.feature-image {
  display: flex;
  justify-content: center;
}

.screenshot-card {
  --card-rotate: 0deg;
  --card-radius: 28px;
  width: min(100%, 360px);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.2rem, 2.8vw, 2rem);
  border-radius: var(--card-radius);
  background: var(--card-bg, linear-gradient(180deg, rgba(0,172,193,0.14), rgba(0,172,193,0.06)));
  box-shadow: none;
  transform: rotate(var(--card-rotate));
  transform-origin: center center;
  overflow: hidden; /* keep oversized screenshots neatly inside the square */
}

/* Feature card backgrounds: shades of the hero gradient teal */
.card-1 { --card-bg: linear-gradient(180deg, rgba(0,172,193,0.18), rgba(0,172,193,0.08)); }
.card-2 { --card-bg: linear-gradient(180deg, rgba(0,172,193,0.22), rgba(0,172,193,0.12)); }
.card-3 { --card-bg: linear-gradient(180deg, rgba(0,172,193,0.26), rgba(0,172,193,0.14)); }
.card-4 { --card-bg: linear-gradient(180deg, rgba(0,172,193,0.30), rgba(0,172,193,0.16)); }

.feature-mockup {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* Larger, responsive corner radius for softer edges */
  --screenshot-radius: clamp(18px, 2vw, 24px);
  border-radius: var(--screenshot-radius);
}

/* Subtle bottom fade so screenshots blend into their card backgrounds */
.features .feature-mockup {
  /* Fade the lower portion to transparent so the card's background shows through */
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);
          mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
}

/* Card 1 (AI Insights) overrides */
/* Remove fade from the Keywords image */
.features .mockup-keywords {
  -webkit-mask-image: none;
          mask-image: none;
}

/* Ensure Feedback image has a visible fade (start a bit higher) */
.features .screenshot-card.card-1 .mockup-feedback {
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);
          mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);
}

.feature-mockup.cropped { border-radius: var(--screenshot-radius); }

/* Per-asset fine-tuning of crop to hug visible screenshot edges */
/* Per‑asset tuning: no cropping needed anymore; only corner radius if desired */
.mockup-keywords   { --screenshot-radius: clamp(24px, 2.6vw, 32px); background-color: #ffffff; }
.mockup-challenge  { --screenshot-radius: clamp(24px, 2.6vw, 32px); }
.mockup-streak     { --screenshot-radius: clamp(24px, 2.6vw, 32px); }
.mockup-journals   { --screenshot-radius: clamp(24px, 2.6vw, 32px); }
.mockup-feedback,
.mockup-mindfulness{ }

.screenshot-card.multiple {
  position: relative;
}

.screenshot-card.multiple .screenshot-pair {
  position: relative;
  width: 100%;
  height: 100%;
}

.screenshot-card.multiple .feature-mockup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  max-width: none;
  max-height: none; /* allow oversize for dramatic scale */
}

.screenshot-card.multiple .mockup-left {
  left: 44%;
  transform: translate(-50%, -50%) rotate(-6deg);
  z-index: 2;
}

.screenshot-card.multiple .mockup-right {
  left: 56%;
  transform: translate(-50%, -50%) rotate(6deg);
  z-index: 1;
}

.screenshot-card.card-1 .mockup-left {
  width: 70%;
  left: 36%;
  top: calc(50% - 40px); /* raise 40px */
}

.screenshot-card.card-1 .mockup-right {
  width: 83%; /* +15% vs 72% */
  left: 63%;
  top: calc(50% + 60px); /* previously +100px; raised by 40px */
  max-height: none;
}

/* Card 2 (Challenges): put challenge intro on top and ease overlap */
.screenshot-card.card-2 .mockup-left {  /* mindfulness */
  left: 42%;
  z-index: 1;
}
.screenshot-card.card-2 .mockup-right { /* challenge intro */
  left: 58%;
  z-index: 3;
}

.screenshot-card:not(.multiple) .feature-mockup {
  width: 96%;
  max-width: 96%;
}
.screenshot-card.card-3 .feature-mockup,
.screenshot-card.card-4 .feature-mockup {
  height: 150%;
  width: auto;
  max-height: none;
  max-width: none;
}
.mockup-single-left {
  transform: rotate(-5deg);
}

.mockup-single-right {
  transform: rotate(5deg);
}

.feature-text {
  text-align: left;
  max-width: 32rem;
}

.feature-title {
  font-size: clamp(2.4rem, 4vw, 3.25rem);
  line-height: 1.08;
  color: #0f172a;
  margin-bottom: clamp(1rem, 2vw, 1.75rem);
}

.feature-description {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.7;
  color: #334155;
}

/* Small bunny illustration above each feature title */
.feature-bunny {
  height: 80px;
  width: auto;
  display: block;
  margin-bottom: clamp(0.5rem, 1vw, 0.85rem);
  border-radius: 12px;
  object-fit: contain;
}

/* Utility: right-align a header image within .feature-text */
.feature-bunny.align-right {
  margin-left: auto;
}

/* Temporary hides (per request): Instagram button, Testimonials, Blog, Download */
.mobile-instagram-section,
#testimonial,
#blog,
#download {
  display: none !important;
}

/* Mid-CTA section (below Features, above Video) */
.mid-cta {
  background: #fff;
  padding: clamp(2rem, 4vw, 3rem) 0;
}

/* Reuse hero-style #1 badge for inline headings */
.badge-pill {
  display: inline-block;
  background: linear-gradient(135deg, #fcd34d, #f97316);
  color: #1f2937;
  font-weight: 700;
  padding: 0.1em 0.6em;
  border-radius: 999px;
  font-size: 0.8em; /* scale with the heading */
  line-height: 1.2;
  vertical-align: baseline;
}

/* Generic highlight style (same as hero title) */
.hl {
  display: inline;
  position: relative;
  background-image: linear-gradient(var(--highlight-color), var(--highlight-color));
  background-repeat: no-repeat;
  background-size: 0% 0.9em;
  background-position: 0 55%;
  border-radius: 3px;
  padding: 0 0.18em;
  margin: 0 -0.08em;
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

@keyframes hlSweep { /* reuse animation for non-hero contexts */
  0%   { background-size: 0% 0.9em; }
  60%  { background-size: 100% 0.9em; }
  100% { background-size: 100% 0.9em; }
}

.hl-animate { animation: hlSweep 1100ms cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.hl-delay-1 { animation-delay: 0.1s; }
.hl-delay-2 { animation-delay: 0.35s; }

@media (min-width: 768px) {
  .feature-text {
    max-width: 36rem;
  }
}

@media (min-width: 992px) {
  .feature-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: clamp(3rem, 6vw, 5rem);
  }

  .feature-row.feature-row-reverse {
    flex-direction: row-reverse;
  }

  .feature-image,
  .feature-text {
    flex: 0 1 45%;
    max-width: none;
  }

  .feature-text {
    text-align: left;
  }

  .screenshot-card {
    width: min(40vw, 580px);
    max-width: none;
  }
  /* Make single-image cards (streak, journals) ~50% bigger inside on desktop */
  .screenshot-card.card-3 .feature-mockup,
  .screenshot-card.card-4 .feature-mockup {
    height: 150%;
    width: auto;
    max-height: none;
    max-width: none;
  }
}

/* Testimonial Section */
.testimonial-card {
  .download-screenshots-row .phone-mockup {
    max-width: 220px; /* Adjust screenshot size in row on mobile */
  }

  .testimonial-carousel { /* Add overflow hidden on mobile */
    overflow: hidden;
  }

  .download-screenshots-row .phone-mockup {
    max-width: 240px; /* Adjust screenshot size in row on tablet */
  }
}

/* Correcting the potentially misplaced rules - these seem related to responsive adjustments */
@media (max-width: 768px) {
  .download-screenshots-row .phone-mockup {
     /* This rule was likely intended for the mobile media query */
     /* Original value was max-width: 220px; Let's keep flex-basis: 120px from above */
     /* flex-basis: 120px; <-- Already defined above */
  }
  .testimonial-carousel { 
    /* Already defined above */
    /* overflow: hidden; */
  }
}

@media (max-width: 1024px) {
   .download-screenshots-row .phone-mockup {
     /* This rule was likely intended for the tablet media query */
     /* Original value was max-width: 240px; Let's keep flex-basis: 140px from above */
     /* flex-basis: 140px; <-- Already defined above */
  }
}

/* Original image styling (still no longer used) */

:root {
  --primary-color: #00ACC1;
  --background-color: #F9FAFB;
  --text-color: #333333;
  --light-gray: #E0E0E0;
  --white: #FFFFFF;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --border-radius: 12px;
  --highlight-color: #008B8B; /* requested highlight color */
  /* Stronger blue for navbar only */
  --nav-gradient: linear-gradient(180deg,
    rgba(0, 172, 193, 0.32) 0%,
    rgba(0, 172, 193, 0.24) 100%
  );
  /* Lighter blue wash for hero (top slightly blue, fades to white) */
  --hero-gradient: linear-gradient(180deg,
    rgba(0, 172, 193, 0.16) 0%,
    rgba(0, 172, 193, 0.12) 18%,
    rgba(0, 172, 193, 0.08) 40%,
    rgba(0, 172, 193, 0.04) 68%,
    rgba(0, 172, 193, 0.02) 84%,
    #ffffff 100%
  );
}

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

body {
  font-family: 'Bitter-Regular', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header */
header {
  /* Navbar should read clearly blue */
  background: var(--nav-gradient);
  background-color: rgba(0, 172, 193, 0.28); /* Fallback */
  box-shadow: none;
  border-bottom: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1rem 0; /* Restored vertical padding */
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem; /* Space between logo image and text */
}

.logo-image {
  height: 40px; /* Adjust height as needed */
  width: auto;
  border-radius: 8px; /* Slight rounding to soften edges */
  transition: transform 0.3s ease;
}

.logo-image:hover {
  transform: scale(1.05); /* Subtle hover effect */
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: #000;
  font-family: 'Chivo-Black', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 900;
}

nav ul {
  display: flex;
  list-style: none;
  align-items: center; /* Center all nav items vertically */
}

nav ul li {
  margin-left: 1.5rem;
  display: flex;
  align-items: center; /* Center individual nav items */
}

nav ul li a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: var(--primary-color);
}

/* Instagram Icon Styling */
.instagram-link {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.instagram-icon {
  height: 36px;
  width: 36px;
  transition: transform 0.3s ease;
}

.instagram-link:hover .instagram-icon {
  transform: scale(1.1);
}

.instagram-link:hover {
  opacity: 0.8;
}

/* Hero Section */
.hero {
  position: relative;
  padding: clamp(10rem, 18vw, 16rem) 0 clamp(1.4rem, 4vw, 2rem);
  background: var(--hero-gradient);
  overflow: hidden;
}

/* Further lighten the backdrop around the title zone */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 50% at 50% 22%,
    rgba(255,255,255,0.65) 0%,
    rgba(255,255,255,0.0) 60%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  max-width: 1200px; /* widen content area */
  margin: 0 auto;
}

/* Top logo bar that floats inside hero (replaces navbar) */
.hero-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 0;
  z-index: 2; /* above ornaments and hero content */
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.4rem;
  position: relative;
  z-index: 1; /* ensure text sits above ornaments */
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-badge::before {
  content: "#1";
  display: inline-block;
  background: linear-gradient(135deg, #fcd34d, #f97316);
  color: #1f2937;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.hero-title {
  font-size: clamp(2.8rem, 4vw + 1.2rem, 4.6rem);
  line-height: 1.08;
  color: #0f172a;
  max-width: 28ch; /* much wider title line length */
  word-break: normal;
  overflow-wrap: normal;
  hyphens: manual;
  /* Thin black underline for the main title */
  text-decoration-line: underline;
  text-decoration-color: #000;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  text-decoration-skip-ink: auto;
}

.hero-title span {
  display: block;
}

/* Animated marker highlight for key words in the hero title */
.hero-title .hl {
  display: inline;
  position: relative;
  background-image: linear-gradient(var(--highlight-color), var(--highlight-color));
  background-repeat: no-repeat;
  background-size: 0% 0.9em;        /* taller band to fully cover word */
  background-position: 0 55%;       /* center the band vertically */
  border-radius: 3px;               /* slightly rounder edges */
  padding: 0 0.18em;                /* extra width for highlight sweep */
  margin: 0 -0.08em;                /* counter padding to keep word spacing tight */
  color: #ffffff;                   /* white text over highlight */
  text-shadow: 0 1px 0 rgba(0,0,0,0.08); /* subtle contrast boost */
}

@keyframes hlSweep {
  0%   { background-size: 0% 0.9em; }
  60%  { background-size: 100% 0.9em; }
  100% { background-size: 100% 0.9em; }
}

.hero-title .hl-animate {
  animation: hlSweep 1100ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-title .hl-delay-1 { animation-delay: 0.1s; }
.hero-title .hl-delay-2 { animation-delay: 0.35s; }

/* Hero title responsive line-break control
   Default (mobile-first):
   - Line 1: seg1
   - Line 2: seg2 + seg3
   - Line 3: seg4
   Desktop/tablet: now matches mobile (3 lines)
*/
.hero-title .seg { display: inline; }
.hero-title .seg1  { white-space: nowrap; }
.hero-title .seg23 { white-space: nowrap; }
.hero-title .seg4  { white-space: nowrap; }
.hero-title .seg1::after { content: ""; display: block; }
.hero-title .seg23::after { content: ""; display: block; }

/* Removed previous desktop override so desktop keeps
   the same 3-line segmentation as mobile. */

/* Ensure mobile font-size is smaller and allow full width
   so the intended 3-line layout holds on narrow screens. */
@media (max-width: 768px) {
  .hero {
    padding-top: 14rem; /* bring hero content up on mobile */
  }
  .hero-ornament { top: 10rem; }
  /* Raise both ornaments an additional ~30px on mobile */
  .hero-ornament-left { top: 3.125rem; }
  .hero-ornament-right { top: 3.125rem; }
  /* Center brand at the very top on mobile */
  .hero-topbar { display: flex; justify-content: center; }
  .hero-topbar .container { display: flex; justify-content: center; align-items: center; }
  .hero-title {
    font-size: clamp(2.2rem, 8.2vw + 0.2rem, 2.7rem);
    max-width: 100%;
    letter-spacing: -0.012em;
    line-height: 1.06;
    word-spacing: -0.02em;
    /* Keep vertical tuning only */
    transform: scaleY(1.06);
    transform-origin: 50% 0%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
    /* No text-indent; we shift only the first line span */
    text-indent: 0;
  }

  /* Move ONLY the first line left on mobile */
  .hero-title .seg1 {
    display: inline-block;
    transform: translateX(-16px);
    padding-right: 0;
    /* Restore underline for first line after shifting */
    text-decoration-line: underline;
    text-decoration-color: #000;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
    text-decoration-skip-ink: auto;
  }
}

/* Make the desktop hero title huge */
@media (min-width: 1024px) {
  .hero-title {
    /* Cap max to 130px (8.125rem) to avoid overlap */
    font-size: clamp(6rem, 7.8vw + 0.2rem, 8.125rem);
    line-height: 1.14; /* add more breathing room between lines */
    letter-spacing: -0.01em;
  }
}

.hero-subtitle {
  font-size: clamp(1.1rem, 1vw + 0.95rem, 1.35rem);
  line-height: 1.7;
  color: #1f2937;
  max-width: 72ch; /* much wider subtitle */
}

/* Hero decorative images */
.hero-ornament {
  position: absolute;
  top: clamp(8rem, 12vw, 12rem); /* drop ornaments lower to clear logo */
  width: clamp(110px, 14vw, 190px);
  height: auto;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 16px 28px rgba(15,23,42,0.15));
}

.hero-ornament-left {
  left: max(2%, calc(50% - 720px)); /* anchor near left edge of content */
  width: clamp(77px, 9.8vw, 133px); /* inquisitive illustration scaled down ~30% */
  transform: rotate(-8deg);
}

.hero-ornament-right {
  right: max(2%, calc(50% - 720px));
  transform: scaleX(-1) rotate(6deg); /* mirror bunny brain */
}

.hero-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 2.9rem;
  padding: 0 1.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.78);
  width: min(100%, 680px);
}

.hero-banner-item {
  position: absolute;
  opacity: 0;
  transform: translateY(16px);
  font-weight: 600;
  font-size: 1.05rem;
  color: #0f172a;
  letter-spacing: 0.01em;
  line-height: 1.45;
  text-align: center;
  padding: 0 0.5rem;
  animation: heroBannerFade 16s linear infinite;
}

.hero-banner-item:nth-child(2) {
  animation-delay: 4s;
}

.hero-banner-item:nth-child(3) {
  animation-delay: 8s;
}

.hero-banner-item:nth-child(4) {
  animation-delay: 12s;
}

@keyframes heroBannerFade {
  0%, 12% {
    opacity: 0;
    transform: translateY(18px);
  }
  12%, 24% {
    opacity: 1;
    transform: translateY(0);
  }
  30%, 100% {
    opacity: 0;
    transform: translateY(-14px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-banner {
    height: auto;
  }

  .hero-banner-item {
    position: static;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    display: none;
  }

  .hero-banner-item:first-child {
    display: block;
  }
}

/* Allow forcing animation when reduced motion is enabled (e.g., for demos) */
@media (prefers-reduced-motion: reduce) {
  body.force-anim .hero-banner {
    height: 2.9rem;
  }
  body.force-anim .hero-banner-item {
    position: absolute;
    display: block;
    opacity: 0;
    transform: translateY(16px);
    animation: heroBannerFade 16s linear infinite !important;
  }
}

.hero-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  width: min(100%, 760px);
  margin: 0.75rem auto 0;
}

.hero-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.7);
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.hero-logo-reddit {
  font-family: 'Chivo-Black', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-transform: lowercase;
  letter-spacing: 0.03em;
}

.hero-logo-google {
  color: #1d4ed8;
}

.hero-logo-meta {
  color: #2563eb;
}

.hero-logo-x {
  color: #0f172a;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.hero-logo-ucalgary,
.hero-logo-sait {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.hero-logo-ucalgary {
  text-transform: none;
}

.hero-logo-sait {
  letter-spacing: 0.22em;
}

.hero-app-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 2rem 0; /* symmetric spacing above and below */
}

.hero-app-buttons > * + * {
  margin-left: 1rem;
}

.apple-with-reading { position: relative; display: inline-flex; align-items: center; }

.hero-reading { position: absolute; left: calc(100% + 20px); top: 50%; transform: translateY(-50%); }

.hero-reading img {
  width: clamp(75px, 10vw, 130px);
  height: auto;
  filter: drop-shadow(0 16px 28px rgba(15, 23, 42, 0.15));
}

.hero-trust-badge {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.3);
  font-weight: 600;
  color: #0f172a;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

.hero-trust-icon {
  font-size: 1.15rem;
  color: #22c55e;
}

.hero-testimonial-quote {
  margin-top: 1.5rem;
  text-align: center;
}

.hero-quote {
  background: rgba(241, 251, 253, 0.85);
  color: #05505a;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid #baeef5;
  margin: 0 auto;
  display: inline-block;
  font-family: 'Alegreya-Italic', serif;
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.5;
  max-width: 520px;
  text-align: center;
}

/* Emojis removed */

.hero-quote:hover {
  transform: none;
  box-shadow: none;
}

.hero-quote::before,
.hero-quote::after {
  display: none;
}

/* Brand belt under banner */
.brand-belt {
  margin-top: 0.45rem;
  text-align: center;
}

/* Quote banner under companies strip */
.quote-banner { margin-top: 0.45rem; }

/* Match gaps: mobile uses same as brand-belt top margin (1.1rem) */
@media (max-width: 768px) {
  .quote-banner { margin-top: 0.28rem; }
}

/* Match gaps: desktop equals space above brand-belt from buttons */
@media (min-width: 769px) {
  .quote-banner { margin-top: clamp(1.1rem, 2.7vw, 2.2rem); }
}

.quote-banner-bleed {
  position: relative;
  border-radius: 18px; /* contained on mobile */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1000px) {
  .quote-banner-bleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
  }

  .quote-banner-inner {
    width: 100%;
  }

  .quote-banner-img {
    width: 100%;
    max-width: none;
    border-radius: 0;
  }
}

/* No overlay — image contains the quote */

.quote-banner-inner {
  position: relative;
  margin: 0 auto;
  padding: 0;
}

/* Fixed-width banner image */

.quote-banner-img {
  display: none;
}

/* Make the banner full-bleed on larger screens */
/* No full-bleed on desktop; keep fixed width centered */

/* Benefits: Journaling for Self‑Improvement */
.benefits {
  background: #ffffff; /* seamless with hero fade */
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(1.2rem, 3vw, 1.8rem);
  margin: 0;
}

.benefits-card {
  position: relative;
  background: var(--hero-gradient);
  border-radius: 28px;
  padding: clamp(1.6rem, 3vw + 1rem, 3rem) clamp(1rem, 3vw, 2.2rem);
  box-shadow: 0 30px 50px rgba(15, 23, 42, 0.10);
  overflow: hidden;
}

.benefits-title {
  font-family: 'Chivo-Regular', 'Chivo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 500;
  font-size: clamp(2.8rem, 3.5vw + 1.3rem, 4.2rem);
  line-height: 1.05;
  text-align: center;
  color: #0f172a;
  margin-bottom: clamp(1.4rem, 2.5vw, 2.8rem);
}

@media (max-width: 640px) {
  .benefits-title {
    font-size: clamp(1.1rem, 5vw + 0.3rem, 1.9rem);
    margin-bottom: clamp(0.7rem, 5vw, 1.4rem);
  }

  .benefits-subtitle {
    margin-bottom: clamp(0.65rem, 4.4vw, 1.2rem);
  }

  .benefits-stats {
    margin-top: clamp(0.9rem, 5vw, 1.8rem);
  }
}

.benefits-subtitle {
  margin-top: 0;
  margin-bottom: clamp(1rem, 2.2vw, 2.2rem);
  text-align: center;
  font-size: 0.95rem;
  color: #475569;
}

.benefits-link {
  color: #0f172a;
  text-underline-offset: 0.12em;
}

.benefits-stats {
  margin-top: clamp(1.8rem, 3vw, 3rem);
  display: flex;
  gap: clamp(0.8rem, 1.8vw, 1.2rem);
  justify-content: center;
  flex-wrap: wrap;
}

.benefit-tile {
  background: #fff;
  border-radius: 22px;
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  min-width: 260px;
  max-width: 320px;
}

.benefit-icon {
  width: 92px;
  height: 92px;
  flex: 0 0 92px;
  min-width: 92px;
  min-height: 92px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: radial-gradient( 60% 60% at 40% 35%, rgba(0,0,0,0.04), transparent ), #f3f4f6;
  font-size: 1.35rem;
}

.benefit-icon img { width: 72%; height: 72%; object-fit: contain; display: block; }

.benefit-copy {
  display: grid;
  gap: 0.1rem;
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.stat-value {
  font-weight: 800;
  font-size: 1.35rem;
  color: #0f172a;
}

.stat-trend.up { color: #16a34a; font-weight: 700; }
.stat-trend.down { color: #ef4444; font-weight: 700; }

.stat-label {
  color: #334155;
  font-weight: 600;
  font-size: 0.95rem;
}

.tilt-1 { transform: rotate(-4deg); }
.tilt-2 { transform: rotate(3deg); }
.tilt-3 { transform: rotate(-2deg); }

@media (max-width: 768px) {
  .benefits { padding-top: 1.5rem; margin-top: 0; }
  .benefits .container { width: 100%; padding-left: 0; padding-right: 0; }
  .benefits-card { width: min(90vw, 680px); margin-left: auto; margin-right: auto; }
  .benefits-card { border-radius: 22px; }
  .benefit-tile { min-width: 100%; transform: none !important; }
  .benefits-stats { gap: 0.8rem; }
}

.brand-caption {
  color: #94a3b8; /* gray-400 */
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

/* Scrolling logo belt */
.brand-marquee {
  position: relative;
  overflow: hidden;
  padding: 6px 0;
  width: min(60%, 1000px); /* 60% width and centered */
  margin: 0 auto;
  min-height: clamp(80px, 11.25vw, 170px);
  /* Edge fade with fallback */
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

@supports not (mask-image: linear-gradient(black, white)) {
  .brand-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

.brand-track {
  display: flex;
  width: max-content; /* shrink-wrap for infinite scroll */
  min-width: 100%; /* ensure visible even before images fully load */
  will-change: transform;
  animation: brandScroll 36s linear infinite;
  animation-delay: 0s; /* avoid rare initial paint hiccups */
}

.brand-sequence {
  display: flex;
  align-items: center;
  gap: clamp(1.8rem, 4vw, 3.2rem);
}

/* Companies strip variant: duplicate triplet and scroll by exactly 1/3 width for perfect seam */
.companies-track {
  animation: brandScroll3 108s linear infinite; /* 3x slower */
  animation-delay: 0s;
}

.companies-strip {
  display: block;
  height: clamp(100px, 13vw, 170px);
  flex: 0 0 auto;
  /* Subtle greyscale to match style, in case SVG colors vary */
  filter: grayscale(1) contrast(0.9) brightness(0.9);
}

@keyframes brandScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* exactly one sequence width */
}

@keyframes brandScroll3 {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-33.333333%); }
}

.brand-row-logos .brand-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-icon {
  height: clamp(28px, 4.2vw, 44px); /* bigger logos */
  opacity: 0.78;
  filter: grayscale(1);
}

.brand-label {
  color: #9ca3af;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-logo { /* legacy selector */
  height: clamp(22px, 3vw, 34px);
  opacity: 0.7;
  filter: grayscale(1);
}

/* New selector used by current markup */
.brand-icon {
  height: clamp(22px, 3vw, 34px);
  opacity: 0.7; /* soften to light grey */
  filter: grayscale(1);
}

.brand-logo-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 10px;
  color: #9ca3af; /* gray-400 */
  font-weight: 800;
  letter-spacing: 0.06em;
  border: 1px dashed rgba(148,163,184,0.35);
  border-radius: 999px;
  user-select: none;
}

.brand-legal {
  display: none;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .brand-track { animation: none; }
}

/* Responsive: allow full width on small screens */
@media (max-width: 768px) {
  .brand-marquee { width: 90%; }
}

/* Desktop: add much more space below the app buttons */
@media (min-width: 769px) {
  .hero-app-buttons { 
    margin-bottom: clamp(4rem, 8vw, 8rem); /* push banners further down */
  }
}

/* Heading Styles */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Chivo-Black', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 900;
}

.logo {
  font-family: 'Chivo-Black', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 900;
}

/* Store Button Styles */
.app-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.store-button {
  display: inline-flex; /* Use flex for alignment */
  align-items: center;
  padding: 0.5rem 1.2rem;
  background-color: #000; /* Black background like official buttons */
  color: #fff; /* White text */
  text-decoration: none;
  border-radius: 8px; /* Slightly rounded corners */
  font-family: inherit;
  transition: background-color 0.3s;
  width: 195px; /* Fixed width for perfect consistency */
  justify-content: flex-start; /* Align content to left within button */
}

/* Image-based store buttons override (used with official SVG badges) */
.store-button.store-button-image {
  background: transparent;
  padding: 0;
  border-radius: 0;
  width: 200px;  /* equal clickable width on desktop */
  height: 56px;  /* equal clickable height on desktop */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible; /* allow slight internal scaling without clipping */
}

/* Apple badge: same dimensions as Google on desktop (no override) */
.store-button.store-button-image[href*="apps.apple.com"] { width: 200px; height: 56px; }

.store-button.store-button-image .store-badge {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain; /* preserve aspect while filling box */
}

/* Slightly upscale Apple badge to match visual weight */
.store-button.store-button-image[href*="apps.apple.com"] .store-badge {
  transform: scale(1.03);
  transform-origin: center;
}

.store-button:hover {
  background-color: #333; /* Darken slightly on hover */
}

.store-button i {
  font-size: 1.8rem; /* Icon size */
  margin-right: 0.8rem;
}

.store-button div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.store-button div span:first-child {
  font-size: 0.7rem; /* Smaller top text */
  text-transform: uppercase;
}

.store-button div span:last-child {
  font-size: 1.1rem; /* Larger bottom text */
  font-weight: 600;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 172, 193, 0.4);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.features {
  padding: 4rem 0;
  background-color: var(--white);
}

/* Device Showcase */
.device-showcase {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 3rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--text-color);
  max-width: 600px;
  margin: 0 auto;
  margin-bottom: 1.5rem; /* Added space below the paragraph */
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  overflow: auto;
  padding: 1rem;
}

.feature-card p {
  color: #666;
}

/* Video Section */

.video-section {
  padding: clamp(1.4rem, 3.5vw, 2.2rem) 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(18rem, 45vw, 24rem);
}

.video-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.6rem, 2vw, 1.4rem);
  background: linear-gradient(135deg, var(--highlight-color) 0%, rgba(0, 139, 139, 0.82) 35%, rgba(0, 172, 193, 0.35) 70%, rgba(255, 255, 255, 0.95) 100%);
  border-radius: 28px;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.15);
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  max-width: 960px;
  width: min(92%, 960px);
}

.video-section .section-title {
  display: none;
}

  .video-container {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

.video-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

/* Responsive Video Display */
/* Show desktop video by default, hide mobile video */
.desktop-video {
  display: block;
}

.mobile-video {
  display: none;
  /* Vertical aspect ratio for YouTube Shorts */
  padding-bottom: 177.78%; /* 9:16 Aspect Ratio (16/9 = 1.78, so 1/1.78 = 0.56, but for portrait it's 9/16 = 0.5625, so 100/0.5625 = 177.78%) */
  max-width: 400px; /* Limit width so it doesn't get too wide on larger mobile screens */
}

/* Mobile responsive for video */
@media (max-width: 768px) {
  .video-container {
    max-width: 90%;
    border-radius: 15px;
  }
  
  .video-container iframe {
    border-radius: 15px;
  }
  
  /* Hide desktop video, show mobile video on mobile */
  .desktop-video {
    display: none;
  }
  
  .mobile-video {
    display: block;
  }
}

/* Mobile Instagram Section */
.mobile-instagram-section {
  display: none; /* Hidden by default on desktop */
  padding: 2rem 0;
  background-color: var(--background-color);
}

/* Hide mobile-only reading image on desktop */
.hero-reading-mobile { display: none; }

.mobile-instagram-container {
  text-align: center;
}

.mobile-instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: #000000;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  font-weight: 600;
  border: 2px solid #000000;
}

.mobile-instagram-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
  background-color: #ffffff;
  color: #000000;
}

.mobile-instagram-icon {
  height: 32px;
  width: 32px;
  filter: brightness(0) invert(1); /* Makes icon white */
  transition: filter 0.3s ease;
}

.mobile-instagram-link:hover .mobile-instagram-icon {
  filter: brightness(0) invert(0); /* Makes icon black on hover */
}

.mobile-instagram-text {
  font-size: 1.1rem;
}

/* Show mobile Instagram section only on mobile */
@media (max-width: 768px) {
  .mobile-instagram-section {
    display: block;
  }
}

/* Testimonial Section - Swiper Layout */
.testimonial {
  padding: 4rem 0;
  background-color: var(--background-color);
}

.testimonial .section-title {
  margin-bottom: 2rem; 
}

/* Swiper specific styles */
.swiper-container {
  width: 100%;
  padding: 10px 0 40px; /* Add padding bottom for potential pagination/scrollbar */
  overflow: hidden; /* Swiper handles overflow */
}

.swiper-slide {
  height: auto; /* Allow slides to size based on content */
  display: flex; /* Ensure card inside takes full height */
  align-items: stretch;
}

.testimonial-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  width: 100%; /* Make card fill the slide */
  min-height: 280px; /* Re-add min-height */
}

.quote-marks {
  font-size: 4rem;
  color: var(--light-gray);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.quote-text {
  font-family: 'Alegreya-Italic', serif;
  font-size: 1.1rem;
  color: var(--text-color);
  line-height: 1.6;
  flex-grow: 1; /* Allow text to take available space */
  margin-bottom: 1.5rem;
  font-style: italic;
}

.author-info {
  display: flex;
  align-items: center;
  margin-top: auto; /* Push to bottom */
}

.author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
  object-fit: cover;
}

.author-name {
  display: block;
  font-weight: bold;
  color: var(--text-color);
}

.author-location {
  display: block;
  font-size: 0.9rem;
  color: #666;
}

/* Style Swiper Navigation Arrows (Scoped) */
.testimonial-carousel .swiper-button-prev, 
.testimonial-carousel .swiper-button-next {
  color: var(--primary-color); /* Use theme color */
  top: auto; /* Reset default top */
  bottom: 0; /* Position at bottom */
  height: 20px; /* Adjust size */
}
.testimonial-carousel .swiper-button-prev {
  left: calc(50% - 30px); /* Position left of center */
}
.testimonial-carousel .swiper-button-next {
  right: calc(50% - 30px); /* Position right of center */
}

.testimonial-carousel .swiper-button-prev::after,
.testimonial-carousel .swiper-button-next::after {
  font-size: 1.5rem; /* Adjust arrow size */
}

/* Blog Section */
.blog {
  padding: 4rem 0;
  background-color: var(--background-color);
}

.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.blog-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.blog-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: 1.5rem;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.blog-category {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-date {
  color: #666;
  font-weight: 500;
}

.blog-content h3 {
  margin-bottom: 1rem;
  line-height: 1.4;
}

.blog-content h3 a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
}

.blog-content h3 a:hover {
  color: var(--primary-color);
}

.blog-content h3 a:visited {
  color: var(--text-color);
}

.blog-content h3 a:active {
  color: var(--text-color);
}

/* Also fix the h2 links on the main blog page */
.blog-content h2 a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
}

.blog-content h2 a:hover {
  color: var(--primary-color);
}

.blog-content h2 a:visited {
  color: var(--text-color);
}

.blog-content h2 a:active {
  color: var(--text-color);
}

.blog-content p {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s;
}

.read-more:hover {
  gap: 0.75rem;
}

.blog-cta {
  text-align: center;
}

/* Blog Page Styles */
.blog-header {
  padding: 3rem 0;
  background-color: var(--white);
  text-align: center;
}

.blog-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  padding: 4rem 0;
}

.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.pagination-btn {
  padding: 0.5rem 1rem;
  background-color: var(--white);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 5px;
  border: 1px solid var(--light-gray);
  transition: all 0.3s;
}

.pagination-btn:hover,
.pagination-btn.active {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

/* Blog Post Styles */
.blog-post-header {
  padding: 3rem 0;
  background-color: var(--white);
}

.blog-post-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #666;
}

.blog-post-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.blog-post-excerpt {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
}

.blog-post-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin: 2rem 0;
}

.blog-post-content {
  padding: 2rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.blog-post-content h2 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
  color: var(--text-color);
}

.blog-post-content h3 {
  font-size: 1.4rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--text-color);
}

.blog-post-content p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.blog-post-content ul,
.blog-post-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.blog-post-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.blog-post-content blockquote {
  background-color: var(--background-color);
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  margin: 2rem 0;
  font-family: 'Alegreya-Italic', serif;
  font-style: italic;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 2rem;
  transition: gap 0.3s;
}

.back-to-blog:hover {
  gap: 0.75rem;
}

.related-posts {
  background-color: var(--background-color);
  padding: 3rem 0;
}

.related-posts .blog-preview-grid {
  margin-bottom: 0;
}

/* Responsive Blog Styles */
@media (max-width: 768px) {
  .blog-preview-grid,
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .blog-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .blog-post-title {
    font-size: 2rem;
  }
  
  .blog-post-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .blog-post-content {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 13rem 1.1rem 4.2rem; /* bring hero content up on small phones */
  }
  .hero-ornament { top: 12rem; }
  /* On very small screens, place both ornaments side-by-side and centered */
  .hero-ornament-left,
  .hero-ornament-right {
    left: 50% !important;
    right: auto !important;
    top: 4.5rem !important; /* aligned vertically */
    transform-origin: center;
  }
  .hero-ornament-left {
    /* Nudge smaller on very small phones to balance with mad */
    width: clamp(92px, 22vw, 140px) !important;
    /* Even more left on very small phones */
    transform: translate(calc(-100% - 42px), 10px) rotate(-8deg) !important;
  }
  .hero-ornament-right {
    width: clamp(150px, 40vw, 195px) !important;
    /* shift to the right of center and drop slightly */
    transform: translate(18px, 10px) scaleX(-1) rotate(6deg) !important;
  }

  .hero-badge {
    font-size: 0.8rem;
    padding: 0.35rem 0.9rem;
  }

  .hero-badge::before {
    font-size: 0.72rem;
    padding: 0.18rem 0.45rem;
  }

  .hero-title {
    font-size: clamp(2rem, 8.5vw + 0.2rem, 2.4rem);
    max-width: 100%;
    letter-spacing: -0.014em;
    line-height: 1.06;
    word-spacing: -0.02em;
    transform: scaleY(1.08);
    transform-origin: 50% 0%;
  }

  .hero-ornament {
    width: clamp(90px, 28vw, 150px);
    opacity: 0.9;
  }

  .hero-subtitle {
    font-size: 0.98rem;
  }

  .hero-logos {
    gap: 0.6rem;
  }

  .hero-logo {
    width: 100%;
    max-width: 240px;
  }

  .hero-trust-badge {
    font-size: 0.95rem;
    padding: 0.55rem 1rem;
  }
}

/* Safety net for very narrow devices */
@media (max-width: 360px) {
  .hero-title {
    font-size: clamp(1.85rem, 7.2vw + 0.2rem, 2.15rem);
    letter-spacing: -0.016em;
    transform: scaleY(1.08);
    transform-origin: 50% 0%;
  }
}

/* Download Section */
.download {
  padding: 4rem 0;
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
}

.download h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.download p {
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.download-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%; /* Ensure content takes full width */
}

.download-screenshots-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem; /* Add padding for spacing */
  margin-bottom: 2rem; /* Space before buttons */
  width: 100%; /* Take full width */
  justify-content: center; /* Center items if they don't overflow */
  
  /* Optional: Hide scrollbar (like testimonials) */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.download-screenshots-row::-webkit-scrollbar { 
  display: none;
}

/* Styling for phone mockups within the download row */
.download-screenshots-row .phone-mockup {
  flex: 0 0 150px; /* Set a fixed base width, adjust as needed */
  /* Remove max-width if using fixed flex-basis */
}

.app-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.store-button {
  display: inline-flex; /* Use flex for alignment */
  align-items: center;
  padding: 0.5rem 1.2rem;
  background-color: #000; /* Black background like official buttons */
  color: #fff; /* White text */
  text-decoration: none;
  border-radius: 8px; /* Slightly rounded corners */
  font-family: inherit;
  transition: background-color 0.3s;
  width: 195px; /* Fixed width for perfect consistency */
  justify-content: flex-start; /* Align content to left within button */
}

/* Image-based store buttons override (used with official SVG badges) */
.store-button.store-button-image {
  background: transparent;
  padding: 0;
  border-radius: 0;
  width: 200px;  /* equal clickable width on desktop */
  height: 56px;  /* equal clickable height on desktop */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible; /* allow tiny internal scaling without clipping */
}

/* Apple badge: same dimensions as Google on desktop (no override) */
.store-button.store-button-image[href*="apps.apple.com"] { width: 200px; height: 56px; }

.store-button.store-button-image .store-badge {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain; /* preserve aspect while filling box */
}

.store-button:hover {
  background-color: #333; /* Darken slightly on hover */
}

.store-button i {
  font-size: 1.8rem; /* Icon size */
  margin-right: 0.8rem;
}

.store-button div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.store-button div span:first-child {
  font-size: 0.7rem; /* Smaller top text */
  text-transform: uppercase;
}

.store-button div span:last-child {
  font-size: 1.1rem; /* Larger bottom text */
  font-weight: 600;
}

/* Footer */
footer {
  background-color: #333;
  color: var(--white);
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links {
  list-style: none;
  display: flex;
}

.footer-links li {
  margin-left: 1.5rem;
}

.footer-links li a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links li a:hover {
  color: var(--primary-color);
}

/* Privacy Policy Page */
.privacy-content {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin: 2rem 0;
}

.privacy-content h2 {
  margin: 2rem 0 1rem;
  color: var(--text-color);
}

.privacy-content h2:first-child {
  margin-top: 0;
}

.privacy-content p {
  margin-bottom: 1rem;
}

.privacy-content ul {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .device-showcase {
     flex-direction: column;
     align-items: center;
   }

  .device-showcase .phone-mockup {
    max-width: 220px;
    margin: 0 auto;
  }

  .download-device .phone-mockup {
    max-width: 200px;
    margin: 0 auto 1rem;
  }

  .testimonial-cards { /* Adjust parent container on mobile */
    padding: 0; /* Remove padding */
    gap: 0; /* Remove gap */
  }

  .testimonial-card {
     flex: 0 0 100%; /* Explicitly set width to 100%, don't shrink/grow */
     scroll-snap-align: start; /* Align to start instead */
     padding: 1.5rem; 
   }

  .quote-marks {
    font-size: 3rem; /* Slightly smaller quote marks on mobile */
    margin-bottom: 0.2rem;
  }

  .quote-text {
    font-size: 0.9rem; /* Slightly smaller quote text on mobile */
    margin-bottom: 1rem; /* Adjust spacing */
  }

  .carousel-btn.prev {
    left: -5px; /* Adjust position for mobile */
  }

  .carousel-btn.next {
    right: -5px; /* Adjust position for mobile */
  }

  .download-screenshots-row .phone-mockup {
    flex-basis: 120px; /* Adjust size further for mobile */
  }

  .testimonial-carousel { /* Add overflow hidden on mobile */
    overflow: hidden;
  }

  .feature-text {
    margin: 0 auto;
  }

  .screenshot-card {
    width: min(100%, 320px);
  }
}

/* Add breakpoint for tablet-like view */
@media (max-width: 1024px) {
  .testimonial-card {
    flex-basis: 45%; /* Show ~2 cards */
  }

  .download-screenshots-row .phone-mockup {
    flex-basis: 140px; /* Adjust size */
  }
}

/* Testimonial Section */
.testimonial-card {
  .download-screenshots-row .phone-mockup {
    max-width: 220px; /* Adjust screenshot size in row on mobile */
  }

  .testimonial-carousel { /* Add overflow hidden on mobile */
    overflow: hidden;
  }

  .download-screenshots-row .phone-mockup {
    max-width: 240px; /* Adjust screenshot size in row on tablet */
  }
}

/* Correcting the potentially misplaced rules - these seem related to responsive adjustments */
@media (max-width: 768px) {
  .download-screenshots-row .phone-mockup {
     /* This rule was likely intended for the mobile media query */
     /* Original value was max-width: 220px; Let's keep flex-basis: 120px from above */
     /* flex-basis: 120px; <-- Already defined above */
  }
  .testimonial-carousel { 
    /* Already defined above */
    /* overflow: hidden; */
  }
}

@media (max-width: 1024px) {
   .download-screenshots-row .phone-mockup {
     /* This rule was likely intended for the tablet media query */
     /* Original value was max-width: 240px; Let's keep flex-basis: 140px from above */
     /* flex-basis: 140px; <-- Already defined above */
  }
}
.img-lg-big { width: 96%; }
.img-sm-big { width: 92%; }

/* Single-image centering and tilt helpers */
.single-centered { width: 94%; margin: 0 auto; }
.img-tilt-l { --img-rotate: -1.8deg; }
.img-tilt-r { --img-rotate:  1.8deg; }
/* Debug helpers removed */
