/* ==========================================================================
   Care Console — hero product visual (SAMPLE DATA ONLY)
   Layers (back → front): light beam + glow → floor shadow → tilted console
   (rim light, sidebar, toolbar, ring/status, timeline) → floating detail cards.
   Desktop: restrained 3D tilt + pointer parallax. Mobile: flat and re-composed.
   Elementor: one HTML widget containing this component (documented exception).
   ========================================================================== */

.hero__visual {
  position: relative;
  perspective: 2200px;
  isolation: isolate;
}

/* Light: a soft lime glow behind the console + a cool beam from above */
.console-backdrop {
  position: absolute;
  inset: -18% -12% -8%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42% 40% at 52% 48%, rgb(199 255 94 / 0.17), transparent 70%),
    radial-gradient(26% 30% at 22% 72%, rgb(110 200 160 / 0.08), transparent 70%);
  /* guarantee the glow fades out before the box edges — no visible rectangle */
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}

.console-stage {
  --rx: 9deg;
  --ry: -11deg;
  --rz: 1deg;
  position: relative;
  padding: 2.75rem 0 3.5rem 2rem;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz));
  transform-origin: 40% 50%;
  transition: transform 900ms var(--ease);
}

/* contact shadow on the "floor" under the tilted panel */
.console-floor {
  position: absolute;
  left: 8%;
  right: 4%;
  bottom: 0.5rem;
  height: 3rem;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgb(0 0 0 / 0.75), transparent 70%);
  filter: blur(14px);
  transform: translateZ(-60px);
  pointer-events: none;
}

/* ----------------------------------------------------------- Console panel */
.console {
  --pad: 1.125rem;
  position: relative;
  display: grid;
  border-radius: var(--r-lg);
  background:
    radial-gradient(90% 70% at 0% 0%, rgb(199 255 94 / 0.075), transparent 55%),
    linear-gradient(180deg, #1b2520 0%, #111814 100%);
  border: 1px solid var(--line-strong);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.09) inset,
    0 -1px 0 rgb(0 0 0 / 0.5) inset,
    0 2px 4px rgb(0 0 0 / 0.4),
    0 40px 90px -30px rgb(0 0 0 / 0.9),
    0 80px 140px -60px rgb(199 255 94 / 0.12);
  transform-style: preserve-3d;
  overflow: hidden;
}

/* rim light: lime on the leading edge, fading to a cool highlight */
.console::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(130deg, rgb(199 255 94 / 0.75), rgb(199 255 94 / 0) 32%, rgb(247 249 245 / 0) 68%, rgb(247 249 245 / 0.22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
  z-index: 2;
}

/* glass sheen across the top */
.console::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 40%;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.035), transparent);
  pointer-events: none;
}

.console__bar {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.85rem var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgb(0 0 0 / 0.18);
}

.console__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.console__mark {
  display: inline-grid;
  place-items: center;
  height: 1.375rem;
  padding: 0 0.32rem;
  border-radius: 6px;
  background: var(--lime);
  color: var(--on-lime);
  font-size: 0.75rem;
}

.console__sep { width: 1px; height: 1rem; margin-inline: 0.45rem; background: var(--line-strong); }
.console__product { font-family: var(--f-text); font-weight: 500; font-size: 0.8125rem; letter-spacing: 0; color: var(--text-2); }

.console__site {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-right: auto;
  padding: 0.3rem 0.65rem;
  border-radius: var(--r-pill);
  background: rgb(247 249 245 / 0.05);
  border: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--text-2);
  white-space: nowrap;
}

.console__frame { display: grid; grid-template-columns: auto minmax(0, 1fr); }

.console__side {
  display: grid;
  align-content: start;
  gap: 0.375rem;
  padding: var(--pad) 0.625rem;
  border-right: 1px solid var(--line);
  background: rgb(0 0 0 / 0.12);
}

.console__nav {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  color: var(--text-3);
}
.console__nav .icon { width: 1.05rem; height: 1.05rem; }
.console__nav.is-on { background: rgb(199 255 94 / 0.12); color: var(--lime); box-shadow: 0 0 0 1px rgb(199 255 94 / 0.22) inset; }

.console__main { display: grid; gap: 1rem; padding: var(--pad); min-width: 0; }

.console__toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.console__view { font-family: var(--f-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.02em; }

.console__tabs {
  display: inline-flex;
  padding: 0.25rem;
  border-radius: var(--r-pill);
  background: rgb(0 0 0 / 0.32);
  border: 1px solid var(--line);
}

.console__tab {
  min-height: 2rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--r-pill);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-2);
  transition: background-color var(--dur-micro) linear, color var(--dur-micro) linear;
}
.console__tab:hover { color: var(--text-1); }
.console__tab[aria-pressed="true"] { background: var(--surface-3); color: var(--text-1); box-shadow: 0 0 0 1px var(--line-strong) inset, 0 4px 12px -4px rgb(0 0 0 / 0.6); }

.console__body {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr);
  gap: 1.25rem;
  align-items: center;
}

/* Care Cycle ring */
.console__ring {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 15rem;
  justify-self: center;
}

.console__ring::before {
  /* soft inner light so the ring reads as a lit instrument */
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(199 255 94 / 0.1), transparent 70%);
}

.care-ring { position: relative; width: 100%; height: 100%; overflow: visible; }

.care-ring .seg-arc {
  fill: none;
  stroke-width: 14;
  stroke-linecap: butt;
  transition: stroke 500ms linear, opacity 500ms linear;
}

.care-ring .ring-track { fill: none; stroke: rgb(247 249 245 / 0.05); stroke-width: 26; }
.care-ring .ring-inner { fill: none; stroke: rgb(247 249 245 / 0.09); stroke-width: 1; stroke-dasharray: 2 4; }
.care-ring .ring-tick { stroke: rgb(247 249 245 / 0.25); stroke-width: 1; }

.console__ring-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  line-height: 1.1;
}

.console__ring-kicker { font-family: var(--f-mono); font-size: 0.6875rem; letter-spacing: var(--tracking-mono); text-transform: uppercase; color: var(--text-3); }
.console__ring-month { margin-top: 0.3rem; font-family: var(--f-display); font-size: 1rem; color: var(--text-2); }
.console__ring-month b { display: block; font-size: 3rem; font-weight: 600; letter-spacing: -0.05em; line-height: 0.95; color: var(--text-1); }
.console__ring-of { font-family: var(--f-mono); font-size: 0.75rem; color: var(--text-3); }

/* Status rows */
.console__status { display: grid; gap: 0.4rem; }

.console__status li {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr) auto;
  grid-template-areas: "icon task state" "icon freq state";
  align-items: center;
  column-gap: 0.625rem;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  background: linear-gradient(180deg, rgb(247 249 245 / 0.045), rgb(247 249 245 / 0.02));
  border: 1px solid var(--line);
  transition: border-color var(--dur-micro) linear, background-color var(--dur-micro) linear, transform var(--dur-comp) var(--ease);
}
.console__status li:hover { border-color: var(--line-strong); transform: translateX(-2px); }

.console__status .icon {
  grid-area: icon;
  width: 1.75rem; height: 1.75rem;
  padding: 0.35rem;
  border-radius: 8px;
  background: rgb(0 0 0 / 0.25);
  color: var(--text-2);
}
.console__task { grid-area: task; font-size: 0.875rem; font-weight: 500; line-height: 1.25; }
.console__freq { grid-area: freq; font-family: var(--f-mono); font-size: 0.75rem; color: var(--text-3); line-height: 1.3; }
.console__status .state { grid-area: state; }

/* Timeline */
.console__timeline {
  padding: 0.9rem 1rem 1rem;
  border-radius: 14px;
  background: rgb(0 0 0 / 0.24);
  border: 1px solid var(--line);
}

.console__timeline-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--text-3);
}

.console__legend { display: inline-flex; align-items: center; gap: 0.4rem; }
.console__legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; }
.console__legend i.is-done { background: var(--lime); }
.console__legend i.is-next { background: rgb(247 249 245 / 0.2); margin-left: 0.4rem; }

.console__bars {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 5px;
  height: 3.5rem;
}

.console__bars i {
  position: relative;
  display: block;
  height: calc(var(--h, 0) * 100%);
  min-height: 3px;
  border-radius: 3px;
  background: rgb(247 249 245 / 0.16);
  transform-origin: bottom;
  transition: height 600ms var(--ease), background-color 400ms linear;
}
.console__bars i.is-done { background: linear-gradient(180deg, var(--lime), #8fcf2a); box-shadow: 0 0 12px -2px rgb(199 255 94 / 0.45); }
.console__bars i.is-now { background: rgb(199 255 94 / 0.3); box-shadow: 0 0 0 1px var(--lime) inset; }
.console__bars i.is-now::after { content: ""; position: absolute; left: 50%; bottom: calc(100% + 4px); width: 5px; height: 5px; border-radius: 50%; background: var(--lime); transform: translateX(-50%); }

/* --------------------------------------------------------- Floating cards */
.float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgb(36 46 41 / 0.92), rgb(25 33 29 / 0.92));
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.1) inset, 0 30px 60px -18px rgb(0 0 0 / 0.9);
  transform: translateZ(80px);
  white-space: nowrap;
}

.float__icon { display: grid; place-items: center; width: 2.375rem; height: 2.375rem; border-radius: 11px; background: var(--lime); color: var(--on-lime); box-shadow: 0 6px 18px -6px rgb(199 255 94 / 0.6); }
.float__icon .icon { width: 1.125rem; height: 1.125rem; }
.float__icon--light { background: var(--text-1); color: var(--bg-0); box-shadow: none; }
.float__body { display: grid; gap: 0.2rem; }
.float__title { font-size: 0.875rem; font-weight: 600; line-height: 1.2; }
.float__meta { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--f-mono); font-size: 0.75rem; color: var(--text-2); }
.float__kicker { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--lime); }

.float--backup { top: 46%; left: -1.5rem; transform: translateZ(110px); }
.float--report { top: 0.25rem; right: 9%; transform: translateZ(60px); }
.float--next { right: -0.75rem; bottom: 0.75rem; display: grid; gap: 0.4rem; min-width: 15rem; transform: translateZ(130px); }

.float__row { display: flex; align-items: center; gap: 0.6rem; font-family: var(--f-mono); font-size: 0.75rem; color: var(--text-2); }
.float__progress { flex: 1; height: 4px; border-radius: 4px; background: rgb(247 249 245 / 0.1); overflow: hidden; }
.float__progress i { display: block; height: 100%; width: var(--p, 60%); border-radius: inherit; background: var(--lime); transition: width 700ms var(--ease); }

/* ------------------------------------------------------------- Responsive */
/* Laptop (1024–1279): narrower column — compact status rows */
@media (min-width: 64rem) and (max-width: 79.99rem) {
  .console-stage { --ry: -8deg; padding-left: 1.25rem; }
  .console__side { display: none; }
  .console__frame { grid-template-columns: minmax(0, 1fr); }
  .console__task { white-space: nowrap; }
  .console__site { display: none; }
  .console__brand { margin-right: auto; }
  .console__status li { grid-template-areas: "icon task state"; }
  .console__freq { display: none; }
  .float--backup { left: -0.75rem; top: auto; bottom: 34%; }
}

/* Stacked hero (< 1024): the console is centred and wide; gentler tilt */
@media (max-width: 63.99rem) {
  .console-stage { --rx: 6deg; --ry: 0deg; --rz: 0deg; max-width: 44rem; margin-inline: auto; padding: 2.25rem 0 3rem; }
  .float--backup { top: 0; left: 3%; bottom: auto; }
  .float--report { top: 0; right: 3%; }
  .float--next { right: -0.5rem; }
}

/* Phones: flat, re-composed — ring centred, status as a 2×2 grid, timeline kept */
@media (max-width: 47.99rem) {
  .console-stage { --rx: 0deg; padding: 2.5rem 0 3rem; }
  .console { --pad: 0.875rem; border-radius: 22px; }
  .console__side { display: none; }
  .console__frame { grid-template-columns: minmax(0, 1fr); }
  .console__bar { gap: 0.5rem; }
  .console__site { display: none; }
  .console__bar .badge { margin-left: auto; }
  .console__view { display: none; }
  .console__tabs { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); }
  .console__tab { padding-inline: 0.4rem; }
  .console__body { grid-template-columns: 1fr; gap: 1rem; }
  .console__ring { max-width: 12rem; }
  .console__status { grid-template-columns: 1fr 1fr; gap: 0.4rem; }
  .console__status li { grid-template-columns: 1fr; grid-template-areas: "task" "state"; row-gap: 0.35rem; padding: 0.6rem 0.65rem; }
  .console__status .icon, .console__freq { display: none; }
  .console__status .state { justify-self: start; }
  .console__status li:last-child { grid-column: 1 / -1; grid-template-columns: 1fr auto; grid-template-areas: "task state"; }
  .console__timeline-head .console__legend { display: none; }
  .float { padding: 0.65rem 0.8rem; border-radius: 14px; }
  .float--backup { top: 0; left: 0.25rem; }
  .float--report { display: none; }
  .float--next { right: 0.25rem; bottom: 0; min-width: 12rem; }
  .float__icon { width: 2rem; height: 2rem; }
  .console-floor { display: none; }
}

@media (max-width: 22.49rem) {
  .console__brand-name, .console__sep { display: none; }
  .float--next { min-width: 0; }
}
