/* ============================================================
   DIGITAL MEDIA SERVICE PAGES
   (core/templates/core/service_pages/_digital_base.html and the pages that extend it)

   Loaded with service-pages.css, which supplies the shared pieces (.cs-grid, sticky .cs-rail, cards,
   table, chips, quote factors, FAQ, offices, related). Everything here is prefixed .dm- and is the
   department's own look: a soft tinted hero with an illustration, a stat strip, feature cards,
   option cards, a care list, a chevron ladder of steps and a comparison table.

   Each service has its own accent colour: the wrapper carries .dm-theme-<name> and every rule below
   reads the --a* variables. No red, no green, no thick side bars (owner rules).
   ============================================================ */

/* ---------- Accent themes ---------- */
.dm-theme-blue    { --a: #2563eb; --a-dark: #1e40af; --a-ink: #172554; --a-soft: #eff6ff; --a-line: #bfdbfe; --h1: var(--a-ink); --h2: var(--a-dark); --h3: var(--a); --g1: #22d3ee; --g2: #8b5cf6; --t1: #38bdf8; --t2: #fbbf24; }
.dm-theme-orange  { --a: #ea580c; --a-dark: #c2410c; --a-ink: #431407; --a-soft: #fff7ed; --a-line: #fed7aa; --h1: var(--a-ink); --h2: var(--a-dark); --h3: var(--a); --g1: #fbbf24; --g2: #7c3aed; --t1: #fcd34d; --t2: #fdba74; }
.dm-theme-violet  { --a: #7c3aed; --a-dark: #5b21b6; --a-ink: #2e1065; --a-soft: #f5f3ff; --a-line: #ddd6fe; --h1: var(--a-ink); --h2: var(--a-dark); --h3: var(--a); --g1: #22d3ee; --g2: #f0abfc; --t1: #67e8f9; --t2: #f0abfc; }
.dm-theme-cyan    { --a: #0891b2; --a-dark: #0e7490; --a-ink: #083344; --a-soft: #ecfeff; --a-line: #a5f3fc; --h1: var(--a-ink); --h2: var(--a-dark); --h3: var(--a); --g1: #3b82f6; --g2: #a78bfa; --t1: #a5f3fc; --t2: #fde68a; }
.dm-theme-amber   { --a: #d97706; --a-dark: #b45309; --a-ink: #451a03; --a-soft: #fffbeb; --a-line: #fde68a; --h1: var(--a-ink); --h2: var(--a-dark); --h3: var(--a); --g1: #fb923c; --g2: #6366f1; --t1: #fde68a; --t2: #fdba74; }
.dm-theme-indigo  { --a: #4f46e5; --a-dark: #3730a3; --a-ink: #1e1b4b; --a-soft: #eef2ff; --a-line: #c7d2fe; --h1: var(--a-ink); --h2: var(--a-dark); --h3: var(--a); --g1: #22d3ee; --g2: #c084fc; --t1: #67e8f9; --t2: #f9a8d4; }
.dm-theme-fuchsia { --a: #c026d3; --a-dark: #86198f; --a-ink: #4a044e; --a-soft: #fdf4ff; --a-line: #f5d0fe; --h1: var(--a-ink); --h2: var(--a-dark); --h3: var(--a); --g1: #6366f1; --g2: #22d3ee; --t1: #a5b4fc; --t2: #fde68a; }
.dm-theme-sky     { --a: #0284c7; --a-dark: #075985; --a-ink: #082f49; --a-soft: #f0f9ff; --a-line: #bae6fd; --h1: var(--a-ink); --h2: var(--a-dark); --h3: var(--a); --g1: #818cf8; --g2: #67e8f9; --t1: #7dd3fc; --t2: #fcd34d; }

/* ---------- Hero: a deep accent gradient with soft colour glows and a faint grid ---------- */
.dm-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #ffffff;
    background:
        radial-gradient(640px 380px at 92% 8%, color-mix(in srgb, var(--g1) 42%, transparent) 0%, transparent 70%),
        radial-gradient(560px 360px at 4% 100%, color-mix(in srgb, var(--g2) 38%, transparent) 0%, transparent 72%),
        linear-gradient(125deg, var(--h1) 0%, var(--h1) 28%, var(--h2) 78%, var(--h3) 150%) !important;
    border-bottom: 1px solid color-mix(in srgb, var(--h1) 70%, black);
    padding: clamp(1.25rem, 2.5vw, 2rem) 0 0 !important;
}
/* faint grid that fades out toward the bottom-left: the "futuristic" texture */
.dm-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 75% 90% at 85% 25%, #000 0%, transparent 78%);
            mask-image: radial-gradient(ellipse 75% 90% at 85% 25%, #000 0%, transparent 78%);
}
.dm-hero > .container {
    max-width: none;
    width: 100%;
    padding-left: clamp(1.5rem, 6vw, 7rem);
    padding-right: clamp(1.5rem, 6vw, 7rem);
}
@media (min-width: 1280px) {
    .dm-hero > .container { padding-right: max(clamp(1.5rem, 6vw, 7rem), 108px); }
}

.dm-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: clamp(0.75rem, 2.5vw, 2rem);
}
.dm-crumbs a { display: inline-flex; align-items: center; min-height: 36px; color: rgba(255, 255, 255, 0.92); text-decoration: none; }
.dm-crumbs a:hover { color: #ffffff; text-decoration: underline; }
.dm-crumbs span[aria-current] { color: #ffffff; }
.dm-crumbs span[aria-hidden] { color: rgba(255, 255, 255, 0.5); }

.dm-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
}
.dm-eyebrow {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.32);
    -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    margin-bottom: 1rem;
}
.dm-hero h1 {
    font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
    font-size: clamp(1.7rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0 0 1rem;
}
.dm-hero h1 .dm-grad {
    font: inherit;
    background: linear-gradient(90deg, var(--t1) 0%, var(--t2) 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.dm-hero-intro { font-size: 1.06rem; line-height: 1.7; color: rgba(255, 255, 255, 0.9); margin: 0 0 1.25rem; max-width: 700px; }
.dm-hero-points { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: 0.55rem; }
.dm-hero-points li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; font-weight: 600; color: #ffffff; }
.dm-hero-points .cs-ico {
    width: 22px;
    height: 22px;
    padding: 4px;
    border-radius: 50%;
    color: var(--h2);
    background: #ffffff;
    stroke-width: 3;
    flex-shrink: 0;
}
.dm-hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.dm-hero-actions .svc-rd-btn { font-size: 0.92rem; padding: 0.8rem 1.4rem; gap: 0.5rem; }
.dm-hero-actions .cs-ico { width: 16px; height: 16px; }
/* on the dark hero the main button takes the warm gradient colour and the second one becomes a glass outline */
.dm-hero-actions .svc-rd-btn-primary { color: var(--a-ink); background: var(--t2); border-color: var(--t2); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5); }
.dm-hero-actions .svc-rd-btn-primary:hover { background: color-mix(in srgb, var(--t2) 80%, white); color: var(--a-ink); }
.dm-hero-actions .svc-rd-btn-outline { color: #ffffff; background: rgba(255, 255, 255, 0.1); border: 1.5px solid rgba(255, 255, 255, 0.55); }
.dm-hero-actions .svc-rd-btn-outline:hover { background: rgba(255, 255, 255, 0.2); color: #ffffff; }

/* ---------- Hero illustration: a stylised website ---------- */
.dm-visual { position: relative; width: 100%; max-width: 540px; justify-self: end; padding: 0 0 1.5rem; }
.dm-browser {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 34px 80px -26px rgba(2, 6, 23, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.18);
    border: 0;
}
.dm-browser-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.7rem 0.9rem; background: var(--a-ink); }
.dm-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); }
.dm-url {
    flex: 1;
    margin-left: 0.6rem;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 600;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dm-browser-body { padding: 1rem 1.1rem 1.2rem; }
.dm-site-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.dm-site-logo { width: 74px; height: 14px; border-radius: 4px; background: var(--a); }
.dm-site-links { display: flex; gap: 0.9rem; }
.dm-site-links i { font-style: normal; font-size: 0.72rem; font-weight: 700; color: #475569; }
.dm-site-hero {
    display: grid;
    gap: 0.45rem;
    padding: 1.1rem 1.1rem 1.2rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--a-soft), #ffffff);
    border: 1px solid var(--a-line);
}
.dm-site-hero strong { font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.15rem; line-height: 1.2; color: #0f172a; }
.dm-site-hero > span { font-size: 0.78rem; line-height: 1.5; color: #475569; font-weight: 600; }
.dm-site-btn {
    justify-self: start;
    margin-top: 0.3rem;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    color: #ffffff;
    background: var(--a);
}
.dm-site-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-top: 0.8rem; }
.dm-site-tiles div { display: grid; gap: 0.45rem; padding: 0.6rem; border-radius: 10px; border: 1px solid #e2e8f0; background: #ffffff; }
.dm-site-tiles i { display: block; height: 34px; border-radius: 8px; background: color-mix(in srgb, var(--a) 18%, white); }
.dm-site-tiles span { font-size: 0.68rem; font-weight: 700; color: #334155; }

/* SEO illustration: a search box and three results, the first one highlighted */
.dm-search-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.9rem;
    margin-bottom: 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 6px 16px -12px rgba(15, 23, 42, 0.5);
}
.dm-search-bar .cs-ico { width: 18px; height: 18px; color: var(--a); flex-shrink: 0; }
.dm-search-bar span { font-size: 0.82rem; font-weight: 600; color: #334155; }
.dm-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.dm-result {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    opacity: 0.8;
}
.dm-result.is-hot { opacity: 1; background: linear-gradient(135deg, var(--a-soft), #ffffff); border-color: var(--a); box-shadow: 0 10px 22px -14px color-mix(in srgb, var(--a-ink) 60%, transparent); }
.dm-result-pin { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; color: #64748b; background: #f1f5f9; }
.dm-result.is-hot .dm-result-pin { color: #ffffff; background: var(--a); }
.dm-result-pin .cs-ico { width: 16px; height: 16px; }
.dm-result-text { flex: 1; min-width: 0; }
.dm-result-text strong { display: block; font-size: 0.82rem; font-weight: 800; color: #0f172a; }
.dm-result-text em { display: block; margin-top: 0.1rem; font-style: normal; font-size: 0.72rem; font-weight: 600; line-height: 1.35; color: #475569; }
.dm-result-call { padding: 0.3rem 0.8rem; border-radius: 999px; font-size: 0.72rem; font-weight: 800; color: #ffffff; background: var(--a); }

.dm-callout {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.85rem 0.5rem 0.6rem;
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--a-ink);
    background: #ffffff;
    border: 1px solid var(--a-line);
    border-radius: 999px;
    box-shadow: 0 14px 28px -14px color-mix(in srgb, var(--a-ink) 55%, transparent);
}
.dm-callout .cs-ico { width: 24px; height: 24px; padding: 5px; border-radius: 50%; color: #ffffff; background: var(--a); }
.dm-callout-a { top: -16px; right: -3%; }
.dm-callout-b { top: 68%; left: -9%; }
.dm-callout-c { bottom: 0; right: 4%; }

.dm-stats {
    list-style: none;
    margin: clamp(1.75rem, 3.5vw, 2.75rem) 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.dm-stats li { padding: 1.15rem 1rem 1.3rem; text-align: center; }
.dm-stats li + li { border-left: 1px solid rgba(255, 255, 255, 0.22); }
.dm-stats strong {
    display: block;
    font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
    font-size: clamp(1.3rem, 2.4vw, 1.9rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
}
.dm-stats span { display: block; font-size: 0.82rem; font-weight: 600; color: rgba(255, 255, 255, 0.82); margin-top: 0.2rem; }

/* ---------- Quick answer band ---------- */
.dm-answer { background: var(--a-soft); border-bottom: 1px solid var(--a-line); font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.dm-answer > .container {
    max-width: none;
    width: 100%;
    padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 6vw, 7rem);
}
@media (min-width: 1280px) {
    .dm-answer > .container { padding-right: max(clamp(1.5rem, 6vw, 7rem), 108px); }
}
.dm-answer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: clamp(1.25rem, 3vw, 3rem); align-items: center; }
.dm-answer-label {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    background: var(--a);
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    margin-bottom: 0.6rem;
}
.dm-answer h2 { font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 700; color: #0f172a; margin: 0 0 0.5rem; }
.dm-answer-text p { margin: 0; font-size: 0.97rem; line-height: 1.7; color: #1e293b; }
.dm-answer-facts { display: grid; gap: 0.6rem; margin: 0; }
.dm-answer-facts div { background: #ffffff; border: 1px solid var(--a-line); border-radius: 12px; padding: 0.65rem 0.9rem; }
.dm-answer-facts dt { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--a-dark); }
.dm-answer-facts dd { margin: 0.1rem 0 0; font-size: 0.88rem; font-weight: 600; line-height: 1.45; color: #1e293b; }
@media (max-width: 860px) { .dm-answer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Shared tile ---------- */
.dm-tile {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 14px;
    color: var(--a-dark);
    background: linear-gradient(140deg, var(--a-soft), color-mix(in srgb, var(--a) 14%, white));
    border: 1px solid var(--a-line);
    transition: transform 0.3s cubic-bezier(0.3, 1.5, 0.5, 1), background 0.25s, color 0.25s;
}
.dm-tile .cs-ico { width: 24px; height: 24px; }
.dm-tile-sm { width: 38px; height: 38px; border-radius: 11px; }
.dm-tile-sm .cs-ico { width: 20px; height: 20px; }

/* ---------- Feature cards ---------- */
.dm-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.dm-feat {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.15rem 1.15rem 1.25rem;
    transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s;
}
.dm-feat h3, .dm-type h3 { font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.1rem; font-weight: 700; color: #0f172a; margin: 0.85rem 0 0.4rem; }
.dm-feat p, .dm-type p { margin: 0; font-size: 0.9rem; line-height: 1.6; color: #334155; }

/* ---------- Option cards ---------- */
.dm-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.dm-type {
    position: relative;
    background: linear-gradient(170deg, var(--a-soft), #ffffff 70%);
    border: 1px solid var(--a-line);
    border-radius: 16px;
    padding: 1.15rem 1.15rem 1.25rem;
    transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s ease;
}
.dm-type-tag {
    position: absolute;
    top: 1.15rem;
    right: 1.05rem;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--a-dark);
    background: #ffffff;
    border: 1px solid var(--a-line);
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    max-width: calc(100% - 5.5rem);
    text-align: right;
}

/* ---------- Care list ---------- */
.dm-manage { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
.dm-manage li {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    padding: 1rem 1.1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}
.dm-manage strong { display: block; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1rem; color: #0f172a; }
.dm-manage span:not(.dm-tile) { display: block; margin-top: 0.2rem; font-size: 0.87rem; line-height: 1.55; color: #334155; }

/* ---------- Process: chevron ladder ---------- */
.dm-proc { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.dm-chev {
    --bg: color-mix(in srgb, var(--a) 12%, white);
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    align-items: center;
    gap: 0 1.1rem;
    padding: 0;
}
.dm-chev:nth-child(2) { --bg: color-mix(in srgb, var(--a) 22%, white); }
.dm-chev:nth-child(3) { --bg: color-mix(in srgb, var(--a) 34%, white); }
.dm-chev:nth-child(4) { --bg: color-mix(in srgb, var(--a) 46%, white); }
.dm-chev:nth-child(5) { --bg: color-mix(in srgb, var(--a) 60%, white); }
.dm-chev-num {
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    min-height: 62px;
    padding-right: 18px;
    font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--a-ink);
    background: var(--bg);
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%);
    border-radius: 10px 0 0 10px;
}
.dm-chev-num::before { content: "STEP\00a0"; }
.dm-chev h3 { font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.02rem; font-weight: 700; color: #0f172a; margin: 0.35rem 0 0; }
.dm-chev p { margin: 0 0 0.35rem; font-size: 0.87rem; line-height: 1.5; color: #334155; }

/* ---------- Comparison table ---------- */
.dm-cmp tbody th { width: 40%; }
.dm-cmp tbody td { color: #1e293b; background: var(--a-soft); font-weight: 600; }
.dm-cmp thead th:last-child { background: color-mix(in srgb, var(--a) 14%, white); color: var(--a-dark); }
.dm-x, .dm-ok { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 0.6rem; vertical-align: middle; border-radius: 50%; }
.dm-x { color: #b45309; background: #fef3c7; }
.dm-ok { color: #ffffff; background: var(--a); }
.dm-x .cs-ico, .dm-ok .cs-ico { width: 14px; height: 14px; stroke-width: 2.6; }

/* ---------- Hover ---------- */
@media (hover: hover) and (pointer: fine) {
    .dm-feat:hover, .dm-type:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 32px -18px color-mix(in srgb, var(--a-ink) 55%, transparent);
    }
    .dm-feat:hover { border-color: var(--a-line); }
    .dm-feat:hover .dm-tile, .dm-type:hover .dm-tile, .cs-card-link:hover .dm-tile {
        transform: rotate(-8deg) scale(1.1);
        color: #ffffff;
        background: linear-gradient(135deg, var(--a-dark), var(--a));
        border-color: transparent;
    }
}
@media (prefers-reduced-motion: reduce) {
    .dm-feat, .dm-type, .dm-tile { transition: none !important; }
    .dm-feat:hover, .dm-type:hover, .dm-feat:hover .dm-tile, .dm-type:hover .dm-tile { transform: none !important; }
}

/* ---------- Related cards: tint the shared tile ---------- */
.cs-related .dm-tile { margin-bottom: 0.2rem; }

/* ============ Responsive ============ */
@media (max-width: 991px) {
    .dm-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .dm-visual { justify-self: start; }
}
@media (max-width: 767px) {
    .dm-cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .dm-cmp, .dm-cmp tbody, .dm-cmp tr, .dm-cmp th, .dm-cmp td { display: block; width: auto; }
    .dm-cmp tr { padding: 0.9rem 1rem; border-bottom: 1px solid #eef2f7; }
    .dm-cmp tbody tr:last-child { border-bottom: 0; }
    .dm-cmp tbody th { padding: 0 0 0.4rem; border: 0; width: auto; }
    .dm-cmp tbody td { padding: 0.45rem 0.6rem; border: 0; border-radius: 10px; }
    /* icon and text side by side, so wrapped lines stay aligned with the text */
    .dm-cmp tbody th, .dm-cmp tbody td { display: flex; align-items: flex-start; gap: 0.6rem; }
    .dm-cmp .dm-x, .dm-cmp .dm-ok { flex-shrink: 0; margin-right: 0; margin-top: 0.05rem; }
}
@media (max-width: 640px) {
    .dm-hero-actions .svc-rd-btn { width: 100%; justify-content: center; }
    .dm-stats { grid-template-columns: minmax(0, 1fr); }
    .dm-stats li + li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.22); }
    .dm-chev { grid-template-columns: 92px minmax(0, 1fr); gap: 0 0.8rem; }
    .dm-chev-num { min-height: 58px; font-size: 0.78rem; }
    /* the floating callouts become a tidy row under the illustration */
    .dm-visual { display: grid; gap: 0.5rem; padding-bottom: 0; }
    .dm-callout { position: static; justify-self: start; }
}

@media (max-width: 640px) {
    .dm-types, .dm-manage { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Fixes inside the shared blocks (this department's look) ---------- */
/* promise ticks follow the accent (the shared style is green) */
[class*="dm-theme-"] .cs-promises .cs-ico { color: var(--a); }
/* the quote factors: icon tile and text share one top edge */
/* the four cost factors always sit in an even 2 x 2 grid (never three and one left over); one column on small phones */
[class*="dm-theme-"] .cs-quote { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 480px) { [class*="dm-theme-"] .cs-quote { grid-template-columns: minmax(0, 1fr); } }
[class*="dm-theme-"] .cs-quote li { align-items: center; gap: 0.9rem; }
/* the shared rule ".cs-quote li span:not(.cs-tile) { display: block }" also hits our tile (a span without the cs-tile class)
   and turns it from a centring grid into a block, which pushed the icon to the top-left corner */
[class*="dm-theme-"] .cs-quote li .dm-tile { display: grid; place-items: center; margin-top: 0; line-height: 1; }
/* "All office locations" and the other header links look like real buttons */
[class*="dm-theme-"] .cs-link-pill {
    color: #ffffff;
    background: linear-gradient(135deg, var(--a-dark), var(--a));
    border: 0;
    padding: 0.6rem 1.05rem;
    border-radius: 999px;
    font-size: 0.85rem;
    box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--a-ink) 70%, transparent);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
[class*="dm-theme-"] .cs-link-pill .cs-ico { color: #ffffff; }
[class*="dm-theme-"] .cs-link-pill:hover, [class*="dm-theme-"] .cs-link-pill:focus-visible { color: #ffffff; transform: translateY(-2px); box-shadow: 0 14px 22px -12px color-mix(in srgb, var(--a-ink) 80%, transparent); }

/* ---------- Guides and sources ---------- */
.dm-sub { font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.15rem; font-weight: 700; color: #0f172a; margin: 1.5rem 0 0.8rem; }
.dm-guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.dm-guide {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1.1rem 1.15rem 1rem;
    color: inherit;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.dm-guide img { width: 100%; height: auto; border-radius: 10px; }
.dm-guide h4 { font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1rem; font-weight: 700; line-height: 1.3; color: #0f172a; margin: 0; }
.dm-guide p { flex: 1; margin: 0; font-size: 0.86rem; line-height: 1.55; color: #334155; }
.dm-guide-more { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; font-weight: 800; color: var(--a-dark); }
.dm-guide-more .cs-ico { width: 15px; height: 15px; }
.dm-allposts { margin: 0.9rem 0 0; }
.dm-allposts a { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 800; font-size: 0.9rem; color: var(--a-dark); text-decoration: none; }
.dm-allposts a:hover { text-decoration: underline; }
.dm-allposts .cs-ico { width: 15px; height: 15px; }

.dm-sources { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
.dm-source {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    height: 100%;
    padding: 0.85rem 0.9rem 0.85rem 1rem;
    color: #0f172a;
    text-decoration: none;
    background: #ffffff;
    border: 1.5px solid var(--a-line);
    border-radius: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.dm-source-ico { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; color: var(--a-dark); background: var(--a-soft); border-radius: 12px; }
.dm-source-ico .cs-ico { width: 22px; height: 22px; }
.dm-source-text { flex: 1 1 auto; min-width: 0; }
.dm-source-text strong { display: block; font-size: 0.93rem; font-weight: 700; line-height: 1.3; }
.dm-source-text em { display: block; margin-top: 0.1rem; font-style: normal; font-size: 0.78rem; font-weight: 700; color: var(--a-dark); overflow-wrap: anywhere; }
.dm-source-text small { display: block; margin-top: 0.25rem; font-size: 0.82rem; line-height: 1.4; color: #475569; }
.dm-source-go { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; color: #ffffff; background: var(--a); border-radius: 50%; transition: transform 0.2s ease; }
.dm-source-go .cs-ico { width: 16px; height: 16px; stroke-width: 2.6; transform: rotate(-45deg); }
.dm-source:focus-visible, .dm-guide:focus-visible { outline: 3px solid var(--a); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
    .dm-source:hover, .dm-guide:hover { transform: translateY(-3px); border-color: var(--a); box-shadow: 0 16px 26px -16px color-mix(in srgb, var(--a-ink) 60%, transparent); }
    .dm-source:hover .dm-source-go { transform: translate(2px, -2px); }
}
@media (max-width: 991px) { .dm-sources { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Animated icon tiles (cost factors, care list, related cards) ---------- */
@keyframes dm-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
@keyframes dm-ring {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--a) 30%, transparent); }
    70%, 100% { box-shadow: 0 0 0 9px transparent; }
}
.cs-quote .dm-tile,
.dm-manage .dm-tile,
.cs-related .dm-tile {
    animation: dm-bob 3.6s ease-in-out infinite, dm-ring 3.6s ease-out infinite;
}
.cs-quote li:nth-child(2) .dm-tile, .dm-manage li:nth-child(2) .dm-tile, .cs-related .cs-card-link:nth-child(2) .dm-tile { animation-delay: 0.45s; }
.cs-quote li:nth-child(3) .dm-tile, .dm-manage li:nth-child(3) .dm-tile, .cs-related .cs-card-link:nth-child(3) .dm-tile { animation-delay: 0.9s; }
.cs-quote li:nth-child(4) .dm-tile, .dm-manage li:nth-child(4) .dm-tile, .cs-related .cs-card-link:nth-child(4) .dm-tile { animation-delay: 1.35s; }
.cs-related .cs-card-link:nth-child(5) .dm-tile { animation-delay: 1.8s; }
.cs-related .cs-card-link:nth-child(6) .dm-tile { animation-delay: 2.25s; }
@media (hover: hover) and (pointer: fine) {
    .cs-quote li:hover .dm-tile, .dm-manage li:hover .dm-tile {
        animation-play-state: paused;
        transform: rotate(-8deg) scale(1.1);
        color: #ffffff;
        background: linear-gradient(135deg, var(--a-dark), var(--a));
        border-color: transparent;
    }
}
@media (prefers-reduced-motion: reduce) {
    .cs-quote .dm-tile, .dm-manage .dm-tile, .cs-related .dm-tile { animation: none !important; }
}

/* SEO illustration: keep the left callout mostly outside the card so it never hides a result */
.dm-visual-search .dm-callout-b { left: -15%; top: 52%; }
@media (max-width: 640px) { .dm-visual-search .dm-callout-b { left: auto; top: auto; } }

/* ============ Round 4 ============ */

/* ---------- Theme overrides: no stray blue on the warmer pages ---------- */
[class*="dm-theme-"] .svc-rd-btn-primary:not(.dm-hero-actions .svc-rd-btn-primary):not(.sd-rd-cta .svc-rd-btn-primary) {
    background: linear-gradient(135deg, var(--a-dark), var(--a));
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--a-ink) 70%, transparent);
}
[class*="dm-theme-"] .svc-rd-btn-primary:not(.dm-hero-actions .svc-rd-btn-primary):not(.sd-rd-cta .svc-rd-btn-primary):hover { background: linear-gradient(135deg, var(--a), var(--a-dark)); color: #ffffff; }
[class*="dm-theme-"] .cs-more, [class*="dm-theme-"] .cs-office-phone, [class*="dm-theme-"] .cs-prose a { color: var(--a-dark); }
[class*="dm-theme-"] .cs-office .cs-tile, [class*="dm-theme-"] .cs-outside .cs-tile { color: var(--a-dark); background: var(--a-soft); border-color: var(--a-line); }
[class*="dm-theme-"] .cs-callout { border-color: var(--a-line); background: linear-gradient(135deg, #ffffff, var(--a-soft)); }
[class*="dm-theme-"] .faq-rd-q, [class*="dm-theme-"] .faq-rd-chevron { color: var(--a); }
[class*="dm-theme-"] .faq-rd-item.is-open { border-color: var(--a-line); }
[class*="dm-theme-"] .cs-inline-cta { background: linear-gradient(135deg, var(--a-ink), color-mix(in srgb, var(--a-dark) 75%, black)); }
.dm-inline-link { color: var(--a-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: color-mix(in srgb, var(--a) 45%, transparent); }
.dm-inline-link:hover { text-decoration-color: var(--a); }
.dm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Hero: animated search bar ---------- */
.dm-hsearch { margin: 0 0 1.4rem; max-width: 560px; }
.dm-hsearch-label { display: block; margin-bottom: 0.4rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }
.dm-hsearch-bar {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 1.1rem;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 16px 34px -16px rgba(0, 0, 0, 0.6), 0 0 0 4px rgba(255, 255, 255, 0.14);
}
.dm-hsearch-bar .cs-ico { width: 20px; height: 20px; color: var(--a); flex-shrink: 0; }
.dm-hsearch-text { font-size: 1rem; font-weight: 600; color: #0f172a; min-height: 1.4em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-caret { width: 2px; height: 1.15em; background: var(--a); animation: dm-blink 1s steps(1) infinite; }
@keyframes dm-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dm-caret { animation: none; } }

/* ---------- Pillars: three numbered columns ---------- */
.dm-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.dm-pillar {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.3rem 1.2rem 1.2rem;
    background: linear-gradient(170deg, var(--a-soft), #ffffff 65%);
    border: 1px solid var(--a-line);
    border-radius: 18px;
    overflow: hidden;
}
.dm-pillar-num {
    position: absolute;
    top: -0.35rem;
    right: 0.7rem;
    font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
    font-size: 4.2rem;
    font-weight: 700;
    line-height: 1;
    color: color-mix(in srgb, var(--a) 14%, white);
    pointer-events: none;
}
.dm-pillar h3 { font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.15rem; font-weight: 700; color: #0f172a; margin: 0.4rem 0 0; }
.dm-pillar p { margin: 0; font-size: 0.9rem; line-height: 1.6; color: #334155; }
.dm-pillar-do { margin-top: auto; padding-top: 0.7rem; border-top: 1px dashed var(--a-line); font-size: 0.85rem; line-height: 1.5; color: #1e293b; }
.dm-pillar-do b { color: var(--a-dark); }

/* ---------- Numbered checklist (instead of feature cards) ---------- */
.dm-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border: 1px solid #e2e8f0; border-radius: 18px; overflow: hidden; background: #ffffff; }
.dm-check li { display: grid; grid-template-columns: 52px minmax(0, 1fr) 44px; align-items: center; gap: 1rem; padding: 1.05rem 1.2rem; }
.dm-check li + li { border-top: 1px solid #eef2f7; }
.dm-check li:nth-child(even) { background: color-mix(in srgb, var(--a-soft) 60%, white); }
.dm-check-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.05rem; font-weight: 700; color: #ffffff; background: linear-gradient(135deg, var(--a-dark), var(--a)); }
.dm-check h3 { font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.05rem; font-weight: 700; color: #0f172a; margin: 0 0 0.2rem; }
.dm-check p { margin: 0; font-size: 0.9rem; line-height: 1.55; color: #334155; }
.dm-check-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--a-dark); background: var(--a-soft); }
.dm-check-ico .cs-ico { width: 22px; height: 22px; }

/* ---------- Ways to start: plain rows (no tiers, no promises of what each includes) ---------- */
.dm-routes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.dm-route { display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(190px, 0.55fr); align-items: center; gap: 1rem; padding: 1rem 1.2rem; background: linear-gradient(100deg, var(--a-soft), #ffffff 60%); border: 1px solid var(--a-line); border-radius: 16px; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.dm-route h3 { font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.08rem; font-weight: 700; color: #0f172a; margin: 0 0 0.2rem; }
.dm-route-tag { display: inline-block; margin-bottom: 0.3rem; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--a-dark); }
.dm-route p { margin: 0; font-size: 0.9rem; line-height: 1.55; color: #334155; }
.dm-route-fit { padding: 0.65rem 0.85rem; font-size: 0.82rem; line-height: 1.45; color: #1e293b; background: #ffffff; border: 1px dashed var(--a-line); border-radius: 12px; }
.dm-route-fit b { display: block; margin-bottom: 0.1rem; font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--a-dark); }
@media (hover: hover) and (pointer: fine) { .dm-route:hover { transform: translateY(-3px); box-shadow: 0 16px 26px -18px color-mix(in srgb, var(--a-ink) 60%, transparent); } .dm-route:hover .dm-tile { transform: rotate(-8deg) scale(1.1); color: #ffffff; background: linear-gradient(135deg, var(--a-dark), var(--a)); border-color: transparent; } }

/* ---------- Vertical timeline (instead of chevrons) ---------- */
.dm-tline { list-style: none; margin: 0; padding: 0; position: relative; }
.dm-tline::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(180deg, var(--a), var(--a-line)); }
.dm-tline li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 1.1rem; padding-bottom: 1.15rem; }
.dm-tline li:last-child { padding-bottom: 0; }
.dm-tline-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-weight: 700; color: var(--a-dark); background: #ffffff; border: 2px solid var(--a); box-shadow: 0 0 0 5px var(--a-soft); }
.dm-tline-body { padding: 0.65rem 1rem 0.8rem; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 14px; }
.dm-tline-body h3 { font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.02rem; font-weight: 700; color: #0f172a; margin: 0 0 0.2rem; }
.dm-tline-body p { margin: 0; font-size: 0.88rem; line-height: 1.55; color: #334155; }

/* ---------- Proof: a search-result preview plus checks ---------- */
.dm-proof { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 1.25rem; align-items: start; }
.dm-serp-label { display: block; margin-bottom: 0.5rem; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--a-dark); }
.dm-serp-card { padding: 1.1rem 1.2rem 1.15rem; background: #ffffff; border: 1px solid #dfe3e8; border-radius: 16px; box-shadow: 0 18px 34px -24px rgba(15, 23, 42, 0.5); font-family: Arial, "Plus Jakarta Sans", sans-serif; }
.dm-serp-site { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }
.dm-serp-fav { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-weight: 800; font-size: 0.8rem; color: #ffffff; background: var(--a-dark); flex-shrink: 0; }
.dm-serp-site b { display: block; font-size: 0.82rem; font-weight: 600; color: #202124; }
.dm-serp-site i { display: block; font-style: normal; font-size: 0.74rem; color: #4d5156; overflow-wrap: anywhere; }
.dm-serp-card h3 { margin: 0 0 0.3rem; font-family: Arial, sans-serif; font-size: 1.15rem; font-weight: 400; line-height: 1.3; color: #1a0dab; }
.dm-serp-card p { margin: 0; font-size: 0.86rem; line-height: 1.55; color: #4d5156; }
.dm-serp-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; margin: 0.8rem 0 0; padding: 0.7rem 0 0; border-top: 1px solid #eceff1; }
.dm-serp-meta li { font-size: 0.76rem; font-weight: 700; color: var(--a-dark); }
.dm-proof-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.dm-proof-list li { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.75rem 0.9rem; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; }
.dm-proof-ico { display: grid; place-items: center; width: 26px; height: 26px; flex-shrink: 0; margin-top: 0.1rem; border-radius: 50%; color: #ffffff; background: var(--a); }
.dm-proof-ico .cs-ico { width: 15px; height: 15px; stroke-width: 3; }
.dm-proof-list strong { display: block; font-size: 0.9rem; color: #0f172a; }
.dm-proof-list span:not(.dm-proof-ico) { display: block; margin-top: 0.1rem; font-size: 0.84rem; line-height: 1.5; color: #334155; }


@media (max-width: 991px) {
    .dm-pillars { grid-template-columns: minmax(0, 1fr); }
    .dm-proof { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
    .dm-check li { grid-template-columns: 44px minmax(0, 1fr); }
    .dm-check-ico { display: none; }
}
@media (max-width: 640px) {
    .dm-hsearch-text { font-size: 0.92rem; }
}

[class*="dm-theme-"] .cs-note a, [class*="dm-theme-"] .cs-lead a { color: var(--a-dark); font-weight: 700; }
[class*="dm-theme-"] .cs-ideal { background: linear-gradient(135deg, var(--a-soft), #ffffff); border-color: var(--a-line); }
[class*="dm-theme-"] .cs-ideal strong, [class*="dm-theme-"] .cs-ideal .cs-ico { color: var(--a-dark); }
[class*="dm-theme-"] .cs-chips li:not(.cs-chips-label) { background: var(--a-soft); border-color: var(--a-line); color: var(--a-ink); }
[class*="dm-theme-"] .cs-rail-call .cs-tile { color: var(--a-dark); background: var(--a-soft); border-color: var(--a-line); }

@media (max-width: 767px) {
    .dm-route { grid-template-columns: 44px minmax(0, 1fr); }
    .dm-route-fit { grid-column: 1 / -1; }
}
.dm-serp-note { margin: 0.6rem 0 0; font-size: 0.78rem; line-height: 1.5; font-weight: 600; color: #64748b; }

/* ============ Google Ads page: ad-preview hero, flow, tabs, chooser, loop ============ */

/* ---------- Hero: an example search ad that cycles between invented companies ---------- */
.dm-ad {
    position: relative;
    margin: 0.9rem 0 0.8rem;
    padding: 0.9rem 1rem 0.95rem;
    background: linear-gradient(135deg, var(--a-soft), #ffffff);
    border: 1px solid var(--a);
    border-radius: 14px;
    box-shadow: 0 14px 28px -18px color-mix(in srgb, var(--a-ink) 70%, transparent);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.dm-ad.is-swapping { opacity: 0; transform: translateY(6px); }
.dm-ad-top { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem 0.5rem; margin-bottom: 0.35rem; }
.dm-ad-badge { padding: 0.08rem 0.45rem; font-size: 0.66rem; font-weight: 800; color: #ffffff; background: var(--a); border-radius: 5px; }
.dm-ad-site { font-size: 0.78rem; font-weight: 800; color: #0f172a; }
.dm-ad-top i { font-style: normal; font-size: 0.72rem; font-weight: 600; color: #64748b; }
.dm-ad h3, .dm-ad-head { margin: 0 0 0.25rem; font-family: Arial, "Plus Jakarta Sans", sans-serif; font-size: 1.05rem; font-weight: 400; line-height: 1.3; color: #1a0dab; }
.dm-ad p { margin: 0; font-size: 0.8rem; line-height: 1.45; color: #475569; }
.dm-ad-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.7rem; }
.dm-ad-call { position: relative; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.85rem; font-size: 0.78rem; color: #ffffff; background: var(--a); border-radius: 999px; animation: dm-pulse 2.6s ease-out infinite; }
.dm-ad-call .cs-ico { width: 14px; height: 14px; }
.dm-ad-link { padding: 0.4rem 0.8rem; font-size: 0.76rem; font-weight: 700; color: var(--a-dark); background: #ffffff; border: 1px solid var(--a-line); border-radius: 999px; }
@keyframes dm-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--a) 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 12px transparent; } }
.dm-ad-ghost { display: grid; gap: 0.5rem; opacity: 0.55; }
.dm-ad-ghost span { display: block; height: 38px; border-radius: 10px; background: linear-gradient(90deg, #e2e8f0 0 60%, #f1f5f9 60% 100%); }
.dm-ad-toast {
    position: absolute;
    right: 1.2rem;
    bottom: 0.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--a-ink);
    background: var(--t2);
    border-radius: 999px;
    box-shadow: 0 14px 26px -12px rgba(0, 0, 0, 0.55);
    opacity: 0;
    animation: dm-toast 6s ease-in-out infinite 2s;
}
.dm-ad-toast .cs-ico { width: 14px; height: 14px; }
@keyframes dm-toast { 0%, 8% { opacity: 0; transform: translateY(10px); } 14%, 40% { opacity: 1; transform: translateY(0); } 48%, 100% { opacity: 0; transform: translateY(-6px); } }
.dm-visual-ads .dm-callout-b { left: -12%; top: 62%; }
.dm-visual-ads .dm-callout-c { bottom: -0.4rem; right: auto; left: 8%; }
@media (prefers-reduced-motion: reduce) { .dm-ad-call, .dm-ad-toast { animation: none; } .dm-ad-toast { opacity: 1; } .dm-ad { transition: none; } }
@media (max-width: 640px) { .dm-ad-toast { position: static; justify-self: start; opacity: 1; animation: none; } .dm-visual-ads .dm-callout-b, .dm-visual-ads .dm-callout-c { left: auto; } }

/* ---------- Flow: four stages joined by arrows ---------- */
.dm-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; counter-reset: none; }
.dm-flow-step {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1.2rem 1.05rem 1.05rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}
.dm-flow-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 38px;
    right: -1.05rem;
    width: 0.9rem;
    height: 0.9rem;
    background: var(--a);
    clip-path: polygon(0 0, 100% 50%, 0 100%, 25% 50%);
    z-index: 1;
}
.dm-flow-num { position: absolute; top: 0.7rem; right: 0.8rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 0.8rem; font-weight: 800; color: var(--a-dark); }
.dm-flow-step h3 { font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.05rem; font-weight: 700; color: #0f172a; margin: 0.4rem 0 0; }
.dm-flow-step p { margin: 0; font-size: 0.87rem; line-height: 1.5; color: #334155; }
.dm-flow-do { margin-top: auto; padding-top: 0.6rem; border-top: 1px dashed var(--a-line); font-size: 0.82rem; line-height: 1.45; color: #1e293b; }
.dm-flow-do b { color: var(--a-dark); }

/* ---------- Tabs ---------- */
.dm-tabs-list { display: none; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.9rem; }
.dm-tabs.is-js .dm-tabs-list { display: flex; }
.dm-tab { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.45rem 1rem; font-family: inherit; font-size: 0.88rem; font-weight: 700; color: #1e293b; background: var(--a-soft); border: 1.5px solid var(--a-line); border-radius: 999px; cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.2s; }
.dm-tab .cs-ico { width: 18px; height: 18px; color: var(--a-dark); }
.dm-tab[aria-selected="true"] { color: #ffffff; background: linear-gradient(135deg, var(--a-dark), var(--a)); border-color: transparent; }
.dm-tab[aria-selected="true"] .cs-ico { color: #ffffff; }
.dm-tab:focus-visible { outline: 3px solid var(--a-line); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .dm-tab:hover:not([aria-selected="true"]) { transform: translateY(-2px); background: color-mix(in srgb, var(--a) 14%, white); } }
.dm-tabs-panel { margin-bottom: 0.8rem; padding: 1.2rem 1.3rem 1.3rem; background: linear-gradient(160deg, var(--a-soft), #ffffff 65%); border: 1px solid var(--a-line); border-radius: 18px; }
.dm-tabs.is-js .dm-tabs-panel { margin-bottom: 0; }
.dm-tabs-panel[hidden] { display: none; }
.dm-tabs-panel h3 { font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.2rem; font-weight: 700; color: #0f172a; margin: 0 0 0.4rem; }
.dm-tabs-panel > p { margin: 0 0 1rem; font-size: 0.95rem; line-height: 1.6; color: #1e293b; max-width: 62ch; }
.dm-tabs-cols { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 1rem; }
.dm-tabs-cols b { display: block; margin-bottom: 0.4rem; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--a-dark); }
.dm-tabs-best, .dm-tabs-do { padding: 0.8rem 0.95rem; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; }
.dm-tabs-best p { margin: 0; font-size: 0.9rem; line-height: 1.5; color: #1e293b; }
.dm-tabs-do ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.dm-tabs-do li { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.88rem; line-height: 1.45; color: #1e293b; }
.dm-tabs-do .cs-ico { width: 16px; height: 16px; margin-top: 0.15rem; flex-shrink: 0; color: var(--a); stroke-width: 3; }

/* ---------- Chooser ---------- */
.dm-chooser { display: grid; gap: 1rem; }
.dm-q-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.dm-q { padding: 1rem 1.1rem; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; }
.dm-q fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.dm-q legend { display: flex; gap: 0.6rem; align-items: center; margin: 0 0 0.7rem; padding: 0; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1rem; font-weight: 700; color: #0f172a; }
.dm-q-num { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; font-size: 0.82rem; color: #ffffff; background: var(--a); }
.dm-q-opts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.dm-opt { position: relative; cursor: pointer; }
.dm-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.dm-opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 0.4rem 1rem; font-size: 0.9rem; font-weight: 700; color: #1e293b; background: var(--a-soft); border: 1.5px solid var(--a-line); border-radius: 999px; transition: background 0.2s, color 0.2s, transform 0.2s; }
.dm-opt input:checked + span { color: #ffffff; background: linear-gradient(135deg, var(--a-dark), var(--a)); border-color: transparent; }
.dm-opt input:focus-visible + span { outline: 3px solid var(--a-line); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .dm-opt:hover input:not(:checked) + span { transform: translateY(-2px); } }
.dm-verdict { padding: 1.15rem 1.3rem 1.25rem; color: #ffffff; background: linear-gradient(135deg, var(--a-ink), color-mix(in srgb, var(--a-dark) 80%, black)); border-radius: 18px; animation: dm-rise 0.4s ease both; }
.dm-verdict[hidden] { display: none; }
@keyframes dm-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.dm-verdict-label { display: inline-block; margin-bottom: 0.4rem; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--t2); }
.dm-verdict h3 { font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.3rem; font-weight: 700; color: #ffffff; margin: 0 0 0.4rem; }
.dm-verdict p { margin: 0 0 1rem; font-size: 0.95rem; line-height: 1.6; color: rgba(255, 255, 255, 0.9); max-width: 62ch; }
.dm-verdict .svc-rd-btn { color: var(--a-ink); background: var(--t2); border-color: var(--t2); }
@media (prefers-reduced-motion: reduce) { .dm-verdict { animation: none; } }

/* ---------- Loop: four steps that go round ---------- */
.dm-loop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.dm-loop-step { position: relative; padding: 1.1rem 1rem 1rem; background: linear-gradient(170deg, var(--a-soft), #ffffff 70%); border: 1px solid var(--a-line); border-radius: 18px; }
.dm-loop-num { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 0.5rem; border-radius: 50%; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-weight: 700; color: #ffffff; background: linear-gradient(135deg, var(--a-dark), var(--a)); }
.dm-loop-step h3 { font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.05rem; font-weight: 700; color: #0f172a; margin: 0 0 0.25rem; }
.dm-loop-step p { margin: 0; font-size: 0.86rem; line-height: 1.5; color: #334155; }
.dm-loop-step:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -0.85rem; width: 0.75rem; height: 0.75rem; background: var(--a); clip-path: polygon(0 0, 100% 50%, 0 100%, 25% 50%); }
.dm-loop-note { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin: 0.9rem 0 0; padding: 0.55rem 1rem; font-size: 0.86rem; font-weight: 700; color: var(--a-dark); background: var(--a-soft); border: 1px dashed var(--a); border-radius: 999px; }
.dm-loop-note .cs-ico { width: 18px; height: 18px; animation: dm-spin 6s linear infinite; }
@keyframes dm-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .dm-loop-note .cs-ico { animation: none; } }

@media (max-width: 991px) {
    .dm-flow, .dm-loop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dm-flow-step::after, .dm-loop-step::after { display: none; }
    .dm-tabs-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
    .dm-flow, .dm-loop { grid-template-columns: minmax(0, 1fr); }
    .dm-tab span { font-size: 0.84rem; }
}

/* Google theme (the Google Ads page): Google blue with yellow highlights; the example ad carries a thin four-colour strip as a nod to Google. */
.dm-theme-google { --a: #1a73e8; --a-dark: #174ea6; --a-ink: #0b2a5c; --a-soft: #e8f0fe; --a-line: #c6dafc; --h1: var(--a-ink); --h2: var(--a-dark); --h3: var(--a); --g1: #8ab4f8; --g2: #fbbc05; --t1: #8ab4f8; --t2: #fbbc05; }

/* Google theme, round 2: the colour style of the new Google "G" (red, yellow, green, blue in one flowing gradient) */
.dm-theme-google { --gg: linear-gradient(90deg, #ff5a5f 0%, #ffcc00 34%, #1fc766 66%, #3b8cff 100%); --gg-soft: conic-gradient(from 210deg, #ff4b55, #ffcc00, #12b955, #2e87ff, #ff4b55); }
.dm-theme-google .dm-hero h1 .dm-grad { background: var(--gg); -webkit-background-clip: text; background-clip: text; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* a soft, blurred ring of the four colours behind the ad, like the G itself */
.dm-theme-google .dm-hero::after { content: ""; position: absolute; right: -6%; top: -34%; width: 640px; height: 640px; border-radius: 50%; background: var(--gg-soft); filter: blur(80px); opacity: 0.3; z-index: -1; pointer-events: none; }
/* small touches of the gradient across the page */
.dm-theme-google .dm-tab[aria-selected="true"] { background: linear-gradient(135deg, #174ea6, #1a73e8); }
.dm-theme-google .dm-loop-note { border-image: none; border-color: #1a73e8; }
.dm-theme-google .dm-ad-badge { background: linear-gradient(135deg, #174ea6, #1a73e8); }
@media (max-width: 640px) { .dm-theme-google .dm-hero::after { width: 420px; height: 420px; right: -30%; } }

/* ============ Google Ads page, round 3 ============ */

/* the example ad: a small ring in the four colours (like the G) in front of the company name, instead of a coloured line */
.dm-ad-ring { position: relative; display: inline-block; width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; background: var(--gg-soft, var(--a)); }
.dm-ad-ring::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #ffffff; }

/* the three questions live in one compact box: question on the left, answers on the right */
.dm-q-list { gap: 0; overflow: hidden; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 16px; }
.dm-q { padding: 0.8rem 1.1rem; background: transparent; border: 0; border-radius: 0; }
.dm-q + .dm-q { border-top: 1px solid #eef2f7; }
.dm-q-row { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, auto); align-items: center; gap: 0.6rem 1.2rem; }
.dm-q-text { display: flex; gap: 0.6rem; align-items: center; margin: 0; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 0.98rem; font-weight: 700; color: #0f172a; }
.dm-q-num { background: var(--a); }
.dm-q .dm-opt span { min-height: 40px; padding: 0.3rem 0.9rem; font-size: 0.86rem; }
@media (max-width: 860px) { .dm-q-row { grid-template-columns: minmax(0, 1fr); } }

/* the loop: step labels and titles take the Google colours as text; a clear return path goes from step 4 back to step 1 */
.dm-loop-step { --sc: var(--a-dark); }
.dm-theme-google .dm-loop-step:nth-child(1) { --sc: #1a73e8; }
.dm-theme-google .dm-loop-step:nth-child(2) { --sc: #d93025; }
.dm-theme-google .dm-loop-step:nth-child(3) { --sc: #b06000; }
.dm-theme-google .dm-loop-step:nth-child(4) { --sc: #188038; }
.dm-loop-num { display: block; width: auto; height: auto; margin: 0 0 0.3rem; border-radius: 0; background: none; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sc); }
.dm-loop-num::before { content: "Step\00a0"; }
.dm-loop-step h3 { color: var(--sc); font-size: 1.2rem; }
.dm-loop-return { position: relative; height: 46px; margin: 0.5rem 12.5% 1.6rem; border: 2px dashed var(--a); border-top: 0; border-radius: 0 0 18px 18px; }
.dm-loop-return::before { content: ""; position: absolute; left: -8px; top: -9px; width: 14px; height: 10px; background: var(--a); clip-path: polygon(50% 0, 0 100%, 100% 100%); }
.dm-loop-return-text { position: absolute; left: 50%; bottom: -17px; transform: translateX(-50%); white-space: nowrap; padding: 0.4rem 1rem; font-size: 0.86rem; font-weight: 800; color: var(--a-dark); background: #ffffff; border: 1.5px solid var(--a); border-radius: 999px; }
@media (max-width: 991px) {
    .dm-loop-return { height: auto; margin: 0.8rem 0 0; border: 0; }
    .dm-loop-return::before { display: none; }
    .dm-loop-return-text { position: static; display: block; transform: none; white-space: normal; text-align: center; }
}

/* ============ Graphics page: live brand kit hero, bento grid, staircase ============ */

/* ---------- Hero: a brand kit whose palette can be changed ---------- */
.dm-brand {
    --b1: #fff1e6; --b2: #f6a35b; --b3: #e8590c; --b4: #9a3412; --b5: #431407;
    padding: 1.05rem 1.1rem 1.1rem;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 34px 80px -26px rgba(2, 6, 23, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.dm-brand * { transition: background-color 0.6s ease, color 0.6s ease, border-color 0.6s ease, border-radius 0.6s ease, box-shadow 0.6s ease, opacity 0.6s ease; }
.dm-brand-head { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; padding-bottom: 0.8rem; border-bottom: 1px solid #eef2f7; }
.dm-brand-mark { display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--b1); background: var(--b3); box-shadow: 0 8px 18px -8px var(--b3); }
.dm-brand-head b { display: block; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.05rem; color: var(--b5); }
.dm-brand-head i { display: block; font-style: normal; font-size: 0.78rem; font-weight: 600; color: var(--b4); }
.dm-brand-label { order: -1; width: 100%; margin-bottom: 0.1rem; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #64748b; }
.dm-brand-grid { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto auto; gap: 0.7rem; margin: 0.9rem 0; }
.dm-brand-card { grid-row: 1 / span 2; display: grid; align-content: start; gap: 0.45rem; padding: 0.9rem; min-height: 120px; background: var(--b1); border: 1px solid var(--b2); border-radius: 12px; }
.dm-brand-card b { font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 0.9rem; color: var(--b4); }
.dm-brand-card span { display: block; height: 6px; border-radius: 4px; background: var(--b2); }
.dm-brand-card span + span { width: 60%; background: var(--b3); }
.dm-brand-card em { margin-top: auto; font-style: normal; font-size: 0.7rem; font-weight: 700; color: var(--b5); }
.dm-brand-post { display: grid; place-items: center; padding: 0.8rem; min-height: 62px; text-align: center; background: linear-gradient(135deg, var(--b3), var(--b4)); border-radius: 12px; }
.dm-brand-post span { font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 0.86rem; font-weight: 700; line-height: 1.2; color: var(--b1); }
.dm-brand-type { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.8rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; }
.dm-brand-type strong { font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.7rem; line-height: 1; color: var(--b3); }
.dm-brand-type small { font-size: 0.7rem; font-weight: 700; color: #475569; }
.dm-brand-swatches { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.dm-swatch { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 40px; padding: 0.3rem 0.8rem 0.3rem 0.5rem; font-family: inherit; font-size: 0.78rem; font-weight: 700; color: #1e293b; background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 999px; cursor: pointer; transition: transform 0.2s, border-color 0.2s, background 0.2s; }
.dm-swatch-dots { display: inline-flex; }
.dm-swatch-dots i { width: 14px; height: 14px; margin-left: -4px; border: 2px solid #ffffff; border-radius: 50%; }
.dm-swatch-dots i:first-child { margin-left: 0; }
.dm-swatch[aria-pressed="true"] { color: var(--a-ink); background: var(--a-soft); border-color: var(--a); }
.dm-swatch:focus-visible { outline: 3px solid var(--a-line); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .dm-swatch:hover { transform: translateY(-2px); } }
.dm-visual-brand .dm-callout-a { top: -14px; right: -3%; }
.dm-visual-brand .dm-callout-b { top: auto; bottom: -14px; left: 3%; }
.dm-visual-brand .dm-callout-c { bottom: -14px; right: 3%; }
@media (prefers-reduced-motion: reduce) { .dm-brand * { transition: none; } }

/* Each palette also has its own style: shapes, type, borders and a pattern, not only colours. Four patterns sit in the
   post tile and fade in or out with the chosen style. */
.dm-brand-post { position: relative; overflow: hidden; }
.dm-brand-post > span { position: relative; z-index: 1; }
.dm-bp { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.dm-bp-warm { background: radial-gradient(circle at 50% 135%, var(--b2) 0 34%, transparent 35%), radial-gradient(circle at 50% 135%, transparent 0 46%, var(--b2) 47% 50%, transparent 51%); }
.dm-bp-fresh { background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.16) 0 7px, transparent 7px 18px); }
.dm-bp-bold { background: repeating-linear-gradient(45deg, var(--b2) 0 9px, transparent 9px 24px); opacity: 0; }
.dm-bp-calm { background: radial-gradient(circle at 85% 20%, transparent 0 18px, rgba(255, 255, 255, 0.3) 19px 20px, transparent 21px 34px, rgba(255, 255, 255, 0.22) 35px 36px, transparent 37px 52px, rgba(255, 255, 255, 0.16) 53px 54px, transparent 55px); }
.dm-brand[data-style="warm"] .dm-bp-warm, .dm-brand[data-style="fresh"] .dm-bp-fresh, .dm-brand[data-style="bold"] .dm-bp-bold, .dm-brand[data-style="calm"] .dm-bp-calm { opacity: 1; }
.dm-brand[data-style="bold"] .dm-bp-bold { opacity: 0.55; }

/* Warm: soft, round, a little old-fashioned. Serif type, a stamp-style dashed card, a rising sun. */
.dm-brand[data-style="warm"] .dm-brand-mark { border-radius: 50%; font-family: Georgia, "Times New Roman", serif; font-style: italic; }
.dm-brand[data-style="warm"] .dm-brand-head b, .dm-brand[data-style="warm"] .dm-brand-card b, .dm-brand[data-style="warm"] .dm-brand-post span, .dm-brand[data-style="warm"] .dm-brand-type strong { font-family: Georgia, "Times New Roman", serif; }
.dm-brand[data-style="warm"] .dm-brand-card { border: 2px dashed var(--b2); border-radius: 18px; }
.dm-brand[data-style="warm"] .dm-brand-post { border-radius: 18px; align-items: end; padding-bottom: 0.9rem; }
.dm-brand[data-style="warm"] .dm-brand-type { border-radius: 18px; }

/* Fresh: clean and light. Sans type, leaf-shaped corners, thin diagonal lines. */
.dm-brand[data-style="fresh"] .dm-brand-mark { border-radius: 60% 6px 60% 6px; }
.dm-brand[data-style="fresh"] .dm-brand-card { border-radius: 6px 22px 6px 22px; border-color: var(--b3); }
.dm-brand[data-style="fresh"] .dm-brand-post { border-radius: 22px 6px 22px 6px; }
.dm-brand[data-style="fresh"] .dm-brand-type { border-radius: 6px 22px 6px 22px; }
.dm-brand[data-style="fresh"] .dm-brand-head b { font-weight: 600; }

/* Bold: loud and square. Heavy capitals, hard offset shadows, wide stripes. */
.dm-brand[data-style="bold"] .dm-brand-mark { border-radius: 0; font-weight: 800; box-shadow: 4px 4px 0 var(--b5); }
.dm-brand[data-style="bold"] .dm-brand-head b, .dm-brand[data-style="bold"] .dm-brand-card b { font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; }
.dm-brand[data-style="bold"] .dm-brand-card { border: 2px solid var(--b5); border-radius: 0; box-shadow: 5px 5px 0 var(--b3); }
.dm-brand[data-style="bold"] .dm-brand-card span { height: 9px; border-radius: 0; }
.dm-brand[data-style="bold"] .dm-brand-post { border-radius: 0; box-shadow: 5px 5px 0 var(--b5); }
.dm-brand[data-style="bold"] .dm-brand-post span { font-weight: 800; text-transform: uppercase; }
.dm-brand[data-style="bold"] .dm-brand-type { border: 2px solid var(--b5); border-radius: 0; }
.dm-brand[data-style="bold"] .dm-brand-type strong { font-weight: 800; }

/* Calm: light and quiet. Outline mark, thin letter-spaced type, a centred card, soft rings. */
.dm-brand[data-style="calm"] .dm-brand-mark { border-radius: 50%; color: var(--b3); background: var(--b1); border: 2px solid var(--b3); box-shadow: none; font-weight: 300; }
.dm-brand[data-style="calm"] .dm-brand-head b { font-weight: 400; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.92rem; }
.dm-brand[data-style="calm"] .dm-brand-card { justify-items: center; text-align: center; border-radius: 10px; border-color: var(--b2); }
.dm-brand[data-style="calm"] .dm-brand-card b { font-weight: 400; text-transform: uppercase; letter-spacing: 0.14em; }
.dm-brand[data-style="calm"] .dm-brand-card span { width: 70%; height: 2px; }
.dm-brand[data-style="calm"] .dm-brand-card span + span { width: 40%; }
.dm-brand[data-style="calm"] .dm-brand-post { border-radius: 999px / 50%; }
.dm-brand[data-style="calm"] .dm-brand-post span { font-weight: 300; letter-spacing: 0.06em; }
.dm-brand[data-style="calm"] .dm-brand-type { border-radius: 999px; }
.dm-brand[data-style="calm"] .dm-brand-type strong { font-weight: 300; }
@media (max-width: 640px) { .dm-visual-brand .dm-callout-b { left: auto; top: auto; } .dm-brand-grid { grid-template-columns: minmax(0, 1fr); } .dm-brand-card { grid-row: auto; } }

/* ---------- Bento: six tiles of different sizes ---------- */
.dm-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(150px, auto); gap: 0.85rem; grid-template-areas: "a a b b" "a a c d" "e e f f"; }
.dm-bento-a { grid-area: a; } .dm-bento-b { grid-area: b; } .dm-bento-c { grid-area: c; } .dm-bento-d { grid-area: d; } .dm-bento-e { grid-area: e; } .dm-bento-f { grid-area: f; }
.dm-bento-tile { position: relative; display: flex; flex-direction: column; overflow: hidden; background: linear-gradient(160deg, var(--a-soft), #ffffff 70%); border: 1px solid var(--a-line); border-radius: 18px; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.dm-bento-text { position: relative; z-index: 1; margin-top: auto; padding: 0.8rem 1rem 1rem; background: #ffffff; border-top: 1px solid var(--a-line); }
.dm-bento-text h3 { font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.05rem; font-weight: 700; color: #0f172a; margin: 0.45rem 0 0.2rem; }
.dm-bento-text p { margin: 0; font-size: 0.85rem; line-height: 1.5; color: #334155; }
.dm-bento-a .dm-bento-text h3 { font-size: 1.3rem; }
@media (hover: hover) and (pointer: fine) { .dm-bento-tile:hover { transform: translateY(-4px); box-shadow: 0 18px 32px -20px color-mix(in srgb, var(--a-ink) 60%, transparent); } }
/* tile art: small illustrations of the real things (logos, palette, card, post, brochure, sign), drawn in SVG with the page colours */
.dm-art { position: relative; flex: 1; min-height: 124px; }
.dm-bento-a .dm-art { min-height: 230px; }
.dm-art svg { position: absolute; inset: 10px 12px 4px; width: calc(100% - 24px); height: calc(100% - 14px); }
.dm-art text { font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; }
.dm-art .fa { fill: var(--a); } .dm-art .fd { fill: var(--a-dark); } .dm-art .fi { fill: var(--a-ink); }
.dm-art .ft1 { fill: var(--t1); } .dm-art .ft2 { fill: var(--t2); } .dm-art .fs { fill: var(--a-soft); }
.dm-art .fw { fill: #ffffff; } .dm-art .fg1 { fill: #e2e8f0; } .dm-art .fg2 { fill: #cbd5e1; } .dm-art .fg3 { fill: #64748b; }
.dm-art .sl { stroke: var(--a-line); stroke-width: 1.4; } .dm-art .sg { stroke: #cbd5e1; stroke-width: 1; }

/* Bento, round 2: every tile has its own colour family and its own backdrop, so the grid reads as a varied set of
   design work, not one pink page. The art inside uses the tile's colours (it reads --a, --a-dark, --a-ink, --a-soft, --t1). */
.dm-bento-a { --a: #ea580c; --a-dark: #c2410c; --a-ink: #7c2d12; --a-soft: #fff7ed; --a-line: #fed7aa; --t1: #facc15; --t2: #fde68a; border-radius: 26px; }
.dm-bento-b { --a: #7c3aed; --a-dark: #5b21b6; --a-ink: #2e1065; --a-soft: #f5f3ff; --a-line: #ddd6fe; --t1: #a78bfa; --t2: #fde68a; border-radius: 14px; }
.dm-bento-c { --a: #0d9488; --a-dark: #0f766e; --a-ink: #134e4a; --a-soft: #f0fdfa; --a-line: #99f6e4; --t1: #5eead4; --t2: #fde68a; border-radius: 14px; }
.dm-bento-d { --a: #e11d48; --a-dark: #be123c; --a-ink: #881337; --a-soft: #fff1f2; --a-line: #fecdd3; --t1: #fb923c; --t2: #fde68a; border-radius: 28px; }
.dm-bento-e { --a: #2563eb; --a-dark: #1d4ed8; --a-ink: #1e3a8a; --a-soft: #eff6ff; --a-line: #bfdbfe; --t1: #38bdf8; --t2: #fde68a; border-radius: 10px; }
.dm-bento-f { --a: #16a34a; --a-dark: #15803d; --a-ink: #14532d; --a-soft: #f0fdf4; --a-line: #bbf7d0; --t1: #fde047; --t2: #fde68a; border-radius: 20px; }
.dm-bento-tile { background: #ffffff; }
.dm-bento-a .dm-art { background: radial-gradient(circle, rgba(234, 88, 12, 0.16) 1.6px, transparent 1.8px) 0 0 / 16px 16px, linear-gradient(160deg, #fff7ed, #ffedd5); }
.dm-bento-b .dm-art { background: linear-gradient(color-mix(in srgb, var(--a) 14%, transparent) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, color-mix(in srgb, var(--a) 14%, transparent) 1px, transparent 1px) 0 0 / 22px 22px, var(--a-soft); }
.dm-bento-c .dm-art { background: radial-gradient(circle at 12% 0%, rgba(94, 234, 212, 0.3), transparent 55%), linear-gradient(145deg, var(--a-ink), var(--a-dark)); }
.dm-bento-d .dm-art { background: radial-gradient(circle at 88% 14%, rgba(251, 146, 60, 0.5) 0 38px, transparent 39px), radial-gradient(circle at 6% 96%, rgba(225, 29, 72, 0.2) 0 60px, transparent 61px), var(--a-soft); }
.dm-bento-e .dm-art { background: repeating-linear-gradient(0deg, transparent 0 17px, color-mix(in srgb, var(--a) 18%, transparent) 17px 18px), linear-gradient(180deg, #eff6ff, #dbeafe); }
.dm-bento-f .dm-art { background: linear-gradient(180deg, #e0f2fe 0, #f0f9ff 74%, #86efac 74%, #bbf7d0 100%); }
.dm-bento-f .dm-art .fg3 { fill: #475569; }

/* ---------- Staircase: each step is a little higher ---------- */
.dm-stairs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem; align-items: end; }
.dm-stair { position: relative; padding: 1.1rem 1rem 1rem; background: linear-gradient(170deg, var(--a-soft), #ffffff 75%); border: 1px solid var(--a-line); border-radius: 18px; }
.dm-stair:nth-child(1) { margin-top: 4.5rem; } .dm-stair:nth-child(2) { margin-top: 3rem; } .dm-stair:nth-child(3) { margin-top: 1.5rem; }
.dm-stair-num { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 0.5rem; border-radius: 50%; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-weight: 700; color: #ffffff; background: var(--a); }
.dm-stair h3 { font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.1rem; font-weight: 700; color: #0f172a; margin: 0 0 0.25rem; }
.dm-stair p { margin: 0 0 0.7rem; font-size: 0.86rem; line-height: 1.5; color: #334155; }
.dm-stair-out { display: block; padding-top: 0.55rem; border-top: 1px dashed var(--a-line); font-size: 0.8rem; font-weight: 700; color: var(--a-dark); }

/* ---------- Guide results: a short list of suggested pieces ---------- */
.dm-verdict-list { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.dm-verdict-list[hidden] { display: none; }
.dm-verdict-list li { padding: 0.3rem 0.8rem; font-size: 0.84rem; font-weight: 700; color: #ffffff; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px; }

@media (max-width: 991px) {
    .dm-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "a a" "b b" "c d" "e e" "f f"; }
    .dm-stairs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dm-stair:nth-child(n) { margin-top: 0; }
}
@media (max-width: 560px) {
    .dm-bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "a" "b" "c" "d" "e" "f"; }
    .dm-stairs { grid-template-columns: minmax(0, 1fr); }
}

/* ============ Guide, round 2: real choice buttons and a light, readable suggestion ============ */

/* the answers look like radio buttons, not tags */
.dm-q .dm-opt span { min-height: 46px; padding: 0.4rem 1.1rem 0.4rem 0.55rem; gap: 0.6rem; font-size: 0.9rem; border-radius: 12px; background: #ffffff; border: 1.5px solid #cbd5e1; box-shadow: 0 1px 0 #e2e8f0; }
.dm-q .dm-opt span::before { content: ""; width: 22px; height: 22px; flex-shrink: 0; border: 2px solid #94a3b8; border-radius: 50%; background: #ffffff; transition: background 0.2s, border-color 0.2s; }
.dm-q .dm-opt input:checked + span { color: var(--a-ink); background: var(--a-soft); border-color: var(--a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--a) 18%, transparent); }
.dm-q .dm-opt input:checked + span::before { border-color: var(--a); background: var(--a) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><path d='m5 12 5 5 9-10'/></svg>") center / 72% no-repeat; }
@media (hover: hover) and (pointer: fine) { .dm-q .dm-opt:hover input:not(:checked) + span { border-color: var(--a); } }

/* the suggestion: light box, dark text, a checklist instead of tag pills, a solid button */
.dm-verdict { color: var(--a-ink); background: linear-gradient(135deg, var(--a-soft), #ffffff); border: 1px solid var(--a-line); }
.dm-verdict-label { color: var(--a-dark); }
.dm-verdict h3 { color: #0f172a; }
.dm-verdict p { color: #1e293b; }
.dm-verdict-sub { margin: 0 0 0.5rem !important; font-size: 0.72rem !important; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--a-dark) !important; }
.dm-verdict-sub[hidden] { display: none; }
.dm-verdict-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0.45rem 1rem; margin: 0 0 1.1rem; }
.dm-verdict-list li { position: relative; padding: 0 0 0 1.75rem; font-size: 0.93rem; font-weight: 700; color: #0f172a; background: none; border: 0; border-radius: 0; }
.dm-verdict-list li::before { content: ""; position: absolute; left: 0; top: 0.1rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--a) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><path d='m5 12 5 5 9-10'/></svg>") center / 70% no-repeat; }
.dm-verdict .svc-rd-btn { color: #ffffff; background: linear-gradient(135deg, var(--a-dark), var(--a)); border-color: transparent; box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--a-ink) 70%, transparent); }
.dm-verdict .svc-rd-btn:hover { color: #ffffff; background: linear-gradient(135deg, var(--a), var(--a-dark)); }

/* Guide suggestion for the one-question guide: text and the list of pieces on the left (the pieces one after another in a
   row), the button on the side */
.dm-chooser[data-mode="single"] .dm-verdict { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 2rem; align-items: start; }
.dm-chooser[data-mode="single"] .dm-verdict > * { grid-column: 1; }
.dm-chooser[data-mode="single"] .dm-verdict > .svc-rd-btn { grid-column: 2; grid-row: 1 / span 3; align-self: center; justify-self: end; white-space: nowrap; }
.dm-chooser[data-mode="single"] .dm-verdict > .dm-verdict-sub, .dm-chooser[data-mode="single"] .dm-verdict > .dm-verdict-list { grid-column: 1 / -1; }
.dm-chooser[data-mode="single"] .dm-verdict p { margin-bottom: 0.9rem; }
.dm-chooser[data-mode="single"] .dm-verdict-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; }
.dm-chooser[data-mode="single"] .dm-verdict-list li { padding: 0.5rem 1rem 0.5rem 2.45rem; background: #ffffff; border: 1px solid var(--a-line); border-radius: 999px; box-shadow: 0 6px 14px -12px var(--a-ink); }
.dm-chooser[data-mode="single"] .dm-verdict-list li::before { left: 0.65rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 760px) {
    .dm-chooser[data-mode="single"] .dm-verdict { display: block; }
    .dm-chooser[data-mode="single"] .dm-verdict > .svc-rd-btn { display: inline-flex; margin-top: 1.1rem; white-space: normal; }
}

/* Staircase, round 2: the steps share one bottom line and each is taller than the last, so there is no blank band above them; a big faded step number fills the rising part */
.dm-stairs { align-items: end; counter-reset: dmstep; }
.dm-stair { counter-increment: dmstep; display: flex; flex-direction: column; margin-top: 0 !important; overflow: hidden; }
.dm-stair:nth-child(1) { padding-top: 1.1rem; }
.dm-stair:nth-child(2) { padding-top: 2.7rem; }
.dm-stair:nth-child(3) { padding-top: 4.3rem; }
.dm-stair:nth-child(4) { padding-top: 5.9rem; }
.dm-stair::after { content: counter(dmstep, decimal-leading-zero); position: absolute; top: 0.3rem; right: 0.9rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 3.6rem; font-weight: 700; line-height: 1; color: color-mix(in srgb, var(--a) 13%, white); pointer-events: none; }
.dm-stair-out { margin-top: auto; }
@media (max-width: 991px) { .dm-stair:nth-child(n) { padding-top: 1.1rem; } .dm-stair::after { font-size: 2.6rem; } }

/* ---------- Phone: readable labels and easier-to-tap links ---------- */
.dm-ad-head { display: block; }
.dm-allposts a { min-height: 44px; }
@media (max-width: 640px) {
    .dm-eyebrow, .dm-answer-label, .dm-verdict-label, .dm-verdict-sub, .dm-answer-facts dt, .dm-brand-label,
    .cs-jump > span, .cs-ideal strong, .cs-chips-label, .dm-sub + .dm-guides .dm-guide-more { font-size: 0.76rem !important; }
    .dm-brand-card em, .dm-brand-type small { font-size: 0.74rem; }
    .dm-guide-more { min-height: 32px; }
}

/* ============ Social Media Ads page: phone feed hero, ad formats, funnel, example week ============ */

/* ---------- Hero: a phone feed (CSS animation, 10 s loop) ---------- */
.dm-visual-social { max-width: 560px; padding-bottom: 2.2rem; }
.dm-sphone { width: 262px; margin: 0 auto; padding: 9px; background: #0b1220; border-radius: 34px; box-shadow: 0 34px 80px -26px rgba(2, 6, 23, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.22); }
.dm-sscreen { position: relative; height: 392px; overflow: hidden; background: #f1f5f9; border-radius: 26px; }
.dm-sbar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 0 14px; background: #ffffff; border-bottom: 1px solid #e2e8f0; }
.dm-sbar-logo { width: 62px; height: 12px; border-radius: 6px; background: var(--a); }
.dm-sbar-lines { display: inline-flex; gap: 6px; }
.dm-sbar-lines i { width: 14px; height: 14px; border-radius: 50%; background: #cbd5e1; }
.dm-feed { display: grid; gap: 8px; padding: 8px; animation: dm-sfeed 10s ease-in-out infinite; }
@keyframes dm-sfeed { 0%, 10% { transform: translateY(0); } 28%, 86% { transform: translateY(-158px); } 96%, 100% { transform: translateY(0); } }
.dm-spost { display: block; padding: 9px 9px 10px; background: #ffffff; border-radius: 12px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06); }
.dm-spost-org { height: 150px; overflow: hidden; }
.dm-spost-ad { box-shadow: 0 0 0 2px var(--a-line), 0 8px 18px -10px color-mix(in srgb, var(--a-ink) 50%, transparent); }
.dm-shead { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
.dm-shead b { display: block; font-size: 0.75rem; font-weight: 800; line-height: 1.2; color: #0f172a; }
.dm-shead i { display: block; font-style: normal; font-size: 0.75rem; font-weight: 600; color: #64748b; }
.dm-savatar { display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; font-size: 0.75rem; font-weight: 800; color: #ffffff; background: #94a3b8; }
.dm-savatar-ad { background: var(--a); }
.dm-simg { height: 62px; border-radius: 8px; background: linear-gradient(135deg, #fde68a, #fdba74); }
.dm-spost-o2 .dm-simg { background: linear-gradient(135deg, #c7d2fe, #e9d5ff); }
.dm-spost-org p { margin: 7px 0 0; font-size: 0.75rem; font-weight: 600; line-height: 1.35; color: #334155; }
.dm-sad-text { margin: 0 0 7px; font-size: 0.75rem; font-weight: 700; line-height: 1.3; color: #0f172a; }
.dm-simg-ad { position: relative; display: grid; align-content: center; justify-items: start; gap: 6px; height: 104px; padding: 0 14px; background: linear-gradient(135deg, var(--a-ink), var(--a)); overflow: hidden; }
.dm-simg-ad::after { content: ""; position: absolute; right: -26px; top: -26px; width: 100px; height: 100px; border-radius: 50%; background: color-mix(in srgb, var(--t1) 45%, transparent); }
.dm-simg-ad strong { position: relative; z-index: 1; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.15rem; line-height: 1.1; color: #ffffff; }
.dm-sad-ico { position: relative; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: #ffffff; background: rgba(255, 255, 255, 0.2); }
.dm-sad-ico .cs-ico { width: 15px; height: 15px; }
.dm-sheart { position: absolute; z-index: 2; right: 18px; bottom: 10px; display: grid; width: 22px; height: 22px; color: #fb7185; opacity: 0; animation: dm-sheart 10s ease-out infinite; }
.dm-sheart .cs-ico { width: 22px; height: 22px; fill: currentColor; }
@keyframes dm-sheart { 0%, 32% { opacity: 0; transform: translateY(0) scale(0.6); } 38% { opacity: 1; transform: translateY(-8px) scale(1); } 48%, 100% { opacity: 0; transform: translateY(-42px) scale(1.1); } }
.dm-sad-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding: 6px 6px 6px 10px; background: var(--a-soft); border-radius: 9px; }
.dm-sad-bar span { font-size: 0.75rem; font-weight: 700; color: var(--a-dark); }
.dm-sad-cta { display: inline-block; padding: 5px 12px; font-size: 0.75rem; font-weight: 800; color: #ffffff; background: var(--a); border-radius: 999px; animation: dm-scta 10s ease-in-out infinite; }
@keyframes dm-scta {
    0%, 36% { transform: scale(1); box-shadow: 0 0 0 0 color-mix(in srgb, var(--a) 55%, transparent); }
    46% { transform: scale(1); box-shadow: 0 0 0 7px color-mix(in srgb, var(--a) 0%, transparent); }
    50% { transform: scale(0.9); box-shadow: 0 0 0 0 transparent; }
    55%, 100% { transform: scale(1); box-shadow: 0 0 0 0 transparent; }
}
.dm-saud { position: absolute; left: -7%; top: 34%; width: 176px; padding: 0.7rem 0.8rem 0.8rem; background: #ffffff; border: 1px solid var(--a-line); border-radius: 14px; box-shadow: 0 16px 30px -16px color-mix(in srgb, var(--a-ink) 55%, transparent); animation: dm-saud 10s ease-in-out infinite; }
@keyframes dm-saud { 0%, 24% { transform: translateY(0); } 32%, 52% { transform: translateY(-5px); border-color: var(--a); } 62%, 100% { transform: translateY(0); } }
.dm-saud-label { display: block; margin-bottom: 0.4rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--a-dark); }
.dm-saud ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.dm-saud li { padding: 0.28rem 0.6rem; font-size: 0.75rem; font-weight: 700; color: var(--a-ink); background: var(--a-soft); border-radius: 999px; }
.dm-stoast { position: absolute; right: -2%; top: 19%; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.9rem 0.6rem 0.65rem; font-size: 0.78rem; font-weight: 800; color: var(--a-ink); background: var(--t2); border-radius: 14px; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.55); opacity: 0; animation: dm-stoast 10s ease-in-out infinite; }
.dm-stoast .cs-ico { width: 22px; height: 22px; padding: 4px; border-radius: 50%; color: #ffffff; background: var(--a-dark); }
@keyframes dm-stoast { 0%, 52% { opacity: 0; transform: translateX(18px); } 58%, 84% { opacity: 1; transform: translateX(0); } 92%, 100% { opacity: 0; transform: translateX(0); } }
.dm-slabel { margin: 0.9rem 0 0; text-align: center; font-size: 0.75rem; font-weight: 700; color: rgba(255, 255, 255, 0.8); }
.dm-visual-social .dm-callout-a { top: -10px; right: 1%; }
.dm-visual-social .dm-callout-b { top: auto; bottom: 3.6rem; left: 0; }
.dm-visual-social .dm-callout-c { bottom: 3.6rem; right: 0; }
@media (prefers-reduced-motion: reduce) {
    .dm-feed { animation: none; transform: translateY(-158px); }
    .dm-sheart, .dm-sad-cta, .dm-saud { animation: none; }
    .dm-stoast { animation: none; opacity: 1; }
}
@media (max-width: 640px) {
    /* the phone, then the audience card, the toast and the callouts wrap into compact rows */
    .dm-visual-social { max-width: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
    .dm-sphone { flex: 0 0 262px; margin: 0 auto 0.4rem; }
    .dm-saud, .dm-stoast { position: static; width: auto; animation: none; opacity: 1; }
    .dm-saud { flex: 1 1 100%; }
    .dm-saud ul { display: flex; flex-wrap: wrap; }
    .dm-visual-social .dm-callout-a, .dm-visual-social .dm-callout-b, .dm-visual-social .dm-callout-c { position: static; }
    .dm-slabel { flex: 1 1 100%; margin: 0.2rem 0 0; text-align: left; }
}

/* ---------- Ad formats: five mock-ups, each in the shape of the real thing ---------- */
.dm-formats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.8rem; align-items: stretch; }
.dm-format { display: flex; flex-direction: column; padding: 0 0 1rem; background: #ffffff; border: 1px solid var(--a-line); border-radius: 16px; overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.dm-fmt-art { display: flex; align-items: flex-end; justify-content: center; height: 168px; padding: 0.8rem 0.6rem 0; background: linear-gradient(180deg, var(--a-soft), #ffffff); }
.dm-fmt-art svg { width: 100%; height: 100%; }
/* each format has its own colour family, so the row looks like different kinds of ad, not one set */
.dm-format-feed { --a: #ea580c; --a-dark: #c2410c; --a-ink: #7c2d12; --a-soft: #fff7ed; --a-line: #fed7aa; --t1: #fcd34d; }
.dm-format-story { --a: #9333ea; --a-dark: #7e22ce; --a-ink: #3b0764; --a-soft: #faf5ff; --a-line: #e9d5ff; --t1: #f0abfc; }
.dm-format-carousel { --a: #e11d48; --a-dark: #be123c; --a-ink: #881337; --a-soft: #fff1f2; --a-line: #fecdd3; --t1: #fdba74; }
.dm-format-video { --a: #2563eb; --a-dark: #1d4ed8; --a-ink: #172554; --a-soft: #eff6ff; --a-line: #bfdbfe; --t1: #fdba74; }
.dm-format-lead { --a: #059669; --a-dark: #047857; --a-ink: #064e3b; --a-soft: #ecfdf5; --a-line: #a7f3d0; --t1: #fde047; }
.dm-fmt-art text { font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; }
.dm-fmt-art .fg3 { fill: #64748b; }
.dm-format h3 { margin: 0.85rem 0.8rem 0.25rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 0.98rem; font-weight: 700; line-height: 1.2; color: #0f172a; }
.dm-format p { margin: 0 0.8rem; font-size: 0.82rem; line-height: 1.5; color: #334155; }
.dm-fmt-best { margin: auto 0.8rem 0; padding-top: 0.7rem; font-size: 0.78rem; font-weight: 700; line-height: 1.4; color: var(--a-dark); }
.dm-fmt-best b { display: block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #64748b; }
@media (hover: hover) and (pointer: fine) { .dm-format:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -20px color-mix(in srgb, var(--a-ink) 60%, transparent); } }
.dm-fmt-art .fa { fill: var(--a); } .dm-fmt-art .fd { fill: var(--a-dark); } .dm-fmt-art .fi { fill: var(--a-ink); }
.dm-fmt-art .ft1 { fill: var(--t1); } .dm-fmt-art .fs { fill: var(--a-soft); } .dm-fmt-art .fw { fill: #ffffff; }
.dm-fmt-art .fg1 { fill: #e2e8f0; } .dm-fmt-art .fg2 { fill: #cbd5e1; }
.dm-fmt-art .sl { stroke: var(--a-line); stroke-width: 1.4; }

/* ---------- Journey: three steps, each with a small scene, joined by arrows ---------- */
.dm-journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.dm-jstep { position: relative; display: flex; flex-direction: column; background: #ffffff; border: 1px solid var(--a-line); border-radius: 18px; }
.dm-jart { position: relative; display: flex; align-items: center; justify-content: center; height: 150px; padding: 0.6rem 0.6rem 0.2rem; border-radius: 17px 17px 0 0; background: linear-gradient(160deg, var(--a-soft), #ffffff); }
.dm-jstep-2 .dm-jart { background: linear-gradient(160deg, color-mix(in srgb, var(--t1) 30%, white), #ffffff); }
.dm-jstep-3 .dm-jart { background: linear-gradient(160deg, color-mix(in srgb, var(--a) 16%, white), #ffffff); }
.dm-jart svg { width: 100%; height: 100%; }
.dm-jnum { position: absolute; top: 0.7rem; left: 0.7rem; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 0.95rem; font-weight: 700; color: #ffffff; background: var(--a-dark); border-radius: 50%; box-shadow: 0 6px 12px -6px var(--a-ink); }
.dm-jbody { padding: 0.9rem 1.1rem 1.1rem; }
.dm-jtag { display: inline-block; margin-bottom: 0.35rem; padding: 0.15rem 0.6rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--a-dark); background: var(--a-soft); border: 1px solid var(--a-line); border-radius: 999px; }
.dm-jbody h3 { margin: 0 0 0.3rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.12rem; font-weight: 700; color: #0f172a; }
.dm-jbody p { margin: 0 0 0.7rem; font-size: 0.9rem; line-height: 1.55; color: #334155; }
.dm-jbody ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.dm-jbody li { display: flex; align-items: flex-start; gap: 0.45rem; font-size: 0.84rem; font-weight: 700; line-height: 1.35; color: var(--a-dark); }
.dm-jbody li .cs-ico { width: 16px; height: 16px; margin-top: 0.08rem; flex-shrink: 0; color: var(--a); }
/* an arrow between the steps, so the order is obvious */
.dm-jstep:not(:last-child)::after { content: ""; position: absolute; z-index: 2; top: 62px; right: -1.6rem; width: 2.1rem; height: 2.1rem; margin-right: -0.25rem; border-radius: 50%; background: var(--a) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M13 6l6 6-6 6'/></svg>") center / 55% no-repeat; box-shadow: 0 0 0 4px #ffffff; }
.dm-jart .fa { fill: var(--a); } .dm-jart .fd { fill: var(--a-dark); } .dm-jart .fi { fill: var(--a-ink); }
.dm-jart .ft1 { fill: var(--t1); } .dm-jart .fs { fill: var(--a-soft); } .dm-jart .fw { fill: #ffffff; }
.dm-jart .fg1 { fill: #e2e8f0; } .dm-jart .fg2 { fill: #cbd5e1; } .dm-jart .sl { stroke: var(--a-line); stroke-width: 1.4; }
.dm-jart text { font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; }

/* ---------- Organic posting: an example week ---------- */
.dm-week-label { margin: 0 0 0.6rem; font-size: 0.8rem; font-weight: 700; color: #64748b; }
.dm-week { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.5rem; }
.dm-day { display: grid; justify-items: center; gap: 0.45rem; padding: 0.7rem 0.3rem 0.8rem; text-align: center; background: linear-gradient(180deg, var(--a-soft), #ffffff); border: 1px solid var(--a-line); border-radius: 14px; }
.dm-day-name { font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--a-dark); }
.dm-day-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #ffffff; background: var(--a); box-shadow: 0 8px 16px -10px var(--a-ink); }
.dm-day-ico .cs-ico { width: 19px; height: 19px; }
.dm-day-label { font-size: 0.78rem; font-weight: 700; line-height: 1.25; color: #0f172a; }
.dm-day.is-off { background: #f8fafc; border-style: dashed; border-color: #cbd5e1; }
.dm-day.is-off .dm-day-name { color: #64748b; }
.dm-day.is-off .dm-day-ico { color: #64748b; background: #e2e8f0; box-shadow: none; }
.dm-day.is-off .dm-day-label { color: #475569; }
.dm-opoints { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }
.dm-opoints li { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.9rem 1rem; background: #ffffff; border: 1px solid var(--a-line); border-radius: 14px; }
.dm-opoints strong { display: block; margin-bottom: 0.15rem; font-size: 0.92rem; color: #0f172a; }
.dm-opoints span { font-size: 0.84rem; line-height: 1.5; color: #334155; }
.dm-opoints a { color: var(--a-dark); font-weight: 700; }

@media (max-width: 1100px) { .dm-formats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 991px) {
    .dm-journey { grid-template-columns: minmax(0, 1fr); gap: 1.9rem; }
    .dm-jstep:not(:last-child)::after { top: auto; right: auto; bottom: -1.75rem; left: 50%; margin: 0 0 0 -1.05rem; transform: rotate(90deg); }
    .dm-jart { height: 170px; }
    .dm-week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .dm-opoints { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .dm-formats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dm-week { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dm-fmt-best b, .dm-saud-label { font-size: 0.75rem; }
}
@media (max-width: 340px) { .dm-formats { grid-template-columns: minmax(0, 1fr); } }

/* platforms we can advertise on (plain chips, no logos) */
.dm-platforms { margin-top: 0.9rem; }
.dm-platforms-note { margin-top: 0.6rem; }

/* ============ Content Writing page: typing editor hero, paper-sheet cards, before and after ============ */

/* ---------- Hero: a document editor ---------- */
.dm-visual-writing { max-width: 560px; padding-bottom: 4.4rem; }
.dm-editor { background: #ffffff; border-radius: 16px; overflow: hidden; box-shadow: 0 34px 80px -26px rgba(2, 6, 23, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.18); }
.dm-ed-top { display: flex; align-items: center; gap: 0.8rem; padding: 0.55rem 0.8rem; background: var(--a-ink); }
.dm-ed-dots { display: inline-flex; gap: 0.35rem; }
.dm-ed-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); }
.dm-ed-tabs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-left: auto; }
.dm-ed-tab { min-height: 32px; padding: 0.2rem 0.75rem; font-family: inherit; font-size: 0.78rem; font-weight: 700; color: rgba(255, 255, 255, 0.85); background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px; cursor: pointer; transition: background 0.2s, color 0.2s; }
.dm-ed-tab[aria-pressed="true"] { color: var(--a-ink); background: var(--t2); border-color: var(--t2); }
.dm-ed-tab:focus-visible { outline: 3px solid var(--t2); outline-offset: 2px; }
.dm-ed-body { display: grid; grid-template-columns: minmax(0, 1fr) 168px; }
.dm-ed-page { min-height: 232px; padding: 1.1rem 1.2rem 1rem; background: linear-gradient(#ffffff 0 calc(100% - 1px), #ffffff), repeating-linear-gradient(transparent 0 27px, #f1f5f9 27px 28px); background-blend-mode: normal; }
.dm-ed-kind { display: inline-block; margin-bottom: 0.55rem; padding: 0.15rem 0.6rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--a-dark); background: var(--a-soft); border: 1px solid var(--a-line); border-radius: 999px; }
.dm-ed-title { margin: 0 0 0.55rem; min-height: 2.6em; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.2rem; font-weight: 700; line-height: 1.25; color: #0f172a; }
.dm-ed-text { margin: 0; min-height: 7.5em; font-size: 0.9rem; line-height: 1.65; color: #334155; }
.dm-ed-text .dm-caret { vertical-align: -0.12em; background: var(--a); }
.dm-ed-checks { list-style: none; margin: 0; padding: 1rem 0.9rem; display: grid; align-content: start; gap: 0.6rem; background: var(--a-soft); border-left: 1px solid var(--a-line); }
.dm-ed-checks li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; font-weight: 700; line-height: 1.25; color: #64748b; transition: color 0.3s; }
.dm-ed-checks li .cs-ico { width: 20px; height: 20px; flex-shrink: 0; padding: 3px; color: #ffffff; background: #cbd5e1; border-radius: 50%; transition: background 0.3s, transform 0.3s; }
.dm-ed-checks li.is-on { color: #0f172a; }
.dm-ed-checks li.is-on .cs-ico { background: var(--a); transform: scale(1.08); }
.dm-ed-foot { display: flex; justify-content: space-between; padding: 0.5rem 1rem; font-size: 0.75rem; font-weight: 700; color: #64748b; background: #f8fafc; border-top: 1px solid #e2e8f0; }
.dm-ed-status { color: var(--a-dark); }
.dm-visual-writing .dm-callout-a { top: -32px; right: 3%; }
.dm-visual-writing .dm-callout-b { top: auto; bottom: 1.9rem; left: 2%; }
.dm-visual-writing .dm-callout-c { bottom: 1.9rem; right: 2%; }
.dm-visual-writing .dm-slabel { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; }
@media (max-width: 640px) {
    .dm-visual-writing { max-width: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding-bottom: 0; }
    .dm-editor { flex: 1 1 100%; }
    .dm-ed-top { flex-wrap: wrap; }
    .dm-ed-tabs { margin-left: 0; }
    .dm-ed-body { grid-template-columns: minmax(0, 1fr); }
    .dm-ed-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 0; border-top: 1px solid var(--a-line); }
    .dm-visual-writing .dm-callout-a, .dm-visual-writing .dm-callout-b, .dm-visual-writing .dm-callout-c { position: static; }
    .dm-visual-writing .dm-slabel { position: static; flex: 1 1 100%; margin: 0.2rem 0 0; text-align: left; }
}

/* ---------- What we write: paper-like sheets with a folded corner ---------- */
.dm-docs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.dm-doc { position: relative; display: flex; flex-direction: column; padding: 1rem 1.05rem 1rem; background: #ffffff; border: 1px solid var(--a-line); border-radius: 6px 22px 6px 6px; box-shadow: 0 1px 0 var(--a-line), 3px 4px 0 -1px var(--a-soft), 3px 4px 0 0 var(--a-line); transition: transform 0.25s ease; }
.dm-doc::after { content: ""; position: absolute; top: -1px; right: -1px; width: 26px; height: 26px; border-radius: 0 22px 0 8px; background: linear-gradient(225deg, #ffffff 50%, var(--a-line) 50%); }
.dm-doc-top { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.7rem; }
.dm-doc-tag { margin-right: 1.8rem; padding: 0.15rem 0.65rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--a-dark); background: var(--a-soft); border: 1px solid var(--a-line); border-radius: 999px; }
.dm-doc h3 { margin: 0 0 0.3rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.02rem; font-weight: 700; line-height: 1.25; color: #0f172a; }
.dm-doc p { margin: 0 0 0.8rem; font-size: 0.86rem; line-height: 1.5; color: #334155; }
.dm-doc-good { margin-top: auto; padding-top: 0.6rem; border-top: 1px dashed var(--a-line); font-size: 0.8rem; font-weight: 700; line-height: 1.4; color: var(--a-dark); }
.dm-doc-good b { display: block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #64748b; }
@media (hover: hover) and (pointer: fine) { .dm-doc:hover { transform: translateY(-4px) rotate(-0.4deg); } }

/* ---------- Before and after ---------- */
.dm-rewrite { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0.9rem; align-items: stretch; }
.dm-rw { display: flex; flex-direction: column; padding: 1rem 1.1rem 1.1rem; border-radius: 16px; }
.dm-rw-before { background: #f8fafc; border: 1px dashed #94a3b8; }
.dm-rw-after { background: linear-gradient(160deg, var(--a-soft), #ffffff); border: 1px solid var(--a); box-shadow: 0 14px 28px -20px var(--a-ink); }
.dm-rw-tag { align-self: flex-start; margin-bottom: 0.55rem; padding: 0.15rem 0.7rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; border-radius: 999px; }
.dm-rw-before .dm-rw-tag { color: #475569; background: #e2e8f0; }
.dm-rw-after .dm-rw-tag { color: #ffffff; background: var(--a-dark); }
.dm-rw-text { margin: 0 0 0.9rem; font-size: 0.95rem; line-height: 1.6; color: #0f172a; }
.dm-rw-before .dm-rw-text { color: #64748b; text-decoration: line-through; text-decoration-color: rgba(100, 116, 139, 0.45); }
.dm-rw ul { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.dm-rw li { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.65rem 0.2rem 0.45rem; font-size: 0.78rem; font-weight: 700; border-radius: 999px; }
.dm-rw li .cs-ico { width: 15px; height: 15px; }
.dm-rw-before li { color: #64748b; background: #ffffff; border: 1px solid #cbd5e1; }
.dm-rw-after li { color: var(--a-dark); background: #ffffff; border: 1px solid var(--a-line); }
.dm-rw-after li .cs-ico { color: var(--a); }
.dm-rw-arrow { display: grid; place-items: center; align-self: center; width: 42px; height: 42px; color: #ffffff; background: var(--a); border-radius: 50%; box-shadow: 0 0 0 5px #ffffff, 0 10px 18px -8px var(--a-ink); }
.dm-rw-arrow .cs-ico { width: 20px; height: 20px; }
@media (max-width: 991px) {
    .dm-docs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .dm-rewrite { grid-template-columns: minmax(0, 1fr); }
    .dm-rw-arrow { justify-self: center; transform: rotate(90deg); }
}
@media (max-width: 560px) {
    .dm-docs { grid-template-columns: minmax(0, 1fr); }
}

/* each kind of writing gets its own colour, so the sheets read as different documents */
.dm-doc:nth-child(1) { --a: #d97706; --a-dark: #b45309; --a-ink: #451a03; --a-soft: #fffbeb; --a-line: #fde68a; }
.dm-doc:nth-child(2) { --a: #0d9488; --a-dark: #0f766e; --a-ink: #134e4a; --a-soft: #f0fdfa; --a-line: #99f6e4; }
.dm-doc:nth-child(3) { --a: #4f46e5; --a-dark: #3730a3; --a-ink: #1e1b4b; --a-soft: #eef2ff; --a-line: #c7d2fe; }
.dm-doc:nth-child(4) { --a: #e11d48; --a-dark: #be123c; --a-ink: #881337; --a-soft: #fff1f2; --a-line: #fecdd3; }
.dm-doc:nth-child(5) { --a: #2563eb; --a-dark: #1d4ed8; --a-ink: #172554; --a-soft: #eff6ff; --a-line: #bfdbfe; }
.dm-doc:nth-child(6) { --a: #7c3aed; --a-dark: #5b21b6; --a-ink: #2e1065; --a-soft: #f5f3ff; --a-line: #ddd6fe; }

/* ============ Video Editing & Designing page: editing-window hero, two panels, filmstrip ============ */

/* ---------- Hero: an editing window (CSS animation, 9 s loop) ---------- */
.dm-visual-video { max-width: 560px; padding-bottom: 4.4rem; }
.dm-vedit { overflow: hidden; background: #0f0a1f; border-radius: 16px; box-shadow: 0 34px 80px -26px rgba(2, 6, 23, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.2); }
.dm-ve-top { display: flex; align-items: center; gap: 0.8rem; padding: 0.55rem 0.9rem; background: #1a1236; }
.dm-ve-name { font-size: 0.78rem; font-weight: 700; color: rgba(255, 255, 255, 0.8); }
.dm-ve-rec { margin-left: auto; padding: 0.1rem 0.6rem; font-size: 0.75rem; font-weight: 800; color: var(--a-ink); background: var(--t2); border-radius: 999px; }
.dm-ve-preview { position: relative; margin: 0.7rem 0.7rem 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: #000; }
.dm-ve-scene { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 0.45rem; padding: 0 1.4rem; opacity: 0; color: #ffffff; }
.dm-ve-scene strong { position: relative; z-index: 1; max-width: 80%; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: clamp(1.1rem, 2.6vw, 1.55rem); line-height: 1.1; }
.dm-ve-scene-a { background: linear-gradient(135deg, #4c1d95, #7c3aed); animation: dm-ve-a 9s linear infinite; }
.dm-ve-scene-b { background: linear-gradient(135deg, #be185d, #f59e0b); animation: dm-ve-b 9s linear infinite; }
.dm-ve-scene-c { background: linear-gradient(135deg, #0e7490, #22d3ee); animation: dm-ve-c 9s linear infinite; }
.dm-ve-shape { position: absolute; right: -8%; top: -30%; width: 46%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.dm-ve-scene-b .dm-ve-shape { right: auto; left: -10%; top: auto; bottom: -45%; }
.dm-ve-scene-c .dm-ve-shape { top: auto; bottom: -40%; }
.dm-ve-cta { position: relative; z-index: 1; padding: 0.3rem 0.95rem; font-size: 0.78rem; font-weight: 800; color: #0e7490; background: #ffffff; border-radius: 999px; }
.dm-ve-cap { position: absolute; left: 50%; bottom: 0.65rem; transform: translateX(-50%); max-width: 90%; padding: 0.2rem 0.7rem; font-size: 0.78rem; font-weight: 700; white-space: nowrap; color: #ffffff; background: rgba(0, 0, 0, 0.62); border-radius: 6px; }
/* scenes cut quickly, like a real edit, so two titles are never on screen together */
@keyframes dm-ve-a { 0%, 31% { opacity: 1; } 31.6%, 96.4% { opacity: 0; } 97%, 100% { opacity: 1; } }
@keyframes dm-ve-b { 0%, 31% { opacity: 0; } 31.6%, 63.4% { opacity: 1; } 64%, 100% { opacity: 0; } }
@keyframes dm-ve-c { 0%, 63.4% { opacity: 0; } 64%, 96.4% { opacity: 1; } 97%, 100% { opacity: 0; } }
.dm-ve-play { position: absolute; z-index: 2; right: 0.6rem; top: 0.6rem; display: grid; place-items: center; width: 26px; height: 26px; color: #ffffff; background: rgba(0, 0, 0, 0.45); border-radius: 50%; }
.dm-ve-play .cs-ico { width: 13px; height: 13px; }
.dm-ve-prog { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 3px; background: rgba(255, 255, 255, 0.25); }
.dm-ve-prog i { display: block; height: 100%; background: var(--t2); animation: dm-ve-prog 9s linear infinite; }
@keyframes dm-ve-prog { from { width: 0; } to { width: 100%; } }
.dm-ve-timeline { position: relative; padding: 0.7rem 0.7rem 0.8rem; display: grid; gap: 0.4rem; }
.dm-ve-track { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.dm-ve-tl { width: 46px; flex-shrink: 0; font-size: 0.75rem; font-weight: 700; color: rgba(255, 255, 255, 0.65); }
.dm-ve-lane { position: relative; flex: 1; min-width: 0; display: flex; gap: 3px; height: 26px; }
.dm-ve-clip { flex: 1; min-width: 0; border-radius: 6px; }
.dm-ve-clip-a { background: linear-gradient(90deg, #6d28d9, #8b5cf6); }
.dm-ve-clip-b { background: linear-gradient(90deg, #be185d, #f59e0b); }
.dm-ve-clip-c { background: linear-gradient(90deg, #0e7490, #22d3ee); }
.dm-ve-title { flex: 1; min-width: 0; padding: 0 0.45rem; overflow: hidden; font-size: 0.75rem; font-weight: 700; line-height: 26px; white-space: nowrap; text-overflow: ellipsis; color: #fef3c7; background: rgba(251, 191, 36, 0.22); border: 1px solid rgba(251, 191, 36, 0.5); border-radius: 6px; }
.dm-ve-wave { flex: 1; min-width: 0; border-radius: 6px; background:
    linear-gradient(90deg, #a78bfa 3px, transparent 3px) 0 50% / 7px 38% repeat-x,
    linear-gradient(90deg, #a78bfa 3px, transparent 3px) 2px 50% / 11px 70% repeat-x,
    linear-gradient(90deg, #a78bfa 3px, transparent 3px) 5px 50% / 13px 95% repeat-x; opacity: 0.85; }
.dm-ve-ph { position: absolute; top: 0.45rem; bottom: 0.45rem; left: calc(0.7rem + 46px + 0.5rem); right: 0.7rem; pointer-events: none; }
.dm-ve-ph i { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--t2); box-shadow: 0 0 10px var(--t2); animation: dm-ve-ph 9s linear infinite; }
.dm-ve-ph i::before { content: ""; position: absolute; top: -4px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--t2); }
@keyframes dm-ve-ph { from { left: 0; } to { left: 100%; } }
.dm-visual-video .dm-callout-a { top: -32px; right: 3%; }
.dm-visual-video .dm-callout-b { top: auto; bottom: 1.9rem; left: 2%; }
.dm-visual-video .dm-callout-c { bottom: 1.9rem; right: 2%; }
.dm-visual-video .dm-slabel { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; }
@media (prefers-reduced-motion: reduce) {
    .dm-ve-scene-a, .dm-ve-scene-c { animation: none; opacity: 0; }
    .dm-ve-scene-b { animation: none; opacity: 1; }
    .dm-ve-prog i { animation: none; width: 48%; }
    .dm-ve-ph i { animation: none; left: 48%; }
}
@media (max-width: 640px) {
    .dm-visual-video { max-width: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding-bottom: 0; }
    .dm-vedit { flex: 1 1 100%; }
    .dm-visual-video .dm-callout-a, .dm-visual-video .dm-callout-b, .dm-visual-video .dm-callout-c { position: static; }
    .dm-visual-video .dm-slabel { position: static; flex: 1 1 100%; margin: 0.2rem 0 0; text-align: left; }
    .dm-ve-cap { font-size: 0.75rem; }
}

/* ---------- Two panels: editing and design ---------- */
.dm-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.dm-duo-card { padding: 1.1rem 1.2rem 1.2rem; background: linear-gradient(165deg, var(--a-soft), #ffffff 70%); border: 1px solid var(--a-line); border-radius: 18px; }
.dm-duo-1 { --a: #7c3aed; --a-dark: #5b21b6; --a-ink: #2e1065; --a-soft: #f5f3ff; --a-line: #ddd6fe; border-radius: 18px 40px 18px 18px; }
.dm-duo-2 { --a: #db2777; --a-dark: #be185d; --a-ink: #500724; --a-soft: #fdf2f8; --a-line: #fbcfe8; border-radius: 18px 18px 18px 40px; }
.dm-duo-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.7rem; }
.dm-duo-tag { display: block; margin-bottom: 0.1rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--a-dark); }
.dm-duo-head h3 { margin: 0; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.3rem; font-weight: 700; color: #0f172a; }
.dm-duo-card > p { margin: 0 0 0.8rem; font-size: 0.92rem; line-height: 1.55; color: #334155; }
.dm-duo-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.dm-duo-card li { display: flex; align-items: center; gap: 0.55rem; padding: 0.4rem 0.7rem; font-size: 0.88rem; font-weight: 700; color: #0f172a; background: #ffffff; border: 1px solid var(--a-line); border-radius: 10px; }
.dm-duo-card li .cs-ico { width: 18px; height: 18px; flex-shrink: 0; padding: 3px; color: #ffffff; background: var(--a); border-radius: 50%; }

/* ---------- Storyboard: a filmstrip ---------- */
.dm-reel { list-style: none; margin: 0; padding: 1.5rem 0.9rem 1.7rem; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; background: #1e1b3a; border-radius: 16px; }
.dm-reel::before, .dm-reel::after { content: ""; position: absolute; left: 0.6rem; right: 0.6rem; height: 8px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0 10px, transparent 10px 20px); border-radius: 2px; }
.dm-reel::before { top: 0.55rem; }
.dm-reel::after { bottom: 0.55rem; }
.dm-frame { display: flex; flex-direction: column; padding: 0 0 0.9rem; background: #ffffff; border-radius: 8px; overflow: hidden; }
.dm-frame-pic { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--a-soft); }
.dm-frame-pic svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dm-frame-num { position: absolute; top: 0.4rem; left: 0.4rem; display: grid; place-items: center; width: 24px; height: 24px; font-size: 0.78rem; font-weight: 800; color: #ffffff; background: rgba(0, 0, 0, 0.5); border-radius: 50%; }
.dm-frame-tag { margin: 0.7rem 0.8rem 0.15rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--a-dark); }
.dm-frame h3 { margin: 0 0.8rem 0.25rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.02rem; font-weight: 700; color: #0f172a; }
.dm-frame p { margin: 0 0.8rem; font-size: 0.84rem; line-height: 1.5; color: #334155; }
.dm-frame-pic .fa { fill: var(--a); } .dm-frame-pic .fd { fill: var(--a-dark); } .dm-frame-pic .fi { fill: var(--a-ink); }
.dm-frame-pic .ft1 { fill: var(--t1); } .dm-frame-pic .fw { fill: #ffffff; }
.dm-frame-pic text { font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; }

@media (max-width: 991px) {
    .dm-reel { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 1.6rem; }
}
@media (max-width: 767px) {
    .dm-duo { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 340px) {
    .dm-reel { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Video process: the four steps as clips on an editing timeline ---------- */
.dm-clips { list-style: none; margin: 0; padding: 1.7rem 0 0; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.dm-clips::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 16px; background:
    repeating-linear-gradient(90deg, #cbd5e1 0 1px, transparent 1px 22px) left bottom / 100% 8px no-repeat,
    repeating-linear-gradient(90deg, #94a3b8 0 1px, transparent 1px 110px) left bottom / 100% 16px no-repeat; }
.dm-clip { position: relative; }
.dm-clip-bar { position: relative; display: flex; align-items: center; gap: 0.6rem; height: 52px; padding: 0 0.9rem; overflow: hidden; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1rem; font-weight: 700; color: #ffffff; border-radius: 10px; box-shadow: 0 10px 18px -12px rgba(15, 23, 42, 0.6); }
.dm-clip-bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; opacity: 0.28; background:
    linear-gradient(90deg, #ffffff 2px, transparent 2px) 0 100% / 7px 45% repeat-x,
    linear-gradient(90deg, #ffffff 2px, transparent 2px) 2px 100% / 11px 80% repeat-x,
    linear-gradient(90deg, #ffffff 2px, transparent 2px) 4px 100% / 13px 100% repeat-x; }
.dm-clip-bar > * { position: relative; z-index: 1; }
.dm-clip-num { display: grid; place-items: center; width: 26px; height: 26px; flex-shrink: 0; font-size: 0.85rem; background: rgba(0, 0, 0, 0.28); border-radius: 50%; }
.dm-clip-1 .dm-clip-bar { background: linear-gradient(90deg, #6d28d9, #8b5cf6); }
.dm-clip-2 .dm-clip-bar { background: linear-gradient(90deg, #be185d, #f59e0b); }
.dm-clip-3 .dm-clip-bar { background: linear-gradient(90deg, #0e7490, #22d3ee); }
.dm-clip-4 .dm-clip-bar { background: linear-gradient(90deg, #047857, #34d399); }
.dm-clip p { margin: 0.75rem 0.2rem 0; font-size: 0.88rem; line-height: 1.55; color: #334155; }
@media (max-width: 991px) {
    .dm-clips { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.2rem; }
}
@media (max-width: 560px) {
    .dm-clips { grid-template-columns: minmax(0, 1fr); padding-top: 0; }
    .dm-clips::before { display: none; }
}

/* ============ Mobile App Development page: phone with sliding screens, three options, road map ============ */

/* ---------- Hero: a phone whose screens slide by themselves (CSS animation, 14 s loop) ---------- */
.dm-visual-app { max-width: 560px; padding-bottom: 4.4rem; }
.dm-phone-app { width: 250px; margin: 0 auto; padding: 9px; background: #0b1220; border-radius: 34px; box-shadow: 0 34px 80px -26px rgba(2, 6, 23, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.22); }
.dm-pa-screen { position: relative; display: flex; flex-direction: column; height: 440px; overflow: hidden; background: #f8fafc; border-radius: 26px; }
.dm-pa-status { display: flex; align-items: center; justify-content: space-between; height: 28px; padding: 0 18px; font-size: 0.75rem; font-weight: 800; color: #0f172a; }
.dm-pa-status i { width: 16px; height: 8px; border-radius: 2px; background: #0f172a; opacity: 0.8; }
.dm-pa-track { display: flex; width: 400%; flex: 1; animation: dm-pa-slide 14s cubic-bezier(0.6, 0, 0.3, 1) infinite; }
@keyframes dm-pa-slide {
    0%, 30% { transform: translateX(0); }
    34%, 62% { transform: translateX(-25%); }
    66%, 94% { transform: translateX(-50%); }
    98%, 100% { transform: translateX(-75%); }
}
.dm-pa-slide { flex: 0 0 25%; box-sizing: border-box; padding: 4px 16px 36px; display: flex; flex-direction: column; }
.dm-pa-appbar { display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.7rem; font-size: 0.75rem; font-weight: 700; color: #475569; }
.dm-pa-logo { width: 18px; height: 18px; border-radius: 6px; background: linear-gradient(135deg, var(--a), var(--g2)); }
.dm-pa-title { margin: 0 0 0.8rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.15rem; font-weight: 700; line-height: 1.2; color: #0f172a; }
.dm-pa-days { display: flex; gap: 0.35rem; margin-bottom: 0.8rem; }
.dm-pa-days span { flex: 1; padding: 0.55rem 0; font-size: 0.78rem; font-weight: 700; text-align: center; color: #475569; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 10px; }
.dm-pa-days span.on { color: #ffffff; background: var(--a); border-color: var(--a); box-shadow: 0 8px 14px -8px var(--a-ink); }
.dm-pa-slots { display: grid; gap: 0.4rem; margin-bottom: 0.9rem; }
.dm-pa-slots span { padding: 0.6rem 0.8rem; font-size: 0.82rem; font-weight: 700; color: #334155; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 10px; }
.dm-pa-slots span.on { color: var(--a-ink); background: var(--a-soft); border-color: var(--a); }
.dm-pa-btn { margin-top: auto; padding: 0.7rem; font-size: 0.85rem; font-weight: 800; text-align: center; color: #ffffff; background: var(--a); border-radius: 12px; }
.dm-pa-btn-line { color: var(--a-dark); background: #ffffff; border: 1.5px solid var(--a); }
.dm-pa-list { list-style: none; margin: 0 0 0.8rem; padding: 0; display: grid; gap: 0.45rem; }
.dm-pa-list li { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.7rem; font-size: 0.82rem; font-weight: 700; color: #334155; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 10px; }
.dm-pa-list li i { display: grid; place-items: center; width: 20px; height: 20px; flex-shrink: 0; border: 2px dashed #cbd5e1; border-radius: 50%; }
.dm-pa-list li.done i { border: 0; background: var(--a); color: #ffffff; }
.dm-pa-list li.done i .cs-ico { width: 12px; height: 12px; }
.dm-pa-prog { margin-bottom: 0.8rem; }
.dm-pa-prog > span { display: block; height: 8px; overflow: hidden; background: #e2e8f0; border-radius: 4px; }
.dm-pa-prog > span i { display: block; width: 66%; height: 100%; background: linear-gradient(90deg, var(--a), var(--g2)); border-radius: 4px; }
.dm-pa-prog small { display: block; margin-top: 0.3rem; font-size: 0.75rem; font-weight: 700; color: #64748b; }
.dm-pa-chat { display: flex; flex-direction: column; gap: 0.5rem; }
.dm-pa-chat span { max-width: 82%; padding: 0.55rem 0.75rem; font-size: 0.82rem; font-weight: 600; line-height: 1.35; border-radius: 14px; }
.dm-pa-chat .me { align-self: flex-end; color: #ffffff; background: var(--a); border-bottom-right-radius: 4px; }
.dm-pa-chat .them { align-self: flex-start; color: #0f172a; background: #e2e8f0; border-bottom-left-radius: 4px; }
.dm-pa-input { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: auto; padding: 0.35rem 0.4rem 0.35rem 0.8rem; font-size: 0.78rem; font-weight: 600; color: #94a3b8; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 999px; }
.dm-pa-input i { display: grid; place-items: center; width: 28px; height: 28px; color: #ffffff; background: var(--a); border-radius: 50%; }
.dm-pa-input i .cs-ico { width: 14px; height: 14px; }
.dm-pa-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; }
.dm-pa-dots i { width: 6px; height: 6px; border-radius: 999px; background: #cbd5e1; }
.dm-pa-dots i:nth-child(1) { animation: dm-pa-d1 14s linear infinite; }
.dm-pa-dots i:nth-child(2) { animation: dm-pa-d2 14s linear infinite; }
.dm-pa-dots i:nth-child(3) { animation: dm-pa-d3 14s linear infinite; }
@keyframes dm-pa-d1 { 0%, 31% { width: 18px; background: var(--a); } 33%, 97% { width: 6px; background: #cbd5e1; } 98%, 100% { width: 18px; background: var(--a); } }
@keyframes dm-pa-d2 { 0%, 31% { width: 6px; background: #cbd5e1; } 33%, 62% { width: 18px; background: var(--a); } 64%, 100% { width: 6px; background: #cbd5e1; } }
@keyframes dm-pa-d3 { 0%, 63% { width: 6px; background: #cbd5e1; } 65%, 95% { width: 18px; background: var(--a); } 97%, 100% { width: 6px; background: #cbd5e1; } }
.dm-pa-toast { position: absolute; right: -2%; top: 30%; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.9rem 0.6rem 0.65rem; font-size: 0.78rem; font-weight: 800; color: var(--a-ink); background: var(--t2); border-radius: 14px; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.55); opacity: 0; animation: dm-pa-toast 14s ease-in-out infinite; }
.dm-pa-toast .cs-ico { width: 22px; height: 22px; padding: 4px; color: #ffffff; background: var(--a-dark); border-radius: 50%; }
@keyframes dm-pa-toast { 0%, 38% { opacity: 0; transform: translateX(20px); } 42%, 58% { opacity: 1; transform: translateX(0); } 62%, 100% { opacity: 0; transform: translateX(0); } }
.dm-visual-app .dm-callout-a { top: -32px; right: 4%; }
.dm-visual-app .dm-callout-b { top: auto; bottom: 1.9rem; left: 0; }
.dm-visual-app .dm-callout-c { bottom: 1.9rem; right: 0; }
.dm-visual-app .dm-slabel { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; }
@media (prefers-reduced-motion: reduce) {
    .dm-pa-track { animation: none; transform: translateX(-25%); }
    .dm-pa-dots i { animation: none !important; }
    .dm-pa-dots i:nth-child(2) { width: 18px; background: var(--a); }
    .dm-pa-toast { animation: none; opacity: 1; }
}
@media (max-width: 640px) {
    .dm-visual-app { max-width: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding-bottom: 0; }
    .dm-phone-app { flex: 0 0 250px; margin: 0 auto 0.4rem; }
    .dm-pa-toast { position: static; animation: none; opacity: 1; }
    .dm-visual-app .dm-callout-a, .dm-visual-app .dm-callout-b, .dm-visual-app .dm-callout-c { position: static; }
    .dm-visual-app .dm-slabel { position: static; flex: 1 1 100%; margin: 0.2rem 0 0; text-align: left; }
}

/* ---------- Three ways to reach phones (options, not levels) ---------- */
.dm-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.dm-choice { position: relative; display: flex; flex-direction: column; padding: 1.1rem 1.1rem 1.15rem; background: linear-gradient(170deg, var(--a-soft), #ffffff 62%); border: 1px solid var(--a-line); border-radius: 18px; }
.dm-choice-1 { --a: #0d9488; --a-dark: #0f766e; --a-ink: #134e4a; --a-soft: #f0fdfa; --a-line: #99f6e4; border-radius: 18px 18px 40px 18px; }
.dm-choice-2 { --a: #4f46e5; --a-dark: #3730a3; --a-ink: #1e1b4b; --a-soft: #eef2ff; --a-line: #c7d2fe; }
.dm-choice-3 { --a: #c026d3; --a-dark: #86198f; --a-ink: #4a044e; --a-soft: #fdf4ff; --a-line: #f5d0fe; border-radius: 40px 18px 18px 18px; }
.dm-choice-tag { align-self: flex-start; margin-bottom: 0.7rem; padding: 0.15rem 0.7rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--a-dark); background: #ffffff; border: 1px solid var(--a-line); border-radius: 999px; }
.dm-choice .dm-tile { margin-bottom: 0.6rem; }
.dm-choice h3 { margin: 0 0 0.3rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.1rem; font-weight: 700; color: #0f172a; }
.dm-choice > p { margin: 0 0 0.9rem; font-size: 0.88rem; line-height: 1.55; color: #334155; }
.dm-choice-fit { margin-top: auto; padding-top: 0.7rem; border-top: 1px dashed var(--a-line); }
.dm-choice-fit b { display: block; margin-bottom: 0.4rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #64748b; }
.dm-choice-fit ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.dm-choice-fit li { display: flex; align-items: flex-start; gap: 0.45rem; font-size: 0.82rem; font-weight: 700; line-height: 1.35; color: var(--a-dark); }
.dm-choice-fit li .cs-ico { width: 16px; height: 16px; margin-top: 0.05rem; flex-shrink: 0; color: var(--a); }
.dm-choices-note { display: flex; align-items: center; gap: 0.6rem; margin: 1rem 0 0; padding: 0.8rem 1rem; font-size: 0.92rem; font-weight: 700; color: var(--a-ink); background: var(--a-soft); border: 1px solid var(--a-line); border-radius: 14px; }
.dm-choices-note .cs-ico { width: 22px; height: 22px; flex-shrink: 0; padding: 4px; color: #ffffff; background: var(--a); border-radius: 50%; }

/* ---------- Road map: six stops with pins on a dashed route ---------- */
.dm-road { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem 1.4rem; }
.dm-stop { position: relative; padding-top: 3.4rem; }
.dm-stop::before { content: ""; position: absolute; top: 1.15rem; left: 3.1rem; right: -1.4rem; border-top: 2px dashed var(--a-line); }
.dm-stop:nth-child(3n)::before { display: none; }
.dm-stop-pin { position: absolute; top: 0; left: 0.2rem; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; background: linear-gradient(135deg, var(--a-dark), var(--a)); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 10px 16px -10px var(--a-ink); }
.dm-stop-pin b { transform: rotate(45deg); font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1rem; color: #ffffff; }
.dm-stop:last-child .dm-stop-pin { background: linear-gradient(135deg, #b45309, #f59e0b); }
.dm-stop h3 { margin: 0 0 0.25rem; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 1.12rem; font-weight: 700; color: #0f172a; }
.dm-stop p { margin: 0; font-size: 0.88rem; line-height: 1.55; color: #334155; }
@media (max-width: 991px) {
    .dm-choices { grid-template-columns: minmax(0, 1fr); }
    .dm-road { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dm-stop:nth-child(3n)::before { display: block; }
    .dm-stop:nth-child(2n)::before { display: none; }
}
@media (max-width: 560px) {
    .dm-road { grid-template-columns: minmax(0, 1fr); }
    .dm-stop::before, .dm-stop:nth-child(3n)::before, .dm-stop:nth-child(2n)::before { display: none; }
    .dm-stop { padding-top: 0; padding-left: 3.4rem; }
}
