/* Live dashboard cards on the homepage (copy of the site demo cards, mapped onto the homepage tokens), scoped under .home-a. */
.home-a .dm, .home-a .dm-shot { --hairline: var(--hair); --ink-muted: var(--muted); --surface-raised: var(--raised); --font-display: var(--display); --font-text: var(--text); --font-mono: var(--mono); --tangerine: var(--tang); --marigold: var(--mari); --radius-l: 16px; }
.home-a .dm .dm-head h3 { color: var(--ink); } .home-a .dm .dm-head p { color: var(--ink-muted); } .home-a .dm p, .home-a .dm small, .home-a .dm strong { color: inherit; }
.home-a .on-dark 
.dm-live:hover .dm-img { transform: none; }
.home-a .dm-zone { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); margin: 0; padding: 0; border: 0; border-radius: 10px; background: transparent; cursor: default; z-index: 2; transition: background .15s, box-shadow .15s; }
.home-a .dm-z-tile:hover { box-shadow: 0 0 0 2px rgba(14, 149, 210, .55), 0 12px 26px -12px rgba(22, 35, 63, .35); }
.home-a .dm-z-nav { border-radius: 8px; } .home-a .dm-z-nav:hover { background: rgba(255, 255, 255, .12); }
.home-a .dm-z-logo { border-radius: 50%; } .home-a .dm-z-logo:hover { box-shadow: 0 0 0 2px rgba(14, 149, 210, .6); }
.home-a .dm-z-col { border-radius: 0; }
.home-a .dm-z-col::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px dashed rgba(22, 35, 63, .5); opacity: 0; transition: opacity .12s; }
.home-a .dm-z-col:hover::before { opacity: 1; }
.home-a .dm-shot .dm-zone[data-tip]::after { content: attr(data-tip); display: none; position: absolute; left: 50%; bottom: calc(100% + 8px); translate: -50% 0; width: max-content; max-width: 260px; padding: 9px 12px; border-radius: 8px; background: var(--navy); color: #fff; font: 500 13px/1.4 var(--font-text); text-align: left; white-space: pre-line; box-shadow: 0 12px 28px rgba(22, 35, 63, .3); pointer-events: none; z-index: 30; }
/* a mouse click focuses the zone: show its note on keyboard focus only, so a clicked note never sticks while hovering others; taps keep :focus */
.home-a .dm-shot .dm-zone:hover::after, .home-a .dm-shot .dm-zone:focus-visible::after { display: block; animation: dm-tip .14s ease-out; }
@media (hover: none) { .home-a .dm-shot .dm-zone:focus::after { display: block; animation: dm-tip .14s ease-out; } }
.home-a .dm-shot .dm-zone.tip-l::after { left: 0; translate: 0 0; } .home-a .dm-shot .dm-zone.tip-r::after { left: auto; right: 0; translate: 0 0; }
.home-a .dm-shot .dm-z-nav[data-tip]::after { left: calc(100% + 8px); top: 50%; bottom: auto; translate: 0 -50%; }
.home-a .dm-shot figcaption { color: rgba(247, 246, 242, .75); }
.home-a .demo-wide { margin-top: 56px; }
.home-a .demo-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 48px; align-items: start; }
@media (max-width: 900px) { .home-a .demo-pair { grid-template-columns: 1fr; } }

/* Live dashboard cards (src/components/demo): the dashboard's look in the brand kit, with real hover data. */
.home-a .dm { position: relative; margin: 0; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius-l); box-shadow: 0 30px 70px -24px rgba(22, 35, 63, .28); text-align: left; color: var(--ink); transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.home-a .dm:hover { transform: translateY(-3px); box-shadow: 0 36px 80px -22px rgba(22, 35, 63, .34); }
.home-a .dm-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--hairline); }
.home-a .dm-bar i { width: 9px; height: 9px; border-radius: 50%; background: #E2E6EC; }
.home-a .dm-bar span { margin-left: 10px; padding: 3px 10px; border-radius: 6px; background: var(--surface-raised); font: 500 12px var(--font-mono); color: var(--ink-muted); }
.home-a .dm-in { padding: 22px 24px 24px; }
.home-a .dm-head h3 { margin: 0; font: 700 19px/1.25 var(--font-display); letter-spacing: -.01em; }
.home-a .dm-head p { margin: 4px 0 0; font-size: 14px; color: var(--ink-muted); }
.home-a .dm-foot { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--surface-raised); font-size: 14px; color: var(--ink); }
.home-a .dm-hint { display: block; margin-top: 10px; font-size: 12.5px; color: var(--ink-muted); }
.home-a .dm-logo { width: 18px; height: 18px; flex: none; }
.home-a .dm-logos { display: inline-flex; gap: 3px; }
.home-a .dm-logos span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 1px solid var(--hairline); }
.home-a .dm-logos img { width: 13px; height: 13px; }

/* tooltips: any [data-tip] inside a card; shown on hover and keyboard focus */
.home-a .dm [data-tip] { position: relative; }
.home-a .dm [data-tip]::after { content: attr(data-tip); display: none; position: absolute; left: 50%; bottom: calc(100% + 8px); translate: -50% 0; width: max-content; max-width: 260px; padding: 9px 12px; border-radius: 8px; background: var(--navy); color: #fff; font: 500 13px/1.4 var(--font-text); letter-spacing: 0; text-transform: none; text-align: left; white-space: pre-line; box-shadow: 0 12px 28px rgba(22, 35, 63, .3); pointer-events: none; z-index: 30; }
.home-a .dm [data-tip]:hover::after, .home-a .dm [data-tip]:focus-visible::after { display: block; animation: dm-tip .16s ease-out; }
.home-a .dm .tip-l[data-tip]::after { left: 0; translate: 0 0; }
.home-a .dm .tip-r[data-tip]::after { left: auto; right: 0; translate: 0 0; }
@keyframes dm-tip { from { opacity: 0; } }
.home-a .dm [tabindex]:focus-visible { outline: 2px solid var(--focus-ring, var(--sky)); outline-offset: 2px; }

/* rows that light up under the pointer */
.home-a .dm-rows { margin-top: 14px; }
.home-a .dm-row { display: grid; align-items: center; gap: 14px; padding: 11px 10px; border-top: 1px solid #EDF0F4; border-radius: 8px; transition: background .2s, transform .25s cubic-bezier(.2, .8, .2, 1); cursor: default; }
.home-a .dm-row:hover, .home-a .dm-row:focus-visible { background: #F1F7FB; transform: translateX(3px); }
.home-a .dm-rows:hover .dm-row:not(:hover) { opacity: .62; }
.home-a .dm-row.you { background: #FFF4E0; }
.home-a .dm-row.you:hover { background: #FFEBC7; }
.home-a .dm-pill { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--hairline); font-size: 12px; font-weight: 600; }
.home-a .dm-av { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: var(--surface-raised); font: 700 11px var(--font-mono); color: var(--ink); flex: none; }
.home-a .you .dm-av { background: var(--marigold); }
.home-a .dm-num { font: 600 15px var(--font-mono); font-variant-numeric: tabular-nums; }
.home-a .dm-mut { color: var(--ink-muted); font-size: 13px; font-family: var(--font-mono); }

/* range + dot plot */
.home-a .dm-plot { position: relative; height: 18px; }
.home-a .dm-plot::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: #E6EAF0; }
.home-a .dm-plot .rg { position: absolute; top: 50%; height: 8px; margin-top: -4px; border-radius: 4px; background: rgba(14, 149, 210, .25); left: var(--lo); width: calc(var(--hi) - var(--lo)); transition: background .2s; }
.home-a .dm-plot .dt { position: absolute; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--ink); left: var(--v); transition: transform .25s; }
.home-a .you .dm-plot .dt { background: var(--sky); }
.home-a .dm-row:hover .dm-plot .dt { transform: scale(1.35); }
.home-a .dm-row:hover .dm-plot .rg { background: rgba(14, 149, 210, .42); }

/* horizontal meters */
.home-a .dm-meter { position: relative; height: 10px; border-radius: 5px; background: #F0EEE8; overflow: visible; }
.home-a .dm-meter > b { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 5px; background: var(--c, var(--sky)); transform-origin: left; transition: filter .2s; }
.home-a .dm-meter > s { position: absolute; top: -3px; bottom: -3px; width: 2px; left: var(--norm); background: var(--ink); opacity: .45; }
.home-a .dm-meter > u { position: absolute; top: 2px; bottom: 2px; left: var(--lo); width: calc(var(--hi) - var(--lo)); background: rgba(255, 255, 255, .55); border-radius: 3px; text-decoration: none; }
.home-a .dm-row:hover .dm-meter > b { filter: brightness(1.12) saturate(1.1); }

/* columns (monthly) and falling bars (sites) */
.home-a .dm-cols { position: relative; display: flex; align-items: flex-end; gap: 12px; height: 220px; margin-top: 22px; padding-bottom: 0; border-bottom: 1px solid var(--hairline); }
.home-a .dm-col { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; cursor: default; }
.home-a .dm-col .dm-rng { position: absolute; left: 18%; right: 18%; bottom: var(--lo); height: calc(var(--hi) - var(--lo)); border-radius: 4px; background: rgba(14, 149, 210, .14); }
.home-a .dm-col .dm-v { position: relative; width: 52%; height: var(--v); background: var(--sky); clip-path: polygon(0 0, 100% 8%, 100% 100%, 0 100%); clip-path: polygon(0 0, 100% 7px, 100% 100%, 0 100%); transform-origin: 50% 100%; transition: filter .2s, translate .35s cubic-bezier(.2, .8, .2, 1); }
.home-a .dm-col:last-child .dm-v { background: var(--pine); }
.home-a .dm-col .riv { position: absolute; left: 50%; bottom: var(--r); width: 12px; height: 12px; margin: 0 0 -6px -6px; border-radius: 50%; background: var(--tangerine); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.home-a .dm-cols:hover .dm-col:not(:hover) .dm-v { opacity: .5; }
.home-a .dm-col:hover .dm-v, .home-a .dm-col:focus-visible .dm-v { translate: 0 -6px; filter: brightness(1.1); }
.home-a .dm-x { display: flex; gap: 12px; margin-top: 8px; font: 500 12px var(--font-mono); color: var(--ink-muted); }
.home-a .dm-x span { flex: 1; text-align: center; }
.home-a .dm-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 13px; color: var(--ink-muted); }
.home-a .dm-key span { display: inline-flex; align-items: center; gap: 7px; }
.home-a .dm-key i { width: 11px; height: 11px; border-radius: 3px; background: var(--sky); }
.home-a .dm-key i.r { border-radius: 50%; background: var(--tangerine); }
.home-a .dm-key i.b { background: rgba(14, 149, 210, .2); }

.home-a .dm-tail { display: flex; align-items: flex-end; gap: 6px; height: 200px; margin-top: 22px; border-bottom: 1px solid var(--hairline); }
.home-a .dm-tail .tb { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: default; }
.home-a .dm-tail .tb > b { display: block; width: 100%; height: var(--h); background: var(--c); clip-path: polygon(0 0, 100% 6px, 100% 100%, 0 100%); transform-origin: 50% 100%; transition: translate .35s cubic-bezier(.2, .8, .2, 1), filter .2s, opacity .2s; }
.home-a .dm-tail .tb > em { position: absolute; left: 50%; bottom: calc(var(--h) + 6px); translate: -50% 0; font: 600 11px var(--font-mono); font-style: normal; color: var(--ink); white-space: nowrap; }
.home-a .dm-tail:hover .tb:not(:hover) > b { opacity: .5; }
.home-a .dm-tail .tb:hover > b, .home-a .dm-tail .tb:focus-visible > b { translate: 0 -6px; filter: brightness(1.12); }

/* the wave: bars and meters grow in one after another once the card is in view */
@media (prefers-reduced-motion: no-preference) {
  .home-a .dm-cols .dm-v, .home-a .dm-tail .tb > b { animation: dm-grow .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms + 150ms); animation-play-state: paused; }
  .home-a .dm-meter > b { animation: dm-fill 1s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 80ms + 150ms); animation-play-state: paused; }
  .home-a .dm.in .dm-cols .dm-v, .home-a .dm.in .dm-tail .tb > b, .home-a .dm.in .dm-meter > b, .home-a .rv-in .dm-cols .dm-v { animation-play-state: running; }
  @keyframes dm-grow { from { transform: scaleY(0); } }
  @keyframes dm-fill { from { transform: scaleX(0); } }
}

/* quotes */
.home-a .dm-quotes { display: grid; gap: 10px; margin-top: 14px; }
.home-a .dm-q { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--surface-raised); border-left: 3px solid var(--sky); transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, background .2s; }
.home-a .dm-q:hover { transform: translateX(4px); background: #fff; box-shadow: 0 10px 24px rgba(22, 35, 63, .1); }
.home-a .dm-q-top { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.home-a .dm-q p { margin: 6px 0 4px; font-size: 15px; color: var(--ink); }
.home-a .dm-q small { font-size: 12.5px; color: var(--ink-muted); }

/* screenshots with hover notes */
.home-a .dm-shot { position: relative; margin: 0; }
.home-a .dm-shot .dm-img { position: relative; border-radius: var(--radius-l); border: 1px solid var(--hairline); background: #fff; box-shadow: 0 30px 80px -20px rgba(22, 35, 63, .28); transition: box-shadow .35s, transform .35s cubic-bezier(.2, .8, .2, 1); }
.home-a .dm-shot:hover .dm-img { transform: translateY(-3px); box-shadow: 0 36px 90px -20px rgba(22, 35, 63, .34); }
.home-a .dm-shot img { display: block; width: 100%; height: auto; border-radius: var(--radius-l); }
.home-a .dm-hot { position: absolute; left: var(--x); top: var(--y); width: 22px; height: 22px; margin: -11px 0 0 -11px; padding: 0; border: 0; border-radius: 50%; background: var(--tangerine); box-shadow: 0 0 0 5px rgba(255, 122, 47, .25); cursor: pointer; z-index: 3; }
.home-a .dm-hot::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.home-a .dm-shot .dm-hot[data-tip]::after { content: attr(data-tip); display: none; position: absolute; left: 50%; bottom: calc(100% + 10px); translate: -50% 0; width: max-content; max-width: 250px; padding: 9px 12px; border-radius: 8px; background: var(--navy); color: #fff; font: 500 13px/1.4 var(--font-text); text-align: left; white-space: pre-line; box-shadow: 0 12px 28px rgba(22, 35, 63, .3); pointer-events: none; z-index: 30; }
.home-a .dm-shot .dm-hot:hover::after, .home-a .dm-shot .dm-hot:focus-visible::after { display: block; animation: dm-tip .16s ease-out; }
@media (hover: none) { .home-a .dm-shot .dm-hot:focus::after { display: block; animation: dm-tip .16s ease-out; } }
.home-a .dm-shot .dm-hot.tip-l::after { left: 0; translate: 0 0; } .home-a .dm-shot .dm-hot.tip-r::after { left: auto; right: 0; translate: 0 0; }
@media (prefers-reduced-motion: no-preference) { .home-a .dm-hot { animation: dm-ping 2.4s ease-out infinite; } @keyframes dm-ping { 0% { box-shadow: 0 0 0 0 rgba(255, 122, 47, .5); } 80%, 100% { box-shadow: 0 0 0 16px rgba(255, 122, 47, 0); } } }
.home-a .dm-shot figcaption { margin-top: 12px; font-size: 13.5px; color: var(--ink-muted); }
@media (max-width: 700px) {
  .home-a .dm-in { padding: 18px 16px 18px; }
  .home-a .dm-hot { width: 18px; height: 18px; margin: -9px 0 0 -9px; }
  .home-a .dm-hide-sm { display: none !important; }
}

/* row layouts */
.home-a .dm-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.home-a .dm-nm { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-a .dm-ranked .dm-row { grid-template-columns: minmax(150px, 1.1fr) 2fr 48px; }
.home-a .dm-engines .dm-row { grid-template-columns: minmax(130px, 1fr) 2fr 44px; }
.home-a .dm-searches .dm-row { grid-template-columns: minmax(0, 1.6fr) 1fr 32px; }
.home-a .dm-wins .dm-row { grid-template-columns: minmax(0, 1.7fr) 1fr 64px; }
.home-a .dm-num { text-align: right; }
.home-a .dm-qy { font: 500 14px var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-a .dm-wt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.home-a .dm-wt strong { font-size: 15px; line-height: 1.3; }
.home-a .dm-ba > i { position: absolute; top: -3px; bottom: -3px; left: var(--was); width: 3px; margin-left: -1px; border-radius: 2px; background: var(--ink); opacity: .5; }
.home-a .dm-scale { display: grid; grid-template-columns: minmax(150px, 1.1fr) 2fr 48px; gap: 14px; padding: 6px 10px 0; font: 500 11.5px var(--font-mono); color: var(--ink-muted); }
.home-a .dm-scale span:nth-child(1) { grid-column: 2; grid-row: 1; justify-self: start; }
.home-a .dm-scale span:nth-child(2) { grid-column: 2; grid-row: 1; justify-self: center; }
.home-a .dm-scale span:nth-child(3) { grid-column: 2; grid-row: 1; justify-self: end; }
.home-a .dm-key i.ln { width: 2px; height: 14px; border-radius: 1px; background: var(--ink); opacity: .5; }
@media (max-width: 700px) {
  .home-a .dm-ranked .dm-row, .home-a .dm-scale { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 40px; gap: 10px; }
  .home-a .dm-ranked .dm-av { display: none; }
  .home-a .dm-nm { font-size: 14px; }
  .home-a .dm-engines .dm-row { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 40px; gap: 10px; }
  .home-a .dm-wins .dm-row { grid-template-columns: minmax(0, 1fr) 64px; }
  .home-a .dm-wins .dm-ba { display: none; }
  .home-a .dm-searches .dm-row { grid-template-columns: minmax(0, 1fr) 70px 28px; gap: 10px; }
  .home-a .dm-cols { gap: 7px; height: 180px; } .home-a .dm-x { gap: 7px; }
  .home-a .dm-tail { gap: 4px; height: 160px; }
  .home-a .dm [data-tip]::after { max-width: 220px; }
}
/* without scripting nothing would start the wave, so show the bars as they are */
@media (scripting: none) { .home-a .dm .dm-v, .home-a .dm .tb > b, .home-a .dm .dm-meter > b { animation: none !important; } }
