
.hdl{
  /* sits between tagline and section menu */
  width: 100%;
  max-width: 640px;                 /* ✅ wider dropdown area */
  margin: 0.35rem auto 0.75rem;
  position: relative;

  /* ✅ your hero logo + tagline are shifted left in index.html
     match that so dropdown centers under the logo */
  transform: translateX(-110px);
}

/* light panel that expands downward */
.hdl-panel{
  background: #f3f4f6;              /* ✅ light grey (tailwind gray-100-ish) */
  border-radius: 14px;
  overflow: hidden;

  /* collapsed by default */
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);

  transition:
    max-height 260ms ease,
    opacity 200ms ease,
    transform 260ms ease;

  box-shadow: 0 10px 28px rgba(17,24,39,0.14);
  border: 1px solid rgba(17,24,39,0.10);
}

.hdl.is-open .hdl-panel,
.hdl:focus-within .hdl-panel{
  max-height: 96px;                 /* enough to show icons */
  opacity: 1;
  transform: translateY(0);
}

.hdl-inner{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 16px;
}

/* icon buttons */
.hdl-btn{
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 14px;
  border: 1px solid rgba(17,24,39,0.10);
  background: rgba(255,255,255,0.86);

  text-decoration: none;
  color: #111827;

  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.hdl-btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.96);
  border-color: rgba(90,155,212,0.45);
  box-shadow: 0 10px 20px rgba(17,24,39,0.08);
}

.hdl-btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(90,155,212,0.35);
}

.hdl-ic{
  width: 22px;
  height: 22px;
  display: block;
}

/* slightly tighter on small screens */
@media (max-width: 720px){
  .hdl{
    max-width: 520px;
    transform: translateX(-70px);   /* soften the left shift */
  }
}

@media (max-width: 520px){
  .hdl{
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    transform: none;                /* avoid pushing off-screen on phones */
  }
  .hdl-inner{ gap: 12px; }
  .hdl-btn{ width: 44px; height: 44px; }
  .hdl-ic{ width: 20px; height: 20px; }
}
/* ...existing... */

.hdl.is-open .hdl-panel,
.hdl:focus-within .hdl-panel{
  max-height: 132px; /* was 96px: room for hint + labels */
  opacity: 1;
  transform: translateY(0);
}

.hdl-inner{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;              /* was 16px */
  padding: 12px 18px 8px; /* a touch more width, slightly less bottom */
}

/* icon buttons */
.hdl-btn{
  width: 56px;            /* was 48px */
  height: 56px;           /* was 48px */
  display: inline-flex;
  flex-direction: column; /* allow label below icon */
  align-items: center;
  justify-content: center;
  gap: 6px;

  border-radius: 14px;
  border: 1px solid rgba(17,24,39,0.10);
  background: rgba(255,255,255,0.86);

  text-decoration: none;
  color: #111827;

  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.hdl-ic{
  width: 22px;
  height: 22px;
  display: block;
}

/* small label under the icon */
.hdl-label{
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: rgba(17,24,39,0.72);
  line-height: 1;
  user-select: none;
}

/* hint line under icons */
.hdl-hint{
  text-align: center;
  padding: 0 16px 12px;
  font-size: 12px; 
  font-weight: 700;
  color: rgba(17,24,39,0.55);
  user-select: none;
}

/* slightly tighter on small screens */
@media (max-width: 720px){
  .hdl{
    max-width: 520px;
    transform: translateX(-70px);
  }
  .hdl-inner{ gap: 16px; }
  .hdl-btn{ width: 50px; height: 50px; }
  .hdl-label{ font-size: 10px; }
}

@media (max-width: 520px){
  .hdl{
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    transform: none;
  }
  .hdl-inner{ gap: 14px; }
  .hdl-btn{ width: 48px; height: 48px; }
  .hdl-ic{ width: 20px; height: 20px; }
}
/* --- Dark charcoal theme override (hero-device-launcher) --- */
.hdl{
  /* optional: keep existing translateX; do not change unless needed */
}

/* Panel shell */
.hdl-panel{
  /* darker charcoal */
  background: rgba(17, 24, 39, 0.92); /* ~#111827 */
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 46px rgba(0,0,0,0.42);

  /* keep your animation */
  backdrop-filter: blur(10px);
}

/* Expanded state (keep your larger height) */
.hdl.is-open .hdl-panel,
.hdl:focus-within .hdl-panel{
  max-height: 132px;
  opacity: 1;
  transform: translateY(0);
}

.hdl-inner{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 12px 18px 8px;
}

/* Buttons */
.hdl-btn{
  width: 56px;
  height: 56px;

  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;

  border-radius: 14px;

  /* dark button on dark panel, but slightly lifted */
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(148, 163, 184, 0.22);

  color: rgba(226, 232, 240, 0.95); /* slate-200-ish */
  text-decoration: none;

  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.hdl-btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.10);
  border-color: rgba(90,155,212,0.55);
  box-shadow: 0 14px 26px rgba(0,0,0,0.35);
}

.hdl-btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(90,155,212,0.35);
}

/* Icon + label contrast */
.hdl-ic{
  width: 22px;
  height: 22px;
  display: block;

  /* helps monochrome svgs pop on dark */
  filter: brightness(1.2) contrast(1.05);
}

.hdl-label{
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  user-select: none;

  color: rgba(226, 232, 240, 0.78);
}

.hdl-hint{
  text-align: center;
  padding: 0 16px 12px;
  font-size: 12px;
  font-weight: 700;
  user-select: none;

  color: rgba(226, 232, 240, 0.62);
}

/* Responsive tweaks stay consistent */
@media (max-width: 720px){
  .hdl-inner{ gap: 16px; }
  .hdl-btn{ width: 50px; height: 50px; }
  .hdl-label{ font-size: 10px; }
}

@media (max-width: 520px){
  .hdl-inner{ gap: 14px; }
  .hdl-btn{ width: 48px; height: 48px; }
  .hdl-ic{ width: 20px; height: 20px; }
}