/* ==========================================================================
   Daroo — marketing site. One stylesheet for AR (rtl) + EN (ltr).
   Logical properties only for anything directional.
   ========================================================================== */

:root {
  --bg: #031312;
  --bg-2: #07201f;
  --bg-3: #0a2a28;
  --teal: #006666;
  --teal-d: #00605e;
  --mint: #cfe5e2;
  --accent: #5eead4;
  --accent-2: #9ff5e1;
  --text: #eaf4f2;
  --muted: rgba(234, 244, 242, .68);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --glass: rgba(255, 255, 255, .045);
  --glass-2: rgba(255, 255, 255, .08);
  --paper: #f4f7f5;
  --ink: #052624;
  --ink-muted: #3d5a57;
  --ink-line: rgba(5, 38, 36, .12);

  --f-display: 'Readex Pro', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --f-body: 'IBM Plex Sans Arabic', 'Manrope', system-ui, sans-serif;

  --gutter: clamp(18px, 4vw, 44px);
  --r: 20px;
  --r-lg: 28px;
  --r-xl: clamp(26px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --nav-h: 72px;
  --dirx: 1; /* flips tilt/transform directions in RTL */
}
html[dir="rtl"] { --dirx: -1; }
html:lang(en) { --f-body: 'Manrope', 'IBM Plex Sans Arabic', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--f-body); font-size: clamp(1rem, .96rem + .2vw, 1.125rem); line-height: 1.75;
  overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
html:lang(en) body { line-height: 1.65; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--bg); }

.skip {
  position: fixed; inset-inline-start: 12px; inset-block-start: -80px; z-index: 200;
  background: var(--accent); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 600; transition: inset-block-start .2s;
}
.skip:focus { inset-block-start: 12px; }

.wrap { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.fill { fill: currentColor; stroke: none; }
[dir="rtl"] .arr { transform: scaleX(-1); }

/* ---------- type ---------- */
.h2, .h3, .hero-h1, .grc, .big { font-family: var(--f-display); font-weight: 500; }
.h2 { font-size: clamp(1.9rem, 1.1rem + 3.4vw, 4rem); line-height: 1.3; text-wrap: balance; }
.h2.xl { font-size: clamp(2.2rem, 1rem + 5.4vw, 5.6rem); line-height: 1.22; }
.h3 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem); line-height: 1.35; }
html:lang(en) .h2, html:lang(en) .h3, html:lang(en) .hero-h1, html:lang(en) .big { letter-spacing: -.03em; line-height: 1.08; }
html:lang(en) .h2.xl { line-height: 1.02; letter-spacing: -.04em; }
.lead { font-size: clamp(1.02rem, .95rem + .45vw, 1.28rem); color: var(--muted); max-width: 62ch; }
.paper .lead { color: var(--ink-muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: .85rem; color: var(--accent); }
html:lang(en) .eyebrow { text-transform: uppercase; letter-spacing: .16em; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }

/* word split (never letters) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: .14em; margin-block: -.14em; }
.wi { display: inline-block; will-change: transform; }
.sw { display: inline; }

/* ---------- glass ---------- */
.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025));
  border: 1px solid var(--line); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}
.spot { position: relative; isolation: isolate; overflow: hidden; --mx: 50%; --my: 0%; }
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity .35s;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(94, 234, 212, .2), transparent 62%);
}
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; opacity: 0; transition: opacity .35s; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(159, 245, 225, .9), transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.spot:hover::before, .spot:hover::after { opacity: 1; }

/* ---------- buttons ---------- */
.btn {
  --h: 54px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: var(--h); padding: 0 28px; border-radius: 999px; border: 1px solid transparent; font-family: var(--f-display); font-weight: 500;
  font-size: 1rem; line-height: 1; white-space: nowrap; overflow: hidden; isolation: isolate; transition: background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.btn > * { position: relative; z-index: 1; }
.btn-sm { --h: 44px; padding: 0 20px; font-size: .92rem; }
.btn-primary { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #03211f; box-shadow: 0 10px 40px -10px rgba(94, 234, 212, .55); }
.btn-primary:hover { box-shadow: 0 14px 50px -8px rgba(94, 234, 212, .8); }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
[dir="rtl"] .btn-primary::after { transform: translateX(120%); }
.btn-primary:hover::after { transform: translateX(0); }
.btn-glass { background: var(--glass-2); border-color: var(--line-2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--text); }
.btn-glass:hover { background: rgba(255, 255, 255, .14); border-color: rgba(159, 245, 225, .5); }
.btn-dark { background: #031312; color: var(--accent-2); }
.btn-dark:hover { background: #000; }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
[dir="rtl"] .btn:hover .arr { transform: scaleX(-1) translateX(4px); }

/* ---------- intro / progress ---------- */
.intro { display: none; }
.js .intro {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 300; background: var(--bg);
  animation: introFailsafe .01s 3.2s forwards;
}
.intro img { width: 150px; height: auto; animation: introPulse 1.1s var(--ease) both; }
@keyframes introPulse { from { opacity: 0; transform: scale(.9); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes introFailsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.intro.done { pointer-events: none; }
.progress {
  position: fixed; inset-block-start: 0; inset-inline: 0; height: 3px; z-index: 120; transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--teal), var(--accent-2)); pointer-events: none;
}
[dir="rtl"] .progress { transform-origin: right; }

/* ---------- nav ---------- */
.nav { position: fixed; inset-block-start: 14px; inset-inline: 0; z-index: 100; transition: transform .5s var(--ease), inset-block-start .4s var(--ease); }
.nav.hide { transform: translateY(-140%); }
.nav-in {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--nav-h); padding-inline: 14px 14px; border-radius: 999px;
  background: rgba(4, 22, 21, .5); transition: height .4s var(--ease), background .4s, box-shadow .4s;
}
.nav.scrolled { inset-block-start: 8px; }
.nav.scrolled .nav-in { height: 58px; background: rgba(3, 19, 18, .78); box-shadow: 0 10px 40px -12px rgba(0, 0, 0, .6); }
.brand { display: block; padding-inline: 14px; }
.brand img { width: 104px; height: auto; transition: width .4s var(--ease); }
.nav.scrolled .brand img { width: 90px; }
.nav-links { display: none; align-items: center; gap: 4px; }
.nav-links a { position: relative; padding: 9px 16px; border-radius: 999px; font-size: .95rem; color: var(--muted); transition: color .25s, background .25s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--glass-2); }
.nav-end { display: flex; align-items: center; gap: 10px; }
.lang { padding: 8px 14px; border-radius: 999px; font-size: .9rem; border: 1px solid var(--line-2); color: var(--text); transition: background .25s; }
.lang:hover { background: var(--glass-2); }
.nav-cta { display: none; }
.burger { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--glass-2); display: grid; place-content: center; gap: 6px; padding: 0; }
.burger span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .4s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .burger { display: none; }
}
.menu {
  position: fixed; inset: 0; z-index: 90; background: radial-gradient(120% 80% at 80% 0%, #0b3532, var(--bg) 60%);
  visibility: hidden; opacity: 0; transition: opacity .4s, visibility 0s .4s; overflow-y: auto;
}
.menu.open { visibility: visible; opacity: 1; transition: opacity .4s; }
.menu-in { min-height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 40px; padding: 110px var(--gutter) 40px; }
.m-link { display: flex; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-family: var(--f-display); font-size: clamp(1.8rem, 8vw, 3rem); }
.m-n { font-size: .9rem; color: var(--accent); font-family: var(--f-body); }
.menu-foot { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
@media (min-width: 960px) { .menu { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-block: calc(var(--nav-h) + 56px) 80px; overflow: hidden; isolation: isolate;
  background: radial-gradient(90% 70% at 75% 10%, #0d4a45 0%, transparent 60%), radial-gradient(70% 60% at 10% 90%, #07302d 0%, transparent 65%), var(--bg); }
.shader { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: 0; transition: opacity 1.4s; }
.shader.on { opacity: 1; }
.hero-fade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(3, 19, 18, .35), transparent 30%, transparent 65%, var(--bg) 100%); pointer-events: none; }
.hero-grid { display: grid; gap: 48px; align-items: center; width: min(1280px, 100% - 2 * var(--gutter)); }
.hero-copy { min-width: 0; }
.chip-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--glass); color: var(--accent-2); font-size: .92rem; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
html:lang(en) .chip-eyebrow { letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }
.grc {
  font-size: clamp(5.5rem, 4rem + 14vw, 16rem); line-height: .86; font-weight: 600; letter-spacing: -.05em; margin-block: 14px 6px; direction: ltr; text-align: start; width: max-content; max-width: 100%; padding-inline-end: .06em; padding-block-end: .04em;
  background: linear-gradient(180deg, #fff 8%, var(--accent-2) 55%, rgba(94, 234, 212, .15) 105%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 60px rgba(94, 234, 212, .25));
}
[dir="rtl"] .grc { text-align: start; margin-inline-start: 0; }
.hero-h1 { font-size: clamp(1.55rem, 1.1rem + 2vw, 3rem); line-height: 1.4; max-width: 20ch; text-wrap: balance; }
html:lang(en) .hero-h1 { line-height: 1.08; max-width: 18ch; }
.hero-p { margin-block: 22px 32px; max-width: 54ch; color: var(--muted); font-size: clamp(1rem, .95rem + .3vw, 1.18rem); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-mock { position: relative; perspective: 1600px; min-width: 0; }
.mock-glow { position: absolute; inset: 6% 4%; border-radius: 40%; background: radial-gradient(closest-side, rgba(94, 234, 212, .45), transparent); filter: blur(50px); z-index: -1; }
.mock-tilt { transform-style: preserve-3d; transform: rotateY(calc(var(--dirx) * -14deg)) rotateX(7deg) rotateZ(calc(var(--dirx) * 1.5deg)); will-change: transform; }
.mock-frame { padding: 10px; border-radius: 26px; box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .05); }
.mock-frame img { border-radius: 18px; width: 100%; }
.phero-mock .mock-frame { transform: rotate(calc(var(--dirx) * 1.5deg)); }
.phero-mock .mock-frame img { aspect-ratio: 16/10; object-fit: cover; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 32px; }
  .hero-mock { margin-inline-end: -1vw; }
  .phero.has-media .hero-grid { grid-template-columns: 1fr 1fr; }
  .phero.has-media .hero-mock { margin-inline-end: 0; }
}
.phero { min-height: 70svh; }
.phero .hero-grid { grid-template-columns: 1fr; }
.phero .ph1 { max-width: 16ch; font-size: clamp(2.2rem, 1rem + 5.2vw, 5.4rem); line-height: 1.25; }
html:lang(en) .phero .ph1 { line-height: 1.02; letter-spacing: -.04em; }
.phero:not(.has-media) .hero-copy { max-width: 1000px; }
.phero:not(.has-media) .ph1 { max-width: 20ch; }

/* ---------- sections ---------- */
.sec { position: relative; padding-block: clamp(72px, 11vw, 160px); }
.sec-head { display: grid; gap: 22px; margin-block-end: clamp(36px, 6vw, 80px); }
.sec-head.center { text-align: center; justify-items: center; }
.sec-head.center .lead { margin-inline: auto; }
.paper { background: var(--paper); color: var(--ink); border-radius: var(--r-xl); z-index: 2; margin-block: -1px; }
.paper .h2, .paper .h3 { color: var(--ink); }

/* values */
.grid-4 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.values { padding-block: clamp(40px, 6vw, 80px); }
.card { padding: 30px 26px 32px; border-radius: var(--r); display: grid; gap: 14px; align-content: start; min-height: 240px; }
.card h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.3rem; line-height: 1.4; }
.card p { color: var(--muted); font-size: .98rem; line-height: 1.7; }
.v-ic, .t-ic, .svc-ic, .mv-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(94, 234, 212, .1); border: 1px solid rgba(94, 234, 212, .25); color: var(--accent-2); }
.v-ic .ic, .t-ic .ic { width: 26px; height: 26px; }

/* problem */
.problem .h2 { max-width: 16ch; }
.problem .scrub { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.35rem, .9rem + 2vw, 2.5rem); line-height: 1.7; margin-block: clamp(28px, 5vw, 64px) clamp(48px, 8vw, 110px); max-width: 30em; color: var(--ink); text-wrap: pretty; }
html:lang(en) .problem .scrub { line-height: 1.32; letter-spacing: -.02em; }
.outs { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); counter-reset: o; }
.out { position: relative; padding: 26px 24px 30px; border-radius: var(--r); background: #fff; border: 1px solid var(--ink-line); min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s, background .4s, color .4s; }
.out:hover { transform: translateY(-6px); background: var(--teal-d); color: #fff; box-shadow: 0 30px 60px -24px rgba(0, 96, 94, .6); }
.out-n { font-family: var(--f-display); font-size: clamp(3rem, 5vw, 4.4rem); line-height: 1; font-weight: 600; color: transparent; -webkit-text-stroke: 1.2px var(--teal); direction: ltr; text-align: start; }
.out:hover .out-n { -webkit-text-stroke-color: var(--accent-2); }
.out h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.25rem; line-height: 1.5; }
.out h3 .b { color: var(--ink-muted); transition: color .4s; }
.out:hover h3 .b { color: var(--mint); }

/* story (pinned) */
.story { padding-block: 0; background: radial-gradient(80% 50% at 80% 20%, rgba(0, 102, 102, .35), transparent 70%); }
.story-pin { padding-block: clamp(72px, 10vw, 120px) 0; }
.story-grid { display: grid; gap: 40px; }
.story-copy { display: grid; gap: 24px; align-content: center; }
.story .h2 { font-size: clamp(2rem, 1rem + 3.4vw, 4rem); }
.pillars { display: grid; gap: 10px; margin-block-start: 10px; }
.pillar-btn { width: 100%; display: flex; gap: 18px; align-items: flex-start; text-align: start; background: transparent; border: 1px solid transparent; border-radius: var(--r); padding: 16px 18px; color: inherit; transition: background .4s, border-color .4s, opacity .4s; }
.pl-n { font-family: var(--f-display); color: var(--accent); font-size: .95rem; padding-block-start: 4px; direction: ltr; }
.pl-t { display: grid; gap: 4px; }
.pl-t strong { font-family: var(--f-display); font-weight: 500; font-size: 1.25rem; line-height: 1.5; }
.pl-t span { color: var(--muted); font-size: .98rem; line-height: 1.7; }
.pillar { opacity: .5; transition: opacity .4s; }
.pillar.is-active { opacity: 1; }
.pillar.is-active .pillar-btn { background: var(--glass-2); border-color: var(--line-2); }
.story-stage { position: relative; display: none; }
.stage-glow { position: absolute; inset: 8%; background: radial-gradient(closest-side, rgba(94, 234, 212, .35), transparent); filter: blur(60px); z-index: -1; }
.stage-frame { position: relative; border-radius: 28px; padding: 12px; aspect-ratio: 682 / 520; }
.shot { position: absolute; inset: 12px; opacity: 0; transform: translateY(30px) scale(.97); transition: opacity .7s var(--ease), transform .9s var(--ease); pointer-events: none; }
.shot img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.shot.is-active { opacity: 1; transform: none; }
.s-cards { display: grid; gap: 18px; padding-block: 40px clamp(60px, 8vw, 100px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.s-card { border-radius: var(--r-lg); padding: 14px 14px 26px; display: grid; gap: 10px; }
.s-card-img img { border-radius: 16px; width: 100%; }
.s-card h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.25rem; padding-inline: 12px; margin-block-start: 8px; }
.s-card p { color: var(--muted); padding-inline: 12px; font-size: .98rem; }
/* pin mode: enabled by JS (html.pin) on wide screens */
@media (min-width: 960px) {
  html.pin .story-track { height: 330vh; }
  html.pin .story-pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding-block: 90px 30px; }
  html.pin .story-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(30px, 5vw, 80px); align-items: center; width: min(1280px, 100% - 2 * var(--gutter)); }
  html.pin .story-stage { display: block; }
  html.pin .s-cards { display: none; }
  html.pin .story .lead { font-size: 1.05rem; }
  html.pin .pillar-btn { padding-block: 12px; }
}
@media (min-width: 960px) and (max-height: 760px) { html.pin .story .h2 { font-size: 2.4rem; } html.pin .story .lead { display: none; } }
@media (max-width: 959px) { .story-pin { padding-block-end: 0; } .pillars { display: none; } .story-grid { padding-block-end: 0; } }
html:not(.pin) .pillars { display: none; }
@media (min-width: 960px) { html:not(.pin) .story-grid { grid-template-columns: 1fr; } }
html:not(.pin) .story-stage { display: none; }

/* split sections */
.split { display: grid; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-copy { display: grid; gap: 22px; justify-items: start; }
.split-copy .lead + .lead { margin-block-start: -4px; }
.media-frame { position: relative; border-radius: var(--r-lg); }
.media-frame img { border-radius: var(--r-lg); width: 100%; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); border: 1px solid var(--line-2); }
.media-glow { position: absolute; inset: -6%; z-index: -1; background: radial-gradient(closest-side, rgba(94, 234, 212, .28), transparent); filter: blur(50px); }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.ai { background: linear-gradient(180deg, transparent, rgba(7, 32, 31, .8) 50%, transparent); }

/* bento */
.modules { background: radial-gradient(60% 40% at 15% 0%, rgba(0, 102, 102, .3), transparent 70%); }
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; grid-auto-flow: dense; }
.tile { position: relative; border-radius: var(--r); padding: 24px 22px 26px; display: flex; flex-direction: column; gap: 12px; min-height: 220px; transition: transform .5s var(--ease), border-color .4s, box-shadow .4s; }
.tile:hover { transform: translateY(-6px); border-color: rgba(159, 245, 225, .35); box-shadow: 0 30px 60px -30px rgba(94, 234, 212, .35); }
.tile h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.12rem; line-height: 1.45; margin-block-start: auto; }
.tile p { color: var(--muted); font-size: .92rem; line-height: 1.65; }
.t-n { position: absolute; inset-block-start: 20px; inset-inline-end: 22px; font-family: var(--f-display); font-size: .8rem; color: rgba(255, 255, 255, .28); }
.tile.wide { background: linear-gradient(160deg, rgba(0, 102, 102, .38), rgba(255, 255, 255, .03)); }
.t-ic { transition: transform .5s var(--ease), background .4s; }
.tile:hover .t-ic { transform: rotate(-8deg) scale(1.08); background: rgba(94, 234, 212, .2); }
@media (min-width: 700px) { .bento { grid-template-columns: repeat(3, 1fr); } .tile.wide { grid-column: span 2; } }
@media (min-width: 1100px) { .bento { grid-template-columns: repeat(4, 1fr); } .tile { min-height: 240px; } }
@media (max-width: 440px) { .bento { grid-template-columns: 1fr; } .tile { min-height: 0; } .tile.wide { grid-column: auto; } .tile h3 { margin-block-start: 6px; } }

/* services */
.svc-grid { gap: 16px; }
.svc { position: relative; padding: 32px 26px 34px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--ink-line); display: grid; gap: 14px; align-content: start; min-height: 300px; overflow: hidden; transition: transform .5s var(--ease), background .45s, color .45s, box-shadow .5s; }
.svc .svc-ic { background: rgba(0, 96, 94, .08); border-color: rgba(0, 96, 94, .2); color: var(--teal-d); transition: inherit; }
.svc h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.35rem; margin-block-start: 28px; }
.svc p { color: var(--ink-muted); font-size: 1rem; }
.svc-n { position: absolute; inset-block-start: 22px; inset-inline-end: 24px; font-family: var(--f-display); color: rgba(5, 38, 36, .25); }
.svc:hover { transform: translateY(-8px); background: var(--teal-d); color: #fff; box-shadow: 0 40px 70px -30px rgba(0, 96, 94, .7); }
.svc:hover h3 { color: #fff; }
.svc:hover p { color: var(--mint); }
.svc:hover .svc-ic { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: var(--accent-2); }

/* frameworks */
.frameworks { background: radial-gradient(70% 50% at 50% 0%, rgba(0, 102, 102, .35), transparent 70%); overflow: hidden; }
.fw-aura { position: absolute; inset-inline: 0; inset-block-start: 20%; height: 60%; background: radial-gradient(40% 50% at 50% 50%, rgba(94, 234, 212, .08), transparent); pointer-events: none; }
.fw-rows { display: grid; gap: 18px; margin-block-end: clamp(48px, 7vw, 90px); }
.fw-label { font-family: var(--f-display); font-weight: 400; font-size: 1rem; color: var(--muted); margin-block-start: 14px; }
.fw-more { color: var(--muted); font-size: .98rem; text-align: center; margin-block-start: 8px; }
.marquee { direction: ltr; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.m-track { display: flex; width: max-content; animation: marq 48s linear infinite; }
.marquee.rev .m-track { animation-direction: reverse; animation-duration: 56s; }
.marquee:hover .m-track, .marquee:focus-within .m-track { animation-play-state: paused; }
.m-group { display: flex; gap: 16px; padding-inline-end: 16px; flex: none; }
@keyframes marq { to { transform: translateX(-50%); } }
.chip { flex: none; display: grid; place-items: center; height: 84px; min-width: 150px; padding-inline: 28px; border-radius: 18px; transition: transform .4s var(--ease), box-shadow .4s, background .4s; }
.chip.logo { background: #f4f7f5; border: 1px solid rgba(255, 255, 255, .6); }
.chip.logo img { height: 44px; width: auto; max-width: 140px; object-fit: contain; }
.chip.badge { background: var(--glass); border: 1px solid var(--line-2); font-family: var(--f-display); font-weight: 500; font-size: 1.25rem; letter-spacing: .04em; color: var(--accent-2); }
.chip:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -18px rgba(94, 234, 212, .5); }
.beyond { margin-block-start: 0; border-radius: var(--r-xl); padding: clamp(28px, 5vw, 64px); display: grid; gap: 30px; align-items: center; background: linear-gradient(135deg, rgba(0, 102, 102, .45), rgba(255, 255, 255, .03)); }
.beyond .h3 { font-size: clamp(1.8rem, 1rem + 3vw, 3.4rem); margin-block-end: 14px; }
.beyond p { color: var(--muted); max-width: 52ch; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 26px; }
.pill-list li { display: inline-flex; gap: 8px; align-items: center; padding: 10px 18px; border-radius: 999px; background: rgba(94, 234, 212, .1); border: 1px solid rgba(94, 234, 212, .3); color: var(--accent-2); font-size: .95rem; }
.pill-list .ic { width: 1em; height: 1em; }
.beyond-ic img { width: min(200px, 40vw); margin-inline: auto; filter: drop-shadow(0 20px 40px rgba(94, 234, 212, .3)); }
@media (min-width: 800px) { .beyond { grid-template-columns: 1fr auto; } .beyond-ic img { width: 240px; } }

/* trust */
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.trust-card { background: #fff; border: 1px solid var(--ink-line); border-radius: var(--r); padding: 26px 18px 20px; display: grid; gap: 16px; justify-items: center; align-content: space-between; min-height: 190px; transition: transform .45s var(--ease), box-shadow .45s; }
.trust-card:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -28px rgba(0, 96, 94, .45); }
.trust-card img { max-height: 76px; width: auto; max-width: 100%; object-fit: contain; align-self: center; }
.trust-card span { font-size: .88rem; color: var(--ink-muted); text-align: center; line-height: 1.5; }
@media (min-width: 760px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .trust-grid { grid-template-columns: repeat(6, 1fr); } }

/* CTA panel */
.cta { padding-block: clamp(48px, 8vw, 110px) 0; }
.cta-panel { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(30px, 6vw, 80px); display: grid; gap: 30px; align-items: center; color: #031312;
  background: radial-gradient(80% 120% at 100% 0%, #b6f7ea 0%, transparent 55%), radial-gradient(70% 90% at 0% 100%, #2dd4bf 0%, transparent 60%), linear-gradient(135deg, #5eead4, #7de8d4); }
[dir="rtl"] .cta-panel { background: radial-gradient(80% 120% at 0% 0%, #b6f7ea 0%, transparent 55%), radial-gradient(70% 90% at 100% 100%, #2dd4bf 0%, transparent 60%), linear-gradient(225deg, #5eead4, #7de8d4); }
.cta-panel::before { content: ""; position: absolute; inset: 0; opacity: .25; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"); pointer-events: none; }
.cta-copy { position: relative; display: grid; gap: 22px; justify-items: start; }
.cta-copy .h2 { font-size: clamp(1.9rem, 1rem + 3.2vw, 3.8rem); color: #031312; }
.cta-copy .lead { color: rgba(3, 19, 18, .8); }
.cta-media { position: relative; }
.cta-media img { width: min(100%, 560px); margin-inline: auto; filter: drop-shadow(0 30px 40px rgba(3, 40, 36, .35)); }
@media (min-width: 900px) { .cta-panel { grid-template-columns: 1.1fr .9fr; } .cta-media img { margin-inline-end: -14%; width: 118%; max-width: none; } }

/* FAQ */
.faq-grid { display: grid; gap: 36px; }
.faq-list { display: grid; gap: 12px; }
.faq-i { border: 1px solid var(--line); border-radius: var(--r); background: var(--glass); transition: border-color .3s, background .3s; }
.faq-i[open] { border-color: rgba(159, 245, 225, .3); background: var(--glass-2); }
.faq-i summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px 26px; cursor: pointer; font-family: var(--f-display); font-weight: 500; font-size: 1.1rem; line-height: 1.5; }
.faq-i summary::-webkit-details-marker { display: none; }
.faq-ic { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; flex: none; transition: transform .4s var(--ease), background .3s; color: var(--accent-2); }
.faq-i[open] .faq-ic { transform: rotate(45deg); background: rgba(94, 234, 212, .15); }
.faq-a { padding: 0 26px 24px; color: var(--muted); max-width: 70ch; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; } .faq-grid .h2 { position: sticky; inset-block-start: 120px; align-self: start; } }

/* contact + form */
.contact { background: radial-gradient(60% 50% at 90% 100%, rgba(0, 102, 102, .35), transparent 70%); }
.contact-grid { display: grid; gap: 44px; align-items: start; }
.contact-info { display: grid; gap: 22px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 90px); } .contact-info { position: sticky; inset-block-start: 110px; } }
.c-list { display: grid; gap: 14px; margin-block-start: 14px; }
.c-item { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--glass); transition: border-color .3s, transform .4s var(--ease); }
.c-item:hover { border-color: rgba(159, 245, 225, .35); transform: translateX(calc(var(--dirx) * 4px)); }
.c-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(94, 234, 212, .1); color: var(--accent-2); flex: none; }
.c-l { display: block; font-size: .82rem; color: var(--muted); }
.c-item a { font-size: 1.02rem; overflow-wrap: anywhere; }
.c-item a:hover { color: var(--accent-2); }
.form { border-radius: var(--r-xl); padding: clamp(22px, 4vw, 46px); }
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .form-grid { grid-template-columns: 1fr 1fr; } .field.wide { grid-column: 1 / -1; } }
.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); border-radius: 16px; padding: 24px 18px 10px; min-height: 60px; outline: none; color: var(--text);
  transition: border-color .25s, background .25s, box-shadow .25s; appearance: none; -webkit-appearance: none; line-height: 1.5;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--accent-2) 50%), linear-gradient(135deg, var(--accent-2) 50%, transparent 50%); background-position: calc(100% - 22px) 28px, calc(100% - 16px) 28px; background-size: 6px 6px; background-repeat: no-repeat; }
[dir="rtl"] .field select { background-position: 22px 28px, 16px 28px; }
.field select option { color: #031312; background: #fff; }
.field label { position: absolute; inset-inline-start: 18px; inset-block-start: 18px; color: var(--muted); font-size: 1rem; pointer-events: none; transform-origin: start top; transition: transform .25s var(--ease), color .25s; line-height: 1.5; }
.field .req { color: var(--accent); margin-inline-start: 3px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); background: rgba(94, 234, 212, .06); box-shadow: 0 0 0 4px rgba(94, 234, 212, .15); }
.field input:focus ~ label, .field input:not(:placeholder-shown) ~ label, .field textarea:focus ~ label, .field textarea:not(:placeholder-shown) ~ label, .field.filled label, .field select ~ label { transform: translateY(-11px) scale(.78); color: var(--accent-2); }
.field input[dir="ltr"] { text-align: start; }
html[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #ff8a8a; }
.err { display: block; min-height: 0; font-size: .82rem; color: #ffb4b4; margin-block-start: 6px; padding-inline: 6px; }
.err:empty { display: none; }
.form-foot { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-block-start: 24px; }
.form-status { color: var(--accent-2); font-size: .95rem; }
/* no-JS: static labels above fields */
html:not(.js) .field label { position: static; display: block; margin-block-end: 6px; }
html:not(.js) .field input, html:not(.js) .field select, html:not(.js) .field textarea { padding-block: 14px; }
html:not(.js) .field { display: flex; flex-direction: column-reverse; }

/* about page */
.two-col { display: grid; gap: clamp(28px, 5vw, 70px); }
.col-text { display: grid; gap: 22px; align-content: start; }
.big { font-size: clamp(1.4rem, .9rem + 2vw, 2.6rem); line-height: 1.6; font-weight: 400; }
html:lang(en) .big { line-height: 1.3; }
.paper .lead { max-width: 60ch; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 8px; }
.chip-row .chip { height: 56px; min-width: 0; padding-inline: 22px; font-size: 1.05rem; }
.paper .chip.badge { background: #fff; border-color: var(--ink-line); color: var(--teal-d); }
.paper .chip.badge.alt { background: var(--teal-d); color: #fff; border-color: transparent; }
.chip.badge.alt { color: var(--text); background: rgba(0, 102, 102, .5); }
@media (min-width: 900px) { .two-col { grid-template-columns: .9fr 1.1fr; } .intro-sec .two-col { grid-template-columns: 1.2fr .8fr; } }
.grid-2 { display: grid; gap: 18px; }
@media (min-width: 800px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.mv-card { padding: clamp(28px, 4vw, 56px); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--ink-line); display: grid; gap: 20px; align-content: start; }
.mv-card.alt { background: var(--teal-d); color: #fff; border-color: transparent; }
.mv-card.alt .h3 { color: #fff; }
.mv-card p { color: var(--ink-muted); font-size: 1.1rem; }
.mv-card.alt p { color: var(--mint); }
.mv-ic { background: rgba(0, 96, 94, .08); border-color: rgba(0, 96, 94, .2); color: var(--teal-d); }
.mv-card.alt .mv-ic { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: var(--accent-2); }
.intro-sec { padding-block-start: clamp(40px, 6vw, 80px); }
.paper + .contact, .paper + .sec:not(.paper) { padding-block-start: clamp(90px, 12vw, 180px); }

/* footer */
.footer { position: relative; overflow: hidden; border-top: 1px solid var(--line); padding-block: clamp(56px, 8vw, 100px) 0; background: linear-gradient(180deg, var(--bg), #020e0d); }
.f-top { display: grid; gap: 44px; }
.f-brand { display: grid; gap: 22px; align-content: start; max-width: 420px; }
.f-brand img { width: 130px; height: auto; }
.f-brand p { color: var(--muted); }
.social { display: flex; gap: 10px; }
.social a { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .3s, color .3s, transform .3s var(--ease); }
.social a:hover { background: var(--accent); color: var(--bg); transform: translateY(-3px); }
.social .ic { width: 18px; height: 18px; }
.f-cols { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.f-h { font-family: var(--f-display); font-weight: 500; font-size: 1rem; margin-block-end: 16px; color: var(--accent-2); }
.f-col li + li { margin-block-start: 10px; }
.f-col a { color: var(--muted); transition: color .25s; }
.f-col a:hover { color: var(--text); }
@media (min-width: 900px) { .f-top { grid-template-columns: 1fr 1.4fr; } }
.f-copy { margin-block: 56px 0; padding-block: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.f-mark { direction: ltr; text-align: center; font-family: var(--f-display); font-weight: 600; font-size: clamp(6rem, 3rem + 26vw, 28rem); line-height: .78; letter-spacing: -.05em; margin-block-start: 10px; padding-block-end: .04em;
  background: linear-gradient(180deg, rgba(159, 245, 225, .28), rgba(159, 245, 225, 0) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; pointer-events: none; white-space: nowrap; overflow: hidden; }
.wa { position: fixed; inset-inline-end: 20px; inset-block-end: 20px; z-index: 80; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #052e16; box-shadow: 0 14px 34px -8px rgba(37, 211, 102, .6); transition: transform .35s var(--ease); }
.wa:hover { transform: scale(1.1) rotate(-6deg); }
.wa .ic { width: 28px; height: 28px; }

/* ---------- responsive tweaks ---------- */
@media (max-width: 600px) {
  .nav-in { height: 62px; }
  .brand img { width: 88px; }
  .lang { padding: 7px 12px; }
  .hero { padding-block-start: 112px; }
  .btn { padding: 0 22px; }
  .cta-row .btn { flex: 1 1 100%; }
  .wa { width: 52px; height: 52px; inset-block-end: 14px; inset-inline-end: 14px; }
  .chip { height: 72px; min-width: 120px; padding-inline: 20px; }
  .chip.logo img { height: 36px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .m-track { animation: none !important; width: auto; flex-wrap: wrap; }
  .marquee { direction: inherit; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .m-group { flex-wrap: wrap; padding-inline-end: 0; }
  .m-group[aria-hidden="true"] { display: none; }
  .intro { display: none !important; }
}

/* ---- polish round ---- */
.phero.has-media { min-height: 0; padding-block: calc(var(--nav-h) + 64px) clamp(56px, 7vw, 96px); }
@media (min-width: 960px) { .phero.has-media { min-height: 66vh; } }
.about-hero .mock-frame img { object-position: top center; }
.intro-sec .col-text .lead { color: var(--text); opacity: .86; }
.t-deco { position: absolute; inset-inline-end: -28px; inset-block-end: -34px; width: 220px; height: 220px; stroke-width: .7; color: var(--accent-2); opacity: .09; pointer-events: none; transition: opacity .5s, transform .6s var(--ease); }
.tile:hover .t-deco { opacity: .16; transform: scale(1.05) rotate(-3deg); }
.tile > *:not(.t-deco) { position: relative; }
.tile > .t-n { position: absolute; }
@media (max-width: 699px) { .t-deco { width: 160px; height: 160px; } }

/* ==========================================================================
   Live hero dashboard  (.hero-dash / .hd-*)  - all namespaced
   Sizing: 1em == 1/64 of the mock width (container query units) so the
   whole UI scales as one object; compact layout below 600px.
   ========================================================================== */
.page-home .hero-grid { gap: 40px; }
@media (min-width: 960px) {
  .page-home .hero-grid { grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); }
  .page-home .hero-mock { margin-inline-end: 0; }
}
.hd-wrap { perspective: none; }
.hd-stage { position: relative; perspective: 1700px; }
.hd-tilt { transform-style: preserve-3d; will-change: transform; transform: perspective(1700px) rotateY(calc(var(--dirx) * -12deg)) rotateX(6deg) rotateZ(calc(var(--dirx) * 1deg)); }
@media (max-width: 959px) { .hd-tilt { transform: none !important; } .hd-stage { margin-inline: auto; max-width: 640px; } }
.hero-dash.mock-frame { padding: 8px; border-radius: 24px; position: relative; box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .85), 0 0 80px -10px rgba(94, 234, 212, .22), 0 0 0 1px rgba(255, 255, 255, .06); }
.hd-win { position: relative; container: hdwin / inline-size; border-radius: 17px; overflow: hidden; isolation: isolate; }
.hd-sheen { position: absolute; top: 0; bottom: 0; left: 0; width: 38%; pointer-events: none; z-index: 5; background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .11) 50%, transparent 100%); transform: translateX(-140%) skewX(-14deg); animation: hdsheen 10s ease-in-out 3.5s infinite; }
@keyframes hdsheen { 0%, 60% { transform: translateX(-140%) skewX(-14deg); } 100% { transform: translateX(330%) skewX(-14deg); } }

.hd-caption { display: flex; justify-content: center; align-items: center; gap: .65em; margin-block-start: 18px; font-size: .82rem; color: var(--muted); }
.hd-caption i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(94, 234, 212, .6); animation: hdping 2.2s infinite; }
@keyframes hdping { 70% { box-shadow: 0 0 0 9px rgba(94, 234, 212, 0); } 100% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0); } }

/* floating glass chips */
.hd-chips { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.hd-chip { position: absolute; display: flex; align-items: center; gap: .7em; padding: .55em 1.1em .55em .6em; border-radius: 999px; font-size: .85rem; font-weight: 500; color: #eaf4f2;
  background: rgba(6, 34, 32, .55); border: 1px solid rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .12);
  translate: var(--px, 0px) var(--py, 0px); animation: hdfloat 7s ease-in-out infinite; }
.hd-chip.c1 { inset-block-end: 2px; inset-inline-end: 3%; }
.hd-chip.c2 { inset-block-end: 14%; inset-inline-start: -4%; animation-delay: -2.5s; animation-duration: 8.5s; }
@keyframes hdfloat { 50% { transform: translateY(-9px); } }
.hd-ring { position: relative; width: 2.6em; height: 2.6em; display: grid; place-items: center; }
.hd-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.hd-ring circle { fill: none; stroke-width: 4; }
.hd-ring .trk { stroke: rgba(255, 255, 255, .14); }
.hd-ring .val { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: var(--v) 100; animation: hdring 2.4s var(--ease) 1.4s backwards; }
@keyframes hdring { from { stroke-dasharray: 0 100; } }
.hd-ring b { font-size: .62rem; font-weight: 600; }
.hd-tick { width: 2em; height: 2em; border-radius: 50%; display: grid; place-items: center; background: rgba(94, 234, 212, .18); color: var(--accent-2); }
.hd-tick .ic { width: 1.1em; height: 1.1em; stroke-width: 2.4; }
.hd-spark svg { width: 5.2em; height: 1.8em; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; overflow: visible; filter: drop-shadow(0 0 6px rgba(94, 234, 212, .6)); }
.hd-spark path { stroke-dasharray: 1; stroke-dashoffset: 0; animation: hdspark 5s ease-in-out infinite; }
@keyframes hdspark { 0% { stroke-dashoffset: 1; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
@media (max-width: 760px) { .hd-chips { display: none; } }

/* ---------- theme tokens ---------- */
.hd-root { --ease: cubic-bezier(.2, .7, .1, 1); position: relative; display: flex; flex-direction: column; font-size: 1.5625cqw; line-height: 1.35; font-family: var(--f-body);
  background: var(--hd-bg); color: var(--hd-text); text-align: start; }
.hd-dark, .dm-dark { --hd-bg: rgba(4, 25, 24, .66); --hd-top: rgba(255, 255, 255, .035); --hd-card: rgba(255, 255, 255, .052); --hd-card2: rgba(255, 255, 255, .075); --hd-line: rgba(255, 255, 255, .095); --hd-line2: rgba(255, 255, 255, .15);
  --hd-text: #eaf4f2; --hd-muted: rgba(234, 244, 242, .6); --hd-rail: rgba(0, 96, 94, .72); --hd-side: rgba(255, 255, 255, .02); --hd-accent: #5eead4; --hd-act: rgba(94, 234, 212, .16); --hd-actc: #9ff5e1;
  --c-g: #34d399; --c-b: #60a5fa; --c-a: #fbbf24; --c-r: #fb7185; --c-n: #94a3b8; --hd-up: rgba(52, 211, 153, .17); --hd-down: rgba(251, 113, 133, .17); --hd-upc: #6ee7b7; --hd-downc: #fda4af; --hd-tipbg: rgba(5, 28, 27, .86); --hd-shadow: rgba(0, 0, 0, .5); }
.hd-light, .dm-light { --hd-bg: #f5f7f7; --hd-top: #ffffff; --hd-card: #ffffff; --hd-card2: #f3f5f5; --hd-line: #e7ebeb; --hd-line2: #d8dfdf; --hd-text: #0d201f; --hd-muted: #667776; --hd-rail: #006362; --hd-side: #ffffff;
  --hd-accent: #006666; --hd-act: #b6d7d4; --hd-actc: #00504f; --c-g: #15803d; --c-b: #0b4aa5; --c-a: #f5b400; --c-r: #dc2626; --c-n: #6b6b6b; --hd-up: #dcf3e3; --hd-down: #fde0e0; --hd-upc: #15803d; --hd-downc: #c81e1e; --hd-tipbg: #ffffff; --hd-shadow: rgba(0, 60, 58, .18); }
.hd-root *, .hd-root *::before { transition: background-color .5s, border-color .5s, color .5s, fill .5s, stroke .5s, box-shadow .4s, opacity .4s, transform .5s var(--ease); }
.hd-root h2, .hd-root h3, .hd-root p { margin: 0; }
.hd-root .ic { width: 1.4em; height: 1.4em; }
:where(.hd-root) button { background: none; border: 0; color: inherit; font: inherit; padding: 0; cursor: pointer; }
.hd-light .l-d, .hd-dark .l-l { display: none; }

/* top bar */
.hd-top { display: flex; align-items: center; gap: .9em; height: 4.7em; padding-inline: 1.5em; background: var(--hd-top); border-bottom: 1px solid var(--hd-line); }
.hd-logo img { height: 2.4em; width: auto; }
.hd-search { display: flex; align-items: center; gap: .7em; flex: 0 1 25em; margin-inline: 2.2em auto; padding: 0 1em; height: 2.9em; border-radius: .8em; background: var(--hd-card2); border: 1px solid var(--hd-line); color: var(--hd-muted); }
.hd-search:focus-within { border-color: var(--hd-accent); box-shadow: 0 0 0 .22em color-mix(in srgb, var(--hd-accent) 25%, transparent); }
.hd-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--hd-text); font: inherit; font-size: .95em; }
.hd-search input::placeholder { color: var(--hd-muted); opacity: 1; }
.hd-lang { display: inline-flex; align-items: center; gap: .45em; font-size: .9em; color: var(--hd-text); }
.hd-lang .ic { width: 1.1em; height: 1.1em; }
.hd-flag { width: 1.5em; height: 1.5em; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #34d399, #15803d); display: inline-block; }
.hd-ib { position: relative; width: 2.6em; height: 2.6em; border-radius: 50%; display: grid; place-items: center; color: var(--hd-text); }
.hd-ib:hover { background: var(--hd-card2); }
.hd-ib .ic { width: 1.35em; height: 1.35em; }
.hd-theme .s { display: none; }
.hd-light .hd-theme .m { display: none; }
.hd-light .hd-theme .s { display: block; }
.hd-dotr { position: absolute; inset-block-start: .35em; inset-inline-end: .5em; width: .62em; height: .62em; border-radius: 50%; background: #ef4444; transform: scale(0); }
.hd-bell.has-dot .hd-dotr { transform: scale(1); }
.hd-bell.shake .ic { animation: hdshake .5s; transform-origin: 50% 10%; }
@keyframes hdshake { 20% { transform: rotate(18deg); } 40% { transform: rotate(-14deg); } 60% { transform: rotate(9deg); } 80% { transform: rotate(-5deg); } }
.hd-av svg { width: 2.7em; height: 2.7em; display: block; }
.hd-av circle:first-child { fill: #b4d4d4; }
.hd-av .h { fill: #006666; }

/* body */
.hd-body { display: flex; min-height: 0; }
.hd-rail { width: 4.3em; flex: none; display: flex; flex-direction: column; align-items: center; gap: .5em; padding-block: 1.5em; background: var(--hd-rail); }
.hd-ri { width: 3em; height: 3em; border-radius: .9em; display: grid; place-items: center; color: rgba(255, 255, 255, .78); }
.hd-ri .ic { width: 1.45em; height: 1.45em; }
.hd-ri:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.hd-ri.is-on { background: rgba(255, 255, 255, .2); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.hd-side { width: 13.6em; flex: none; padding: 1.7em 1.1em; background: var(--hd-side); border-inline-end: 1px solid var(--hd-line); overflow: hidden; }
.hd-st { font-family: var(--f-display); font-weight: 500; font-size: 1.6em; line-height: 1.3; margin-block-end: .9em; }
.hd-ss { display: flex; align-items: center; gap: .6em; padding: .8em .9em; border-radius: .7em; background: var(--hd-card2); border: 1px solid var(--hd-line); color: var(--hd-muted); font-size: .92em; margin-block-end: .9em; }
.hd-ss .ic { width: 1.2em; height: 1.2em; }
.hd-act { width: 100%; display: flex; align-items: center; gap: .65em; padding: .8em .9em; margin-bottom: .3em; border-radius: .7em; color: var(--hd-muted); font-size: .95em; text-align: start; }
.hd-act:hover { background: var(--hd-card2); color: var(--hd-text); }
.hd-act.is-on { background: var(--hd-act); color: var(--hd-actc); font-weight: 600; }
.hd-act .ic { width: 1.25em; height: 1.25em; }
.hd-bl { filter: blur(.26em); opacity: .72; margin-block-start: 1em; user-select: none; }
.hd-bgl { display: block; font-size: .7em; letter-spacing: .06em; margin: 1.3em 0 .5em; color: var(--hd-muted); }
.hd-bgi { display: flex; align-items: center; gap: .6em; padding: .55em .3em; font-size: .92em; color: var(--hd-text); }
.hd-bgi.sub { padding-inline-start: 1.5em; }
.hd-bgi i { width: 1.4em; height: 1.4em; border-radius: .4em; background: var(--hd-line2); flex: none; }
.hd-main { flex: 1; min-width: 0; padding: 1.5em 1.6em 1.9em; display: grid; align-content: start; }
.hd-v { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 1.1em; min-width: 0; transition: opacity .45s, transform .45s var(--ease), visibility 0s .45s; }
.hd-v:not(.is-on) { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(.6em); }
.hd-v.is-on { transition-delay: 0s; }
.hd-mh { display: flex; align-items: center; justify-content: space-between; min-height: 3.2em; }
.hd-title { font-family: var(--f-display); font-weight: 500; font-size: 1.7em; line-height: 1.3; }
.hd-next { width: 3.1em; height: 3.1em; border-radius: 50%; display: grid; place-items: center; background: var(--hd-rail); color: #fff; box-shadow: 0 .5em 1.2em -.4em var(--hd-shadow); }
.hd-light .hd-next { background: #006666; }
.hd-next:hover { transform: scale(1.1); }
.hd-next .ic { width: 1.4em; height: 1.4em; }
.hd-root[data-k2="1"] .hd-next .ic { transform: rotate(180deg); }
[dir="rtl"] .hd-next .ic.arr { transform: scaleX(-1); }
[dir="rtl"] .hd-root[data-k2="1"] .hd-next .ic.arr { transform: none; }

/* KPI row */
.hd-kview { overflow: hidden; padding-block: .7em; margin-block: -.7em; }
.hd-ktrack { display: flex; width: 200%; transition: transform .8s var(--ease); }
.hd-root[data-k2="1"] .hd-ktrack { transform: translateX(-50%); }
[dir="rtl"] .hd-root[data-k2="1"] .hd-ktrack { transform: translateX(50%); }
.hd-kset { width: 50%; flex: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1em; padding-inline-end: 1em; box-sizing: border-box; }
.hd-kpi { display: flex; flex-direction: column; gap: .5em; min-height: 8em; padding: 1em 1.1em; border-radius: 1.1em; background: var(--hd-card); border: 1px solid var(--hd-line); }
.hd-kpi:hover { transform: translateY(-.3em); border-color: color-mix(in srgb, var(--hd-accent) 55%, transparent); box-shadow: 0 .9em 2.2em -1em color-mix(in srgb, var(--hd-accent) 60%, transparent); }
.hd-kl { font-size: .92em; color: var(--hd-muted); line-height: 1.3; }
.hd-kv { display: flex; align-items: center; gap: .6em; }
.hd-num { font-family: var(--f-display); font-weight: 600; font-size: 2.35em; line-height: 1.05; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; display: inline-block; }
.hd-num.tick, .hd-pill.tick { animation: hdtick .7s var(--ease); }
@keyframes hdtick { 30% { transform: scale(1.22); color: var(--hd-accent); text-shadow: 0 0 .8em var(--hd-accent); } }
.hd-pill { display: inline-flex; align-items: center; gap: .15em; padding: .15em .55em; border-radius: 99px; font-size: .74em; font-weight: 600; direction: ltr; }
.hd-pill .ic { width: 1em; height: 1em; stroke-width: 2.6; }
.hd-pill.up { background: var(--hd-up); color: var(--hd-upc); }
.hd-pill.down { background: var(--hd-down); color: var(--hd-downc); }
.hd-bar { margin-block-start: auto; height: .5em; border-radius: 9em; background: var(--hd-line2); overflow: hidden; }
.hd-bar i { display: block; height: 100%; border-radius: inherit; background: var(--c-g); transform: scaleX(var(--p)); transform-origin: left; transition: transform 1.4s var(--ease) .3s; }
[dir="rtl"] .hd-bar i { transform-origin: right; }
.hd-badge, .hd-chipt { margin-block-start: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: .4em; padding: .3em .75em; border-radius: .6em; font-size: .78em; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hd-badge { background: var(--hd-down); color: var(--hd-downc); font-weight: 500; }
.hd-badge .ic { width: 1.15em; height: 1.15em; }
.hd-chipt { background: var(--hd-card2); color: var(--hd-muted); border: 1px solid var(--hd-line); }
.hd-sp { margin-block-start: auto; }

/* cards */
.hd-r2 { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); gap: 1.1em; align-items: stretch; }
.hd-r3 { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); gap: 1.1em; align-items: stretch; }
.hd-card { background: var(--hd-card); border: 1px solid var(--hd-line); border-radius: 1.1em; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.hd-ch { display: flex; align-items: center; gap: .8em; height: 3.7em; flex: none; padding-inline: 1.2em; border-bottom: 1px solid var(--hd-line); }
.hd-ch h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.22em; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-ctl { margin-inline-start: auto; display: inline-flex; gap: .5em; }
.hd-ctl i { width: 2.3em; height: 2.3em; border-radius: 50%; border: 1px solid var(--hd-line2); display: grid; place-items: center; background: var(--hd-card2); }
.hd-ctl .ic { width: 1.15em; height: 1.15em; }
.hd-crit { font-size: .76em; padding: .25em .75em; border-radius: 99px; background: var(--hd-down); color: var(--hd-downc); white-space: nowrap; }
.hd-crit b { font-weight: 600; display: inline-block; }
.hd-crit.tick b { animation: hdtick .6s; }
.hd-va { margin-inline-start: auto; color: var(--hd-accent); font-size: .92em; white-space: nowrap; }
.hd-va:hover { text-decoration: underline; }

/* chart */
.hd-chb { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.hd-total { position: absolute; z-index: 2; inset-inline-start: 1.3em; inset-block-start: 1em; display: flex; flex-direction: column; gap: .15em; font-size: .92em; color: var(--hd-muted); }
.hd-total b { font-size: 2.3em; color: var(--hd-text); }
.hd-tip { position: absolute; z-index: 2; inset-inline-end: 1.1em; inset-block-start: .9em; padding: .65em .9em .55em; border-radius: .8em; background: var(--hd-tipbg); border: 1px solid var(--hd-line2); font-size: .8em; min-width: 11.5em; box-shadow: 0 .8em 1.8em -.8em var(--hd-shadow); }
.hd-tt { margin-block-end: .5em; padding-block-end: .45em; border-bottom: 1px solid var(--hd-line); }
.hd-tt time { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.hd-tip ul { display: grid; gap: .3em; }
.hd-tip li { display: flex; align-items: center; gap: .55em; }
.hd-tip li i { width: .75em; height: .75em; border-radius: 50%; flex: none; }
.hd-tip li span { flex: 1; color: var(--hd-muted); }
.hd-tip li b { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 2ch; text-align: end; }
.hd-root .g { --k: var(--c-g); } .hd-root .b { --k: var(--c-b); } .hd-root .a { --k: var(--c-a); } .hd-root .r { --k: var(--c-r); } .hd-root .n { --k: var(--c-n); }
.hd-tip li i, .hd-legend li i { background: var(--k); }
.hd-plot { display: block; width: 100%; height: auto; margin-block-start: 2.5em; overflow: visible; }
.hd-grid line { stroke: var(--hd-line2); stroke-dasharray: 4 6; stroke-width: 1; }
.hd-line { fill: none; stroke: var(--k); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.9s cubic-bezier(.35, .1, .2, 1) calc(var(--d, 0) * 1s), stroke .5s; filter: drop-shadow(0 0 5px color-mix(in srgb, var(--k) 45%, transparent)); }
.hd-light .hd-line { filter: none; }
.hd-xl { stroke: var(--hd-line2); stroke-width: 1; transition: transform .55s var(--ease), opacity .4s; }
.hd-dot { fill: var(--hd-tipbg); stroke: var(--k); stroke-width: 2.8; transition: transform .55s var(--ease), opacity .4s, fill .5s, stroke .5s; }
.hd-axis { display: flex; justify-content: space-between; padding: .3em 1em .9em; font-size: .72em; color: var(--hd-muted); font-variant-numeric: tabular-nums; }
.hd-axis span { direction: ltr; unicode-bidi: isolate; white-space: nowrap; font-size: .92em; }

/* alerts */
.hd-alist { position: relative; flex: 1; --rh: 4.9em; min-height: calc(var(--rh) * var(--n, 4)); overflow: hidden; transition: min-height .5s var(--ease); }
.hd-al { position: absolute; inset-inline: 0; inset-block-start: 0; height: var(--rh); padding: .85em 1.1em .7em; border-bottom: 1px solid var(--hd-line); border-inline-start: .22em solid transparent; cursor: pointer;
  transform: translateY(calc(var(--i) * var(--rh))); transition: transform .8s var(--ease), translate .5s var(--ease), opacity .6s, background-color .3s, border-color .4s; display: flex; flex-direction: column; justify-content: center; gap: .3em; box-sizing: border-box; }
.hd-al.crit { border-inline-start-color: var(--c-r); }
.hd-al:hover { background: var(--hd-card2); }
.hd-al.fresh { opacity: 0; }
.hd-al.is-out { opacity: 0; }
.hd-al.read { opacity: .55; border-inline-start-color: transparent; }
.hd-al.pulse { animation: hdpulse .8s; }
@keyframes hdpulse { 0% { background: color-mix(in srgb, var(--hd-accent) 28%, transparent); } }
.hd-at { display: flex; justify-content: space-between; gap: .8em; align-items: baseline; }
.hd-at strong { font-weight: 500; font-size: .95em; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-at time { font-size: .72em; color: var(--hd-muted); white-space: nowrap; }
.hd-al p { font-size: .8em; color: var(--hd-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* donut */
.hd-db { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: .8em; padding: 1.1em 1.1em; }
.hd-donut { position: relative; width: 10.6em; flex: none; }
.hd-donut svg { display: block; width: 100%; height: auto; transform: rotate(-90deg); overflow: visible; }
.hd-trk { fill: none; stroke: var(--hd-line); stroke-width: 12; }
.hd-seg { fill: none; stroke: var(--k); stroke-width: 12; stroke-dasharray: var(--l) 100; stroke-dashoffset: var(--o); cursor: pointer; transition: stroke-dasharray 1.4s cubic-bezier(.3, .1, .2, 1), stroke-dashoffset 1.4s cubic-bezier(.3, .1, .2, 1), stroke-width .3s, opacity .3s, stroke .5s; }
.hd-donut[data-hi] .hd-seg { opacity: .3; }
.hd-donut[data-hi] .hd-seg.is-hi { opacity: 1; stroke-width: 15; }
.hd-dc { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; text-align: center; }
.hd-dc b { font-size: 2.3em; }
.hd-dc span { font-size: .78em; color: var(--hd-muted); max-width: 8em; line-height: 1.2; }
.hd-legend { flex: 1; min-width: 0; display: grid; gap: .15em; }
.hd-legend li { display: flex; align-items: center; gap: .5em; padding: .4em .4em; border-radius: .6em; font-size: .88em; cursor: default; }
.hd-legend li:hover, .hd-legend li.is-hi { background: var(--hd-card2); }
.hd-legend li i { width: .8em; height: .8em; border-radius: 50%; flex: none; }
.hd-legend li span { flex: 1; color: var(--hd-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-legend li b { font-weight: 600; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }

/* quick actions */
.hd-qgrid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: .8em; padding: 1.1em; }
.hd-root .hd-qb { display: flex; align-items: center; justify-content: center; gap: .6em; padding: .8em .6em; min-height: 3.9em; border-radius: .9em; border: 1px solid var(--hd-line); background: var(--hd-card2); font-size: .84em; line-height: 1.25; color: var(--hd-text); text-align: center; }
.hd-qb .ic { width: 1.3em; height: 1.3em; color: var(--hd-accent); flex: none; }
.hd-qb:hover { border-color: color-mix(in srgb, var(--hd-accent) 60%, transparent); transform: translateY(-.15em); box-shadow: 0 .6em 1.4em -.8em var(--hd-accent); }
.hd-qb.press { animation: hdpress .45s var(--ease); }
@keyframes hdpress { 40% { transform: scale(.94); background: color-mix(in srgb, var(--hd-accent) 24%, var(--hd-card2)); } }
.hd-toast { position: absolute; inset-inline: 0; margin-inline: auto; inset-block-end: 1.3em; width: max-content; max-width: 90%; padding: .75em 1.4em; border-radius: 99px; background: #00605e; color: #fff; font-size: .95em; box-shadow: 0 1em 2em -.6em rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(1.2em); pointer-events: none; z-index: 6; }
.hd-toast.show { opacity: 1; transform: none; }

/* entrance (JS adds .hd-pre then removes it). Without JS the final state simply shows. */
.hd-pre .hd-line { stroke-dashoffset: 1; }
.hd-pre .hd-cross, .hd-pre .hd-tip, .hd-pre .hd-total { opacity: 0; }
.hd-pre .hd-bar i { transform: scaleX(0); }
.hd-pre .hd-seg { stroke-dasharray: 0 100; }
.hd-pre .hd-al { opacity: 0; transform: translateY(calc(var(--i) * var(--rh) + 1.4em)); }
.hd-pre .hd-kpi, .hd-pre .hd-card { opacity: 0; transform: translateY(1.2em); }
.hd-go .hd-kpi, .hd-go .hd-card { transition-delay: calc(var(--n, 0) * .08s); }
.hd-go .hd-al { transition-delay: calc(var(--i) * .13s + .5s); }
.hd-go .hd-cross, .hd-go .hd-tip, .hd-go .hd-total { transition-delay: 1.2s; }
.hd-swap { opacity: 0; transform: translateY(.35em); }

/* ---------- compact (phones / narrow containers) ---------- */
@container hdwin (max-width: 600px) {
  .hd-root { font-size: 2.5cqw; }
  .hd-rail, .hd-side, .hd-r3, .hd-lang, .hd-fs { display: none; }
  .hd-top { height: 4.4em; padding-inline: 1.1em; gap: .5em; }
  .hd-search { flex: 1; margin-inline: .8em; }
  .hd-logo img { height: 2.1em; }
  .hd-main { padding: 1.1em 1.1em 1.4em; gap: .9em; }
  .hd-kset { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8em; padding-inline-end: .8em; }
  .hd-kpi { min-height: 7.4em; padding: .8em .9em; }
  .hd-r2 { grid-template-columns: 1fr; }
  .hd-num { font-size: 2.1em; }
  .hd-tip { font-size: .72em; min-width: 10em; }
  .hd-title { font-size: 1.5em; }
  .hd-plot { margin-block-start: 3.4em; }
}
@media (prefers-reduced-motion: reduce) {
  .hd-sheen, .hd-chip, .hd-spark path, .hd-ring .val { animation: none !important; }
  .hd-root *, .hd-root *::before { transition-duration: .001ms !important; }
}

@media (min-width: 960px) and (max-width: 1239px) { .page-home .grc { font-size: clamp(5rem, 10.5vw, 8.5rem); } }

/* ==========================================================================
   Live product mocks  (.dm-*)  : story mocks (policy / risk / audit) + CTA laptop.
   Sizing: root font-size is derived from the mock width (container query units),
   so everything is authored in em against the original 682px screenshots (1em = 10px there).
   ========================================================================== */
.dm-logo { display: none; }
.dm { container: dm / inline-size; position: relative; width: 100%; aspect-ratio: 682 / 520; }
.shot .dm { height: 100%; aspect-ratio: auto; }
.dm-win { position: absolute; inset: 0; border-radius: 3.6cqw; overflow: hidden; isolation: isolate; border: 1px solid var(--line-2); box-shadow: 0 3cqw 6cqw -3cqw rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .04); }
.dm-root { position: absolute; inset: 0; font-size: 1.4663cqw; line-height: 1.3; font-family: var(--f-body); background: var(--hd-bg); color: var(--hd-text); overflow: hidden; text-align: start; }
.dm-dark, .dm-light { --ease: cubic-bezier(.2, .7, .1, 1); }
.dm-root *, .dm-root *::before { transition: background-color .5s, border-color .5s, color .5s, fill .5s, stroke .5s, box-shadow .4s, opacity .45s, transform .5s var(--ease); }
:where(.dm-root) :is(h3, h4, h5, p, ul, ol) { margin: 0; padding: 0; }
.dm-root h3, .dm-root h4, .dm-root h5 { font-family: var(--f-display); font-weight: 500; }
:where(.dm-root) button { background: none; border: 0; color: inherit; font: inherit; padding: 0; cursor: pointer; text-align: inherit; }
.dm-root .ic { width: 1.5em; height: 1.5em; }
.dm-light .l-d, .dm-dark .l-l { display: none; }
.cta-media .dm-root img { width: auto; max-width: none; margin: 0; filter: none; height: 2.3em; }
.dm-ui { position: absolute; top: 0; bottom: 0; inset-inline: -6em -9em; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fade, 9em), #000 calc(100% - var(--fade, 9em)), transparent 100%), linear-gradient(to bottom, #000 0, #000 var(--fadeb, 78%), transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent 0, #000 var(--fade, 9em), #000 calc(100% - var(--fade, 9em)), transparent 100%), linear-gradient(to bottom, #000 0, #000 var(--fadeb, 78%), transparent 100%); mask-composite: intersect; }
.dm-cap { position: absolute; z-index: 8; inset-block-end: 1.1cqw; inset-inline-end: 2.2cqw; display: flex; align-items: center; gap: .6em; font-size: max(9px, 1.5cqw); color: var(--muted); background: rgba(3, 19, 18, .55); border: 1px solid var(--line); border-radius: 99px; padding: .25em .8em; margin: 0; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none; }
.dm-cap i { width: .55em; height: .55em; border-radius: 50%; background: var(--accent); animation: hdping 2.2s infinite; }
.dm-toast { position: absolute; inset-inline: 0; margin-inline: auto; inset-block-end: 2em; width: max-content; max-width: 90%; padding: .7em 1.4em; border-radius: 99px; background: #00605e; color: #fff; font-size: 1.2em; opacity: 0; transform: translateY(1.2em); pointer-events: none; z-index: 9; }
.dm-toast.show { opacity: 1; transform: none; }

/* shared bits */
.dm-top { display: flex; align-items: center; gap: 1em; height: 6.2em; padding-inline: 7.4em 10.4em; }
.dm-search { display: flex; align-items: center; gap: .7em; width: 24em; margin-inline-end: auto; padding: 0 1.1em; height: 3.4em; border-radius: .9em; background: var(--hd-card2); border: 1px solid var(--hd-line); color: var(--hd-muted); font-size: 1.15em; }
.dm-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--hd-text); font: inherit; }
.dm-search input::placeholder { color: var(--hd-muted); opacity: 1; }
.dm-search .ic { width: 1.25em; height: 1.25em; flex: none; }
.dm-lang { font-size: 1.15em; display: inline-flex; align-items: center; gap: .3em; }
.dm-lang .ic { width: 1.1em; height: 1.1em; }
.dm-ib { position: relative; width: 3.2em; height: 3.2em; border-radius: 50%; display: grid; place-items: center; color: var(--hd-text); }
.dm-ib:hover { background: var(--hd-card2); }
.dm-ib .ic { width: 1.65em; height: 1.65em; }
.dm-theme .s { display: none; }
.dm-light .dm-theme .m { display: none; }
.dm-light .dm-theme .s { display: block; }
.dm-dotr { position: absolute; inset-block-start: .5em; inset-inline-end: .7em; width: .8em; height: .8em; border-radius: 50%; background: #ef4444; transform: scale(0); }
.dm-bell.has-dot .dm-dotr { transform: scale(1); }
.dm-bell.shake .ic { animation: hdshake .5s; transform-origin: 50% 10%; }
.dm-av svg { width: 3.4em; height: 3.4em; display: block; }
.dm-av circle:first-child { fill: #b4d4d4; }
.dm-av .h { fill: #006666; }
.dm-round { width: 3em; height: 3em; border-radius: 50%; border: 1px solid var(--hd-line2); background: var(--hd-card2); display: inline-grid; place-items: center; color: var(--hd-text); }
.dm-round .ic { width: 1.4em; height: 1.4em; }
.dm-badge { font-size: 1.15em; padding: .2em .8em; border-radius: 99px; background: var(--hd-card2); color: var(--hd-muted); white-space: nowrap; }
.dm-badge.is-ok, [data-tone="ok"] { background: rgba(34, 197, 94, .18); color: #4ade80; }
.dm-light .dm-badge.is-ok { color: #15803d; background: #dcf3e3; }
.dm-badge.is-warn, [data-tone="warn"] { background: rgba(245, 180, 0, .2); color: #fbbf24; }
.dm-light .dm-badge.is-warn { color: #a16207; background: #fdf0c9; }
[data-tone="info"] { background: rgba(96, 165, 250, .2); color: #93c5fd; }
[data-tone="muted"] { background: rgba(148, 163, 184, .2); color: #cbd5e1; }
.dm-fl { display: block; font-size: 1.2em; color: var(--hd-muted); margin-bottom: .5em; }
.dm-fv { display: flex; align-items: center; justify-content: space-between; gap: 1em; height: 3.6em; padding-inline: 1.4em; border-radius: 1em; background: var(--hd-card2); border: 1px solid var(--hd-line); font-size: 1.3em; }
.dm-fv .ic { width: 1.15em; height: 1.15em; color: var(--hd-muted); }
.dm-tabs { position: relative; display: flex; gap: 2.8em; border-bottom: 1px solid var(--hd-line); }
.dm-tab { padding: 1em 0; font-size: 1.1em; color: var(--hd-muted); white-space: nowrap; }
.dm-tab:hover { color: var(--hd-text); }
.dm-tab.is-on { color: var(--hd-accent); }
.dm-ul { position: absolute; bottom: -1px; left: 0; height: .22em; width: var(--uw, 6em); border-radius: 2px; background: var(--hd-accent); transform: translateX(var(--ux, 0px)); transition: transform .5s var(--ease), width .5s var(--ease); }
.dm-line { fill: none; stroke: var(--hd-accent); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s cubic-bezier(.35, .1, .2, 1); }
.dm-pre .dm-line { stroke-dashoffset: 1; }

/* ---------- A: policy ---------- */
.dm-pol .dm-ui { inset-inline: -4em -7em; --fade: 4.5em; }
.dm-pol .dm-top { padding-inline: 5.4em 8.4em; }
.dm-prow { display: flex; align-items: center; gap: 1em; padding-inline: 5.4em 8.4em; margin-top: 2em; }
.dm .dm-ptitle { font-size: 2em; line-height: 1.25; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; margin: 0; padding: 0; }
.dm-prow .dm-badge { flex: none; font-size: 1.05em; }
.dm-tools { margin-inline-start: auto; flex: none; display: flex; align-items: center; gap: .55em; position: relative; }
.dm-tools .dm-round { width: 2.7em; height: 2.7em; }
.dm-tools .dm-round .ic { width: 1.25em; height: 1.25em; }
.dm-drop { height: 2.7em; padding-inline: .9em; border-radius: .9em; border: 1px solid var(--hd-line2); background: var(--hd-card); display: inline-flex; align-items: center; gap: .35em; font-size: 1.05em; white-space: nowrap; }
.dm-drop .ic { width: 1.1em; height: 1.1em; }
.dm-drop:hover, .dm-round:hover { border-color: var(--hd-accent); }
.dm-aibtn[aria-expanded="true"] { border-color: var(--hd-accent); color: var(--hd-accent); }
.dm-stepper { display: flex; align-items: center; margin: 3.6em 0 0; margin-inline: 5.4em 8.4em; padding: 1.5em 1.8em; border-radius: 1.6em; border: 1px solid var(--hd-line); background: var(--hd-card); list-style: none; }
.dm-st { flex: none; }
.dm-stb { display: flex; align-items: center; gap: .55em; font-size: 1.05em; white-space: nowrap; color: var(--hd-muted); padding: .3em .2em; border-radius: .6em; }
.dm-stb:hover { color: var(--hd-text); }
.dm-stc { width: 2.1em; height: 2.1em; border-radius: 50%; border: .15em solid var(--hd-line2); display: grid; place-items: center; background: transparent; color: transparent; }
.dm-stc .ic { width: 1.2em; height: 1.2em; stroke-width: 2.6; }
.is-done > .dm-stb .dm-stc { background: var(--hd-accent); border-color: var(--hd-accent); color: #04211f; }
.is-done > .dm-stb { color: var(--hd-text); }
.dm-st.is-cur .dm-stc { border-color: var(--hd-accent); box-shadow: 0 0 0 .4em color-mix(in srgb, var(--hd-accent) 25%, transparent); animation: dmpulse 1.4s infinite; }
.dm-st.pop .dm-stc { animation: dmpop .5s var(--ease); }
@keyframes dmpop { 40% { transform: scale(1.4); } }
@keyframes dmpulse { 50% { box-shadow: 0 0 0 .8em color-mix(in srgb, var(--hd-accent) 0%, transparent); } }
.dm-ln { flex: 1; min-width: .6em; height: .2em; margin-inline: .6em; background: var(--hd-line2); position: relative; border-radius: 2px; overflow: hidden; }
.dm-ln b { position: absolute; inset: 0; background: var(--hd-accent); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
[dir="rtl"] .dm-ln b { transform-origin: right; }
.dm-ln.is-done b { transform: scaleX(1); }
.dm-pol .dm-tabs { margin: 2.8em 0 0; margin-inline: 5.4em 8.4em; gap: 2em; overflow: hidden; }
.dm-panels { margin: 2.6em 0 0; margin-inline: 5.4em 8.4em; position: relative; }
.dm-panel { display: none; grid-template-columns: 1fr 1fr; gap: 2em 2.4em; }
.dm-panel.is-on { display: grid; animation: dmfade .5s var(--ease); }
@keyframes dmfade { from { opacity: 0; transform: translateY(.8em); } }
.dm-fld .dm-fv { transition: border-color .3s, background .3s; }
.dm-fld:hover .dm-fv { border-color: color-mix(in srgb, var(--hd-accent) 50%, transparent); }
.dm-pill { position: absolute; inset-inline: 0; margin-inline: auto; width: max-content; bottom: 5.6em; display: flex; align-items: center; gap: 2.2em; padding: 1.5em 2.2em; border-radius: 2.2em; background: rgba(28, 31, 30, .94); color: #fff; font-size: 1.7em; box-shadow: 0 2em 3em -1.4em rgba(0, 0, 0, .7); z-index: 4; border: 1px solid rgba(255, 255, 255, .08); }
.dm-pill b { font-weight: 500; padding: .35em 1em; border-radius: 99px; font-size: .95em; }
.dm-pill.swap b { animation: dmpop .5s var(--ease); }
.dm-ai { position: absolute; z-index: 6; top: 15em; inset-inline-end: 12em; width: 27em; padding: 1.4em 1.6em; border-radius: 1.4em; background: var(--hd-tipbg); border: 1px solid var(--hd-line2); box-shadow: 0 2em 3em -1.4em var(--hd-shadow); font-size: 1.15em; display: grid; gap: .8em; }
.dm-ai[hidden] { display: none; }
.dm-ai b { display: flex; align-items: center; gap: .5em; font-weight: 500; color: var(--hd-accent); }
.dm-shim { display: grid; gap: .5em; }
.dm-shim i { display: block; height: .8em; border-radius: .5em; background: linear-gradient(90deg, var(--hd-line) 25%, color-mix(in srgb, var(--hd-accent) 55%, transparent) 50%, var(--hd-line) 75%) 100% 0 / 300% 100%; animation: dmshim 1.1s linear infinite; }
.dm-shim i + i { width: 70%; }
@keyframes dmshim { to { background-position: 0 0; } }
.dm-ai em { font-style: normal; min-height: 1.3em; }
.dm-ai.done .dm-shim { display: none; }

/* ---------- B: risk ---------- */
.dm-top-s { height: 4.4em; padding-inline: 31.5em 12.4em; margin-top: .4em; justify-content: space-between; }
.dm-top-s .dm-fake { width: 20em; margin: 0; }
.dm-ibs { position: relative; color: var(--hd-muted); }
.dm-crumb { display: flex; align-items: baseline; gap: .8em; padding-inline-start: 8.2em; margin-top: 11.2em; font-size: 1.2em; color: var(--hd-muted); }
.dm-crumb strong { font-family: var(--f-display); font-weight: 500; font-size: 1.55em; color: var(--hd-text); }
.dm-crumb .dm-badge { font-size: .72em; align-self: center; }
.dm-rsk .dm-ui { --fadeb: 90%; }
.dm-card2 { margin: 1.2em 0 0; margin-inline-start: 8em; padding: 0 3.8em 3em; border-radius: 2em 0 0 2em; border: 1px solid var(--hd-line); border-inline-end: 0; background: var(--hd-card); height: 40em; }
.dm-rsk .dm-tabs { margin-inline: -3.8em 0; padding-inline: 3.8em; }
.dm .dm-oh { font-size: 1.9em; margin-top: 1em; margin-bottom: .6em; font-weight: 400; }
.dm-oh span { color: var(--hd-muted); }
.dm-ownerf { width: 33em; height: 3.2em; transition: box-shadow .4s, background .4s, border-color .4s; }
.dm-ownerf.flash { border-color: var(--hd-accent); box-shadow: 0 0 0 .4em color-mix(in srgb, var(--hd-accent) 28%, transparent); background: color-mix(in srgb, var(--hd-accent) 14%, var(--hd-card2)); }
.dm-mt { margin-top: 1.2em; }
.dm-table { width: 100%; border-collapse: collapse; margin-top: .2em; font-size: 1.1em; }
.dm-table th { text-align: start; font-weight: 400; color: var(--hd-muted); background: var(--hd-card2); padding: .7em .9em; }
.dm-table th:first-child { border-radius: 1em 0 0 1em; }
.dm-table td { padding: .85em .9em; border-bottom: 1px solid var(--hd-line); }
.dm-table td:nth-child(2), .dm-table th:nth-child(2) { width: 5em; }
.dm-table td:nth-child(3), .dm-table th:nth-child(3) { width: 24em; }
.dm-row { cursor: pointer; outline-offset: -2px; }
.dm-row:hover td { background: var(--hd-card2); }
.dm-row.is-sel td { background: color-mix(in srgb, var(--hd-accent) 14%, transparent); }
.dm-cb { width: 1.5em; height: 1.5em; border-radius: .35em; border: 1.5px solid var(--hd-line2); background: var(--hd-card2); display: inline-grid; place-items: center; vertical-align: middle; }
.dm-cb[aria-checked="true"] { background: var(--hd-accent); border-color: var(--hd-accent); }
.dm-cb[aria-checked="true"]::after { content: ""; width: .5em; height: .85em; border: solid #04211f; border-width: 0 .18em .18em 0; transform: rotate(45deg) translate(-.05em, -.08em); }
.dm-pre .dm-row { opacity: 0; transform: translateY(1em); }
.dm-go .dm-row { transition-delay: calc(var(--n, 0) * .12s + .6s); }
.dm-chartc { position: absolute; z-index: 4; top: 1em; inset-inline-end: 4.6em; width: 32em; height: 15.4em; padding: 1.1em 1.4em; border-radius: 2em; background: var(--hd-tipbg); border: 1px solid var(--hd-line2); box-shadow: 0 2.4em 4em -1.6em var(--hd-shadow); translate: var(--px, 0px) var(--py, 0px); }
.dm-chartc header { display: flex; align-items: center; justify-content: space-between; gap: .6em; }
.dm-chartc h4 { font-size: 1.2em; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-chartc header span { display: flex; gap: .5em; }
.dm-chartc .dm-round { width: 2.2em; height: 2.2em; }
.dm-chartc .dm-round .ic { width: 1.1em; height: 1.1em; }
.dm-cbody { position: relative; height: 10.6em; margin-top: .5em; }
.dm-yl { position: absolute; inset-inline-start: 0; top: 0; height: 7.6em; width: 2em; display: flex; flex-direction: column; justify-content: space-between; font-size: .95em; color: var(--hd-muted); }
.dm-plot { position: absolute; top: 0; inset-inline-start: 2.8em; inset-inline-end: .4em; width: calc(100% - 3.2em); height: 7.6em; overflow: visible; }
.dm-grid line { stroke: var(--hd-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dm-plot .dm-line { vector-effect: non-scaling-stroke; }
.dm-xh { opacity: 0; transition: opacity .25s; }
.dm-xh.on { opacity: 1; }
.dm-xh line { stroke: var(--hd-line2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dm-xh circle { fill: var(--hd-tipbg); stroke: var(--hd-accent); stroke-width: 2.2; }
.dm-tipc { position: absolute; z-index: 2; top: -.6em; padding: .35em .8em; border-radius: .7em; font-size: 1em; white-space: nowrap; background: var(--hd-accent); color: #04211f; opacity: 0; transform: translate(-50%, -100%); pointer-events: none; transition: opacity .2s; }
.dm-tipc.on { opacity: 1; }
.dm-xl { position: absolute; inset-inline: 2.8em .4em; bottom: 0; display: flex; justify-content: space-between; font-size: .9em; color: var(--hd-muted); padding-inline: 1.2em; }
.dm-xl span { white-space: nowrap; }

/* ---------- C: audit ---------- */
.dm-acard { position: absolute; inset-inline: 6.4em; top: 8.4em; bottom: -8em; padding: 5.6em 3em 0; border-radius: 3em 3em 0 0; background: var(--hd-card); border: 1px solid var(--hd-line2); border-bottom: 0; box-shadow: 0 2em 5em -2em var(--hd-shadow); -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 62%, transparent 96%); mask-image: linear-gradient(to bottom, #000 0, #000 62%, transparent 96%); }
.dm-light .dm-acard { background: #fff; }
.dm-atitle { font-size: 2.6em; font-weight: 400; line-height: 1.2; }
.dm-atitle span { color: var(--hd-muted); }
.dm-atitle b { font-weight: 500; }
.dm-prog { display: flex; justify-content: space-between; align-items: baseline; margin-top: .9em; font-size: 2em; color: var(--hd-muted); }
.dm-pct { font-family: var(--f-display); font-weight: 500; font-size: 1.3em; color: var(--hd-text); font-variant-numeric: tabular-nums; direction: ltr; }
.dm-bar { height: 1.1em; border-radius: 9em; background: var(--hd-line2); overflow: hidden; margin-top: .9em; }
.dm-bar i { display: block; height: 100%; border-radius: inherit; background: var(--c-g); transform: scaleX(var(--p)); transform-origin: left; transition: transform .9s var(--ease); }
[dir="rtl"] .dm-bar i { transform-origin: right; }
.dm-ready { position: absolute; inset-inline-end: 3em; top: 12.4em; display: inline-flex; align-items: center; gap: .5em; font-size: 1.5em; padding: .25em .9em; border-radius: 99px; background: rgba(34, 197, 94, .2); color: #4ade80; z-index: 3; animation: dmfade .5s var(--ease); }
.dm-light .dm-ready { color: #15803d; background: #dcf3e3; }
.dm-ready[hidden] { display: none; }
.dm-list { margin-top: 3.4em; display: grid; gap: 1.5em; padding-inline-start: 1.4em; }
.dm-ck { display: flex; align-items: center; gap: 1.2em; font-size: 2.4em; line-height: 1.2; color: var(--hd-muted); padding: .1em .3em; border-radius: .4em; }
.dm-ck:hover { background: var(--hd-card2); }
.dm-ck i { width: .55em; height: .55em; flex: none; border-radius: .12em; background: currentColor; display: grid; place-items: center; transition: all .4s var(--ease); }
.dm-ck i .ic { width: .0em; height: .0em; opacity: 0; }
.dm-ck.is-on { color: var(--hd-text); }
.dm-ck.is-on i { width: .85em; height: .85em; border-radius: 50%; background: var(--c-g); color: #fff; }
.dm-ck.is-on i .ic { width: .6em; height: .6em; opacity: 1; stroke-width: 3; }
.dm-ck.just i { animation: dmpop .55s var(--ease); }
.dm-file { position: absolute; z-index: 5; display: flex; align-items: center; gap: .7em; padding: .75em 1.4em; border-radius: 99px; background: rgba(28, 31, 30, .96); color: #fff; font-size: 1.95em; white-space: nowrap; box-shadow: 0 1.6em 2.6em -1.2em rgba(0, 0, 0, .8); cursor: grab; border: 1px solid rgba(255, 255, 255, .08);
  rotate: var(--r, 0deg); translate: calc(var(--dx, 0px) + var(--fx, 0px)) calc(var(--dy, 0px) + var(--fy, 0px)); animation: dmfloat var(--fd, 6s) ease-in-out infinite; transition: opacity .6s, translate .9s var(--ease); }
.dm-file .ic { width: 1.2em; height: 1.2em; }
.dm-file.is-drag { cursor: grabbing; transition: none; animation-play-state: paused; }
.dm-file.f1 { --r: -14deg; inset-inline-start: 1.4em; top: 2.6em; }
[dir="rtl"] .dm-file.f1 { --r: 14deg; }
[dir="rtl"] .dm-file.f2 { --r: -10deg; }
.dm-file.f2 { --r: 10deg; --fd: 7.4s; inset-inline-end: .5em; top: 20.2em; }
@keyframes dmfloat { 50% { transform: translateY(-.7em); } }
.dm-file.away { opacity: 0; --fx: 8em; --fy: -5em; }
.dm-file.f2.away { --fx: -9em; --fy: 6em; }
.dm-file.clip .ic { animation: dmpop .6s var(--ease); color: #4ade80; }
[dir="rtl"] .dm-file.f1.away { --fx: -8em; }
[dir="rtl"] .dm-file.f2.away { --fx: 9em; }
.dm-pre .dm-bar i { transform: scaleX(0); }
.dm-pre .dm-file { opacity: 0; }

/* ---------- laptop ---------- */
.dm-lap { aspect-ratio: 858 / 620; }
.lap { position: absolute; inset: 0; font-size: 1.1655cqw; display: flex; flex-direction: column; justify-content: center; perspective: 1800px; transform-style: preserve-3d; transform: rotateY(var(--ty, 0deg)) rotateX(var(--tx, 0deg)); transition: transform .5s var(--ease); }
.lap-lid { width: 89%; margin-inline: auto; aspect-ratio: 16 / 10.2; background: #0b0d0d; border-radius: 1.9em 1.9em .5em .5em; padding: .9em .9em 1.1em; position: relative; transform-origin: 50% 100%; transition: transform 1.7s cubic-bezier(.3, .1, .2, 1), opacity 1s; box-shadow: 0 0 0 .15em #3a3f3f, 0 2.6em 4em -1.6em rgba(0, 0, 0, .55); }
.lap-closed .lap-lid { transform: rotateX(-86deg); opacity: .5; }
.lap-bezel { position: relative; width: 100%; height: 100%; }
.lap-notch { position: absolute; z-index: 6; top: -.9em; inset-inline: 0; margin-inline: auto; width: 10em; height: 1.5em; background: #0b0d0d; border-radius: 0 0 .9em .9em; }
.lap-screen { container: lapscr / inline-size; position: relative; width: 100%; height: 100%; border-radius: .9em; overflow: hidden; }
.lap-base { width: 100%; height: 2.3em; margin-top: -.15em; background: linear-gradient(#d7dadc, #a3a7aa 70%, #8e9295); border-radius: .3em .3em 2.6em 2.6em / .3em .3em 1.5em 1.5em; position: relative; box-shadow: 0 1.8em 2.4em -1.2em rgba(0, 0, 0, .5); }
.lap-base i { position: absolute; top: 0; inset-inline: 0; margin-inline: auto; width: 13em; height: .9em; background: linear-gradient(#a9adb0, #c5c8ca); border-radius: 0 0 1em 1em; }

@media (min-width: 900px) { .cta-panel { grid-template-columns: .85fr 1.15fr; } .cta-media { margin-inline-end: -2%; } }
@media (prefers-reduced-motion: reduce) { .dm-file, .dm-cap i, .dm-st.is-cur .dm-stc { animation: none !important; } }

/* entrance states for the story mocks / laptop (JS adds .dm-pre, then .dm-go while releasing it) */
.dm-pre .dm-prow, .dm-pre .dm-stepper, .dm-pre .dm-tabs, .dm-pre .dm-panels, .dm-pre .dm-crumb, .dm-pre .dm-card2, .dm-pre .dm-chartc, .dm-pre .dm-kp, .dm-pre .dm-lc { opacity: 0; transform: translateY(1.4em); }
.dm-pre .dm-pill, .dm-pre .dm-acard { opacity: 0; transform: translateY(2em); }
.dm-go .dm-stepper { transition-delay: .15s; } .dm-go .dm-panels { transition-delay: .3s; } .dm-go .dm-pill, .dm-go .dm-chartc { transition-delay: .45s; }
.dm-go .dm-kp, .dm-go .dm-lc { transition-delay: calc(var(--n, 0) * .09s + .4s); }
.dm-lap .dm-gv, .dm-lap .dm-kp { transition-delay: 0s; }

/* ---- fixes: site rules (.s-card p / h3) must not leak into the mocks; captions scale with the mock ---- */
.dm .dm-cap { font-size: max(9px, 1.5cqw); margin: 0; padding: .25em .8em; color: var(--muted); line-height: 1.3; }
.dm .dm-ready { font-size: 1.5em; margin: 0; padding: .25em .9em; line-height: 1.3; }
.dm .dm-gtip { font-size: 1em; padding: 0; margin: 0; }
.dm .dm-atitle { margin: 0; font-size: 2.6em; padding: 0; }


/* ==========================================================================
   hero-dash: apps, menus, options, multi-instance (hero / About / CTA laptop)
   ========================================================================== */
.hd-pair .hd-root[hidden] { display: none; }
.hd-lang { cursor: pointer; padding: .35em .6em; border-radius: .8em; }
.hd-lang:hover { background: var(--hd-card2); }
.hd-av { display: inline-grid; border-radius: 50%; cursor: pointer; transition: transform .3s var(--ease); }
.hd-av:hover { transform: scale(1.08); }
.hd-appsbtn { display: none; }
.hd-appsbtn[aria-pressed="true"] { background: var(--hd-act); color: var(--hd-actc); }
.hd-ctl .hd-cb { width: 2.3em; height: 2.3em; border-radius: 50%; border: 1px solid var(--hd-line2); display: grid; place-items: center; background: var(--hd-card2); color: var(--hd-text); cursor: pointer; }
.hd-ctl .hd-cb:hover, .hd-ctl .hd-cb[aria-expanded="true"] { border-color: var(--hd-accent); color: var(--hd-accent); }
.hd-chartc, .hd-alerts { position: relative; }
.hd-pop { position: absolute; z-index: 8; min-width: 11.5em; padding: .4em; border-radius: 1em; background: var(--hd-tipbg); border: 1px solid var(--hd-line2); box-shadow: 0 1.4em 2.4em -1em var(--hd-shadow); display: grid; gap: .1em; font-size: .95em; animation: hdpop .25s var(--ease); }
.hd-pop[hidden] { display: none; }
@keyframes hdpop { from { opacity: 0; transform: translateY(-.5em) scale(.97); } }
.hd-pop button { display: block; width: 100%; padding: .65em .9em; border-radius: .7em; text-align: start; color: var(--hd-text); font-size: 1em; }
.hd-pop button:hover { background: var(--hd-card2); }
.hd-pop [aria-checked="true"] { color: var(--hd-accent); font-weight: 600; }
.hd-pop [aria-checked="true"]::after { content: "✓"; margin-inline-start: .6em; }
.hd-pop-av { top: 5em; inset-inline-end: 1.2em; }
.hd-pop-dots, .hd-pop-filt { top: 3.9em; inset-inline-end: 1em; }
.hd-kpi { cursor: pointer; }
.hd-kpi.is-sel { border-color: var(--hd-accent); box-shadow: 0 0 0 .2em color-mix(in srgb, var(--hd-accent) 32%, transparent); }
.hd-kpi:focus-visible { outline: 2px solid var(--hd-accent); outline-offset: 2px; }
.hd-apps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1em; }
.hd-app { display: grid; justify-items: center; align-content: center; gap: .6em; padding: 1.2em .6em; min-height: 7.6em; border-radius: 1.1em; background: var(--hd-card); border: 1px solid var(--hd-line); color: var(--hd-text); font-size: .95em; text-align: center; line-height: 1.3; transition: transform .4s var(--ease), border-color .3s, box-shadow .4s, background-color .5s; }
.hd-app[hidden] { display: none; }
.hd-app .ic { width: 2.3em; height: 2.3em; color: var(--hd-accent); padding: .5em; box-sizing: content-box; border-radius: .9em; background: color-mix(in srgb, var(--hd-accent) 12%, transparent); }
.hd-app:hover { transform: translateY(-.35em); border-color: color-mix(in srgb, var(--hd-accent) 55%, transparent); box-shadow: 0 1em 2em -1em color-mix(in srgb, var(--hd-accent) 60%, transparent); }
.hd-app.pulse { animation: hdpress .5s var(--ease); }
.hd-al.is-hid { opacity: 0; visibility: hidden; pointer-events: none; }
.hd-al.is-res { opacity: 0; translate: 45% 0; }
[dir="rtl"] .hd-al.is-res { translate: -45% 0; }
.hd-rs { position: absolute; inset-inline-end: .9em; bottom: .6em; width: 1.9em; height: 1.9em; border-radius: 50%; border: 1px solid var(--hd-line2); background: var(--hd-card2); color: var(--hd-text); display: grid; place-items: center; opacity: 0; transform: scale(.8); cursor: pointer; }
.hd-rs .ic { width: 1.1em; height: 1.1em; stroke-width: 2.6; }
.hd-al:hover .hd-rs, .hd-rs:focus-visible { opacity: 1; transform: none; }
.hd-rs:hover { background: var(--c-g); color: #04211f; border-color: var(--c-g); }
@media (hover: none) { .hd-rs { opacity: .85; transform: none; } }

/* laptop: the screen is a scaled instance of the component (700px design width) */
.dm-lap .lap-screen { background: #0b0d0d; }
.hd-lapscr { position: absolute; top: 0; left: 0; width: 700px; height: calc(100% / var(--s, .7)); transform: scale(var(--s, .7)); transform-origin: 0 0; border-radius: 0; }
.hd-lapscr .hd-root { height: 100%; overflow: hidden; }
.hd-lapscr .hd-body { flex: 1; min-height: 0; overflow: hidden; -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
.hd-lapscr .hd-r3 { display: none; }
.hd-lapscr .hd-sheen { display: none; }

@container hdwin (max-width: 600px) {
  .hd-appsbtn { display: inline-grid; }
  .hd-apps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8em; }
  .hd-app { min-height: 6.4em; padding: .9em .4em; font-size: .85em; }
  .hd-pop-av { top: 4.6em; }
  .hd-alist { --rh: 5.6em; }
}
@media (max-width: 640px) {
  .cta-panel { padding: 28px 12px 18px; }
  .cta-copy { padding-inline: 8px; }
  .dm-lap { aspect-ratio: auto; }
  .dm-lap .lap { position: relative; inset: auto; display: block; }
  .lap-lid { width: 100%; aspect-ratio: 330 / 600; border-radius: 2em; padding: .8em; }
  .lap-notch, .lap-base { display: none; }
  .hd-lapscr { width: 100%; height: 100%; transform: none; }
  .hd-lapscr .hd-body { -webkit-mask-image: linear-gradient(#000 90%, transparent); mask-image: linear-gradient(#000 90%, transparent); }
  .dm-lap .dm-cap { position: static; margin: 1.2em auto 0; width: max-content; font-size: 11px; }
}
