/*
 * The one hero (partials/blocks/hero.php + src/Blocks/Data/HeroBlockData.php).
 * Design: Felix's one-hero mockup v2, agreed by Alex 25 Nov 2026 05:06 (d-525f2a): one colour only, brand
 * purple #390d58 with a faint isometric grid; no lilac; forms and tools on white panels; slots and modes are
 * configuration. This is the only stylesheet for the hero. Plain CSS, served as is (no build step), and not
 * loaded on the /lp/ landing-page system, which keeps its own heroes.
 */
.dh {
  --dh-purple: #390d58;
  --dh-violet: #662196;
  --dh-ink: #1d0b2c;
  --dh-ink-soft: #5a4a6b;
  --dh-soft: rgba(255, 255, 255, .84);
  --dh-faint: rgba(255, 255, 255, .64);
  --dh-line: rgba(255, 255, 255, .2);
  --dh-grid: rgba(255, 255, 255, .06);
  --dh-rule: #d9b8ff;
  --dh-star: #f2b705;
  --dh-top: var(--menu-height, 80px);
  /* No container-type, isolation, transform or z-index here: any of them would trap the position: fixed
     overlays that islands open (suite fullscreen and pickers, form loading screens) inside the hero. */
  position: relative;
  overflow: hidden;
  background: var(--dh-purple);
  color: #fff;
  font-family: var(--font-sans, 'Manrope', ui-sans-serif, system-ui, sans-serif);
  text-align: left;
}
.dh-in, .dh-copy, .dh-copy * { box-sizing: border-box; }
/* resets apply to the copy column only: the side and feature slots hold Vue islands that style themselves */
.dh-copy :where(a) { color: inherit; border: 0; }
.dh-copy :where(p, ul, ol, dl, dd, dt, h1) { margin: 0; }
.dh-copy :where(ul, ol) { padding: 0; list-style: none; }
.dh-copy :where(li) { margin: 0; padding: 0; }
.dh-copy :where(li)::before { content: none; }

.dh-deco { position: absolute; inset: 0; pointer-events: none; color: var(--dh-grid); }
.dh-deco svg {
  position: absolute; right: -6%; top: -10%; width: 72%; height: 130%;
  -webkit-mask-image: radial-gradient(60% 60% at 70% 45%, #000 20%, transparent 80%);
  mask-image: radial-gradient(60% 60% at 70% 45%, #000 20%, transparent 80%);
}

.dh-in {
  position: relative; /* paints above .dh-deco by DOM order, without creating a stacking context */
  max-width: 1200px; margin: 0 auto;
  padding: calc(var(--dh-top) + 56px) 48px 64px;
  display: grid; gap: 40px; align-content: center;
  min-height: inherit;
}
.dh--h-half { min-height: max(600px, 56svh); }
.dh--h-full { min-height: 100svh; }
.dh--h-auto .dh-in { padding-top: calc(var(--dh-top) + 48px); padding-bottom: 56px; }

.dh-copy { display: grid; gap: 20px; justify-items: start; align-content: start; min-width: 0; }
.dh--stacked .dh-copy, .dh--feature-under .dh-copy { max-width: 780px; }
.dh--split .dh-in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.dh--feature-full .dh-copy { max-width: 780px; gap: 12px; }
.dh--feature-full .dh-in { gap: 28px; padding-bottom: 48px; }
.dh--video .dh-copy { max-width: none; gap: 12px; }
.dh--video .dh-in { gap: 28px; padding-bottom: 56px; }

/* breadcrumb */
.dh-crumb { font: 400 12.5px/1.5 var(--font-mono, 'Kode Mono', ui-monospace, monospace); color: var(--dh-faint); display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.dh-crumb a { text-decoration: none; }
.dh-crumb a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.dh-crumb .hero-breadcrumb__sep { opacity: .6; }
.dh-crumb > span { display: inline-flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }

/* eyebrow: one style for badges, categories, kickers and tool labels */
.dh-eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 13.5px/1.3 var(--font-mono, 'Kode Mono', ui-monospace, monospace); color: var(--dh-soft); text-decoration: none; }
.dh-eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--dh-rule); flex: none; }
a.dh-eyebrow:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.dh-eyebrow svg { width: 15px; height: 15px; flex: none; }

/* progress */
.dh-prog { display: flex; align-items: center; gap: 12px; font: 400 12.5px/1 var(--font-mono, 'Kode Mono', ui-monospace, monospace); color: var(--dh-faint); margin-top: -8px; }
.dh-dots { display: flex; gap: 6px; }
.dh-dots i { display: block; width: 14px; height: 8px; border-radius: 4px; border: 1.5px solid var(--dh-line); }
.dh-dots i.is-done { background: currentColor; border-color: currentColor; opacity: .75; }
.dh-dots i.is-on { width: 28px; background: var(--dh-rule); border-color: var(--dh-rule); }

/* H1 */
.dh .dh-h1 { font-family: inherit; font-weight: 800; font-size: 56px; line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; max-width: 18ch; color: #fff; padding: 0; }
.dh--split .dh-h1 { font-size: 52px; }
.dh--feature-full .dh-h1 { font-size: 38px; max-width: none; }
.dh--video .dh-h1 { max-width: 24ch; }
.dh-acc { background: linear-gradient(transparent 68%, var(--dh-violet) 68%, var(--dh-violet) 92%, transparent 92%); padding: 0 .06em; color: inherit; }

/* lead */
.dh .dh-lead { font-size: 19.5px; line-height: 1.55; color: var(--dh-soft); max-width: 60ch; }
.dh--feature-full .dh-lead { font-size: 17px; }
.dh-lead a { text-decoration: underline; text-underline-offset: 3px; }

/* meta row */
.dh-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; font-size: 14.5px; color: var(--dh-soft); margin-top: 2px; }
.dh-meta li { display: inline-flex; align-items: center; gap: 8px; }
.dh-meta svg { width: 16px; height: 16px; opacity: .85; flex: none; }
.dh-meta img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.dh-meta b, .dh-meta strong { color: inherit; font-weight: 700; }
.dh-meta a { text-decoration: underline; text-underline-offset: 3px; }

/* trust line (stars only on real ratings) and plain note */
.dh-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14.5px; color: var(--dh-soft); }
.dh-trust a { text-decoration: underline; text-underline-offset: 3px; }
.dh-stars { color: var(--dh-star); letter-spacing: 1.5px; font-size: 15px; }
.dh .dh-note { font-size: 14.5px; color: var(--dh-faint); display: flex; gap: 8px; align-items: center; }
.dh-note svg { width: 16px; height: 16px; flex: none; }
.dh-note a { text-decoration: underline; text-underline-offset: 3px; }

/* checklist */
.dh-checks { display: grid; gap: 10px; font-size: 16px; }
.dh-checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.dh-checks svg { width: 20px; height: 20px; margin-top: 2px; }
.dh-checks circle { fill: #fff; }
.dh-checks path { fill: none; stroke: var(--dh-purple); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* actions */
.dh-acts { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; margin-top: 4px; }
.dh-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 8px; font: 700 16px/1 var(--font-sans, 'Manrope', sans-serif); text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: background-color .15s, color .15s, border-color .15s; }
.dh-btn svg { width: 18px; height: 18px; }
.dh .dh-btn--p { background: #fff; color: var(--dh-purple); }
.dh .dh-btn--p svg { color: var(--dh-violet); }
.dh .dh-btn--p:hover { background: #efe6f7; color: var(--dh-purple); }
.dh .dh-btn--s { border-color: rgba(255, 255, 255, .55); color: #fff; background: transparent; }
.dh .dh-btn--s:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.dh-btn:focus-visible, .dh-tlink:focus-visible, .dh-chip:focus-visible, .dh-tel:focus-visible, .dh-crumb a:focus-visible, a.dh-eyebrow:focus-visible { outline: 2px solid var(--dh-rule); outline-offset: 3px; }
.dh-tel { display: inline-flex; align-items: center; gap: 8px; font: 500 15px/1 var(--font-mono, 'Kode Mono', ui-monospace, monospace); text-decoration: none; }
.dh-tel svg { width: 16px; height: 16px; }
.dh-tel:hover { text-decoration: underline; text-underline-offset: 3px; }
.dh-tlink { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; font-size: 15.5px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.dh-tlink svg { width: 16px; height: 16px; }

/* chips / quick links */
.dh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dh-chip { font: 600 14px/1 var(--font-sans, 'Manrope', sans-serif); padding: 9px 13px; border-radius: 7px; border: 1.5px solid var(--dh-line); text-decoration: none; }
.dh-chip:hover { border-color: rgba(255, 255, 255, .6); }
.dh .dh-chip.is-on { background: #fff; color: var(--dh-purple); border-color: #fff; }

/* stats */
.dh-stats { display: flex; flex-wrap: wrap; gap: 16px 40px; margin-top: 6px; }
.dh-stats div { display: flex; flex-direction: column-reverse; gap: 2px; }
.dh-stats dd { font-size: 34px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.dh-stats dt { font-size: 14px; color: var(--dh-soft); font-weight: 400; }

/* profile */
.dh-profile { display: flex; gap: 20px; align-items: center; }
.dh-profile img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255, 255, 255, .85); flex: none; }
.dh-who { display: grid; gap: 4px; }
.dh-who b { font-size: 18px; }
.dh-role { font: 400 13px/1.3 var(--font-mono, 'Kode Mono', ui-monospace, monospace); color: var(--dh-faint); }
.dh-soc { display: flex; gap: 10px; margin-top: 4px; }
.dh-soc a { width: 34px; height: 34px; border-radius: 8px; border: 1.5px solid var(--dh-line); display: grid; place-items: center; }
.dh-soc a:hover { border-color: rgba(255, 255, 255, .6); }
.dh-soc svg { width: 16px; height: 16px; }

.dh-body { font-size: 14.5px; color: var(--dh-soft); }
.dh-body a { text-decoration: underline; text-underline-offset: 3px; }

/* side slot: media card, or a component on a white panel */
.dh-side { min-width: 0; }
.dh-media { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--dh-line); background: #2a0a45; }
.dh-media img, .dh-media video, .dh-media iframe { display: block; width: 100%; height: auto; }
.dh-panel { background: #fff; color: var(--dh-ink); border-radius: 14px; padding: 26px; box-shadow: 0 20px 50px -24px rgba(29, 11, 44, .55); border: 1px solid rgba(57, 13, 88, .08); text-align: left; }
.dh-bare { min-width: 0; color: var(--dh-ink); }

/* aside placeholder: shown only while the island's tag is still an undefined element, i.e. not yet mounted */
.dh-ph { display: none; }
.dh-side:has(> :not(:defined)) > .dh-ph { display: block; }
.dh-ph-card { background: #fff; color: var(--dh-ink); border-radius: 16px; padding: 28px; display: grid; gap: 12px; box-shadow: 0 20px 50px -24px rgba(29, 11, 44, .55); }
.dh-ph-card b { font-size: 18px; }
.dh-ph-card p { margin: -6px 0 8px; font-size: 14px; color: var(--dh-ink-soft); }
.dh-ph-field { height: 44px; border-radius: 8px; border: 1px solid #ddd2e8; background: #fff; font-size: 14px; color: #8d8396; display: flex; align-items: center; padding: 0 12px; }
.dh-ph-btn { height: 44px; border-radius: 8px; background: var(--dh-purple); color: #fff; font-size: 14px; font-weight: 600; display: grid; place-items: center; margin-top: 4px; }

/* feature slot (tools) */
.dh-feat { min-width: 0; }
.dh-feat.dh-panel { padding: 22px; }
/* tools that draw their own frame float like a window over the purple */
.dh-feat.dh-bare > * { box-shadow: 0 30px 60px -15px rgb(17 5 30 / .55), 0 18px 36px -18px rgb(17 5 30 / .45); }
/* an open suite overlay (fullscreen, picker, share) must sit above the fixed site header */
.dh:has(.suite.has-overlay) { overflow: visible; z-index: 100; }
/* suites reserve the full phone screen below the header, as before (beats the inline desktop clamp) */
@media (max-width: 767px) {
  .dh-feat:has(> :is(design-suite, developer-suite, seo-suite, paid-search-suite, email-suite)) { min-height: calc(100svh - var(--menu-height, 80px)) !important; }
  .dh-feat.dh-bare > * { box-shadow: 0 20px 40px -12px rgb(17 5 30 / .5), 0 10px 20px -10px rgb(17 5 30 / .4); }
}

/* video layout: the film's real player at full container width (partials/video/player.php, skin hero) */
.dh-video .dh-film { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #1d0b2c; border: 1px solid var(--dh-line); box-shadow: 0 30px 70px -30px rgb(0 0 0 / .6); }
.dh-video .dh-film video { display: block; width: 100%; height: 100%; object-fit: cover; }
.dh-video .dh-film--tall { display: none; aspect-ratio: 9 / 16; }
.dh-film-play { position: absolute; inset: 0; display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; color: #fff; }
.dh-film-play[hidden] { display: none; }
.dh-film-btn { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 104px; height: 104px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 40px rgb(0 0 0 / .4); transition: scale .15s ease; }
.dh-film-btn::after { content: ""; margin-left: 7px; border-left: 30px solid var(--dh-purple); border-top: 19px solid transparent; border-bottom: 19px solid transparent; }
.dh-film-play:hover .dh-film-btn { scale: 1.05; }
.dh-film-play:focus-visible { outline: none; }
.dh-film-play:focus-visible .dh-film-btn { outline: 3px solid var(--dh-rule); outline-offset: 4px; }
.dh-film-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: linear-gradient(transparent, rgb(29 11 44 / .85)); font: 500 13px/1 var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-variant-numeric: tabular-nums; }
.dh-film-bar i { flex: 1; height: 4px; border-radius: 2px; background: rgb(255 255 255 / .3); }

/* width-limited visibility flags */
.dh-only-mobile { display: none !important; }

@media (max-width: 760px) {
  .dh-in { padding: calc(var(--dh-top) + 24px) 20px 32px; gap: 26px; }
  .dh--h-auto .dh-in { padding-top: calc(var(--dh-top) + 24px); padding-bottom: 32px; }
  .dh--split .dh-in { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .dh .dh-h1, .dh--split .dh-h1 { font-size: 36px; max-width: none; }
  .dh--feature-full .dh-h1 { font-size: 30px; }
  .dh--video .dh-in { gap: 20px; padding-bottom: 24px; }
  .dh-video .dh-film { border-radius: 12px; }
  /* phones get the film's portrait cut where it has one (framed and captioned for phones; Felix 25 Nov) */
  .dh-video:has(.dh-film--tall) .dh-film--wide { display: none; }
  .dh-video .dh-film--tall { display: block; }
  .dh-film-btn { width: 72px; height: 72px; }
  .dh-film-btn::after { margin-left: 5px; border-left-width: 22px; border-top-width: 14px; border-bottom-width: 14px; }
  .dh-film-bar { padding: 10px 12px; font-size: 12px; }
  .dh .dh-lead { font-size: 17px; }
  .dh--h-half, .dh--h-full { min-height: 0; }
  .dh-copy { gap: 16px; }
  .dh-btn { padding: 13px 16px; font-size: 15.5px; }
  .dh-acts .dh-btn { flex: 1 1 auto; justify-content: center; }
  .dh-hide-sm { display: none; }
  .dh-stats dd { font-size: 28px; }
  .dh-panel { padding: 20px; }
  .dh-feat.dh-panel { padding: 16px; }
  .dh-deco svg { width: 120%; right: -40%; }
  .dh-only-mobile { display: inline-flex !important; }
  .dh-only-desktop { display: none !important; }
  /* the current crumb repeats the H1: keep it for screen readers only when there is a parent trail */
  /* one line on phones, cut with an ellipsis */
  .dh-crumb { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .dh-crumb span { display: inline; }
  .dh-crumb .hero-breadcrumb__sep { margin: 0 6px; }
  .dh-crumb:has(.hero-breadcrumb__sep ~ .hero-breadcrumb__sep) .hero-breadcrumb__sep:has(+ .breadcrumb_last) { display: none; }
  .dh-crumb:has(.hero-breadcrumb__sep ~ .hero-breadcrumb__sep) .breadcrumb_last { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
@media (prefers-reduced-motion: reduce) { .dh-btn { transition: none; } }
@media print { .dh { background: none; color: #000; } .dh-deco, .dh-acts, .dh-side, .dh-feat { display: none; } .dh .dh-h1, .dh .dh-lead { color: #000; } }
