/* ═══════════════════════════════════════════════════════════════════════
   DVO Extensions — additions to PQC base design system
   Same variables, same neumorphic language, same Tailwind utility layer
   ═══════════════════════════════════════════════════════════════════════ */

/* ── SKIP-TO-CONTENT (WCAG 2.4.1 Bypass Blocks, Level A) ─────────────── */
/* Visually hidden until the link receives keyboard focus — screen readers */
/* still announce it in normal tab order. Rendered as the first focusable  */
/* element inside <body> (see src/layouts/BaseLayout.astro). Targets the   */
/* <main id="main"> landmark emitted by every page.                        */
/*                                                                          */
/* Uses --z-tooltip so focus brings it above every other layer (nav pill,  */
/* toasts, modals) — the skip link MUST be visible the moment it's focused */
/* regardless of what other floating UI is on screen.                      */
.skip-to-content {
  position: fixed;
  top: -100px;                    /* off-screen by default */
  left: 16px;
  z-index: var(--z-tooltip);
  padding: 12px 20px;
  background: var(--color-brand);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22), 0 0 0 2px rgba(255, 255, 255, 0.12) inset;
  transition: top 160ms cubic-bezier(0.4, 0, 0.2, 1);
}
.skip-to-content:focus,
.skip-to-content:focus-visible {
  top: 16px;                      /* slide into view on focus */
  outline: 3px solid var(--color-brand-on-dark);
  outline-offset: 2px;
}

/* ── HERO (full-bleed image with gradient overlay) ───────────────────── */
.dvo-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Asymmetric padding biases content slightly downward so it sits at
     the visual center of the full band — the bottom fade zone extends
     further than the top, so pure flex centering reads as too-high.     */
  padding-top: 140px;
  padding-bottom: 60px;
}
@media (max-width: 767px) {
  .dvo-hero {
    min-height: 70vh;
    padding-top: 110px;
    padding-bottom: 50px;
  }
}
.dvo-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.dvo-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dvo-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(31,41,55,0.70) 0%,
    rgba(31,41,55,0.82) 40%,
    rgba(31,41,55,0.92) 70%,
    rgba(55,65,81,0.85) 88%,
    rgba(180,185,195,0.60) 96%,
    var(--neu-bg-primary) 100%);
}
.dark .dvo-hero-bg::after {
  background: linear-gradient(180deg,
    rgba(17,24,39,0.75) 0%,
    rgba(17,24,39,0.88) 40%,
    rgba(17,24,39,0.95) 70%,
    rgba(30,40,55,0.92) 88%,
    rgba(50,58,70,0.80) 96%,
    var(--neu-bg-primary) 100%);
}
.dvo-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 48px 24px;
}
.dvo-hero-sub {
  min-height: 50vh;
}

/* ── SITE NAV (multi-page version of PQC pill nav) ───────────────────── */
.dvo-site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: 16px 24px;
  background: linear-gradient(160deg, var(--neu-bg-primary) 0%, var(--neu-bg-secondary) 100%);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08), 0 2px 8px var(--neu-shadow-dark);
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}
.dvo-site-nav.scrolled {
  padding: 10px 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15), 0 2px 8px var(--neu-shadow-dark);
}

/* ── GREEN CTA NAV PILL ──────────────────────────────────────────────── */
.nav-pill-cta {
  background: linear-gradient(135deg, #22c55e, #16a34a) !important;
  color: white !important;
  box-shadow: 0 2px 12px rgba(34,197,94,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}
.nav-pill-cta:hover {
  color: white !important;
  box-shadow: 0 4px 16px rgba(34,197,94,0.45), inset 0 1px 0 rgba(255,255,255,0.2);
  transform: translateY(-1px);
}
.nav-pill-cta::after { display: none !important; }

/*
 * CTA active-state override.
 * Without this, .nav-pill.active (specificity 0,2,0) in base.css forces
 * color: var(--color-nav-accent) → #2563EB blue on the green CTA pill,
 * producing ~1.2:1 contrast (WCAG fail) when /get-started.html is current.
 * Matching specificity (0,2,0) and relying on later cascade order, we restore
 * white text on a deepened green and add an inset highlight as the
 * "you are here" affordance.
 */
.nav-pill-cta.active {
  color: white !important;
  background: linear-gradient(135deg, #16a34a, #15803d) !important;
  box-shadow: 0 2px 14px rgba(34,197,94,0.5), inset 0 1px 0 rgba(255,255,255,0.25), inset 0 -2px 8px rgba(0,0,0,0.12) !important;
}
.nav-pill-cta.active::after { display: none !important; }

/* ── CYAN ACCENT (for DVO primary highlights) ────────────────────────── */
.stat-val-cyan {
  background: linear-gradient(135deg, #00d4ff, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.use-annotation-cyan {
  border-left: 3px solid #00d4ff;
  padding: 6px 12px;
  border-radius: 0 8px 8px 0;
  background: rgba(0,212,255,0.06);
}
.dark .use-annotation-cyan {
  background: rgba(0,212,255,0.1);
}
.use-annotation-green {
  border-left: 3px solid #16a34a;
  padding: 6px 12px;
  border-radius: 0 8px 8px 0;
  background: rgba(22,163,74,0.06);
}
.dark .use-annotation-green {
  background: rgba(22,163,74,0.1);
}

/* ── INDUSTRY NAV (chip-bar styles live inline in industries.html) ─── */
/* Prior left-rail styles removed — replaced by sticky glass chip bar    */
/* in industries.html's <style> block. Kept this comment as a pointer.   */

/* ── BLOG CARDS ──────────────────────────────────────────────────────── */
.blog-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 1.5rem 1.5rem 0 0;
}

/* ── NEU-RAISED: NO-GLOW MODIFIER ─────────────────────────────────────── */
/* By default .neu-raised cards get a purple hover outline/glow (see        */
/* pqc-base.css ~L249). On form-wrapper cards and the combobox list panel  */
/* that glow is visually noisy — apply .no-glow (or target .combo-list) to */
/* suppress it. Loads AFTER pqc-base.css, so it wins the cascade.          */
.neu-raised.no-glow:hover,
.dark .neu-raised.no-glow:hover,
.combo-list.neu-raised:hover,
.dark .combo-list.neu-raised:hover {
  outline: 2px solid transparent !important;
  filter: drop-shadow(0 0 0 transparent) !important;
}

/* ── NEU-RAISED: NO-GLOW-FLAT PARENT-SCOPED MODIFIERS ──────────────── */
/* Apply to a parent wrapper (e.g. <section>) to suppress the purple hover   */
/* outline + drop-shadow glow on every .neu-raised / .neu-interactive card   */
/* within, without tagging each card individually. In dark mode this also    */
/* swaps the indigo-tinted hover box-shadow for a neutral neumorphic shadow  */
/* so the hover rise is neutral-colored, not purple.                         */
/*                                                                           */
/* Two size variants:                                                        */
/*   .no-glow-flat              — 8px dark shadow (default .neu-raised size) */
/*   .no-glow-flat-interactive  — 5px dark shadow (.neu-interactive size)    */
/*                                                                           */
/* Escape hatch: add .keep-glow to any child card that should retain its     */
/* default hover glow despite the parent suppression (e.g. the PQC tool      */
/* card inside #pqc on security-compliance.astro).                           */
.no-glow-flat .neu-raised:not(.keep-glow):hover,
.no-glow-flat .neu-interactive:not(.keep-glow):hover {
  outline: 2px solid transparent !important;
  filter: drop-shadow(0 0 0 transparent) !important;
}
.dark .no-glow-flat .neu-raised:not(.keep-glow):hover,
.dark .no-glow-flat .neu-interactive:not(.keep-glow):hover {
  box-shadow: 8px 8px 16px var(--neu-shadow-dark),
              -8px -8px 16px var(--neu-shadow-light) !important;
}
.no-glow-flat-interactive .neu-raised:not(.keep-glow):hover,
.no-glow-flat-interactive .neu-interactive:not(.keep-glow):hover {
  outline: 2px solid transparent !important;
  filter: drop-shadow(0 0 0 transparent) !important;
}
.dark .no-glow-flat-interactive .neu-raised:not(.keep-glow):hover,
.dark .no-glow-flat-interactive .neu-interactive:not(.keep-glow):hover {
  box-shadow: 5px 5px 12px var(--neu-shadow-dark),
              -5px -5px 12px var(--neu-shadow-light) !important;
}

/* ── DISPLAY FONT UTILITIES: BW GRADUAL HEADING FAMILY ─────────────── */
/* Centralizes the brand display font + its standard letter-spacing scale. */
/* Replaces 189 inline style="font-family:'Bw Gradual',..." declarations. */
/* Naming follows .h- prefix convention (heading/display).                 */
/*                                                                          */
/*   .h-display          — base brand font, no tracking adjustment          */
/*   .h-display-snug     — base + letter-spacing -0.005em (h4-equivalent)   */
/*   .h-display-tight    — base + letter-spacing -0.02em  (h1/h2-equivalent)*/
/*                                                                          */
/* Single source of truth: the font stack lives in tailwind.css under       */
/* --font-display. These utilities resolve to that token via var().         */
.h-display,
.h-display-snug,
.h-display-tight {
  font-family: var(--font-display);
}
.h-display-snug  { letter-spacing: -0.005em; }
.h-display-tight { letter-spacing: -0.02em;  }

/* ── CTA-GLOW: STATIC AMBIENT HALO FOR BOTTOM-OF-PAGE CTA CARDS ──────── */
/* Gives the closing "Ready to…" card a permanent soft purple halo.        */
/* No border, no hover state change — the glow is a resting-state accent   */
/* that signals visual gravity without animation or aggression.            */
/* Apply to any .neu-raised card that serves as a page-closing CTA.        */
.neu-raised.cta-glow,
.neu-raised.cta-glow:hover {
  outline: 2px solid transparent !important;
  filter:
    drop-shadow(0 0 24px color-mix(in srgb, var(--color-brand) 28%, transparent))
    drop-shadow(0 0 48px color-mix(in srgb, var(--color-brand) 14%, transparent)) !important;
  transform: none !important;
  transition: filter 0.3s ease !important;
}
.dark .neu-raised.cta-glow,
.dark .neu-raised.cta-glow:hover {
  outline: 2px solid transparent !important;
  filter:
    drop-shadow(0 0 24px color-mix(in srgb, var(--color-brand-on-dark-strong) 38%, transparent))
    drop-shadow(0 0 48px color-mix(in srgb, var(--color-brand-on-dark-strong) 20%, transparent)) !important;
}

/* ── FEATURED-BORDER: SUBTLE PURPLE EDGE BLENDED INTO THE HALO ──────── */
/* Pairs with .cta-glow on the insights featured card. The border sits    */
/* INSIDE the drop-shadow halo and uses the same purple hue, so it reads  */
/* as the soft "edge" of the glow rather than a hard outline. Featured    */
/* card only — grid cards stay borderless (no-glow).                      */
.neu-raised.featured-border {
  border: 1px solid color-mix(in srgb, var(--color-brand) 32%, transparent) !important;
}
.dark .neu-raised.featured-border {
  border: 1px solid color-mix(in srgb, var(--color-brand-on-dark-strong) 38%, transparent) !important;
}

/* ── CONTACT FORM INPUTS ─────────────────────────────────────────────── */
.dvo-input {
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(145deg, var(--neu-bg-secondary), var(--neu-bg-primary));
  box-shadow: inset 3px 3px 6px var(--neu-shadow-dark), inset -3px -3px 6px var(--neu-shadow-light);
  border: none;
  border-radius: 12px;
  color: #374151;
  font-family: var(--font-display);
  font-size: 0.9rem;
  transition: box-shadow 0.2s ease;
}
.dark .dvo-input { color: #e5e7eb; }
.dvo-input:focus {
  outline: none;
  box-shadow: inset 3px 3px 6px var(--neu-shadow-dark), inset -3px -3px 6px var(--neu-shadow-light), 0 0 0 2px color-mix(in srgb, var(--color-brand) 40%, transparent);
}
.dvo-input::placeholder { color: #9ca3af; }

/* ── TEXTAREA RESIZE GRABBER ──────────────────────────────────────────
   The native browser resize handle (::-webkit-resizer) sits at the
   rectangular bottom-right of the textarea, ignoring our 12px
   border-radius — it visually escapes the rounded neumorphic corner.
   Fix: hide the native grabber on WebKit/Blink and paint a subtle
   custom indicator INSIDE the safe rounded area using a layered
   background. Firefox can't style the native grabber at all; the same
   background hint gives users a consistent visual cue across browsers.
   Resize itself stays functional (controlled by inline resize:vertical). */
textarea.dvo-input {
  /* Two tiny diagonal strokes, inset from the rounded corner.
     Layered on top of the existing linear-gradient background. Positioned
     11px in from the right/bottom edges so it sits safely inside the 12px
     border-radius and clear of the inset shadow's darkest point. */
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 10 L10 2 M6 10 L10 6' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' fill='none' opacity='0.6'/></svg>"),
    linear-gradient(145deg, var(--neu-bg-secondary), var(--neu-bg-primary));
  background-repeat: no-repeat, no-repeat;
  background-position: right 11px bottom 11px, 0 0;
  background-size: 12px 12px, auto;
}
.dark textarea.dvo-input {
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 10 L10 2 M6 10 L10 6' stroke='%239ca3af' stroke-width='1.5' stroke-linecap='round' fill='none' opacity='0.7'/></svg>"),
    linear-gradient(145deg, var(--neu-bg-secondary), var(--neu-bg-primary));
}
textarea.dvo-input::-webkit-resizer {
  display: none;
}

/* Combobox inputs suppress the purple focus ring (dropdown list signals focus). */
/* This rule MUST come after .dvo-input:focus to win the cascade.                 */
.dvo-input.combo-input:focus {
  box-shadow:
    inset 3px 3px 6px var(--neu-shadow-dark),
    inset -3px -3px 6px var(--neu-shadow-light);
}

/* ── PARTNER LOGO TILES ──────────────────────────────────────────────── */
.partner-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.7rem;
  text-align: center;
  color: #6b7280;
}
.dark .partner-tile { color: #9ca3af; }

/* ── CALENDLY PLACEHOLDER ────────────────────────────────────────────── */
.calendly-placeholder {
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: #6b7280;
  border: 2px dashed var(--neu-shadow-dark);
}
.dark .calendly-placeholder { color: #9ca3af; }

/* ── TIMELINE (about page) ───────────────────────────────────────────── */
.dvo-timeline {
  position: relative;
  padding-left: 32px;
}
.dvo-timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--color-brand), #2563eb);
  border-radius: 1px;
}
.dvo-tl-item {
  position: relative;
  padding-bottom: 28px;
}
.dvo-tl-item::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-strong));
  box-shadow: 0 0 0 4px var(--neu-bg-primary), 0 0 12px color-mix(in srgb, var(--color-brand) 30%, transparent);
}

/* ── CTA PULSE ───────────────────────────────────────────────────────── */
@keyframes pulse-glow-green {
  0%, 100% { box-shadow: 0 2px 12px rgba(34,197,94,0.35); }
  50% { box-shadow: 0 2px 24px rgba(34,197,94,0.5), 0 0 40px rgba(34,197,94,0.15); }
}
.btn-pulse-green { animation: pulse-glow-green 3s ease-in-out infinite; }

/* ── FOOTER SITE-WIDE (extends PQC footer) ───────────────────────────── */
.dvo-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  text-align: left;
}
@media (max-width: 767px) {
  .dvo-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 479px) {
  .dvo-footer-grid { grid-template-columns: 1fr; }
}


/* ── VENDOR ICON STANDARDIZATION ─────────────────────────────────── */
/* Home page pills: uniform grid cells, content left-aligned.
   Padding/gap set explicitly here because Tailwind 4 doesn't ship
   py-2.5 / gap-2.5 by default, so the inline utility classes no-op. */
.vendor-pill {
  cursor: pointer;
  text-decoration: none;
  justify-content: flex-start;
  padding: 12px 18px;
  gap: 10px;
}
.vendor-icon-sm {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  object-fit: contain;
  flex-shrink: 0;
  image-rendering: auto;
}
/* About page cards: larger icons */
.vendor-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.vendor-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08), 0 2px 8px var(--neu-shadow-dark);
}
.dark .vendor-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.25), 0 2px 8px var(--neu-shadow-dark);
}
.vendor-icon-lg {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
  image-rendering: auto;
}

/* PQC Vendor Scorecard logos — bare icons, no tile/card behind them.
   The surrounding .neu-raised card on each row provides enough structure;
   the vendor icon reads cleaner as a standalone 44px mark. */
.vendor-scorecard-logo {
  width: 44px;
  height: 44px;
  background: transparent;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vendor-scorecard-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}
/* Dark-mode lift for wordmarks that read dark-on-light by default.
   AWS uses a dark wordmark + orange arrow — invert the text while keeping
   the orange arrow visible using hue-rotate/saturate balance.
   Microsoft's four-square mark is fine on dark; add a gentle brightness
   lift for consistency with the other marks. */
.dark .vendor-scorecard-logo img[alt="Amazon Web Services"] {
  filter: invert(1) hue-rotate(180deg) brightness(1.05);
}
.dark .vendor-scorecard-logo img[alt="Microsoft"] {
  filter: brightness(1.1) contrast(1.05);
}

/* PQC card headers: reserve space for status without squeezing the title
   or letting badges escape narrow grid tracks. */
[data-collapsible] {
  min-width: 0;
}
[data-collapsible] > div:first-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
[data-collapsible] > div:first-child:has(.vendor-scorecard-logo) {
  grid-template-columns: 44px minmax(0, 1fr) auto;
}
[data-collapsible] > div:first-child :is(h3, h4) {
  min-width: 0;
  overflow-wrap: anywhere;
}
[data-collapsible] > div:first-child > span {
  justify-self: end;
  flex-shrink: 0;
  max-width: 116px;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: 0;
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
}
/* Longer feature chips wrap inside the card rather than expanding it. */
[data-collapsible] span.rounded-full {
  max-width: 100%;
  overflow-wrap: anywhere;
}
[data-collapsible] .flex.flex-wrap > span.rounded-full {
  white-space: normal;
}

/* ═══════════════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS (DVO-themed)
   Slide-in from the right, auto-dismiss, neumorphic surface with a
   vibrant accent bar. Controller: ToastManager in dvo-main.js.
   Usage: window.dvoToast.show('success'|'error'|'info'|'warning', title, message)
   ═══════════════════════════════════════════════════════════════════════ */

#dvo-toast-container {
  position: fixed;
  top: 5rem;                 /* sits below the floating nav */
  right: 1rem;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;      /* clicks fall through container; toasts opt-in */
  max-width: calc(100vw - 2rem);
}

@keyframes dvo-toast-in {
  from { transform: translateX(calc(100% + 2rem)); opacity: 0; }
  to   { transform: translateX(0);                  opacity: 1; }
}
@keyframes dvo-toast-out {
  from { transform: translateX(0);                  opacity: 1; }
  to   { transform: translateX(calc(100% + 2rem)); opacity: 0; }
}

.dvo-toast {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  min-width: 300px;
  max-width: 380px;
  padding: 1rem 1rem 1rem 1.25rem;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--neu-bg-primary), var(--neu-bg-secondary));
  box-shadow:
    8px 8px 16px var(--neu-shadow-dark),
    -8px -8px 16px var(--neu-shadow-light);
  color: #1f2937;
  overflow: hidden;
  will-change: transform, opacity;
  animation: dvo-toast-in 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.dark .dvo-toast {
  color: #e5e7eb;
  box-shadow:
    8px 8px 20px var(--neu-shadow-dark),
    -8px -8px 20px var(--neu-shadow-light);
}
.dvo-toast.is-leaving {
  animation: dvo-toast-out 280ms cubic-bezier(0.55, 0, 0.7, 0.2) both;
}

/* Colored accent bar on the left edge — matches toast type */
.dvo-toast::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: 16px 0 0 16px;
  background: var(--dvo-toast-accent, var(--color-brand));
}

/* Icon badge */
.dvo-toast__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  background: var(--dvo-toast-accent, var(--color-brand));
  box-shadow:
    2px 2px 5px var(--neu-shadow-dark),
    -2px -2px 5px var(--neu-shadow-light);
}

.dvo-toast__body { flex: 1 1 auto; min-width: 0; }
.dvo-toast__title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 2px;
  color: inherit;
}
.dvo-toast__message {
  font-size: 0.8rem;
  line-height: 1.45;
  margin: 0;
  color: #4b5563;
}
.dark .dvo-toast__message { color: #9ca3af; }

.dvo-toast__close {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #6b7280;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 150ms, background 150ms;
}
.dvo-toast__close:hover {
  color: var(--neu-primary);
  background: color-mix(in srgb, var(--color-brand) 8%, transparent);
}
.dark .dvo-toast__close { color: #9ca3af; }
.dark .dvo-toast__close:hover {
  color: var(--color-brand-on-dark-strong);
  background: color-mix(in srgb, var(--color-brand-on-dark-strong) 12%, transparent);
}

/* Progress bar (auto-dismiss countdown) */
.dvo-toast__progress {
  position: absolute;
  left: 4px; right: 0; bottom: 0;
  height: 2px;
  background: var(--dvo-toast-accent, var(--color-brand));
  opacity: 0.55;
  transform-origin: left;
  animation: dvo-toast-progress linear forwards;
  animation-duration: var(--dvo-toast-duration, 5000ms);
}
@keyframes dvo-toast-progress {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

/* Type accent colors */
.dvo-toast--success { --dvo-toast-accent: #10b981; }
.dvo-toast--error   { --dvo-toast-accent: #ef4444; }
.dvo-toast--warning { --dvo-toast-accent: #f59e0b; }
.dvo-toast--info    { --dvo-toast-accent: var(--color-brand); }

/* Reduced motion — respect accessibility preferences */
@media (prefers-reduced-motion: reduce) {
  .dvo-toast,
  .dvo-toast.is-leaving { animation-duration: 1ms; }
  .dvo-toast__progress  { animation-duration: var(--dvo-toast-duration, 5000ms); }
}

/* Mobile: widen within container, keep edge padding */
@media (max-width: 480px) {
  #dvo-toast-container { left: 1rem; right: 1rem; top: 4.5rem; }
  .dvo-toast { min-width: 0; max-width: none; width: 100%; }
}

/* --------------------------------------------------------------------------
   CLOUDFLARE TURNSTILE  —  BORDERLESS CAPTION (idle) / FRAMED PANEL (challenge)
   Turnstile renders in a cross-origin iframe. For legit visitors
   (appearance=interaction-only) the iframe stays empty — so our wrapper
   shouldn't look like a container. It's just a small shield icon + caption
   that sits on the form card background, reads as a trust indicator, and
   stays out of the way.

   Only when a challenge actually renders do we upgrade to a neu-inset
   framed panel so the Turnstile iframe has a styled home.

   data-ts-state values (set by dvo-main.js):
     idle       — borderless: just icon + text on the form background
     challenge  — neu-inset frame appears; iframe fills it
     verified   — still borderless; label tinted green to confirm protection
   -------------------------------------------------------------------------- */
/* Newsletter form variant — center the Turnstile caption + status text so
   they visually balance inside the centered CTA card on /insights and
   /insights/[slug]. Scoped to #nl-form so the contact form (left-aligned
   by design) is untouched. */
#nl-form .cf-ts-wrap { align-items: center; }
#nl-form .cf-ts-wrap .cf-ts-label { justify-content: center; }

.cf-ts-wrap {
  width: 100%;
  max-width: 100%;
  /* Idle default: no padding, no background, no border, no shadow. Just flow. */
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: padding 220ms ease, background 220ms ease,
              box-shadow 220ms ease, border-radius 220ms ease;
}

/* Caption row — icon + text, compact and quiet. Lives on the form background. */
.cf-ts-wrap .cf-ts-label {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--neu-text-secondary, #6b7280);
  letter-spacing: 0.01em;
  opacity: 0.72;
  transition: color 220ms ease, opacity 220ms ease;
}
.dark .cf-ts-wrap .cf-ts-label { color: #9ca3af; }
.cf-ts-wrap:hover .cf-ts-label { opacity: 0.92; }

.cf-ts-wrap .cf-ts-icon {
  color: var(--color-brand);
  flex: 0 0 auto;
  opacity: 0.85;
}
.dark .cf-ts-wrap .cf-ts-icon { color: var(--color-brand-on-dark-strong); }

/* Turnstile iframe container — collapses entirely while idle.
   Both #cf-turnstile-container (contact form) and #nl-turnstile-container
   (newsletter form) share the same layout so the two forms can coexist. */
.cf-ts-wrap #cf-turnstile-container,
.cf-ts-wrap #nl-turnstile-container {
  width: 100%;
  min-height: 0;
  line-height: 0;
  border-radius: 10px;
  overflow: hidden;
}
.cf-ts-wrap #cf-turnstile-container iframe,
.cf-ts-wrap #nl-turnstile-container iframe {
  display: block;
  width: 100% !important;
  border-radius: 10px;
}

/* Idle + verified: no challenge iframe showing. */
.cf-ts-wrap[data-ts-state="idle"] #cf-turnstile-container:empty,
.cf-ts-wrap[data-ts-state="idle"] #nl-turnstile-container:empty,
.cf-ts-wrap[data-ts-state="verified"] #cf-turnstile-container,
.cf-ts-wrap[data-ts-state="verified"] #nl-turnstile-container {
  display: none;
}

/* Verified: label tints green as a subtle success cue. Wrapper stays borderless. */
.cf-ts-wrap[data-ts-state="verified"] .cf-ts-label {
  color: #059669;
  opacity: 0.92;
}
.dark .cf-ts-wrap[data-ts-state="verified"] .cf-ts-label { color: #34d399; }
.cf-ts-wrap[data-ts-state="verified"] .cf-ts-icon {
  color: #059669;
  opacity: 1;
}
.dark .cf-ts-wrap[data-ts-state="verified"] .cf-ts-icon { color: #34d399; }

/* Challenge: upgrade to a framed neu-inset panel so Turnstile's iframe has a
   proper styled home. Only renders when a challenge is actually shown. */
.cf-ts-wrap[data-ts-state="challenge"] {
  padding: 0.875rem;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--neu-bg-secondary), var(--neu-bg-primary));
  box-shadow:
    inset 3px 3px 6px var(--neu-shadow-dark),
    inset -3px -3px 6px var(--neu-shadow-light);
  overflow: hidden;
}
.cf-ts-wrap[data-ts-state="challenge"] .cf-ts-label {
  opacity: 1;
  font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
   MICROSOFT BOOKINGS EMBED (.dvo-bookings-embed)
   Neumorphic-framed iframe. The iframe itself comes from outlook.office.com
   with its own styling; our wrapper gives it a soft neu-inset well so it
   reads as part of the form card. Lazy-loaded via <iframe loading="lazy">.
   -------------------------------------------------------------------------- */
.dvo-bookings-embed {
  position: relative;
  width: 100%;
  min-height: 640px;
  border-radius: 18px;
  padding: 6px;
  background: linear-gradient(145deg, var(--neu-bg-secondary), var(--neu-bg-primary));
  box-shadow:
    inset 4px 4px 8px var(--neu-shadow-dark),
    inset -4px -4px 8px var(--neu-shadow-light);
  overflow: hidden;
}
.dvo-bookings-embed iframe {
  display: block;
  width: 100%;
  height: 640px;
  border: 0;
  border-radius: 14px;
  background: #fff;   /* prevents the iframe flashing a dark frame on load */
}
.dark .dvo-bookings-embed iframe {
  background: #1a1d23; /* neutral dark backdrop during load — MS Bookings has its own theming inside */
}
@media (max-width: 639px) {
  .dvo-bookings-embed,
  .dvo-bookings-embed iframe {
    min-height: 560px;
    height: 560px;
  }
}


/* --- Why-Choose-DVO icon box (home page) ---
   Light mode: soft purple gradient.
   Dark mode: stronger gradient + subtle border for visible separation
   against the dark neumorphic surface. */
.wcd-icon-box {
  background: linear-gradient(135deg, color-mix(in srgb, var(--color-brand) 15%, transparent), color-mix(in srgb, var(--color-brand) 5%, transparent));
  border: 1px solid color-mix(in srgb, var(--color-brand) 18%, transparent);
}
.dark .wcd-icon-box {
  background: linear-gradient(135deg, color-mix(in srgb, var(--color-brand-on-dark-strong) 28%, transparent), color-mix(in srgb, var(--color-brand) 12%, transparent));
  border: 1px solid rgba(196,181,253,0.28);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--color-brand) 5%, transparent) inset;
}

/* ── DVO THEMED TOOLTIPS (button-level) ─────────────────────────────────
   Matches the canonical neumorphic template (Basics > Tooltips):
   dark gray-800 pill, white text, small arrow, 400ms entry delay.
   Rendered as a single floating element anchored by dvo-tooltips.js.
-------------------------------------------------------------------------*/
.dvo-tooltip {
  position: absolute;
  top: 0; left: 0;
  z-index: var(--z-tooltip);
  pointer-events: none;
  padding: 6px 10px;
  border-radius: 8px;
  background: #1f2937;                 /* gray-800 */
  color: #ffffff;
  font-family: 'Bw Gradual','Inter','Segoe UI',sans-serif;
  font-size: 0.75rem;                  /* 12px */
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0,0,0,0.22), 0 1px 2px rgba(0,0,0,0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition:
    opacity 150ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 180ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}
.dvo-tooltip.is-visible {
  visibility: visible;
  transform: translateY(0);
}
.dvo-tooltip.is-measuring {
  visibility: hidden !important;
  opacity: 0 !important;
}
/* Arrow pointing DOWN toward the target (default above placement) */
.dvo-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border: 5px solid transparent;
}
.dvo-tooltip[data-flip="up"]::after {
  top: 100%;
  border-top-color: #1f2937;
}
/* Flipped: arrow points UP when tooltip is below target */
.dvo-tooltip[data-flip="down"]::after {
  bottom: 100%;
  border-bottom-color: #1f2937;
}
/* Dark theme: keep dark pill (contrast stays) but slightly softened edge */
.dark .dvo-tooltip {
  background: #111827;                 /* gray-900 for more contrast in dark */
  box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 1px 2px rgba(0,0,0,0.35);
}
.dark .dvo-tooltip[data-flip="up"]::after { border-top-color: #111827; }
.dark .dvo-tooltip[data-flip="down"]::after { border-bottom-color: #111827; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .dvo-tooltip {
    transform: none !important;
    transition: opacity 120ms ease;
  }
}

/* ── VENDOR CARD: MOBILE PILL VARIANT (≤640px) ───────────────────────────
   On phones, the full detail card is noisy and tooltips are hard to read.
   Below 640px the card collapses into a home-page-style pill:
   - Logo + vendor name in a single inline row
   - Subtitle hidden
   - Tooltip suppressed (tap-to-reveal disabled below 640px)
   - Tighter padding; slightly smaller icon
   Desktop (≥640px) is untouched.
-------------------------------------------------------------------------*/
@media (max-width: 639.98px) {
  .vendor-card {
    padding: 0.625rem 0.875rem !important;       /* matches home vendor-pill rhythm */
    gap: 0.625rem !important;
  }
  .vendor-card .vendor-icon-lg {
    width: 24px !important;
    height: 24px !important;
    flex-shrink: 0;
  }
  /* Hide the subtitle line; keep the vendor name visible */
  .vendor-card .min-w-0 > div.truncate {
    display: none !important;
  }
  /* Vendor name aligns centered inline with the logo */
  .vendor-card .min-w-0 {
    display: flex;
    align-items: center;
  }
  .vendor-card .min-w-0 > div:first-child {
    font-size: 0.875rem;                          /* text-sm */
    line-height: 1.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  /* Suppress tooltip entirely on mobile — pill format is self-explanatory */
  .vendor-card .vendor-tooltip {
    display: none !important;
  }
  /* Disable the tap-open open state on mobile since there's nothing to reveal */
  .vendor-card.vc-open .vendor-tooltip {
    display: none !important;
  }
}

/* ============================================================
   GPON Fiber section — image column alignment
   Target: image+callout group vertical-center aligns with the
   center of the left column's text band (heading → last paragraph).
   Measured target offset at ≥1024px: pt-96px. Uses explicit CSS
   because Tailwind build does not include arbitrary pt-24 / h-[420px]
   utilities. See network-gpon.html #gpon section.
   ============================================================ */
#gpon .gpon-media-frame {
  height: 340px;
  border-radius: 1.5rem;
  overflow: hidden;
}
@media (min-width: 1024px) {
  #gpon .gpon-media-col {
    padding-top: 66px;
    align-self: flex-start;
  }
  #gpon .gpon-media-frame {
    height: 420px;
  }
}

/* ============================================================
   Get-started (#contact) mobile overflow fix
   Root cause: <input> has default HTML size=20 → intrinsic width
   ≈ 20ch (~170px per input). Inside CSS Grid (auto min-track),
   this makes the form card force-expand to ~377px on 320-393px
   viewports (iPhone SE, small Androids), causing horizontal
   overflow that shifts content off-screen. Desktop DevTools
   emulation does not reproduce because it emulates ≥375px and
   scales differently.
   Fix: min-width:0 + max-width:100% on all form descendants so
   the grid/flex container collapses correctly to viewport width.
   Per MDN CSS Grid docs: "min-width: 0" is the canonical fix
   for grid/flex children that have intrinsic min-content width.
   ============================================================ */
#contact .reveal,
#contact .reveal *,
#contact-form,
#contact-form * {
  min-width: 0;
  max-width: 100%;
}
#contact-form input,
#contact-form textarea,
#contact-form select,
#contact-form button {
  width: 100%;
  box-sizing: border-box;
}

/* ============================================================
   Footer clearance for floating FAB stacks on mobile
   Floating controls (bottom-right: scroll/theme/expand) and
   floating-nav (bottom-left: sections menu) are position:fixed
   at ~16-24px from edges. On narrow viewports they overlap the
   footer social icons / copyright. Reserve vertical space in the
   footer so the user can scroll past everything cleanly.
   ============================================================ */
@media (max-width: 640px) {
  footer {
    padding-bottom: 72px;
  }
}

/* SUCCESS ALERT BANNER ------------------------------------------------- */
/* Shared by both Turnstile-protected forms on the site (contact form on
   /get-started and newsletter subscribe on /insights). The visual styling
   is composed entirely with Tailwind classes in main.js; this rule just
   adds the shared entrance animation. Honors prefers-reduced-motion. */
#cf-status.cf-alert,
#nl-status.cf-alert {
  animation: cf-alert-in 260ms ease-out both;
}
@keyframes cf-alert-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  #cf-status.cf-alert,
  #nl-status.cf-alert { animation: none; }
}
