/* ============================================================================
   site.css — Debox Performance, redesign v4 "light & confident" (SITE-WIDE)
   ----------------------------------------------------------------------------
   Loaded after style.css + design-system.css on every public page, scoped
   under `body.hx`. Homepage-only rules use `.hx-home`. The "V3 -> V4 bridge"
   section near the bottom restyles the shared design-system `.ds-*` components
   so a page adopts the look by just adding the `hx` body class + this sheet.
   (File was `home.css` when v4 was homepage-only; renamed 2026-09-02.)

   Direction (2026-09-02, owner brief): simpler, bigger, human. Light-theme
   FIRST - the old dark "instrument" hero read dark even on light theme, which
   the owner disliked. References: navarro.ro (raised cards, soft depth, one
   accent used boldly, a huge cropped background wordmark) + the AITB
   anti-AI-slop rules (no eyebrows, no numbered sections, no gradient text, no
   glassmorphism, one accent per block, real depth via shadow).

   Typeface: Geist, self-hosted (assets/fonts). ONE family, hierarchy by
   weight. Brand yellow #FFCC00 is the single accent; a deeper gold is used
   where yellow text would not read on paper.
   ========================================================================== */

/* ---- Geist (self-hosted, OFL) --------------------------------------------- */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/Geist-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/Geist-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/Geist-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/Geist-Bold.woff2') format('woff2');
}

/* ---- Tokens (LIGHT is the base; dark overrides below) --------------------- */
.hx {
  --hx-font: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --hx-ease: cubic-bezier(0.22, 1, 0.36, 1);

  --hx-paper:   #faf9f5;
  --hx-paper-2: #f1efe7;   /* alternate band ground */
  --hx-card:    #ffffff;
  --hx-ink:     #16150f;
  --hx-ink-2:   #565349;
  --hx-ink-3:   #8b877c;
  --hx-line:        rgba(22, 21, 15, 0.11);
  --hx-line-strong: rgba(22, 21, 15, 0.18);
  --hx-line-2:      rgba(22, 21, 15, 0.055);

  --hx-brand:      #ffcc00;
  --hx-brand-ink:  #1a1500;                 /* text ON yellow */
  --hx-accent-txt: #ffcc00;                 /* real brand yellow (owner: no brown-gold) */
  --hx-wa:   #22a259;
  --hx-wa-2: #1c8c4c;

  --hx-header-bg: rgba(250, 249, 245, 0.82);

  --hx-radius:    22px;
  --hx-radius-sm: 14px;
  --hx-radius-lg: 30px;

  /* Soft, neutral, multi-stop depth - the single biggest "premium vs template"
     tell. Never a coloured halo (memory/feedback_visual_calm.md). */
  --hx-shadow-sm: 0 1px 2px rgba(22, 21, 15, 0.05), 0 4px 10px rgba(22, 21, 15, 0.05);
  --hx-shadow:    0 1px 2px rgba(22, 21, 15, 0.04), 0 8px 18px rgba(22, 21, 15, 0.06),
                  0 24px 44px rgba(22, 21, 15, 0.07);
  --hx-shadow-lg: 0 2px 4px rgba(22, 21, 15, 0.05), 0 14px 30px rgba(22, 21, 15, 0.09),
                  0 40px 70px rgba(22, 21, 15, 0.11);
  --hx-rim: inset 0 1px 0 rgba(255, 255, 255, 0.75);

  --hx-glow: rgba(255, 204, 0, 0.16);

  /* deBOX background mark - warm, low-opacity (never pure black on light) */
  --hx-mark-stroke: rgba(38, 32, 18, 0.13);
  --hx-mark-fill:   rgba(38, 32, 18, 0.05);
}

[data-theme="dark"] .hx {
  --hx-paper:   #0c0c0e;
  --hx-paper-2: #131316;
  --hx-card:    #17171b;
  --hx-ink:     #f5f3ec;
  --hx-ink-2:   #b2aea3;
  --hx-ink-3:   #807c73;
  --hx-line:        rgba(255, 255, 255, 0.12);
  --hx-line-strong: rgba(255, 255, 255, 0.22);
  --hx-line-2:      rgba(255, 255, 255, 0.06);

  --hx-accent-txt: #ffcc00;                 /* yellow reads on dark ground */
  --hx-header-bg: rgba(12, 12, 14, 0.78);

  --hx-shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.4);
  --hx-shadow:    0 2px 8px rgba(0, 0, 0, 0.38), 0 20px 44px rgba(0, 0, 0, 0.5);
  --hx-shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.45), 0 34px 66px rgba(0, 0, 0, 0.6);
  --hx-rim: inset 0 1px 0 rgba(255, 255, 255, 0.06);

  --hx-glow: rgba(255, 204, 0, 0.14);

  --hx-mark-stroke: rgba(255, 255, 255, 0.11);
  --hx-mark-fill:   rgba(255, 255, 255, 0.05);
}

/* ---- Page base + background canvas ---------------------------------------- */
/* Not flat white: a warm paper base + a soft fixed glow layer (a positioned
   ::before, not background-attachment:fixed, so it stays smooth on mobile).
   Default sections are transparent so the canvas shows through; alt bands stay
   opaque. Inspired by the calm gradient grounds on 21st.dev - no AI-slop blobs. */
body.hx {
  background-color: var(--hx-paper);
  font-family: var(--hx-font);
  color: var(--hx-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.hx::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* Clean neutral canvas - a soft light source top-centre + a gentle
     cool-neutral vertical gradient. No yellow tint (owner: "ingalbenit"). */
  background:
    radial-gradient(120% 80% at 50% -20%, #ffffff 0%, rgba(255, 255, 255, 0) 55%),
    radial-gradient(1000px 700px at 92% 8%, rgba(99, 114, 146, 0.05), transparent 60%),
    linear-gradient(180deg, #f7f6f2 0%, #eef0ee 55%, #e9ebe9 100%);
}
[data-theme="dark"] body.hx::before {
  background:
    radial-gradient(1100px 640px at 88% -6%, rgba(255, 204, 0, 0.06), transparent 58%),
    radial-gradient(1000px 680px at -6% 106%, rgba(96, 116, 168, 0.06), transparent 56%),
    linear-gradient(180deg, #0b0b0d 0%, #101014 100%);
}
.hx #main { background: transparent; }
.hx ::selection { background: rgba(255, 204, 0, 0.32); color: #16150f; }

/* Typography primitives ----------------------------------------------------- */
.hx .hx-h1,
.hx .hx-h2,
.hx .hx-h3 {
  font-family: var(--hx-font);
  color: var(--hx-ink);
  margin: 0;
  font-weight: 600;
}
.hx .hx-h1 {
  font-size: clamp(2.7rem, 1.5rem + 4.6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hx .hx-h2 {
  font-size: clamp(2rem, 1.35rem + 2.2vw, 3.1rem);
  line-height: 1.07;
  letter-spacing: -0.028em;
}
.hx .hx-h3 {
  font-size: clamp(1.18rem, 1.05rem + 0.5vw, 1.45rem);
  line-height: 1.2;
  letter-spacing: -0.012em;
}
.hx .hx-lead {
  font-size: clamp(1.06rem, 1rem + 0.4vw, 1.28rem);
  line-height: 1.55;
  color: var(--hx-ink-2);
  margin: 0;
  max-width: 46ch;
  text-wrap: pretty;
}
.hx .hx-accent { color: var(--hx-accent-txt); }

.hx .tnum { font-variant-numeric: tabular-nums; }

/* Section rhythm ------------------------------------------------------------ */
.hx .hx-section { padding: clamp(52px, 4vw + 28px, 94px) 0; position: relative; background: transparent; }
.hx .hx-section--alt { background: var(--hx-paper-2); }
.hx .hx-section--tight { padding-top: clamp(18px, 2vw, 34px); }

.hx .hx-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  flex-wrap: wrap;
  margin-bottom: clamp(30px, 3vw, 52px);
}
.hx .hx-head__lead {
  margin-top: 14px;
  max-width: 52ch;
}
.hx .hx-head__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--hx-ink);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1.5px solid var(--hx-line-strong);
  transition: gap 0.2s var(--hx-ease), border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.hx .hx-head__link:hover { gap: 12px; border-bottom-color: var(--hx-brand); }
.hx .hx-head__link i { font-size: 0.82em; }

/* ---- Buttons (reskin the shared .ds-btn used by hero / estimator / CTA) ---- */
.hx .ds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--hx-font);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: transform 0.2s var(--hx-ease), background 0.25s, box-shadow 0.3s,
              color 0.2s, border-color 0.2s;
}
.hx .ds-btn i { font-size: 1.05em; }
.hx .ds-btn--lg { height: 56px; padding: 0 30px; font-size: 1.06rem; }
.hx .ds-btn--block { width: 100%; }
.hx .ds-btn:active { transform: scale(0.975); }

.hx .ds-btn--whatsapp {
  background: var(--hx-wa);
  color: #fff;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.22),
              0 8px 20px rgba(34, 162, 89, 0.26);
}
.hx .ds-btn--whatsapp:hover {
  background: var(--hx-wa-2);
  transform: translateY(-2px);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.22),
              0 12px 26px rgba(34, 162, 89, 0.34);
}
.hx .ds-btn--primary {
  background: var(--hx-ink);
  color: var(--hx-paper);
  box-shadow: 0 8px 20px rgba(22, 21, 15, 0.16);
}
.hx .ds-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(22, 21, 15, 0.22); }
.hx .ds-btn--ghost {
  background: transparent;
  color: var(--hx-ink);
  border-color: var(--hx-line-strong);
}
.hx .ds-btn--ghost:hover { border-color: var(--hx-ink); background: var(--hx-line-2); }

/* ============================================================================
   Header / nav - transparent over the hero, solid on scroll, in both themes.
   The logo <img> is swapped per theme by js/theme.js (black on light).
   ========================================================================== */
.hx .header {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  padding: 18px 0;
}
.hx .header::after { display: none; }               /* drop the yellow accent line */
.hx .header.scrolled {
  background: var(--hx-header-bg);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--hx-line);
  box-shadow: var(--hx-shadow-sm);
  padding: 12px 0;
}
.hx .header .nav-link {
  color: var(--hx-ink-2);
  font-family: var(--hx-font);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.hx .header .nav-link:hover { color: var(--hx-ink); }
.hx .header .nav-link.active { color: var(--hx-ink); }
.hx .header .nav-link.active::after { background: var(--hx-brand); }
.hx .header .theme-toggle { color: var(--hx-ink-2); }
.hx .header .theme-toggle:hover { color: var(--hx-ink); }
.hx .header .nav-shop { color: var(--hx-ink-2); }
.hx .header .nav-shop:hover { color: var(--hx-ink); }
.hx .header .nav-shop i { color: var(--hx-accent-txt); }

/* "Programeaza" as a compact ink pill - override the old yellow-!important
   nav-cta so it matches the refined system in both themes. */
body.hx .header .nav-cta {
  background: var(--hx-ink) !important;
  color: var(--hx-paper) !important;
  border-radius: 999px;
  padding: 11px 22px;
  font-family: var(--hx-font);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  text-transform: none;
  box-shadow: 0 6px 16px rgba(22, 21, 15, 0.16);
  transition: transform 0.2s var(--hx-ease), box-shadow 0.25s, background 0.25s;
}
body.hx .header .nav-cta::after { display: none !important; }
body.hx .header .nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(22, 21, 15, 0.22);
  background: var(--hx-ink) !important;
}
.hx .mobile-menu-btn span { background: var(--hx-ink); }

/* --- HOMEPAGE nav OVER the dark hero (before scroll), DESKTOP only ----------
   The homepage hero is a dark band in both themes, so at the top the nav goes
   white regardless of theme; on scroll it reverts to the theme bar above. This
   is `.hx-home` (other v4 pages get their own hero treatment) and DESKTOP only:
   on mobile the drawer owns the nav, and a backdrop-filter on the header would
   create a containing block that CLIPS the fixed drawer to the header height.
   The logo needs the white artwork at the top even on light theme (js/theme.js
   set it black) - `content:` swaps the RENDERED image without touching src. */
@media (min-width: 993px) {
  body.hx-darkhero .header:not(.scrolled) {
    background: rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    backdrop-filter: blur(10px) saturate(120%);
    border-bottom-color: transparent;
  }
  body.hx-darkhero .header:not(.scrolled) .nav-link,
  body.hx-darkhero .header:not(.scrolled) .theme-toggle { color: rgba(255, 255, 255, 0.82); }
  body.hx-darkhero .header:not(.scrolled) .nav-link:hover,
  body.hx-darkhero .header:not(.scrolled) .nav-link.active,
  body.hx-darkhero .header:not(.scrolled) .theme-toggle:hover { color: #fff; }
  body.hx-darkhero .header:not(.scrolled) .nav-link.active::after { background: var(--hx-brand); }
  body.hx-darkhero .header:not(.scrolled) .nav-shop {
    color: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
  }
  body.hx-darkhero .header:not(.scrolled) .nav-shop:hover { color: #fff !important; border-color: #fff !important; }
  body.hx-darkhero .header:not(.scrolled) .nav-shop i { color: var(--hx-brand); }
  body.hx-darkhero .header:not(.scrolled) .nav-cta {
    background: #fff !important;
    color: #16150f !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  }
  [data-theme="light"] body.hx-darkhero .header:not(.scrolled) .ds-logo img {
    content: url('/assets/brand/logo-white.webp');
  }
}

/* --- MOBILE nav: v4 drawer (theme-aware) + fix the drawer clip -------------
   No backdrop-filter on the header at <=992px (it creates a containing block
   that clips the fixed drawer to the header height - the bug the owner saw),
   and the drawer follows the theme instead of the old dark gradient. */
@media (max-width: 992px) {
  .hx .header,
  .hx .header.scrolled {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--hx-header-bg);
    border-bottom: 1px solid var(--hx-line);
    box-shadow: none;
  }
  .hx .header .nav-list {
    background: var(--hx-paper);
    border-left: 1px solid var(--hx-line);
    box-shadow: -26px 0 60px rgba(0, 0, 0, 0.22);
    padding: 90px 20px 30px;
  }
  .hx .header .nav-list::before { display: none; }   /* drop the yellow accent line */
  .hx .header .nav-link {
    color: var(--hx-ink);
    font-family: var(--hx-font);
    font-weight: 500;
    letter-spacing: -0.01em;
    border-bottom: 1px solid var(--hx-line-2);
  }
  .hx .header .nav-link:hover { color: var(--hx-ink); }
  .hx .header .nav-link.active { color: var(--hx-accent-txt); }
  .hx .header .nav-link.active::after { display: none; }
  .hx .header .theme-toggle { color: var(--hx-ink-2); }
  .hx .header .nav-shop {
    color: var(--hx-ink) !important;
    border: 1px solid var(--hx-line) !important;
    border-radius: 999px;
    justify-content: center;
    margin-top: 14px !important;
  }
  .hx .header .nav-shop i { color: var(--hx-accent-txt); }
  .hx .header .nav-cta {
    background: var(--hx-ink) !important;
    color: var(--hx-paper) !important;
    justify-content: center;
    margin-top: 12px !important;
  }
  .hx .mobile-menu-btn span { background: var(--hx-ink); }
  .hx .mobile-menu-btn.active span { background: var(--hx-brand); }
}

/* ============================================================================
   HERO
   ========================================================================== */
/* Full-viewport cinematic photo hero. The car photo is back (owner: the old
   photo hero read better) but the hero is now a DELIBERATE dark band in BOTH
   themes so every element stays legible - warm-toned on light, deep on dark.
   Fills the viewport on desktop; only the headline, the calculator and the
   proof strip - what sells the work. */
.hx .hx-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #0b0a08;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(102px, 13vh, 148px) 0 clamp(32px, 5vh, 60px);
}

.hx .hx-hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hx .hx-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
  animation: hxHeroIn 1.8s var(--hx-ease) both;   /* one-shot, not a loop */
}
@keyframes hxHeroIn { from { transform: scale(1.07); } to { transform: scale(1); } }
.hx .hx-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(101deg, rgba(24,17,8,0.95) 0%, rgba(24,17,8,0.82) 34%, rgba(26,19,10,0.5) 66%, rgba(30,22,12,0.3) 100%),
    linear-gradient(0deg, rgba(11,10,8,0.66) 0%, rgba(11,10,8,0) 24%);
}
[data-theme="dark"] .hx .hx-hero__media::after {
  background:
    linear-gradient(101deg, rgba(6,6,9,0.96) 0%, rgba(6,6,9,0.86) 34%, rgba(6,6,9,0.6) 66%, rgba(6,6,9,0.42) 100%),
    linear-gradient(0deg, rgba(6,6,9,0.8) 0%, rgba(6,6,9,0) 24%);
}
@media (prefers-reduced-motion: reduce) {
  .hx .hx-hero__media img { animation: none; }
}

.hx .hx-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  /* minmax(0, ...) not bare fr: a bare fr track can't shrink below its content's
     min-content, so a long engine <select> or the nowrap CTA in the estimator
     widened the whole hero (off-screen on phones). Fixed 2026-11-01. */
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(30px, 4vw, 56px);
  align-items: center;
  width: 100%;
}
.hx .hx-hero__copy { min-width: 0; }

/* Kicker as a glass pill on the photo */
.hx .hx-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.84rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
}
.hx .hx-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hx-brand);
  box-shadow: 0 0 0 4px rgba(255, 204, 0, 0.22);
}

.hx .hx-hero__title { margin: 0 0 30px; color: #fff; }
.hx .hx-hero .hx-accent { color: #ffcc00; }
.hx .hx-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hx .hx-hero .ds-btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.04);
}
.hx .hx-hero .ds-btn--ghost:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, 0.12); }

/* Stats row on the dark hero: clean white figures, no frame - a soft shadow
   keeps them legible over the photo. */
.hx .hx-hero .hx-readings { margin-top: clamp(28px, 4vh, 48px); }
.hx .hx-hero .hx-reading__num { color: #fff; text-shadow: 0 1px 16px rgba(0, 0, 0, 0.55); }
.hx .hx-hero .hx-reading__label { color: rgba(255, 255, 255, 0.7); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5); }

/* ---- Estimator card (reskin .ds-est; est-* IDs & .ds-est__arrow kept) ----- */
.hx .ds-est {
  position: relative;
  z-index: 2;
  background: var(--hx-card);
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius-lg);
  box-shadow: var(--hx-rim), var(--hx-shadow-lg);
  padding: clamp(22px, 2.4vw, 32px);
}
.hx .ds-est__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--hx-line);
}
.hx .ds-est__title {
  font-family: var(--hx-font);
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--hx-ink);
  margin: 0;
}
.hx .ds-est__unit {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--hx-ink-3);
  letter-spacing: 0.02em;
}
.hx .ds-est__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.hx .ds-est__field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.hx .ds-est__label {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--hx-ink-3);
  letter-spacing: 0.01em;
}
.hx .ds-est__field select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 46px;
  padding: 0 38px 0 14px;
  font-family: var(--hx-font);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--hx-ink);
  background-color: var(--hx-paper);
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, opacity 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238b877c' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  /* A long engine label truncates instead of widening the card. */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hx .ds-est__field select:hover:not(:disabled) { border-color: var(--hx-line-strong); }
.hx .ds-est__field select:focus-visible {
  outline: none;
  border-color: var(--hx-brand);
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.25);
}
.hx .ds-est__field select:disabled { opacity: 0.55; cursor: not-allowed; }
.hx .ds-est__field select.is-loading { opacity: 0.7; }

.hx .ds-est__out { margin-top: 20px; }
.hx .ds-est__hint {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--hx-ink-2);
}
.hx .ds-est__result { margin: 0; padding: 0; display: grid; gap: 10px; }
.hx .ds-est__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 14px;
  padding: 14px 18px;
  background: var(--hx-paper-2);
  border: 1px solid var(--hx-line-2);
  border-radius: var(--hx-radius-sm);
}
.hx .ds-est__row dt { font-size: 0.9rem; font-weight: 500; color: var(--hx-ink-2); margin: 0; }
.hx .ds-est__row dd {
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 1.16rem;
  font-weight: 600;
  color: var(--hx-ink);
  font-variant-numeric: tabular-nums;
  /* "110 -> 140 CP" is one unit: it never breaks. When the phone's font
     scale makes it too wide, the row wraps instead and the label goes on top. */
  white-space: nowrap;
  margin-left: auto;
}
.hx .ds-est__row dd span { color: var(--hx-ink-3); font-weight: 500; }
.hx .ds-est__row dd strong { color: var(--hx-ink); font-weight: 700; }
.hx .ds-est__arrow { color: var(--hx-accent-txt); font-weight: 700; padding: 0 1px; }
.hx .ds-est__cta { margin-top: 14px; }
/* The CTA may wrap to two lines on very narrow phones (<380px) rather than
   pushing the card wider than the screen; single line from ~380px up. */
.hx .ds-est__cta .ds-btn {
  width: 100%;
  height: auto;
  min-height: 50px;
  padding: 12px 18px;
  font-size: 0.94rem;
  line-height: 1.25;
  white-space: normal;
  text-align: center;
}
.hx .ds-est__alt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--hx-ink-2);
  text-decoration: none;
  transition: color 0.2s, gap 0.2s var(--hx-ease);
}
.hx .ds-est__alt:hover { color: var(--hx-ink); gap: 10px; }
.hx .ds-est__alt i { font-size: 0.82em; }
.hx .ds-est__foot {
  margin: 16px 0 0;
  font-size: 0.76rem;
  color: var(--hx-ink-3);
  line-height: 1.45;
}

/* Override the design-system estimator's mono/uppercase/tick-ruler identity so
   the card speaks Geist like the rest of the page. `body.hx` (0,2,1)
   beats both `.ds-est__x` and any `[data-theme] .ds-est__x`. */
body.hx .ds-est__head { background-image: none; border-bottom: 1px solid var(--hx-line); }
body.hx .ds-est__title {
  font-family: var(--hx-font); font-size: 1.14rem; font-weight: 600;
  letter-spacing: -0.015em; text-transform: none; color: var(--hx-ink);
}
body.hx .ds-est__unit { font-family: var(--hx-font); text-transform: none; letter-spacing: 0.01em; color: var(--hx-ink-3); }
body.hx .ds-est__label { font-family: var(--hx-font); text-transform: none; letter-spacing: 0.005em; font-size: 0.76rem; color: var(--hx-ink-3); }
body.hx .ds-est__hint {
  font-family: var(--hx-font); text-transform: none; letter-spacing: 0;
  font-size: 0.9rem; color: var(--hx-ink-2); border-top: 0; padding: 0;
}
body.hx .ds-est__foot { font-family: var(--hx-font); text-transform: none; letter-spacing: 0; border-top: 1px solid var(--hx-line); }
body.hx .ds-est__row dt { font-family: var(--hx-font); }
body.hx .ds-est__alt { font-family: var(--hx-font); text-transform: none; letter-spacing: 0; }

/* Respect the hidden attribute the estimator JS toggles (my display rules on
   __result / __cta / __hint were overriding the UA [hidden] rule). */
.hx [hidden] { display: none !important; }

/* ---- Stats row (the four owner-confirmed figures) - borderless, no frame ---- */
.hx .hx-readings {
  position: relative;
  z-index: 2;
  margin-top: clamp(44px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 3vw, 44px);
}
.hx .hx-reading { text-align: left; }
.hx .hx-reading__num {
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--hx-ink);
  font-variant-numeric: tabular-nums;
}
.hx .hx-reading__num .u { color: var(--hx-accent-txt); }
.hx .hx-reading__label {
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--hx-ink-2);
}

/* ============================================================================
   SHOWCASE band - the real workshop photo, big & bright (home.webp)
   ========================================================================== */
.hx .hx-showcase { padding-top: 0; }
.hx .hx-showcase__frame {
  position: relative;
  border-radius: var(--hx-radius-lg);
  overflow: hidden;
  border: 1px solid var(--hx-line);
  box-shadow: var(--hx-shadow-lg);
  aspect-ratio: 21 / 9;
  background: var(--hx-paper-2);
}
.hx .hx-showcase__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hx .hx-showcase__cap {
  position: absolute;
  left: clamp(18px, 2.4vw, 34px);
  bottom: clamp(18px, 2.4vw, 30px);
  right: clamp(18px, 2.4vw, 34px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.hx .hx-showcase__cap-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.62);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
}
.hx .hx-showcase__cap-tag i { color: var(--hx-brand); }

/* ============================================================================
   PROJECTS - reskin the shared .ds-project cards (render_project_card)
   ========================================================================== */
.hx .ds-projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2vw, 26px);
}
.hx .ds-project {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--hx-card);
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius);
  box-shadow: var(--hx-shadow-sm);
  overflow: hidden;
  transition: transform 0.28s var(--hx-ease), box-shadow 0.28s, border-color 0.2s;
}
.hx .ds-project:hover {
  transform: translateY(-6px);
  box-shadow: var(--hx-shadow-lg);
  border-color: var(--hx-line-strong);
}
.hx .ds-project__media-link { display: block; }
.hx .ds-project__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--hx-paper-2); }
.hx .ds-project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--hx-ease);
}
.hx .ds-project:hover .ds-project__media img { transform: scale(1.04); }
.hx .ds-project__body { padding: clamp(18px, 1.6vw, 24px); display: flex; flex-direction: column; gap: 12px; flex: 1; }
.hx .ds-project__title {
  font-family: var(--hx-font);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--hx-ink);
  margin: 0;
}
body.hx .ds-project__meta { margin: -4px 0 0; font-size: 0.86rem; color: var(--hx-ink-3); font-family: var(--hx-font); text-transform: none; letter-spacing: 0; }

.hx .ds-project .ds-spec { margin: 4px 0 0; padding: 14px 0 0; border-top: 1px solid var(--hx-line-2); display: grid; gap: 8px; }
.hx .ds-project .ds-spec__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.hx .ds-project .ds-spec__row dt { font-size: 0.86rem; color: var(--hx-ink-2); margin: 0; }
.hx .ds-project .ds-spec__row dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--hx-ink);
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.hx .ds-project .ds-spec__from { color: var(--hx-ink-3); font-weight: 500; }
.hx .ds-project .ds-spec__arrow { color: var(--hx-accent-txt); font-weight: 700; }
.hx .ds-project .ds-spec__to { color: var(--hx-ink); font-weight: 700; }
.hx .ds-project__more {
  margin-top: auto;
  padding-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--hx-ink-2);
}
.hx .ds-project__more i { transition: transform 0.25s var(--hx-ease); font-size: 0.82em; }
.hx .ds-project:hover .ds-project__more { color: var(--hx-ink); }
.hx .ds-project:hover .ds-project__more i { transform: translateX(4px); }

/* ============================================================================
   SERVICES - a calm datasheet list
   ========================================================================== */
.hx .hx-svc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hx-line); }
.hx .hx-svc__row {
  display: grid;
  grid-template-columns: minmax(190px, 0.9fr) 2fr auto;
  align-items: center;
  gap: 20px 32px;
  padding: clamp(20px, 2vw, 30px) 8px;
  border-bottom: 1px solid var(--hx-line);
  text-decoration: none;
  transition: padding-left 0.25s var(--hx-ease), background 0.25s;
}
.hx .hx-svc__row:hover { padding-left: 20px; background: var(--hx-paper-2); }
.hx .hx-svc__name {
  font-family: var(--hx-font);
  font-size: clamp(1.3rem, 1.05rem + 0.9vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--hx-ink);
  margin: 0;
}
.hx .hx-svc__desc { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--hx-ink-2); }
.hx .hx-svc__go {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--hx-line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--hx-ink);
  flex-shrink: 0;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--hx-ease);
}
.hx .hx-svc__row:hover .hx-svc__go {
  background: var(--hx-brand);
  border-color: var(--hx-brand);
  color: var(--hx-brand-ink);
  transform: translateX(3px);
}

/* ============================================================================
   WHY - editorial two-column, no card grid
   ========================================================================== */
.hx .hx-why { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.hx .hx-why__aside { position: sticky; top: 110px; }
.hx .hx-why__note {
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  line-height: 1.42;
  font-weight: 500;
  color: var(--hx-ink);
  letter-spacing: -0.02em;
  margin: 0 0 26px;
  text-wrap: pretty;
}
.hx .hx-why__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hx .hx-why__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: clamp(20px, 2vw, 28px) 0;
  border-top: 1px solid var(--hx-line);
}
.hx .hx-why__item:first-child { border-top: 0; }
.hx .hx-why__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--hx-paper-2);
  border: 1px solid var(--hx-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--hx-accent-txt);
  font-size: 1.04rem;
  flex-shrink: 0;
}
.hx .hx-why__item h3 { margin: 4px 0 7px; }
.hx .hx-why__item p { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--hx-ink-2); max-width: 54ch; }

/* ============================================================================
   BLOG - reskin the shared .blog-card (body.hx wins the specificity
   race against the inline [data-theme="light"] .blog-card rules).
   ========================================================================== */
body.hx .blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 26px); }
body.hx .blog-card {
  background: var(--hx-card);
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius);
  box-shadow: var(--hx-shadow-sm);
  overflow: hidden;
}
body.hx .blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--hx-line-strong);
  box-shadow: var(--hx-shadow-lg);
}
body.hx .blog-card__media::after { display: none; }
body.hx .blog-card__cat {
  background: var(--hx-card);
  color: var(--hx-ink);
  border: 1px solid var(--hx-line);
  border-radius: 999px;
  font-family: var(--hx-font);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  padding: 6px 12px;
  box-shadow: var(--hx-shadow-sm);
  backdrop-filter: none;
}
body.hx .blog-card__cat i { color: var(--hx-accent-txt); }
body.hx .blog-card__body { padding: clamp(18px, 1.6vw, 24px); gap: 12px; }
body.hx .blog-card__meta { font-family: var(--hx-font); color: var(--hx-ink-3); font-size: 0.8rem; letter-spacing: 0; }
body.hx .blog-card__meta i { color: var(--hx-ink-3); }
body.hx .blog-card__dot { background: var(--hx-ink-3); }
body.hx .blog-card__title { font-family: var(--hx-font); color: var(--hx-ink); font-size: 1.3rem; letter-spacing: -0.02em; }
body.hx .blog-card:hover .blog-card__title { color: var(--hx-ink); }
body.hx .blog-card__more { color: var(--hx-ink-2); font-weight: 500; }
body.hx .blog-card:hover .blog-card__more { color: var(--hx-ink); }
body.hx .blog-card__link:focus-visible { outline: 2px solid var(--hx-brand); }

/* ============================================================================
   CLOSING CTA - reskin the shared .ds-cta (cta-block.php)
   ========================================================================== */
/* CTA panel FOLLOWS the theme (owner: no black on light theme) - a raised light
   card on light, a dark card on dark. Its text + mark use the --hx tokens so
   they flip with the card. */
.hx .ds-cta {
  position: relative;
  overflow: hidden;
  background: var(--hx-card);
  border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius-lg);
  padding: clamp(36px, 4vw, 64px);
  box-shadow: var(--hx-shadow-lg);
  isolation: isolate;
}
[data-theme="dark"] .hx .ds-cta {
  background: #1a1a1e;
  box-shadow: var(--hx-rim), var(--hx-shadow);
}
/* Kill the design-system tick-ruler edge (short lines) at the top of the panel */
.hx .ds-cta::before { display: none; }
.hx .ds-cta__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
/* CTA background wordmark - injected via ::after because cta-block.php is a
   shared partial with no .hx-watermark child of its own. */
/* ============================================================================
   deBOX background mark - the redesigned "sign". Two-tone like the logo
   (outline "de" + filled "BOX"), forward italic lean, cropped by the section
   edge. Subtle; one per section; never pure black on light theme.
   ========================================================================== */
.hx .hx-section--mark { overflow: hidden; }
.hx .hx-mark {
  position: absolute;
  z-index: 0;
  font-family: var(--hx-font);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.78;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  transform: skewX(-11deg);            /* the logo's forward lean */
}
.hx .hx-mark__de {
  color: transparent;
  -webkit-text-stroke: 2px var(--hx-mark-stroke);
}
.hx .hx-mark__box { color: var(--hx-mark-fill); }

/* Behind the projects grid, cropped bottom-right */
.hx .hx-mark--projects {
  right: -2.5%;
  bottom: -9%;
  font-size: clamp(150px, 27vw, 420px);
}
/* The CTA banner is text-dense, so no background mark there (owner: the outline
   lines looked cluttered) and no eyebrow line at the top - it opens on the title. */
.hx .ds-cta .ds-tag { display: none; }
.hx .ds-cta__title {
  font-family: var(--hx-font);
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--hx-ink);
  margin: 0 0 14px;
}
.hx .ds-cta__title em { font-style: normal; color: var(--hx-ink); }
.hx .ds-cta__desc { font-size: 1.06rem; line-height: 1.5; color: var(--hx-ink-2); margin: 0; max-width: 42ch; }
.hx .ds-cta__actions { display: grid; gap: 12px; }
.hx .ds-cta__actions .ds-btn--primary {
  background: var(--hx-brand);
  color: var(--hx-brand-ink);
  box-shadow: 0 8px 22px rgba(255, 204, 0, 0.28);
}
.hx .ds-cta__actions .ds-btn--primary:hover { box-shadow: 0 12px 30px rgba(255, 204, 0, 0.36); }
.hx .ds-cta__actions .ds-btn--ghost { color: var(--hx-ink); border-color: var(--hx-line-strong); }
.hx .ds-cta__actions .ds-btn--ghost:hover { border-color: var(--hx-ink); background: var(--hx-line-2); }
.hx .ds-cta__meta { display: flex; align-items: center; gap: 9px; font-size: 0.86rem; color: var(--hx-ink-3); margin: 4px 0 0; }
.hx .ds-cta__meta i { color: var(--hx-brand); }

/* ============================================================================
   FOOTER - lift onto the paper ground so the page ends light in light theme
   ========================================================================== */
.hx .footer {
  background: var(--hx-paper-2);
  border-top: 1px solid var(--hx-line);
  color: var(--hx-ink-2);
}
.hx .footer .footer-tagline { color: var(--hx-ink); font-weight: 500; }
.hx .footer .footer-desc { color: var(--hx-ink-2); }
.hx .footer .footer-heading { color: var(--hx-ink); font-family: var(--hx-font); }
.hx .footer .footer-list a,
.hx .footer .footer-contact-list span,
.hx .footer .footer-contact-list a,
.hx .footer .footer-link-btn { color: var(--hx-ink-2); }
.hx .footer .footer-list a:hover,
.hx .footer .footer-contact-list a:hover,
.hx .footer .footer-link-btn:hover { color: var(--hx-ink); }
.hx .footer .footer-contact-list i { color: var(--hx-accent-txt); }
.hx .footer .footer-social a {
  border: 1px solid var(--hx-line);
  color: var(--hx-ink-2);
  background: var(--hx-card);
}
.hx .footer .footer-social a:hover { color: var(--hx-brand-ink); background: var(--hx-brand); border-color: var(--hx-brand); }
.hx .footer .footer-bottom { border-top: 1px solid var(--hx-line); }
.hx .footer .footer-copy,
.hx .footer .footer-credit { color: var(--hx-ink-3); }
/* Owner asked to drop the legal-entity line from the footer. Homepage-scoped;
   the operator ID (Legea 365/2002) still shows on other pages' footers and on
   /termeni-conditii + /policy, so compliance is intact. */
.hx .footer .footer-legal-id { display: none; }

/* ============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  /* Stack the hero and let it grow past the viewport - the estimator needs the
     room on a phone; the full-viewport lock is a desktop device. */
  .hx .hx-hero { min-height: auto; padding-top: clamp(96px, 16vh, 128px); }
  .hx .hx-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hx .hx-why { grid-template-columns: 1fr; gap: 30px; }
  .hx .hx-why__aside { position: static; }
  .hx .ds-cta__inner { grid-template-columns: 1fr; }
  .hx .hx-showcase__frame { aspect-ratio: 16 / 9; }
}

@media (max-width: 720px) {
  .hx .ds-projects,
  body.hx .blog-grid { grid-template-columns: 1fr; }
  .hx .hx-readings { grid-template-columns: repeat(2, 1fr); }
  .hx .hx-reading { border-bottom: 1px solid var(--hx-line); }
  .hx .hx-svc__row { grid-template-columns: 1fr auto; gap: 6px 18px; }
  .hx .hx-svc__desc { grid-column: 1 / -1; order: 3; }
  .hx .hx-svc__go { grid-row: 1; grid-column: 2; }
  .hx .hx-head { align-items: flex-start; }
}

@media (max-width: 460px) {
  .hx .ds-est__fields { grid-template-columns: minmax(0, 1fr); }
  .hx .hx-hero__cta .ds-btn { width: 100%; }
  .hx .hx-showcase__frame { aspect-ratio: 4 / 5; }
}

/* Respect reduced motion (the reveal engine already gates on this; these are
   the hover transforms). */
@media (prefers-reduced-motion: reduce) {
  .hx .ds-project:hover,
  .hx .blog-card:hover,
  .hx .ds-btn:hover { transform: none; }
}

/* ============================================================================
   V3 -> V4 BRIDGE
   Restyles the shared design-system (.ds-*) components under .hx so the inner
   pages adopt the light / Geist look by just adding the `hx` body class +
   loading this sheet - no per-page markup rewrite. The homepage uses .hx-*
   classes and is unaffected by these .ds-* rules.
   ========================================================================== */

/* ---- Inner-page hero ------------------------------------------------------
   Pages with a photo (.ds-hero__bg) keep it as a dark cinematic band, like the
   homepage (white copy + nav; the page carries `hx-darkhero`). Legal pages are
   `.ds-hero--solid` (no photo) and stay light - handled further down. */
.hx .ds-hero--page {
  position: relative;
  min-height: 0;
  padding: clamp(126px, 15vh, 188px) 0 clamp(50px, 7vw, 86px);
  overflow: hidden;
}
.hx .ds-hero--page .ds-hero__strip,
.hx .ds-hero--page::before { display: none !important; }
.hx .ds-hero--page .ds-container { position: relative; z-index: 2; }
.hx .ds-hero--page .ds-hero__inner { max-width: 62ch; }

/* Photo hero (dark band) */
.hx .ds-hero--page:not(.ds-hero--solid) { background: #0b0a08; }
.hx .ds-hero--page:not(.ds-hero--solid) .ds-hero__bg { display: block; position: absolute; inset: 0; z-index: 0; }
.hx .ds-hero--page:not(.ds-hero--solid) .ds-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hx .ds-hero--page:not(.ds-hero--solid) .ds-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(20,15,8,0.92) 0%, rgba(20,15,8,0.72) 44%, rgba(26,19,10,0.44) 100%),
    linear-gradient(0deg, rgba(11,10,8,0.58) 0%, rgba(11,10,8,0) 30%);
}
[data-theme="dark"] .hx .ds-hero--page:not(.ds-hero--solid) .ds-hero__bg::after {
  background:
    linear-gradient(100deg, rgba(6,6,9,0.94) 0%, rgba(6,6,9,0.78) 44%, rgba(6,6,9,0.52) 100%),
    linear-gradient(0deg, rgba(6,6,9,0.7) 0%, rgba(6,6,9,0) 30%);
}
.hx .ds-hero--page:not(.ds-hero--solid) .ds-hero__title { color: #fff; }
.hx .ds-hero--page:not(.ds-hero--solid) .ds-hero__title em { color: #ffcc00; }
.hx .ds-hero--page:not(.ds-hero--solid) .ds-hero__lead { color: rgba(255, 255, 255, 0.82); }
.hx .ds-hero--page:not(.ds-hero--solid) .ds-tag {
  background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9); box-shadow: none;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hx .ds-hero--page:not(.ds-hero--solid) .ds-chip {
  background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85); box-shadow: none;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hx .ds-hero--page:not(.ds-hero--solid) .ds-chip:hover { color: #fff; border-color: rgba(255, 255, 255, 0.42); }

/* Base hero title/lead (used by the light `--solid` legal hero) */
.hx .ds-hero__title {
  font-family: var(--hx-font);
  font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4.1rem);
  font-weight: 600; line-height: 1.03; letter-spacing: -0.035em;
  color: var(--hx-ink); margin: 18px 0 0;
}
.hx .ds-hero__title em { font-style: normal; color: var(--hx-ink); }
.hx .ds-hero__lead {
  font-family: var(--hx-font);
  font-size: clamp(1.08rem, 1rem + 0.45vw, 1.32rem);
  line-height: 1.55; color: var(--hx-ink-2); margin: 22px 0 0; max-width: 54ch;
}

/* ---- Kicker / tag --------------------------------------------------------- */
.hx .ds-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--hx-font);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--hx-ink-2);
  padding: 7px 15px 7px 13px;
  border: 1px solid var(--hx-line);
  border-radius: 999px;
  background: var(--hx-card);
  box-shadow: var(--hx-shadow-sm);
}
.hx .ds-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--hx-brand); box-shadow: 0 0 0 4px rgba(255, 204, 0, 0.18); }
.hx .ds-tag::after { display: none !important; }

/* ---- Chips (index tabs / filters) ---------------------------------------- */
.hx .ds-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hx .ds-chip {
  font-family: var(--hx-font);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--hx-ink-2);
  background: var(--hx-card);
  border: 1px solid var(--hx-line);
  border-radius: 999px;
  padding: 9px 16px;
  text-decoration: none;
  box-shadow: var(--hx-shadow-sm);
  transition: color 0.2s, border-color 0.2s, transform 0.2s var(--hx-ease);
}
.hx .ds-chip:hover,
.hx .ds-chip.is-active { color: var(--hx-ink); border-color: var(--hx-line-strong); transform: translateY(-1px); }
.hx .ds-chip.is-active { background: var(--hx-ink); color: var(--hx-paper); border-color: var(--hx-ink); }

/* ---- Sections: transparent (show the canvas), alternating bands ----------- */
.hx .ds-section { background: transparent; padding: clamp(48px, 5vw, 88px) 0; position: relative; }
.hx .ds-section--surface,
.hx .ds-section--darker { background: var(--hx-paper-2); }
.hx .ds-section--dark,
.hx .ds-section--grid { background: transparent; }
.hx .ds-section::before,
.hx .ds-section::after { display: none !important; }

/* ---- Section heads (no eyebrow, no top rule - align with the homepage) ----- */
.hx .ds-head { margin-bottom: clamp(26px, 3vw, 44px); padding-top: 0; }
.hx .ds-head::before,
.hx .ds-head::after { display: none !important; }   /* the full-width rule + yellow tick */
.hx .ds-head__top { display: flex; align-items: center; gap: 10px; margin-bottom: 0; flex-wrap: wrap; }
.hx .ds-head__top:has(.ds-head__action) { margin-bottom: 14px; }
.hx .ds-head__index,
.hx .ds-head__label { display: none; }
.hx .ds-head__action {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--hx-font); font-weight: 500; font-size: 0.96rem;
  color: var(--hx-ink); text-decoration: none; padding-bottom: 3px;
  border-bottom: 1.5px solid var(--hx-line-strong); transition: gap 0.2s, border-color 0.2s;
}
.hx .ds-head__action:hover { gap: 12px; border-bottom-color: var(--hx-brand); }
.hx .ds-heading {
  font-family: var(--hx-font);
  font-size: clamp(2rem, 1.35rem + 2.2vw, 3.1rem);
  font-weight: 600; line-height: 1.07; letter-spacing: -0.028em;
  color: var(--hx-ink); margin: 0;
}
.hx .ds-heading em { font-style: normal; color: var(--hx-ink); }
.hx .ds-subheading {
  font-family: var(--hx-font);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.28rem);
  line-height: 1.5; color: var(--hx-ink-2); margin: 14px 0 0; max-width: 60ch;
}

/* ---- Service detail blocks ------------------------------------------------ */
.hx .ds-service-detail {
  display: grid; grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(28px, 4vw, 60px); align-items: center;
}
.hx .ds-service-detail--reverse .ds-service-detail__media { order: 2; }
.hx .ds-service-detail__media {
  border-radius: var(--hx-radius-lg); overflow: hidden;
  border: 1px solid var(--hx-line); box-shadow: var(--hx-shadow-lg);
  aspect-ratio: 8 / 9; background: var(--hx-paper-2);
}
.hx .ds-service-detail__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hx .ds-service-detail__lead {
  font-family: var(--hx-font); font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
  line-height: 1.55; color: var(--hx-ink-2); margin: 14px 0 20px;
}

/* ---- Lists (check bullets) ------------------------------------------------ */
.hx .ds-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 11px; }
.hx .ds-list li { position: relative; padding-left: 30px; color: var(--hx-ink-2); line-height: 1.5; }
.hx .ds-list li::before {
  content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; left: 0; top: 2px; font-size: 0.78rem; color: var(--hx-accent-txt);
}
.hx .ds-list--plain li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--hx-ink-3); top: 0.55em; }
.hx .ds-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Service index rows --------------------------------------------------- */
.hx .ds-svcindex { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hx-line); }
.hx .ds-svcrow {
  display: grid; grid-template-columns: minmax(180px, 0.85fr) 2fr auto;
  align-items: center; gap: 14px 28px; padding: clamp(18px, 2vw, 28px) 8px;
  border-bottom: 1px solid var(--hx-line); text-decoration: none;
  transition: padding-left 0.25s var(--hx-ease), background 0.25s;
}
.hx .ds-svcrow:hover { padding-left: 16px; background: var(--hx-card); }
.hx .ds-svcrow__num { display: none; }
.hx .ds-svcrow__name {
  font-family: var(--hx-font); font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.65rem);
  font-weight: 600; letter-spacing: -0.02em; color: var(--hx-ink); margin: 0;
}
.hx .ds-svcrow__desc { font-family: var(--hx-font); color: var(--hx-ink-2); margin: 0; line-height: 1.5; }
.hx .ds-svcrow__go {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--hx-line-strong);
  display: inline-flex; align-items: center; justify-content: center; color: var(--hx-ink);
  flex-shrink: 0; transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--hx-ease);
}
.hx .ds-svcrow:hover .ds-svcrow__go { background: var(--hx-brand); border-color: var(--hx-brand); color: var(--hx-brand-ink); transform: translateX(3px); }
.hx .ds-svcrow__go--wa i { color: var(--hx-wa); }
.hx .ds-svcrow:hover .ds-svcrow__go--wa { background: var(--hx-wa); border-color: var(--hx-wa); }
.hx .ds-svcrow:hover .ds-svcrow__go--wa i { color: #fff; }

/* ---- Timeline / process --------------------------------------------------- */
.hx .ds-timeline { display: grid; gap: 0; }
.hx .ds-timeline__step {
  display: grid; grid-template-columns: auto 1fr; gap: 20px;
  padding: clamp(18px, 2vw, 26px) 0; border-top: 1px solid var(--hx-line);
}
.hx .ds-timeline__step:first-child { border-top: 0; }
.hx .ds-timeline__num {
  font-family: var(--hx-font); font-variant-numeric: tabular-nums;
  font-size: 1.05rem; font-weight: 600; color: var(--hx-accent-txt);
  width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--hx-line);
  display: inline-flex; align-items: center; justify-content: center; background: var(--hx-paper);
}
.hx .ds-timeline__body h3 {
  font-family: var(--hx-font); font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
  font-weight: 600; color: var(--hx-ink); margin: 6px 0 7px;
}
.hx .ds-timeline__body p { color: var(--hx-ink-2); margin: 0; max-width: 62ch; line-height: 1.55; }

/* ---- FAQ accordion -------------------------------------------------------- */
.hx .ds-faq { display: grid; gap: 0; border-top: 1px solid var(--hx-line); }
.hx .ds-faq__item { background: transparent; border: 0; border-bottom: 1px solid var(--hx-line); }
.hx .ds-faq__item[open] { background: transparent; }
.hx .ds-faq__q {
  font-family: var(--hx-font); font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  font-weight: 600; color: var(--hx-ink); padding: clamp(18px, 2vw, 24px) 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer;
}
.hx .ds-faq__q:hover { color: var(--hx-ink); }
.hx .ds-faq__q > span:first-child { flex: 1; }
.hx .ds-faq__icon {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%;
  border: 1px solid var(--hx-line-strong); display: inline-flex; align-items: center; justify-content: center;
  color: var(--hx-ink); transition: transform 0.3s var(--hx-ease), background 0.25s, color 0.25s;
}
.hx .ds-faq__item[open] .ds-faq__icon { transform: rotate(45deg); background: var(--hx-brand); border-color: var(--hx-brand); color: var(--hx-brand-ink); }
.hx .ds-faq__a { color: var(--hx-ink-2); padding: 0 0 clamp(18px, 2vw, 24px); max-width: 74ch; }
.hx .ds-faq__a p { color: var(--hx-ink-2); line-height: 1.6; margin: 0; }

/* ---- Bridge responsive ---------------------------------------------------- */
@media (max-width: 860px) {
  .hx .ds-service-detail { grid-template-columns: 1fr; gap: 28px; }
  .hx .ds-service-detail--reverse .ds-service-detail__media { order: 0; }
  .hx .ds-service-detail__media { aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) {
  .hx .ds-svcrow { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .hx .ds-svcrow__desc { grid-column: 1 / -1; order: 3; }
  .hx .ds-svcrow__go { grid-row: 1; grid-column: 2; }
  .hx .ds-head__action { margin-left: 0; }
}

/* ---- Legal solid hero + 404 (v3 dark leftovers) --------------------------- */
/* .ds-hero--solid hardcodes a dark gradient with a [data-theme="light"] rule
   (0,3,0), so beat it with body.hx (0,3,1). */
body.hx .ds-hero.ds-hero--solid { background: var(--hx-paper); }
body.hx .ds-hero.ds-hero--solid .ds-hero__title { color: var(--hx-ink); }
body.hx .ds-hero.ds-hero--solid .ds-hero__lead { color: var(--hx-ink-2); }
.hx .err-wrap { background: var(--hx-paper); color: var(--hx-ink); }
.hx .err-logo { content: url('/assets/brand/logo-black.webp'); }
[data-theme="dark"] .hx .err-logo { content: url('/assets/brand/logo-white.webp'); }
.hx .err-actions .ds-btn--ghost { color: var(--hx-ink); border-color: var(--hx-line-strong); }
.hx .err-code { color: var(--hx-ink); font-family: var(--hx-font); font-weight: 700; letter-spacing: -0.04em; }
.hx .err-rule { background: var(--hx-brand); }
.hx .err-title { color: var(--hx-ink); font-family: var(--hx-font); font-weight: 600; letter-spacing: -0.025em; }
.hx .err-text { color: var(--hx-ink-2); }
.hx .err-links a { color: var(--hx-ink-3); font-family: var(--hx-font); }
.hx .err-links a:hover { color: var(--hx-ink); }

/* ---- Servicii: "alte servicii" card grid + "proces" numbered stepper ------ */
.hx .hx-svcgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.hx .hx-svccard {
  display: flex; flex-direction: column; gap: 10px;
  padding: clamp(22px, 2.2vw, 32px);
  background: var(--hx-card); border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius); box-shadow: var(--hx-shadow-sm);
  text-decoration: none;
  transition: transform 0.25s var(--hx-ease), box-shadow 0.25s, border-color 0.2s;
}
.hx .hx-svccard:hover { transform: translateY(-4px); box-shadow: var(--hx-shadow-lg); border-color: var(--hx-line-strong); }
.hx .hx-svccard__icon {
  width: 48px; height: 48px; border-radius: 13px;
  background: var(--hx-paper-2); border: 1px solid var(--hx-line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--hx-accent-txt); font-size: 1.15rem;
}
.hx .hx-svccard__name { font-family: var(--hx-font); font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem); font-weight: 600; letter-spacing: -0.02em; color: var(--hx-ink); margin: 4px 0 0; }
.hx .hx-svccard__desc { color: var(--hx-ink-2); line-height: 1.55; margin: 0; flex: 1; }
.hx .hx-svccard__go { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 0.9rem; color: var(--hx-wa); margin-top: 6px; }
.hx .hx-svccard:hover .hx-svccard__go { color: var(--hx-wa-2); }

.hx .hx-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(14px, 1.6vw, 26px); }
.hx .hx-step { position: relative; padding-top: 20px; border-top: 2px solid var(--hx-line); }
.hx .hx-step:first-child { border-top-color: var(--hx-brand); }
.hx .hx-step__n { font-family: var(--hx-font); font-variant-numeric: tabular-nums; font-size: 1.45rem; font-weight: 700; color: var(--hx-accent-txt); line-height: 1; display: inline-block; }
.hx .hx-step h3 { font-family: var(--hx-font); font-size: clamp(1.05rem, 1rem + 0.3vw, 1.24rem); font-weight: 600; color: var(--hx-ink); margin: 10px 0 6px; }
.hx .hx-step p { color: var(--hx-ink-2); line-height: 1.5; margin: 0; font-size: 0.95rem; }

.hx .ds-faq { max-width: 900px; }

@media (max-width: 900px) {
  .hx .hx-steps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  .hx .hx-svcgrid { grid-template-columns: 1fr; }
  .hx .hx-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .hx .hx-steps { grid-template-columns: 1fr; }
}

/* ---- Calculator widget -> v4 (was mono + green/blue terminal readouts) ----- */
.hx .calculator-wrapper {
  background: var(--hx-card); border: 1px solid var(--hx-line);
  border-radius: var(--hx-radius-lg); box-shadow: var(--hx-shadow-lg); overflow: hidden;
}
.hx .calculator-wrapper .calculator-tabs .tab-btn { font-family: var(--hx-font); font-weight: 500; }
.hx .calculator-wrapper .calculator-tabs .tab-btn.active { background: var(--hx-brand) !important; color: var(--hx-brand-ink) !important; border-color: var(--hx-brand) !important; }
.hx .calculator-form label,
.hx .options-label { font-family: var(--hx-font); text-transform: none; letter-spacing: 0; color: var(--hx-ink-3); font-weight: 500; }
.hx .calculator-form label i,
.hx .options-label i { color: var(--hx-accent-txt); }
.hx .form-control {
  font-family: var(--hx-font); color: var(--hx-ink);
  background: var(--hx-paper); border: 1px solid var(--hx-line); border-radius: var(--hx-radius-sm);
}
.hx .form-control:focus { border-color: var(--hx-brand); box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.22); outline: none; }
.hx .results-header h3 { font-family: var(--hx-font); color: var(--hx-ink); }
.hx .results-header i { color: var(--hx-accent-txt); }
.hx .no-results-message { font-family: var(--hx-font); color: var(--hx-ink-2); }

.hx .calc-summary__card,
.hx .calc-summary__card--compare,
.hx .calc-summary__card--up,
.hx .calc-summary__card--eco { background: var(--hx-paper-2); border: 1px solid var(--hx-line); border-radius: var(--hx-radius-sm); }
.hx .calc-summary__label { font-family: var(--hx-font) !important; text-transform: none; letter-spacing: 0; color: var(--hx-ink-3) !important; font-size: 0.8rem; }
.hx .calc-summary__label i { color: var(--hx-accent-txt) !important; margin: 0 4px !important; }
.hx .calc-summary__compare,
.hx .calc-summary__value { font-family: var(--hx-font) !important; color: var(--hx-ink) !important; font-variant-numeric: tabular-nums; }
.hx .calc-summary__card--up .calc-summary__value,
.hx .calc-summary__card--eco .calc-summary__value { color: var(--hx-ink) !important; }
.hx .calc-summary__before { color: var(--hx-ink-3); }
.hx .calc-summary__after { color: var(--hx-ink) !important; font-weight: 700; }
.hx .calc-summary__arrow { color: var(--hx-accent-txt) !important; }
.hx .calc-summary__note { font-family: var(--hx-font); color: var(--hx-ink-2); }
.hx .calc-summary__note i { color: var(--hx-accent-txt); }
/* Calculator: force Geist on the mono/uppercase form labels, tabs, powered-by */
.hx .calculator-form .form-group label,
.hx .calculator-wrapper .calculator-tabs .tab-btn,
.hx .calculator-wrapper .options-label { font-family: var(--hx-font) !important; text-transform: none !important; letter-spacing: 0 !important; }
