/* Datify design polish over the captured template.
 * One set of tokens; every override below references them. */
:root {
  --dx-ink: #0e121b;
  --dx-body: #3f4b59;
  --dx-muted: #5d6b7a;      /* 5.47:1 on white, 5.08:1 on --dx-surface */
  --dx-navy: #1d3850;
  --dx-navy-hover: #142a3d;
  --dx-accent: #315f82;     /* 6.6:1 on white */
  --dx-surface: #f5f7f9;
  --dx-tint: #eaf1f7;
  --dx-hairline: #e1e7ed;
  --dx-green: #0f6e44;
  --dx-green-bg: #e5f4ec;
  --dx-amber: #8a5300;
  --dx-amber-bg: #fbf0dc;
  --dx-blue: #2b5a80;
  --dx-blue-bg: #e7eff7;
  --dx-radius-sm: 8px;
  --dx-radius-md: 12px;
  --dx-radius-lg: 20px;
  --dx-radius-xl: 28px;
  --dx-shadow-card: 0 1px 2px rgba(14, 18, 27, .04), 0 12px 32px -18px rgba(20, 42, 61, .28);
}

/* ---------- Typography: one display spec for every section heading ---------- */
html .heading-style-h1 { letter-spacing: -0.025em; }
html .heading-style-h2,
html .dj-heading h2,
html .dc-intro h2 {
  font-size: clamp(2.25rem, 3.4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.018em;
  font-weight: 400;
}
html .dj-story h3 { letter-spacing: -0.025em; }
html .case-study-heading { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.18; letter-spacing: -0.02em; }
html .main-wrapper .text-size-tiny.brand-color,
html .dj-heading > .text-size-tiny,
html .dc-eyebrow { color: var(--dx-accent) !important; }

/* ---------- Split-text labels keep their word spacing ---------- */
.dx-label { display: block; white-space: nowrap; }

/* ---------- Buttons: one primary (navy pill), one on-dark (white pill) ---------- */
html .primary-button.w-variant-1f9277f6-d978-6891-434e-df9bad743ce3,
html .primary-button.w-variant-fb78eba0-dd3e-a77a-385e-cc8838022b83,
html .primary-button.w-variant-c2dc9de4-8772-9172-2dd8-cda2f9121fc9,
html .demo-form input[type="submit"] {
  background-color: var(--dx-navy);
  color: #fff;
}
html .primary-button.w-variant-1f9277f6-d978-6891-434e-df9bad743ce3:hover,
html .demo-form input[type="submit"]:hover { background-color: var(--dx-navy-hover); }
html .section.hero .primary-button.w-variant-3a9f2dd0-9bc7-dc9a-a7bc-93d31eb4141a {
  background-color: rgba(255, 255, 255, .1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34);
  color: #fff;
  backdrop-filter: blur(8px);
}
html .dc-cta { background: var(--dx-navy); }
html .dc-cta:hover, html .dc-play:hover { background: var(--dx-navy-hover); }

/* ---------- Logo ---------- */
.dx-logo { display: inline-flex; align-items: center; gap: 9px; color: var(--dx-ink); font-weight: 700; font-size: 22px; letter-spacing: -0.04em; line-height: 1; }
.dx-logo-mark { position: relative; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 8.5px; background: var(--dx-navy); }
.dx-logo-mark::after { content: ''; position: absolute; right: 5px; bottom: 5px; width: 8.5px; height: 8.5px; border-radius: 2.8px; background: #fff; }
.footer-logo_link .dx-logo { font-size: 20px; }
/* One brand mark everywhere: the app's offset square, not a centred dot. */
html .dj-mark, html .dc-mark, html .datify-preview-mark { position: relative; display: block; background: var(--dx-navy); }
html .dj-mark i, html .dc-mark i, html .datify-preview-mark span { position: absolute; right: 18.5%; bottom: 18.5%; width: 33%; height: 33%; border-radius: 30%; background: #fff; }

/* ---------- Product dropdown ---------- */
html .dropdown-cards_wrapper { background: radial-gradient(ellipse at 90% 0%, rgba(104, 157, 198, .35), transparent 55%), linear-gradient(140deg, #0b1d2f 0%, #1d3850 100%); }
html .dropdown-cards_wrapper .heading-style-h4 { letter-spacing: -0.02em; }
html .dropdown-cards_wrapper .primary-button { background-color: #fff; color: var(--dx-navy); }
html .nav-heading { color: var(--dx-accent); }
html .drop-down_links { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
html .tab-menus { flex-direction: column; gap: 20px; }
html .tab-menus .dropdown-header { color: var(--dx-accent); font-size: 14px; }
html .w-form-done { background-color: var(--dx-green-bg); color: var(--dx-green); }

/* ---------- Product frames ---------- */
html .datify-product-frame { background: linear-gradient(150deg, #edf3f8 0%, #dfe9f2 100%); border-color: #dbe5ee; }
html .datify-product-frame::before { display: none; }
html .datify-value-frame { align-items: stretch; padding: 22px 22px 0; }
html .datify-overview-grid .overview-card-image_wrapper { padding: 22px; }

/* ---------- Mockups ---------- */
.dx-fit { position: relative; width: 100%; }
.dx-fit[data-fit="contain"], .dx-fit[data-fit="bleed"] { height: 100%; align-self: stretch; }
.dx-fit[data-fit="bleed"] { overflow: hidden; }
.dx-fit.dx-fit--flow { height: auto; }
.dx-fit[data-fit="bleed"] > .dx-mock { top: 0; transform-origin: 50% 0; }
.dx-mock {
  position: absolute; left: 50%; top: 50%; transform-origin: 50% 50%;
  box-sizing: border-box; overflow: hidden;
  border: 1px solid var(--dx-hairline); border-radius: var(--dx-radius-md);
  background: #fff; box-shadow: var(--dx-shadow-card);
  color: var(--dx-ink); font-size: 13px; line-height: 1.4; text-align: left;
  font-family: inherit; letter-spacing: 0;
}
.dx-mock * { box-sizing: border-box; font-family: inherit; }
.dx-mock b { font-weight: 600; }
.dx-mock small { display: block; color: var(--dx-muted); font-size: 11.5px; line-height: 1.35; margin-top: 2px; }
.dx-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--dx-hairline); }
.dx-head-title { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 13.5px; }
.dx-head-meta { margin-left: auto; color: var(--dx-muted); font-size: 12px; }
.dx-mark { position: relative; flex: 0 0 22px; width: 22px; height: 22px; border-radius: 7px; background: var(--dx-navy); }
.dx-mark i { position: absolute; right: 4px; bottom: 4px; width: 7px; height: 7px; border-radius: 2.4px; background: #fff; }
.dx-grow { flex: 1; min-width: 0; }
.dx-grow b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx-grow small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dx-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.dx-chip--green { color: var(--dx-green); background: var(--dx-green-bg); }
.dx-chip--amber { color: var(--dx-amber); background: var(--dx-amber-bg); }
.dx-chip--blue { color: var(--dx-blue); background: var(--dx-blue-bg); }
.dx-chip--neutral { color: var(--dx-body); background: var(--dx-surface); }
.dx-avatar { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; font-size: 11px; font-weight: 600; color: var(--dx-navy); background: var(--dx-tint); }

.dx-seg { display: inline-flex; gap: 2px; margin: 12px 16px 4px; padding: 3px; border-radius: 9px; background: var(--dx-surface); border: 1px solid var(--dx-hairline); }
.dx-seg span { padding: 5px 11px; border-radius: 6px; color: var(--dx-muted); font-size: 12px; font-weight: 500; }
.dx-seg span.is-on { background: #fff; color: var(--dx-ink); box-shadow: 0 1px 2px rgba(14, 18, 27, .1); }

.dx-list { margin: 0; padding: 4px 16px 8px; list-style: none; }
.dx-list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid #edf1f5; }
.dx-list li:first-child { border-top: 0; }
.dx-end { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.dx-end small { margin: 0; font-variant-numeric: tabular-nums; }
.dx-when { color: var(--dx-body); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dx-list--jobs li { gap: 14px; }

.dx-caller { display: flex; align-items: center; gap: 12px; padding: 14px 16px 6px; }
.dx-dl { margin: 0; padding: 4px 16px 6px; }
.dx-dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid #edf1f5; }
.dx-dl > div:first-child { border-top: 0; }
.dx-dl dt { color: var(--dx-muted); }
.dx-dl dd { margin: 0; text-align: right; font-weight: 500; }
.dx-dl--stack dd { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 10px; }
.dx-dl dt { white-space: nowrap; }
.dx-foot > span:first-child { min-width: 0; }
.dx-days { display: inline-flex; gap: 3px; }
.dx-days i { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 5px; font-style: normal; font-size: 10px; font-weight: 600; color: var(--dx-muted); background: var(--dx-surface); }
.dx-days i.is-on { color: #fff; background: var(--dx-navy); }

.dx-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--dx-hairline); background: #fafbfc; color: var(--dx-muted); font-size: 12px; }
.dx-link { color: var(--dx-accent); font-weight: 600; }
.dx-actions { display: flex; gap: 6px; }
.dx-btn { white-space: nowrap; display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--dx-navy); color: #fff; font-size: 12px; font-weight: 600; }
.dx-btn--ghost { background: #fff; color: var(--dx-navy); box-shadow: inset 0 0 0 1px #cfd9e3; }

.dx-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--dx-hairline); }
.dx-stats div { padding: 12px 16px; border-left: 1px solid #edf1f5; }
.dx-stats div:first-child { border-left: 0; }
.dx-stats small { margin: 0 0 4px; }
.dx-stats b { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.dx-diary { margin: 0; padding: 8px 16px 14px; list-style: none; }
.dx-diary li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: stretch; padding: 5px 0; }
.dx-diary time { padding-top: 9px; color: var(--dx-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.dx-slot { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; background: var(--dx-surface); box-shadow: inset 3px 0 0 #9fb5c8; }
.dx-diary li.is-new .dx-slot { background: #edf6f1; box-shadow: inset 3px 0 0 var(--dx-green); }
.dx-diary li.is-hold .dx-slot { background: repeating-linear-gradient(135deg, #f7f9fb 0 6px, #eff3f6 6px 12px); box-shadow: inset 3px 0 0 #cdd8e2; }

.dx-seg--wide { display: flex; }
.dx-seg--wide span { flex: 1; text-align: center; }
.dx-select { flex: 0 0 auto; padding: 6px 26px 6px 10px; border: 1px solid #d5dee7; border-radius: 7px; font-size: 12px; font-weight: 500; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%235d6b7a' stroke-width='1.6'%3E%3Cpath d='m1 1 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 9px center; }

.dx-table { width: calc(100% - 32px); margin: 6px 16px 10px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.dx-table td { padding: 9px 0; border-top: 1px solid #edf1f5; }
.dx-table tbody tr:first-child td { border-top: 0; }
.dx-table td:last-child { text-align: right; white-space: nowrap; padding-left: 16px; }
.dx-table tfoot td { color: var(--dx-muted); padding: 6px 0; border-top: 0; }
.dx-table tfoot tr:first-child td { border-top: 1px solid var(--dx-hairline); padding-top: 10px; }
.dx-table tr.dx-total td { color: var(--dx-ink); font-weight: 600; font-size: 15px; }

.dx-head--chat { background: #f7f8fa; }
.dx-head--chat .dx-head-title > span:last-child small { font-weight: 400; }
.dx-chat { display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 16px; background: #efeae2; }
.dx-bubble { max-width: 84%; margin: 0; padding: 8px 10px 5px; border-radius: 3px 10px 10px 10px; background: #fff; font-size: 12.5px; line-height: 1.45; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); }
.dx-bubble small { margin-top: 3px; text-align: right; font-size: 10px; color: #575f59; }
.dx-bubble--me { align-self: flex-end; border-radius: 10px 3px 10px 10px; background: #d9f6ca; }

/* ---------- Section: value cards (3-up) ---------- */
html .why-card_wrapper .why-card:nth-child(n) { background-color: var(--dx-surface); border: 1px solid #e8edf2; }

/* ---------- Section: receptionist highlight ---------- */
html .datify-highlight-stage { height: auto !important; background: linear-gradient(150deg, #edf3f8 0%, #dbe6f0 100%); display: flex; align-items: center; justify-content: center; padding: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 40px) clamp(64px, 6vw, 84px); }

/* ---------- Section: rules ---------- */
html #datify-rules .conversion-image_wrapper { align-items: center; padding: 40px 32px; background: linear-gradient(150deg, #edf3f8 0%, #dfe9f2 100%); border: 1px solid #dbe5ee; }
html #datify-rules .conversion-card_blur { display: none; }

/* ---------- Section: demo booking ---------- */
html #datify-demo .demo-details_wrapper { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4.5vw, 64px); align-items: center; padding: 20px clamp(20px, 4vw, 56px) 20px 20px; border-radius: var(--dx-radius-xl); background: var(--dx-surface); }
html #datify-demo .demo-video_wrapper { height: 100%; min-height: 560px; max-height: 680px; }
html #datify-demo .demo-video-image { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; border-radius: var(--dx-radius-lg); }
html #datify-demo .demo-form_wrapper { width: 100%; max-width: 480px; gap: 28px; padding: 24px 0; }
html #datify-demo .demo-form-text { max-width: none; font-size: clamp(1.4rem, 1.9vw, 1.75rem); line-height: 1.25; letter-spacing: -0.02em; }
html #datify-demo .form-wrapper { width: 100%; border: 1px solid var(--dx-hairline); border-radius: var(--dx-radius-lg); box-shadow: var(--dx-shadow-card); }
html #datify-demo .demo-form { padding: 28px; gap: 22px; }
html #datify-demo .field-label { color: var(--dx-muted); }

/* ---------- Section: workflow cards (template sets colours inline) ---------- */
html #datify-workflows .case-study_card { background-color: var(--dx-tint) !important; color: var(--dx-ink); border: 1px solid #dbe5ee; }
html #datify-workflows .case-study-sticky:nth-child(2) .case-study_card { background-color: #dce7f1 !important; }
html #datify-workflows .case-study-sticky:nth-child(3) .case-study_card { background-color: var(--dx-navy) !important; color: #fff; border-color: var(--dx-navy); }
html #datify-workflows .case-study_card .case-study-heading { color: var(--dx-ink) !important; }
html #datify-workflows .case-study-sticky:nth-child(3) .case-study_card .case-study-heading { color: #fff !important; }
html #datify-workflows .case-study_card .primary-button { background-color: var(--dx-navy); color: #fff; }
html #datify-workflows .case-study-sticky:nth-child(3) .case-study_card .primary-button { background-color: #fff; color: var(--dx-navy); }
html #datify-workflows .case-card-tag_wrapper { display: none; }
html #datify-workflows .case-card_images_wrapper { min-height: 230px; }

/* ---------- Section: connections ---------- */
.dx-brand-tile { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto; border-radius: 20px; background: #fff; border: 1px solid var(--dx-hairline); box-shadow: var(--dx-shadow-card); }
.dx-brand-tile svg { width: 34px; height: 34px; }
.dx-brand-tile b { color: var(--dx-navy); font-size: 22px; font-weight: 700; letter-spacing: -0.04em; }
html #datify-connections .integration-card p { color: var(--dx-body); }

/* ---------- Section: workspace tabs ---------- */
html #datify-tabs .tab-wrapper { width: 100%; max-width: 760px; margin: 0 auto; }
html #datify-tabs .tabs-menu { gap: 4px; padding: 4px; border-radius: 999px; background: var(--dx-surface); border: 1px solid var(--dx-hairline); align-self: center; }
html #datify-tabs .tab-link { max-width: none; width: auto; padding: 8px 16px; border-radius: 999px; white-space: nowrap; color: var(--dx-muted); font-size: 15px; }
html #datify-tabs .tab-link.w--current { background: #fff; color: var(--dx-ink); box-shadow: 0 1px 3px rgba(14, 18, 27, .1); }
html #datify-tabs .tab-image_wrapper { height: auto !important; padding: clamp(16px, 3vw, 32px); border-radius: var(--dx-radius-lg); background: linear-gradient(150deg, #edf3f8 0%, #dfe9f2 100%); }

/* ---------- Section: final CTA (restores the dark panel the template expects) ---------- */
html #datify-cta .cta-padding {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); align-items: center;
  margin: 40px 0 24px; padding: clamp(40px, 6vw, 88px) clamp(28px, 5vw, 72px);
  border-radius: var(--dx-radius-xl); overflow: hidden;
  background: radial-gradient(ellipse at 85% 10%, rgba(104, 157, 198, .32), transparent 50%), linear-gradient(125deg, #0b1d2f 0%, #153a59 60%, #2c5578 100%);
}
html #datify-cta .cta-text_wrapper { max-width: none; color: #fff; }
html #datify-cta .cta-text_wrapper h2 { font-size: clamp(2.6rem, 5vw, 4.5rem); line-height: 1.02; letter-spacing: -0.035em; color: #fff; }
html #datify-cta .cta-text_wrapper p { margin: 20px 0 0; max-width: 420px; color: rgba(255, 255, 255, .82); font-size: 1.05rem; line-height: 1.55; }
html #datify-cta .cta-form_wrapper { max-width: none; gap: 20px; padding: 32px; border-radius: var(--dx-radius-lg); background: #fff; color: var(--dx-ink); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45); }
html #datify-cta .cta-form_wrapper p { margin: 0; color: var(--dx-body); line-height: 1.55; }
html #datify-cta .cta-form_wrapper .primary-button { background-color: var(--dx-navy); color: #fff; align-self: flex-start; }

/* ---------- Footer ---------- */
html .footer-link_wrapper a { white-space: nowrap; }

/* ---------- Contrast: secondary text at >= 4.5:1 on its actual ground ---------- */
html .dj-disclaimer, html .dj-device-caption, html .dj-customer, html .dj-note, html .dj-record dt,
html .dj-record > header small, html .dc-intro > small, html .dc-disclosure, html .dc-content header small,
html .dc-subtitle, html .dc-timeline, html .dc-tabs button > span, html .dc-number { color: var(--dx-muted); }
html .dj-story > p, html .dc-transcript p, html .dc-outcome p, html .dc-intro > p, html .dj-heading p { color: #56626f; }
html .dc-tabs button { color: #4f5d6b; }
html .dj-chat-head small { color: #66707a; }
html .dj-date { color: #5f635c; }
html .dj-bubble .dj-timestamp, html .dj-composer > div { color: #59615c; }
html .dj-bubble .dj-timestamp { font-size: 9px; }

/* ---------- Mobile ---------- */
@media (max-width: 991px) {
  html #datify-demo .demo-details_wrapper { grid-template-columns: 1fr; padding: 16px; }
  html #datify-demo .demo-video_wrapper { min-height: 0; height: 360px; }
  html #datify-demo .demo-form_wrapper { max-width: none; padding: 8px 8px 16px; }
  html #datify-cta .cta-padding { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  html #datify-tabs .tabs-menu { max-width: 100%; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  html #datify-tabs .tabs-menu::-webkit-scrollbar { display: none; }
  html #datify-overview .overview-card-image_wrapper, html #datify-rules .conversion-image_wrapper, html #datify-workflows .case-card_images_wrapper { height: auto !important; min-height: 0 !important; padding: 16px; }
  html #datify-tabs .tab-link { font-size: 14px; padding: 8px 12px; }
  html #datify-cta .cta-padding { margin: 16px 0 56px; border-radius: var(--dx-radius-lg); }
  html #datify-cta .cta-form_wrapper { padding: 24px; }
  html #datify-workflows .case-card_images_wrapper { min-height: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  html .why-card, html .overview-card { transition: none !important; }
}
@media (max-width: 991px) {
  html .nav-menu.w-nav-menu { box-shadow: 0 28px 48px -20px rgba(11, 29, 47, .5); border-radius: 0 0 16px 16px; }
}

/* =====================================================================
   Overview slider: the template's gradient cards, in Datify colours.
   ===================================================================== */
html #datify-overview .overview-card-image_wrapper.dx-gradient-frame {
  display: flex; align-items: stretch; justify-content: center;
  aspect-ratio: 736 / 540; height: auto; padding: clamp(16px, 6.5%, 48px);
  overflow: hidden;
  border-radius: var(--dx-radius-md);
  background:
    radial-gradient(120% 70% at 50% 118%, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, 0) 48%),
    radial-gradient(70% 75% at 100% 0%, #1d3850 0%, rgba(29, 56, 80, 0) 62%),
    radial-gradient(60% 70% at 0% 88%, #f1cdb0 0%, rgba(241, 205, 176, 0) 70%),
    linear-gradient(160deg, #7ea7cf 0%, #a8c6e2 48%, #dce8f3 100%);
}
html #datify-overview .overview-card_texts p { color: var(--dx-body); }

/* =====================================================================
   App shell (full product screens)
   ===================================================================== */
.dx-mock--app { border: 1px solid rgba(255, 255, 255, .7); border-radius: 10px; box-shadow: 0 40px 80px -32px rgba(11, 29, 47, .55), 0 0 0 1px rgba(14, 18, 27, .05); }
.dx-app { display: flex; height: 100%; }
.dx-side { flex: 0 0 196px; display: flex; flex-direction: column; gap: 2px; padding: 16px 12px; background: #f7f9fb; border-right: 1px solid var(--dx-hairline); }
.dx-side-brand { display: flex; align-items: center; gap: 10px; padding: 2px 6px 14px; }
.dx-side-brand .dx-mark { flex-basis: 28px; width: 28px; height: 28px; border-radius: 9px; }
.dx-side-brand .dx-mark i { width: 9px; height: 9px; right: 5px; bottom: 5px; border-radius: 3px; }
.dx-side-brand b { display: block; font-size: 14px; font-weight: 700; letter-spacing: -0.03em; }
.dx-side-brand small { margin: 0; font-size: 11px; }
.dx-side-search { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; margin-bottom: 8px; border: 1px solid var(--dx-hairline); border-radius: 8px; background: #fff; color: var(--dx-muted); font-size: 12px; }
.dx-side-search svg, .dx-search svg { width: 14px; height: 14px; }
.dx-side-label { margin: 10px 9px 4px !important; font-size: 10.5px !important; text-transform: uppercase; letter-spacing: .06em; }
.dx-nav-item { display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 9px; border-radius: 7px; color: var(--dx-body); font-size: 12.5px; }
.dx-nav-item svg { width: 16px; height: 16px; flex: none; color: var(--dx-muted); }
.dx-nav-item.is-on { background: #fff; color: var(--dx-ink); font-weight: 600; box-shadow: 0 1px 2px rgba(14, 18, 27, .06), inset 0 0 0 1px var(--dx-hairline); }
.dx-nav-item.is-on svg { color: var(--dx-navy); }
.dx-nav-item em { margin-left: auto; padding: 1px 6px; border-radius: 999px; background: var(--dx-navy); color: #fff; font-size: 10.5px; font-style: normal; font-weight: 600; }
.dx-side-credits { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding: 10px; border: 1px solid var(--dx-hairline); border-radius: 10px; background: #fff; }
.dx-side-credits small { margin: 0; }
.dx-side-credits b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.dx-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #fff; }
.dx-topbar { display: flex; align-items: center; justify-content: space-between; flex: 0 0 58px; padding: 0 22px; border-bottom: 1px solid var(--dx-hairline); }
.dx-topbar b { font-size: 15px; letter-spacing: -0.01em; }
.dx-topbar small { display: inline; margin-left: 10px; }
.dx-top-actions { display: flex; align-items: center; gap: 8px; }
.dx-body { position: relative; flex: 1; min-height: 0; padding: 18px 22px; overflow: hidden; background: #fbfcfd; }
.dx-btn--sm { height: 28px; padding: 0 12px; font-size: 12px; }
.dx-seg--top { margin: 0; }
.dx-seg--top span { padding: 3px 10px; font-size: 11.5px; }
.dx-search { display: flex; align-items: center; gap: 6px; width: 180px; height: 28px; padding: 0 10px; border: 1px solid var(--dx-hairline); border-radius: 8px; color: var(--dx-muted); font-size: 12px; }

/* Diary week */
.dx-week { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--dx-hairline); border-radius: 10px; background: #fff; overflow: hidden; }
.dx-week-head { display: grid; grid-template-columns: 52px repeat(5, 1fr); border-bottom: 1px solid var(--dx-hairline); }
.dx-week-head span { padding: 10px 8px; color: var(--dx-body); font-size: 12px; font-weight: 600; }
.dx-week-head span.is-today { color: var(--dx-navy); box-shadow: inset 0 -2px 0 var(--dx-navy); }
.dx-week-grid { position: relative; flex: 1; display: grid; grid-template-columns: 52px repeat(5, 1fr); background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(12.5% - 1px), #eef2f6 calc(12.5% - 1px), #eef2f6 12.5%); }
.dx-week-hours { display: grid; grid-template-rows: repeat(8, 1fr); }
.dx-week-hours span { padding: 4px 8px; color: var(--dx-muted); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.dx-week-col { position: relative; border-left: 1px solid #eef2f6; }
.dx-event { position: absolute; left: 4px; right: 4px; padding: 5px 7px; overflow: hidden; border-radius: 6px; background: #eaf1f7; box-shadow: inset 3px 0 0 #7d9db8; line-height: 1.25; }
.dx-event b { display: block; overflow: hidden; font-size: 11.5px; white-space: nowrap; text-overflow: ellipsis; }
.dx-event small { margin-top: 1px; overflow: hidden; font-size: 10.5px; white-space: nowrap; text-overflow: ellipsis; }
.dx-event--new { background: #e3f4ea; box-shadow: inset 3px 0 0 var(--dx-green), 0 0 0 2px rgba(15, 110, 68, .22); }
.dx-event--hold { background: repeating-linear-gradient(135deg, #f6f8fa 0 6px, #eef2f5 6px 12px); box-shadow: inset 3px 0 0 #c6d3df; }
.dx-toast { position: absolute; right: 22px; bottom: 18px; display: flex; align-items: center; gap: 12px; max-width: 470px; padding: 12px 14px; border: 1px solid var(--dx-hairline); border-radius: 12px; background: #fff; box-shadow: 0 18px 40px -16px rgba(11, 29, 47, .35); transition: opacity .4s ease, transform .5s cubic-bezier(.2, .8, .25, 1); }
.dx-toast b { display: block; font-size: 12.5px; }
.dx-toast .dx-mark { flex-basis: 26px; width: 26px; height: 26px; }
.is-playing:not(.is-toast) .dx-toast { opacity: 0; transform: translateY(14px); }

/* Jobs dashboard */
.dx-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.dx-kpis > div { padding: 12px 14px; border: 1px solid var(--dx-hairline); border-radius: 10px; background: #fff; }
.dx-kpis small { margin: 0 0 6px; }
.dx-kpis b { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.dx-panels { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; margin-bottom: 14px; }
.dx-panel { padding: 12px 14px; border: 1px solid var(--dx-hairline); border-radius: 10px; background: #fff; }
.dx-panel > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 12.5px; }
.dx-bars { display: flex; align-items: flex-end; gap: 10px; height: 118px; padding-top: 16px; border-bottom: 1px solid #e7edf2; }
.dx-bars i { position: relative; flex: 1; height: calc(var(--v) * 100%); border-radius: 5px 5px 2px 2px; background: #c5d6e6; transform-origin: bottom; transition: transform .7s cubic-bezier(.2, .8, .25, 1) calc(var(--i) * 60ms); }
.dx-bars i.is-now { background: var(--dx-navy); }
.dx-bars em { position: absolute; top: -16px; left: 0; right: 0; color: var(--dx-muted); font-size: 10px; font-style: normal; text-align: center; }
.is-playing:not(.is-bars) .dx-bars i { transform: scaleY(0); transition: none; }
.dx-bars-axis { display: flex; gap: 10px; }
.dx-bars-axis span { flex: 1; padding-top: 5px; color: var(--dx-muted); font-size: 9.5px; text-align: center; white-space: nowrap; }
.dx-attn ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dx-attn li { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid #f1e2c4; border-radius: 8px; background: #fdf8ef; }
.dx-attn li > span:nth-child(2) { flex: 1; min-width: 0; }
.dx-attn b { display: block; font-size: 12px; }
.dx-grid-table { width: 100%; border: 1px solid var(--dx-hairline); border-radius: 10px; border-collapse: separate; border-spacing: 0; overflow: hidden; background: #fff; font-size: 12px; }
.dx-grid-table th { padding: 8px 12px; border-bottom: 1px solid var(--dx-hairline); background: #f7f9fb; color: var(--dx-muted); font-size: 11px; font-weight: 500; text-align: left; }
.dx-grid-table td { padding: 9px 12px; border-bottom: 1px solid #eef2f6; }
.dx-grid-table tr:last-child td { border-bottom: 0; }
.dx-grid-table td:first-child { font-weight: 600; }

/* Quote + composer */
.dx-split { display: grid; grid-template-columns: 1fr 280px; gap: 16px; height: 100%; }
.dx-doc { display: flex; flex-direction: column; padding: 18px 20px; border: 1px solid var(--dx-hairline); border-radius: 10px; background: #fff; }
.dx-doc > header { display: flex; align-items: center; justify-content: space-between; }
.dx-doc > header small { margin: 0; }
.dx-doc > header b { font-size: 20px; letter-spacing: -0.02em; }
.dx-doc-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0 4px; padding: 12px 0; border-top: 1px solid #eef2f6; border-bottom: 1px solid #eef2f6; }
.dx-doc-meta small { margin: 0; }
.dx-doc-meta b { display: block; margin: 2px 0; font-size: 12.5px; }
.dx-table--doc { width: 100%; margin: 4px 0 0; }
.dx-table--doc thead td { padding: 6px 0; border: 0; color: var(--dx-muted); font-size: 11px; }
.dx-table--doc td:nth-child(2) { width: 40px; text-align: center; }
.dx-added td { transition: opacity .4s ease, background-color 1.6s ease; }
.is-playing:not(.is-added) .dx-added td { opacity: 0; }
.is-playing.is-added .dx-added td { animation: dx-flash 1.8s ease-out; }
.dx-doc > footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: auto; padding-top: 12px; }
.dx-composer { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--dx-hairline); border-radius: 10px; background: #fff; }
.dx-composer > header { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--dx-hairline); }
.dx-composer > header b { display: block; font-size: 12.5px; }
.dx-thread { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 14px; background: #f7f9fb; }
.dx-msg { max-width: 90%; margin: 0; padding: 9px 11px; border: 1px solid var(--dx-hairline); border-radius: 4px 12px 12px 12px; background: #fff; font-size: 12px; line-height: 1.45; animation: dx-msg-in .35s cubic-bezier(.2, .8, .25, 1); }
.dx-msg--me { align-self: flex-end; border-color: var(--dx-navy); border-radius: 12px 4px 12px 12px; background: var(--dx-navy); color: #fff; }
.dx-input { display: flex; align-items: center; justify-content: space-between; height: 36px; margin: 10px; padding: 0 5px 0 12px; border: 1px solid #d5dee7; border-radius: 999px; background: #fff; color: var(--dx-muted); font-size: 12px; }
.dx-input svg { width: 26px; height: 26px; padding: 6px; border-radius: 50%; background: var(--dx-navy); color: #fff; }

/* Ask Datify */
.dx-ask { display: flex; flex-direction: column; height: 100%; max-width: 660px; margin: 0 auto; }
.dx-ask-q { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.dx-bubble-q { min-height: 38px; padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: var(--dx-navy); color: #fff; font-size: 13px; }
.dx-bubble-q.is-typing::after { content: ''; display: inline-block; width: 1.5px; height: 14px; margin-left: 2px; vertical-align: -2px; background: #fff; animation: dx-caret .8s steps(1) infinite; }
.dx-ask-a { padding: 16px; border: 1px solid var(--dx-hairline); border-radius: 12px; background: #fff; box-shadow: 0 10px 30px -22px rgba(11, 29, 47, .35); transition: opacity .4s ease, transform .5s cubic-bezier(.2, .8, .25, 1); }
.is-playing:not(.is-answered) .dx-ask-a { opacity: 0; transform: translateY(10px); }
.is-playing:not(.is-answered) .dx-ask-a .dx-in { opacity: 0; transform: translateY(8px); transition: none; }
.dx-ask-a > header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.dx-ask-a > header b { display: block; font-size: 14px; }
.dx-ask-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.dx-ask-cards > div { padding: 12px; border: 1px solid #e6edf3; border-radius: 10px; background: #f5f8fb; }
.dx-ask-cards small { margin: 0 0 4px; }
.dx-ask-cards b { display: block; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.dx-ask-cards span { color: var(--dx-muted); font-size: 11px; }
.dx-ask-list { margin: 0 0 12px; padding: 0; list-style: none; }
.dx-ask-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #eef2f6; font-size: 12.5px; }
.dx-ask-list svg { flex: none; width: 16px; height: 16px; color: var(--dx-accent); }
.dx-ask-actions { display: flex; gap: 8px; }
.dx-input--wide { height: 42px; margin: auto 0 0; }

/* =====================================================================
   Motion: staggered entrance, live states, loops. Markup is the end
   state; .is-playing only exists while a scene runs.
   ===================================================================== */
.dx-in { opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .6s cubic-bezier(.2, .8, .25, 1); transition-delay: calc(var(--i, 0) * 80ms + 120ms); }
.is-live .dx-in { opacity: 1; transform: none; }
[data-drop] { transition: opacity .4s ease, transform .6s cubic-bezier(.2, .9, .25, 1.15); }
.is-playing:not(.is-dropped) [data-drop] { opacity: 0; transform: translateY(-14px) scale(.96); }
.is-playing.is-dropped [data-drop] .dx-slot, .is-playing.is-dropped .dx-event--new { animation: dx-ring 1.6s .35s ease-out; }
.dx-swap { display: inline-grid; }
.dx-swap > span { grid-area: 1 / 1; justify-self: end; transition: opacity .3s ease, transform .35s ease; }
.dx-swap-b { opacity: 0; transform: translateY(5px); }
.dx-swap.is-b .dx-swap-a { opacity: 0; transform: translateY(-5px); }
.dx-swap.is-b .dx-swap-b { opacity: 1; transform: none; }
.dx-pulse { position: relative; display: inline-block; flex: none; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: currentColor; }
.dx-pulse::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 1.5px solid currentColor; opacity: 0; animation: dx-pulse 1.6s ease-out infinite; }
.dx-attn .dx-pulse { margin: 0; color: #c27a0a; }
.dx-pulse--amber { color: #c27a0a; }
.is-pop { animation: dx-pop .55s cubic-bezier(.2, .9, .3, 1.4); }
.dx-days i { transition: background-color .25s ease calc(var(--d) * 90ms), color .25s ease calc(var(--d) * 90ms); }
.is-playing:not(.is-days) .dx-days i.is-on { background: var(--dx-surface); color: var(--dx-muted); transition: none; }
.dx-seg--slide { position: relative; }
.dx-seg--slide span { position: relative; z-index: 1; transition: color .3s ease; }
.dx-seg--slide span.is-on { background: transparent; box-shadow: none; }
.dx-seg-thumb { position: absolute; top: 3px; bottom: 3px; left: calc(3px + var(--seg, 2) * (100% - 6px) / 3); width: calc((100% - 6px) / 3); border-radius: 6px; background: #fff; box-shadow: 0 1px 3px rgba(14, 18, 27, .12); transition: left .45s cubic-bezier(.3, .8, .25, 1); }
.is-hidden { display: none !important; }
.dx-bubble { animation: dx-msg-in .35s cubic-bezier(.2, .8, .25, 1); }
.dx-typing { display: none; align-self: flex-start; gap: 4px; margin: 0; padding: 10px 12px; border-radius: 4px 12px 12px 12px; background: #fff; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); }
.dx-typing.is-on { display: inline-flex; }
.dx-typing i { width: 6px; height: 6px; border-radius: 50%; background: #8d99a6; animation: dx-dot 1s ease-in-out infinite; }
.dx-typing i:nth-child(2) { animation-delay: .15s; }
.dx-typing i:nth-child(3) { animation-delay: .3s; }
.dx-fit { transition: transform .5s cubic-bezier(.2, .8, .25, 1); }
.overview-card:hover .dx-fit, .why-card:hover .dx-fit { transform: translateY(-4px); }

@keyframes dx-ring { 0% { box-shadow: inset 3px 0 0 var(--dx-green), 0 0 0 0 rgba(15, 110, 68, .45); } 100% { box-shadow: inset 3px 0 0 var(--dx-green), 0 0 0 10px rgba(15, 110, 68, 0); } }
@keyframes dx-pulse { 0% { opacity: .7; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.8); } }
@keyframes dx-pop { 0% { transform: scale(1); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes dx-msg-in { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes dx-dot { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-3px); opacity: 1; } }
@keyframes dx-caret { 50% { opacity: 0; } }
@keyframes dx-flash { 0% { background-color: #e3f4ea; } 100% { background-color: transparent; } }

/* Bigger product visuals in the workflow cards and workspace tabs */
html #datify-workflows .case-study-card_texts { flex: 1 1 50%; }
html #datify-workflows .case-card_images_wrapper { flex: 0 0 46%; max-width: none; min-height: 320px; }
html #datify-workflows .case-study-card_texts { max-width: 520px; }
html #datify-tabs .tab-wrapper { max-width: 960px; }

@media (max-width: 767px) {
  html #datify-workflows .case-card_images_wrapper { flex-basis: auto; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .dx-in, [data-drop], .dx-toast, .dx-ask-a, .dx-bars i, .dx-swap > span, .dx-seg-thumb, .dx-fit { transition: none !important; opacity: 1 !important; transform: none !important; }
  .dx-pulse::after, .dx-typing i, .dx-msg, .dx-bubble, .is-pop { animation: none !important; }
}
html .slide_arrow:hover, html .slide_arrow:focus, html .slide_arrow:active, html .slide_arrow:focus-visible { background-color: var(--dx-navy) !important; color: #fff !important; }
html .slide_arrow { transition: background-color .2s ease, color .2s ease; }

/* =====================================================================
   One visual language: every product visual sits on the Overview's
   gradient, with the app-window shadow.
   ===================================================================== */
html .datify-value-frame,
html .datify-highlight-stage,
html #datify-rules .conversion-image_wrapper,
html #datify-tabs .tab-image_wrapper {
  border: 0;
  background:
    radial-gradient(120% 70% at 50% 118%, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, 0) 50%),
    radial-gradient(70% 75% at 100% 0%, rgba(29, 56, 80, .9) 0%, rgba(29, 56, 80, 0) 62%),
    radial-gradient(60% 70% at 0% 88%, #f1cdb0 0%, rgba(241, 205, 176, 0) 70%),
    linear-gradient(160deg, #7ea7cf 0%, #a8c6e2 48%, #dce8f3 100%);
}
html .datify-value-frame { border-radius: var(--dx-radius-md); }
html .datify-highlight-stage, html #datify-rules .conversion-image_wrapper, html #datify-tabs .tab-image_wrapper { border-radius: var(--dx-radius-lg); }
.dx-fit > .dx-mock { border-color: rgba(255, 255, 255, .75); box-shadow: 0 30px 60px -28px rgba(11, 29, 47, .5), 0 0 0 1px rgba(14, 18, 27, .05); }
html .datify-work-status { box-shadow: 0 24px 48px -20px rgba(11, 29, 47, .5); }
/* Workflow cards: the visual sits on the card colour itself, so keep it lighter. */
html #datify-workflows .dx-fit > .dx-mock { box-shadow: 0 24px 48px -26px rgba(11, 29, 47, .4), 0 0 0 1px rgba(14, 18, 27, .05); }

/* Nav: Log in as a quiet outlined button beside Book a demo */
/* Log in: a plain text link sitting just left of Book a demo. */
html .nav-buttons-wrap { gap: 6px; }
html .nav-buttons-wrap a.dx-nav-login { display: inline-flex; align-items: center; height: 38px; padding: 0 12px; border-radius: 8px; background: transparent; box-shadow: none; color: var(--dx-ink); font-weight: 500; transition: background-color .2s ease; }
html .nav-buttons-wrap a.dx-nav-login:hover { background: rgba(14, 18, 27, .05); }
html .nav-buttons-wrap a.dx-nav-login:focus-visible { outline: 2px solid var(--dx-navy); outline-offset: 2px; }

/* =====================================================================
   Demo booking (homepage section + book.html)
   ===================================================================== */
html .bk-section { background: linear-gradient(90deg, #e3eef9 0%, rgba(227, 238, 249, 0) 14%, rgba(227, 238, 249, 0) 86%, #e3eef9 100%); }
html .bk-section .demo_header { max-width: 720px; }
.bk-sub { margin: 16px 0 0; color: var(--dx-body); font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.5; text-align: center; }
html .bk-section--page { padding-top: 40px; }
html .bk-section--page .bk-title { font-size: clamp(2.6rem, 5vw, 4.25rem); line-height: 1.04; letter-spacing: -0.03em; }
.bk-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 3vw, 48px); align-items: start; width: 100%; margin-top: 8px; }
.bk-form { display: flex; flex-direction: column; gap: 22px; padding: clamp(24px, 3.2vw, 44px); border: 1px solid var(--dx-hairline); border-radius: var(--dx-radius-xl); background: #fff; box-shadow: 0 30px 70px -48px rgba(11, 29, 47, .35); }
.bk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bk-field { display: flex; flex-direction: column; gap: 8px; margin: 0; font-weight: 400; }
.bk-field > span:first-child, .bk-when legend { color: var(--dx-ink); font-size: 15px; font-weight: 500; }
.bk-field i, .bk-when legend i { color: var(--dx-accent); font-style: normal; }
.bk-field input, .bk-field select { width: 100%; height: 52px; margin: 0; padding: 0 16px; border: 1px solid #d9e1e9; border-radius: 12px; background: #fff; color: var(--dx-ink); font: inherit; font-size: 16px; transition: border-color .2s ease, box-shadow .2s ease; }
.bk-field input::placeholder { color: #7b8896; }
.bk-field input:focus, .bk-field select:focus { outline: none; border-color: var(--dx-navy); box-shadow: 0 0 0 4px rgba(29, 56, 80, .12); }
.bk-field.is-invalid input, .bk-field.is-invalid select { border-color: #b3401f; box-shadow: 0 0 0 3px rgba(179, 64, 31, .1); }
.bk-phone { display: flex; align-items: stretch; height: 52px; border: 1px solid #d9e1e9; border-radius: 12px; overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.bk-phone:focus-within { border-color: var(--dx-navy); box-shadow: 0 0 0 4px rgba(29, 56, 80, .12); }
.bk-phone input { height: auto; border: 0; border-radius: 0; box-shadow: none !important; }
.bk-cc { display: flex; align-items: center; gap: 8px; padding: 0 14px; border-right: 1px solid #e3e9ef; background: #f7f9fb; color: var(--dx-ink); font-size: 16px; }
.bk-cc svg { width: 24px; height: 12px; border-radius: 2px; }
.bk-select { position: relative; }
.bk-select select { appearance: none; padding-right: 44px; cursor: pointer; }
.bk-select::after { content: ''; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 1.8px solid var(--dx-body); border-bottom: 1.8px solid var(--dx-body); transform: rotate(45deg); pointer-events: none; }
.bk-when { margin: 0; padding: 0; border: 0; }
.bk-when legend { display: flex; align-items: baseline; gap: 6px; width: 100%; margin-bottom: 10px; padding: 0; }
.bk-when legend small { margin-left: auto; color: var(--dx-muted); font-size: 13px; font-weight: 400; }
.bk-days { display: flex; gap: 8px; margin: 0 -4px 12px; padding: 4px; overflow-x: auto; scrollbar-width: none; }
.bk-days::-webkit-scrollbar { display: none; }
.bk-days button { flex: 0 0 64px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 9px 0; border: 1px solid #d9e1e9; border-radius: 12px; background: #fff; color: var(--dx-ink); font: inherit; cursor: pointer; transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.bk-days button small { color: var(--dx-muted); font-size: 11.5px; }
.bk-days button b { font-size: 18px; font-weight: 600; }
.bk-days button:hover { border-color: var(--dx-navy); }
.bk-days button[aria-selected="true"] { border-color: var(--dx-navy); background: var(--dx-navy); color: #fff; }
.bk-days button[aria-selected="true"] small { color: rgba(255, 255, 255, .8); }
.bk-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; min-height: 44px; }
.bk-times button { height: 44px; border: 1px solid #d9e1e9; border-radius: 10px; background: #fff; color: var(--dx-ink); font: inherit; font-size: 15px; font-variant-numeric: tabular-nums; cursor: pointer; transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.bk-times button:hover { border-color: var(--dx-navy); }
.bk-times button[aria-selected="true"] { border-color: var(--dx-navy); background: var(--dx-navy); color: #fff; }
.bk-note { grid-column: 1 / -1; align-self: center; color: var(--dx-muted); font-size: 14px; line-height: 1.5; }
.bk-note--info { padding: 12px 14px; border-radius: 10px; background: var(--dx-tint); color: var(--dx-body); }
.bk-consent { margin: 0; color: var(--dx-muted); font-size: 14px; line-height: 1.55; }
.bk-error { margin: -6px 0 0; color: #a3391b; font-size: 14px; }
.bk-submit { display: inline-flex; align-self: flex-start; align-items: center; gap: 14px; height: 56px; padding: 0 8px 0 24px; border: 0; border-radius: 14px; background: var(--dx-navy); color: #fff; font: inherit; font-size: 17px; font-weight: 500; text-decoration: none; cursor: pointer; transition: background-color .2s ease, transform .2s ease; }
.bk-submit b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .14); }
.bk-submit svg { width: 18px; height: 18px; transition: transform .25s ease; }
.bk-submit:hover { background: var(--dx-navy-hover); }
.bk-submit:hover svg { transform: translateX(2px); }
.bk-submit:disabled { opacity: .7; cursor: progress; }
.bk-submit.is-sending b { animation: dx-pulse-soft 1s ease-in-out infinite; }
.bk-done { align-items: flex-start; gap: 14px; }
.bk-done h3 { margin: 0; font-size: 32px; font-weight: 400; letter-spacing: -0.02em; }
.bk-done p { margin: 0 0 10px; color: var(--dx-body); font-size: 17px; line-height: 1.55; }
.bk-done-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--dx-green-bg); color: var(--dx-green); }
.bk-done-mark svg { width: 22px; height: 22px; }

.bk-visual { position: sticky; top: 104px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; aspect-ratio: 4 / 4.6; padding: clamp(20px, 3vw, 36px); overflow: hidden; border-radius: var(--dx-radius-xl);
  background:
    radial-gradient(120% 60% at 50% 120%, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 55%),
    radial-gradient(70% 70% at 100% 0%, #1d3850 0%, rgba(29, 56, 80, 0) 64%),
    radial-gradient(65% 70% at 0% 90%, #f1cdb0 0%, rgba(241, 205, 176, 0) 70%),
    linear-gradient(160deg, #7ea7cf 0%, #a8c6e2 48%, #dce8f3 100%); }
.bk-phone-card { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, .75); border-radius: 18px; background: #efeae2; box-shadow: 0 30px 60px -28px rgba(11, 29, 47, .55); }
.bk-phone-card > header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #f7f8fa; border-bottom: 1px solid var(--dx-hairline); }
.bk-phone-card > header .dx-mark { flex-basis: 32px; width: 32px; height: 32px; border-radius: 10px; }
.bk-phone-card > header .dx-mark i { width: 10px; height: 10px; right: 6px; bottom: 6px; border-radius: 3px; }
.bk-phone-card > header b { display: block; font-size: 15px; }
.bk-phone-card > header small { display: block; color: var(--dx-muted); font-size: 12px; }
.bk-thread { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 18px 16px; overflow: hidden; }
.bk-msg { max-width: 84%; margin: 0; padding: 10px 13px; border-radius: 4px 14px 14px 14px; background: #fff; color: var(--dx-ink); font-size: 15px; line-height: 1.45; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); animation: dx-msg-in .35s cubic-bezier(.2, .8, .25, 1); }
.bk-msg--out { align-self: flex-end; border-radius: 14px 4px 14px 14px; background: #d9f6ca; }
.bk-typing { display: inline-flex; align-self: flex-start; gap: 4px; margin: 0; padding: 12px 14px; border-radius: 4px 14px 14px 14px; background: #fff; }
.bk-typing i { width: 7px; height: 7px; border-radius: 50%; background: #8d99a6; animation: dx-dot 1s ease-in-out infinite; }
.bk-typing i:nth-child(2) { animation-delay: .15s; }
.bk-typing i:nth-child(3) { animation-delay: .3s; }
.bk-dock { display: flex; flex-direction: column; gap: 10px; }
.bk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-chips button { height: 38px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 999px; background: rgba(255, 255, 255, .28); color: var(--dx-ink); font: inherit; font-size: 15px; backdrop-filter: blur(12px); cursor: pointer; transition: background-color .2s ease; }
.bk-chips button:hover, .bk-chips button[aria-selected="true"] { background: rgba(255, 255, 255, .85); }
.bk-prompt { display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 8px 0 20px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 999px; background: rgba(255, 255, 255, .55); color: var(--dx-ink); font-size: 17px; backdrop-filter: blur(14px); cursor: pointer; }
.bk-prompt b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--dx-navy); color: #fff; }
.bk-prompt svg { width: 18px; height: 18px; }
@keyframes dx-pulse-soft { 50% { opacity: .5; } }

@media (max-width: 991px) {
  .bk-wrap { grid-template-columns: 1fr; }
  .bk-visual { position: relative; top: 0; aspect-ratio: auto; min-height: 520px; }
}
@media (max-width: 479px) {
  .bk-row { grid-template-columns: 1fr; }
  .bk-submit { align-self: stretch; justify-content: space-between; }
  .bk-chips button { font-size: 14px; height: 34px; }
  .bk-prompt { height: 54px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .bk-msg, .bk-typing i, .bk-submit.is-sending b { animation: none !important; }
}
.bk-form, .bk-when { min-width: 0; }
html .nav-buttons-wrap a.dx-nav-login { overflow: hidden; }
html .nav-buttons-wrap a.dx-nav-login .dx-label { overflow: hidden; }

/* =====================================================================
   Hero agent card (replaces the WhatsApp preview): orb + one calm line.
   ===================================================================== */
html .agent-card.dx-agent-card { display: flex; align-items: center; gap: 14px; width: auto; min-width: 0; padding: 16px 22px 16px 16px; border-radius: 18px; background: #fff; box-shadow: 0 24px 48px -24px rgba(5, 22, 38, .45); text-align: left; }
.dx-orb { position: relative; flex: 0 0 48px; width: 48px; height: 48px; overflow: hidden; border-radius: 50%; background: conic-gradient(from 0deg, #1d3850, #4f84b6, #a8c6e2, #f1cdb0, #e9a98a, #4f84b6, #1d3850); animation: dx-orb-spin 9s linear infinite; }
.dx-orb::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, 0) 42%), radial-gradient(circle at 70% 78%, rgba(11, 29, 47, .35) 0%, rgba(11, 29, 47, 0) 55%); filter: blur(1px); }
.dx-agent-card .agent-card_texts { gap: 2px; }
.dx-agent-card .text-size-small { font-size: 17px; line-height: 1.3; }
.dx-agent-card .text-size-small.text-color { color: var(--dx-muted); }
.dx-agent-card .dx-agent-status { color: var(--dx-ink); white-space: nowrap; transition: opacity .28s ease, transform .28s ease; }
.dx-agent-card .dx-agent-status.is-out { opacity: 0; transform: translateY(4px); }
@keyframes dx-orb-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .dx-orb { animation: none; } }

/* Hero on phones: calmer type, compact card, nothing oversized. */
@media (max-width: 767px) {
  html .section.hero .hero-bottom_wrapper { gap: 20px; }
  html .section.hero .hero-star_texts_wrapper { max-width: 22rem; margin: 0 auto; gap: 12px; }
  html .section.hero .hero-star_texts_wrapper p { font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .86); }
  html .section.hero .hero-star_wrapper .text-size-small { font-size: 14px; }
  html .agent-card.dx-agent-card { align-self: center; padding: 12px 18px 12px 12px; border-radius: 16px; }
  .dx-orb { flex-basis: 40px; width: 40px; height: 40px; }
  .dx-agent-card .text-size-small { font-size: 15px; }
}
@media (max-width: 479px) {
  html .section.hero .heading-style-h1 { font-size: clamp(2.6rem, 12.5vw, 3.4rem); line-height: 1.02; }
  html .section.hero .hero-texts .text-size-regular { font-size: 16px; line-height: 1.45; max-width: 19rem; margin: 0 auto; }
  html .section.hero .primary-button { min-width: 200px; justify-content: center; }
}
/* Soft sphere: blurred, rotating colour field under a glossy highlight. */
.dx-orb { background: #a8c6e2; animation: none; isolation: isolate; }
.dx-orb::before { content: ''; position: absolute; inset: -25%; z-index: -1; background: conic-gradient(from 0deg, #1d3850, #4f84b6, #a8c6e2, #f1cdb0, #e9a98a, #4f84b6, #1d3850); filter: blur(7px); animation: dx-orb-spin 8s linear infinite; }
.dx-orb::after { filter: none; background: radial-gradient(circle at 30% 26%, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .25) 22%, rgba(255, 255, 255, 0) 46%), radial-gradient(circle at 72% 80%, rgba(11, 29, 47, .28) 0%, rgba(11, 29, 47, 0) 58%); }
.dx-agent-card .dx-agent-status { min-width: 12.6em; }
@media (prefers-reduced-motion: reduce) { .dx-orb::before { animation: none; } }
.bk-check { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 14px 16px; border: 1px solid #d9e1e9; border-radius: 12px; background: var(--dx-surface); cursor: pointer; font-weight: 400; }
.bk-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--dx-navy); cursor: pointer; }
.bk-check span { color: var(--dx-ink); font-size: 15px; line-height: 1.5; }

/* ---------- Resources menu (desktop dropdown + mobile group) ---------- */
html .dx-res-dd .drop-down_links { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.dx-nl { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 420px; text-align: left; }
.dx-nl .nav-heading { color: var(--dx-accent); font-size: 14px; line-height: 1.3; }
.dx-nl-text { margin: 0; color: #181b25; font-size: 14px; line-height: 1.45; }
.dx-nl-form { display: flex; gap: 8px; width: 100%; margin: 0; }
.dx-nl-form input {
  flex: 1 1 auto; min-width: 0; height: 44px; margin: 0; padding: 0 14px;
  border: 1px solid var(--dx-hairline); border-radius: var(--dx-radius-sm); background: #fff;
  color: var(--dx-ink); font: inherit; font-family: 'Inter Tight', sans-serif; font-size: 16px; line-height: 1.3;
}
.dx-nl-form input::placeholder { color: var(--dx-muted); }
.dx-nl-form input:focus { outline: none; border-color: var(--dx-navy); box-shadow: 0 0 0 3px rgba(29, 56, 80, .14); }
.dx-nl-form button {
  flex: none; height: 44px; padding: 0 18px; border: 0; border-radius: var(--dx-radius-sm);
  background: var(--dx-navy); color: #fff; font-family: 'Inter Tight', sans-serif; font-size: 14px; font-weight: 500; cursor: pointer;
}
.dx-nl-form button:hover { background: var(--dx-navy-hover); }
.dx-nl-form button:disabled { opacity: .6; cursor: default; }
.dx-nl-msg { margin: 0; min-height: 0; font-size: 13px; line-height: 1.4; }
.dx-nl-msg:empty { display: none; }
.dx-nl-msg.is-error { color: #a1281e; }
.dx-nl-done { margin: 0; padding: 10px 14px; border-radius: var(--dx-radius-sm); background: var(--dx-green-bg); color: var(--dx-green); font-size: 14px; }
html .tab-menus .dx-mres-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  margin: 0; padding: 0 0 .5rem; border: 0; border-bottom: 1px solid #e5e5e5; background: none;
  color: var(--dx-accent); font-family: 'Inter Tight', sans-serif; font-size: 14px; text-align: left; cursor: pointer;
}
.dx-mres-toggle svg { transition: transform .2s ease; }
.dx-mres-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.dx-mres-panel { display: flex; flex-direction: column; gap: 18px; width: 100%; }
.dx-mres-panel[hidden] { display: none; }
.dx-mres-panel .dx-nl { max-width: none; width: 100%; }
