/* Attendance Devices page (HRHUB Pulse) - page-specific styles.
   Relies on tokens and base components from assets/css/style.min.css
   (colour tokens, Poppins, .heading/.title/.p_sec, .btn, Bootstrap 5.3 grid). */

html { scroll-behavior: smooth; }
.ad-hero, .ad-overview, .ad-block { scroll-margin-top: 80px; }

/* ---------- Hero ---------- */
.ad-hero .ad-hero-row { padding: 10px 0 40px; min-height: 560px; }
.ad-eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--theme-blue);
  background-color: var(--theme-light-blue);
  border-radius: 20px;
  padding: 10px 30px;
  margin-bottom: 20px;
}
.ad-hero-title { font-size: 48px; font-weight: 600; line-height: 120%; margin-bottom: 20px; }
.ad-hero-text { font-size: 18px; font-weight: 500; line-height: 150%; color: var(--theme-gray); margin-bottom: 30px; max-width: 560px; }
.ad-hero-actions { display: flex; gap: 15px; flex-wrap: wrap; }
.ad-btn-outline { border: 1px solid var(--theme-black); }
.ad-btn-outline:hover { border-color: var(--theme-black); }
.ad-hero-text a { color: var(--theme-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ad-hero-text a:hover { color: var(--theme-black); }
.ad-note { font-size: 14px; line-height: 160%; color: var(--theme-gray); margin: 18px 0 0; }
.ad-note a { color: var(--ad-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ad-hero-methods { list-style: none; padding: 0; margin: 35px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.ad-hero-methods li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--theme-gray); }
.ad-hero-methods svg { color: var(--theme-blue); }
.ad-hero-media { text-align: center; }
.ad-hero-media img {
  width: 100%;
  max-width: 560px;
  height: auto;
  /* feather the image's white backdrop into the page */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 11%, #000 89%, transparent), linear-gradient(to bottom, transparent, #000 11%, #000 89%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 11%, #000 89%, transparent), linear-gradient(to bottom, transparent, #000 11%, #000 89%, transparent);
  mask-composite: intersect;
}

/* ---------- Shared section heads ---------- */
.ad-section-head { margin-bottom: 45px; }
.ad-section-head .p_sec { margin-bottom: 0; }
.ad-title { font-size: 40px; line-height: 125%; }

/* ---------- Overview picker ---------- */
.ad-overview { padding-top: 70px; }
.ad-pick {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 100%;
  background-color: #fff;
  border: 1px solid #e3e8f2;
  border-radius: 20px;
  padding: 24px;
  color: var(--theme-black);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out;
}
.ad-pick:hover { transform: translateY(-5px); color: var(--theme-black); }
.ad-pick--blue:hover { box-shadow: var(--shadow-blue); border-color: var(--theme-text-blue); }
.ad-pick--green:hover { box-shadow: var(--shadow-green); border-color: var(--theme-green); }
.ad-pick--orange:hover { box-shadow: var(--shadow-light-orange); border-color: var(--theme-yellow); }
.ad-pick-icon { flex: 0 0 54px; width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.ad-pick--blue .ad-pick-icon { background-color: var(--theme-light-blue); color: var(--theme-blue); }
.ad-pick--green .ad-pick-icon { background-color: var(--theme-light-green); color: var(--theme-green); }
.ad-pick--orange .ad-pick-icon { background-color: var(--theme-light-orange); color: var(--theme-yellow); }
.ad-pick-body { flex: 1 1 auto; display: flex; flex-direction: column; line-height: 1.35; }
.ad-pick-body strong { font-size: 17px; font-weight: 600; }
.ad-pick-body small { font-size: 14px; color: var(--theme-gray); margin-top: 3px; }
.ad-pick-go { flex: 0 0 auto; color: var(--theme-gray); transition: transform 0.3s ease-in-out; }
.ad-pick:hover .ad-pick-go { transform: translateY(4px); color: var(--theme-black); }

/* ---------- Solution blocks ---------- */
.ad-block { padding: 80px 0; }
.ad-block--blue { --ad-accent: var(--theme-blue); --ad-tint: var(--theme-light-blue); --ad-shadow: var(--shadow-blue); }
.ad-block--green { --ad-accent: var(--theme-green); --ad-tint: var(--theme-light-green); --ad-shadow: var(--shadow-green); }
.ad-block--orange { --ad-accent: var(--theme-yellow); --ad-tint: var(--theme-light-orange); --ad-shadow: var(--shadow-light-orange); }
.ad-band { background-color: var(--theme-light-green); }

.ad-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ad-accent);
  background-color: var(--ad-tint);
  border-radius: 20px;
  padding: 8px 20px;
  margin-bottom: 16px;
}
.ad-band .ad-tag { background-color: #fff; }
.ad-block-title { font-size: 34px; font-weight: 600; line-height: 125%; margin-bottom: 16px; }
.ad-block-desc { font-size: 16px; line-height: 165%; color: var(--theme-gray); margin-bottom: 22px; }

.ad-benefits { list-style: none; padding: 0; margin: 0; }
.ad-benefits li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; font-weight: 500; line-height: 150%; color: var(--theme-black); padding: 10px 0; border-top: 1px solid rgba(62, 84, 104, 0.14); }
.ad-benefits li:first-child { border-top: 0; }
.ad-benefits .ad-tick { flex: 0 0 22px; width: 22px; height: 22px; padding: 4px; border-radius: 50%; color: #fff; background-color: var(--ad-accent); margin-top: 1px; }

/* Photos: shown whole (no cropping), consistent radius and soft shadow */
.ad-photo { margin: 0; border-radius: 24px; overflow: hidden; line-height: 0; background-color: var(--ad-tint); box-shadow: 0 20px 50px rgba(62, 84, 104, 0.18); transition: box-shadow 0.4s ease-in-out; }
.ad-photo img { display: block; width: 100%; height: auto; }
.ad-block:hover .ad-photo { box-shadow: var(--ad-shadow); }
.ad-photo--portrait { max-width: 440px; margin: 0 auto; }

/* Supported device types */
.ad-types { padding-top: 45px; }
.ad-sub-title { font-size: 20px; font-weight: 600; margin: 0; }
.ad-type { height: 100%; background-color: var(--ad-tint); border-radius: 18px; padding: 24px; transition: transform 0.3s ease-in-out; }
.ad-type:hover { transform: translateY(-4px); }
.ad-type-icon { width: 48px; height: 48px; border-radius: 12px; background-color: #fff; color: var(--ad-accent); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.ad-type h4 { font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--theme-black); margin: 0 0 6px; }
.ad-type p { font-size: 14px; line-height: 160%; color: var(--theme-gray); margin: 0; }

/* ---------- One platform ---------- */
.ad-platform { padding: 80px 0 40px; }
.ad-platform-panel { background-color: var(--theme-light-blue); border-radius: 28px; padding: 60px 40px; }
.ad-flow { display: flex; align-items: center; justify-content: center; gap: 20px; max-width: 1100px; margin: 0 auto; }
.ad-flow-sources { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ad-chip { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; padding: 12px 20px; border-radius: 14px; white-space: nowrap; background-color: #fff; }
.ad-chip--blue { color: var(--theme-blue); }
.ad-chip--green { color: var(--theme-green); }
.ad-chip--orange { color: var(--theme-yellow); }
.ad-flow-arrow { flex: 0 0 auto; display: flex; }
.ad-flow-core { flex: 0 0 auto; text-align: center; background-color: #fff; border-radius: 20px; padding: 25px 30px; box-shadow: var(--shadow-blue); }
.ad-flow-core img { display: block; margin: 0 auto 10px; max-width: 150px; height: auto; }
.ad-flow-core strong { font-size: 16px; font-weight: 600; color: var(--theme-blue); }
.ad-flow-dash { flex: 0 1 280px; background-color: #fff; border-radius: 20px; padding: 18px 22px 22px; text-align: center; }
.ad-flow-dash strong { display: block; font-size: 15px; font-weight: 600; margin: 12px 0; }
.ad-dash-bar { display: flex; gap: 6px; }
.ad-dash-bar i { width: 9px; height: 9px; border-radius: 50%; background-color: #c9d3e6; }
.ad-dash-rows span { display: block; height: 10px; border-radius: 5px; background-color: var(--theme-light-blue); margin-top: 8px; }
.ad-dash-rows span:nth-child(2) { width: 80%; }
.ad-dash-rows span:nth-child(3) { width: 60%; }

/* ---------- Why ---------- */
.ad-why { padding: 70px 0 40px; }
.ad-why-card { height: 100%; background-color: #fff; border: 1px solid #e3e8f2; border-radius: 20px; padding: 30px 25px; transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; }
.ad-why-card:hover { transform: translateY(-6px); }
.ad-why-card--blue:hover { box-shadow: var(--shadow-blue); }
.ad-why-card--green:hover { box-shadow: var(--shadow-green); }
.ad-why-card--orange:hover { box-shadow: var(--shadow-light-orange); }
.ad-why-card--cyan:hover { box-shadow: var(--shadow-cyan); }
.ad-why-icon { width: 54px; height: 54px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.ad-why-card--blue .ad-why-icon { background-color: var(--theme-light-blue); color: var(--theme-blue); }
.ad-why-card--green .ad-why-icon { background-color: var(--theme-light-green); color: var(--theme-green); }
.ad-why-card--orange .ad-why-icon { background-color: var(--theme-light-orange); color: var(--theme-yellow); }
.ad-why-card--cyan .ad-why-icon { background-color: var(--theme-light-cyan); color: var(--theme-text-cyan); }
.ad-why-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.ad-why-text { font-size: 15px; line-height: 155%; color: var(--theme-gray); margin-bottom: 0; }

/* ---------- Final CTA ---------- */
.ad-cta { padding: 40px 0 80px; }
.ad-cta-box { background-color: var(--theme-light-blue); border-radius: 28px; padding: 70px 30px; max-width: 1100px; margin: 0 auto; }
.ad-cta-title { font-size: 40px; font-weight: 600; line-height: 125%; color: var(--theme-black); max-width: 780px; margin: 5px auto 16px; }
.ad-cta-text { font-size: 17px; line-height: 160%; color: var(--theme-gray); max-width: 680px; margin: 0 auto 30px; }
/* ---------- Responsive ---------- */
@media(max-width:1199px) {
  .ad-hero-title { font-size: 36px; }
  .ad-pick { padding: 18px; gap: 14px; }
  .ad-pick-icon { flex-basis: 46px; width: 46px; height: 46px; }
  .ad-title, .ad-cta-title { font-size: 34px; }
  .ad-block-title { font-size: 30px; }
  .ad-platform-panel { padding: 50px 25px; }
  .ad-flow { flex-wrap: wrap; }
}
@media(max-width:991px) {
  .ad-hero .ad-hero-row { min-height: 0; padding-bottom: 20px; }
  .ad-hero-copy { text-align: center; }
  .ad-hero-text { margin-left: auto; margin-right: auto; }
  .ad-hero-actions, .ad-hero-methods { justify-content: center; }
  .ad-hero-title { font-size: 38px; }
  .ad-hero-media img { max-width: 440px; }
  .ad-block { padding: 60px 0; }
  .ad-types { padding-top: 30px; }
  .ad-flow { flex-direction: column; }
  .ad-flow-arrow svg { transform: rotate(90deg); }
  .ad-flow-sources, .ad-flow-dash { width: 100%; max-width: 340px; align-items: stretch; flex-basis: auto; }
}
@media(max-width:767px) {
  .ad-hero-title { font-size: 32px; }
  .ad-hero-text { font-size: 16px; }
  .ad-hero-actions .btn { width: 100%; max-width: 320px; }
  .ad-title, .ad-cta-title { font-size: 27px; }
  .ad-block-title { font-size: 26px; }
  .ad-section-head { margin-bottom: 30px; }
  .ad-overview { padding-top: 50px; }
  .ad-block { padding: 45px 0; }
  .ad-photo { border-radius: 18px; }
  .ad-platform { padding-top: 50px; }
  .ad-platform-panel { padding: 40px 18px; border-radius: 20px; }
  .ad-cta-box { padding: 50px 20px; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ad-pick, .ad-pick-go, .ad-type, .ad-why-card, .ad-photo { transition: none; }
}
