﻿/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  padding: clamp(60px, 8vw, 96px) 0 clamp(48px, 6vw, 72px);
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

/* Atmospheric background with gradient mesh */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 70% 20%, rgba(56, 161, 105, .12), transparent 60%),
    radial-gradient(ellipse 60% 40% at 10% 80%, rgba(56, 161, 105, .06), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, .02) 1px, transparent 1px);
  background-size: auto, auto, 20px 20px;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
          mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
[data-theme="dark"] .hero__bg {
  background:
    radial-gradient(ellipse 80% 50% at 70% 20%, rgba(51, 136, 91, .18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 10% 80%, rgba(95, 190, 144, .08), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 250, 240, .04) 1px, transparent 1px);
  background-size: auto, auto, 20px 20px;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items: center;
}
/* Referral banner: two-column on desktop, single-column on mobile */
@media (min-width: 761px) {
  #heroOfferSlide .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
  #heroOfferSlide .hero__copy { text-align: left; max-width: none; margin-inline: 0; }
  #heroOfferSlide .hero__sub { margin-inline: 0; }
  #heroOfferSlide .hero__cta { justify-content: flex-start; }
  #heroOfferSlide .hero__trust-pills { justify-content: flex-start; }
  #heroOfferSlide .hero__why { margin-top: 12px; }
  #heroOfferSlide .hero__art { display: flex; justify-content: center; }
}
@media (max-width: 760px) {
  #heroOfferSlide .hero__grid { grid-template-columns: 1fr; }
  #heroOfferSlide .hero__copy { text-align: center; max-width: 720px; margin-inline: auto; }
  #heroOfferSlide .hero__sub { margin-inline: auto; }
  #heroOfferSlide .hero__cta { justify-content: center; }
  #heroOfferSlide .hero__trust-pills { justify-content: center; }
  #heroOfferSlide .hero__art { display: none; }
}
.hero__title {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  margin-bottom: 28px;
  line-height: 1.05;
  letter-spacing: -.04em;
}
.hero__sub {
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.7;
  max-width: 30em;
  margin-bottom: 36px;
}
.hero__sub strong { color: var(--text); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.hero__note { color: var(--muted); font-size: .92rem; font-weight: 500; }
.hero__why {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent-ink);
  font-size: .9rem;
  font-weight: 600;
  transition: color .15s;
}
.hero__why:hover { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.btn__icon { width: 18px; height: 18px; }

.hero__downloads {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: .88rem;
}
.downloads__icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: var(--accent-ink);
  opacity: .7;
}
.downloads__count {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
  min-width: 2ch;
}
.downloads__label {
  color: var(--muted);
}

/* Eyebrow pill variant for the hero */
.eyebrow--pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
  letter-spacing: .01em;
  font-size: .82rem;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--green-tint);
  border: 1px solid var(--green-line);
  padding: 6px 15px;
  border-radius: 999px;
  box-shadow: none;
}
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-ink);
  box-shadow: none;
}

/* =====================================================================
   PHONE MOCKUP - faithful recreation of the Cadence "Calls" screen
   ===================================================================== */
.hero__art { display: flex; justify-content: center; perspective: 1600px; opacity: 1 !important; transform: none !important; }
.phone {
  position: relative;
  width: 306px;
  max-width: 100%;
  aspect-ratio: 306 / 636;
  background: linear-gradient(155deg, #364151, #1e2530);
  border-radius: 46px;
  padding: 11px;
  box-shadow:
    0 2px 4px rgba(23, 29, 38, .55),
    0 40px 80px -24px rgba(23, 29, 38, .65),
    0 16px 30px -16px rgba(45, 55, 72, .45);
  transform: rotate(-1.6deg);
  transition: transform .5s var(--ease);
}
.hero__art:hover .phone { transform: rotate(0deg) translateY(-4px); }
/* thin inner bezel ring */
.phone::after {
  content: "";
  position: absolute; inset: 8px;
  border-radius: 39px;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .06);
  pointer-events: none; z-index: 5;
}
/* subtle diagonal screen glare */
.phone__glare {
  position: absolute; inset: 11px;
  border-radius: 39px;
  background: linear-gradient(125deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 24%);
  pointer-events: none;
  z-index: 4;
}
.phone__screen {
  /* The phone shows the REAL (light) Cadence app - pin the light palette
     locally so the mockup stays a bright screenshot against the dark page. */
  --bg:        #FCFBF7;
  --surface:   #FFFFFF;
  --text:      #1F2933;
  --muted:     #5F6B7A;
  --accent:    #2F855A;
  --accent-2:  #38A169;
  --border:    #E6E2D8;
  --green-tint:#EEF8F1;
  color: var(--text); /* pin dark app text so children don't inherit the page's light color */
  position: relative;
  height: 100%;
  background: var(--bg);
  border-radius: 38px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Status bar */
.sbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 22px 5px;
  color: #2D3748;
}
.sbar__time { font-size: .72rem; font-weight: 700; letter-spacing: .01em; }
.sbar__icons { display: inline-flex; align-items: center; gap: 5px; }
.sbar__ic { height: 11px; width: auto; fill: #2D3748; }

/* App screen */
.app {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 4px 13px 0;
}

/* App bar */
.app__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 2px 12px;
}
.app__brand { display: inline-flex; align-items: center; gap: 8px; }
.app__logo { width: 26px; height: 26px; }
.app__logo svg { width: 100%; height: 100%; }
.app__word { font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; }
.app__actions { display: inline-flex; align-items: center; gap: 13px; }
.app__ic { width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Stat tiles */
.app__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 11px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 6px 7px;
}
.stat--hl {
  background: var(--green-tint);
  border-color: var(--green-line);
}
.stat__ic {
  display: grid; place-items: center;
  width: 18px; height: 18px;
  margin-bottom: 3px;
}
.stat__ic svg { width: 15px; height: 15px; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.stat__num { font-size: 1.02rem; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.stat__lbl { font-size: .5rem; font-weight: 600; color: var(--muted); letter-spacing: .01em; }

/* Filter chips */
.app__filters { display: flex; gap: 6px; margin-bottom: 11px; }
.fchip {
  font-size: .6rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
}
.fchip--on {
  color: var(--accent);
  background: var(--green-tint);
  border-color: var(--green-line);
}

/* Contact list */
.app__list { display: flex; flex-direction: column; gap: 7px; overflow: hidden; }
.crow {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 8px 9px;
}
.crow__av {
  flex: none;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.crow__av--g { background: linear-gradient(140deg, #38A169, #2F855A); }
.crow__av--b { background: linear-gradient(140deg, #4C82E4, #2C5FBF); }
.crow__av--a { background: linear-gradient(140deg, #E0993E, #C97A22); }
.crow__av--m { background: linear-gradient(140deg, #8B7BD8, #6B57C2); }
.crow__meta { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 1px; }
.crow__name { font-weight: 600; font-size: .74rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crow__num { color: var(--muted); font-size: .62rem; line-height: 1.2; }
.crow__right { display: inline-flex; align-items: center; gap: 7px; flex: none; }
.tag {
  font-size: .56rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 999px;
  white-space: nowrap;
}
.tag--cust { background: var(--green-tint); color: var(--accent); }
.tag__ic { display: inline-block; width: 8px; height: 8px; fill: currentColor; vertical-align: -1px; margin-right: 3px; }
.tag--int  { background: #E7F0FE; color: #2C5FBF; }
.tag--cb   { background: #FCEFD6; color: #9A6414; }
.tag--na   { background: #EEF0F2; color: #6B7280; }
.crow__call {
  display: grid; place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--green-tint);
}
.crow__call svg { width: 12px; height: 12px; fill: var(--accent); }

/* Floating action pill */
.app__fab {
  display: flex;
  justify-content: center;
  padding: 12px 0 10px;
  margin-top: auto;
}
.fab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  font-size: .74rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: 0 8px 18px -6px rgba(47, 133, 90, .5);
}
.fab__play { width: 13px; height: 13px; fill: #fff; }

/* Bottom nav */
.app__nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin: 0 -13px;
  padding: 7px 6px 11px;
}
.bnav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: .52rem;
  font-weight: 600;
  color: var(--muted);
}
.bnav__ic { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Calls icon is a filled phone silhouette */
.bnav--on { color: var(--accent); }
.bnav--on .bnav__ic { fill: var(--accent); stroke: none; }

/* =====================================================================
   TRUST STRIP
   ===================================================================== */
.trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.trust__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  color: var(--muted);
  font-weight: 600;
  font-size: .92rem;
}
.trust .dot { color: var(--border); }

/* =====================================================================
   SOCIAL PROOF STRIP
   ===================================================================== */
.social-proof {
  background: var(--tint);
  border-bottom: 1px solid var(--border);
}
.social-proof__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 24px;
}
.social-proof__avatars {
  display: flex;
  margin-right: 8px;
}
.social-proof__av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  color: #fff;
  border: 2px solid var(--tint);
  margin-left: -8px;
}
.social-proof__av:first-child { margin-left: 0; }
.social-proof__av--1 { background: #2F855A; }
.social-proof__av--2 { background: #38A169; }
.social-proof__av--3 { background: #48BB78; }
.social-proof__av--4 { background: #68D391; }
.social-proof__av--5 { background: #9AE6B4; color: #276749; }
.social-proof__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.social-proof__copy strong {
  color: var(--text);
  font-size: .95rem;
}
.social-proof__note {
  color: var(--muted);
  font-size: .85rem;
}

/* =====================================================================
   HERO CAROUSEL — hard-coded slides, driven by js/hero-carousel.js
   ===================================================================== */
.hero-carousel { position: relative; }
.hero-carousel__viewport { overflow: hidden; }
.hero-carousel__track {
  display: flex;
  transition: transform .8s var(--ease);
  will-change: transform;
}
.hero-carousel__slide { flex: 0 0 100%; min-width: 100%; }
.hero-carousel__slide[hidden] { display: none; }

.hero-carousel__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
}
.hero-carousel__dots { display: inline-flex; align-items: center; gap: 8px; }
.hero-carousel__dot {
  width: 8px; height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--border);
  cursor: pointer;
  transition: width .35s var(--ease), background .35s var(--ease), transform .35s var(--ease);
}
.hero-carousel__dot:hover { background: var(--accent-ink); transform: scale(1.15); }
.hero-carousel__dot.is-active { width: 26px; background: var(--accent); }

.hero-carousel__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease),
              background .2s var(--ease), transform .2s var(--ease);
}
.hero-carousel__arrow:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
  background: var(--green-tint);
  transform: translateY(-1px);
}
.hero-carousel__arrow svg { width: 18px; height: 18px; display: block; }

/* Slide entrance (opt-in: the slide carries .js-animate) */
.hero-carousel__slide.js-animate .hero__copy > *,
.hero-carousel__slide.js-animate .offer-card {
  opacity: 0;
  transform: translateY(26px);
}
.hero-carousel__slide.js-animate.is-entering .hero__copy > *,
.hero-carousel__slide.js-animate.is-entering .offer-card {
  animation: heroRise .65s var(--ease) forwards;
}
.hero-carousel__slide.js-animate.is-entering .hero__copy > *:nth-child(2) { animation-delay: .06s; }
.hero-carousel__slide.js-animate.is-entering .hero__copy > *:nth-child(3) { animation-delay: .12s; }
.hero-carousel__slide.js-animate.is-entering .hero__copy > *:nth-child(4) { animation-delay: .18s; }
.hero-carousel__slide.js-animate.is-entering .hero__copy > *:nth-child(5) { animation-delay: .24s; }
.hero-carousel__slide.js-animate.is-entering .offer-card { animation-delay: .2s; }
@keyframes heroRise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

/* =====================================================================
   HERO OFFER SLIDE — referral reward card
   ===================================================================== */
.offer-card {
  width: 340px;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 26px 24px 22px;
  box-shadow: var(--shadow-md);
}
.offer-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.offer-card__icon {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 11px;
  background: var(--green-tint);
  border: 1px solid var(--green-line);
  color: var(--accent-ink);
  flex: none;
}
.offer-card__icon svg {
  width: 19px; height: 19px;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.offer-card__eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.offer-card__amount { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.offer-card__month { font-size: 2.6rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.offer-card__free {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--green-tint);
  border: 1px solid var(--green-line);
  border-radius: 999px;
  padding: 5px 12px;
  letter-spacing: .01em;
}
.offer-card__sub { color: var(--muted); font-size: .92rem; line-height: 1.55; margin-bottom: 16px; }
.offer-card__divider { height: 1px; background: var(--border); margin-bottom: 16px; }
.offer-card__list { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.offer-card__list li { display: flex; align-items: flex-start; gap: 9px; font-size: .88rem; font-weight: 500; color: var(--text); }
.offer-card__list svg {
  flex: none; width: 15px; height: 15px;
  margin-top: 2px;
  fill: none; stroke: var(--accent-ink);
  stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.offer-card__foot { display: flex; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid var(--border); }
.offer-card__av {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  flex: none;
}
.offer-card__av--one { background: #2563eb; }
.offer-card__av--two { background: #7c3aed; }
.offer-card__av--three { background: #db2777; }
.offer-card__foot p { margin: 0; font-size: .8rem; line-height: 1.45; color: var(--muted); }
.offer-card__foot strong { color: var(--text); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .hero-carousel__track { transition: none; }
  .hero-carousel__slide.js-animate .hero__copy > *,
  .hero-carousel__slide.js-animate .offer-card {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
