/* ==========================================================================
   MyBillCareApp — Home landing, LIGHT theme (home.php only)
   Builds on mca-public-light.css (tokens, header, buttons, footer, page bg).
   Adds: hero, stats, feature cards, the TEMPLATE GALLERY + modal preview,
         workflow timeline, getting-started cards, CTA band.
   ========================================================================== */

/* ---- Reveal-on-scroll (progressive enhancement) --------------------------- */
.mca-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.mca-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .mca-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Hero ----------------------------------------------------------------- */
.mca-hero { position: relative; overflow: hidden; }
.mca-hero::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(620px 320px at 82% 0%, rgba(76, 174, 63, .16), transparent 60%),
    radial-gradient(680px 360px at 12% 18%, rgba(27, 117, 187, .16), transparent 60%);
}
.mca-hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .9fr; align-items: center; gap: 2.25rem;
  padding: clamp(1.4rem, 3.2vw, 2.4rem) 0 clamp(1.6rem, 3vw, 2.4rem);
}
.mca-hero__copy { max-width: 540px; }
.mca-badge {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .45rem .9rem; border-radius: 999px;
  color: var(--blue); background: rgba(27, 117, 187, .1);
  border: 1px solid rgba(27, 117, 187, .22); margin-bottom: 1.25rem;
}
.mca-hero__title {
  margin: 0 0 1rem; font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.08; font-weight: 800; letter-spacing: -.025em; color: var(--navy);
}
.mca-hero__title .grad {
  background: var(--pl-grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.mca-hero__lead { margin: 0 0 1.15rem; font-size: 1.08rem; color: var(--pl-muted); max-width: 42ch; }
.mca-hero-audiences-label {
  margin: 0 0 .45rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
}
.mca-hero-pills {
  display: flex; flex-wrap: wrap; gap: .5rem;
  list-style: none; margin: 0 0 1.35rem; padding: 0;
}
.mca-hero-pills li {
  font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--navy); background: #fff;
  border: 1px solid var(--pl-line); border-radius: 999px;
  padding: .42rem .85rem;
  box-shadow: 0 8px 18px -16px rgba(15, 35, 70, .45);
}
.mca-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 0; }
.mca-trustrow {
  display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; list-style: none; margin: 0; padding: 0;
  font-size: .9rem; color: var(--pl-muted);
}
.mca-trustrow li { display: inline-flex; align-items: center; gap: .45rem; }
.mca-trustrow li::before { content: "✓"; font-weight: 800; color: var(--green); }
.mca-hero__more { display: inline-block; margin-top: 1.2rem; font-weight: 600; font-size: .92rem; color: var(--blue); }
.mca-hero__more:hover { text-decoration: underline; }

/* Hero visual — floating invoice card */
.mca-hero__visual { position: relative; display: flex; justify-content: center; }
.mca-hero__card {
  width: 100%; max-width: 380px;
  background: #fff; border: 1px solid var(--pl-line); border-radius: 18px;
  box-shadow: 0 30px 70px -28px rgba(15, 35, 70, .4);
  padding: 1.4rem; transform: rotate(-2deg);
  transition: transform .3s ease;
}
.mca-hero__card:hover { transform: rotate(0deg) translateY(-4px); }
.mca-hero__card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.mca-hero__card-brand { display: flex; align-items: center; gap: .5rem; font-weight: 800; color: var(--navy); }
.mca-hero__card-dot { width: 28px; height: 28px; border-radius: 8px; background: var(--pl-grad); }
.mca-hero__pill { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); background: rgba(76,174,63,.12); padding: .3rem .6rem; border-radius: 999px; }
.mca-hero__rows { display: grid; gap: .55rem; }
.mca-hero__rows i { display: block; height: 9px; border-radius: 4px; background: #eaf1f8; }
.mca-hero__rows i.w90 { width: 90%; } .mca-hero__rows i.w70 { width: 70%; } .mca-hero__rows i.w50 { width: 50%; }
.mca-hero__total { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; padding-top: .9rem; border-top: 1px dashed var(--pl-line); }
.mca-hero__total span { font-size: .8rem; color: var(--pl-muted); text-transform: uppercase; letter-spacing: .06em; }
.mca-hero__total b { font-size: 1.3rem; color: var(--navy); }
.mca-hero__chip {
  position: absolute; bottom: -14px; left: 6%;
  display: inline-flex; align-items: center; gap: .4rem;
  background: #fff; border: 1px solid var(--pl-line); border-radius: 999px;
  padding: .5rem .9rem; font-size: .82rem; font-weight: 600; color: var(--navy);
  box-shadow: 0 14px 30px -16px rgba(15, 35, 70, .35);
}
.mca-hero__chip::before { content: "✓"; color: #fff; background: var(--green); width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; }

.mca-hero-brand {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 28px 64px -28px rgba(21, 69, 126, .45);
  display: block;
}
.mca-hero-mock {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 340px;
  background: #fff;
  border: 1px solid var(--pl-line);
  border-radius: 18px;
  box-shadow: 0 30px 70px -28px rgba(15, 35, 70, .4);
  padding: .85rem .85rem 1rem;
}
.mca-hero-mock__stage { position: relative; }
.mca-hero-mock__slide { display: none; }
.mca-hero-mock__slide.is-on { display: block; }
.mca-hero-mock .mca-invoice {
  border: 1px solid var(--pl-line);
  border-radius: 8px;
}
.mca-hero-mock__caption {
  margin: .75rem 0 0;
  text-align: center;
  font-size: .82rem;
  font-weight: 700;
  color: var(--navy);
}

/* ---- Hero feature auto-slider --------------------------------------------- */
.mca-hero-slider {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid var(--pl-line);
  border-radius: 22px;
  box-shadow: 0 30px 70px -28px rgba(15, 35, 70, .42);
  padding: .85rem .85rem 1rem;
}
.mca-hero-slider__viewport {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #f4f8fc;
  min-height: 318px;
}
.mca-hero-slider__stage { position: relative; min-height: 318px; }
.mca-hero-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(18px);
  transition: opacity .45s ease, transform .45s ease, visibility .45s ease;
  pointer-events: none;
}
.mca-hero-slider__slide.is-on {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  z-index: 1;
}
.mca-hslide-ui {
  height: 100%;
  min-height: 318px;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.mca-hslide-ui__bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .7rem;
  font-size: .78rem;
  font-weight: 800;
  color: #fff;
  background: var(--pl-grad);
  letter-spacing: -.01em;
}
.mca-hslide-ui__mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255,255,255,.2);
  font-size: .62rem;
  flex: none;
}
.mca-hslide-ui__body {
  flex: 1;
  padding: .75rem .8rem .85rem;
}
.mca-hslide-ui--paper .mca-hslide-ui__body {
  padding: .45rem;
  background: #eef3f8;
  overflow: hidden;
}
.mca-hslide-ui--paper .mca-invoice {
  aspect-ratio: auto;
  min-height: 250px;
  max-height: 270px;
  border: 1px solid var(--pl-line);
  border-radius: 8px;
  background: #fff;
}
.mca-hslide-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem;
  margin-bottom: .7rem;
}
.mca-hslide-kpis > div {
  background: #f4f8fc;
  border: 1px solid var(--pl-line);
  border-radius: 10px;
  padding: .5rem .6rem;
}
.mca-hslide-kpis b {
  display: block;
  font-size: .95rem;
  color: var(--navy);
}
.mca-hslide-kpis small {
  color: var(--pl-muted);
  font-size: .68rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.mca-hslide-rows { display: grid; gap: .4rem; }
.mca-hslide-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .6rem;
  padding: .48rem .55rem;
  background: #f7fafd;
  border: 1px solid var(--pl-line);
  border-radius: 8px;
  font-size: .78rem;
  color: var(--pl-muted);
}
.mca-hslide-row b { color: var(--navy); font-weight: 700; white-space: nowrap; }
.mca-hslide-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: .65rem;
}
.mca-hslide-chips span {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(27,117,187,.1);
  border: 1px solid rgba(27,117,187,.18);
  border-radius: 999px;
  padding: .22rem .55rem;
}
.mca-hslide-btns {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: .65rem;
}
.mca-hslide-btns span {
  font-size: .7rem;
  font-weight: 700;
  color: #fff;
  background: var(--pl-grad);
  border-radius: 999px;
  padding: .32rem .6rem;
}
.mca-hslide-doc em {
  display: block;
  font-style: normal;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--blue);
  margin-bottom: .2rem;
}
.mca-hslide-doc > strong {
  display: block;
  color: var(--navy);
  font-size: .88rem;
  margin-bottom: .65rem;
}
.mca-hslide-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: .3rem;
  margin-bottom: .7rem;
  text-align: center;
  font-size: .62rem;
  font-weight: 800;
  color: var(--pl-muted);
}
.mca-hslide-week i {
  height: 22px;
  border-radius: 5px;
  background: #e8eef5;
}
.mca-hslide-week i.on { background: var(--green); }
.mca-hslide-week i.half { background: var(--orange); }
.mca-hslide-bars {
  display: flex;
  align-items: flex-end;
  gap: .45rem;
  height: 78px;
  margin-bottom: .7rem;
  padding: 0 .2rem;
}
.mca-hslide-bars i {
  flex: 1;
  height: var(--h, 50%);
  border-radius: 6px 6px 2px 2px;
  background: var(--pl-grad);
  opacity: .85;
}
.mca-hslide-letter {
  background: #fff;
  border: 1px solid var(--pl-line);
  border-radius: 10px;
  padding: .85rem;
  margin-bottom: .2rem;
}
.mca-hslide-letter strong { display: block; color: var(--navy); }
.mca-hslide-letter small { color: var(--pl-muted); font-size: .72rem; }
.mca-hslide-letter p {
  height: 8px;
  border-radius: 4px;
  background: #e8eef5;
  margin: .55rem 0 0;
}
.mca-hslide-letter p:nth-child(3) { width: 92%; }
.mca-hslide-letter p:nth-child(4) { width: 78%; }
.mca-hslide-letter p:nth-child(5) { width: 64%; }
.mca-hslide-papers {
  display: flex;
  gap: .45rem;
  justify-content: center;
  margin-bottom: .7rem;
}
.mca-hslide-papers i {
  width: 64px;
  height: 88px;
  border-radius: 6px;
  border: 1px solid var(--pl-line);
  background: linear-gradient(180deg, #fff, #eef4fa);
  box-shadow: 0 8px 16px -12px rgba(15,35,70,.4);
}
.mca-hslide-papers i:nth-child(2) { background: linear-gradient(180deg, #1b75bb, #4cae3f); opacity: .35; }
.mca-hslide-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem .85rem;
  margin-bottom: .7rem;
  border: 1px dashed var(--pl-line);
  border-radius: 12px;
  background: #f7fafd;
}
.mca-hslide-brand .mca-hslide-ui__mark {
  width: 42px;
  height: 42px;
  background: var(--pl-grad);
  color: #fff;
  font-size: .85rem;
}
.mca-hslide-sign {
  font-family: "Segoe Script", "Comic Sans MS", cursive;
  color: var(--navy);
  font-size: 1.05rem;
}
.mca-hero-slider__meta { padding: .85rem .2rem .15rem; text-align: left; }
.mca-hero-slider__group {
  display: block;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .2rem;
}
.mca-hero-slider__title {
  display: block;
  font-size: 1.05rem;
  color: var(--navy);
  letter-spacing: -.02em;
}
.mca-hero-slider__blurb {
  margin: .3rem 0 0;
  font-size: .84rem;
  color: var(--pl-muted);
  line-height: 1.4;
  min-height: 2.6em;
}
.mca-hero-slider__nav {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .75rem;
}
.mca-hero-slider__btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--pl-line);
  background: #fff;
  color: var(--navy);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  flex: none;
}
.mca-hero-slider__btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.mca-hero-slider__progress {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: #e4eef6;
  overflow: hidden;
}
.mca-hero-slider__progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--pl-grad);
}
.mca-hero-slider__progress span.is-run {
  animation-name: mcaHeroBar;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}
@keyframes mcaHeroBar {
  from { width: 0; }
  to { width: 100%; }
}
.mca-hero-slider__count {
  font-size: .72rem;
  font-weight: 700;
  color: var(--pl-muted);
  white-space: nowrap;
  min-width: 3.4rem;
  text-align: right;
}
.mca-hero-slider__hint {
  margin: .55rem 0 0;
  text-align: center;
  font-size: .72rem;
  font-weight: 600;
  color: var(--pl-muted);
}
@media (prefers-reduced-motion: reduce) {
  .mca-hero-slider__slide { transition: none; }
  .mca-hero-slider__progress span.is-run { animation: none; width: 100%; }
}

/* ---- Stats band ----------------------------------------------------------- */
.mca-stats { border-top: 1px solid var(--pl-line); border-bottom: 1px solid var(--pl-line); background: rgba(255,255,255,.55); }
.mca-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.mca-stat { text-align: center; padding: 1.5rem 1rem; }
.mca-stat + .mca-stat { border-left: 1px solid var(--pl-line); }
.mca-stat b {
  display: block; font-size: 1.9rem; font-weight: 800;
  background: var(--pl-grad-text);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.mca-stat span { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--pl-muted); }

/* ---- Generic section ------------------------------------------------------ */
.mca-section { padding: clamp(3rem, 7vw, 5rem) 0; }
.mca-section--tint { background: rgba(255,255,255,.6); border-top: 1px solid var(--pl-line); border-bottom: 1px solid var(--pl-line); }
.mca-section__head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.mca-eyebrow { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.mca-section__head h2 { margin: .5rem 0 .6rem; font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.mca-section__head h2 .mca-emoji { -webkit-text-fill-color: initial; }
.mca-section__head p { margin: 0; font-size: 1.05rem; color: var(--pl-muted); }

/* ---- Feature cards -------------------------------------------------------- */
.mca-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.mca-card {
  background: #fff; border: 1px solid var(--pl-line); border-radius: var(--pl-radius);
  padding: 1.5rem; box-shadow: var(--pl-shadow-card);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.mca-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -22px rgba(21, 69, 126, .35); border-color: rgba(27,117,187,.35); }
.mca-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 13px; font-size: 1.35rem;
  background: var(--pl-grad); color: #fff; margin-bottom: 1rem;
  box-shadow: var(--pl-shadow-soft);
}
.mca-card h3 { margin: 0 0 .5rem; font-size: 1.1rem; color: var(--navy); font-weight: 700; }
.mca-card p { margin: 0; color: var(--pl-muted); font-size: .94rem; }

.mca-feat-groups { display: grid; gap: 1.75rem; }
.mca-feat-group h3 {
  margin: 0 0 .75rem;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
}
.mca-feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}
.mca-feat {
  background: #fff;
  border: 1px solid var(--pl-line);
  border-radius: 12px;
  padding: .85rem .95rem 1rem;
  box-shadow: 0 10px 24px -22px rgba(15, 35, 70, .4);
}
.mca-feat h4 { margin: 0 0 .3rem; font-size: .95rem; color: var(--navy); }
.mca-feat p { margin: 0; font-size: .82rem; color: var(--pl-muted); line-height: 1.4; }
.mca-workflow-cta { text-align: center; margin: 1.6rem 0 0; }

/* ==========================================================================
   TEMPLATE GALLERY (realistic invoice papers in a horizontal scroller)
   ========================================================================== */
.mca-gallery { position: relative; }
.mca-gallery__track {
  display: flex; gap: 1.5rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: .5rem .25rem 1rem;
  -ms-overflow-style: none; scrollbar-width: none;
}
.mca-gallery__track::-webkit-scrollbar { display: none; }

.mca-tpl-card {
  flex: 0 0 clamp(240px, 26vw, 300px);
  scroll-snap-align: start;
  background: transparent; border: 0; padding: 0; margin: 0;
  text-align: center; cursor: pointer; font: inherit; color: inherit;
}
.mca-tpl-card__paper {
  position: relative;
  background: #fff; border: 1px solid var(--pl-line); border-radius: 12px;
  box-shadow: 0 18px 44px -22px rgba(15, 35, 70, .35);
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.mca-tpl-card:hover .mca-tpl-card__paper,
.mca-tpl-card:focus-visible .mca-tpl-card__paper {
  transform: translateY(-6px); border-color: rgba(27,117,187,.4);
  box-shadow: 0 30px 60px -24px rgba(21, 69, 126, .5);
}
.mca-tpl-card__overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(10,28,56,0) 40%, rgba(10,28,56,.28));
  opacity: 0; transition: opacity .2s ease;
}
.mca-tpl-card:hover .mca-tpl-card__overlay,
.mca-tpl-card:focus-visible .mca-tpl-card__overlay { opacity: 1; }
.mca-tpl-card__view {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #fff; color: var(--navy); font-weight: 700; font-size: .85rem;
  padding: .55rem 1.1rem; border-radius: 999px; box-shadow: 0 10px 24px -10px rgba(0,0,0,.4);
  transform: translateY(8px); transition: transform .2s ease;
}
.mca-tpl-card:hover .mca-tpl-card__view { transform: none; }
.mca-tpl-card__label { margin-top: .9rem; font-size: 1.05rem; font-weight: 800; color: var(--navy); letter-spacing: -.01em; }
.mca-tpl-card__sub { margin-top: .15rem; font-size: .82rem; color: var(--pl-muted); }

/* Gallery arrows */
.mca-gallery__arrow {
  position: absolute; top: 38%; transform: translateY(-50%); z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--pl-line);
  background: rgba(255,255,255,.96); color: var(--navy); font-size: 1.35rem; cursor: pointer; line-height: 1;
  box-shadow: 0 12px 28px -12px rgba(15,35,70,.45); transition: background .15s, color .15s, opacity .15s;
}
.mca-gallery__arrow:hover { background: var(--blue); color: #fff; }
.mca-gallery__arrow--prev { left: -12px; }
.mca-gallery__arrow--next { right: -12px; }
.mca-gallery__arrow[disabled] { opacity: 0; pointer-events: none; }

/* ==========================================================================
   Realistic invoice mock (used in gallery cards + modal)
   Accent set per template via --mock-accent.
   ========================================================================== */
.mca-invoice {
  --ink: #2b3a4d; --ink-soft: #e4ebf3; --ink-line: #eef3f8;
  aspect-ratio: 210 / 297; width: 100%;
  background: #fff; padding: 7%;
  display: flex; flex-direction: column; font-size: 0;
}
.mca-invoice--live {
  font-size: 7.4px;
  line-height: 1.28;
  color: #24364c;
  letter-spacing: 0;
}
.mca-invoice--live .mca-invoice__logo {
  display: grid; place-items: center;
  color: #fff; font-size: 8px; font-weight: 800;
}
.mca-invoice--live .mca-invoice__co { display: grid; gap: 1px; }
.mca-invoice--live .mca-invoice__co strong { font-size: 9px; color: var(--navy); }
.mca-invoice--live .mca-invoice__co small,
.mca-invoice--live .mca-invoice__title small,
.mca-invoice--live .mca-invoice__party small,
.mca-invoice--live .mca-invoice__bank small { font-size: 6.6px; color: #5a6b7e; }
.mca-invoice--live .mca-invoice__title { display: grid; gap: 1px; }
.mca-invoice--live .mca-invoice__tax { font-size: 8px; }
.mca-invoice--live .mca-invoice__party em {
  display: block; font-style: normal; font-size: 6px; letter-spacing: .08em;
  text-transform: uppercase; color: #7a8ba0; margin-bottom: 1px;
}
.mca-invoice--live .mca-invoice__party strong { display: block; font-size: 7.4px; }
.mca-invoice--live .mca-invoice__trow--txt {
  font-size: 6.6px; color: #2b3a4d;
}
.mca-invoice--live .mca-invoice__trow--head b { font-size: 6.2px; font-weight: 800; color: var(--mock-accent-text, var(--navy)); }
.mca-invoice--live .mca-invoice__sum {
  display: grid; gap: 2px; justify-items: end; margin-top: 7px; font-size: 6.8px;
}
.mca-invoice--live .mca-invoice__sum span { display: flex; gap: 10px; align-items: baseline; }
.mca-invoice--live .mca-invoice__sum i { font-style: normal; color: #6b7c90; }
.mca-invoice--live .mca-invoice__grand { font-size: 8px; color: var(--navy); }
.mca-invoice--live .mca-invoice__stamp {
  display: grid; place-items: center;
  font-size: 7px; font-weight: 800; color: var(--mock-accent-text, var(--navy));
  text-transform: uppercase;
}
.mca-invoice__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.mca-invoice__brand { display: flex; align-items: center; gap: 7px; min-width: 0; }
.mca-invoice__logo { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 6px; background: var(--mock-accent, var(--pl-grad)); }
.mca-invoice__co { display: grid; gap: 4px; min-width: 0; }
.mca-invoice__title { text-align: right; display: grid; gap: 4px; justify-items: end; }
.mca-invoice__tax {
  font-size: 8px; font-weight: 800; letter-spacing: .08em; line-height: 1;
  color: var(--mock-accent-text, var(--navy));
}
.mca-invoice__rule { height: 3px; border-radius: 2px; background: var(--mock-accent, var(--pl-grad)); margin: 9px 0 8px; }
.mca-invoice__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 9px; }
.mca-invoice__party { display: grid; gap: 4px; }

.mca-invoice__table { border: 1px solid var(--ink-line); border-radius: 3px; overflow: hidden; }
.mca-invoice__trow { display: grid; grid-template-columns: 2.4fr 1fr 1fr 1.2fr; gap: 6px; padding: 5px 7px; align-items: center; }
.mca-invoice__trow + .mca-invoice__trow { border-top: 1px solid var(--ink-line); }
.mca-invoice__trow--head { background: color-mix(in srgb, var(--mock-accent-solid, #1b75bb) 14%, #fff); }
.mca-invoice__trow--head i { background: color-mix(in srgb, var(--mock-accent-solid, #1b75bb) 55%, #fff); height: 5px; }

.mca-invoice__totals { display: grid; gap: 5px; justify-items: end; margin-top: 8px; }
.mca-invoice__totals .l { width: 42%; }
.mca-invoice__totals .l--accent { background: var(--mock-accent, var(--pl-grad)); width: 50%; height: 7px; }

.mca-invoice__spacer { flex: 1 1 auto; min-height: 8px; }
.mca-invoice__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.mca-invoice__bank { display: grid; gap: 4px; flex: 1 1 auto; }
.mca-invoice__stamp {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  border: 2px dashed color-mix(in srgb, var(--mock-accent-solid, #1b75bb) 55%, #fff);
  opacity: .85;
}

/* generic bar */
.mca-invoice .l { display: block; height: 5px; border-radius: 3px; background: var(--ink-soft); }
.mca-invoice .l.w80 { width: 80%; } .mca-invoice .l.w70 { width: 70%; }
.mca-invoice .l.w60 { width: 60%; } .mca-invoice .l.w50 { width: 50%; }
.mca-invoice .l.w40 { width: 40%; } .mca-invoice .l.w30 { width: 30%; }
.mca-invoice .l.strong { height: 7px; background: var(--ink); opacity: .85; }

/* Variants for visual variety across templates */
.mca-invoice--center .mca-invoice__head { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.mca-invoice--center .mca-invoice__brand { flex-direction: column; }
.mca-invoice--center .mca-invoice__co { justify-items: center; }
.mca-invoice--center .mca-invoice__title { text-align: center; justify-items: center; }
.mca-invoice--rightlogo .mca-invoice__head { flex-direction: row-reverse; }
.mca-invoice--rightlogo .mca-invoice__title { text-align: left; justify-items: start; }
.mca-invoice--band { padding-top: 0; }
.mca-invoice--band .mca-invoice__head { background: var(--mock-accent, var(--pl-grad)); margin: 0 -7% 9px; padding: 9px 7%; align-items: center; }
.mca-invoice--band .mca-invoice__co .l { background: rgba(255,255,255,.7); }
.mca-invoice--band .mca-invoice__logo { background: rgba(255,255,255,.9); }
.mca-invoice--band .mca-invoice__tax { color: #fff; }
.mca-invoice--band .mca-invoice__rule { display: none; }
.mca-invoice--band.mca-invoice--live .mca-invoice__co strong,
.mca-invoice--band.mca-invoice--live .mca-invoice__title small { color: #fff; }
.mca-invoice--band.mca-invoice--live .mca-invoice__co small { color: rgba(255,255,255,.82); }

/* ==========================================================================
   View modal
   ========================================================================== */
.mca-modal { position: fixed; inset: 0; z-index: 100; display: none; }
.mca-modal.is-open { display: block; }
.mca-modal__backdrop { position: absolute; inset: 0; background: rgba(10, 28, 56, .55); backdrop-filter: blur(3px); }
.mca-modal__dialog {
  position: relative; z-index: 1; max-width: 720px; width: calc(100% - 2rem);
  margin: clamp(2rem, 8vh, 6rem) auto 2rem; background: #fff; border-radius: var(--pl-radius);
  box-shadow: 0 40px 90px -30px rgba(10,28,56,.6); overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr;
  animation: mcaModalIn .25s ease;
}
@keyframes mcaModalIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.mca-modal__media { background: linear-gradient(160deg, #eef4fb, #dfeaf5); padding: 1.8rem; display: flex; align-items: center; justify-content: center; }
.mca-modal__media .mca-invoice { max-width: 280px; border: 1px solid var(--pl-line); border-radius: 8px; box-shadow: 0 20px 44px -18px rgba(10,28,56,.4); }
.mca-modal__media .mca-invoice--live { font-size: 10px; }
.mca-modal__body { padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; justify-content: center; }
.mca-modal__key { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: .5rem; }
.mca-modal__title { margin: 0 0 .7rem; font-size: 1.6rem; font-weight: 800; color: var(--navy); }
.mca-modal__desc { margin: 0 0 1.5rem; color: var(--pl-muted); }
.mca-modal__close {
  position: absolute; top: .75rem; right: .75rem; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.9); color: var(--navy); font-size: 1.2rem; line-height: 1;
  box-shadow: 0 6px 16px -8px rgba(15,35,70,.4);
}
.mca-modal__close:hover { background: var(--blue); color: #fff; }

/* ---- Workflow timeline ---------------------------------------------------- */
.mca-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.mca-step { background: #fff; border: 1px solid var(--pl-line); border-radius: var(--pl-radius-sm); padding: 1.35rem 1.15rem; box-shadow: var(--pl-shadow-card); }
.mca-step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; font-weight: 800; color: #fff; background: var(--pl-grad); margin-bottom: .9rem;
}
.mca-step h3 { margin: 0 0 .4rem; font-size: 1.02rem; color: var(--navy); font-weight: 700; }
.mca-step p { margin: 0; color: var(--pl-muted); font-size: .9rem; }

/* ---- Getting started cards ------------------------------------------------ */
.mca-start { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.mca-start__card { background: #fff; border: 1px solid var(--pl-line); border-radius: var(--pl-radius-sm); padding: 1.3rem; box-shadow: var(--pl-shadow-card); }
.mca-start__num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 800; color: var(--blue); background: rgba(27,117,187,.12); margin-bottom: .8rem; }
.mca-start__card h3 { margin: 0 0 .35rem; font-size: 1rem; color: var(--navy); font-weight: 700; }
.mca-start__card p { margin: 0; color: var(--pl-muted); font-size: .9rem; }

/* ---- CTA band ------------------------------------------------------------- */
.mca-cta { position: relative; overflow: hidden; text-align: center; background: var(--pl-grad); }
.mca-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% -20%, rgba(255,255,255,.25), transparent 60%); pointer-events: none; }
.mca-cta__inner { position: relative; z-index: 1; padding: clamp(3rem, 7vw, 4.5rem) 0; }
.mca-cta h2 { margin: 0 0 .6rem; font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; font-weight: 800; }
.mca-cta p { margin: 0 auto 1.6rem; max-width: 46ch; color: rgba(255,255,255,.92); }
.mca-cta__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-bottom: 1.1rem; }
.mca-cta .mca-btn--primary { background: #fff; color: var(--navy); box-shadow: 0 16px 34px -16px rgba(0,0,0,.4); }
.mca-cta .mca-btn--ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.5); }
.mca-cta .mca-btn--ghost:hover { background: rgba(255,255,255,.24); }
.mca-cta__contact { color: rgba(255,255,255,.92); font-size: .92rem; }
.mca-cta__contact a { color: #fff; font-weight: 700; text-decoration: underline; }

/* ---- GST Calculator (modern, on-theme) ------------------------------------ */

/* Hero visual wrapper — soft glow halo behind the card */
.mca-hero__visual {
  position: relative;
  display: flex; justify-content: center; align-items: flex-start;
}
.mca-hero__visual::before {
  content: "";
  position: absolute; inset: 4% -8%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(360px 240px at 74% 18%, rgba(27,117,187,.20), transparent 70%),
    radial-gradient(300px 220px at 16% 78%, rgba(76,174,63,.16), transparent 70%);
}

/* Card shell */
.mca-gst-calc {
  position: relative; z-index: 1;
  width: 100%; max-width: 430px;
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(21,69,126,.08);
  box-shadow:
    0 2px 6px rgba(21,69,126,.06),
    0 18px 40px -12px rgba(21,69,126,.18),
    0 40px 80px -24px rgba(21,69,126,.22);
  overflow: hidden;
}

/* Gradient header band */
.mca-gst-calc__header {
  display: flex; align-items: center; gap: .75rem;
  padding: .95rem 1.35rem;
  background:
    radial-gradient(420px 160px at 90% -40%, rgba(255,255,255,.22), transparent 70%),
    var(--pl-grad);
  position: relative;
}
.mca-gst-calc__header-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 13px; color: #fff;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(4px);
}
.mca-gst-calc__header-text { line-height: 1.25; }
.mca-gst-calc__heading {
  margin: 0; font-size: 1.1rem; font-weight: 800; letter-spacing: -.02em; color: #fff;
}
.mca-gst-calc__subheading {
  margin: .1rem 0 0; font-size: .76rem; font-weight: 500; color: rgba(255,255,255,.82);
}

/* Body */
.mca-gst-calc__body {
  padding: 1.05rem 1.35rem 1rem;
  display: flex; flex-direction: column; gap: .8rem;
}

/* Section group */
.mca-gst-calc__section { display: flex; flex-direction: column; gap: .4rem; }

/* Section label — modern uppercase micro-label */
.mca-gst-calc__slabel {
  font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--pl-muted);
}
label.mca-gst-calc__slabel { display: block; }

/* Segmented toggle (shared look for structure + type) */
.mca-gst-calc__struct-row,
.mca-gst-calc__type-row {
  display: grid; gap: 5px;
  background: #eef4fa;
  border: 1px solid var(--pl-line);
  border-radius: 13px; padding: 5px;
}
.mca-gst-calc__struct-row { grid-template-columns: 1fr 1.35fr; }
.mca-gst-calc__type-row   { grid-template-columns: 1fr 1fr; }

.mca-gst-calc__struct-btn,
.mca-gst-calc__type-btn {
  border: none; background: transparent;
  border-radius: 9px; padding: .5rem .6rem;
  font-size: .82rem; font-weight: 700; color: var(--pl-muted);
  cursor: pointer; font-family: inherit; text-align: center;
  transition: color .18s, background .18s, box-shadow .18s, transform .12s;
}
.mca-gst-calc__struct-btn:hover,
.mca-gst-calc__type-btn:hover { color: var(--navy); }
.mca-gst-calc__struct-btn.active,
.mca-gst-calc__type-btn.active {
  background: #fff; color: var(--navy);
  box-shadow: 0 1px 2px rgba(21,69,126,.08), 0 4px 12px -4px rgba(21,69,126,.22);
}
/* Type-active gets a brand accent underline cue */
.mca-gst-calc__type-btn.active {
  background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(27,117,187,.5);
}

/* Info note box */
.mca-gst-calc__note {
  display: flex; gap: .5rem;
  background: rgba(27,117,187,.06);
  border: 1px solid rgba(27,117,187,.14);
  border-radius: 11px;
  padding: .5rem .75rem;
  font-size: .76rem; color: var(--blue); line-height: 1.5;
}
.mca-gst-calc__note::before {
  content: "ℹ"; flex-shrink: 0; font-weight: 700;
  font-size: .82rem; line-height: 1.4; opacity: .85;
}

/* Inputs (amount + rate) */
.mca-gst-calc__input-wrap,
.mca-gst-calc__rate-wrap {
  display: flex; align-items: center;
  border: 1.5px solid var(--pl-line); border-radius: 13px;
  background: #f7fafd; overflow: hidden;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.mca-gst-calc__input-wrap:focus-within,
.mca-gst-calc__rate-wrap:focus-within {
  border-color: var(--blue); background: #fff;
  box-shadow: 0 0 0 4px rgba(27,117,187,.1);
}
.mca-gst-calc__currency {
  padding: 0 .55rem 0 1rem; font-size: 1.1rem; font-weight: 800;
  color: var(--blue); user-select: none; flex-shrink: 0;
}
.mca-gst-calc__input,
.mca-gst-calc__rate-input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 1.1rem; font-weight: 800; color: var(--navy); font-family: inherit;
}
.mca-gst-calc__input { padding: .62rem .9rem .62rem 0; }
.mca-gst-calc__rate-input { padding: .62rem 0 .62rem 1rem; }
.mca-gst-calc__input::placeholder { font-weight: 500; color: #b8c7d8; font-size: 1rem; }
.mca-gst-calc__input::-webkit-inner-spin-button,
.mca-gst-calc__input::-webkit-outer-spin-button,
.mca-gst-calc__rate-input::-webkit-inner-spin-button,
.mca-gst-calc__rate-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.mca-gst-calc__rate-suffix {
  padding: 0 1.1rem 0 .3rem; font-size: 1.05rem; font-weight: 800;
  color: var(--blue); user-select: none;
}

/* Quick-select rate chips */
.mca-gst-calc__rates { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .1rem; }
.mca-gst-calc__rate {
  flex: 1; min-width: 48px;
  border: 1.5px solid var(--pl-line); background: #fff;
  border-radius: 10px; padding: .42rem .3rem;
  font-size: .82rem; font-weight: 700; color: var(--pl-muted);
  cursor: pointer; font-family: inherit; text-align: center;
  transition: all .15s;
}
.mca-gst-calc__rate:hover {
  border-color: var(--blue); color: var(--blue);
  background: rgba(27,117,187,.05); transform: translateY(-1px);
}
.mca-gst-calc__rate.active {
  background: var(--pl-grad); border-color: transparent; color: #fff;
  box-shadow: 0 5px 14px -5px rgba(27,117,187,.5);
  transform: translateY(-1px);
}

/* Calculate button */
.mca-gst-calc__calc-btn {
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  width: 100%; margin-top: .1rem;
  background: var(--pl-grad);
  border: none; border-radius: 14px;
  padding: .78rem 1.5rem;
  font-size: 1rem; font-weight: 800; color: #fff; letter-spacing: .01em;
  cursor: pointer; font-family: inherit;
  box-shadow: 0 8px 22px -8px rgba(27,117,187,.55);
  transition: transform .15s, box-shadow .2s, filter .2s;
}
.mca-gst-calc__calc-btn:hover {
  transform: translateY(-2px); filter: brightness(1.04);
  box-shadow: 0 12px 30px -8px rgba(27,117,187,.6);
}
.mca-gst-calc__calc-btn:active { transform: translateY(0); }

/* Results panel */
.mca-gst-calc__results {
  background: #f7fafd; border: 1px solid var(--pl-line);
  border-radius: 15px; overflow: hidden;
  animation: mca-gst-in .3s cubic-bezier(.22,1,.36,1);
}
@keyframes mca-gst-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.mca-gst-calc__rrow {
  display: flex; justify-content: space-between; align-items: center;
  padding: .62rem .95rem; border-bottom: 1px solid var(--pl-line);
}
.mca-gst-calc__rrow-lbl { font-size: .82rem; color: var(--pl-muted); }
.mca-gst-calc__rrow-val { font-size: .9rem; font-weight: 700; color: var(--navy); }
.mca-gst-calc__rtotal {
  display: flex; justify-content: space-between; align-items: center;
  padding: .85rem .95rem;
  background: linear-gradient(135deg, rgba(27,117,187,.1) 0%, rgba(76,174,63,.1) 100%);
  border-top: 1px solid rgba(27,117,187,.12);
}
.mca-gst-calc__rtotal-lbl { font-size: .84rem; font-weight: 800; color: var(--navy); }
.mca-gst-calc__rtotal-val {
  font-size: 1.35rem; font-weight: 900; letter-spacing: -.02em;
  background: var(--pl-grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Footer */
.mca-gst-calc__foot {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding-top: .65rem; margin-top: .1rem; border-top: 1px solid var(--pl-line);
}
.mca-gst-calc__trust-row {
  display: flex; align-items: center; gap: .45rem;
  font-size: .7rem; color: var(--pl-muted);
}
.mca-gst-calc__trust-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: var(--green); box-shadow: 0 0 0 3px rgba(76,174,63,.2);
}
.mca-gst-calc__cta-link {
  font-size: .74rem; font-weight: 700; color: var(--blue);
  white-space: nowrap; transition: color .15s;
}
.mca-gst-calc__cta-link:hover { color: var(--navy); }

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 900px) {
  .mca-hero__inner { grid-template-columns: 1fr; text-align: center; }
  .mca-hero__copy { max-width: none; margin: 0 auto; }
  .mca-hero__actions, .mca-trustrow, .mca-hero-pills { justify-content: center; }
  .mca-hero__lead { margin-left: auto; margin-right: auto; }
  .mca-hero__visual { margin-top: .5rem; }
  .mca-hero-slider { margin: 0 auto; text-align: left; }
  .mca-features { grid-template-columns: repeat(2, 1fr); }
  .mca-feat-grid { grid-template-columns: repeat(2, 1fr); }
  .mca-steps { grid-template-columns: repeat(3, 1fr); }
  .mca-start { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .mca-modal__dialog { grid-template-columns: 1fr; }
  .mca-modal__media { padding: 1.4rem 1.4rem .25rem; }
  .mca-gallery__arrow { display: none; }
  .mca-stats__grid { grid-template-columns: repeat(2, 1fr); }
  .mca-stat:nth-child(odd) { border-left: 0; }
  .mca-stat:nth-child(3) { border-left: 0; }
}
@media (max-width: 520px) {
  .mca-features, .mca-steps, .mca-start, .mca-feat-grid { grid-template-columns: 1fr; }
}

#features,
#layouts {
  scroll-margin-top: 5.5rem;
}
