/* Homepage UI polish — scoped to the existing Ollie homepage. */
.ela-home-v1046{
  --home-navy:#123f63;
  --home-blue:#17658f;
  --home-ocean:#1483a4;
  --home-ink:#173f59;
  --home-muted:#587080;
  --home-cream:#fffaf1;
  --home-sand:#f4e8d2;
  overflow-x:hidden;
}

.ela-home-v1046 .page,
.ela-home-v1046 .card,
.ela-home-v1046 .home-product-grid,
.ela-home-v1046 .home-product-card,
.ela-home-v1046 .home-product-card-body{
  min-width:0;
  max-width:100%;
}

.ela-home-v1046 .home-language-card{
  border-color:#d8e6eb;
  background:#fffdf8;
}
.ela-home-v1046 .home-lang-tabs button{
  min-height:46px;
  border:2px solid var(--home-navy)!important;
  box-shadow:none!important;
}
.ela-home-v1046 .home-lang-tabs .primary{
  background:var(--home-navy)!important;
  color:#fff!important;
}
.ela-home-v1046 .home-lang-tabs .secondary{
  background:#fff!important;
  color:var(--home-navy)!important;
}

.ela-home-v1046 .home-hero-refresh{
  border:2px solid #bfd9e2!important;
  background:linear-gradient(135deg,var(--home-cream) 0%,#fff 52%,#e8f4f7 100%)!important;
  box-shadow:0 24px 55px rgba(18,63,99,.14)!important;
}
.ela-home-v1046 .home-hero-refresh::before{
  background:radial-gradient(circle at 50% 50%,rgba(20,131,164,.2),rgba(20,131,164,0) 70%)!important;
}
.ela-home-v1046 .home-hero-copy{
  position:relative;
  z-index:2;
}
.ela-home-v1046 .home-hero-refresh h2{
  max-width:720px;
  margin:0 0 13px!important;
  color:var(--home-navy)!important;
  font-size:clamp(2.2rem,5vw,4.35rem)!important;
  line-height:1.08!important;
  letter-spacing:-.035em;
}
.ela-home-v1046 .home-hero-subtitle{
  margin:0!important;
  color:var(--home-blue)!important;
  font-size:clamp(1rem,1.8vw,1.28rem)!important;
  font-weight:950!important;
  letter-spacing:.015em;
}
.ela-home-v1046 .home-cta-row{
  align-items:stretch;
  margin-top:25px;
}
.ela-home-v1046 .home-cta-row .btn,
.ela-home-v1046 .home-free-mission .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:54px;
  padding:12px 20px;
  border-radius:15px;
  font-weight:950;
  line-height:1.2;
  box-shadow:none;
}
.ela-home-v1046 .home-cta-row .primary{
  border:2px solid var(--home-navy)!important;
  background:var(--home-navy)!important;
  color:#fff!important;
  box-shadow:0 10px 20px rgba(18,63,99,.2)!important;
}
.ela-home-v1046 .home-cta-row .secondary,
.ela-home-v1046 .home-free-mission .secondary{
  border:2px solid var(--home-navy)!important;
  background:#fff!important;
  color:var(--home-navy)!important;
}
.ela-home-v1046 .home-cta-row .btn:hover,
.ela-home-v1046 .home-free-mission .btn:hover{
  transform:translateY(-1px);
}

.ela-home-v1046 .home-product-showcase{
  z-index:1;
}
.ela-home-v1046 .showcase-card{
  border-color:#fff!important;
  box-shadow:0 16px 32px rgba(18,63,99,.17)!important;
}
.ela-home-v1046 .showcase-label{
  border:1px solid rgba(255,255,255,.3)!important;
  color:#fff!important;
  font-weight:600;
  box-shadow:0 8px 18px rgba(18,63,99,.1)!important;
}
.ela-home-v1046 .showcase-label b,
.ela-home-v1046 .showcase-label span{
  color:#fff!important;
  font-weight:600;
}

.ela-home-v1046 #start-here{scroll-margin-top:18px}
.ela-home-v1046 .home-section-heading{
  max-width:720px;
  margin-bottom:24px;
}
.ela-home-v1046 .home-section-title{
  color:var(--home-navy)!important;
}
.ela-home-v1046 .home-section-heading .section-intro{
  margin:9px 0 0!important;
  color:var(--home-muted)!important;
  font-size:.97rem!important;
}
.ela-home-v1046 .global-action-bar{transition:opacity .18s ease,visibility .18s ease}
.ela-home-v1046.home-products-in-view .global-action-bar{
  visibility:hidden;
  opacity:0;
  pointer-events:none;
}

.ela-home-v1046 .home-product-grid{
  display:grid;
  grid-template-columns:minmax(0,1.12fr) minmax(0,1fr) minmax(0,.92fr);
  align-items:stretch;
  gap:18px;
}
.ela-home-v1046 .home-product-card{
  position:relative;
  z-index:90;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:2px solid #b9d4de;
  border-radius:25px;
  background:#fff;
  box-shadow:0 12px 26px rgba(18,63,99,.1);
}
.ela-home-v1046 .home-product-card::before{
  content:"";
  position:absolute;
  z-index:2;
  top:0;
  right:0;
  left:0;
  height:7px;
  background:#5a8197;
}
.ela-home-v1046 .home-product-card.product-starter{
  border:3px solid var(--home-blue);
  box-shadow:0 20px 38px rgba(18,63,99,.18);
}
.ela-home-v1046 .home-product-card.product-starter::before{background:var(--home-blue)}
.ela-home-v1046 .home-product-card.product-gept{
  border-color:#d8ba79;
  background:#fffdf8;
}
.ela-home-v1046 .home-product-card.product-gept::before{background:#c28b31}
.ela-home-v1046 .home-product-card.product-speak{
  border-color:#b9d3cf;
  background:#fbfdfc;
  box-shadow:0 9px 20px rgba(18,63,99,.08);
}
.ela-home-v1046 .home-product-card.product-speak::before{background:#4e8a82}
.ela-home-v1046 .home-product-card>img{
  display:block;
  width:100%;
  height:188px;
  max-width:100%;
  object-fit:cover;
  background:#edf5f6;
}
.ela-home-v1046 .home-product-card.product-speak>img{
  object-fit:contain;
  object-position:center;
  transform:scale(1.12);
  background:#f7fbfc;
}
.ela-home-v1046 .home-product-card.product-starter>img{
  height:188px;
  padding:8px;
  object-fit:contain;
  background:linear-gradient(150deg,#e9f5f7,#fffaf1);
}
.ela-home-v1046 .home-product-card-body{
  display:flex;
  flex:1;
  flex-direction:column;
  align-items:flex-start;
  padding:21px;
}
.ela-home-v1046 .home-product-card h3{
  margin:0 0 13px;
  color:var(--home-navy);
  font-size:clamp(1.2rem,2vw,1.55rem);
  line-height:1.2;
}
.ela-home-v1046 .product-starter h3{
  font-size:clamp(1.4rem,2.25vw,1.75rem);
}
.ela-home-v1046 .home-product-card p.home-product-route{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  margin:0!important;
  padding:10px 0;
  border-top:1px solid #dbe6ea;
  border-bottom:1px solid #dbe6ea;
  color:var(--home-blue)!important;
  font-size:.77rem!important;
  line-height:1.45!important;
}
.ela-home-v1046 .home-product-route strong{
  color:var(--home-blue);
  font-weight:950;
}
.ela-home-v1046 .home-product-route span{
  flex:0 0 auto;
  margin-left:8px;
  color:#6c5a37;
  font-size:.72rem;
  font-weight:950;
  white-space:nowrap;
}
.ela-home-v1046 .home-product-card p.home-product-summary{
  margin:14px 0 19px!important;
  color:var(--home-muted)!important;
  font-size:.88rem!important;
  line-height:1.65!important;
}
.ela-home-v1046 .home-product-link{
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:100%;
  min-height:54px;
  margin-top:auto;
  padding:12px 15px;
  border:2px solid var(--home-navy);
  border-radius:14px;
  background:#fff;
  color:var(--home-navy);
  text-decoration:none;
  font-size:.9rem;
  font-weight:950;
  line-height:1.2;
}
.ela-home-v1046 .home-product-link.home-product-primary{
  background:var(--home-navy);
  color:#fff;
  box-shadow:0 9px 18px rgba(18,63,99,.18);
}
.ela-home-v1046 .home-product-link:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 18px rgba(18,63,99,.13);
}

.ela-home-v1046 .home-free-mission{
  position:relative;
  overflow:hidden;
  padding:29px 32px;
  border:2px solid #d8ba79;
  background:linear-gradient(135deg,var(--home-cream),#fffdf8);
}
.ela-home-v1046 .home-free-mission::after{
  content:"";
  position:absolute;
  right:-60px;
  bottom:-90px;
  width:230px;
  height:230px;
  border-radius:50%;
  background:rgba(20,131,164,.08);
  pointer-events:none;
}
.ela-home-v1046 .home-free-mission-grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(280px,.8fr);
  align-items:center;
  gap:28px;
}
.ela-home-v1046 .home-free-mission-grid.hidden{display:none!important}
.ela-home-v1046 .home-mission-kicker{
  display:block;
  color:#8b641f;
  font-size:.72rem;
  font-weight:950;
  letter-spacing:.1em;
}
.ela-home-v1046 .home-free-mission h2{
  margin:9px 0 9px;
  color:var(--home-navy);
  font-size:clamp(1.55rem,3vw,2.2rem);
  line-height:1.2;
}
.ela-home-v1046 .home-free-mission-copy>p{
  max-width:640px;
  margin:0!important;
  color:var(--home-muted)!important;
  font-size:.94rem!important;
  line-height:1.65!important;
}
.ela-home-v1046 .home-free-mission .button-row{margin-top:18px}
.ela-home-v1046 .home-free-mission-art{
  position:relative;
  margin:0;
  overflow:hidden;
  border:4px solid #fff;
  border-radius:23px;
  background:#eaf4f6;
  box-shadow:0 15px 30px rgba(18,63,99,.14);
}
.ela-home-v1046 .home-free-mission-art img{
  display:block;
  width:100%;
  max-width:100%;
  aspect-ratio:16/10;
  object-fit:cover;
}
.ela-home-v1046 .home-free-mission-art figcaption{
  position:absolute;
  right:12px;
  bottom:12px;
  left:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-radius:13px;
  background:rgba(255,255,255,.94);
  color:var(--home-navy);
  box-shadow:0 5px 16px rgba(18,63,99,.12);
}
.ela-home-v1046 .home-free-mission-art figcaption span{
  color:var(--home-muted);
  font-size:.76rem;
  font-weight:850;
}

.ela-home-v1046 .home-learning-loop{
  border-color:#c4dce4;
  background:linear-gradient(180deg,#edf6f8,#fff);
}
.ela-home-v1046 .home-learning-loop .home-section-title{
  margin-bottom:22px;
}
.ela-home-v1046 .home-loop-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.ela-home-v1046 .home-loop-grid article{
  position:relative;
  min-width:0;
  padding:20px 16px;
  border:2px solid #c3dbe4;
  border-radius:20px;
  background:#fff;
  text-align:center;
}
.ela-home-v1046 .home-loop-grid article:not(:last-child)::after{
  content:"→";
  position:absolute;
  z-index:2;
  top:50%;
  right:-23px;
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  border:2px solid #fff;
  border-radius:50%;
  background:var(--home-navy);
  color:#fff;
  font-weight:1000;
  transform:translateY(-50%);
}
.ela-home-v1046 .home-loop-icon{
  display:grid;
  place-items:center;
  width:49px;
  height:49px;
  margin:0 auto 11px;
  border-radius:15px;
  background:#e6f1f4;
  color:var(--home-navy);
  font-size:.85rem;
  font-weight:1000;
}
.ela-home-v1046 .home-loop-grid strong{
  display:block;
  color:var(--home-navy);
  font-size:1.08rem;
}
.ela-home-v1046 .home-loop-grid small{
  display:block;
  margin-top:7px;
  color:var(--home-muted);
  font-size:.8rem;
  line-height:1.5;
}

@media(max-width:960px){
  .ela-home-v1046 .home-product-grid{grid-template-columns:1fr}
  .ela-home-v1046 .home-product-card{
    display:grid;
    grid-template-columns:minmax(220px,.75fr) minmax(0,1.25fr);
  }
  .ela-home-v1046 .home-product-card>img,
  .ela-home-v1046 .home-product-card.product-starter>img{
    height:100%;
    min-height:250px;
  }
  .ela-home-v1046 .home-free-mission-grid{grid-template-columns:1fr}
  .ela-home-v1046 .home-free-mission-art{
    width:min(100%,620px);
    justify-self:center;
  }
}

@media(max-width:620px){
  .ela-home-v1046 .site-menu-panel a{
    align-items:flex-start;
    flex-direction:column;
    gap:4px;
  }
  .ela-home-v1046 .site-menu-panel a b,
  .ela-home-v1046 .site-menu-panel a small{
    flex:0 1 auto;
    max-width:100%;
    white-space:normal;
    overflow-wrap:anywhere;
  }
  .ela-home-v1046 .page{width:100%}
  .ela-home-v1046 .home-hero-refresh{
    padding:25px 18px 20px!important;
  }
  .ela-home-v1046 .home-hero-refresh h2{
    margin-bottom:10px!important;
    font-size:clamp(2rem,10.5vw,2.65rem)!important;
  }
  .ela-home-v1046 .home-hero-subtitle{
    font-size:.92rem!important;
    letter-spacing:0;
  }
  .ela-home-v1046 .home-cta-row{
    display:grid!important;
    grid-template-columns:1fr;
    gap:10px;
    margin-top:20px;
  }
  .ela-home-v1046 .home-cta-row .btn,
  .ela-home-v1046 .home-free-mission .btn{
    width:100%;
    min-height:54px!important;
    margin:0;
  }
  .ela-home-v1046 .home-product-showcase{
    min-height:218px!important;
    margin-top:18px!important;
  }
  .ela-home-v1046 .showcase-small{
    display:none!important;
  }
  .ela-home-v1046 .showcase-label{display:flex!important}
  .ela-home-v1046 .showcase-main{
    position:relative!important;
    inset:auto!important;
    width:100%!important;
    max-width:100%!important;
    transform:none!important;
  }
  .ela-home-v1046 .showcase-main img{height:182px!important}

  .ela-home-v1046 .home-section-heading{margin-bottom:18px}
  .ela-home-v1046 .home-section-heading .section-intro{font-size:.9rem!important}
  .ela-home-v1046 .home-product-card{
    display:flex;
    flex-direction:column;
    width:100%;
  }
  .ela-home-v1046 .home-product-card>img,
  .ela-home-v1046 .home-product-card.product-starter>img{
    width:100%;
    height:184px;
    min-height:0;
  }
  .ela-home-v1046 .home-product-card.product-starter>img{height:184px}
  .ela-home-v1046 .home-product-card-body{padding:19px}
  .ela-home-v1046 .home-product-route{
    align-items:flex-start!important;
    gap:4px;
  }
  .ela-home-v1046 .home-product-route strong{
    min-width:0;
    overflow-wrap:anywhere;
  }
  .ela-home-v1046 .home-product-link{min-height:54px}

  .ela-home-v1046 .home-free-mission{padding:24px 18px}
  .ela-home-v1046 .home-free-mission-grid{gap:20px}
  .ela-home-v1046 .home-free-mission-art figcaption{
    align-items:flex-start;
    flex-direction:column;
    gap:2px;
  }

  .ela-home-v1046 .home-loop-grid{grid-template-columns:1fr}
  .ela-home-v1046 .home-loop-grid article{
    display:grid;
    grid-template-columns:49px minmax(0,1fr);
    column-gap:13px;
    padding:16px;
    text-align:left;
  }
  .ela-home-v1046 .home-loop-grid article::after{display:none!important}
  .ela-home-v1046 .home-loop-icon{
    grid-row:1/3;
    margin:0;
  }
  .ela-home-v1046 .home-loop-grid strong{align-self:end}
  .ela-home-v1046 .home-loop-grid small{
    align-self:start;
    margin-top:3px;
  }
}

@media(prefers-reduced-motion:reduce){
  .ela-home-v1046 .home-product-link,
  .ela-home-v1046 .home-cta-row .btn{
    transition:none;
  }
}
