/*!
 * AI Agent VN design system
 * Visual language follows tailadmin.com: brand #465fff, cool grays, 8px controls,
 * 16-24px framed cards, boxed gray hero, dark CTA and footer.
 * Every class is prefixed `ds-` so it can sit next to legacy page CSS.
 *
 * 1 Tokens  2 Base  3 Layout  4 Buttons  5 Header  6 Hero  7 Cards & content
 * 8 Forms  9 Motion components (reveal, marquee, carousel, modal)  10 Footer
 * 11 Blog  12 Reduced motion
 */

/* ---------- 1. Tokens ---------- */
:root {
  --brand-25: #f2f7ff; --brand-50: #ecf3ff; --brand-100: #dde9ff; --brand-200: #c2d6ff;
  --brand-300: #9cb9ff; --brand-400: #7592ff; --brand-500: #465fff; --brand-600: #3641f5;
  --brand-700: #2a31d8; --brand-800: #252dae; --brand-900: #262e89; --brand-950: #161950;
  --gray-25: #fcfcfd; --gray-50: #f9fafb; --gray-100: #f2f4f7; --gray-200: #e4e7ec;
  --gray-300: #d0d5dd; --gray-400: #98a2b3; --gray-500: #667085; --gray-600: #475467;
  --gray-700: #344054; --gray-800: #1d2939; --gray-900: #101828; --gray-950: #0c111d;
  --success-50: #ecfdf3; --success-500: #12b76a; --success-700: #027a48;
  --warning-50: #fffaeb; --warning-500: #f79009; --warning-700: #b54708;
  --error-50: #fef3f2; --error-500: #f04438; --error-700: #b42318;

  --font: "Be Vietnam Pro", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 8px; --radius: 12px; --radius-lg: 16px; --radius-xl: 20px; --radius-2xl: 24px; --radius-3xl: 32px;
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, .1), 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-md: 0 4px 8px -2px rgba(16, 24, 40, .1), 0 2px 4px -2px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 16px -4px rgba(16, 24, 40, .08), 0 4px 6px -2px rgba(16, 24, 40, .03);
  --shadow-xl: 0 20px 24px -4px rgba(16, 24, 40, .08), 0 8px 8px -4px rgba(16, 24, 40, .03);
  --ring: 0 0 0 4px rgba(70, 95, 255, .14);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 72px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body.ds { overflow-x: clip; margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--gray-600); background: #fff; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
/* Landing content (.pg) keeps its own base styles, so these stop at its edge */
:where(.ds) :where(img, svg, video, iframe):where(:not(.pg, .pg *)) { max-width: 100%; }
:where(.ds) img:where(:not(.pg, .pg *)) { height: auto; }
:where(.ds) :where(h1, h2, h3, h4, p, ul, ol, figure):where(:not(.pg, .pg *)) { margin: 0; }
:where(.ds) :where(ul, ol):where(:not(.pg, .pg *)) { padding: 0; list-style: none; }
:where(.ds) a:where(:not(.pg, .pg *)) { color: inherit; text-decoration: none; }
:where(.ds) button:where(:not(.pg, .pg *)) { font: inherit; }
.ds :focus-visible:not(.pg *) { outline: 2px solid var(--brand-500); outline-offset: 2px; border-radius: 4px; }
.ds :not(.pg, .pg *)::selection { background: var(--brand-500); color: #fff; }
.ds-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* The skip link shows itself to keyboard users */
a.ds-sr:focus { position: fixed; top: 12px; left: 12px; z-index: 400; width: auto; height: auto; clip: auto; padding: 10px 16px; border-radius: var(--radius-sm); background: var(--gray-900); color: #fff; font-size: 14px; }
@view-transition { navigation: auto; }

/* ---------- 3. Layout ---------- */
.ds-container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .ds-container { padding-inline: 32px; } }
.ds-container--narrow { max-width: 860px; }
.ds-section { padding-block: 72px; }
@media (min-width: 1024px) { .ds-section { padding-block: 112px; } }
.ds-section--gray { background: var(--gray-50); }
.ds-section--tight { padding-block: 48px; }
.ds-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.ds-head--left { margin-inline: 0; text-align: left; }
.ds-eyebrow { display: block; margin-bottom: 14px; font-size: 14px; font-weight: 500; color: var(--brand-600); } /* 600, not 500: small text needs the extra contrast on gray sections */
.ds-title { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.2; font-weight: 600; letter-spacing: -.02em; color: var(--gray-800); text-wrap: balance; }
.ds-title em { font-style: normal; color: var(--brand-500); }
.ds-lead { margin-top: 16px; font-size: 16px; line-height: 1.7; color: var(--gray-500); text-wrap: pretty; }
.ds-grid { display: grid; gap: 24px; }
@media (min-width: 640px) { .ds-grid--2, .ds-grid--3, .ds-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ds-grid--3 { grid-template-columns: repeat(3, 1fr); } .ds-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.ds-split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .ds-split { grid-template-columns: 1fr 1fr; gap: 72px; } .ds-split--flip > :first-child { order: 2; } }

/* ---------- 4. Buttons, pills, icons ---------- */
.ds-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--radius-sm); font-family: var(--font); font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s var(--ease); }
.ds-btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.ds-btn:hover { transform: translateY(-1px); }
.ds-btn:active { transform: translateY(0) scale(.98); }
.ds-btn:hover .ds-arrow { transform: translateX(3px); }
.ds-btn--primary { background: var(--brand-500); color: #fff !important; box-shadow: var(--shadow-xs); }
.ds-btn--primary:hover { background: var(--brand-600); box-shadow: 0 8px 20px -6px rgba(70, 95, 255, .55); }
.ds-btn--dark { background: var(--gray-800); color: #fff !important; }
.ds-btn--dark:hover { background: var(--gray-900); box-shadow: var(--shadow-lg); }
.ds-btn--outline { background: #fff; border-color: var(--gray-300); color: var(--gray-700) !important; box-shadow: var(--shadow-xs); }
.ds-btn--outline:hover { background: var(--gray-50); border-color: var(--gray-400); }
.ds-btn--soft { background: var(--brand-50); color: var(--brand-600) !important; }
.ds-btn--soft:hover { background: var(--brand-100); }
.ds-btn--white { background: #fff; color: var(--gray-800) !important; }
.ds-btn--white:hover { background: var(--gray-100); }
.ds-btn--ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #fff !important; }
.ds-btn--ghost:hover { background: rgba(255, 255, 255, .14); }
.ds-btn--lg { height: 48px; padding: 0 22px; font-size: 15px; }
.ds-btn--sm { height: 36px; padding: 0 14px; font-size: 13px; }
.ds-btn--block { width: 100%; }
.ds-btn[disabled] { opacity: .65; cursor: wait; transform: none; }

.ds-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--brand-50); color: var(--brand-600); font-size: 13px; font-weight: 500; }
.ds-pill svg { width: 16px; height: 16px; }
.ds-pill--dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-500); box-shadow: 0 0 0 0 rgba(70, 95, 255, .5); animation: ds-pulse 2s infinite; }
.ds-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--gray-100); color: var(--gray-700); }
.ds-badge--brand { background: var(--brand-50); color: var(--brand-600); }
.ds-badge--success { background: var(--success-50); color: var(--success-700); }
.ds-badge--warning { background: var(--warning-50); color: var(--warning-700); }
.ds-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: var(--radius); background: var(--brand-50); color: var(--brand-500); }
.ds-icon svg { width: 24px; height: 24px; }
.ds-icon--sm { width: 36px; height: 36px; border-radius: 10px; }
.ds-icon--sm svg { width: 18px; height: 18px; }
.ds-icon--dark { background: rgba(255, 255, 255, .08); color: #fff; }
.ds-icon--plain { background: none; width: auto; height: auto; }
.ds-icon--plain svg { width: 32px; height: 32px; }

/* ---------- 5. Header ---------- */
.ds-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.ds-header.is-stuck { border-color: var(--gray-200); box-shadow: var(--shadow-xs); }
.ds-header__in { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.ds-logo { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; color: var(--gray-800) !important; flex: none; }
.ds-logo__mark { display: block; flex: none; width: 36px; height: 36px; border-radius: 10px; transition: transform .4s var(--ease); }
.ds-logo:hover .ds-logo__mark { transform: rotate(-8deg) scale(1.06); }
.ds-nav { display: none; align-items: center; gap: 4px; margin-inline: auto; }
.ds-nav__link { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 0; border-radius: var(--radius-sm); background: none; font-family: var(--font); font-size: 14px; font-weight: 400; color: var(--gray-700) !important; cursor: pointer; transition: background-color .2s, color .2s; }
.ds-nav__link:hover, .ds-nav__item:hover > .ds-nav__link, .ds-nav__item.is-open > .ds-nav__link { color: var(--brand-500) !important; background: var(--gray-50); }
.ds-nav__link.is-current { color: var(--brand-500) !important; font-weight: 500; }
.ds-nav__link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.ds-nav__item { position: relative; }
.ds-nav__item:hover > .ds-nav__link svg, .ds-nav__item.is-open > .ds-nav__link svg { transform: rotate(180deg); }
.ds-mega { position: absolute; top: 100%; left: 50%; width: max-content; max-width: min(720px, 92vw); padding-top: 12px; opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .2s, transform .25s var(--ease), visibility .2s; }
.ds-nav__item:hover > .ds-mega, .ds-nav__item:focus-within > .ds-mega, .ds-nav__item.is-open > .ds-mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.ds-mega__panel { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-xl); }
.ds-mega__panel--2 { grid-template-columns: repeat(2, minmax(0, 300px)); }
.ds-mega__link { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: var(--radius); transition: background-color .15s; }
.ds-mega__link:hover { background: var(--gray-50); }
.ds-mega__link:hover .ds-icon { background: var(--brand-500); color: #fff; }
.ds-mega__link .ds-icon { transition: background-color .2s, color .2s; }
.ds-icon--brand { background: #fff !important; box-shadow: inset 0 0 0 1px var(--gray-200); }
.ds-icon--brand img { width: 20px; height: 20px; }
.ds-mega__link b { display: block; font-size: 14px; font-weight: 500; color: var(--gray-800); }
.ds-mega__link small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: var(--gray-500); }
.ds-mega__all { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin-top: 4px; padding: 12px 14px; border-radius: var(--radius); background: var(--gray-50); font-size: 13.5px; font-weight: 500; color: var(--brand-600) !important; transition: background-color .2s; }
.ds-mega__all:hover { background: var(--brand-50); }
.ds-mega__all svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.ds-mega__all:hover svg { transform: translateX(4px); }
.ds-header__cta { display: none; align-items: center; gap: 10px; }
.ds-burger { display: grid; place-items: center; width: 40px; height: 40px; margin-left: auto; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); background: #fff; color: var(--gray-700); cursor: pointer; }
.ds-burger svg { width: 20px; height: 20px; }
.ds-burger .ds-burger__close, .ds-header.is-menu-open .ds-burger__open { display: none; }
.ds-header.is-menu-open .ds-burger__close { display: block; }
.ds-mobile { display: grid; grid-template-rows: 0fr; border-top: 1px solid transparent; background: #fff; transition: grid-template-rows .35s var(--ease), border-color .2s; }
.ds-header.is-menu-open .ds-mobile { grid-template-rows: 1fr; border-color: var(--gray-200); }
.ds-mobile__in { overflow: hidden; }
.ds-mobile__scroll { max-height: calc(100dvh - var(--header-h)); overflow-y: auto; padding: 12px 20px 24px; }
.ds-mobile a, .ds-mobile summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 4px; font-size: 15px; font-weight: 500; color: var(--gray-800); cursor: pointer; list-style: none; }
.ds-mobile summary::-webkit-details-marker { display: none; }
.ds-mobile summary svg { width: 16px; height: 16px; transition: transform .25s; }
.ds-mobile details[open] summary svg { transform: rotate(180deg); }
.ds-mobile details a { padding: 9px 4px 9px 16px; font-size: 14px; font-weight: 400; color: var(--gray-600); justify-content: flex-start; }
.ds-mobile details a .ds-icon { margin-right: 0; }
.ds-mobile__cta { display: grid; gap: 10px; margin-top: 16px; }
.ds-mobile__cta a { justify-content: center; color: inherit; padding: 0 18px; }
@media (min-width: 1100px) {
  .ds-nav, .ds-header__cta { display: flex; }
  .ds-burger, .ds-mobile { display: none; }
}
/* Small laptops: keep the menu on one line by dropping the secondary button */
@media (min-width: 1100px) and (max-width: 1279px) {
  .ds-header__cta .ds-btn--outline { display: none; }
  .ds-nav { gap: 0; }
  .ds-nav__link { padding-inline: 10px; }
}

/* ---------- 6. Hero ---------- */
.ds-hero { padding: 8px 12px 0; }
@media (min-width: 768px) { .ds-hero { padding-inline: 24px; } }
.ds-hero__box { position: relative; overflow: hidden; max-width: 1392px; margin-inline: auto; padding: 64px 20px 0; border-radius: var(--radius-2xl); background: var(--gray-50); isolation: isolate; text-align: center; }
@media (min-width: 768px) { .ds-hero__box { padding-top: 88px; border-radius: var(--radius-3xl); } }
.ds-hero__box::before, .ds-hero__box::after { content: ""; position: absolute; z-index: -1; bottom: -18%; width: 46%; aspect-ratio: 1; border-radius: 50%; filter: blur(90px); opacity: .55; pointer-events: none; }
.ds-hero__box::before { left: -12%; background: #fbc5e6; }
.ds-hero__box::after { right: -12%; background: #b5c4ff; }
.ds-hero__grid { position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(var(--gray-200) 1px, transparent 1px), linear-gradient(90deg, var(--gray-200) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 100%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 100%, #000 10%, transparent 75%); opacity: .7; }
.ds-hero h1 { max-width: 880px; margin: 20px auto 0; font-size: clamp(34px, 5.4vw, 60px); line-height: 1.1; font-weight: 600; letter-spacing: -.03em; color: var(--gray-800); text-wrap: balance; }
.ds-hero h1 em { font-style: normal; color: var(--brand-500); }
.ds-hero__lead { max-width: 660px; margin: 20px auto 0; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.7; color: var(--gray-500); }
.ds-hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.ds-hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 720px; margin: 44px auto 0; }
.ds-stat b { display: block; font-size: clamp(22px, 3vw, 32px); font-weight: 600; letter-spacing: -.02em; color: var(--gray-800); font-variant-numeric: tabular-nums; }
.ds-stat > span { display: block; margin-top: 2px; font-size: 13px; color: var(--gray-500); }
.ds-hero__stats .ds-stat + .ds-stat { border-left: 1px solid var(--gray-200); }
.ds-hero__visual { position: relative; max-width: 1040px; margin: 56px auto 0; }

/* Hero product mock: an "agent console" built in HTML so it stays crisp at any size */
.ds-console { display: grid; gap: 16px; padding: 16px 16px 0; border: 1px solid var(--gray-200); border-bottom: 0; border-radius: var(--radius-xl) var(--radius-xl) 0 0; background: #fff; box-shadow: 0 -8px 60px -12px rgba(70, 95, 255, .18); text-align: left; }
@media (min-width: 900px) { .ds-console { grid-template-columns: 220px 1fr; padding: 20px 20px 0; } }
.ds-console__side { display: none; padding: 4px 8px 20px 4px; border-right: 1px solid var(--gray-100); }
@media (min-width: 900px) { .ds-console__side { display: block; } }
.ds-console__brand { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 14px; font-weight: 600; color: var(--gray-800); }
.ds-console__brand i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--brand-500); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; }
.ds-console__label { margin: 14px 0 6px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-400); }
.ds-console__item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; font-size: 13px; color: var(--gray-600); }
.ds-console__item svg { width: 16px; height: 16px; color: var(--gray-400); }
.ds-console__item.is-active { background: var(--brand-50); color: var(--brand-600); font-weight: 500; }
.ds-console__item.is-active svg { color: var(--brand-500); }
.ds-console__main { display: grid; gap: 16px; padding-bottom: 0; min-width: 0; }
.ds-console__row { display: grid; gap: 16px; }
@media (min-width: 640px) { .ds-console__row--3 { grid-template-columns: repeat(3, 1fr); } .ds-console__row--2 { grid-template-columns: 1.5fr 1fr; } }
.ds-tile { padding: 16px; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); background: #fff; min-width: 0; }
.ds-tile__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ds-tile__k { font-size: 12.5px; color: var(--gray-500); }
.ds-tile__v { margin-top: 10px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; color: var(--gray-800); }
.ds-tile h4 { font-size: 14px; font-weight: 600; color: var(--gray-800); }
.ds-bars { display: flex; align-items: flex-end; gap: 8px; height: 132px; margin-top: 16px; }
.ds-bars i { flex: 1; min-width: 0; border-radius: 6px 6px 2px 2px; background: var(--brand-500); transform-origin: bottom; transform: scaleY(0); transition: transform .9s var(--ease); }
.ds-bars i:nth-child(odd) { background: var(--brand-300); }
.is-in .ds-bars i, .ds-bars.is-in i { transform: scaleY(1); }
.ds-feed { display: grid; gap: 10px; margin-top: 14px; }
.ds-feed li { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--gray-600); min-width: 0; }
.ds-feed li img { width: 18px; height: 18px; flex: none; }
.ds-feed li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-feed li em { margin-left: auto; flex: none; font-style: normal; font-size: 11px; color: var(--success-700); background: var(--success-50); padding: 1px 8px; border-radius: 999px; }
.ds-float { position: absolute; z-index: 2; display: none; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--gray-200); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-lg); font-size: 13px; color: var(--gray-700); text-align: left; animation: ds-bob 6s ease-in-out infinite; }
.ds-float img { width: 22px; height: 22px; }
.ds-float b { display: block; font-weight: 500; color: var(--gray-800); }
.ds-float small { color: var(--gray-500); font-size: 11.5px; }
.ds-float--a { left: -36px; top: 34%; }
.ds-float--b { right: -40px; top: 16%; animation-delay: -3s; }
@media (min-width: 1180px) { .ds-float { display: flex; } }

/* ---------- 7. Cards & content blocks ---------- */
.ds-card { position: relative; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--gray-200); border-radius: var(--radius-xl); background: #fff; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s; }
.ds-card--hover:hover { transform: translateY(-4px); border-color: var(--brand-200); box-shadow: var(--shadow-xl); }
.ds-card--hover:hover .ds-icon:not(.ds-icon--plain) { background: var(--brand-500); color: #fff; }
.ds-card .ds-icon { transition: background-color .25s, color .25s, transform .35s var(--ease); }
.ds-card--hover:hover .ds-icon { transform: scale(1.06) rotate(-4deg); }
.ds-card h3, .ds-card h4 { margin-top: 20px; font-size: 18px; line-height: 1.35; font-weight: 600; color: var(--gray-800); }
.ds-card p { margin-top: 10px; font-size: 14.5px; line-height: 1.65; color: var(--gray-500); }
.ds-card__foot { margin-top: auto; padding-top: 24px; }
.ds-card--dark { background: var(--gray-800); border-color: var(--gray-800); }
.ds-card--dark h3, .ds-card--dark h4 { color: #fff; }
.ds-card--dark p, .ds-card--dark .ds-check li { color: var(--gray-300); }
.ds-card--dark .ds-icon { background: rgba(255, 255, 255, .1); color: #fff; }
.ds-card--dark.ds-card--hover:hover { border-color: var(--gray-800); box-shadow: 0 24px 48px -16px rgba(16, 24, 40, .5); }
/* TailAdmin's double-bordered "framed" card */
.ds-frame { padding: 6px; border: 1px solid var(--gray-200); border-radius: var(--radius-2xl); background: var(--gray-50); }
.ds-frame > .ds-card, .ds-frame > .ds-frame__in { height: 100%; border-radius: 18px; }
.ds-frame__in { overflow: hidden; border: 1px solid var(--gray-200); background: #fff; }
.ds-check { display: grid; gap: 10px; margin-top: 20px; }
.ds-check li { position: relative; padding-left: 28px; font-size: 14.5px; line-height: 1.55; color: var(--gray-600); }
.ds-check li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.2 9.3 2.5 2.5 5-5.3'/%3E%3C/svg%3E") center/contain no-repeat; }
.ds-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--brand-500) !important; }
.ds-link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.ds-link:hover svg { transform: translateX(4px); }
.ds-feature { display: flex; gap: 16px; align-items: flex-start; }
.ds-feature :is(h3, h4) { font-size: 16px; font-weight: 600; color: var(--gray-800); }
.ds-feature p { margin-top: 4px; font-size: 14.5px; color: var(--gray-500); }
.ds-prose-lg p { font-size: 16px; line-height: 1.75; color: var(--gray-600); }
.ds-prose-lg p + p { margin-top: 16px; }
.ds-prose-lg strong { font-weight: 600; color: var(--gray-800); }
.ds-media { position: relative; overflow: hidden; border-radius: 18px; background: var(--gray-100); }
.ds-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ds-media:hover img { transform: scale(1.04); }
.ds-media__cap { position: absolute; inset: auto 0 0 0; padding: 48px 24px 20px; background: linear-gradient(transparent, rgba(16, 24, 40, .82)); color: #fff; }
.ds-media__cap b { display: block; font-size: 18px; font-weight: 600; }
.ds-media__cap span { font-size: 14px; color: var(--gray-200); }

/* Journey map: sticky rail on the left, stages on the right */
.ds-journey { display: grid; gap: 32px; }
@media (min-width: 1024px) { .ds-journey { grid-template-columns: 320px 1fr; gap: 56px; align-items: start; } }
.ds-journey__rail { display: none; }
@media (min-width: 1024px) { .ds-journey__rail { display: block; position: sticky; top: calc(var(--header-h) + 32px); } }
.ds-rail { position: relative; display: grid; gap: 4px; margin-top: 8px; padding-left: 4px; }
.ds-rail::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--gray-200); }
.ds-rail__fill { position: absolute; left: 21px; top: 22px; width: 2px; height: 0; background: var(--brand-500); transition: height .5s var(--ease); }
.ds-rail a { position: relative; display: flex; align-items: center; gap: 14px; padding: 8px 10px 8px 0; border-radius: var(--radius); font-size: 14.5px; color: var(--gray-500); transition: color .2s; }
.ds-rail a i { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border: 2px solid var(--gray-200); border-radius: 50%; background: #fff; font-size: 12px; font-style: normal; font-weight: 600; color: var(--gray-500); transition: all .3s var(--ease); }
.ds-rail a small { display: block; font-size: 12px; color: var(--gray-500); }
.ds-rail a:hover { color: var(--gray-800); }
.ds-rail a.is-active, .ds-rail a.is-done { color: var(--gray-800); font-weight: 500; }
.ds-rail a.is-done i { border-color: var(--brand-500); color: var(--brand-500); }
.ds-rail a.is-active i { border-color: var(--brand-500); background: var(--brand-500); color: #fff; box-shadow: var(--ring); transform: scale(1.08); }
.ds-stage { scroll-margin-top: calc(var(--header-h) + 24px); }
.ds-stage + .ds-stage { margin-top: 20px; }
.ds-stage__in { display: grid; gap: 24px; padding: 24px; }
@media (min-width: 768px) { .ds-stage__in { grid-template-columns: 1fr 1.25fr; padding: 28px; gap: 32px; } }
.ds-stage__head { display: flex; align-items: center; gap: 12px; }
.ds-stage__no { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius); background: var(--brand-500); color: #fff; font-size: 14px; font-weight: 600; }
.ds-stage__head h4 { font-size: 20px; font-weight: 600; color: var(--gray-800); }
.ds-stage__flow { margin-top: 12px; font-size: 14px; color: var(--gray-600); }
.ds-stage__img { display: block; width: 100%; max-width: 240px; margin-top: 16px; border-radius: var(--radius); }
/* Journey stage: the real platforms it happens on, wired to the agent that watches them. */
.ds-stage__where { margin-top: 18px; }
.ds-stage__net { position: relative; display: flex; align-items: center; gap: 34px; margin-top: 10px; }
.ds-stage__net ul { display: flex; flex-wrap: nowrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ds-stage__net li { display: grid; justify-items: center; gap: 6px; width: 66px; padding: 11px 2px 9px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--gray-200), 0 6px 14px -10px rgba(16, 24, 40, .25); }
.ds-stage__net li img { width: 28px; height: 28px; }
.ds-stage__net li span { font-size: 11px; font-weight: 500; color: var(--gray-600); white-space: nowrap; }
.ds-stage__hub { position: relative; flex: none; display: grid; justify-items: center; gap: 6px; text-align: center; }
.ds-stage__hub::before { content: ""; position: absolute; right: calc(100% + 4px); top: 20px; width: 26px; border-top: 2px dashed var(--brand-300); }
.ds-stage__hub small { max-width: 76px; font-size: 11px; line-height: 1.3; font-weight: 600; color: var(--brand-600); }
.ds-agent__brands { display: flex; flex: none; align-items: center; gap: 4px; min-width: 36px; height: 36px; padding: 0 7px; border-radius: 10px; background: var(--gray-50); box-shadow: inset 0 0 0 1px var(--gray-200); }
.ds-agent__brands img { width: 20px; height: 20px; }
@media (max-width: 720px) { .ds-stage__net ul { flex-wrap: wrap; } .ds-stage__net { flex-direction: column; align-items: flex-start; gap: 14px; } .ds-stage__hub::before { display: none; } }
.ds-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 16px; counter-reset: s; }
.ds-steps li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--gray-50); font-size: 13px; color: var(--gray-700); }
.ds-steps li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 50%; background: #fff; border: 1px solid var(--gray-200); font-size: 11px; font-weight: 600; color: var(--brand-500); }
.ds-sub { font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-500); }
.ds-agents { display: grid; gap: 8px; align-content: start; }
.ds-agent { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--gray-200); border-radius: var(--radius); background: #fff; transition: border-color .2s, box-shadow .25s, transform .3s var(--ease); }
.ds-agent b { display: block; font-size: 14px; font-weight: 500; color: var(--gray-800); }
.ds-agent small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.5; color: var(--gray-500); }
.ds-agent > svg { width: 16px; height: 16px; margin: 3px 0 0 auto; flex: none; color: var(--gray-400); transition: transform .25s var(--ease), color .2s; }
a.ds-agent:hover { border-color: var(--brand-300); box-shadow: var(--shadow-md); transform: translateX(4px); }
a.ds-agent:hover > svg { color: var(--brand-500); transform: translate(2px, -2px); }
a.ds-agent .ds-icon { background: var(--brand-500); color: #fff; }
.ds-note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border: 1px dashed var(--brand-300); border-radius: var(--radius-lg); background: var(--brand-25); font-size: 14.5px; color: var(--gray-700); }
.ds-note svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--brand-500); }
.ds-note strong { color: var(--gray-800); font-weight: 600; }
.ds-owner { display: grid; gap: 20px; align-items: center; padding: 24px; }
@media (min-width: 768px) { .ds-owner { grid-template-columns: auto 1fr; gap: 32px; padding: 24px 28px; } }
.ds-owner__who { display: flex; align-items: center; gap: 16px; }
.ds-owner__who b { display: block; font-size: 17px; font-weight: 600; color: var(--gray-800); }

/* Video grid: thumbnails that swap to the YouTube player on click */
.ds-video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 0; padding: 0; border-radius: 14px; background: var(--gray-900); cursor: pointer; }
.ds-video img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: transform .8s var(--ease), opacity .3s; }
.ds-video:hover img { transform: scale(1.05); opacity: 1; }
.ds-video__play { position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--brand-500); box-shadow: 0 10px 30px rgba(16, 24, 40, .35); transition: transform .35s var(--ease), background-color .2s, color .2s; }
.ds-video__play svg { width: 22px; height: 22px; margin-left: 3px; }
.ds-video:hover .ds-video__play { transform: scale(1.12); background: var(--brand-500); color: #fff; }
.ds-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Dark CTA / contact block */
.ds-cta { position: relative; overflow: hidden; isolation: isolate; padding: 40px 24px; border-radius: var(--radius-2xl); background: var(--gray-800); color: var(--gray-300); }
@media (min-width: 1024px) { .ds-cta { padding: 64px; border-radius: var(--radius-3xl); } }
.ds-cta::before, .ds-cta::after { content: ""; position: absolute; z-index: -1; width: 420px; aspect-ratio: 1; border-radius: 50%; filter: blur(110px); pointer-events: none; }
.ds-cta::before { left: -140px; top: -180px; background: rgba(70, 95, 255, .55); }
.ds-cta::after { right: -160px; bottom: -220px; background: rgba(238, 70, 188, .3); }
.ds-cta .ds-eyebrow { color: var(--brand-300); }
.ds-cta .ds-title { color: #fff; }
.ds-cta .ds-lead { color: var(--gray-300); }
.ds-contact { display: grid; gap: 14px; margin-top: 32px; }
.ds-contact li { display: flex; align-items: center; gap: 14px; }
.ds-contact small { display: block; font-size: 12.5px; color: var(--gray-400); }
.ds-contact b, .ds-contact a { font-size: 16px; font-weight: 500; color: #fff; }
.ds-contact a:hover { color: var(--brand-300); }
.ds-social { display: flex; gap: 10px; margin-top: 12px; }
.ds-social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; background: rgba(255, 255, 255, .06); transition: transform .3s var(--ease), background-color .2s; }
.ds-social a:hover { transform: translateY(-3px); background: #fff; }
.ds-social img { width: 18px; height: 18px; filter: brightness(0) invert(1); transition: filter .2s; }
.ds-social a:hover img { filter: none; }

/* ---------- 8. Forms ---------- */
.ds-form { display: grid; gap: 16px; padding: 24px; border-radius: var(--radius-xl); background: #fff; box-shadow: var(--shadow-xl); color: var(--gray-700); }
@media (min-width: 768px) { .ds-form { padding: 32px; } }
.ds-form h3 { font-size: 20px; font-weight: 600; color: var(--gray-800); }
.ds-field { display: grid; gap: 6px; }
.ds-field label { font-size: 14px; font-weight: 500; color: var(--gray-700); }
.ds-field label span { color: var(--error-500); }
.ds-input { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); background: #fff; font: 400 14.5px/1.4 var(--font); color: var(--gray-800); box-shadow: var(--shadow-xs); transition: border-color .2s, box-shadow .2s; }
textarea.ds-input { height: auto; min-height: 104px; padding: 12px 14px; resize: vertical; }
.ds-input::placeholder { color: var(--gray-400); }
.ds-input:focus { outline: 0; border-color: var(--brand-300); box-shadow: var(--ring); }
.ds-form__row { display: grid; gap: 16px; }
@media (min-width: 520px) { .ds-form__row { grid-template-columns: 1fr 1fr; } }
.ds-form__status { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--success-50); color: var(--success-700); font-size: 14px; }
.ds-form__status[hidden], .ds-form__status.hidden { display: none; }
.ds-form__hint { font-size: 12.5px; color: var(--gray-500); text-align: center; }
.ds-form__hint a { color: var(--brand-500); }

/* ---------- 9. Motion components ---------- */
/* Scroll reveal: elements start shifted and fade in when ds.js marks them .is-in */
.ds-js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.ds-js [data-reveal="left"] { transform: translateX(-32px); }
.ds-js [data-reveal="right"] { transform: translateX(32px); }
.ds-js [data-reveal="zoom"] { transform: scale(.94); }
.ds-js [data-reveal="fade"] { transform: none; }
/* Sideways offsets would widen the page on phones; slide up there instead */
@media (max-width: 899px) { .ds-js [data-reveal="left"], .ds-js [data-reveal="right"] { transform: translateY(24px); } }
.ds-js [data-reveal].is-in { opacity: 1; transform: none; }

/* Marquee: ds.js clones the track once so -50% lands on an identical frame */
.ds-marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ds-marquee__track { display: flex; width: max-content; gap: 14px; padding-block: 6px; animation: ds-marquee var(--speed, 42s) linear infinite; }
.ds-marquee--reverse .ds-marquee__track { animation-direction: reverse; }
.ds-marquee:hover .ds-marquee__track, .ds-marquee:focus-within .ds-marquee__track { animation-play-state: paused; }
.ds-brand { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px; border: 1px solid var(--gray-200); border-radius: 999px; background: #fff; font-size: 14.5px; font-weight: 500; color: var(--gray-700); white-space: nowrap; transition: border-color .2s, box-shadow .25s, transform .3s var(--ease); }
.ds-brand img { width: 22px; height: 22px; filter: grayscale(1); opacity: .7; transition: filter .25s, opacity .25s; }
.ds-brand:hover { border-color: var(--brand-200); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.ds-brand:hover img { filter: none; opacity: 1; }

/* Carousel: native scroll-snap, ds.js adds autoplay, arrows and dots */
.ds-carousel { position: relative; }
.ds-carousel__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 8px 4px 24px; margin-inline: -4px; overscroll-behavior-x: contain; }
.ds-carousel__track::-webkit-scrollbar { display: none; }
.ds-carousel__track > * { flex: 0 0 86%; scroll-snap-align: start; }
@media (min-width: 640px) { .ds-carousel__track > * { flex-basis: calc((100% - 20px) / 2); } }
@media (min-width: 1024px) { .ds-carousel__track > * { flex-basis: calc((100% - 40px) / 3); } }
.ds-carousel__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.ds-dots { display: flex; align-items: center; }
/* 24px hit area; the visible dot is the pseudo-element */
.ds-dots button { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.ds-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--gray-300); transition: width .35s var(--ease), background-color .2s; }
.ds-dots button:hover::before { background: var(--gray-400); }
.ds-dots button.is-active::before { width: 28px; background: var(--brand-500); }
.ds-carousel__nav { display: flex; gap: 8px; }
.ds-carousel__nav button { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--gray-300); border-radius: 50%; background: #fff; color: var(--gray-700); cursor: pointer; transition: all .2s; }
.ds-carousel__nav button:hover:not(:disabled) { background: var(--brand-500); border-color: var(--brand-500); color: #fff; }
.ds-carousel__nav button:disabled { opacity: .4; cursor: default; }
.ds-carousel__nav svg { width: 18px; height: 18px; }
.ds-service { height: 100%; }
.ds-service h3 { font-size: 17px; }
.ds-service .ds-link { margin-top: auto; padding-top: 20px; }

/* Modal */
.ds-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; visibility: hidden; pointer-events: none; }
.ds-modal__backdrop { position: absolute; inset: 0; background: rgba(16, 24, 40, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.ds-modal__dialog { position: relative; width: 100%; max-width: 520px; max-height: calc(100dvh - 32px); overflow-y: auto; border-radius: var(--radius-2xl); background: #fff; box-shadow: 0 32px 64px -12px rgba(16, 24, 40, .3); opacity: 0; transform: translateY(24px) scale(.96); transition: opacity .3s, transform .45s var(--ease); }
.ds-modal.is-open { visibility: visible; pointer-events: auto; }
.ds-modal.is-open .ds-modal__backdrop { opacity: 1; }
.ds-modal.is-open .ds-modal__dialog { opacity: 1; transform: none; }
.ds-modal.is-closing { visibility: visible; }
.ds-modal__head { padding: 28px 28px 0; }
.ds-modal__head h3 { margin-top: 12px; font-size: 22px; line-height: 1.3; font-weight: 600; color: var(--gray-800); }
.ds-modal__head p { margin-top: 6px; font-size: 14.5px; color: var(--gray-500); }
/* "Đóng / Ẩn trong 12 giờ" under the consult form when ds.js opens it on arrival */
.ds-modal__foot { display: flex; justify-content: center; gap: 4px; margin-top: -12px; padding: 0 28px 18px; }
.ds-modal__foot button { appearance: none; padding: 6px 12px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 13.5px; color: var(--gray-500); cursor: pointer; transition: background-color .2s, color .2s; }
.ds-modal__foot button:hover { background: var(--gray-100); color: var(--gray-800); }
.ds-modal__close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--gray-100); color: var(--gray-600); cursor: pointer; transition: background-color .2s, transform .3s var(--ease); }
.ds-modal__close:hover { background: var(--gray-200); transform: rotate(90deg); }
.ds-modal__close svg { width: 18px; height: 18px; }
.ds-modal .ds-form { padding: 20px 28px 28px; box-shadow: none; }
.ds-modal--video .ds-modal__dialog { max-width: 960px; background: #000; overflow: hidden; }
.ds-modal--video .ds-modal__close { background: rgba(255, 255, 255, .16); color: #fff; z-index: 2; }
body.ds-lock { overflow: hidden; }

/* Floating contact buttons */
.ds-fab { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: grid; gap: 10px; justify-items: end; }
.ds-fab a { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-lg), 0 0 0 1px var(--gray-200); transition: transform .3s var(--ease), box-shadow .3s; }
.ds-fab a:hover { transform: translateY(-3px) scale(1.06); box-shadow: var(--shadow-xl), 0 0 0 1px var(--gray-200); }
.ds-fab img, .ds-fab svg { width: 26px; height: 26px; }
.ds-fab a span { position: absolute; right: calc(100% + 10px); padding: 6px 12px; border-radius: 8px; background: var(--gray-800); color: #fff; font-size: 13px; white-space: nowrap; opacity: 0; transform: translateX(6px); pointer-events: none; transition: opacity .2s, transform .3s var(--ease); }
.ds-fab a:hover span, .ds-fab a:focus-visible span { opacity: 1; transform: none; }
.ds-fab__call { background: var(--brand-500) !important; color: #fff; }
.ds-fab__call::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(70, 95, 255, .5); animation: ds-pulse 2.4s infinite; }
@media (max-width: 639px) {
  .ds-fab { right: 12px; bottom: 12px; gap: 8px; }
  .ds-fab a { width: 44px; height: 44px; }
  .ds-fab img, .ds-fab svg { width: 22px; height: 22px; }
  .ds-fab a span { display: none; }
}
.ds-totop { opacity: 0; visibility: hidden; transform: translateY(8px); color: var(--gray-700); border: 0; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-lg), 0 0 0 1px var(--gray-200); transition: opacity .25s, transform .3s var(--ease), visibility .25s; }
.ds-totop.is-on { opacity: 1; visibility: visible; transform: none; }
.ds-totop svg { width: 18px; height: 18px; }

@keyframes ds-marquee { to { transform: translateX(calc(-50% - 7px)); } }
@keyframes ds-pulse { 70% { box-shadow: 0 0 0 10px rgba(70, 95, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(70, 95, 255, 0); } }
@keyframes ds-bob { 50% { transform: translateY(-10px); } }

/* ---------- 10. Footer ---------- */
.ds-footer { margin-top: 0; padding: 64px 0 28px; background: var(--gray-900); color: var(--gray-400); font-size: 14px; }
.ds-footer__top { display: grid; gap: 40px; }
@media (min-width: 900px) { .ds-footer__top { grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px; } }
.ds-footer .ds-logo { color: #fff !important; }
.ds-footer .ds-logo__mark { box-shadow: 0 0 0 1px rgba(255, 255, 255, .2); }
.ds-footer__about { max-width: 340px; margin-top: 16px; line-height: 1.7; }
.ds-footer__title { margin-bottom: 16px; font-size: 14px; font-weight: 500; color: #fff; }
.ds-footer__links { display: grid; gap: 10px; }
.ds-footer__links a { color: var(--gray-400); transition: color .2s, padding-left .25s var(--ease); }
.ds-footer__links a:hover { color: #fff; padding-left: 4px; }
.ds-footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--gray-800); font-size: 13px; }
.ds-footer__bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ds-footer__bottom a:hover { color: #fff; }

/* ---------- 11. Blog ---------- */
.ds-pagehead { padding: 8px 12px 0; }
.ds-pagehead__box { max-width: 1392px; margin-inline: auto; padding: 56px 20px; border-radius: var(--radius-2xl); background: var(--gray-50); text-align: center; }
.ds-pagehead h1 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.15; font-weight: 600; letter-spacing: -.02em; color: var(--gray-800); text-wrap: balance; }
.ds-pagehead p { max-width: 640px; margin: 14px auto 0; color: var(--gray-500); }
.ds-search { position: relative; display: flex; gap: 8px; max-width: 560px; margin: 28px auto 0; }
.ds-search > svg { position: absolute; left: 14px; top: 13px; width: 18px; height: 18px; color: var(--gray-400); pointer-events: none; }
.ds-search .ds-input { padding-left: 42px; }
.ds-search .ds-btn { flex: none; }
.ds-crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 16px; font-size: 13.5px; color: var(--gray-500); }
.ds-crumbs a:hover { color: var(--brand-500); }
.ds-crumbs span { color: var(--gray-300); }
.ds-post { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--gray-200); border-radius: var(--radius-xl); background: #fff; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s; }
.ds-post:hover { transform: translateY(-4px); border-color: var(--brand-200); box-shadow: var(--shadow-xl); }
.ds-post__img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--brand-50), var(--gray-100)); }
.ds-post__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.ds-post:hover .ds-post__img img { transform: scale(1.05); }
.ds-post__ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--brand-300); }
.ds-post__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.ds-post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--gray-500); }
.ds-post h2, .ds-post h3 { margin-top: 10px; font-size: 17px; line-height: 1.4; font-weight: 600; color: var(--gray-800); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.ds-post:hover h2, .ds-post:hover h3 { color: var(--brand-500); }
.ds-post p { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--gray-500); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ds-post .ds-link { margin-top: auto; padding-top: 16px; }
.ds-topics { justify-content: center; gap: 8px; margin-bottom: 40px; }
.ds-topics .ds-chip { padding: 8px 14px; font-size: 13.5px; transition: border-color .2s, background-color .2s, color .2s; }
.ds-topics .ds-chip small { color: var(--gray-500); }
.ds-topics .ds-chip:hover { border-color: var(--brand-300); color: var(--brand-600); }
.ds-topics .ds-chip.is-active { border-color: var(--brand-500); background: var(--brand-500); color: #fff; }
.ds-topics .ds-chip.is-active small { color: var(--brand-100); }
.ds-post--feature { margin-bottom: 24px; }
@media (min-width: 900px) {
  .ds-post--feature .ds-post { flex-direction: row; }
  .ds-post--feature .ds-post__img { flex: 0 0 52%; aspect-ratio: auto; min-height: 340px; }
  .ds-post--feature .ds-post__body { justify-content: center; padding: 40px; }
  .ds-post--feature .ds-post h2 { font-size: 28px; line-height: 1.3; }
  .ds-post--feature .ds-post p { font-size: 15.5px; -webkit-line-clamp: 4; }
  .ds-post--feature .ds-post .ds-link { margin-top: 20px; }
}
.ds-pagination { margin-top: 48px; }
.ds-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ds-pagination .page-numbers { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); font-size: 14px; color: var(--gray-700); transition: all .2s; }
.ds-pagination a.page-numbers:hover { border-color: var(--brand-300); color: var(--brand-500); background: var(--brand-25); }
.ds-pagination .page-numbers.current { background: var(--brand-500); border-color: var(--brand-500); color: #fff; }
.ds-pagination .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.ds-article { display: grid; gap: 48px; }
.ds-article > * { min-width: 0; } /* let wide tables and code scroll inside the column instead of stretching it */
@media (min-width: 1100px) { .ds-article { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.ds-article__aside { position: sticky; top: calc(var(--header-h) + 24px); }
.ds-article__cover { overflow: hidden; margin-bottom: 32px; border-radius: var(--radius-xl); background: var(--gray-100); }
.ds-article__cover img { display: block; width: 100%; }
.ds-progress { position: fixed; top: 0; left: 0; z-index: 120; height: 3px; width: 100%; background: var(--brand-500); transform: scaleX(0); transform-origin: left; }
/* Long-form WordPress content */
.ds-prose { font-size: 17px; line-height: 1.8; color: var(--gray-700); overflow-wrap: break-word; }
.ds-prose > * + * { margin-top: 1.15em; }
.ds .ds-prose h2 { margin-top: 2em; font-size: 28px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; color: var(--gray-800); }
.ds .ds-prose h3 { margin-top: 1.7em; font-size: 22px; line-height: 1.35; font-weight: 600; color: var(--gray-800); }
.ds .ds-prose h4 { margin-top: 1.5em; font-size: 18px; font-weight: 600; color: var(--gray-800); }
.ds .ds-prose a { color: var(--brand-500); text-decoration: underline; text-decoration-color: var(--brand-200); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.ds .ds-prose a:hover { text-decoration-color: var(--brand-500); }
.ds .ds-prose strong { font-weight: 600; color: var(--gray-800); }
.ds .ds-prose ul, .ds .ds-prose ol { padding-left: 1.4em; }
.ds .ds-prose ul { list-style: disc; }
.ds .ds-prose ol { list-style: decimal; }
.ds .ds-prose li + li { margin-top: .4em; }
.ds .ds-prose li::marker { color: var(--brand-500); }
.ds-prose img { border-radius: var(--radius-lg); }
.ds-prose figure { margin-block: 1.6em; }
.ds-prose figcaption { margin-top: 8px; font-size: 13.5px; text-align: center; color: var(--gray-500); }
.ds-prose blockquote { margin-inline: 0; padding: 16px 20px; border-left: 3px solid var(--brand-500); border-radius: 0 var(--radius) var(--radius) 0; background: var(--brand-25); color: var(--gray-700); }
.ds-prose blockquote p { margin: 0; }
.ds-prose code { padding: 2px 6px; border-radius: 6px; background: var(--gray-100); font-size: .88em; color: var(--gray-800); }
.ds-prose pre { overflow-x: auto; padding: 16px 20px; border-radius: var(--radius); background: var(--gray-900); color: var(--gray-100); font-size: 14px; line-height: 1.6; }
.ds-prose pre code { padding: 0; background: none; color: inherit; }
.ds-prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 14.5px; }
.ds-prose th, .ds-prose td { padding: 10px 14px; border: 1px solid var(--gray-200); text-align: left; }
.ds-prose th { background: var(--gray-50); font-weight: 600; color: var(--gray-800); }
.ds-prose hr { margin-block: 2em; border: 0; border-top: 1px solid var(--gray-200); }
/* Posts bring their own table of contents and FAQ blocks with inline <style>; restyle them to match */
.ds .ds-prose .blog-toc { margin: 0 0 2em; padding: 22px 24px; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); background: var(--gray-50); }
.ds .ds-prose .blog-toc h2 { margin: 0 0 12px !important; padding: 0 0 12px !important; border-bottom: 1px solid var(--gray-200) !important; font-size: 13px !important; font-weight: 600 !important; letter-spacing: .08em; color: var(--gray-500) !important; }
.ds .ds-prose .blog-toc ol { margin: 0; padding: 0; list-style: none; columns: 2 280px; column-gap: 24px; }
.ds .ds-prose .blog-toc li { margin: 0; break-inside: avoid; }
.ds .ds-prose .blog-toc a { padding: 6px 8px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--gray-700); text-decoration: none; }
.ds .ds-prose .blog-toc a::before { color: var(--brand-500); font-weight: 600; }
.ds .ds-prose .blog-toc a:hover { background: var(--brand-50); color: var(--brand-600); }
.ds .ds-prose .blog-toc .toc-h3 a { padding-left: 34px; font-size: 13.5px; font-weight: 400; color: var(--gray-500); }
.ds .ds-prose .blog-toc .toc-h3 a::before { color: var(--gray-300); }
.ds .ds-prose details.faq-item { margin-bottom: 10px; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); }
.ds .ds-prose details.faq-item:hover, .ds .ds-prose details.faq-item[open] { border-color: var(--brand-200); }
.ds .ds-prose details.faq-item summary { padding: 16px 20px; background: #fff; font-size: 16px; font-weight: 500; color: var(--gray-800); }
.ds .ds-prose details.faq-item[open] summary { background: var(--brand-25); color: var(--brand-700); }
.ds-prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius-lg); }

/* ---------- 11b. Home: catalogue, stepper, process, comparison, FAQ ---------- */
.ds-eyebrow b { display: inline-grid; place-items: center; min-width: 26px; height: 22px; margin-right: 8px; padding: 0 6px; border-radius: 6px; background: var(--brand-50); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ds-cta .ds-eyebrow b, .ds-section--dark .ds-eyebrow b { background: rgba(255, 255, 255, .1); color: #fff; }
.ds-hero__trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 20px; font-size: 13.5px; color: var(--gray-500); }
.ds-hero__trust li { display: inline-flex; align-items: center; gap: 6px; }
.ds-hero__trust svg { width: 16px; height: 16px; color: var(--success-500); }
.ds-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--gray-200); border-radius: 999px; background: #fff; font-size: 12.5px; color: var(--gray-600); white-space: nowrap; }
.ds-chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* Tabs / filters */
.ds-tabs { display: flex; gap: 4px; width: max-content; max-width: 100%; margin: 0 auto 36px; padding: 4px; overflow-x: auto; scrollbar-width: none; border: 1px solid var(--gray-200); border-radius: 12px; background: var(--gray-50); }
.ds-tabs::-webkit-scrollbar { display: none; }
.ds-tabs button { flex: none; height: 38px; padding: 0 16px; border: 0; border-radius: 8px; background: none; font-size: 14px; font-weight: 500; color: var(--gray-500); cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s, box-shadow .2s; }
.ds-tabs button:hover { color: var(--gray-800); }
.ds-tabs button { display: inline-flex; align-items: center; gap: 8px; }
.ds-tabs button svg { width: 17px; height: 17px; flex: none; opacity: .8; }
.ds-tabs button[aria-pressed="true"] svg { color: var(--brand-500); opacity: 1; }
.ds-tabs button[aria-selected="true"], .ds-tabs button[aria-pressed="true"] { background: #fff; color: var(--gray-800); box-shadow: var(--shadow-sm); }
.ds-tabs button small { margin-left: 6px; font-size: 12px; color: var(--gray-500); }
[data-filter-item][hidden] { display: none; }
[data-filter-item] { animation: ds-pop .45s var(--ease) both; }
@keyframes ds-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }

/* Service card with illustration */
.ds-svc { display: flex; flex-direction: column; height: 100%; padding: 8px 8px 0; border: 1px solid var(--gray-200); border-radius: var(--radius-2xl); background: #fff; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s; }
.ds-svc:hover { transform: translateY(-6px); border-color: var(--brand-200); box-shadow: var(--shadow-xl); }
.ds-svc__art { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 18px; background: #eef3ff; }
/* The illustrations carry their own pale backdrop: show them whole and let multiply melt the square edge into the tile */
.ds-svc__art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.ds-svc:hover .ds-svc__art > img { transform: scale(1.05); }
.ds-svc__platforms { position: absolute; z-index: 1; left: 12px; bottom: 12px; display: flex; gap: 6px; padding: 6px 8px; border-radius: 999px; background: rgba(255, 255, 255, .94); box-shadow: var(--shadow-xs); }
.ds-svc__platforms img { display: block; width: 20px; height: 20px; }
.ds-svc__art .ds-badge { position: absolute; z-index: 1; top: 12px; left: 12px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); color: var(--gray-700); box-shadow: var(--shadow-xs); }
.ds-svc__body { display: flex; flex-direction: column; flex: 1; padding: 20px 16px 18px; }
.ds-svc h3 { font-size: 18px; line-height: 1.35; font-weight: 600; color: var(--gray-800); }
.ds-svc p { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: var(--gray-500); }
.ds-svc .ds-chips { margin-top: 14px; }
.ds-svc__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; }
.ds-svc__price { display: block; font-size: 15px; font-weight: 600; color: var(--gray-800); }
.ds-svc__price small { display: block; font-size: 11.5px; font-weight: 400; color: var(--gray-500); }
.ds-svc__go { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--brand-50); color: var(--brand-500); transition: background-color .25s, color .25s, transform .35s var(--ease); }
.ds-svc__go svg { width: 18px; height: 18px; }
.ds-svc:hover .ds-svc__go { background: var(--brand-500); color: #fff; transform: rotate(-45deg); }
/* On phones a long catalogue becomes a swipeable rail instead of ten stacked cards */
@media (max-width: 639px) {
  .ds-grid--rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -20px; padding: 4px 20px 16px; overscroll-behavior-x: contain; }
  .ds-grid--rail::-webkit-scrollbar { display: none; }
  .ds-grid--rail > * { flex: 0 0 84%; scroll-snap-align: center; }
}
@media (min-width: 900px) { .ds-svc--wide { flex-direction: row; padding: 8px; } .ds-svc--wide .ds-svc__art { flex: 0 0 38%; aspect-ratio: 4 / 3; } .ds-svc--wide .ds-svc__body { padding: 28px 28px 24px; justify-content: center; } .ds-svc--wide h3 { font-size: 24px; } .ds-svc--wide .ds-svc__foot { margin-top: 24px; } }

/* Journey stepper */
.ds-stepper__nav { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(120px, 1fr); gap: 0; overflow-x: auto; scrollbar-width: none; padding: 6px 0 20px; }
.ds-stepper__nav::-webkit-scrollbar { display: none; }
.ds-stepper__nav button { position: relative; display: grid; justify-items: center; gap: 10px; padding: 0 8px; border: 0; background: none; font-family: var(--font); color: var(--gray-500); cursor: pointer; text-align: center; }
.ds-stepper__nav button::before { content: ""; position: absolute; top: 21px; left: -50%; width: 100%; height: 2px; background: var(--gray-200); transition: background-color .4s; }
.ds-stepper__nav button:first-child::before { display: none; }
.ds-stepper__nav button i { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--gray-200); border-radius: 50%; background: #fff; font-size: 13px; font-style: normal; font-weight: 600; transition: all .35s var(--ease); }
.ds-stepper__nav button b { font-size: 14.5px; font-weight: 500; color: var(--gray-700); }
.ds-stepper__nav button small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--gray-500); }
.ds-stepper__nav button.is-done::before, .ds-stepper__nav button[aria-selected="true"]::before { background: var(--brand-500); }
.ds-stepper__nav button.is-done i { border-color: var(--brand-500); color: var(--brand-500); }
.ds-stepper__nav button[aria-selected="true"] i { border-color: var(--brand-500); background: var(--brand-500); color: #fff; box-shadow: var(--ring); transform: scale(1.1); }
.ds-stepper__nav button[aria-selected="true"] b { color: var(--brand-600); }
.ds-stepper__nav button:hover i { border-color: var(--brand-300); }
.ds-stepper__panel[hidden] { display: none; }
.ds-stepper__panel { animation: ds-pop .5s var(--ease) both; }
.ds-stage__in--big { grid-template-columns: 1fr; }
@media (min-width: 900px) { .ds-stage__in--big { grid-template-columns: .9fr 1.1fr; padding: 36px; gap: 48px; } }
.ds-stage__in--big .ds-stage__img { max-width: 320px; }
.ds-stage__bar { height: 3px; margin-top: 4px; border-radius: 3px; background: var(--gray-100); overflow: hidden; }
.ds-stage__bar i { display: block; height: 100%; width: 0; background: var(--brand-500); }
.ds-stepper.is-playing .ds-stage__bar i { animation: ds-fill var(--stepper-ms, 6000ms) linear forwards; }
@keyframes ds-fill { to { width: 100%; } }

/* Process: four numbered steps on a line */
.ds-process { position: relative; display: grid; gap: 20px; counter-reset: p; }
@media (min-width: 900px) { .ds-process { grid-template-columns: repeat(4, 1fr); gap: 24px; } .ds-process::before { content: ""; position: absolute; top: 27px; left: 12%; right: 12%; border-top: 2px dashed var(--brand-200); } }
.ds-process li { position: relative; padding: 0 4px; text-align: left; }
@media (min-width: 900px) { .ds-process li { text-align: center; } }
.ds-process li::before { counter-increment: p; content: counter(p); position: relative; display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 18px; background: var(--brand-500); color: #fff; font-size: 20px; font-weight: 600; box-shadow: 0 10px 24px -8px rgba(70, 95, 255, .6), 0 0 0 8px #fff; }
@media (min-width: 900px) { .ds-process li::before { margin-inline: auto; } }
.ds-section--gray .ds-process li::before { box-shadow: 0 10px 24px -8px rgba(70, 95, 255, .6), 0 0 0 8px var(--gray-50); }
.ds-process small { display: block; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-500); }
.ds-process h3 { margin-top: 6px; font-size: 18px; font-weight: 600; color: var(--gray-800); }
.ds-process p { margin-top: 8px; font-size: 14.5px; line-height: 1.65; color: var(--gray-500); }

/* Dark band + comparison */
.ds-section--dark { position: relative; overflow: hidden; isolation: isolate; background: var(--gray-900); color: var(--gray-300); }
.ds-section--dark::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -260px; width: 900px; height: 520px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(70, 95, 255, .45), transparent); pointer-events: none; }
.ds-section--dark .ds-title { color: #fff; }
.ds-section--dark .ds-title em { color: var(--brand-300); }
.ds-section--dark .ds-lead { color: var(--gray-400); }
.ds-section--dark .ds-eyebrow { color: var(--brand-300); }
.ds-compare { display: grid; gap: 20px; max-width: 1040px; margin-inline: auto; }
@media (min-width: 860px) { .ds-compare { grid-template-columns: 1fr 1fr; } }
.ds-compare__col { padding: 28px; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-2xl); background: rgba(255, 255, 255, .04); }
.ds-compare__col--win { border-color: transparent; background: #fff; color: var(--gray-700); box-shadow: 0 0 0 1px var(--brand-400), 0 30px 60px -20px rgba(70, 95, 255, .55); }
.ds-compare h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 600; color: #fff; }
.ds-compare__col--win h3 { color: var(--gray-800); }
.ds-compare__price { margin-top: 14px; font-size: 26px; font-weight: 600; letter-spacing: -.02em; color: var(--gray-300); }
.ds-compare__price small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--gray-400); }
.ds-compare__col--win .ds-compare__price { color: var(--brand-500); }
.ds-compare__col--win .ds-compare__price small { color: var(--gray-500); }
.ds-compare ul { display: grid; gap: 12px; margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); }
.ds-compare__col--win ul { border-color: var(--gray-200); }
.ds-compare li { position: relative; padding-left: 30px; font-size: 14.5px; line-height: 1.55; }
.ds-compare li::before { content: "✕"; position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(240, 68, 56, .16); color: var(--error-500); font-size: 11px; }
.ds-compare__col--win li::before { content: "✓"; background: var(--success-50); color: var(--success-700); }
.ds-compare__tag { margin-top: 22px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-400); }
.ds-compare__col--win .ds-compare__tag { color: var(--brand-500); }

/* Course card */
.ds-course { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--gray-200); border-radius: var(--radius-2xl); background: #fff; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s; }
.ds-course:hover { transform: translateY(-6px); border-color: var(--brand-200); box-shadow: var(--shadow-xl); }
.ds-course__cover { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #eef3ff; }
.ds-course__cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ds-course:hover .ds-course__cover img { transform: scale(1.05); }
.ds-course__body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.ds-course h3 { margin-top: 10px; font-size: 19px; line-height: 1.35; font-weight: 600; color: var(--gray-800); }
.ds-course p { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: var(--gray-500); }
.ds-course .ds-check { margin-top: 16px; gap: 8px; }
.ds-course .ds-check li { font-size: 14px; }
.ds-course .ds-btn { margin-top: auto; }
.ds-course__body > .ds-check + .ds-btn, .ds-course__gap { margin-top: 22px; }

/* Workflow card (video thumbnail + copy) */
.ds-flow { display: flex; flex-direction: column; height: 100%; padding: 8px; border: 1px solid var(--gray-200); border-radius: var(--radius-2xl); background: #fff; }
.ds-flow .ds-video { border-radius: 16px; }
.ds-flow__body { padding: 16px 12px 12px; }
.ds-flow__no { font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--brand-500); }
.ds-flow h3 { margin-top: 4px; font-size: 16.5px; line-height: 1.4; font-weight: 600; color: var(--gray-800); }
.ds-flow p { margin-top: 6px; font-size: 13.5px; line-height: 1.6; color: var(--gray-500); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Numbers band */
.ds-numbers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--gray-200); border-radius: var(--radius-2xl); background: var(--gray-200); }
@media (min-width: 900px) { .ds-numbers { grid-template-columns: repeat(4, 1fr); } }
.ds-numbers > div { padding: 28px 20px; background: #fff; text-align: center; }
.ds-numbers b { display: block; font-size: clamp(26px, 3.2vw, 38px); font-weight: 600; letter-spacing: -.03em; color: var(--gray-800); font-variant-numeric: tabular-nums; }
.ds-numbers b em { font-style: normal; color: var(--brand-500); }
.ds-numbers > div > span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--gray-500); }

/* About collage */
.ds-collage { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 12px; }
.ds-collage figure { overflow: hidden; border: 1px solid var(--gray-200); border-radius: var(--radius-xl); background: #eef2ff; }
.ds-collage figure:first-child { grid-row: span 2; }
.ds-collage img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.ds-collage figure:hover img { transform: scale(1.05); }
.ds-collage__badge { position: absolute; left: 20px; bottom: 20px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-xl); }
.ds-collage__badge b { display: block; font-size: 15px; font-weight: 600; color: var(--gray-800); }
.ds-collage__badge small { font-size: 12.5px; color: var(--gray-500); }

/* FAQ */
.ds-faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.ds-faq details { border: 1px solid var(--gray-200); border-radius: var(--radius-lg); background: #fff; transition: border-color .25s, box-shadow .25s; }
.ds-faq details[open] { border-color: var(--brand-200); box-shadow: var(--shadow-md); }
.ds-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-size: 16px; font-weight: 500; color: var(--gray-800); cursor: pointer; list-style: none; }
.ds-faq summary::-webkit-details-marker { display: none; }
.ds-faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--gray-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475467' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/16px no-repeat; transition: transform .35s var(--ease), background-color .2s; }
.ds-faq details[open] summary::after { transform: rotate(135deg); background-color: var(--brand-50); }
.ds-faq__a { padding: 0 22px 20px; font-size: 15px; line-height: 1.7; color: var(--gray-600); }
.ds-faq details[open] .ds-faq__a { animation: ds-pop .4s var(--ease) both; }

.ds-aside-form .ds-form { padding: 16px 24px 20px; box-shadow: none; }
.ds-aside-form .ds-form__row { grid-template-columns: 1fr; }
.ds-post__meta svg { width: 16px; height: 16px; }
.ds-post__meta > span { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 1099px) { .ds-article__aside { position: static; max-width: 560px; } }
@media (max-width: 639px) {
  .ds-console__row--3 { display: none; }
  .ds-hero__stats { gap: 0; }
  .ds-stat > span { padding-inline: 6px; font-size: 12px; }
}

/* ---------- 12. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ds *, .ds *::before, .ds *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .ds-js [data-reveal] { opacity: 1; transform: none; }
  .ds-bars i { transform: none; }
  .ds-marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .ds-marquee__track [aria-hidden="true"] { display: none; }
  .ds-marquee { -webkit-mask-image: none; mask-image: none; }
  @view-transition { navigation: none; }
}
