/* Adnexa notched glass cards, applied site-wide by ui/notched.js.
   Each card gets a frosted glass layer cut to a notched shape (cut-out bottom-right corner),
   a glowing white-to-blue-to-gold edge, and a small glass pill sitting in the notch.
   The card keeps its own content and outside decorations; only its old box styling is switched off. */

/* the card itself: old surface off, glass layer takes over.
   Tripled class so it outranks the site's more specific rules (.plan.hot, .faq details),
   which otherwise paint a full rectangle that shows through the notch gap around the pill. */
.nn.nn.nn,
.nn.nn.nn:hover {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  isolation: isolate;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
.nn.nn-static { position: relative; }

/* frosted glass, cut to the notched outline by nn-body's clip-path */
.nn-body {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  background:
    radial-gradient(90% 70% at 15% 0%, rgba(255, 255, 255, 0.10), transparent 62%),
    radial-gradient(80% 70% at 100% 100%, rgba(47, 140, 255, 0.14), transparent 68%),
    radial-gradient(60% 50% at 0% 100%, rgba(255, 176, 32, 0.07), transparent 70%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.07), rgba(58, 75, 208, 0.06) 55%, rgba(6, 7, 11, 0.30));
}
/* the highlighted service card keeps its Adnexa gradient, inside the glass shape */
.sv.full.nn > .nn-body {
  background:
    radial-gradient(90% 70% at 15% 0%, rgba(255, 255, 255, 0.18), transparent 62%),
    linear-gradient(135deg, rgba(1, 117, 255, 0.85), rgba(58, 75, 208, 0.8) 60%, rgba(255, 172, 10, 0.85));
}
/* the recommended plan keeps its light-blue-to-gold highlight, now inside the notched shape */
.plan.hot.nn > .nn-body {
  background:
    radial-gradient(90% 70% at 15% 0%, rgba(255, 255, 255, 0.12), transparent 62%),
    linear-gradient(150deg, rgba(170, 210, 255, 0.52), rgba(91, 155, 255, 0.34) 55%, rgba(255, 176, 32, 0.22));
}
/* FAQ items keep their blue glass, now inside the notched shape */
.faq details.nn > summary > .nn-body {
  background:
    radial-gradient(90% 70% at 15% 0%, rgba(255, 255, 255, 0.10), transparent 62%),
    linear-gradient(150deg, rgba(156, 196, 255, 0.40) 0%, rgba(91, 155, 255, 0.24) 50%, rgba(60, 120, 255, 0.30) 100%);
}

/* glowing outline */
.nn-edge {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;          /* the site's svg{max-width:100%} would stop it covering the 1px border */
  max-height: none;
  overflow: visible;
  pointer-events: none;
  z-index: 3;
  opacity: 0.85;
  transition: opacity 0.3s ease, filter 0.3s ease;
}
.nn-edge path { fill: none; stroke: url(#nn-edge-grad); stroke-width: 1.2; }
.nn:hover > .nn-edge,
.nn:hover > summary > .nn-edge { opacity: 1; filter: drop-shadow(0 0 6px rgba(47, 140, 255, 0.55)); }
.plan.hot.nn > .nn-edge path { stroke-width: 1.6; }

/* the old rectangular hover border and glow would not match the notch, so the glowing edge replaces them */
.nn.hv::after { display: none !important; }
.nn.hv:hover, .nn.nn:hover { border-color: transparent !important; box-shadow: none !important; }

/* the glass pill that sits in the notch: same glass and gradient edge as the card */
.nn-pill {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
  container-type: inline-size;
  border: 1px solid transparent;
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  background:
    radial-gradient(80% 140% at 18% 0%, rgba(255, 255, 255, 0.14), transparent 65%) padding-box,
    radial-gradient(70% 120% at 100% 100%, rgba(255, 176, 32, 0.16), transparent 70%) padding-box,
    linear-gradient(150deg, rgba(22, 32, 70, 0.92), rgba(12, 16, 36, 0.94)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(124, 180, 255, 0.35) 45%, rgba(47, 140, 255, 0.35) 70%, rgba(255, 176, 32, 0.65)) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 18px -12px rgba(47, 140, 255, 0.6);
  transition: box-shadow 0.35s ease, filter 0.35s ease;
}
.nn-pill img { width: 16px; height: 16px; flex: none; opacity: 0.95; }
.nn-pill b {
  font: 600 10.5px/1 var(--fm, "DM Mono", monospace);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(227, 236, 251, 0.88);
  white-space: nowrap;
}
@container (max-width: 104px) { .nn-pill b { display: none; } }   /* small pills show only the mark */
.nn:hover > .nn-pill,
.nn:hover > summary > .nn-pill {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 0 0 1px rgba(124, 180, 255, 0.25), 0 10px 22px -10px rgba(47, 140, 255, 0.75);
  filter: brightness(1.12);
}

/* FAQ: the pill in the notch is the +/× toggle, so the old round toggle is hidden */
.faq details.nn > summary::after { display: none !important; }
.nn-pill-tog { pointer-events: auto; cursor: pointer; }
.nn-tog { position: relative; width: 12px; height: 12px; transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.nn-tog::before, .nn-tog::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px;
  background: #ffd27a;
}
.nn-tog::after { transform: rotate(90deg); }
details[open] > summary > .nn-pill-tog .nn-tog { transform: rotate(135deg); }
.nn-pill-tog:hover .nn-tog::before, .nn-pill-tog:hover .nn-tog::after { background: #fff; }

@media (prefers-reduced-motion: reduce) {
  .nn-edge, .nn-pill, .nn-tog { transition: none; }
}
