/* ==========================================================
   Monkman Global — Apoinza product page
   (loaded after style.css)
   ========================================================== */

:root {
  --ap-teal: #0f5257;
  --ap-mint: #e6f4ef;
  --ap-green: #1e9e63;
}

/* ---------- Hero ---------- */
.ap-hero {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 0% 100%, rgba(240, 120, 74, 0.12), transparent 50%),
    linear-gradient(180deg, #fff 0%, var(--bg-warm) 100%);
}
.ap-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 48px;
}
.ap-hero .hero__text { font-size: 16.5px; max-width: 460px; }
.ap-hero .hero__actions { margin: 30px 0 0; }
/* multiply lets the photo's near-white background melt into the page */
.ap-hero__visual img,
.ap-cta__visual img {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  /* soft edges so the photo has no visible rectangle */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 90%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 10%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 90%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 10%, #000 92%, transparent 100%);
  mask-composite: intersect;
}
.ap-hero__visual { margin-right: -6%; }

/* ---------- Core features ---------- */
.ap-features { padding-top: 64px; }
.ap-features__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.ap-features__head .eyebrow { color: var(--orange); margin-bottom: 0; letter-spacing: 0.14em; font-weight: 600; }

.ap-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ap-card { position: relative; padding: 22px 18px 18px; display: flex; flex-direction: column; }
.ap-card__num {
  position: absolute;
  top: 14px; left: 14px;
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--ap-mint);
  color: var(--ap-teal);
  font-size: 11px;
  font-weight: 700;
}
.ap-card__icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin: 14px 0 16px 22px;
  border-radius: 50%;
  background: #f3f6f6;
  color: var(--ap-teal);
}
.ap-card__icon svg { width: 28px; height: 28px; }
.ap-card__icon--orange { color: var(--orange); background: #fdebe2; }
.ap-card__icon--green { color: var(--ap-green); background: var(--ap-mint); }
.ap-card__icon--wa { color: #fff; background: #25a55a; }
.ap-card h3 { font-size: 16.5px; margin-bottom: 6px; }
.ap-card > p { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 16px; }

/* ---------- Mini product previews ---------- */
.mock {
  margin-top: auto;
  padding: 12px;
  background: #fff;
  border: 1px solid #eef0f0;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(15, 58, 74, 0.05);
  font-size: 11px;
  color: var(--text);
  line-height: 1.4;
}
.mock strong { color: var(--navy-dark); font-weight: 600; }
.mock small { display: block; font-size: 10px; color: var(--muted); }
.mock__title { text-align: center; font-weight: 600; font-size: 11px; margin-bottom: 8px; }
.mock__row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 0; }
.mock__row--head { padding-bottom: 8px; }
.mock__row--total { margin-top: 6px; padding-top: 9px; border-top: 1px solid var(--line); font-size: 12px; }

.pill { padding: 2px 8px; border-radius: 4px; font-size: 9.5px; font-weight: 600; background: #f1f3f4; color: var(--muted); white-space: nowrap; }
.pill--green { background: var(--ap-mint); color: var(--ap-green); }
.pill--teal { background: #e3f1f1; color: var(--ap-teal); }
.pill--blue { background: #e3eefc; color: #2f6fd0; }

.avatar {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ap-teal);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}
.avatar--lg { width: 42px; height: 42px; font-size: 13px; background: #f0a07c; }
.avatar--b { background: #e8622c; }
.avatar--c { background: #6f8a99; }

/* 01 calendar */
.cal { display: grid; grid-template-columns: 30px repeat(5, minmax(0, 1fr)); gap: 3px; align-items: stretch; }
.cal > span { font-size: 8.5px; color: var(--muted); padding-top: 6px; }
.cal > b { text-align: center; font-size: 8px; font-weight: 500; color: var(--muted); padding-bottom: 4px; }
.cal > b i { display: block; font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--navy-dark); }
.cal > b.is-today i { color: #2f6fd0; }
.cal > u { min-height: 30px; border-top: 1px solid #f1f3f4; text-decoration: none; }
.ev { font-style: normal; padding: 4px 5px; border-radius: 4px; font-size: 8.5px; font-weight: 600; min-height: 30px; overflow: hidden; white-space: nowrap; }
.ev small { font-size: 8px; font-weight: 400; color: inherit; opacity: 0.85; }
.ev--green { background: #dff3e6; color: #1c7a4c; }
.ev--blue { background: #dfeafc; color: #2a5fb5; }
.ev--purple { background: #ebe3fb; color: #6846b8; }

/* 02 patient */
.person { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.person strong { font-size: 12px; }
.tabs { display: flex; gap: 10px; border-bottom: 1px solid var(--line); margin-bottom: 10px; font-size: 9.5px; color: var(--muted); }
.tabs span { padding-bottom: 5px; }
.tabs .is-on { color: var(--ap-green); font-weight: 600; box-shadow: 0 1.5px 0 var(--ap-green); }
.timeline-mini { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 1.5px solid #e4e9ec; display: grid; gap: 8px; }
.timeline-mini li { position: relative; font-size: 10.5px; }
.timeline-mini li::before { content: ""; position: absolute; left: -18.5px; top: 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--ap-green); }
.timeline-mini li.is-purple::before { background: #7b5bd6; }

/* 04 + 07 chat */
.mock--chat { background: #f6f3ee; display: grid; gap: 8px; }
.bubble { max-width: 88%; padding: 8px 10px; border-radius: 8px; font-size: 11px; }
.bubble small { text-align: right; margin-top: 3px; font-size: 9px; }
.bubble--out { justify-self: end; background: #d9f2cf; }
.bubble--in { justify-self: start; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); }
.mock--ai { padding: 0; overflow: hidden; }
.ai-head { padding: 9px 12px; background: linear-gradient(90deg, #6a4fc9, #8a63e0); }
.ai-head strong { display: block; color: #fff; font-size: 11.5px; }
.ai-head small { color: rgba(255, 255, 255, 0.8); }
.ai-body { padding: 12px; display: grid; gap: 10px; }
.ai-body .bubble--in { background: #f3f4f6; box-shadow: none; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-chips span { padding: 4px 9px; border: 1px solid #d9d2f3; border-radius: 5px; color: #6846b8; font-size: 9.5px; font-weight: 600; }

/* 05 revenue */
.revenue { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.revenue strong { font-size: 16px; font-weight: 700; }
.revenue span { font-size: 10px; font-weight: 600; color: var(--ap-green); }
.spark { display: block; width: 100%; height: 54px; stroke: none; }
.spark__area { fill: rgba(30, 158, 99, 0.12); stroke: none; }
.spark__line { fill: none; stroke: var(--ap-green); stroke-width: 2; vector-effect: non-scaling-stroke; }

/* 06 staff */
.staff { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.staff > div { flex: 1; min-width: 0; }
.staff strong { display: block; font-size: 11px; }

/* 08 security */
.checks { list-style: none; margin: 0; padding: 0; }
.checks li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-top: 1px solid #f1f3f4;
  font-size: 11.5px;
  font-weight: 500;
}
.checks li:first-child { border-top: 0; }
.checks li::after {
  content: "";
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--ap-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 9px no-repeat;
}

/* ---------- Why clinics choose ---------- */
.ap-why-wrap { padding: 0 0 24px; }
.ap-why {
  padding: 34px 36px 38px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fdf3ec 0%, #fdf8f5 100%);
  border: 1px solid #f7e6dc;
}
.ap-why__title { display: flex; align-items: center; gap: 14px; font-size: 22px; margin-bottom: 26px; }
.ap-why__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ap-why__item { padding: 0 24px; border-left: 1px solid #f1dccf; }
.ap-why__item:first-child { padding-left: 0; border-left: 0; }
.ap-why__item svg { width: 34px; height: 34px; margin-bottom: 14px; }
.ap-why__item h3 { font-size: 15px; margin-bottom: 6px; }
.ap-why__item p { font-size: 13px; color: var(--muted); }

/* ---------- Technology ---------- */
.ap-tech { padding-top: 64px; padding-bottom: 64px; }
.ap-tech .eyebrow { color: var(--orange); letter-spacing: 0.14em; font-weight: 600; }
.ap-tech__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.ap-tech__list li {
  flex: 1 1 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
  padding: 12px 18px;
  text-align: center;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy-dark);
  background: #fff;
  border: 1px solid #f1ece8;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.ap-tech__list li::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

/* ---------- CTA ---------- */
.ap-cta-wrap { padding: 0 0 80px; }
.ap-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: center;
  padding: 40px 44px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 100% 100%, rgba(240, 120, 74, 0.16), transparent 55%),
    linear-gradient(180deg, #fdf1e9 0%, #fdf7f3 100%);
}
.ap-cta__title { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.02em; margin-bottom: 14px; }
.ap-cta .muted { max-width: 440px; margin-bottom: 26px; font-size: 16px; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (min-width: 1200px) {
  /* keep each sentence of the heading on its own line */
  .ap-hero .hero__title { white-space: nowrap; position: relative; z-index: 1; }
}

@media (max-width: 1100px) {
  .ap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-why__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .ap-why__item:nth-child(4) { padding-left: 0; border-left: 0; }
}

@media (max-width: 960px) {
  .ap-hero__inner, .ap-cta { grid-template-columns: minmax(0, 1fr); }
  .ap-hero .hero__text { max-width: none; }
  .ap-hero__visual { max-width: 640px; width: 100%; margin: 0 auto; }
  .ap-cta__visual { max-width: 520px; }
}

@media (max-width: 600px) {
  .ap-grid { grid-template-columns: minmax(0, 1fr); }
  .ap-hero .hero__actions { flex-direction: column; }
  .ap-hero .hero__actions .btn { width: 100%; }
  .ap-why { padding: 26px 20px 30px; }
  .ap-why__title { font-size: 19px; }
  .ap-why__grid { grid-template-columns: minmax(0, 1fr); row-gap: 22px; }
  .ap-why__item { padding-left: 0; border-left: 0; }
  .ap-tech__list li { flex-basis: 140px; font-size: 13.5px; }
  .ap-cta { padding: 28px 20px; }
  .ap-cta .cta__actions { flex-direction: column; }
}
