/**************************************
  0) ROOT + GLOBAL UTILITIES
**************************************/
:root{
  --nav-teal:#7ECFDC;
  --nav-dark:#0d2740;
}

/* Basic header spacing used globally */
.site-top {
  position: sticky; top:0; z-index:1000;
  background:#fff;
  border-bottom:1px solid rgba(0,0,0,.06);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-top .container{ min-height:68px; }

/* Base brand link (also used outside header scope) */
.brand {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: #0d2740;
}

/* Generic hover micro-interactions */
.btn{ transition: transform .25s ease, box-shadow .25s ease }
.btn:hover{ transform: translateY(-3px) }
.light-btn:hover {
  transform: translateY(-3px);
  background-color: #7ECFDC; /* Hover color */
  border-color: #7ECFDC;     /* Optional: match border to hover color */
  color: #fff;               /* Optional: make text white for contrast */
}


/**************************************
  1) HEADER & NAV (site-top, brand, nav)
**************************************/
header.site-top .brand {
  font-size: 1.4rem;
  font-weight: 700;
}
header.site-top .brand span {
  font-size: 1.4rem;
}

/* Default/stuck header (solid) — already declared above with .site-top */

/* Overlay variant: sits above hero, transparent, no border/shadow */
.site-top--overlay{
  position:absolute; left:0; right:0; top:0;
  background: transparent;
  border-bottom-color: transparent;
}
.site-top.is-stuck{
  background:#fff;
  border-bottom-color: rgba(0,0,0,.06);
  box-shadow: 0 4px 18px rgba(0,0,0,.06);
}

/* Final overlay hard reset (wins via !important) */
.site-top--overlay{
  background:transparent !important;
  border-bottom:0 !important;
  box-shadow:none !important;
}
.site-top--overlay.shadow-sm,
.site-top--overlay[class*="shadow"]{
  box-shadow:none !important;
}

/* Brand + nav link visuals */
.site-top .brand{ font-weight:700; font-size:1.6rem; color:var(--nav-dark); text-decoration:none; }
.site-top .brand span{ color:var(--nav-teal); }

.site-top .nav{ display:flex; gap:28px; align-items:center; }
.site-top .nav a{
  position:relative; display:inline-block; padding:6px 2px;
  color:var(--nav-dark); text-decoration:none; font-weight:600; letter-spacing:.2px;
  transition:color .2s ease;
}
.site-top .nav a::after{
  content:""; position:absolute; left:0; bottom:-8px; height:2px; width:0;
  background:var(--nav-teal); transition:width .22s ease;
}
.site-top .nav a:hover{ color:#3aa8ba; }
.site-top .nav a:hover::after{ width:100%; }
.site-top .nav a.active{ color:var(--nav-teal); }
.site-top .nav a.active::after{ width:100%; }

nav.site-nav a:not(.active) {
  font-weight: normal;
}

/* Hamburger */
.hamburger {
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  color: #0d2740;
}
.hamburger{ display:none; width:44px; height:44px; background:none; border:0; font-size:1.7rem; color:var(--nav-dark); }

/* Mobile drawer */
@media (max-width:991px){
  .hamburger{ display:inline-block; }
  .site-top .nav{
    position:fixed; top:0; right:0; width:280px; height:100vh;
    background:#fff; border-left:1px solid rgba(0,0,0,.08);
    box-shadow:-20px 0 40px rgba(0,0,0,.06);
    padding:80px 18px 18px; flex-direction:column; gap:12px;
    transform:translateX(100%); transition:transform .28s ease; z-index:1001;
  }
  .site-top.is-open .nav{ transform:translateX(0); }
  #site-nav{ transition: transform .28s ease }
}

/* Dim overlay for mobile drawer */
.nav-dim{ position:fixed; inset:0; background:rgba(0,0,0,.28); z-index:1000;
  opacity:0; pointer-events:none; transition:opacity .25s ease; }
.nav-dim.show{ opacity:1; pointer-events:auto; }

/* Z-index layering for header/drawer/dimmer */
.site-top { z-index: 2000; }
@media (max-width: 991px){
  .site-top .nav { z-index: 2001; }
}
.nav-dim { z-index: 1500; }

/**************************************
  2) HERO (section.hero.hero-soft.tall-hero)
**************************************/
/* Taller hero that fills more of the viewport and stays centered */
.tall-hero{
  min-height: 76vh;
  display: flex;
  align-items: center;
  padding: 120px 0 160px;        /* base */
  padding-top: 100px;            /* ensure not hidden under overlay header */
}

/* Stronger blush background */
.tall-hero.hero-soft{
  background:
    linear-gradient(180deg, var(--blush) 0%, rgba(253,235,241,0) 78%),
    linear-gradient(0deg,  rgba(253,235,241,.35) 0%, rgba(253,235,241,0) 85%);
}

/* Top spacing above hero buttons */
.hero-cta{ margin-top: 4rem; }

@media (max-width: 991px){
  .tall-hero{ min-height: 64vh; padding: 96px 0 120px; }
}
@media (max-width: 575px){
  .tall-hero{ min-height: 58vh; padding: 84px 0 110px; }
}

/**************************************
  3) WHY (section.section.section-flow#why)
**************************************/
/* legacy panel style (kept) */
.section-why{
  background:#f5f7f9;
  border-top:1px solid rgba(0,0,0,.06);
  padding: 90px 0;
}

/* Merge WHY + APP into one continuous block (override) */
.section-why,
.section-flow {
  background: transparent;
  border-top: none;
}
.section-why {
  padding-top: 72px;
  padding-bottom: 28px;
}

/* Why paragraphs tuning */
#why .container p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}
#why .container p:nth-of-type(2) {
  font-weight: 500;
  font-style: italic;
  color: #444;
}
#why .container p:last-of-type {
  margin-bottom: 2rem;
}

/* Reveal/micro-typography used in WHY headers too */
.icon {
  width: 28px;
  height: 28px;
  vertical-align: middle;
  margin: 0 6px;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
}
h2 .icon {
  display: inline-block;
  width: 32px;
  height: 32px;
  vertical-align: middle;
  margin: 0 0px 0 0;
}


h2 .ic1 {
  display: inline-block;
  width: 40px;
  height: 40px;
  vertical-align: middle;
  
}

h2 { white-space: nowrap; }

/**************************************
  4) APP PREVIEW (section.section-flow.app-preview#app)
**************************************/
/* App section spacing */
.app-preview {
  padding-top: 20px;
  padding-bottom: 64px;
}

/* Initial blush background for .section-muted (kept) */
.app-preview.section-muted{
  background:linear-gradient(180deg, rgba(253,235,241,.55), rgba(255,255,255,1) 70%);
}
/* Then we remove it per new design */
.app-preview.section-muted { background: none; }

/* Headline with icons */
h2.h1.mb-3 { font-size: 0; }               /* neutralize inherited size */
h2.h1.mb-3 .icon {
  height: 2rem;
  vertical-align: middle;
  margin: 0 0.25rem;
}
h2.h1.mb-3 span {
  font-size: 1.25rem;
  vertical-align: middle;
}

/* Increase size for Lantern Light App eyebrow */
.section-flow .eyebrow {
  font-size: 2rem;
  color: black;
  font-weight: bold;
}

/* Text column sizing */
#app .h1{
  font-size: 2.15rem;
  line-height: 1.25;
  margin-bottom: 1rem !important;
}
#app .muted{ max-width: 600px; }

/* “Learn more” link under phone on desktop */
.learn{ color:#0e2742; opacity:.8 }
.learn:hover{ opacity:1 }

/* Phone card (initial base kept) */

/* Make the container not look like a card */
.phone-card{
  padding: 0;               /* no gutter around the image */
  background: transparent;  /* don't paint a white card */
  border-radius: 0;
  box-shadow: none;         /* move the shadow to the image instead */
}

/* Keep the nice rounded phone with a shadow */
.phone-card img{
  display:block;
  width:100%;
  height:auto;
  border-radius: 18px;      /* or 26px if you want it to match */
  box-shadow: var(--shadow);
}

/* Gentle floating for phone mock */
.phone-card{ animation: floatSoft 6s ease-in-out infinite }

/* Large screen layout alignment */
@media (min-width: 992px){
  #app .col-lg-6:first-child { padding-right: 36px; }
  #app .col-lg-6:last-child  { display:flex; justify-content:flex-end; }
}

/* Tablet/phone sizes */
@media (max-width: 991.98px){
  .section-why { padding-bottom: 12px; }
  .app-preview { padding-top: 12px; }
  .phone-card { max-width: 300px; }
}
@media (max-width: 575.98px){
  .phone-card { max-width: 260px; }
  #app .h1{ font-size: 1.9rem; }
}

/**************************************
  5) WORK (section#work)
**************************************/
#work { background: #fbf9f6; }

.work-lead {
  max-width: 720px;
  margin-inline: auto;
}

/* Card layout */
.work-card{
  background:#fff;
  border-radius: 18px;
  padding: 28px 30px 30px;
  border:1px solid rgba(0,0,0,.04);
  box-shadow:0 4px 38px rgba(11,31,53,.08);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap: 10px;
}



.work-card:hover {
   transform: translateY(-6px) scale(1.0) !important;
  box-shadow: 0 0 30px 8px rgba(122, 211, 214, 0.65);
  border-color: rgba(122, 211, 214, 0.8);
}



/* Icon badge */
.work-icon{
  width:64px; height:64px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-bottom: 6px;
}
.work-icon img{ width:32px; height:32px;  border-radius: 0;}
.work-icon img {
  background: transparent !important;
}



/* Pastel fills */
.work-icon--blue  { background:#e8f6f7; }
.work-icon--pink  { background:#f6e7ec; }
.work-icon--green { background:#e6f3ea; }

/* Title */
.work-title{

  font-weight:600;
  font-size:1.28rem;
  color:#0d2740;
  margin: 4px 0 4px;
}

/* Mobile card centering */
@media (max-width: 575.98px){
  .work-card{
    align-items:center;
    text-align:center;
    padding: 24px;
  }
  .work-card p{ max-width: 36ch; }
  .work-icon{ width:60px; height:60px; }
  .work-icon img{ width:28px; height:28px; }
}

/**************************************
  6) NEWSLETTER / GLOW (section#glow)
**************************************/
/* (No specific CSS provided for #glow; global reveal + buttons cover it) */

/**************************************


/**************************************
  8) MOTION: REVEALS & KEYFRAMES
**************************************/
@keyframes fadeUp   { from {opacity:0; transform:translateY(18px)} to {opacity:1; transform:none} }
@keyframes fadeIn   { from {opacity:0} to {opacity:1} }
@keyframes slideL   { from {opacity:0; transform:translateX(-24px)} to {opacity:1; transform:none} }
@keyframes slideR   { from {opacity:0; transform:translateX(24px)}  to {opacity:1; transform:none} }
@keyframes scaleIn  { from {opacity:0; transform:scale(.96)} to {opacity:1; transform:scale(1)} }
@keyframes floatSoft{ 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
@keyframes pulseBreath { 0%{transform:scale(1)} 50%{transform:scale(1.06)} 100%{transform:scale(1)} }

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce){
  .reveal, .anim, .hover-anim * { animation: none !important; transition: none !important }
}

/* Reveal utilities */
.reveal{ opacity:0; transform:translateY(16px) }
.reveal.in-view{ opacity:1; transform:none; animation: fadeUp .7s ease both }

.reveal.fade{ transform:none }
.reveal.fade.in-view{ animation: fadeIn .6s ease both }

.reveal.left{ transform:translateX(-24px) }
.reveal.left.in-view{ animation: slideL .7s ease both }

.reveal.right{ transform:translateX(24px) }
.reveal.right.in-view{ animation: slideR .7s ease both }

.reveal.scale{ transform:none }
.reveal.scale.in-view{ animation: scaleIn .6s ease both }

/* Stagger helpers */
.delay-1{ animation-delay:.08s !important }
.delay-2{ animation-delay:.16s !important }
.delay-3{ animation-delay:.24s !important }
.delay-4{ animation-delay:.32s !important }
.delay-5{ animation-delay:.40s !important }

/* Breathing icon */
.icon.breath{ animation: pulseBreath 2.6s ease-in-out infinite }


/* 1) Never allow horizontal scrolling */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* 2) Media elements never exceed their container */
img, svg, video, canvas {
  display: block;         /* removes inline extra spacing */
  max-width: 100%;
  height: auto;
}

/* 3) Undo the global nowrap on H2 (this is the main culprit) */
h2 { white-space: normal; }

/* If you truly need a single-line heading somewhere, add class="h2-nowrap" */
.h2-nowrap { white-space: nowrap; }

/* 4) Off-canvas mobile nav: keep it off the layout when closed (some browsers) */
@media (max-width: 991px){
  .site-top .nav{
    position: fixed;
    top: 0; right: 0;
    width: 280px; height: 100vh;
    transform: translate3d(100%,0,0); /* GPU + avoids layout width */
    will-change: transform;
    overflow-y: auto;
    contain: paint;                 /* isolate from page layout */
  }
  .site-top.is-open .nav{
    transform: translate3d(0,0,0);
  }
}

/* 5) Safety: Bootstrap rows sometimes overflow if used outside a container.
   This trims any tiny gutters that might slip out on edge cases. */
.container, .container-fluid {
  overflow-x: clip; /* prevents gutter from creating scroll */
}


/* Default styles are fine for bigger screens */

/* Mobile-specific styles */
@media (max-width: 600px) {
  .hero-cta {
    flex-direction: column;   /* stack vertically */
    align-items: center;      /* center buttons */
    gap: 12px;                /* space between stacked buttons */
  }

  .hero-cta .btn {
    width: 100%;              /* make buttons full-width */
    max-width: 280px;         /* optional: prevent too wide */
    font-size: 1.1rem;        /* increase text size */
    padding: 14px 18px;       /* make buttons taller */
  }
}
