/*
 * wmd-cards.css  —  Watch My Domains SED product page layout
 *
 * All classes prefixed .wmdc- to avoid collisions with site CSS.
 * Load this file AFTER the site stylesheet.
 *
 * Google Fonts (add to <head> if not already present):
 *   <link href="https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&family=Space+Mono:wght@700&display=swap" rel="stylesheet">
 */

/* ═══════════════════════════════════════════════════════════════════
   1. DESIGN TOKENS  +  PAGE CANVAS
   ══════════════════════════════════════════════════════════════════ */
.wmdc-root {
  /* ── Brand ──────────────────────────────────────────────────── */
  /* Slightly less harsh red — still strong but more refined      */
  --wmdc-red:         #c8282a;
  --wmdc-red-dark:    #a01f21;
  --wmdc-red-light:   #fdf0f0;

  /* ── Typography ─────────────────────────────────────────────── */
  --wmdc-ink:         #0f1318;
  --wmdc-ink-mid:     #40464f;
  --wmdc-ink-soft:    #72787f;

  /* ── Surfaces ───────────────────────────────────────────────── */
  --wmdc-surface:     #ffffff;
  --wmdc-bg:          #f7f8fa;   /* warmer, less blue-gray        */
  --wmdc-bg-dark:     #16191e;
  --wmdc-border:      #e4e7ec;   /* crisper, more visible         */

  /* ── Geometry ───────────────────────────────────────────────── */
  --wmdc-radius-sm:   8px;
  --wmdc-radius-md:   14px;
  --wmdc-radius-lg:   20px;

  /* ── Elevation — borders, not shadows ───────────────────────── */
  /* A hairline shadow + crisp border replaces the heavy drops    */
  --wmdc-shadow-card: 0 1px 2px rgba(0,0,0,.04), 0 0 0 1px rgba(0,0,0,.04);
  --wmdc-shadow-img:  none;

  /* ── Fonts ───────────────────────────────────────────────────── */
  --wmdc-font-body:   'DM Sans', sans-serif;
  --wmdc-font-mono:   'Space Mono', monospace;

  /* ── Canvas — muted sky blue, very fine dot grid ─────────────── */
  /* Less saturated, smaller dots, denser grid = quieter texture   */
  background-color: #e8f3fa;
  background-image:
    radial-gradient(circle, rgba(80,140,190,.14) 1px, transparent 1px),
    linear-gradient(160deg, #deedf7 0%, #eaf4fb 50%, #deedf7 100%);
  background-size: 20px 20px, 100% 100%;
  background-attachment: fixed;

  padding-left: 16px !important;
  padding-right: 16px !important;
  box-sizing: border-box;
}


/* ═══════════════════════════════════════════════════════════════════
   CAPABILITIES INDEX — icon tile grid
   ══════════════════════════════════════════════════════════════════ */
.wmdc-cap-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.wmdc-cap-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px 18px;
  background: var(--wmdc-bg);
  border: 1px solid var(--wmdc-border);
  border-radius: var(--wmdc-radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s,
              box-shadow .15s, transform .15s;
}

.wmdc-cap-tile:hover {
  background: #ffffff;
  border-color: #b8c4d0;
  box-shadow: none;
  transform: none;
  text-decoration: none;
}

.wmdc-cap-tile__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--wmdc-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color .15s, background .15s;
}

.wmdc-cap-tile:hover .wmdc-cap-tile__icon {
  background: var(--wmdc-red-light);
  border-color: #e8b3b3;
}

.wmdc-cap-tile__icon svg {
  width: 20px;
  height: 20px;
  color: var(--wmdc-ink-soft);
  transition: color .15s;
}

.wmdc-cap-tile:hover .wmdc-cap-tile__icon svg {
  color: var(--wmdc-red);
}

.wmdc-cap-tile span {
  font-family: var(--wmdc-font-body);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--wmdc-ink-mid);
  text-align: center;
  transition: color .15s;
}

.wmdc-cap-tile:hover span {
  color: var(--wmdc-ink);
}

/* Responsive */
@media (max-width: 960px) {
  .wmdc-cap-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 680px) {
  .wmdc-cap-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}

@media (max-width: 420px) {
  .wmdc-cap-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Dark mode */
[data-theme="dark"] .wmdc-cap-tile {
  background: var(--wmdc-bg);
  border-color: var(--wmdc-border);
}

[data-theme="dark"] .wmdc-cap-tile:hover {
  background: rgba(255,255,255,.05);
  border-color: rgba(180,190,220,.28);
  box-shadow: 0 4px 16px rgba(0,0,0,.30);
}

[data-theme="dark"] .wmdc-cap-tile__icon {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
}

[data-theme="dark"] .wmdc-cap-tile:hover .wmdc-cap-tile__icon {
  background: rgba(232,64,64,.14);
  border-color: rgba(232,64,64,.30);
}

[data-theme="dark"] .wmdc-cap-tile:hover .wmdc-cap-tile__icon svg {
  color: #e84040;
}


/* ═══════════════════════════════════════════════════════════════════
   PLATFORM OVERVIEW — two-column layout
   ══════════════════════════════════════════════════════════════════ */
.wmdc-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.wmdc-overview__text h2 {
  text-align: left !important;
  margin-bottom: 20px;
}

.wmdc-overview__text p {
  font-family: var(--wmdc-font-body);
  color: var(--wmdc-ink-soft);
  line-height: 1.75;
  margin-bottom: 14px;
}

/* 3×2 icon grid */
.wmdc-overview__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.wmdc-pillar {
  background: var(--wmdc-bg);
  border: 1px solid var(--wmdc-border);
  border-radius: var(--wmdc-radius-md);
  padding: 20px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

.wmdc-pillar:hover {
  border-color: #b8c4d0;
  box-shadow: none;
  transform: none;
  background: #ffffff;
}

.wmdc-pillar__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--wmdc-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wmdc-pillar__icon svg {
  width: 20px;
  height: 20px;
  color: var(--wmdc-red);
}

.wmdc-pillar__label {
  font-family: var(--wmdc-font-body);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--wmdc-ink-mid);
}

/* Stack on tablet */
@media (max-width: 820px) {
  .wmdc-overview {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .wmdc-overview__text h2 {
    text-align: center !important;
  }
}

/* Tighter grid on small screens */
@media (max-width: 480px) {
  .wmdc-overview__pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Dark mode */
[data-theme="dark"] .wmdc-pillar {
  background: var(--wmdc-bg);
  border-color: var(--wmdc-border);
}

[data-theme="dark"] .wmdc-pillar:hover {
  border-color: rgba(180,190,220,.28);
  box-shadow: 0 4px 16px rgba(0,0,0,.30);
}

[data-theme="dark"] .wmdc-pillar__icon {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.08);
}


/* ═══════════════════════════════════════════════════════════════════
   2. ALL WRAPPERS → transparent, no card styling here
      The site controls container-wrap widths inconsistently.
      We target .container instead — it is already reliably centred.
   ══════════════════════════════════════════════════════════════════ */
.wmdc-root .container-wrap,
.wmdc-root .container-wrap-odd,
.wmdc-root .container-wrap-even,
.wmdc-root #hero-section,
.wmdc-root #platform-overview,
.wmdc-root #quick-actions,
.wmdc-root #capabilities-index,
.wmdc-root #single-point,
.wmdc-root #multi-user,
.wmdc-root #api-integration,
.wmdc-root #brandable-interface,
.wmdc-root #external-data-sources,
.wmdc-root #custom-fields,
.wmdc-root #domain-categories,
.wmdc-root #manual-edit-import,
.wmdc-root #bulk-edit,
.wmdc-root #display-groups,
.wmdc-root #automated-lookups,
.wmdc-root #wcag-monitoring,
.wmdc-root #lighthouse-reports,
.wmdc-root #scheduled-reports,
.wmdc-root #deployment-options,
.wmdc-root #query-short-codes,
.wmdc-root #backend-database,
.wmdc-root #rdap-whois,
.wmdc-root #audit-trail,
.wmdc-root #saas-premise {
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  max-width: none !important;
  overflow: visible !important;
}


/* ═══════════════════════════════════════════════════════════════════
   3. SECTION CARD SHELL → applied to inner .container
      .container is already max-width + margin:auto from site CSS.
      We just add the card appearance on top.
   ══════════════════════════════════════════════════════════════════ */

.wmdc-root #hero-section > .container,
.wmdc-root #platform-overview > .container,
.wmdc-root #quick-actions > .container,
.wmdc-root #capabilities-index > .container,
.wmdc-root #single-point > .container,
.wmdc-root #multi-user > .container,
.wmdc-root #api-integration > .container,
.wmdc-root #brandable-interface > .container,
.wmdc-root #external-data-sources > .container,
.wmdc-root #custom-fields > .container,
.wmdc-root #domain-categories > .container,
.wmdc-root #manual-edit-import > .container,
.wmdc-root #bulk-edit > .container,
.wmdc-root #display-groups > .container,
.wmdc-root #automated-lookups > .container,
.wmdc-root #wcag-monitoring > .container,
.wmdc-root #lighthouse-reports > .container,
.wmdc-root #scheduled-reports > .container,
.wmdc-root #deployment-options > .container,
.wmdc-root #query-short-codes > .container,
.wmdc-root #backend-database > .container,
.wmdc-root #rdap-whois > .container,
.wmdc-root #audit-trail > .container,
.wmdc-root #saas-premise > .container {
  background: var(--wmdc-surface) !important;
  border: 1px solid var(--wmdc-border) !important;
  border-radius: var(--wmdc-radius-lg) !important;
  box-shadow: var(--wmdc-shadow-card) !important;
  overflow: hidden !important;
  /* border-box: max-width means OUTER width, so all cards are identical
     regardless of how much internal padding each has                    */
  box-sizing: border-box !important;
  margin-top: 24px !important;
  margin-bottom: 24px !important;
}

/* Pre-card content sections — explicit padding for breathing room  */
.wmdc-root #platform-overview > .container,
.wmdc-root #quick-actions > .container,
.wmdc-root #capabilities-index > .container {
  padding: 40px 48px !important;
}
   fills edge-to-edge, same visual weight as the media panel      */
.wmdc-root #single-point > .container,
.wmdc-root #multi-user > .container,
.wmdc-root #api-integration > .container,
.wmdc-root #brandable-interface > .container,
.wmdc-root #external-data-sources > .container,
.wmdc-root #custom-fields > .container,
.wmdc-root #domain-categories > .container,
.wmdc-root #manual-edit-import > .container,
.wmdc-root #bulk-edit > .container,
.wmdc-root #display-groups > .container,
.wmdc-root #automated-lookups > .container,
.wmdc-root #wcag-monitoring > .container,
.wmdc-root #lighthouse-reports > .container,
.wmdc-root #scheduled-reports > .container,
.wmdc-root #deployment-options > .container,
.wmdc-root #query-short-codes > .container,
.wmdc-root #backend-database > .container,
.wmdc-root #rdap-whois > .container,
.wmdc-root #audit-trail > .container,
.wmdc-root #saas-premise > .container {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-top: 40px !important;
  margin-bottom: 40px !important;
}


/* ═══════════════════════════════════════════════════════════════════
   4. FEATURE CARD  (.wmdc-card)
      The section wrapper IS the card, so wmdc-card is a borderless
      content region inside it.
   ══════════════════════════════════════════════════════════════════ */
.wmdc-card {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  overflow: hidden;

  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "wmdc-text wmdc-media";
  min-height: 320px;

  opacity: 0;
  transform: translateY(22px);
  animation: wmdc-cardIn .45s ease forwards;
}

.wmdc-card:nth-of-type(1) { animation-delay: .05s; }
.wmdc-card:nth-of-type(2) { animation-delay: .13s; }
.wmdc-card:nth-of-type(3) { animation-delay: .21s; }
.wmdc-card:nth-of-type(4) { animation-delay: .29s; }
.wmdc-card:nth-of-type(5) { animation-delay: .37s; }
.wmdc-card:nth-of-type(6) { animation-delay: .45s; }

@keyframes wmdc-cardIn {
  to { opacity: 1; transform: translateY(0); }
}

.wmdc-card--flip {
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "wmdc-media wmdc-text";
}


/* ═══════════════════════════════════════════════════════════════════
   5. TEXT COLUMN
   ══════════════════════════════════════════════════════════════════ */
.wmdc-card__text {
  grid-area: wmdc-text;
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  min-width: 0;
}

.wmdc-card__label {
  font-family: var(--wmdc-font-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--wmdc-red);
  margin: 0; padding: 0; border: none; background: none;
}

.wmdc-card__heading {
  font-family: var(--wmdc-font-body);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.02em;
  color: var(--wmdc-ink);
  margin: 0;
}

.wmdc-card__subheading {
  font-family: var(--wmdc-font-body);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--wmdc-ink-mid);
  margin: 0;
}

.wmdc-card__body {
  font-family: var(--wmdc-font-body);
  font-size: .9rem;
  line-height: 1.75;
  color: var(--wmdc-ink-soft);
  margin: 0;
}

.wmdc-card__body p { margin: 0; }
.wmdc-card__body p + p { margin-top: 10px; }


/* ═══════════════════════════════════════════════════════════════════
   6. FEATURE PILLS
   ══════════════════════════════════════════════════════════════════ */
.wmdc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0; padding: 0;
}

.wmdc-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  font-family: var(--wmdc-font-body);
  font-size: .77rem;
  font-weight: 500;
  line-height: 1.6;
  background: var(--wmdc-bg);
  border: 1px solid var(--wmdc-border);
  color: var(--wmdc-ink-mid);
  white-space: nowrap;
  cursor: default;
  transition: background .15s, color .15s, border-color .15s;
  text-decoration: none;
  box-shadow: none;
}

.wmdc-pill:hover {
  background: var(--wmdc-red-light);
  border-color: #e8b3b3;
  color: var(--wmdc-red-dark);
}

.wmdc-pill--on {
  background: var(--wmdc-red-light);
  border-color: #e8b3b3;
  color: var(--wmdc-red-dark);
}


/* ═══════════════════════════════════════════════════════════════════
   7. CTA ROW & BUTTONS
   ══════════════════════════════════════════════════════════════════ */
.wmdc-card__cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.wmdc-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: var(--wmdc-radius-sm);
  font-family: var(--wmdc-font-body);
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: none;
  outline: none;
  white-space: nowrap;
  background-image: none;
  -webkit-appearance: none;
  appearance: none;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
}

.wmdc-btn:focus-visible {
  outline: 2px solid var(--wmdc-red);
  outline-offset: 3px;
}

.wmdc-btn:active { transform: scale(.97) !important; }

.wmdc-btn--primary {
  background: var(--wmdc-red);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(212,43,43,.28);
}

.wmdc-btn--primary:hover {
  background: var(--wmdc-red-dark);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(212,43,43,.36);
  transform: translateY(-1px);
  text-decoration: none;
}

.wmdc-btn--ghost {
  background: transparent;
  color: var(--wmdc-ink-mid);
  border: 1px solid var(--wmdc-border);
  box-shadow: none;
}

.wmdc-btn--ghost:hover {
  background: var(--wmdc-bg);
  border-color: #b8bdc7;
  color: var(--wmdc-ink);
  text-decoration: none;
}

.wmdc-btn__icon {
  width: 15px; height: 15px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════════════════════
   8. MEDIA COLUMN
   ══════════════════════════════════════════════════════════════════ */
.wmdc-card__media {
  grid-area: wmdc-media;
  background: var(--wmdc-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  max-height: 560px;
  overflow: hidden;
  min-height: 300px;
}

.wmdc-card__media--dark { background: var(--wmdc-bg-dark); }

.wmdc-card__screenshot {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--wmdc-radius-md);
  box-shadow: var(--wmdc-shadow-img);
  transition: transform .3s ease, box-shadow .3s ease;
}

.wmdc-card:hover .wmdc-card__screenshot {
  transform: scale(1.012) translateY(-2px);
  box-shadow: none;
}


/* ═══════════════════════════════════════════════════════════════════
   9. HERO TYPOGRAPHY & COMPONENTS
   ══════════════════════════════════════════════════════════════════ */

/* Hero card — extra top margin; padding goes on .hero-container
   (a child) so the outer card width stays consistent             */
.wmdc-root #hero-section > .container {
  margin-top: 32px !important;
}

.wmdc-root .hero-container {
  padding: 56px 48px;
}
.wmdc-root .hero-product-label {
  font-family: var(--wmdc-font-mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--wmdc-red);
  margin: 0 0 16px;
  padding: 0; background: none; border: none;
}

.wmdc-root .hero-heading {
  color: var(--wmdc-ink);
  font-family: var(--wmdc-font-body);
  letter-spacing: -.025em;
  line-height: 1.15;
  text-shadow: none;
}

.wmdc-root .hero-heading::after {
  content: '';
  display: block;
  width: 40px; height: 3px;
  background: var(--wmdc-red);
  border-radius: 2px;
  margin-top: 14px;
}

.wmdc-root .hero-subheading.primary {
  color: var(--wmdc-ink-mid);
  font-family: var(--wmdc-font-body);
  font-size: 1.05rem;
  font-weight: 500;
  font-style: normal;
  line-height: 1.65;
}

.wmdc-root .hero-subheading.secondary {
  color: var(--wmdc-ink-soft);
  font-family: var(--wmdc-font-body);
  font-size: .92rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.65;
}

.wmdc-root .hero-container .screenshot {
  border-radius: var(--wmdc-radius-lg);
  box-shadow: none;
  border: 1px solid var(--wmdc-border);
  margin-top: 24px;
  margin-bottom: 24px;
}

.wmdc-root .hero-editions-note {
  font-family: var(--wmdc-font-body);
  font-size: .8rem;
  color: var(--wmdc-ink-soft);
  margin-top: 10px;
}

.wmdc-root .hero-container h3 {
  color: var(--wmdc-ink-soft);
  font-family: var(--wmdc-font-body);
  font-size: .82rem;
  font-weight: 400;
  line-height: 1.6;
  margin-top: 12px;
  background: none;
  background-color: transparent;
  background-image: none;
  padding: 0;
}

/* Hero pills */
.wmdc-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 20px 0 24px;
  padding: 0;
}

/* Platform Highlights panel — inset card within the hero card */
.wmdc-root .hero-list-container {
  background: var(--wmdc-bg);
  border: 1px solid var(--wmdc-border);
  border-radius: var(--wmdc-radius-lg);
  padding: 28px 28px 24px;
  box-shadow: none;
}

.wmdc-root .hero-list-container > .hero-product-label { margin-bottom: 16px; }

.wmdc-root .hero-list li > span:first-child {
  color: var(--wmdc-ink);
  font-family: var(--wmdc-font-body);
  font-weight: 600;
  font-size: .95rem;
}

.wmdc-root .hero-list li > span:last-child {
  color: var(--wmdc-ink-soft);
  font-family: var(--wmdc-font-body);
  font-size: .85rem;
  line-height: 1.55;
}

/* Hero button toolbar */
.wmdc-root .horiz-btn-toolbar {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: center !important;
  margin: 4px 0 16px !important;
}

.wmdc-root .horiz-btn-toolbar .btn-group {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: center !important;
}

.wmdc-root .horiz-btn-toolbar .btn {
  display: inline-flex !important;
  width: auto !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  padding: 10px 20px !important;
  border-radius: var(--wmdc-radius-sm) !important;
  font-family: var(--wmdc-font-body) !important;
  font-size: .84rem !important;
  font-weight: 600 !important;
  letter-spacing: .01em !important;
  line-height: 1 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  background-image: none !important;
  transition: transform .12s ease, box-shadow .12s ease,
              background .15s ease, border-color .15s ease, color .15s ease;
  background: #ffffff !important;
  border: 1px solid var(--wmdc-border) !important;
  color: var(--wmdc-ink-mid) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.07) !important;
}

.wmdc-root .horiz-btn-toolbar .btn:hover {
  background: var(--wmdc-bg) !important;
  border-color: #b8bdc7 !important;
  color: var(--wmdc-ink) !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,.10) !important;
  text-decoration: none !important;
}

.wmdc-root .horiz-btn-toolbar .wmdsed-professional:first-child {
  background: var(--wmdc-red) !important;
  border-color: var(--wmdc-red) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(212,43,43,.30) !important;
}

.wmdc-root .horiz-btn-toolbar .wmdsed-professional:first-child:hover {
  background: var(--wmdc-red-dark) !important;
  border-color: var(--wmdc-red-dark) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(212,43,43,.40) !important;
  transform: translateY(-1px);
}


/* ═══════════════════════════════════════════════════════════════════
   10. RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .wmdc-card { grid-template-columns: 55% 45%; }
  .wmdc-card--flip { grid-template-columns: 45% 55%; }
  .wmdc-card__text { padding: 40px 36px; }
  .wmdc-root #hero-section > .container { padding: 40px 32px; }
}

@media (max-width: 680px) {
  .wmdc-card,
  .wmdc-card--flip {
    grid-template-columns: 1fr;
    grid-template-areas: "wmdc-text" "wmdc-media";
  }
  .wmdc-card__text  { order: 1; padding: 32px 24px; gap: 14px; }
  .wmdc-card__media { order: 2; min-height: 180px; max-height: 240px; padding: 20px; }
  .wmdc-card__screenshot { max-height: 210px; }
  .wmdc-root #hero-section > .container { padding: 32px 20px; }
}

@media (max-width: 400px) {
  .wmdc-card__text { padding: 20px 16px; gap: 12px; }
  .wmdc-btn { padding: 9px 16px; font-size: .8rem; }
}


/* ═══════════════════════════════════════════════════════════════════
   11. DARK MODE
   ══════════════════════════════════════════════════════════════════ */
[data-theme="dark"] .wmdc-root {
  --wmdc-red:        #e04040;
  --wmdc-red-dark:   #c02020;
  --wmdc-red-light:  rgba(224,64,64,.12);

  --wmdc-ink:        #eaeff4;
  --wmdc-ink-mid:    #a0acba;
  --wmdc-ink-soft:   #68788a;

  --wmdc-surface:    #111720;
  --wmdc-bg:         #0b1019;
  --wmdc-bg-dark:    #060a10;
  --wmdc-border:     rgba(255,255,255,.08);

  --wmdc-shadow-card: 0 0 0 1px rgba(255,255,255,.06);
  --wmdc-shadow-img:  none;

  /* Canvas — deep navy, same quiet dot grid */
  background-color: #070e18;
  background-image:
    radial-gradient(circle, rgba(50,100,160,.16) 1px, transparent 1px),
    linear-gradient(160deg, #050c16 0%, #0a1422 50%, #050c16 100%);
  background-size: 20px 20px, 100% 100%;
}

[data-theme="dark"] .wmdc-root .hero-list-container {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.08);
}

[data-theme="dark"] .wmdc-root .hero-container .screenshot {
  border-color: rgba(255,255,255,.08);
}

[data-theme="dark"] .wmdc-root .horiz-btn-toolbar .btn {
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(255,255,255,.12) !important;
  color: var(--wmdc-ink-mid) !important;
  box-shadow: none !important;
}

[data-theme="dark"] .wmdc-root .horiz-btn-toolbar .btn:hover {
  background: rgba(255,255,255,.12) !important;
  border-color: rgba(255,255,255,.22) !important;
  color: var(--wmdc-ink) !important;
}

[data-theme="dark"] .wmdc-pill:hover {
  background: rgba(232,64,64,.18);
  border-color: rgba(232,64,64,.35);
  color: #f08080;
}

[data-theme="dark"] .wmdc-pill--on {
  background: rgba(232,64,64,.14);
  border-color: rgba(232,64,64,.30);
  color: #f08080;
}

[data-theme="dark"] .wmdc-btn--ghost {
  color: var(--wmdc-ink-mid);
  border-color: rgba(180,190,220,.22);
}

[data-theme="dark"] .wmdc-btn--ghost:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(180,190,220,.40);
  color: var(--wmdc-ink);
}

[data-theme="dark"] .wmdc-card:hover .wmdc-card__screenshot {
  box-shadow: 0 8px 40px rgba(0,0,0,.60);
}


/* ═══════════════════════════════════════════════════════════════════
   12. REDUCED MOTION
   ══════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .wmdc-card { animation: none; opacity: 1; transform: none; }
  .wmdc-card:hover .wmdc-card__screenshot,
  .wmdc-btn--primary:hover,
  .wmdc-btn--ghost:hover { transform: none; }
}


/* ═══════════════════════════════════════════════════════════════════
   13. DOWNLOAD PAGE COMPONENTS
   ══════════════════════════════════════════════════════════════════ */

/* Register all download section IDs for the card-on-canvas treatment */
.wmdc-root #dl-hero > .container,
.wmdc-root #dl-latest > .container,
.wmdc-root #dl-install > .container,
.wmdc-root #dl-older > .container {
  background: var(--wmdc-surface) !important;
  border: 1px solid var(--wmdc-border) !important;
  border-radius: var(--wmdc-radius-lg) !important;
  box-shadow: var(--wmdc-shadow-card) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  padding: 40px 48px !important;
  margin-top: 24px !important;
  margin-bottom: 24px !important;
}

.wmdc-root #dl-hero > .container {
  margin-top: 32px !important;
}

/* ── Back link ─────────────────────────────────────────────────── */
.wmdc-dl-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--wmdc-font-body);
  font-size: .82rem;
  font-weight: 500;
  color: var(--wmdc-ink-soft);
  text-decoration: none;
  margin-bottom: 16px;
  transition: color .15s;
}

.wmdc-dl-back svg {
  width: 14px;
  height: 14px;
  transition: transform .15s;
}

.wmdc-dl-back:hover {
  color: var(--wmdc-ink);
  text-decoration: none;
}

.wmdc-dl-back:hover svg {
  transform: translateX(-3px);
}

/* ── Hero ──────────────────────────────────────────────────────── */
.wmdc-dl-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.wmdc-dl-hero__text {
  flex: 1;
}

.wmdc-dl-hero__heading {
  font-family: var(--wmdc-font-body);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.15;
  color: var(--wmdc-ink);
  margin: 12px 0 16px;
}

.wmdc-dl-hero__sub {
  font-family: var(--wmdc-font-body);
  font-size: 1rem;
  color: var(--wmdc-ink-soft);
  line-height: 1.65;
  margin: 0;
}

.wmdc-dl-hero__badges {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.wmdc-dl-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--wmdc-bg);
  border: 1px solid var(--wmdc-border);
  border-radius: var(--wmdc-radius-md);
  font-family: var(--wmdc-font-body);
  font-size: .84rem;
  font-weight: 500;
  color: var(--wmdc-ink-mid);
}

.wmdc-dl-badge svg {
  width: 18px;
  height: 18px;
  color: var(--wmdc-red);
  flex-shrink: 0;
}

/* ── Section heading ───────────────────────────────────────────── */
.wmdc-dl-section-heading {
  font-family: var(--wmdc-font-body);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--wmdc-ink);
  margin: 8px 0 28px;
}

/* ── Download option cards ─────────────────────────────────────── */
.wmdc-dl-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.wmdc-dl-option {
  background: var(--wmdc-bg);
  border: 1px solid var(--wmdc-border);
  border-radius: var(--wmdc-radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Featured variant — white surface, red top border accent */
.wmdc-dl-option--featured {
  background: var(--wmdc-surface);
  border-color: var(--wmdc-red-light);
  border-top-width: 3px;
}

.wmdc-dl-option__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--wmdc-radius-md);
  background: var(--wmdc-surface);
  border: 1px solid var(--wmdc-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wmdc-dl-option--featured .wmdc-dl-option__icon {
  background: var(--wmdc-red-light);
  border-color: #e8b3b3;
}

.wmdc-dl-option__icon svg {
  width: 20px;
  height: 20px;
  color: var(--wmdc-ink-soft);
}

.wmdc-dl-option--featured .wmdc-dl-option__icon svg {
  color: var(--wmdc-red);
}

.wmdc-dl-option__title {
  font-family: var(--wmdc-font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--wmdc-ink);
  margin: 0;
}

.wmdc-dl-option__desc {
  font-family: var(--wmdc-font-body);
  font-size: .88rem;
  line-height: 1.65;
  color: var(--wmdc-ink-soft);
  margin: 0;
  flex: 1;
}

.wmdc-dl-option__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.wmdc-dl-option__note {
  font-family: var(--wmdc-font-body);
  font-size: .78rem;
  line-height: 1.55;
  color: var(--wmdc-ink-soft);
  margin: 0;
  border-top: 1px solid var(--wmdc-border);
  padding-top: 12px;
}

/* ── Installation resources ────────────────────────────────────── */
.wmdc-dl-resources {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.wmdc-dl-resource {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--wmdc-bg);
  border: 1px solid var(--wmdc-border);
  border-radius: var(--wmdc-radius-md);
  text-decoration: none;
  transition: border-color .15s, background .15s;
}

.wmdc-dl-resource:hover {
  background: var(--wmdc-surface);
  border-color: #b8c4d0;
  text-decoration: none;
}

.wmdc-dl-resource__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--wmdc-radius-sm);
  background: var(--wmdc-surface);
  border: 1px solid var(--wmdc-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}

.wmdc-dl-resource:hover .wmdc-dl-resource__icon {
  background: var(--wmdc-red-light);
  border-color: #e8b3b3;
}

.wmdc-dl-resource__icon svg {
  width: 18px;
  height: 18px;
  color: var(--wmdc-ink-soft);
  transition: color .15s;
}

.wmdc-dl-resource:hover .wmdc-dl-resource__icon svg {
  color: var(--wmdc-red);
}

.wmdc-dl-resource__title {
  font-family: var(--wmdc-font-body);
  font-size: .9rem;
  font-weight: 600;
  color: var(--wmdc-ink);
  margin-bottom: 4px;
}

.wmdc-dl-resource__desc {
  font-family: var(--wmdc-font-body);
  font-size: .8rem;
  line-height: 1.5;
  color: var(--wmdc-ink-soft);
}

/* ── Requirements list ─────────────────────────────────────────── */
.wmdc-dl-reqs {
  background: var(--wmdc-bg);
  border: 1px solid var(--wmdc-border);
  border-radius: var(--wmdc-radius-md);
  padding: 24px 28px;
}

.wmdc-dl-reqs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wmdc-dl-reqs__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--wmdc-font-body);
  font-size: .87rem;
  line-height: 1.6;
  color: var(--wmdc-ink-soft);
}

.wmdc-dl-reqs__list li svg {
  width: 16px;
  height: 16px;
  color: var(--wmdc-red);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Inline variant used inside option cards */
.wmdc-dl-reqs__list--inline {
  gap: 8px;
}

.wmdc-dl-reqs__list--inline li {
  font-size: .83rem;
}

/* ── Link ──────────────────────────────────────────────────────── */
.wmdc-dl-link {
  color: var(--wmdc-red);
  text-decoration: none;
}

.wmdc-dl-link:hover {
  text-decoration: underline;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .wmdc-dl-hero { flex-direction: column; align-items: flex-start; }
  .wmdc-dl-hero__badges { flex-direction: row; flex-wrap: wrap; }
  .wmdc-dl-options { grid-template-columns: 1fr; }
  .wmdc-dl-resources { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .wmdc-dl-resources { grid-template-columns: 1fr; }
  .wmdc-root #dl-hero > .container,
  .wmdc-root #dl-latest > .container,
  .wmdc-root #dl-install > .container,
  .wmdc-root #dl-older > .container {
    padding: 28px 20px !important;
  }
}

/* ── Dark mode ─────────────────────────────────────────────────── */
[data-theme="dark"] .wmdc-dl-option--featured {
  border-color: var(--wmdc-red-light);
  background: rgba(232,64,64,.04);
}

[data-theme="dark"] .wmdc-dl-option__icon,
[data-theme="dark"] .wmdc-dl-resource__icon {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
}

[data-theme="dark"] .wmdc-dl-resource:hover .wmdc-dl-resource__icon,
[data-theme="dark"] .wmdc-dl-option--featured .wmdc-dl-option__icon {
  background: rgba(232,64,64,.14);
  border-color: rgba(232,64,64,.30);
}


/* ═══════════════════════════════════════════════════════════════════
   14. PRO DOWNLOAD PAGE
   ══════════════════════════════════════════════════════════════════ */

/* Section card */
.wmdc-root #pro-dl > .container {
  background: var(--wmdc-surface) !important;
  border: 1px solid var(--wmdc-border) !important;
  border-radius: var(--wmdc-radius-lg) !important;
  box-shadow: var(--wmdc-shadow-card) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  padding: 40px 48px !important;
  margin-top: 32px !important;
  margin-bottom: 24px !important;
}

/* Two-column layout — form left, info right */
.wmdc-pro-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ── Left column ───────────────────────────────────────────────── */
.wmdc-pro-heading {
  font-family: var(--wmdc-font-body);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.15;
  color: var(--wmdc-ink);
  margin: 12px 0 6px;
}

.wmdc-pro-sub {
  font-family: var(--wmdc-font-body);
  font-size: .92rem;
  color: var(--wmdc-ink-soft);
  margin: 0 0 24px;
}

/* Auth card */
.wmdc-pro-auth-card {
  background: var(--wmdc-bg);
  border: 1px solid var(--wmdc-border);
  border-radius: var(--wmdc-radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wmdc-pro-auth-card__header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.wmdc-pro-auth-card__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--wmdc-radius-md);
  background: var(--wmdc-surface);
  border: 1px solid var(--wmdc-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wmdc-pro-auth-card__icon svg {
  width: 20px;
  height: 20px;
  color: var(--wmdc-red);
}

.wmdc-pro-auth-card__title {
  font-family: var(--wmdc-font-body);
  font-size: .95rem;
  font-weight: 600;
  color: var(--wmdc-ink);
  margin-bottom: 4px;
}

.wmdc-pro-auth-card__hint {
  font-family: var(--wmdc-font-body);
  font-size: .82rem;
  color: var(--wmdc-ink-soft);
  line-height: 1.5;
}

/* Form elements */
.wmdc-pro-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wmdc-pro-form__label {
  font-family: var(--wmdc-font-body);
  font-size: .82rem;
  font-weight: 600;
  color: var(--wmdc-ink-mid);
  display: block;
  margin-bottom: 4px;
}

.wmdc-pro-form__textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--wmdc-font-mono);
  font-size: .8rem;
  line-height: 1.6;
  color: var(--wmdc-ink);
  background: var(--wmdc-surface);
  border: 1px solid var(--wmdc-border);
  border-radius: var(--wmdc-radius-sm);
  resize: vertical;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}

.wmdc-pro-form__textarea:focus {
  border-color: var(--wmdc-red);
  box-shadow: 0 0 0 3px var(--wmdc-red-light);
}

.wmdc-pro-form__textarea::placeholder {
  color: var(--wmdc-ink-soft);
  opacity: .6;
}

.wmdc-pro-form__submit {
  align-self: flex-end;
  width: 100%;
  justify-content: center;
}

.wmdc-pro-form__footer {
  font-family: var(--wmdc-font-body);
  font-size: .8rem;
  color: var(--wmdc-ink-soft);
  line-height: 1.55;
  margin: 0;
  padding-top: 4px;
  border-top: 1px solid var(--wmdc-border);
}

/* ── Right column ──────────────────────────────────────────────── */
.wmdc-pro-info-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 52px; /* align with form card, below back link + label + heading */
}

.wmdc-pro-info-block {
  background: var(--wmdc-bg);
  border: 1px solid var(--wmdc-border);
  border-radius: var(--wmdc-radius-md);
  padding: 24px;
}

/* Pro feature list */
.wmdc-pro-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.wmdc-pro-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.wmdc-pro-feature-list__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--wmdc-radius-sm);
  background: var(--wmdc-surface);
  border: 1px solid var(--wmdc-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wmdc-pro-feature-list__icon svg {
  width: 16px;
  height: 16px;
  color: var(--wmdc-red);
}

.wmdc-pro-feature-list__title {
  font-family: var(--wmdc-font-body);
  font-size: .88rem;
  font-weight: 600;
  color: var(--wmdc-ink);
  margin-bottom: 2px;
}

.wmdc-pro-feature-list__desc {
  font-family: var(--wmdc-font-body);
  font-size: .8rem;
  color: var(--wmdc-ink-soft);
  line-height: 1.5;
}

/* Info note block */
.wmdc-pro-info-block--note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
}

.wmdc-pro-note-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wmdc-pro-note-icon svg {
  width: 18px;
  height: 18px;
  color: var(--wmdc-ink-soft);
}

.wmdc-pro-info-block--note p {
  font-family: var(--wmdc-font-body);
  font-size: .82rem;
  color: var(--wmdc-ink-soft);
  line-height: 1.6;
  margin: 0;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 780px) {
  .wmdc-pro-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .wmdc-pro-info-col { padding-top: 0; }
  .wmdc-root #pro-dl > .container {
    padding: 28px 20px !important;
  }
}

/* ── Dark mode ─────────────────────────────────────────────────── */
[data-theme="dark"] .wmdc-pro-auth-card,
[data-theme="dark"] .wmdc-pro-info-block {
  background: var(--wmdc-bg);
  border-color: var(--wmdc-border);
}

[data-theme="dark"] .wmdc-pro-auth-card__icon,
[data-theme="dark"] .wmdc-pro-feature-list__icon {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
}

[data-theme="dark"] .wmdc-pro-form__textarea {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.10);
  color: var(--wmdc-ink);
}

[data-theme="dark"] .wmdc-pro-form__textarea:focus {
  border-color: var(--wmdc-red);
  box-shadow: 0 0 0 3px rgba(232,64,64,.12);
}

/* ── Flash messages ────────────────────────────────────────────── */
.wmdc-flash {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--wmdc-radius-sm);
  border: 1px solid;
  font-family: var(--wmdc-font-body);
  font-size: .84rem;
  line-height: 1.5;
}

.wmdc-flash svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* error / danger */
.wmdc-flash--error,
.wmdc-flash--danger {
  background: var(--wmdc-red-light);
  border-color: #e8b3b3;
  color: var(--wmdc-red-dark);
}

.wmdc-flash--error svg,
.wmdc-flash--danger svg {
  color: var(--wmdc-red);
}

/* success */
.wmdc-flash--success {
  background: #f0faf4;
  border-color: #a8d5b5;
  color: #1e6b3a;
}

.wmdc-flash--success svg { color: #27a355; }

/* info / default */
.wmdc-flash--info,
.wmdc-flash--message {
  background: #f0f6ff;
  border-color: #b3ccf0;
  color: #1a4a8a;
}

.wmdc-flash--info svg,
.wmdc-flash--message svg { color: #2563c8; }

/* warning */
.wmdc-flash--warning {
  background: #fffbf0;
  border-color: #f0d080;
  color: #7a5500;
}

.wmdc-flash--warning svg { color: #c88800; }

/* dark mode */
[data-theme="dark"] .wmdc-flash--error,
[data-theme="dark"] .wmdc-flash--danger {
  background: rgba(232,64,64,.12);
  border-color: rgba(232,64,64,.30);
  color: #f08080;
}

[data-theme="dark"] .wmdc-flash--success {
  background: rgba(39,163,85,.10);
  border-color: rgba(39,163,85,.28);
  color: #6dd99a;
}

[data-theme="dark"] .wmdc-flash--info,
[data-theme="dark"] .wmdc-flash--message {
  background: rgba(37,99,200,.12);
  border-color: rgba(37,99,200,.28);
  color: #90b8f8;
}

[data-theme="dark"] .wmdc-flash--warning {
  background: rgba(200,136,0,.10);
  border-color: rgba(200,136,0,.28);
  color: #f0c040;
}

.bookmark-link.back-to-top {
	margin-bottom: 20px
}