/* ───────────────────────────────────────────────────────────────────────────
   Domma CMS Manager - Custom CSS
   ─────────────────────────────────────────────────────────────────────────── */

/* ── Marketing hero typography ───────────────────────────────────────────────
   Larger, more impactful hero headlines on dreamy-light marketing pages.
   ─────────────────────────────────────────────────────────────────────────── */

.hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-gradient-dreamy-light h1 {
  color: #1e293b;
}

.hero-gradient-dreamy-light p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(30, 41, 59, 0.8);
  max-width: 48ch;
}

/* ── Section heading weight ──────────────────────────────────────────────────
   Give marketing h2s more visual punch.
   ─────────────────────────────────────────────────────────────────────────── */

.page-body h2 {
  font-weight: 800;
  letter-spacing: -0.025em;
}

.page-body h3 {
  font-weight: 700;
  letter-spacing: -0.015em;
}

/* ── Button contrast overrides for dreamy-light heroes ──────────────────────
   Hero buttons are styled via .hero .hero-cta a - NOT via .btn-* classes.
   Wrap hero CTAs in <div class="hero-cta"> in Markdown to get layout + colour.
   These rules override the default (white-on-dark) colours for the light theme.
   ─────────────────────────────────────────────────────────────────────────── */

/* Primary button (first CTA) - dark fill on light background */
.hero-gradient-dreamy-light .hero-cta a:first-child {
  background: #1e293b !important;
  color: #f5ede8 !important;
  border-color: #1e293b !important;
}
.hero-gradient-dreamy-light .hero-cta a:first-child:hover {
  background: #0f172a !important;
  color: #ffffff !important;
}

/* Secondary button (last CTA) - outlined dark on light background */
.hero-gradient-dreamy-light .hero-cta a:last-child {
  background: transparent !important;
  color: #1e293b !important;
  border: 1px solid rgba(30, 41, 59, 0.45) !important;
}
.hero-gradient-dreamy-light .hero-cta a:last-child:hover {
  background: rgba(30, 41, 59, 0.08) !important;
  border-color: rgba(30, 41, 59, 0.7) !important;
}

/* ── Card hover lift ─────────────────────────────────────────────────────────
   Subtle upward shift + shadow enhancement on hoverable cards.
   The `hover` shortcode attr produces data-hover="true" on the element.
   ─────────────────────────────────────────────────────────────────────────── */

.card[data-hover="true"] {
  transition: transform 0.22s ease, box-shadow 0.22s ease !important;
  will-change: transform;
}

.card[data-hover="true"]:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

/* ── Icon-top / card icon sizing ─────────────────────────────────────────────
   site.css sets card-icon to 2rem. Override to be more prominent.
   card-avatar-wrap is the centered wrapper above the title in icon-top cards.
   ─────────────────────────────────────────────────────────────────────────── */

.card-icon {
  font-size: 2.5rem !important;
  margin-bottom: 12px !important;
  opacity: 0.95;
}

.card-avatar-wrap {
  padding: 20px 16px 12px !important;
  gap: 0.5rem;
}

/* Legacy icon-wrap classes from custom layouts */
.mk-card-icon-wrap,
.card-icon-wrap {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.125rem;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* ── Corner badge (Premium label) ────────────────────────────────────────────
   Gold pill badge shown top-right of corner-badge layout cards.
   ─────────────────────────────────────────────────────────────────────────── */

.mk-card-corner-badge,
.card-corner-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 99px;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.45);
}

/* ── Premium subtitle badge pill ─────────────────────────────────────────────
   icon-top cards with class="card-premium" show subtitle="Premium Plugin".
   Style the subtitle as a gold pill badge rather than dim label text.
   ─────────────────────────────────────────────────────────────────────────── */

.card-premium .card-subtitle {
  display: inline-block !important;
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
  opacity: 1 !important;
  #color: #fff !important;
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  padding: 0.2rem 0.65rem !important;
  border-radius: 99px !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4) !important;
  margin-bottom: 0.75rem !important;
}

/* ── Badge-band card ─────────────────────────────────────────────────────────
   Free/Premium band displayed above the icon in badge-band layout cards.
   ─────────────────────────────────────────────────────────────────────────── */

.mk-card-badge-band,
.card-badge-band {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  margin-bottom: 0.875rem;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ── Rating review stars ─────────────────────────────────────────────────────
   Gold star display for quote-testimonial and rating-review layout cards.
   ─────────────────────────────────────────────────────────────────────────── */

.mk-card-stars,
.card-stars {
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}

.mk-card-reviewer,
.card-reviewer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.mk-card-reviewer-name,
.card-reviewer-name {
  font-weight: 700;
  font-size: 0.9375rem;
}

.mk-card-reviewer-role,
.card-reviewer-role {
  font-size: 0.8125rem;
  opacity: 0.65;
}

/* ── Info/docs banner prominence ─────────────────────────────────────────────
   Slightly stronger left border on info banners.
   ─────────────────────────────────────────────────────────────────────────── */

.mk-banner.type-info,
[class*="banner-info"],
.mk-banner[data-type="info"] {
  border-left: 4px solid #5c3d2e;
}

.mk-banner.type-success,
[class*="banner-success"],
.mk-banner[data-type="success"] {
  border-left: 4px solid #22c55e;
}

.mk-banner.type-warning,
[class*="banner-warning"],
.mk-banner[data-type="warning"] {
  border-left: 4px solid #f59e0b;
}

/* ── Stats / accent band ─────────────────────────────────────────────────────
   Retains styles from the old stats band for any pages that still use them.
   ─────────────────────────────────────────────────────────────────────────── */

.mk-stat-number {
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #5c3d2e;
}

.mk-stat-label {
  font-size: 0.9375rem;
  font-weight: 600;
  opacity: 0.65;
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ── Multi-column footer ─────────────────────────────────────────────────────
   Rendered by site-tweaks plugin when footer.columns is set in site.json.
   ─────────────────────────────────────────────────────────────────────────── */

.mk-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 1.5rem;
}

.mk-footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
  .mk-footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .mk-footer-columns {
    grid-template-columns: 1fr;
  }
}

.mk-footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.5;
  margin: 0 0 0.75rem;
}

.mk-footer-col-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mk-footer-col-links a {
  font-size: 0.875rem;
  opacity: 0.75;
  text-decoration: none;
  transition: opacity 0.15s;
}

.mk-footer-col-links a:hover {
  opacity: 1;
}

.mk-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.mk-footer-copyright {
  font-size: 0.8125rem;
  opacity: 0.5;
  margin: 0;
}

.mk-footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.mk-footer-social {
  display: flex;
  gap: 0.75rem;
}

.mk-footer-social-link {
  opacity: 0.5;
  transition: opacity 0.15s;
  font-size: 1.125rem;
}

.mk-footer-social-link:hover {
  opacity: 1;
}

.mk-motion-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  opacity: 0.5;
  cursor: pointer;
  user-select: none;
}

.mk-motion-label:hover {
  opacity: 0.75;
}

/* ── Screenshot window frame ─────────────────────────────────────────────────
   Rendered by [screenshot-window src="..." alt="..." /] block.
   ─────────────────────────────────────────────────────────────────────────── */

.dm-static-block {
  display: contents;
}

.mk-window {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 56px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.10);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.mk-window-bar {
  background: #e8e8e8;
  padding: 10px 16px;
  display: flex;
  gap: 7px;
  align-items: center;
}

.mk-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mk-dot-red    { background: #ff5f57; }
.mk-dot-amber  { background: #febc2e; }
.mk-dot-green  { background: #28c840; }

.mk-window-body img {
  width: 100%;
  display: block;
  max-height: 480px;
  object-fit: cover;
  object-position: top;
}

/* ── Screenshot caption badges ──────────────────────────────────────────────
   Used under [screenshot-window] blocks as [center][badge variant="secondary"]...[/badge][/center]
   ─────────────────────────────────────────────────────────────────────────── */

.dm-static-block + p {
  margin-top: 0.5rem;
}

/* ── Nav active page indicator ───────────────────────────────────────────────
   Applied by inject-body.html script - marks the current page's nav link.
   ─────────────────────────────────────────────────────────────────────────── */

/* The bold + underline marker on the current page's link is the CMS's own default now
   (public/css/site.css), and it steps aside when a menu chooses its own "When selected"
   effect - this unguarded copy drew the underline even with "When selected: None". */

/* ── Section divider ─────────────────────────────────────────────────────────
   <hr class="mk-divider"> between major page sections.
   ─────────────────────────────────────────────────────────────────────────── */

.mk-divider {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  margin: 0;
}

/* ── Tabs section guttering ──────────────────────────────────────────────────
   Tabs rendered inside .page-body should respect the same side guttering as
   other content sections. Applied here as a global safety net.
   ─────────────────────────────────────────────────────────────────────────── */

.page-body .mk-tabs,
.page-body .tabs-wrapper,
.page-body > .tabs {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ── Section label pill ──────────────────────────────────────────────────────
   Subtle pill labels rendered by [section-label label="..." /].
   ─────────────────────────────────────────────────────────────────────────── */

.mk-section-label,
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.875rem;
  border-radius: 99px;
  margin-bottom: 1.125rem;
  background: rgba(92, 61, 46, 0.1);
  color: #5c3d2e;
  border: 1px solid rgba(92, 61, 46, 0.2);
}

/* Button theme defaults. Normal declarations let site CSS and inline styles
   customise buttons without requiring. Keep hover colours explicit
   and suppress the prose-link underline on button links. */

/* Primary button - filled, theme-primary background, inverse text */
.page-body .btn-primary,
.page-body a.btn-primary {
  background-color: var(--dm-primary, #8d6e63);
  color: var(--dm-text-inverse, #ffffff);
  border: 1px solid var(--dm-primary, #8d6e63);
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.page-body .btn-primary:hover,
.page-body a.btn-primary:hover {
  background-color: var(--dm-primary-hover, #6d4c41);
  color: var(--dm-text-inverse, #ffffff);
  border-color: var(--dm-primary-hover, #6d4c41);
  text-decoration: none;
}

/* Outline button - transparent bg, theme-primary border and text */
.page-body .btn-outline,
.page-body a.btn-outline {
  background-color: transparent;
  color: var(--dm-primary, #8d6e63);
  border: 1.5px solid var(--dm-primary, #8d6e63);
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.page-body .btn-outline:hover,
.page-body a.btn-outline:hover {
  background-color: var(--dm-primary, #8d6e63);
  color: var(--dm-text-inverse, #ffffff);
  border-color: var(--dm-primary, #8d6e63);
  text-decoration: none;
}

/* Ghost button - transparent bg, theme-primary text only, no border */
.page-body .btn-ghost,
.page-body a.btn-ghost {
  background-color: transparent;
  color: var(--dm-primary, #8d6e63);
  border: 1px solid transparent;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.page-body .btn-ghost:hover,
.page-body a.btn-ghost:hover {
  background-color: var(--dm-primary-light, rgba(141, 110, 99, 0.1));
  color: var(--dm-primary-hover, #6d4c41);
  text-decoration: none;
}

/* ── Step-numbered card ──────────────────────────────────────────────────────
   Large, prominent step number displayed above the title.
   ─────────────────────────────────────────────────────────────────────────── */

.mk-card-step-number,
.card-step-number {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  opacity: 0.25;
  margin-bottom: 0.75rem;
}

.mk-card-step-title,
.card-step-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* ── Enterprise badge variant ────────────────────────────────────────────────
   Distinct dark slate for Enterprise vs gold for Premium.
   ─────────────────────────────────────────────────────────────────────────── */

.card[data-badge="Enterprise"] .mk-card-corner-badge,
.card[data-badge="Enterprise"] .card-corner-badge {
  background: linear-gradient(135deg, #1e293b, #334155);
  box-shadow: 0 2px 10px rgba(30, 41, 59, 0.5);
}

/* ── Badge-band icon prominence ──────────────────────────────────────────────
   site.css sets card-badge-band-icon to 1.4rem. Push it larger.
   ─────────────────────────────────────────────────────────────────────────── */

.card-badge-band-icon {
  font-size: 1.75rem !important;
}

.card-badge-band {
  padding: 14px 18px !important;
  gap: 0.5rem;
}

.card-badge-band-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Card title sizing ────────────────────────────────────────────────────────
   site.css only sets color on .card-title (no font-size/weight).
   Force a proper heading size for icon-top, badge-band, corner-badge cards.
   ─────────────────────────────────────────────────────────────────────────── */

.card-title {
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.015em !important;
  line-height: 1.25 !important;
  margin-bottom: 0.4rem !important;
}

.card-subtitle {
  font-size: 0.8125rem !important;
  opacity: 0.7 !important;
  margin-bottom: 0.5rem !important;
  font-weight: 500 !important;
}

/* ── Card body text ───────────────────────────────────────────────────────────
   Slightly looser body text inside cards for readability.
   ─────────────────────────────────────────────────────────────────────────── */

.mk-card-body p,
.card-body p,
.card > p {
  font-size: 0.9375rem;
  line-height: 1.65;
  opacity: 0.88;
}

/* ── Card theme gradients ────────────────────────────────────────────────────
   Theme-based gradient variants for [card variant="gradient" gradient="..."].
   Colours mirror the equivalent .hero-gradient-* classes defined in site.css.

   Upstream gradient names (4 not already in site.css): purple, blue, green, night
   Theme variants (26): {theme}-{light|dark} for ocean, forest, sunset, royal,
     lemon, silver, charcoal, christmas, unicorn, dreamy, grayve, mint, wedding

   Already defined in site.css (do not redefine): arctic, aurora, dusk, fire,
     forest, gold, indigo, lagoon, lime, midnight, ocean, rose, slate, sunset
   ─────────────────────────────────────────────────────────────────────────── */

/* !important required because site.css sets `.page-body .dm-card-gradient { background: #fff }`
   at specificity (0,3,0) which would otherwise beat `.card-gradient-X` at (0,1,0). */
.card-gradient-purple { background: linear-gradient(135deg, #ede9fe, #ddd6fe) !important; color: #1e1b4b !important; }
.card-gradient-blue   { background: linear-gradient(135deg, #dbeafe, #bfdbfe) !important; color: #1e3a5f !important; }
.card-gradient-green  { background: linear-gradient(135deg, #d1fae5, #a7f3d0) !important; color: #064e3b !important; }
.card-gradient-night  { background: linear-gradient(135deg, #334155, #1e293b) !important; color: #e2e8f0 !important; }

.card-gradient-ocean-light    { background: linear-gradient(135deg, #e0f2fe, #caf0f8) !important; color: #1e293b !important; }
.card-gradient-ocean-dark     { background: linear-gradient(135deg, #0c4a6e, #164e63) !important; color: #e2e8f0 !important; }
.card-gradient-forest-light   { background: linear-gradient(135deg, #d1fae5, #c6f6dc) !important; color: #1e293b !important; }
.card-gradient-forest-dark    { background: linear-gradient(135deg, #1a4731, #166534) !important; color: #e2e8f0 !important; }
.card-gradient-sunset-light   { background: linear-gradient(135deg, #fde8d8, #fddcc9) !important; color: #1e293b !important; }
.card-gradient-sunset-dark    { background: linear-gradient(135deg, #6b3727, #7c4036) !important; color: #f5ede8 !important; }
.card-gradient-royal-light    { background: linear-gradient(135deg, #e8f0fd, #dce8fc) !important; color: #1e293b !important; }
.card-gradient-royal-dark     { background: linear-gradient(135deg, #1e3465, #263d7a) !important; color: #e2e8f0 !important; }
.card-gradient-lemon-light    { background: linear-gradient(135deg, #fefce8, #fef9c3) !important; color: #1e293b !important; }
.card-gradient-lemon-dark     { background: linear-gradient(135deg, #5c4d1a, #6b5920) !important; color: #fefce8 !important; }
.card-gradient-silver-light   { background: linear-gradient(135deg, #f1f5f9, #e2e8f0) !important; color: #1e293b !important; }
.card-gradient-silver-dark    { background: linear-gradient(135deg, #2d3748, #374151) !important; color: #e2e8f0 !important; }
.card-gradient-charcoal-light { background: linear-gradient(135deg, #eceff1, #e1e7eb) !important; color: #1e293b !important; }
.card-gradient-charcoal-dark  { background: linear-gradient(135deg, #2c3843, #374451) !important; color: #e2e8f0 !important; }
.card-gradient-christmas-light{ background: linear-gradient(135deg, #fde8ea, #fdd5d8) !important; color: #1e293b !important; }
.card-gradient-christmas-dark { background: linear-gradient(135deg, #5c0f1d, #7a1525) !important; color: #fde8ea !important; }
.card-gradient-unicorn-light  { background: linear-gradient(135deg, #f5e8fd, #edd6fb) !important; color: #1e293b !important; }
.card-gradient-unicorn-dark   { background: linear-gradient(135deg, #3d1a5a, #4a2068) !important; color: #f5e8fd !important; }
.card-gradient-dreamy-light   { background: linear-gradient(135deg, #f5ede8, #eeddd4) !important; color: #1e293b !important; }
.card-gradient-dreamy-dark    { background: linear-gradient(135deg, #3d2820, #503328) !important; color: #f5ede8 !important; }
.card-gradient-grayve-light   { background: linear-gradient(135deg, #e0f7f9, #cbf2f5) !important; color: #1e293b !important; }
.card-gradient-grayve-dark    { background: linear-gradient(135deg, #00363d, #00444d) !important; color: #e0f7f9 !important; }
.card-gradient-mint-light     { background: linear-gradient(135deg, #d8f5ea, #c5efdd) !important; color: #1e293b !important; }
.card-gradient-mint-dark      { background: linear-gradient(135deg, #134d33, #195f3f) !important; color: #d8f5ea !important; }
.card-gradient-wedding-light  { background: linear-gradient(135deg, #faf3e0, #f5e9c7) !important; color: #1e293b !important; }
.card-gradient-wedding-dark   { background: linear-gradient(135deg, #5c4418, #6f5320) !important; color: #faf3e0 !important; }

/* ── Built-in gradient header colours ────────────────────────────────────────
   site.css paints `.page-body .dm-card-gradient .card-header` with a
   gradient built from CSS vars `--dm-card-g-start` / `--dm-card-g-end`
   (default indigo→purple fallback). Built-in gradient classes like
   `.card-gradient-sunset` only set `background` on the card root (stripped
   to white by the .page-body body-fill rule), so the header falls through
   to the indigo→purple fallback.

   Supply the correct CSS vars per gradient here, so the header picks up
   the right colours without touching the body. Body stays white, header
   gets gradient - which is what marketing pages actually want. */
.card-gradient-slate  { --dm-card-g-start: #475569; --dm-card-g-end: #1e293b; }
.card-gradient-dusk   { --dm-card-g-start: #7c3aed; --dm-card-g-end: #db2777; }
.card-gradient-sunset { --dm-card-g-start: #f59e0b; --dm-card-g-end: #ec4899; }
.card-gradient-rose   { --dm-card-g-start: #fb7185; --dm-card-g-end: #e11d48; }
.card-gradient-gold   { --dm-card-g-start: #f59e0b; --dm-card-g-end: #b45309; }
.card-gradient-fire   { --dm-card-g-start: #ef4444; --dm-card-g-end: #fbbf24; }

/* ── Built-in gradient header text colour overrides ──────────────────────────
   site.css hardcodes `.card-header { color: #fff }` which fails contrast
   on light-gradient headers (amber/pink/yellow starts). Pair each light
   gradient with dark text. Hard rule: every background needs contextual
   text colour. */
.page-body .card.dm-card-gradient.card-gradient-sunset .card-header,
.page-body .card.dm-card-gradient.card-gradient-rose .card-header,
.page-body .card.dm-card-gradient.card-gradient-gold .card-header,
.page-body .card.dm-card-gradient.card-gradient-fire .card-header {
  color: #1e293b !important;
}
/* Slate and dusk are dark-enough throughout - white header text is fine,
   which is what site.css gives by default, no override needed. */

/* Header transparency - FULL-FILL gradients only ────────────────────────────
   Custom `.card-gradient-{*-light,*-dark,purple,blue,green,night}` classes
   in this file use !important on `background:` to fill the entire card body
   with gradient. For those, the header must be transparent so the root
   gradient shows through (otherwise the header would paint indigo→purple
   from the site.css default on top of a different-coloured body).

   Built-in `.card-gradient-{slate,dusk,sunset,rose,gold,fire,...}` classes
   from site.css do NOT fill the body (the .page-body body-fill rule strips
   them to white) and are explicitly HEADER-ONLY gradient cards. They must
   NOT be transparent - they need to paint the header with the correct
   gradient via --dm-card-g-start / --dm-card-g-end CSS vars defined above. */
.page-body .card.dm-card-gradient[class*="-light"] .card-header,
.page-body .card.dm-card-gradient[class*="-dark"] .card-header,
.page-body .card.dm-card-gradient.card-gradient-purple .card-header,
.page-body .card.dm-card-gradient.card-gradient-blue .card-header,
.page-body .card.dm-card-gradient.card-gradient-green .card-header,
.page-body .card.dm-card-gradient.card-gradient-night .card-header {
  background: transparent !important;
  color: inherit !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Title/subtitle colour override - needed on ALL card-gradient variants so
   .card-title / .card-subtitle inherit the gradient's root colour instead of
   the hardcoded near-white set earlier in this file. */
.card[class*="card-gradient-"] .card-title,
.card[class*="card-gradient-"] .card-subtitle {
  color: inherit !important;
}

/* ── Gradient card screenshot frames ─────────────────────────────────────────
   Screenshot windows inside gradient cards get a slightly darker bar to
   contrast with the card gradient rather than the default light grey.
   ─────────────────────────────────────────────────────────────────────────── */

.card[class*="gradient"] .mk-window-bar,
.card[data-gradient] .mk-window-bar {
  background: rgba(0, 0, 0, 0.25);
}

.card[class*="gradient"] .mk-dot-red    { background: rgba(255, 95, 87, 0.7); }
.card[class*="gradient"] .mk-dot-amber  { background: rgba(254, 188, 46, 0.7); }
.card[class*="gradient"] .mk-dot-green  { background: rgba(40, 200, 64, 0.7); }

/* ── Plugins page hero list ───────────────────────────────────────────────────
   The dark night card in the hero right column - tighten up listgroup spacing.
   ─────────────────────────────────────────────────────────────────────────── */

.hero .card .mk-listgroup-item,
.hero .card .list-group-item {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  font-size: 0.9rem;
}

/* ── Screenshot window inside card ───────────────────────────────────────────
   Prevent dm-static-block wrapper from collapsing inside card flex layouts.
   ─────────────────────────────────────────────────────────────────────────── */

.card .dm-static-block {
  display: block;
  width: 100%;
}

.card .mk-window {
  margin-bottom: 0;
}

/* ── Workflow feature mini-cards ─────────────────────────────────────────────
   Used by content/blocks/workflow-feature.html, rendered via
   [collection slug="workflow-features" display="block" block="workflow-feature"
    where="tab=<audience>" cols="2"] in the "Built for the way you work"
   section of the home page. */
.wf-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.wf-feature:hover {
  border-color: #475569;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}
.wf-feature-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #475569, #1e293b);
  color: #f1f5f9;
  border-radius: 8px;
  font-size: 1.1rem;
}
.wf-feature-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.4;
  flex: 1 1 auto;
}

/* ── Plugin showcase cards ───────────────────────────────────────────────────
   Used by content/blocks/plugin-card.html, rendered via
   [collection slug="plugins" display="block" block="plugin-card" where="tier=..."]
   on the home page and /plugins page. */
.plugin-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  text-decoration: none !important;
  color: inherit !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
  min-height: 340px;
}
.plugin-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  border-color: #475569;
}
.plugin-card-cover {
  position: relative;
  width: 100%;
  height: 150px;
  background-size: cover;
  background-position: center;
  background-color: #e2e8f0;
  flex-shrink: 0;
}
.plugin-card-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(15, 23, 42, 0.55) 100%);
}
.plugin-card-tier-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 20px;
  color: #1e293b;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
}
.plugin-card[data-tier="free"] .plugin-card-tier-badge::before { content: 'Free'; }
.plugin-card[data-tier="premium"] .plugin-card-tier-badge::before { content: 'Premium'; }
.plugin-card[data-tier="premium"] .plugin-card-tier-badge {
  color: #f1f5f9;
  background: linear-gradient(135deg, #475569, #1e293b);
}
.plugin-card-body {
  flex: 1 1 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  color: #1e293b;
}
.plugin-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.plugin-card-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #475569, #1e293b);
  color: #f1f5f9;
  border-radius: 10px;
  font-size: 1.3rem;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}
.plugin-card-title {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  line-height: 1.2 !important;
  margin: 0 !important;
}
.plugin-card-desc {
  font-size: 0.88rem !important;
  color: #475569 !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  flex: 1 1 auto;
}
.plugin-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  margin-top: 8px;
  transition: color 0.15s ease, gap 0.15s ease;
}
.plugin-card:hover .plugin-card-cta {
  color: #1e293b;
  gap: 8px;
}

/* ── Link colour - global, theme-aware ───────────────────────────────────────
   site.css has `.page-body a { color: var(--primary, #5b8cff) }` - note the
   broken variable name `--primary` (no `dm-` prefix). No theme ever sets that
   variable, so it falls through to the blue fallback on every page.

   Fix: override with `--dm-primary` (the real theme variable) so links track
   whichever theme the visitor is viewing. Every Domma theme (dreamy-light,
   ocean-dark, forest-light, etc.) sets `--dm-primary` and `--dm-primary-hover`
   to theme-appropriate tones - warm brown on dreamy-light, deep teal on ocean,
   and so on. Rule: NO plain blue links anywhere, ever.

   Excluded from this rule (they have their own link styling):
   - .btn / .btn-* (any button class)
   - .plugin-card (has its own hover colour)
   - .hero-cta a (handled earlier in this file)
   - .nav* a (chrome)
   - .footer* a (chrome) */
.page-body a:not([class*="btn"]):not(.plugin-card):not([class*="nav"]):not([class*="footer"]) {
  color: var(--dm-primary, var(--dm-text, #5d4037)) !important;
  text-decoration: underline;
  text-decoration-color: var(--dm-border, rgba(0, 0, 0, 0.2));
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.page-body a:not([class*="btn"]):not(.plugin-card):not([class*="nav"]):not([class*="footer"]):hover {
  color: var(--dm-primary-hover, var(--dm-text, #3e2723)) !important;
  text-decoration-color: var(--dm-primary, currentColor);
}
/* Links inside gradient card bodies (e.g. Core Capabilities "Learn more →")
   sit on a white body beneath a slate header. Force theme-primary explicitly
   so the body link tone matches the rest of the page. */
.page-body .dm-card-gradient .card-body a:not([class*="btn"]) {
  color: var(--dm-primary, var(--dm-text, #5d4037)) !important;
}
.page-body .dm-card-gradient .card-body a:not([class*="btn"]):hover {
  color: var(--dm-primary-hover, var(--dm-text, #3e2723)) !important;
}
/* Ultra-specific safety net - covers any anchor the base rule might miss
   due to cascade or specificity edge cases. Uses `html body` to push
   specificity high enough to beat anything reasonable. */
html body .page-body a[href]:not([class*="btn"]):not(.plugin-card):not([class*="nav"]):not([class*="footer"]):not(.dm-breadcrumbs-link) {
  color: var(--dm-primary, #8d6e63) !important;
}
html body .page-body a[href]:not([class*="btn"]):not(.plugin-card):not([class*="nav"]):not([class*="footer"]):not(.dm-breadcrumbs-link):hover {
  color: var(--dm-primary-hover, #6d4c41) !important;
}
/* Bottom-of-page .hero-cta that sits OUTSIDE a .hero wrapper - site.css
   only styles `.hero .hero-cta a` (requires hero ancestor), so page-level
   hero-cta divs lose their pill styling and fall through to default link
   colour. Restore pill styling and theme-aware colour. */
.page-body .hero-cta:not(.hero .hero-cta) a:not([class*="btn"]),
.page-body > * .hero-cta a:not([class*="btn"]) {
  color: var(--dm-primary, #8d6e63) !important;
  text-decoration: none !important;
  background: transparent;
  border: 1px solid var(--dm-border, rgba(141, 110, 99, 0.35));
  padding: 0.55rem 1.35rem;
  border-radius: 6px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.page-body .hero-cta:not(.hero .hero-cta) a:not([class*="btn"]):hover,
.page-body > * .hero-cta a:not([class*="btn"]):hover {
  color: var(--dm-primary-hover, #6d4c41) !important;
  background: var(--dm-primary-light, rgba(141, 110, 99, 0.08));
  border-color: var(--dm-primary, #8d6e63);
}

/* ── Features page section images ────────────────────────────────────────────
   Used on /features in each "split" section (2-col grid with image on one
   side, text on the other). Clean photo with rounded corners and soft shadow,
   capped height so tall photos don't dominate the grid. */
.feature-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.15);
  display: block;
}
/* Vertically centre the image within its grid column so when the prose column
   on the other side is taller, the image sits in the middle instead of at the
   top. Uses `:has()` - supported in all modern browsers (Chrome 105+,
   Safari 15.4+, Firefox 121+). No markdown changes required. */
.page-body .grid > .col:has(> .feature-image),
.page-body .grid > .col:has(.reveal > .feature-image),
.page-body .grid > .col:has(.feature-image) {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ── Code blocks inside cards ────────────────────────────────────────────────
   Workaround for the triple-backtick-inside-card bug (fixed properly in
   server/services/markdown.js but requires a server restart to take effect).
   Use <pre class="code-block"><code>...</code></pre> in markdown content -
   marked passes block-level raw HTML through unchanged, so this sidesteps
   the fence detection path that was colliding with scrubCodeRegions.

   Style is deliberately dark-terminal so the code sits nicely inside any
   card background (slate, dreamy, sunset, etc.) without clashing. */
.code-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(241, 245, 249, 0.75);
  background: rgba(15, 23, 42, 0.55);
  padding: 6px 12px;
  border-radius: 6px 6px 0 0;
  border-bottom: 1px solid rgba(241, 245, 249, 0.12);
}
.code-label + .code-block {
  margin-top: 0 !important;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
/* `.code-block` is used on a <div> (not <pre>) to sidestep the
   scrubCodeRegions pre-regex, which would otherwise replace the element
   with a placeholder token that collides with the card-body pipeline and
   produces literal "undefined" strings. CSS below gives a <div> the visual
   behaviour of a <pre> - monospace font, preserved whitespace, scrolling. */
.code-block {
  display: block;
  background: #0f172a !important;
  color: #e2e8f0 !important;
  padding: 18px 20px !important;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.55;
  margin: 0 0 20px 0;
  box-shadow: inset 0 0 0 1px rgba(241, 245, 249, 0.08);
  white-space: pre;
  font-family: 'Fira Code', 'Consolas', 'Monaco', 'Courier New', monospace;
}
.code-block code {
  background: transparent !important;
  color: inherit !important;
  padding: 0 !important;
  font-family: inherit !important;
  font-size: inherit;
  white-space: pre;
  display: block;
}
/* Also style any fenced code block that marked DOES recognise (e.g. on a
   server that has the markdown.js fix live) so both paths look identical. */
.page-body .card-body > pre > code,
.page-body .card-body pre.code-block > code {
  color: #e2e8f0 !important;
}

/* ── Run option cards ────────────────────────────────────────────────────────
   Used by content/blocks/run-option-card.html, rendered via
   [collection slug="run-options" display="block" block="run-option-card"]
   on /get-started. Rich showcase card with banner image, icon chip,
   title/subtitle, flexible body HTML, and two CTAs. */
.run-option-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.run-option-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.14);
  border-color: #475569;
}
.run-option-banner {
  position: relative;
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: #e2e8f0;
  flex-shrink: 0;
}
.run-option-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.7) 100%);
}
.run-option-icon-chip {
  position: absolute;
  bottom: -26px;
  left: 24px;
  z-index: 2;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #475569, #1e293b);
  color: #f1f5f9;
  border-radius: 14px;
  font-size: 1.6rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.3);
  border: 3px solid #fff;
}
.run-option-card-body {
  flex: 1 1 auto;
  padding: 40px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.run-option-title {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: #1e293b !important;
  margin: 0 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.01em !important;
}
.run-option-sub {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: var(--dm-primary, #5d4037) !important;
  margin: 0 0 8px 0 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.run-option-content {
  flex: 1 1 auto;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #475569;
}
.run-option-content p { margin: 0 0 12px 0; }
.run-option-content .run-option-intro {
  font-size: 0.98rem;
  color: #1e293b;
  font-weight: 500;
  margin-bottom: 16px;
}
.run-option-content .run-option-body-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dm-primary, #5d4037);
  margin-bottom: 8px;
}
.run-option-content .run-option-req {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 14px;
}
.run-option-content .code-block {
  margin: 8px 0 14px 0;
}
.run-option-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.run-option-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #1e293b;
}
.run-option-list li [data-icon] {
  color: var(--dm-primary, #5d4037);
  flex-shrink: 0;
}
.run-option-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}
.run-option-ctas .btn {
  flex: 1 1 auto;
  text-align: center;
  white-space: nowrap;
  min-width: fit-content;
}

/* ── Quickstart step cards ───────────────────────────────────────────────────
   Used by content/blocks/quickstart-step.html, rendered via
   [collection slug="quickstart-steps" display="block" block="quickstart-step"
    cols="4"] on /get-started. Large step number as background decoration,
   icon + title + description forming the readable content. */
.quickstart-step {
  position: relative;
  padding: 28px 22px 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.quickstart-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  border-color: #475569;
}
.quickstart-step-number {
  position: absolute;
  top: 8px;
  right: 14px;
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(71, 85, 105, 0.08);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  user-select: none;
}
.quickstart-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #475569, #1e293b);
  color: #f1f5f9;
  border-radius: 10px;
  font-size: 1.3rem;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
  position: relative;
  z-index: 1;
}
.quickstart-step-title {
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  color: #1e293b !important;
  margin: 0 0 8px 0 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.01em !important;
  position: relative;
  z-index: 1;
}
.quickstart-step-desc {
  font-size: 0.86rem;
  line-height: 1.55;
  color: #475569;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ── Registration page ───────────────────────────────────────────────────────
   The buy/register funnel. Neutral-gray fallbacks throughout so nothing
   disappears if a token is missing on a given theme.
   ─────────────────────────────────────────────────────────────────────────── */
.reg-wrap { max-width: 1060px; margin: 0 auto; padding: 0 1.5rem; }

.reg-point,
.reg-step {
  height: 100%;
  padding: 22px 22px 24px;
  border: 1px solid var(--dm-border, rgba(128, 128, 128, .28));
  border-radius: 14px;
  background: var(--dm-surface, rgba(128, 128, 128, .06));
}
.reg-point h3,
.reg-step h3 {
  margin: 14px 0 8px !important;
  font-size: 1.02rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}
.reg-point p,
.reg-step p {
  margin: 0 !important;
  font-size: .88rem;
  line-height: 1.6;
  color: var(--dm-text-muted, #64748b);
}
.reg-point-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 9px;
  box-sizing: border-box;
  border-radius: 10px;
  background: var(--dm-primary, #475569);
  color: var(--dm-text-inverse, #fff);
}
.reg-step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--dm-primary, #475569);
  color: var(--dm-text-inverse, #fff);
  font-weight: 800;
  font-size: .85rem;
}

/* The plan chooser is the first decision on the page, so give it room and make
   the recommended option obvious. Domma renders each option as .picker-option
   with the real radio visually hidden inside it. */
.domma-form .picker-options {
  gap: 14px;
}
.domma-form .picker-option {
  padding: 16px 18px;
  border: 1px solid var(--dm-border, rgba(128, 128, 128, .3));
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.domma-form .picker-option:hover {
  border-color: var(--dm-primary, #475569);
}
.domma-form .picker-option.is-selected,
.domma-form .picker-option:has(input:checked) {
  border-color: var(--dm-primary, #475569);
  box-shadow: 0 0 0 2px var(--dm-primary, #475569) inset;
}
.domma-form .picker-option.is-recommended::after {
  content: 'Recommended';
  position: absolute;
  top: -9px;
  right: 14px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--dm-primary, #475569);
  color: var(--dm-text-inverse, #fff);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .reg-wrap { padding: 0 1rem; }
}

/* The plan chooser is the first decision, so it gets the full form width and
   one column per option.

   Two things fight it otherwise: the form field's `span: "full"` is not applied
   by the renderer (the wrapper comes out with grid-column:auto), and the picker
   lays its options out on a fixed three-column grid however many there are - so
   two plans rendered as two thirds of the left-hand column. Both are corrected
   here rather than in the form definition, which cannot express either. */
.domma-form .domma-form-field:has(input[name="plan"]) {
  grid-column: 1 / -1;
}
.domma-form .domma-form-field:has(input[name="plan"]) .picker-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.domma-form .domma-form-field:has(input[name="hasGiftCode"]) {
  grid-column: 1 / -1;
}

/* Give each plan card room to breathe now that it has the width. */
.domma-form .domma-form-field:has(input[name="plan"]) .picker-option {
  padding: 20px 22px;
}

/* ── Registration outcome states ─────────────────────────────────────────────
   Shared by the checkout and success pages. The client replaces the inner
   markup, so these are the classes register.js writes as well as the ones the
   page ships with, keeping the pending and resolved states identical in shape.
   ─────────────────────────────────────────────────────────────────────────── */
.reg-wrap-narrow { max-width: 620px; }
.reg-centre { text-align: center; }

.reg-result {
  padding: 40px 34px 34px;
  border: 1px solid var(--dm-border, rgba(128, 128, 128, .28));
  border-radius: 18px;
  background: var(--dm-surface, rgba(128, 128, 128, .05));
  text-align: center;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .08);
}
.reg-result h2 {
  margin: 18px 0 10px !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}
.reg-result p {
  margin: 0 0 10px !important;
  font-size: .94rem;
  line-height: 1.65;
  color: var(--dm-text-muted, #64748b);
}
.reg-result-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--dm-text-inverse, #fff);
  background: var(--dm-primary, #475569);
}
.reg-result-ok      .reg-result-icon { background: var(--dm-success, #15803d); }
.reg-result-error   .reg-result-icon { background: var(--dm-danger, #b91c1c); }
.reg-result-pending .reg-result-icon {
  background: var(--dm-border, rgba(128, 128, 128, .35));
  color: var(--dm-text, #1f2937);
  animation: reg-pulse 1.4s ease-in-out infinite;
}
@keyframes reg-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* The domain the site will answer on: the one fact people screenshot. */
.reg-result-domain {
  margin: 16px 0 !important;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--dm-hover-bg, rgba(128, 128, 128, .12));
  font-size: .95rem !important;
  color: var(--dm-text, #1f2937) !important;
  word-break: break-all;
}
.reg-result-next {
  margin: 18px auto 6px !important;
  padding: 0;
  max-width: 400px;
  text-align: left;
  list-style: none;
  counter-reset: reg;
}
.reg-result-next li {
  counter-increment: reg;
  position: relative;
  padding: 9px 0 9px 36px;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--dm-text-muted, #64748b);
  border-bottom: 1px solid var(--dm-border, rgba(128, 128, 128, .18));
}
.reg-result-next li:last-child { border-bottom: 0; }
.reg-result-next li::before {
  content: counter(reg);
  position: absolute;
  left: 0;
  top: 8px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--dm-primary, #475569);
  color: var(--dm-text-inverse, #fff);
  font-size: .68rem;
  font-weight: 800;
}
.reg-result-note {
  margin: 14px 0 0 !important;
  font-size: .82rem !important;
  color: var(--dm-text-muted, #94a3b8) !important;
}

/* The step cards carry an icon on the success page rather than a number. */
.reg-step-n[data-icon] {
  width: 38px;
  height: 38px;
  padding: 9px;
  box-sizing: border-box;
  border-radius: 10px;
}

/* Section eyebrow. The showcase site has a section-label block for this; the
   manager does not, so the shortcode rendered as literal text on the page. */
.reg-eyebrow {
  margin: 0 0 10px !important;
  font-size: .72rem !important;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dm-primary, #475569) !important;
}

/* DCM home page. Keep the marketing layout scoped to this page. */
.dcm-home {
  --home-ink: #202d2b;
  --home-muted: #5c6864;
  --home-line: #dce2da;
  --home-accent: #ad431f;
  color: var(--home-ink);
  padding: 24px 0 20px;
}
.dcm-home *, .dcm-home *::before, .dcm-home *::after { box-sizing: border-box; }
.dcm-home h1, .dcm-home h2, .dcm-home h3, .dcm-home p { margin: 0; }
.dcm-home h1, .dcm-home h2, .dcm-home h3 { color: inherit; }
.dcm-home a { text-decoration: none; }
.dcm-home a:focus-visible { outline: 3px solid #ad431f; outline-offset: 6px; }
.dcm-home [data-icon] { display: inline-flex; flex-shrink: 0; }
.dcm-home [data-icon] svg { width: 100%; height: 100%; }
.dcm-home .dcm-home-eyebrow { display: flex; align-items: center; gap: 9px; color: var(--home-accent); font-size: .72rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; line-height: 1.6; }
.dcm-home-eyebrow > span:empty { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.dcm-home-hero { display: grid; grid-template-columns: 1.08fr 1fr; gap: 54px; align-items: center; padding: 30px 0 72px; }
.dcm-home h1 { margin: 22px 0; font-size: clamp(2.8rem, 5.2vw, 4.65rem); font-weight: 800; line-height: 1.04; letter-spacing: -.055em; }
.dcm-home h1 em { color: var(--home-accent); font-style: normal; }
.dcm-home .dcm-home-lead { max-width: 44ch; font-size: 1.1rem; line-height: 1.75; color: var(--home-muted); }
.dcm-home-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin: 30px 0 18px; }
.dcm-home .dcm-home-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 48px; padding: 13px 21px; background: var(--home-ink); color: #fff; border: 1px solid var(--home-ink); border-radius: 8px; font-size: .9rem; font-weight: 700; line-height: 1.4; transition: background .18s; }
.dcm-home .dcm-home-button:hover { background: #384b46; color: #fff; }
.dcm-home .dcm-home-text-link { display: inline-flex; align-items: center; gap: 12px; color: inherit; font-size: .9rem; font-weight: 700; line-height: 1.5; }
.dcm-home .dcm-home-text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.dcm-home .dcm-home-small { color: var(--home-muted); font-size: .76rem; line-height: 1.6; }
.dcm-home-studio { position: relative; margin: 10px 0 18px; padding: 10px; border: 1px solid #e2dfd5; border-radius: 16px; background: #f7f3e9; box-shadow: 0 24px 60px -32px #36443966; transform: rotate(2deg); }
.dcm-home-studio-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 6px 16px; font-size: .65rem; color: #666b60; }
.dcm-home-dots { color: #b9b8ad; font-size: .65rem; letter-spacing: 2px; }
.dcm-home-studio-bar [data-icon] { width: 15px; height: 15px; }
.dcm-home-studio-photo { position: relative; min-height: 300px; overflow: hidden; border-radius: 8px; background: #303d35; }
.dcm-home-studio-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #162821d9, #16282108); }
.dcm-home-studio-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 65% center; }
.dcm-home-photo-copy { position: relative; z-index: 1; padding: 34px 24px; color: #fffaf0; }
.dcm-home-photo-copy span { font-size: .6rem; font-weight: 700; letter-spacing: .15em; }
.dcm-home-photo-copy strong { display: block; margin-top: 28px; font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.1; }
.dcm-home-studio-bottom { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 22px 12px 14px; }
.dcm-home-studio-bottom strong { display: block; margin-top: 6px; font-size: .9rem; }
.dcm-home-studio-bottom .dcm-home-eyebrow { font-size: .6rem; }
.dcm-home-round { width: 38px; height: 38px; padding: 9px; background: #d9e5c9; border-radius: 50%; }
.dcm-home-studio-note { position: absolute; right: -14px; bottom: -30px; display: flex; align-items: center; gap: 12px; padding: 16px 21px; border: 1px solid #d5e0cc; border-radius: 10px; background: #e8efdd; font-size: .72rem; line-height: 1.7; transform: rotate(-5deg); box-shadow: 0 8px 20px #263a2010; }
.dcm-home-studio-note [data-icon] { width: 25px; height: 25px; color: #426545; }
.dcm-home-benefits { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding: 24px 0; border-block: 1px solid var(--home-line); color: var(--home-muted); font-size: .8rem; font-weight: 600; }
.dcm-home-benefits > span { display: flex; align-items: center; gap: 9px; }
.dcm-home-benefits [data-icon] { width: 18px; height: 18px; }
.dcm-home-section { padding: 80px 0 0; scroll-margin-top: 100px; }
.dcm-home-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; margin-bottom: 32px; }
.dcm-home h2 { margin-top: 12px; font-size: clamp(1.9rem, 3.3vw, 2.65rem); line-height: 1.12; letter-spacing: -.04em; font-weight: 700; }
.dcm-home-section-head > p { max-width: 32ch; color: var(--home-muted); font-size: .95rem; line-height: 1.75; }
.dcm-home-features { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; }
.dcm-home-feature { min-width: 0; padding: 30px; background: #eef1e9; border-radius: 14px; }
.dcm-home .dcm-home-feature h3 { margin: 18px 0 12px; font-size: 1.35rem; letter-spacing: -.03em; }
.dcm-home-feature p { max-width: 43ch; color: var(--home-muted); font-size: .92rem; line-height: 1.75; }
.dcm-home-icon { width: 36px; height: 36px; padding: 8px; border-radius: 9px; background: #ffffffa6; }
.dcm-home-feature-main { grid-row: span 2; background: #e6eddf; overflow: hidden; }
.dcm-home .dcm-home-feature-main h3 { font-size: 2.2rem; line-height: 1.1; }
.dcm-home-paper { margin: 30px 0 -48px 10px; padding: 26px; background: #fffdf6; border: 1px solid #d9dfcf; border-radius: 10px; transform: rotate(-3deg); box-shadow: 0 10px 24px #2c3d2410; }
.dcm-home-paper > span { color: #647454; font-size: .6rem; letter-spacing: .13em; }
.dcm-home-paper strong { display: block; margin: 12px 0 22px; font-size: 1.5rem; letter-spacing: -.04em; }
.dcm-home-paper div { width: 95%; height: 6px; margin-bottom: 12px; border-radius: 3px; background: #e2e7da; }
.dcm-home-paper div:nth-of-type(2) { width: 83%; }
.dcm-home-paper div:nth-of-type(3) { width: 65%; }
.dcm-home-paper b { display: block; margin-top: 24px; font-size: .7rem; color: #536947; }
.dcm-home-swatches { display: flex; margin-top: 24px; }
.dcm-home-swatches i { width: 42px; height: 42px; margin-right: -7px; border: 3px solid #eef1e9; border-radius: 50%; background: #303c35; }
.dcm-home-swatches i:nth-child(2) { background: #8d9f7e; }.dcm-home-swatches i:nth-child(3) { background: #efbc96; }.dcm-home-swatches i:nth-child(4) { background: #b3abcb; }.dcm-home-swatches i:nth-child(5) { background: #f7edda; }
.dcm-home-feature-peach { background: #f5e9df; }
.dcm-home-feature-peach .dcm-home-text-link { margin-top: 22px; }
.dcm-home-process { margin-top: 80px; padding: 44px; border-radius: 16px; background: #253b34; color: #f8f6ef; }
.dcm-home-process .dcm-home-eyebrow { color: #c8d9b6; }
.dcm-home-process .dcm-home-text-link { color: #f8f6ef; }
.dcm-home-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 0; margin: 40px 0 0; list-style: none; }
.dcm-home-steps li { padding-top: 20px; border-top: 1px solid #ffffff30; }
.dcm-home-steps li > span { color: #c1d6ac; font-size: .8rem; }
.dcm-home .dcm-home-steps h3 { margin: 18px 0 10px; font-size: 1.1rem; }
.dcm-home-steps p { color: #d0d9d2; font-size: .85rem; line-height: 1.75; }
.dcm-home-showcase { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.dcm-home-site { display: block; min-width: 0; color: var(--home-ink); }
.dcm-home-site-art { min-height: 270px; display: flex; flex-direction: column; align-items: flex-start; padding: 30px; border-radius: 12px; background: #e7dcc7; color: #48402f; transition: background .2s; }
.dcm-home-site-art [data-icon] { width: 27px; height: 27px; }
.dcm-home-site-art strong { margin: 24px 0; font-size: 2.8rem; line-height: 1.02; letter-spacing: -.04em; }
.dcm-home-site-art > span:last-child { margin-top: auto; font-size: .65rem; font-weight: 700; letter-spacing: .1em; }
.dcm-home-site-author .dcm-home-site-art { background: #e5e4ef; color: #454156; }
.dcm-home-site-author .dcm-home-site-art strong { font-family: Georgia, serif; font-weight: 400; }
.dcm-home-site:hover .dcm-home-site-art { background: #dacfba; }.dcm-home-site-author:hover .dcm-home-site-art { background: #dad8e9; }
.dcm-home-site-caption { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 20px 0; color: var(--home-ink); }
.dcm-home .dcm-home-site-caption h3 { font-size: 1rem; line-height: 1.4; }
.dcm-home-site-caption p { margin-top: 5px; font-size: .8rem; color: var(--home-muted); }
.dcm-home-site-caption > span { font-size: 1.4rem; }
.dcm-home-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.dcm-home-plan { display: flex; flex-direction: column; min-width: 0; padding: 28px 24px; border: 1px solid var(--home-line); border-radius: 12px; background: #fcfcf8; }
.dcm-home .dcm-home-plan h3 { margin: 14px 0 12px; font-size: 1.2rem; letter-spacing: -.03em; }
.dcm-home-plan > p:not([class]) { flex: 1; color: var(--home-muted); font-size: .86rem; line-height: 1.7; }
.dcm-home .dcm-home-price { margin: 28px 0 24px; font-size: 2.5rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.dcm-home-price span { margin-left: 6px; font-size: .75rem; font-weight: 400; letter-spacing: 0; color: var(--home-muted); }
.dcm-home-plan .dcm-home-button { font-size: .8rem; gap: 10px; }
.dcm-home .dcm-home-button-outline { background: transparent; color: var(--home-ink); border-color: #aeb9aa; }
.dcm-home .dcm-home-button-outline:hover { background: #e8eddf; }
.dcm-home-plan-featured { background: #e7eddf; border-color: #b9c6ac; }
.dcm-home .dcm-home-pricing-note { margin-top: 26px; text-align: center; color: var(--home-muted); font-size: .85rem; line-height: 1.9; }
.dcm-home-pricing-note a { color: var(--home-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 960px) {
  .dcm-home-hero { gap: 30px; }
  .dcm-home-studio-photo { min-height: 290px; }
  .dcm-home-studio-note { right: 0; }
  .dcm-home-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dcm-home-plans { gap: 12px; }
  .dcm-home-plan { padding: 24px 18px; }
}
@media (max-width: 720px) {
  .dcm-home { padding-top: 4px; }
  .dcm-home-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 12px 0 55px; }
  .dcm-home h1 { font-size: clamp(2.9rem, 9vw, 4rem); }
  .dcm-home-studio { max-width: 480px; width: calc(100% - 14px); margin-inline: auto; }
  .dcm-home-studio-photo { min-height: 260px; }
  .dcm-home-photo-copy strong { font-size: 2.6rem; }
  .dcm-home-section { padding-top: 54px; }
  .dcm-home-section-head { align-items: flex-start; flex-direction: column; gap: 18px; }
  .dcm-home-section-head > p { max-width: 45ch; }
  .dcm-home-features, .dcm-home-showcase, .dcm-home-plans, .dcm-home-steps { grid-template-columns: minmax(0, 1fr); }
  .dcm-home-feature { padding: 26px; }
  .dcm-home-feature-main { grid-row: auto; }
  .dcm-home-paper { margin-bottom: -44px; }
  .dcm-home-process { margin-top: 54px; padding: 30px 24px; }
  .dcm-home-steps { gap: 24px; margin-top: 28px; }
  .dcm-home-site-art { min-height: 240px; }
  .dcm-home-plan { padding: 28px; }
}
@media (max-width: 400px) {
  .dcm-home-benefits { gap: 20px 10px; font-size: .7rem; }
  .dcm-home-benefits [data-icon] { width: 16px; height: 16px; }
  .dcm-home-actions { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) { .dcm-home *, .dcm-home *::before, .dcm-home *::after { transition: none !important; } }
.dm-reduced-motion .dcm-home * { transition: none !important; }
/* The CMS prose links use these variables with an important colour rule. */
.dcm-home { --cms-link-color: var(--home-ink); --cms-link-hover-color: #52654c; }
.dcm-home a { text-decoration: none !important; }
.dcm-home .dcm-home-button { --cms-link-color: #fff; --cms-link-hover-color: #fff; }
.dcm-home .dcm-home-button-outline { --cms-link-color: var(--home-ink); --cms-link-hover-color: var(--home-ink); }
.dcm-home-process { --cms-link-color: #f8f6ef; --cms-link-hover-color: #d6e7be; }
.dcm-home .dcm-home-text-link:hover, .dcm-home-pricing-note a { text-decoration: underline !important; }

/* Shared footer page layouts, matching the CMS site. */

.policy-page {
  --policy-accent: #7051ac;
  --policy-soft: color-mix(in srgb, var(--policy-accent) 7%, var(--dm-card-bg, #fff));
  --cms-link-color: var(--policy-accent);
  --cms-link-hover-color: var(--dm-text);
  width: min(1120px, calc(100vw - 4rem));
  margin: 1.5rem calc(50% - min(560px, 50vw - 2rem)) 4rem;
  color: var(--dm-text);
}
.policy-page *, .policy-page *::before, .policy-page *::after { box-sizing: border-box; }
.policy-page-cookies { --policy-accent: #167466; }
.policy-page-gdpr { --policy-accent: #4169a3; }
.policy-page h1, .policy-page h2, .policy-page p { margin-top: 0; }
.policy-hero { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(1.75rem, 4vw, 3.5rem); border: 1px solid color-mix(in srgb, var(--policy-accent) 15%, var(--dm-border)); border-radius: 1.5rem; background: linear-gradient(120deg, var(--dm-card-bg), var(--policy-soft)); }
.policy-page .policy-kicker { margin: 0 0 1rem; color: var(--policy-accent); font-size: .68rem; font-weight: 800; letter-spacing: .13em; line-height: 1.6; }
.policy-page h1 { margin: 0 0 1rem; font-size: clamp(2.3rem, 4.4vw, 3.65rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.08; }
.policy-page .policy-intro { max-width: 54ch; margin: 0 0 1.5rem; color: var(--dm-text-secondary); font-size: 1.04rem; line-height: 1.75; }
.policy-page .policy-date { display: flex; align-items: center; gap: .5rem; margin: 0; color: var(--dm-text-secondary); font-size: .76rem; }
.policy-date svg { width: 15px; height: 15px; }
.policy-hero-symbol { display: grid; place-items: center; flex-shrink: 0; width: 116px; height: 116px; padding: 32px; color: var(--policy-accent); background: color-mix(in srgb, var(--policy-accent) 9%, var(--dm-card-bg)); border: 1px solid color-mix(in srgb, var(--policy-accent) 18%, var(--dm-border)); border-radius: 30px; transform: rotate(-7deg); }
.policy-hero-symbol svg { display: block; width: 100%; height: 100%; }
.policy-tabs { display: flex; flex-wrap: wrap; gap: .5rem; padding: 1.25rem 0; margin-bottom: 1.5rem; border-bottom: 1px solid var(--dm-border); }
.policy-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: .65rem 1rem; border-radius: .65rem; font-size: .82rem; font-weight: 600; --cms-link-color: var(--dm-text-secondary); }
.policy-tabs a[aria-current="page"] { background: var(--policy-soft); --cms-link-color: var(--policy-accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--policy-accent) 18%, transparent); }
.policy-page .policy-tabs a, .policy-page .policy-contents a { text-decoration: none !important; }
.policy-tabs a:hover, .policy-contents a:hover { background: var(--policy-soft); }
.policy-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 2.75rem; align-items: start; }
.policy-aside { position: sticky; top: 6rem; max-height: calc(100vh - 7rem); overflow-y: auto; padding: .5rem .25rem .5rem 0; }
.policy-contents ol { counter-reset: policy-nav; list-style: none; margin: 0; padding: 0; }
.policy-contents li { counter-increment: policy-nav; margin: 0 0 .2rem; }
.policy-contents a { display: flex; gap: .6rem; padding: .55rem .65rem; border-radius: .5rem; font-size: .78rem; line-height: 1.5; --cms-link-color: var(--dm-text-secondary); }
.policy-contents a::before { content: counter(policy-nav, decimal-leading-zero); flex-shrink: 0; padding-top: .1rem; color: var(--policy-accent); font-size: .65rem; font-weight: 700; }
.policy-help { margin-top: 1.5rem; padding: 1.25rem; background: var(--policy-soft); border: 1px solid var(--dm-border); border-radius: .85rem; }
.policy-help > svg { width: 22px; height: 22px; color: var(--policy-accent); }
.policy-page .policy-help h2 { margin: .75rem 0 .5rem; font-size: 1rem; line-height: 1.4; }
.policy-page .policy-help p { margin-bottom: .5rem; color: var(--dm-text-secondary); font-size: .78rem; }
.policy-help a { overflow-wrap: anywhere; font-size: .74rem; }
.policy-document { min-width: 0; padding: .5rem clamp(1.25rem, 3vw, 2.5rem) 0; border: 1px solid var(--dm-border); border-radius: 1rem; background: var(--dm-card-bg); }
.policy-document > p:first-child { padding-top: 1.5rem; }
.policy-section { padding: 1.75rem 0; scroll-margin-top: 7rem; }
.policy-section + .policy-section { border-top: 1px solid var(--dm-border); }
.policy-page .policy-section h2 { display: flex; align-items: baseline; gap: .8rem; margin: 0 0 1.1rem; color: var(--dm-text); font-size: 1.22rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.4; }
.policy-number { color: var(--policy-accent); font-size: .7rem; font-weight: 700; letter-spacing: .03em; }
.policy-document p, .policy-document li { color: var(--dm-text-secondary); font-size: .94rem; line-height: 1.85; overflow-wrap: anywhere; }
.policy-document strong { color: var(--dm-text); }
.policy-document p { margin-bottom: 1rem; }
.policy-document ul { padding-left: 1.25rem; margin-block: .75rem 1rem; }
.policy-document li { margin-bottom: .45rem; padding-left: .3rem; }
.policy-document li::marker { color: var(--policy-accent); }
.policy-section > :last-child { margin-bottom: 0; }
.policy-document .table-responsive { max-width: 100%; margin: 1.25rem 0; border: 1px solid var(--dm-border); border-radius: .65rem; }
.policy-document table { min-width: 480px; margin: 0; font-size: .78rem; line-height: 1.65; }
.policy-document th { background: var(--policy-soft); color: var(--dm-text); font-size: .75rem; }
.policy-document th, .policy-document td { padding: .9rem 1rem; vertical-align: top; }
.policy-document td { min-width: 115px; color: var(--dm-text-secondary); }
.policy-page-gdpr .policy-section:first-of-type + .policy-section table { min-width: 620px; }
.policy-end { display: flex; align-items: center; gap: 1.25rem; margin-top: 2rem; padding: 1.5rem 2rem; border: 1px solid var(--dm-border); border-radius: 1rem; background: var(--policy-soft); }
.policy-end > svg { width: 30px; height: 30px; flex-shrink: 0; color: var(--policy-accent); }
.policy-page .policy-end h2 { margin: 0 0 .35rem; font-size: 1.1rem; line-height: 1.4; }
.policy-page .policy-end p { margin: 0; color: var(--dm-text-secondary); font-size: .83rem; line-height: 1.7; }
.policy-end > a { margin-left: auto; font-size: .85rem; white-space: nowrap; }
.policy-page a:focus-visible { outline: 3px solid var(--policy-accent); outline-offset: 4px; }
[data-mode="dark"] .policy-page { --policy-accent: #c1a9ef; }
[data-mode="dark"] .policy-page-cookies { --policy-accent: #80d7c5; }
[data-mode="dark"] .policy-page-gdpr { --policy-accent: #9ec3ff; }
@media (max-width: 850px) {
  .policy-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .policy-aside { position: static; max-height: none; padding: 0; }
  .policy-contents { padding: 1.25rem; border: 1px solid var(--dm-border); border-radius: .85rem; }
  .policy-contents ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem .5rem; }
  .policy-help { display: none; }
  .policy-hero-symbol { width: 80px; height: 80px; padding: 22px; border-radius: 22px; }
}
@media (max-width: 550px) {
  .policy-page { width: calc(100vw - 2rem); margin: .75rem calc(50% - 50vw + 1rem) 3rem; }
  .policy-hero { padding: 1.75rem 1.4rem; border-radius: 1rem; }
  .policy-hero-symbol { display: none; }
  .policy-tabs { gap: .3rem; }
  .policy-tabs a { padding: .6rem .7rem; font-size: .72rem; }
  .policy-contents { padding: 1rem; }
  .policy-contents a { padding: .5rem .3rem; font-size: .72rem; }
  .policy-contents ol { column-gap: .5rem; }
  .policy-document { padding-inline: 1.1rem; }
  .policy-section { padding: 1.5rem 0; }
  .policy-document p, .policy-document li { font-size: .9rem; }
  .policy-end { padding: 1.25rem; flex-wrap: wrap; gap: 1rem; }
  .policy-end > a { margin-left: 0; }
}

/* Footer destinations share the policy page shell, with space for interactive content. */
.footer-page-product { --policy-accent: #9c4a27; }
.footer-page-learn { --policy-accent: #4169a3; }
.footer-page-partners { --policy-accent: #7051ac; }
.footer-page-company { --policy-accent: #167466; }
.footer-page .footer-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: clamp(1.5rem, 3vw, 2.75rem); }
.footer-hero > div:first-child { min-width: 0; }
.footer-page .footer-hero h1 { font-size: clamp(2rem, 3.5vw, 3rem); }
.footer-page .footer-hero p:not(.policy-kicker) { color: var(--dm-text-secondary); line-height: 1.75; font-size: .96rem; max-width: 65ch; }
.footer-page .footer-hero :is(.mk-hero-photo, .tl-hero-photo, .footer-hero-photo) { width: 230px; height: 220px; padding: 0; margin: 0; overflow: hidden; border-radius: .9rem; border: 1px solid var(--dm-border); }
.footer-page .footer-hero :is(.mk-hero-photo, .footer-hero-photo) img { display: block; width: 100%; height: 100%; object-fit: cover; }
.footer-page .footer-hero > img { object-fit: cover; }
.footer-page .footer-hero .mk-btns { margin-top: 1rem; justify-content: flex-start; }
.footer-page .footer-hero :is(.mk-tags, .tl-stats, .tu-facts, .enq-reassurance) { margin-top: 1rem; }
.footer-page .policy-tabs { gap: .3rem; }
.footer-page .policy-tabs a { font-size: .75rem; padding: .55rem .75rem; }
.footer-page .policy-contents ul { list-style: none; padding: 0; margin: 0; }
.footer-page .policy-contents ul a::before { content: '↗'; }
.footer-page .policy-contents a[aria-current="page"] { background: var(--policy-soft); font-weight: 700; --cms-link-color: var(--policy-accent); }
.footer-page .footer-document { padding: clamp(1.15rem, 2vw, 2rem); overflow-wrap: anywhere; }
.footer-page .footer-document :is(.mk-wrap, .mk-narrow, .tl-gutter, .mk-sec, .mk-sec-tight, .tl-band, .mk-band, .mk-final, .enq-page) { width: auto; max-width: none; margin-inline: 0; padding-inline: 0; }
.footer-page .footer-document :is(.mk-sec, .mk-sec-tight, .mk-band, .tl-band) { padding-block: 1.5rem; margin-block: 0; }
.footer-page .footer-document > :is(.mk-sec, .mk-sec-tight, .mk-band, .tl-band):first-child { padding-top: 0; }
.footer-page .footer-document :is(.mk-band, .tl-band) { background: transparent; border-top: 1px solid var(--dm-border); border-bottom: 0; }
.footer-page .footer-document .mk-final { border-radius: .8rem; margin-top: 1.5rem; padding: 1.5rem; background: var(--policy-soft); }
.footer-page .footer-document :is(.mk-head, .mk-head-c) { text-align: left; margin-bottom: 1.5rem; }
.footer-page .footer-document h2 { scroll-margin-top: 7rem; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.3; letter-spacing: -.025em; }
.footer-page .footer-document h3 { font-size: 1.05rem; line-height: 1.4; }
.footer-page .footer-document :is(.mk-panel h2, .tl-panel h2) { font-size: 1.08rem; }
.footer-page .footer-document :is(.mk-grid, .mk-grid-2, .tl-split, .mk-feature-grid .collection-grid, .tu-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-page .footer-document :is(.mk-split, .tl-enquire, .enq-layout) { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.footer-page .footer-document :is(.mk-panel, .tl-panel) { min-width: 0; padding: 1.25rem; border-radius: .8rem; box-shadow: none; }
.footer-page .footer-document .mk-panel p { font-size: .85rem; line-height: 1.75; }
.footer-page .footer-document .mk-kicker { color: var(--policy-accent); }
.footer-page .footer-document .enq-page { margin-block: 0; }
.footer-page .footer-document :is(.enq-form-card, .enq-next, .enq-managed) { padding: 1.25rem; box-shadow: none; }
.footer-page .footer-document .enq-form-card { border-top-width: 3px; }
.footer-page .footer-document .enq-aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.footer-page .footer-document .enq-managed { margin: 0; }
.footer-page .footer-document .enq-browse { grid-column: 1 / -1; }
.footer-page .footer-document .tl-credits { overflow-x: auto; }
.footer-page .footer-document .tl-credits table { min-width: 580px; }
.footer-page .footer-document .tl-credit-thumb { max-width: 90px; height: 60px; object-fit: cover; }
.footer-page .footer-document .tl-stats { flex-wrap: wrap; }
.footer-page .footer-document [id] { scroll-margin-top: 7rem; }
.footer-page .footer-document .mk-price-grid { grid-template-columns: minmax(0, 1fr); }
.footer-page .footer-document .mk-price { min-width: 0; }
.footer-page .footer-document .mk-cmd { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.footer-page .footer-document .tu-card { min-width: 0; }
.footer-page .footer-document .mk-btns { flex-wrap: wrap; }
.footer-page .footer-document .mk-btn { white-space: normal; text-align: center; }
.footer-page .footer-document .spacer { max-height: 2rem; }
@media (max-width: 1000px) {
  .footer-page .footer-hero :is(.mk-hero-photo, .tl-hero-photo, .footer-hero-photo) { width: 170px; height: 210px; }
  .footer-page .policy-layout { gap: 1.5rem; grid-template-columns: 200px minmax(0, 1fr); }
}
@media (max-width: 850px) {
  .footer-page .policy-layout { grid-template-columns: minmax(0, 1fr); }
  .footer-page .footer-hero { grid-template-columns: minmax(0, 1fr); }
  .footer-page .footer-hero :is(.mk-hero-photo, .tl-hero-photo, .footer-hero-photo) { width: 100%; height: 200px; }
  .footer-page .footer-hero .policy-hero-symbol { display: none; }
}
@media (max-width: 550px) {
  .footer-page .footer-document :is(.mk-grid, .mk-grid-2, .tl-split, .mk-feature-grid .collection-grid, .tu-grid, .enq-aside) { grid-template-columns: minmax(0, 1fr); }
  .footer-page .footer-document { padding: 1rem; }
  .footer-page .policy-tabs a { font-size: .7rem; padding: .6rem; }
  .footer-page .footer-hero h1 { font-size: 2.1rem; }
  .footer-page .footer-hero :is(.mk-btn, .mk-cmd) { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .footer-page .footer-hero .mk-tags { display: flex; flex-wrap: wrap; }
  .footer-page .footer-document .dm-sitemap { columns: 1; }
}
/* DCM uses shortcode grids and cards within the same shared document shell. */
.dcm-footer-page .footer-callout { padding: 1.5rem; margin-top: 1.5rem; border: 1px solid var(--dm-border); border-radius: .8rem; background: var(--policy-soft); text-align: center; }
.dcm-footer-page .footer-document > h2 { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--dm-border); }
.dcm-footer-page .footer-document > h2:first-child { margin-top: 0; padding-top: 0; border: 0; }
.dcm-footer-page .footer-document :is(.card, .card-body, .tab-content, .tabs-content) { min-width: 0; }
.dcm-footer-page .footer-document .card-header { border-radius: .65rem .65rem 0 0; }
.dcm-footer-page .footer-document .card-icon { font-size: 1.4rem !important; }
.dcm-footer-page .footer-document [class*="grid"] { min-width: 0; }
.dcm-footer-page .footer-document .btn { white-space: normal; }
@media (max-width: 550px) {
  .dcm-footer-page .policy-tabs a { font-size: .7rem; padding: .6rem; }
  .dcm-footer-page .footer-document .grid { grid-template-columns: minmax(0, 1fr); }
}
