/* ==========================================================================
   Cadence landing — HERO ARTWORK (verbatim port of the original mockup).
   The phone mockup is the product screenshot: it intentionally does NOT
   follow the page theme. It pins the REAL app's light palette locally on
   .phone__screen so it renders identically in both schemes. Do not restyle
   this into system tokens — the marketing team wants pixel parity.
   ========================================================================== */

.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 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);
  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-wrap { display: contents; } /* harmless wrapper kept out of layout */
.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; }

/* ==========================================================================
   HERO OFFER SLIDE — referral reward card (original design, token-mapped).
   ========================================================================== */
.offer-card {
  --surface:    var(--md-sys-color-surface-container-lowest);
  --border:     var(--md-sys-color-outline-variant);
  --green-tint: color-mix(in srgb, var(--md-sys-color-primary) 10%, transparent);
  --green-line: color-mix(in srgb, var(--md-sys-color-primary) 26%, transparent);
  --accent-ink: var(--color-accent-strong);
  --muted:      var(--md-sys-color-on-surface-variant);
  --text:       var(--md-sys-color-on-surface);

  width: 340px;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 26px 24px 22px;
  box-shadow: var(--md-sys-elevation-level2);
}
.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; }

/* ==========================================================================
   Slide entrance (opt-in via .js-animate, driven by js/hero-carousel.js) —
   original staggered rise, preserved exactly.
   ========================================================================== */
.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 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; }
}

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