/* =============================================================
   Digital Hive - Demo / Book-a-demo page styles
   ============================================================= */

/* -----------------------------------------------------------
   Pricing-style hero adaptations for Demo
   ----------------------------------------------------------- */
.demo-hero .pr-hero__copy h1 { max-width: 16ch; }
.demo-hero .pr-hero__copy p {
  max-width: 540px;
}

/* Drop the scheduler down so it sits inline with the laptop graphic */
@media (min-width: 900px) {
  .demo-hero .pr-hero__grid { align-items: end; }
}

/* -----------------------------------------------------------
   Laptop graphic - live demo in progress
   ----------------------------------------------------------- */
.demo-hero__laptop {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: var(--space-6) 0 0;
  filter: drop-shadow(0 24px 32px rgba(25, 51, 89, 0.18));
}
.laptop {
  position: relative;
  width: 100%;
}
.laptop__screen {
  position: relative;
  background: var(--dh-white);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-12) var(--radius-12) var(--radius-6) var(--radius-6);
  padding: 8px;
  /* Maintain a 16:10 screen aspect-ratio */
  aspect-ratio: 16 / 10;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 8px;
  overflow: hidden;
}
.laptop__chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: var(--bg-3);
  border-radius: var(--radius-6);
}
.laptop__dots {
  display: inline-flex;
  gap: 5px;
}
.laptop__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--dh-grey-light);
}
.laptop__dot:nth-child(1) { background: #FF5F57; }
.laptop__dot:nth-child(2) { background: #FEBC2E; }
.laptop__dot:nth-child(3) { background: #28C840; }
.laptop__url {
  flex: 1;
  font-size: 9px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--fg-2);
  text-align: center;
  background: var(--dh-white);
  border-radius: 999px;
  padding: 2px 8px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
  margin: 0 auto;
}
.laptop__live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--dh-orange);
}
.laptop__pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--dh-orange);
  position: relative;
  flex-shrink: 0;
}
.laptop__pulse::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--dh-orange);
  opacity: 0.35;
  animation: laptop-pulse 1.8s ease-out infinite;
}
@keyframes laptop-pulse {
  0%   { transform: scale(0.7); opacity: 0.5; }
  100% { transform: scale(2.2); opacity: 0; }
}

.laptop__body {
  display: grid;
  grid-template-columns: 22% 1fr;
  gap: 8px;
  background: var(--bg-3);
  border-radius: var(--radius-6);
  padding: 8px;
  min-height: 0;
}
.laptop__nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--dh-white);
  border-radius: 4px;
  padding: 8px 5px;
}
.laptop__nav-item {
  font-size: 8.5px;
  color: var(--fg-2);
  padding: 4px 6px;
  border-radius: 3px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.01em;
}
.laptop__nav-item.is-active {
  background: var(--dh-navy);
  color: var(--dh-yellow);
  font-weight: var(--fw-bold);
}
.laptop__main {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 6px;
  min-height: 0;
}
.laptop__search {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  background: var(--dh-white);
  border-radius: 4px;
  font-size: 8.5px;
  color: var(--fg-2);
  border: 1px solid var(--border-2);
}
.laptop__search svg { color: var(--fg-2); flex-shrink: 0; }
.laptop__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  min-height: 0;
}
.laptop__card {
  position: relative;
  background: var(--dh-white);
  border: 1px solid var(--border-2);
  border-radius: 4px;
  padding: 7px 8px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 4px;
  min-height: 0;
}
.laptop__card-title {
  font-size: 9px;
  font-weight: var(--fw-bold);
  color: var(--dh-navy);
  letter-spacing: -0.005em;
}
.laptop__card-tag {
  justify-self: start;
  font-size: 7.5px;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1px 5px;
  background: var(--bg-3);
  color: var(--fg-2);
  border-radius: 2px;
  border: 1px solid var(--border-2);
}
.laptop__card-tag--cert {
  background: var(--dh-navy);
  color: var(--dh-yellow);
  border-color: var(--dh-navy);
}
.laptop__bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 100%;
  padding-top: 4px;
}
.laptop__bars span {
  flex: 1;
  background: linear-gradient(180deg, var(--dh-orange) 0%, var(--dh-yellow) 100%);
  border-radius: 1px;
  min-height: 6px;
}
.laptop__bars span:nth-child(odd) {
  background: linear-gradient(180deg, var(--dh-navy-500) 0%, var(--dh-navy) 100%);
}
.laptop__line {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--dh-orange);
  padding-top: 4px;
}
.laptop__line svg { width: 100%; height: 100%; display: block; }
.laptop__kpi {
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 2px;
}
.laptop__kpi-num {
  font-size: 16px;
  font-weight: var(--fw-bold);
  color: var(--dh-navy);
  letter-spacing: -0.02em;
  line-height: 1;
}
.laptop__kpi-delta {
  font-size: 8px;
  font-weight: var(--fw-bold);
  color: var(--success);
  letter-spacing: 0.02em;
}
.laptop__donut {
  width: 36px; height: 36px;
  border-radius: 50%;
  background:
    conic-gradient(var(--dh-orange) 0 62%, var(--dh-yellow) 62% 84%, var(--dh-grey-100) 84% 100%);
  position: relative;
  align-self: end;
  justify-self: end;
  margin-top: auto;
}
.laptop__donut::before {
  content: "";
  position: absolute;
  inset: 7px;
  background: var(--dh-white);
  border-radius: 50%;
}

/* Laptop base / hinge */
.laptop__hinge {
  height: 4px;
  background: linear-gradient(180deg, #DCE3EA 0%, #C2CCD5 100%);
  border-radius: 0 0 4px 4px;
  margin: 0 -8px;
  position: relative;
}
.laptop__hinge::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 22%;
  height: 100%;
  background: rgba(25, 51, 89, 0.15);
  border-radius: 0 0 4px 4px;
}
.laptop__base {
  height: 10px;
  background: linear-gradient(180deg, #E9EEF3 0%, #C9D2DA 100%);
  border-radius: 0 0 16px 16px / 0 0 50% 50%;
  margin: 0 -16px;
  position: relative;
  box-shadow: 0 8px 14px -6px rgba(25, 51, 89, 0.18);
}

@media (max-width: 899px) {
  .demo-hero__laptop { max-width: 460px; }
}

/* -----------------------------------------------------------
   "What you'll see" - 4 pillar grid
   ----------------------------------------------------------- */
.pillars { padding: 56px 0; border-top: 1px solid var(--border-2); }
@media (min-width: 768px) { .pillars { padding: 72px 0; } }
.pillars__head { max-width: 720px; margin-bottom: var(--space-7); }
.pillars__head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.02em;
  color: var(--dh-navy);
  margin: var(--space-3) 0 var(--space-3);
  line-height: 1.1;
}
.pillars__head p {
  font-size: var(--fs-18);
  color: var(--fg-2);
  margin: 0;
  max-width: 56ch;
  line-height: 1.5;
}
.pillars__grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .pillars__grid { grid-template-columns: 1fr 1fr; gap: var(--space-5); } }
@media (min-width: 1000px) { .pillars__grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-4); } }

.pillar {
  position: relative;
  padding: var(--space-5);
  background: var(--dh-white);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-md);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.pillar:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--dh-grey-300);
}
.pillar__ico {
  position: relative;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: var(--bg-3);
  border-radius: var(--radius-sm);
  color: var(--dh-navy);
  margin-bottom: var(--space-4);
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.pillar:hover .pillar__ico {
  background: var(--dh-navy);
  color: var(--dh-yellow);
}
.pillar h3 {
  font-size: var(--fs-18);
  font-weight: var(--fw-bold);
  color: var(--dh-navy);
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-2);
  line-height: 1.25;
}
.pillar p {
  font-size: var(--fs-14);
  color: var(--fg-2);
  margin: 0;
  line-height: 1.5;
}

/* -----------------------------------------------------------
   Trusted by - logo bar
   ----------------------------------------------------------- */
.trusted { padding: 36px 0; background: var(--bg-3); border-top: 1px solid var(--border-2); border-bottom: 1px solid var(--border-2); }
@media (min-width: 768px) { .trusted { padding: 48px 0; } }
.trusted__head { text-align: center; max-width: 640px; margin: 0 auto var(--space-6); }
.trusted__head h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.02em;
  color: var(--dh-navy);
  margin: var(--space-3) 0;
  line-height: 1.15;
}
.trusted__head p {
  font-size: var(--fs-16);
  color: var(--fg-2);
  margin: 0;
  line-height: 1.5;
}
.trusted__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5) var(--space-7);
  align-items: center;
  justify-items: center;
  background: var(--dh-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-2);
  padding: var(--space-6) var(--space-5);
}
@media (min-width: 640px) { .trusted__row { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .trusted__row { grid-template-columns: repeat(5, 1fr); } }

.trusted__logo {
  font-size: var(--fs-18);
  font-weight: var(--fw-bold);
  color: var(--dh-grey-700);
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-align: center;
  filter: grayscale(1);
  opacity: 0.85;
  transition: opacity var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), filter var(--dur-base) var(--ease-out);
}
.trusted__logo:hover { opacity: 1; color: var(--dh-navy); filter: grayscale(0.6); }
.trusted__logo .sub { font-weight: var(--fw-regular); }

/* -----------------------------------------------------------
   Direct contact strip
   ----------------------------------------------------------- */
.direct { padding: 56px 0; }
@media (min-width: 768px) { .direct { padding: 72px 0; } }
.direct__inner {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}
@media (min-width: 768px) {
  .direct__inner { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}
.direct__head h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.02em;
  color: var(--dh-navy);
  margin: var(--space-3) 0 var(--space-3);
  line-height: 1.15;
  max-width: 16ch;
}
.direct__head p {
  font-size: var(--fs-18);
  color: var(--fg-2);
  margin: 0;
  line-height: 1.5;
  max-width: 44ch;
}
.direct__card {
  padding: var(--space-6);
  background: var(--dh-white);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
}
.direct__card .lbl {
  display: block;
  font-size: 11px;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--fg-2);
  margin-bottom: 6px;
}
.direct__email {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: var(--fw-bold);
  color: var(--dh-navy);
  letter-spacing: -0.02em;
  border-bottom: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color var(--dur-fast) var(--ease-out), gap var(--dur-base) var(--ease-out);
}
.direct__email:hover { color: var(--dh-orange); gap: 14px; }
.direct__email svg { color: var(--dh-orange); transition: transform var(--dur-base) var(--ease-out); }
.direct__email:hover svg { transform: translate(2px, -2px); }
.direct__note {
  margin: var(--space-4) 0 0;
  font-size: var(--fs-14);
  color: var(--fg-2);
  line-height: 1.5;
}

@media (hover: none) {
  .pillar:hover { transform: none; }
  .direct__email:hover svg { transform: none; }
}
