/* =========================================================================
   The Cleaner CRM - components for the multi-page product site
   Loaded after styles.css. Palette tokens come from styles.css :root.
   ========================================================================= */

/* generic inline icon */
.ic { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ic svg { width: 16px; height: 16px; }

/* button row */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.btn-row--center { justify-content: center; }

.center { text-align: center; }
.narrow { max-width: 760px; }
.textlink { font-weight: 650; display: inline-flex; align-items: center; gap: 6px; }
.textlink svg { width: 15px; height: 15px; }
.section-intro { font-size: 1.12rem; color: var(--slate); line-height: 1.7; }
.section-intro strong { color: var(--navy-900); }

/* breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--slate-light); margin-bottom: 18px; }
.crumbs a { color: var(--slate); font-weight: 550; }
.crumbs a:hover { color: var(--navy-900); }
.crumbs__sep { color: var(--border); }
.crumbs [aria-current] { color: var(--navy-900); font-weight: 650; }

/* image slot / photo */
.imgslot { width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-md); background: var(--grey-50); object-fit: cover; }
.imgslot--hero { box-shadow: var(--shadow-lg); }
.hero__media { position: relative; }
.hero__media .imgslot { max-height: 520px; }

/* cut-out photo (transparent PNG of a person, no frame) floating on a soft
   brand panel with an alpha-following drop shadow */
.imgslot--cutout {
  border: 0; box-shadow: none; background: none; object-fit: contain;
  border-radius: 0; position: relative; z-index: 1;
  filter: drop-shadow(0 26px 34px rgba(30, 27, 75, 0.24));
}
.media-blob { position: relative; display: flex; align-items: flex-end; justify-content: center; }
.media-blob::before {
  content: ""; position: absolute; inset: 4% 0 8%; z-index: 0; border-radius: var(--radius-lg);
  background: radial-gradient(120% 120% at 30% 15%, var(--teal-50) 0%, #eef0fb 55%, #e6e8f6 100%);
  box-shadow: inset 0 0 0 1px var(--border);
}
.media-blob .imgslot--cutout { max-height: 560px; }

/* inner-page hero */
.phero { position: relative; overflow: hidden; padding-block: 64px 72px; border-bottom: 1px solid var(--border);
  background: radial-gradient(700px 340px at 82% 0%, rgba(99,102,241,0.13), transparent 60%), linear-gradient(180deg, #fbfbff, #f3f3fb); }
.phero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center; }
.phero--solo .phero__grid { grid-template-columns: 1fr; }
.phero--solo .phero__copy { max-width: 780px; }
.phero__copy h1 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); margin: 10px 0 16px; }
.phero__media .imgslot { max-height: 460px; }

/* card grids + link cards */
.card-grid { display: grid; gap: 18px; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.linkcard { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); color: inherit;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, border-color 0.2s; }
.linkcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--teal-100); color: inherit; }
.linkcard h3 { font-size: 1.04rem; }
.linkcard p { font-size: 0.9rem; color: var(--slate); margin: 0; flex: 1; }
.linkcard__ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--teal-50), #fff); border: 1px solid var(--teal-100); color: var(--teal-600); margin-bottom: 6px; }
.linkcard__ic svg { width: 21px; height: 21px; }
.linkcard__go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.85rem; color: var(--teal-700); margin-top: 4px; }
.linkcard__go svg { width: 15px; height: 15px; }
.linkcard--lg { padding: 26px; }
.linkcard--sm { flex-direction: row; align-items: center; justify-content: space-between; padding: 16px 18px; }
.linkcard--sm h3 { font-size: 0.95rem; }

/* split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; padding-block: 24px; }
.split + .split { margin-top: 20px; border-top: 1px solid var(--border); padding-top: 44px; }
.split--flip .split__media { order: -1; }
.split__text h3 { font-size: 1.45rem; margin: 10px 0 12px; }
.split__text p { color: var(--slate); }
.split__media .mini, .split__media .imgslot { width: 100%; }

/* sub-feature grid */
.sf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sf { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.sf__ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 12px;
  background: var(--teal-50); color: var(--teal-600); border: 1px solid var(--teal-100); }
.sf__ic svg { width: 19px; height: 19px; }
.sf h3 { font-size: 1rem; margin-bottom: 6px; }
.sf p { font-size: 0.9rem; color: var(--slate); margin: 0; }

/* numbered steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; padding: 0; }
.steps__item { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow-sm); }
.steps__item::before { counter-increment: s; content: counter(s); width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: linear-gradient(180deg, var(--teal-400), var(--teal-600)); color: #fff; font-weight: 800; margin-bottom: 12px; }
.steps__item h4 { font-size: 0.98rem; margin-bottom: 6px; }
.steps__item p { font-size: 0.86rem; color: var(--slate); margin: 0; }

/* outcomes strip (navy sections) */
.outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.outcomes__item { display: flex; gap: 12px; align-items: flex-start; padding: 18px 20px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); color: #dcdcf3; font-weight: 500; font-size: 0.95rem; }
.outcomes__item .ic { color: var(--teal-400); margin-top: 2px; }

/* tick list */
.ticklist { display: grid; gap: 10px; margin-top: 16px; padding: 0; }
.ticklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; color: var(--navy-800); }
.ticklist .ic { color: var(--teal-600); margin-top: 2px; }

/* day-in-the-life list */
.daylist { display: grid; gap: 12px; margin-top: 18px; padding: 0; }
.daylist li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); font-size: 0.95rem; color: var(--navy-800); }
.daylist .ic { color: var(--teal-600); margin-top: 2px; }

/* team grid */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.team-card { text-align: center; }
.team-card__ava { width: 100%; max-width: 180px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; border: 1px solid var(--border); background: var(--grey-50); margin: 0 auto 12px; display: block; }
.team-card figcaption b { display: block; color: var(--navy-900); font-size: 0.95rem; }
.team-card figcaption span { font-size: 0.83rem; color: var(--slate-light); }

/* testimonial photo (replaces initials avatar) */
.person__ava { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); background: var(--grey-50); flex: none; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contact-lines { display: grid; gap: 16px; margin-top: 20px; }
.contact-lines p { margin: 0; font-size: 0.95rem; color: var(--slate); }
.contact-lines b { color: var(--navy-900); }

/* book-a-demo page photo */
.demo-photo { margin-top: 24px; }
.demo-photo .imgslot { max-height: 360px; }

.spark--lg { height: 54px; gap: 6px; }
.spark--lg i { width: 12px; }

/* =========================================================================
   Lead-capture popup
   ========================================================================= */
.lead-modal[hidden] { display: none; }
.lead-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.lead-modal__backdrop { position: absolute; inset: 0; background: rgba(30, 27, 75, 0.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.lead-modal__dialog { position: relative; width: 100%; max-width: 860px; max-height: calc(100vh - 40px); overflow-y: auto;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); animation: lm-in 0.22s var(--ease); }
@keyframes lm-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.lead-modal__x { position: absolute; top: 12px; right: 14px; z-index: 2; width: 36px; height: 36px; border: 0; border-radius: 9px;
  background: var(--grey-100); color: var(--slate); font-size: 1.4rem; line-height: 1; }
.lead-modal__x:hover { background: var(--grey-200); color: var(--navy-900); }
.lead-modal__body { display: grid; grid-template-columns: 0.9fr 1.1fr; }
.lead-modal__intro { padding: 34px 30px; background: linear-gradient(170deg, var(--navy-800), var(--navy-900)); color: #cfcff0; border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.lead-modal__intro .eyebrow { color: var(--teal-400); }
.lead-modal__intro h2 { color: #fff; font-size: 1.5rem; margin-bottom: 10px; }
.lead-modal__intro p { font-size: 0.95rem; margin-bottom: 18px; }
.lead-modal__intro .ticklist li { color: #cfcff0; }
.lead-modal__intro .ticklist .ic { color: var(--teal-400); }
.lead-modal__formwrap { padding: 30px; }
.lead-modal .form-success { display: none; text-align: center; padding: 30px 16px; }
.lead-modal .form-success .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--teal-50); color: var(--teal-600); display: grid; place-items: center; margin: 0 auto 14px; }
.lead-modal .form-success .tick svg { width: 26px; height: 26px; }
.lead-modal.is-done .lead-modal__formwrap form { display: none; }
.lead-modal.is-done .form-success { display: block; }
body.lead-open { overflow: hidden; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1024px) {
  .phero__grid { grid-template-columns: 1fr; gap: 34px; }
  .card-grid--4, .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .sf-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .outcomes { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split--flip .split__media { order: 0; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .lead-modal__body { grid-template-columns: 1fr; }
  .lead-modal__intro { border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 26px 24px; }
}
@media (max-width: 720px) {
  .card-grid--2, .card-grid--3, .card-grid--4, .sf-grid, .steps { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .btn-row .btn { width: 100%; }
  .lead-modal { padding: 0; align-items: stretch; }
  .lead-modal__dialog { max-width: none; max-height: 100vh; border-radius: 0; }
  .lead-modal__intro { border-radius: 0; }
  .lead-modal__intro .ticklist { display: none; }
}

/* =========================================================================
   Hero v2 - live product visual + atmosphere
   ========================================================================= */
.hero--v2 { position: relative; overflow: hidden; padding-block: 24px 44px; min-height: calc(100svh - 72px); display: flex; align-items: flex-start; isolation: isolate; }
.hero--v2 .hero__grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 48px; width: 100%; align-items: center; }
.hero--v2 h1 { font-size: clamp(2rem, 5vw, 4rem); line-height: 1.03; margin-bottom: 14px; overflow-wrap: break-word; }
.hero--v2 .hero__sub { font-size: 1.14rem; }
.hero--v2 .hero__trust { margin-top: clamp(20px, 4vw, 44px); }

.hero__bg { position: absolute; inset: -20% -10% -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(46% 40% at 82% 8%, rgba(99,102,241,0.30), transparent 70%),
    radial-gradient(40% 46% at 8% 90%, rgba(51,46,115,0.20), transparent 72%),
    radial-gradient(60% 50% at 50% 0%, rgba(255,255,255,0.6), transparent 60%),
    linear-gradient(180deg, #fbfbff, #f0f1fa);
}
.hero__bg::after { content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(40,36,94,0.09) 1px, transparent 1.4px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(62% 55% at 64% 26%, #000, transparent 70%);
  mask-image: radial-gradient(62% 55% at 64% 26%, #000, transparent 70%);
}

.hero__stage { position: relative; perspective: 1600px; padding: 6px 4px; }
.appwin {
  position: relative; border-radius: 18px; overflow: hidden;
  background: #fff; border: 1px solid var(--border);
  box-shadow: 0 40px 90px -30px rgba(30,27,75,0.42), 0 12px 30px -12px rgba(30,27,75,0.24);
  transform: rotateX(2deg) rotateY(-7deg) rotateZ(0.3deg) scale(0.985);
  transform-origin: 62% 50%;
  transition: transform 0.6s var(--ease);
}
.hero__stage:hover .appwin { transform: rotateX(0) rotateY(0) scale(1); }
.appwin__bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--grey-50); border-bottom: 1px solid var(--border); }
.appwin__bar > i { width: 9px; height: 9px; border-radius: 50%; background: #d4dde5; }
.appwin__bar > i:nth-child(1) { background: #ff6058; }
.appwin__bar > i:nth-child(2) { background: #ffbe2f; }
.appwin__bar > i:nth-child(3) { background: #29c940; }
.appwin__url { margin-left: 10px; font-size: 0.74rem; font-weight: 600; color: var(--slate-light); }
.appwin__ava { margin-left: auto; display: flex; }
.appwin__ava s { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--grey-50); margin-left: -7px; background: linear-gradient(140deg, var(--teal-400), var(--navy-600)); }
.appwin__ava s:nth-child(2) { background: linear-gradient(140deg, #f0a6c8, var(--orange-600)); }
.appwin__ava s:nth-child(3) { background: linear-gradient(140deg, #a5b4fc, var(--teal-700)); }
.appwin__body { padding: 18px; }
.appwin__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.appwin__head h4 { font-size: 1rem; }
.appwin__head small { margin-left: auto; font-size: 0.75rem; color: var(--slate-light); font-weight: 600; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700; color: var(--green-600); background: #e5f6ec; padding: 3px 9px; border-radius: 999px; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green-600); animation: hpulse 1.8s ease-in-out infinite; }
@keyframes hpulse { 0%,100% { box-shadow: 0 0 0 0 rgba(31,157,87,0.5); } 50% { box-shadow: 0 0 0 6px rgba(31,157,87,0); } }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.tile { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px; box-shadow: var(--shadow-sm); }
.tile__k { display: block; font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-light); font-weight: 700; }
.tile__v { display: block; font-family: var(--display); font-size: 1.5rem; font-weight: 600; color: var(--navy-900); letter-spacing: -0.02em; margin-top: 4px; }
.tile__d { font-size: 0.66rem; font-weight: 650; color: var(--slate-light); }
.tile__d.up { color: var(--green-600); }
.tile__d.amber { color: var(--orange-600); }
.tile--rev { display: flex; flex-direction: column; }
.tile--rev .bars { display: flex; align-items: flex-end; gap: 3px; height: 26px; margin-top: 6px; }
.tile--rev .bars i { flex: 1; background: var(--teal-400); border-radius: 2px 2px 0 0; height: var(--h);
  transform-origin: bottom; animation: bargrow 0.6s var(--ease) both; animation-delay: calc(var(--i) * 60ms + 0.3s); }
.tile--rev .bars i:last-child { background: var(--teal-600); }
@keyframes bargrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.sched { display: grid; gap: 6px; }
.sched__row { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 10px;
  padding: 9px 10px; border: 1px solid var(--grey-100); border-radius: 10px; background: var(--grey-50); font-size: 0.78rem; }
.sched__row .t { font-weight: 700; color: var(--navy-900); }
.sched__row .j { color: var(--slate); }
.who { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--navy-800); white-space: nowrap; }
.who em { width: 8px; height: 8px; border-radius: 50%; background: #c4d0da; }
.who em.ok { background: var(--green-600); }
.who em.amber { background: var(--amber-500); }
.who.swap { position: relative; display: inline-grid; }
.who.swap .s1, .who.swap .s2 { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 6px; }
.who.swap .s1 { color: var(--orange-600); animation: swap1 5.5s ease-in-out infinite; }
.who.swap .s2 { animation: swap2 5.5s ease-in-out infinite; }
@keyframes swap1 { 0%,38% { opacity: 1; } 48%,92% { opacity: 0; } 100% { opacity: 1; } }
@keyframes swap2 { 0%,38% { opacity: 0; } 48%,92% { opacity: 1; } 100% { opacity: 0; } }
.sched__row--swap { animation: rowflash 5.5s ease-in-out infinite; }
@keyframes rowflash { 0%,40% { border-color: var(--grey-100); background: var(--grey-50); } 50%,60% { border-color: var(--teal-100); background: var(--teal-50); } 80%,100% { border-color: var(--grey-100); background: var(--grey-50); } }

.floaty { position: absolute; display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px 13px;
  font-size: 0.8rem; font-weight: 600; color: var(--navy-800); box-shadow: var(--shadow-md); z-index: 2; }
.floaty .fdot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange-500); box-shadow: 0 0 0 4px rgba(244,63,94,0.18); }
.floaty .fic { width: 20px; height: 20px; border-radius: 6px; background: var(--green-600); color: #fff; display: grid; place-items: center; }
.floaty .fic svg { width: 12px; height: 12px; }
.floaty .fic--teal { background: var(--teal-600); }
.floaty--a { top: -16px; right: 5%; animation: bob 6s ease-in-out infinite; }
.floaty--b { bottom: -14px; left: 6%; animation: bob 7s ease-in-out infinite 0.6s; }
.floaty--c { top: 52%; right: -5%; animation: bob 6.5s ease-in-out infinite 1.2s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

@media (prefers-reduced-motion: no-preference) {
  .hero--v2 .hero__copy > * { animation: heroin 0.7s var(--ease) both; }
  .hero--v2 .hero__badge { animation-delay: 0.02s; }
  .hero--v2 h1 { animation-delay: 0.08s; }
  .hero--v2 .hero__sub { animation-delay: 0.16s; }
  .hero--v2 .btn-row { animation-delay: 0.24s; }
  .hero--v2 .hero__trust { animation-delay: 0.32s; }
  .hero__stage { animation: stagein 0.9s var(--ease) 0.15s both; }
  .floaty { opacity: 0; animation-name: bob, floatyin; animation-fill-mode: both; }
  .floaty--a { animation-delay: 0.8s, 0.8s; }
  .floaty--b { animation-delay: 1s, 1s; }
  .floaty--c { animation-delay: 1.2s, 1.2s; }
}
@keyframes heroin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes stagein { from { opacity: 0; transform: translateY(24px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes floatyin { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .live i, .tile--rev .bars i, .who.swap .s1, .who.swap .s2, .sched__row--swap, .floaty { animation: none !important; }
  .who.swap .s1 { opacity: 0; }
  .who.swap .s2 { opacity: 1; }
  .floaty { opacity: 1; }
}

@media (max-width: 1000px) {
  .hero--v2 { min-height: 0; display: block; padding-block: 28px 44px; }
  .hero--v2 .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .appwin { transform: none; }
  .hero__stage { perspective: none; max-width: 560px; }
  .floaty--a { right: 0; }
  .floaty--b { left: 0; }
  .floaty--c { display: none; }
}
@media (max-width: 620px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .floaty { display: none; }
  .sched__row .j { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero--v2 { padding-block: 56px 68px; }
  .hero__bg::after { opacity: 0.55; }
}
