/* The demo customizer: launcher, panel and the controls (also mounted inside the funnel's live preview).
   Its own neutral colours, so it reads the same over any demo theme; the swatches take each theme's own tokens. */
.dg-cz, .dg-cz-dock { --cz-ink: #14161b; --cz-muted: #4b5160; --cz-line: #d9dce3; --cz-bg: #ffffff; --cz-soft: #f4f5f7; --cz-cta: #e20074; --cz-cta-ink: #ffffff;
  font-family: var(--font-text, "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif); color: var(--cz-ink); }
.dg-cz *, .dg-cz-dock * { box-sizing: border-box; }

/* ---------- controls ---------- */
.dg-cz { display: grid; gap: 16px; }
.dg-cz__group { display: grid; gap: 8px; min-width: 0; }
.dg-cz .dg-cz__label { margin: 0; font-size: 13px; line-height: 1.2; font-weight: 600; letter-spacing: .02em; color: var(--cz-muted); }
.dg-cz__wait { margin: 0; color: var(--cz-muted); font-size: 14px; }
.dg-cz__sws { display: flex; flex-wrap: wrap; gap: 4px; }
.dg-cz button.dg-cz__sw { position: relative; flex: none; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 999px; background: transparent; cursor: pointer; }
.dg-cz button.dg-cz__sw::before { content: ""; position: absolute; inset: 6px; border-radius: 999px; background: var(--s-accent);
  border: 5px solid var(--s-header-bg); box-shadow: 0 0 0 1px rgba(11, 11, 12, .18); }
.dg-cz button.dg-cz__sw[aria-checked="true"]::after { content: ""; position: absolute; inset: 1px; border-radius: 999px; border: 2px solid var(--cz-ink); }
.dg-cz button.dg-cz__sw:focus-visible { outline: 2px solid var(--cz-ink); outline-offset: 1px; }
.dg-cz input.dg-cz__in { width: 100%; height: 44px; margin: 0; padding: 0 12px; font-size: 16px; line-height: 1.3; font-family: inherit; color: var(--cz-ink); background: var(--cz-bg);
  border: 1px solid #b9bfcc; border-radius: 10px; }
.dg-cz input.dg-cz__in:focus { outline: 2px solid var(--cz-ink); outline-offset: 0; border-color: var(--cz-ink); }
.dg-cz__seg { display: inline-flex; width: max-content; max-width: 100%; padding: 3px; border-radius: 12px; background: var(--cz-soft); gap: 2px; }
.dg-cz__seg button { min-width: 52px; height: 40px; margin: 0; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--cz-ink); font-weight: 600; font-size: 15px; line-height: 1; font-family: inherit; cursor: pointer; }
.dg-cz__seg button[aria-checked="true"] { background: var(--cz-bg); box-shadow: 0 1px 3px rgba(11, 11, 12, .18); }
.dg-cz__seg button:focus-visible { outline: 2px solid var(--cz-ink); outline-offset: 1px; }
.dg-cz__acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dg-cz button.dg-cz__reset { min-height: 44px; margin: 0; padding: 0 16px; border: 1px solid var(--cz-line); border-radius: 10px; background: var(--cz-bg); color: var(--cz-ink); font-weight: 500; font-size: 15px; line-height: 1; font-family: inherit; cursor: pointer; }
.dg-cz a.dg-cz__want { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 10px;
  background: var(--cz-cta); color: var(--cz-cta-ink); font-weight: 600; font-size: 15px; line-height: 1.2; font-family: inherit; text-decoration: none; text-align: center; }
.dg-cz a.dg-cz__want:focus-visible, .dg-cz button.dg-cz__reset:focus-visible { outline: 2px solid var(--cz-ink); outline-offset: 2px; }

/* layout choice: a letter and a short name */
.dg-cz__lays { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
.dg-cz__lays button { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 0 10px; border: 1px solid var(--cz-line); border-radius: 10px; background: var(--cz-bg); color: var(--cz-ink); font-weight: 500; font-size: 14px; line-height: 1.2; font-family: inherit; text-align: left; cursor: pointer; }
.dg-cz__lays button b { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--cz-soft); font-weight: 700; font-size: 13px; }
.dg-cz__lays button[aria-checked="true"] { border-color: var(--cz-ink); box-shadow: inset 0 0 0 1px var(--cz-ink); }
.dg-cz__lays button[aria-checked="true"] b { background: var(--cz-ink); color: #fff; }
.dg-cz__lays button:focus-visible { outline: 2px solid var(--cz-ink); outline-offset: 1px; }

/* extra pages / screens */
.dg-cz__hint { margin: 0; font-size: 13px; line-height: 1.4; color: var(--cz-muted); }
.dg-cz__hint[hidden], .dg-sg__mk[hidden] { display: none; }
.dg-cz__xs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dg-cz__x { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: start; gap: 10px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--cz-line); border-radius: 10px; background: var(--cz-bg); cursor: pointer; }
.dg-cz__x:has(input:checked) { border-color: var(--cz-ink); box-shadow: inset 0 0 0 1px var(--cz-ink); }
.dg-cz__x:has(input:focus-visible) { outline: 2px solid var(--cz-ink); outline-offset: 1px; }
.dg-cz__x.is-off { opacity: .55; cursor: not-allowed; }
.dg-cz__x input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--cz-ink); }
.dg-cz__xt { display: grid; gap: 2px; min-width: 0; }
.dg-cz__xt b { font-weight: 600; font-size: 15px; line-height: 1.25; }
.dg-cz__xt small { font-size: 13px; line-height: 1.35; color: var(--cz-muted); }
.dg-cz__xt em { justify-self: start; margin-top: 2px; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--cz-cta) 12%, #fff); color: #9c0052; font-style: normal; font-weight: 600; font-size: 12px; line-height: 1.4; }
.dg-cz__xp { display: grid; justify-items: end; gap: 2px; font-weight: 600; font-size: 14px; white-space: nowrap; } .dg-cz__xp small { font-weight: 400; font-size: 12px; color: var(--cz-muted); }
.dg-cz__st.is-on { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--cz-ink); color: #fff; font-size: 12px; } .dg-cz__st.is-on::before { content: "\2713"; }
.dg-cz__x { transition: border-color .2s ease, box-shadow .2s ease; }
.dg-cz p.dg-cz__tot { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--cz-soft); font-weight: 600; font-size: 14px; line-height: 1.35; }

/* the suggestion block */
.dg-sg { display: grid; gap: 8px; padding: 12px; border: 1px dashed #aeb4c2; border-radius: 12px; background: var(--cz-bg); }
.dg-sg p { margin: 0; }
.dg-sg__h { font-weight: 700; font-size: 14px; line-height: 1.3; }
.dg-sg__line { font-size: 14px; line-height: 1.45; }
.dg-sg__mk { font-size: 13px; line-height: 1.4; color: var(--cz-muted); }
.dg-sg button.dg-sg__btn { justify-self: start; min-height: 44px; margin: 0; padding: 0 16px; border: 1.5px solid var(--cz-ink); border-radius: 10px; background: var(--cz-bg); color: var(--cz-ink); font-weight: 600; font-size: 15px; line-height: 1; font-family: inherit; cursor: pointer; }
.dg-sg button.dg-sg__btn:focus-visible { outline: 2px solid var(--cz-ink); outline-offset: 2px; }

/* ---------- launcher and panel (demo pages) ---------- */
.dg-cz-dock { position: fixed; z-index: 65; left: max(16px, env(safe-area-inset-left)); bottom: calc(16px + var(--dg-cz-lift, 0px) + env(safe-area-inset-bottom));
  display: grid; justify-items: start; gap: 10px; transition: bottom .2s ease; pointer-events: none; }
.dg-cz-dock > * { pointer-events: auto; }
.dg-cz-launch { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; margin: 0; padding: 0 18px 0 14px; border: 0; border-radius: 999px;
  background: var(--cz-ink); color: #fff; font-weight: 600; font-size: 15px; line-height: 1; font-family: inherit; cursor: pointer; box-shadow: 0 8px 24px rgba(11, 11, 12, .28); }
.dg-cz-launch:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
.dg-cz-dock.is-open .dg-cz-launch { background: #fff; color: var(--cz-ink); box-shadow: 0 0 0 1px var(--cz-line), 0 8px 24px rgba(11, 11, 12, .18); }
.dg-cz-panel { width: min(340px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 120px - var(--dg-cz-lift, 0px))); max-height: min(560px, calc(100dvh - 120px - var(--dg-cz-lift, 0px)));
  overflow: auto; overscroll-behavior: contain; padding: 14px 16px 16px; border-radius: 16px; background: var(--cz-bg); color: var(--cz-ink); box-shadow: 0 0 0 1px rgba(11, 11, 12, .08), 0 18px 48px rgba(11, 11, 12, .28); }
.dg-cz-panel[hidden] { display: none; }
.dg-cz-panel__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -6px -8px 8px 0; }
.dg-cz-dock .dg-cz-panel__h { margin: 0; font-weight: 600; font-size: 16px; line-height: 1.25; font-family: inherit; color: var(--cz-ink); }
.dg-cz-panel__x { display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--cz-ink); cursor: pointer; }
.dg-cz-panel__x:focus-visible { outline: 2px solid var(--cz-ink); outline-offset: -2px; }
.dg-embed .dg-cz-dock { display: none; }
@media print { .dg-cz-dock { display: none; } }
@media (prefers-reduced-motion: reduce) { .dg-cz-dock { transition: none; } }

/* the market comparison card */
.dg-cmp { display: grid; border: 1px solid #d6dae4; border-radius: 12px; overflow: hidden; background: #fff; }
.dg-cmp__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 14px; font-size: 14px; color: var(--cz-muted); }
.dg-cmp__row s { font-weight: 600; font-size: 17px; color: #6b7280; text-decoration-thickness: 2px; text-decoration-color: var(--action, var(--cz-ink)); }
.dg-cmp__you { background: color-mix(in srgb, var(--action, var(--cz-ink)) 9%, #fff); color: var(--cz-ink); font-weight: 600; }
.dg-cmp__you b { font-size: 26px; line-height: 1.1; color: var(--action, var(--cz-ink)); transition: color .2s ease; }
.dg-cmp__save { margin: 0; padding: 8px 14px 10px; font-size: 13px; font-weight: 600; color: var(--cz-ink); background: #fff; border-top: 1px solid #e6e9f0; }
.dg-sg__mk { padding: 0; }
.dg-cmp__src { margin: 0; padding: 0 14px 10px; font-size: 12px; line-height: 1.4; color: var(--cz-muted); background: #fff; } .dg-cmp__src a { color: inherit; text-decoration: underline; }

/* the suggestion: a short list of exactly what the button adds, then the saving as the hero of the comparison */
.dg-sg__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dg-sg__list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; line-height: 1.4; padding: 6px 0; border-bottom: 1px solid #e6e9f0; }
.dg-sg__list li em { font-style: normal; font-weight: 600; white-space: nowrap; color: var(--cz-muted); }
.dg-sg__tot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; font-size: 14px; } .dg-sg__tot b { font-size: 20px; color: var(--action, var(--cz-ink)); }
.dg-sg button.dg-sg__btn { width: 100%; justify-self: stretch; background: var(--ink, var(--cz-ink)); color: #fff; border-color: var(--ink, var(--cz-ink)); font-weight: 600; }
.dg-sg button.dg-sg__btn.is-done { background: transparent; color: var(--cz-ink); border-color: #aeb4c2; opacity: .8; }
.dg-cmp { border: 0; background: transparent; gap: 8px; overflow: visible; }
.dg-cmp__less { margin: 0; padding: 0 2px; font-size: 13px; font-weight: 600; color: var(--cz-muted); }
.dg-cmp__rows { border: 1px solid #d6dae4; border-radius: 12px; overflow: hidden; background: #fff; }
.dg-cmp__src { padding: 0 2px; background: transparent; }
