﻿/* =====================================================================
   Driving Instructor Manager website theme - "Midnight & Electric"

   Mirrors the mobile app palette (DIManager.ClientMaui/Resources/Styles/Colors.xaml)
   so the website reads as part of the same product family.

   Design intent: the website chrome stays quiet (light canvas, thin borders,
   restrained type) so the app screens carry the visual weight on every page.

   Loaded after style.css / responsive.css / site.css. New components use the
   `dm-` prefix or BEM-style names that never collide with the template or
   Bootstrap; legacy template classes still in use are re-skinned at the end.
   ===================================================================== */

:root {
    /* Brand - kept in step with the app's Colors.xaml */
    --dm-navy-900: #0A1430;
    --dm-navy-800: #101F48;
    --dm-navy-700: #1A2F6B;
    --dm-primary: #3366FF;
    --dm-primary-strong: #2347D6;
    --dm-primary-light: #EBF0FF;
    --dm-secondary: #14C8B0;
    --dm-accent: #FFB020;

    /* App category colours (icon tiles) */
    --dm-cat-blue: #3366FF;
    --dm-cat-indigo: #6366F1;
    --dm-cat-violet: #8B5CF6;
    --dm-cat-teal: #14B8A6;
    --dm-cat-emerald: #10B981;
    --dm-cat-amber: #F59E0B;
    --dm-cat-orange: #F97316;
    --dm-cat-sky: #0EA5E9;
    --dm-cat-pink: #EC4899;
    --dm-cat-slate: #64748B;

    /* Surfaces */
    --dm-bg: #F7F8FC;
    --dm-bg-muted: #F2F4F9;
    --dm-surface: #FFFFFF;
    --dm-border: #E4E8F0;
    --dm-divider: #EEF1F6;

    /* Text */
    --dm-ink: #0F172A;
    --dm-ink-2: #334155;
    --dm-ink-3: #64748B;
    --dm-ink-4: #94A3B8;
    --dm-on-dark: #FFFFFF;
    --dm-on-dark-muted: #B8C4E6;

    /* Status */
    --dm-success: #0F9F6E;
    --dm-success-light: #E6F7F0;
    --dm-danger: #E5484D;
    --dm-danger-light: #FDECEC;
    --dm-warning-light: #FFF5E5;

    /* Shape & depth */
    --dm-radius-sm: 12px;
    --dm-radius: 16px;
    --dm-radius-lg: 22px;
    --dm-radius-xl: 34px;
    --dm-shadow-sm: 0 1px 2px rgba(10, 20, 48, .05);
    --dm-shadow: 0 1px 2px rgba(10, 20, 48, .04), 0 14px 32px -14px rgba(10, 20, 48, .14);
    --dm-shadow-lg: 0 2px 6px rgba(10, 20, 48, .04), 0 32px 64px -24px rgba(10, 20, 48, .28);
    --dm-phone-shadow: drop-shadow(0 28px 36px rgba(10, 20, 48, .20)) drop-shadow(0 6px 10px rgba(10, 20, 48, .10));

    --dm-hero-gradient: linear-gradient(135deg, #0A1430 0%, #101F48 55%, #1A2F6B 100%);
    --dm-primary-gradient: linear-gradient(135deg, #4F86FF 0%, #2347D6 100%);

    --dm-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --dm-header-h: 76px;

    /* Remap the template's variables so anything not yet restyled adopts the new palette */
    --light-purple: var(--dm-bg);
    --purple: var(--dm-primary);
    --bg-purple: var(--dm-primary);
    --dark-purple: var(--dm-ink);
    --body-text-purple: var(--dm-ink-2);
    --slider-dots-color: #D5DBE5;
    --light-bg: var(--dm-border);
    --corporate-blue: var(--dm-primary);
}

/* ---------------------------------------------------------------------
   Base
   --------------------------------------------------------------------- */
html {
    scroll-padding-top: calc(var(--dm-header-h) + 12px);
}

body {
    font-family: var(--dm-font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--dm-ink-2);
    background-color: var(--dm-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

@media (max-width: 767px) {
    /* The template centres all text on phones; keep reading text left-aligned */
    body {
        font-size: 15px;
        text-align: left;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--dm-font);
    color: var(--dm-ink);
    letter-spacing: -.02em;
}

a {
    color: var(--dm-primary);
    transition: color .2s ease;
}

a:hover {
    color: var(--dm-primary-strong);
}

::selection {
    background: #CCD9FF;
    color: var(--dm-ink);
}

:focus-visible {
    outline: 2px solid var(--dm-primary);
    outline-offset: 3px;
}

img {
    max-width: 100%;
}

.page_wrapper {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* `clip` (unlike the template's `hidden`) does not create a scroll container, so position: sticky keeps working */
    overflow-x: hidden;
    overflow-x: clip;
}

.site-main {
    flex: 1 0 auto;
}

.dm-skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 2000;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--dm-ink);
    color: #fff;
    font-weight: 600;
    transition: top .2s ease;
}

.dm-skip-link:focus {
    top: 12px;
    color: #fff;
}

/* Material Symbols (same rounded family the app uses) */
.ms {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 22px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    user-select: none;
    flex-shrink: 0;
}

/* ---------------------------------------------------------------------
   Typography helpers
   --------------------------------------------------------------------- */
.dm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--dm-primary);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.dm-eyebrow--teal {
    color: var(--dm-secondary);
}

.dm-h2 {
    margin: 0 0 16px;
    font-size: clamp(28px, 3.3vw, 42px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.03em;
    color: var(--dm-ink);
}

.dm-h2 span {
    color: var(--dm-primary);
}

.dm-lead {
    margin: 0;
    color: var(--dm-ink-3);
    font-size: 18px;
    line-height: 1.65;
}

.dm-muted {
    color: var(--dm-ink-3);
}

.dm-help-card {
    max-width: 520px;
    height: auto;
}

.dm-help-card__row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.dm-help-card h5 {
    font-size: 17px;
    font-weight: 650;
}

.dm-bar {
    display: block;
    width: 44px;
    height: 4px;
    margin: 18px 0 20px;
    border-radius: 2px;
    background: var(--dm-accent);
}

.dm-section-head {
    max-width: 760px;
    margin: 0 auto 56px;
    text-align: center;
}

.dm-section-head .dm-bar {
    margin-left: auto;
    margin-right: auto;
}

.dm-section {
    position: relative;
    padding: 112px 0;
}

.dm-section--tight {
    padding: 72px 0;
}

/* First section on pages without a hero: clears the fixed header */
.dm-section.dm-section--page {
    padding-top: calc(var(--dm-header-h) + 64px);
}

.dm-section--surface {
    background: var(--dm-surface);
    border-top: 1px solid var(--dm-divider);
    border-bottom: 1px solid var(--dm-divider);
}

@media (max-width: 991px) {
    .dm-section {
        padding: 80px 0;
    }
}

@media (max-width: 767px) {
    .dm-section {
        padding: 64px 0;
    }

    .dm-section--tight {
        padding: 48px 0;
    }

    .dm-section-head {
        margin-bottom: 40px;
        text-align: left;
    }

    .dm-section-head .dm-bar {
        margin-left: 0;
    }

    .dm-lead {
        font-size: 16px;
    }
}

/* Pill label (used above hero titles) */
.dm-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 8px;
    border: 1px solid var(--dm-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, .8);
    color: var(--dm-ink-2);
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--dm-shadow-sm);
}

.dm-pill__dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--dm-success-light);
    color: var(--dm-success);
}

.dm-pill__dot .ms {
    font-size: 15px;
}

/* ---------------------------------------------------------------------
   Buttons (pill buttons, as in the app)
   --------------------------------------------------------------------- */
.dm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--dm-font);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.005em;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}

.dm-btn .ms {
    font-size: 20px;
}

.dm-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.dm-btn:active {
    transform: translateY(0);
}

.dm-btn--primary {
    background: var(--dm-primary-gradient);
    color: #fff;
    box-shadow: 0 10px 22px -10px rgba(51, 102, 255, .75), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.dm-btn--primary:hover,
.dm-btn--primary:focus {
    color: #fff;
    box-shadow: 0 14px 28px -10px rgba(51, 102, 255, .85), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.dm-btn--secondary {
    background: var(--dm-surface);
    border-color: var(--dm-border);
    color: var(--dm-ink);
    box-shadow: var(--dm-shadow-sm);
}

.dm-btn--secondary:hover,
.dm-btn--secondary:focus {
    border-color: #C9D3E6;
    color: var(--dm-ink);
    box-shadow: var(--dm-shadow);
}

.dm-btn--light {
    background: #fff;
    color: var(--dm-navy-900);
}

.dm-btn--light:hover,
.dm-btn--light:focus {
    color: var(--dm-navy-900);
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .5);
}

.dm-btn--ghost-light {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .22);
    color: #fff;
}

.dm-btn--ghost-light:hover,
.dm-btn--ghost-light:focus {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.dm-btn--sm {
    min-height: 40px;
    padding: 0 18px;
    font-size: 14px;
}

.dm-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: var(--dm-primary);
}

.dm-link-arrow .ms {
    font-size: 18px;
    transition: transform .2s ease;
}

.dm-link-arrow:hover .ms {
    transform: translateX(3px);
}

/* ---------------------------------------------------------------------
   App store buttons
   --------------------------------------------------------------------- */
.store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 168px;
    height: 54px;
    padding: 0 20px 0 16px;
    border: 1px solid #000;
    border-radius: 14px;
    background: #000;
    color: #fff;
    text-align: left;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 10px 22px -14px rgba(0, 0, 0, .7);
}

.store-btn:hover,
.store-btn:focus {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 28px -14px rgba(0, 0, 0, .75);
}

.store-btn svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    fill: currentColor;
}

.store-btn__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    white-space: nowrap;
}

.store-btn__text small {
    font-size: 11px;
    font-weight: 500;
    opacity: .85;
    letter-spacing: .01em;
}

.store-btn__text strong {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -.01em;
}

/* Lighter variant for navy backgrounds */
.store-btn--light {
    background: #fff;
    border-color: #fff;
    color: var(--dm-navy-900);
}

.store-btn--light:hover,
.store-btn--light:focus {
    color: var(--dm-navy-900);
}

@media (max-width: 400px) {
    /* Side by side when there is room, otherwise stack at full width */
    .store-btn {
        min-width: 0;
        flex: 1 1 160px;
        justify-content: center;
        padding: 0 14px 0 12px;
    }

    .store-btn__text strong {
        font-size: 16px;
    }
}

/* ---------------------------------------------------------------------
   Header
   main.js still toggles the template's fix_style/fixed classes on scroll;
   those are neutralised here and site.js drives .is-scrolled instead.
   --------------------------------------------------------------------- */
header.site-header,
header.site-header.fix_style,
header.site-header.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    padding: 0;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    border-bottom: 1px solid transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

header.site-header.is-scrolled,
header.site-header.is-open {
    background: rgba(255, 255, 255, .86);
    border-bottom-color: rgba(228, 232, 240, .9);
    box-shadow: 0 10px 30px -24px rgba(10, 20, 48, .5);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
}

.site-nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: var(--dm-header-h);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--dm-ink);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.02em;
    white-space: nowrap;
}

.site-brand:hover {
    color: var(--dm-ink);
}

.site-brand__mark {
    display: block;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.site-brand__name span {
    color: var(--dm-ink-3);
    font-weight: 500;
}

/* Keep the full product name readable on small screens without crowding the nav toggle */
@media (max-width: 575px) {
    .site-brand {
        gap: 8px;
        font-size: 15px;
    }

    .site-brand__mark {
        width: 30px;
        height: 30px;
    }
}

.site-nav__menu {
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
}

.site-nav__links {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
}

.site-nav__link {
    display: block;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--dm-ink-2);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    transition: color .2s ease, background-color .2s ease;
}

.site-nav__link:hover,
.site-nav__link:focus {
    color: var(--dm-ink);
    background: rgba(15, 23, 42, .05);
}

.site-nav__link.is-active {
    color: var(--dm-ink);
    font-weight: 600;
    background: rgba(15, 23, 42, .05);
}

.site-nav__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 14px;
}

.site-nav__toggle {
    display: none;
}

/* Inverse header: transparent over a navy page hero until the page scrolls */
.site-header--inverse:not(.is-scrolled):not(.is-open) .site-brand,
.site-header--inverse:not(.is-scrolled):not(.is-open) .site-brand:hover {
    color: #fff;
}

.site-header--inverse:not(.is-scrolled):not(.is-open) .site-brand__name span {
    color: var(--dm-on-dark-muted);
}

/* Full horizontal nav only once all seven links, the brand and the Download
   button fit on one line. Below that the menu collapses into the toggle. */
@media (min-width: 1200px) {
    .site-nav__menu.collapse {
        display: flex !important;
        height: auto !important;
    }

    .site-nav__link {
        white-space: nowrap;
    }

    .site-header--inverse:not(.is-scrolled) .site-nav__link {
        color: rgba(255, 255, 255, .78);
    }

    .site-header--inverse:not(.is-scrolled) .site-nav__link:hover,
    .site-header--inverse:not(.is-scrolled) .site-nav__link:focus,
    .site-header--inverse:not(.is-scrolled) .site-nav__link.is-active {
        color: #fff;
        background: rgba(255, 255, 255, .10);
    }
}

@media (max-width: 991px) {
    :root {
        --dm-header-h: 68px;
    }
}

@media (max-width: 1199px) {
    .site-nav__toggle {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid var(--dm-border);
        border-radius: 12px;
        background: #fff;
        cursor: pointer;
    }

    .site-nav__toggle span {
        display: block;
        width: 18px;
        height: 2px;
        border-radius: 2px;
        background: var(--dm-ink);
        transition: transform .25s ease;
    }

    .site-nav__toggle[aria-expanded="true"] span:first-child {
        transform: translateY(3.5px) rotate(45deg);
    }

    .site-nav__toggle[aria-expanded="true"] span:last-child {
        transform: translateY(-3.5px) rotate(-45deg);
    }

    .site-header--inverse:not(.is-scrolled):not(.is-open) .site-nav__toggle {
        background: rgba(255, 255, 255, .08);
        border-color: rgba(255, 255, 255, .22);
    }

    .site-header--inverse:not(.is-scrolled):not(.is-open) .site-nav__toggle span {
        background: #fff;
    }

    .site-nav__menu {
        position: absolute;
        top: calc(100% - 4px);
        left: 0;
        right: 0;
        padding: 10px;
        border: 1px solid var(--dm-border);
        border-radius: 20px;
        background: #fff;
        box-shadow: var(--dm-shadow-lg);
    }

    .site-nav__links {
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav__link {
        padding: 12px 14px;
        border-radius: 12px;
        font-size: 16px;
    }

    .site-nav__actions {
        flex-direction: column;
        align-items: stretch;
        margin: 8px 0 0;
        padding-top: 10px;
        border-top: 1px solid var(--dm-divider);
    }
}

/* ---------------------------------------------------------------------
   Inner-page hero: the app's navy hero header with rounded bottom corners
   --------------------------------------------------------------------- */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--dm-header-h) + 72px) 0 84px;
    border-radius: 0 0 var(--dm-radius-xl) var(--dm-radius-xl);
    background:
        radial-gradient(900px 420px at 88% -10%, rgba(51, 102, 255, .38), rgba(51, 102, 255, 0) 65%),
        var(--dm-hero-gradient);
    color: #fff;
}

.page-hero::before,
.page-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .035);
    pointer-events: none;
}

.page-hero::before {
    width: 420px;
    height: 420px;
    right: -120px;
    top: -140px;
}

.page-hero::after {
    width: 220px;
    height: 220px;
    right: 180px;
    bottom: -150px;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero__crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    color: var(--dm-secondary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.page-hero__crumbs a,
.page-hero__crumbs a:hover {
    color: inherit;
}

.page-hero__crumbs a:hover {
    text-decoration: underline;
}

.page-hero__crumbs .sep {
    color: rgba(255, 255, 255, .35);
}

.page-hero h1,
.page-hero .page-hero__title {
    max-width: 860px;
    margin: 0;
    color: #fff;
    font-size: clamp(32px, 4.2vw, 52px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.03em;
}

.page-hero p {
    max-width: 660px;
    margin: 0;
    color: var(--dm-on-dark-muted);
    font-size: 18px;
    line-height: 1.65;
}

.page-hero .page-hero__meta {
    margin-top: 10px;
    color: #fff;
    font-size: 14px;
}

@media (max-width: 767px) {
    .page-hero {
        padding: calc(var(--dm-header-h) + 44px) 0 56px;
        border-radius: 0 0 26px 26px;
    }

    .page-hero p {
        font-size: 16px;
    }
}

/* ---------------------------------------------------------------------
   Cards & icon tiles
   --------------------------------------------------------------------- */
.dm-card {
    position: relative;
    height: 100%;
    padding: 26px;
    border: 1px solid var(--dm-border);
    border-radius: 20px;
    background: var(--dm-surface);
    box-shadow: var(--dm-shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.dm-card--hover:hover {
    transform: translateY(-3px);
    border-color: #D5DDEC;
    box-shadow: var(--dm-shadow);
}

.dm-card h3,
.dm-card h4 {
    margin: 18px 0 8px;
    font-size: 17.5px;
    font-weight: 650;
    line-height: 1.35;
    letter-spacing: -.015em;
}

.dm-card p {
    margin: 0;
    color: var(--dm-ink-3);
    font-size: 15px;
    line-height: 1.65;
}

.icon-tile {
    --tile: var(--dm-cat-blue);
    --tile-shadow: rgba(51, 102, 255, .5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    color: #fff;
    background-color: var(--tile);
    background-image: linear-gradient(150deg, rgba(255, 255, 255, .24) 0%, rgba(255, 255, 255, 0) 60%);
    box-shadow: 0 10px 18px -10px var(--tile-shadow), inset 0 1px 0 rgba(255, 255, 255, .2);
    flex-shrink: 0;
}

.icon-tile .ms {
    font-size: 23px;
}

.icon-tile--sm {
    width: 38px;
    height: 38px;
    border-radius: 12px;
}

.icon-tile--sm .ms {
    font-size: 20px;
}

.icon-tile--blue { --tile: var(--dm-cat-blue); --tile-shadow: rgba(51, 102, 255, .55); }
.icon-tile--indigo { --tile: var(--dm-cat-indigo); --tile-shadow: rgba(99, 102, 241, .55); }
.icon-tile--violet { --tile: var(--dm-cat-violet); --tile-shadow: rgba(139, 92, 246, .55); }
.icon-tile--teal { --tile: var(--dm-cat-teal); --tile-shadow: rgba(20, 184, 166, .55); }
.icon-tile--emerald { --tile: var(--dm-cat-emerald); --tile-shadow: rgba(16, 185, 129, .55); }
.icon-tile--amber { --tile: var(--dm-cat-amber); --tile-shadow: rgba(245, 158, 11, .55); }
.icon-tile--orange { --tile: var(--dm-cat-orange); --tile-shadow: rgba(249, 115, 22, .55); }
.icon-tile--sky { --tile: var(--dm-cat-sky); --tile-shadow: rgba(14, 165, 233, .55); }
.icon-tile--pink { --tile: var(--dm-cat-pink); --tile-shadow: rgba(236, 72, 153, .55); }
.icon-tile--slate { --tile: var(--dm-cat-slate); --tile-shadow: rgba(100, 116, 139, .55); }
.icon-tile--success { --tile: var(--dm-success); --tile-shadow: rgba(15, 159, 110, .5); }
.icon-tile--danger { --tile: var(--dm-danger); --tile-shadow: rgba(229, 72, 77, .5); }

/* Soft chip, like the app's SoftIconChipStyle */
.icon-tile--soft {
    background: var(--dm-primary-light);
    background-image: none;
    color: var(--dm-primary);
    box-shadow: none;
}

/* ---------------------------------------------------------------------
   Phones (the screenshots already include the device frame)
   --------------------------------------------------------------------- */
.phone {
    display: block;
    width: 100%;
    max-width: 317px;
    height: auto;
    margin: 0 auto;
    filter: var(--dm-phone-shadow);
    -webkit-user-drag: none;
    user-select: none;
}

.phone-stage {
    position: relative;
    isolation: isolate;
}

.phone-stage::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: -1;
    width: 120%;
    max-width: 640px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(51, 102, 255, .22), rgba(20, 200, 176, .08) 55%, rgba(51, 102, 255, 0) 75%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Three-phone composition */
.phone-stack {
    position: relative;
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    aspect-ratio: 580 / 640;
}

.phone-stack .phone {
    position: absolute;
    margin: 0;
}

.phone-stack__center {
    left: 50%;
    top: 0;
    z-index: 3;
    width: 53%;
    transform: translateX(-50%);
}

.phone-stack__left,
.phone-stack__right {
    top: 11%;
    z-index: 1;
    width: 43%;
}

.phone-stack__left {
    left: 0;
}

.phone-stack__right {
    right: 0;
}

/* Floating app-style chips around a phone */
.float-chip {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 10px 10px;
    border: 1px solid rgba(228, 232, 240, .9);
    border-radius: 16px;
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--dm-shadow-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: dm-float 6s ease-in-out infinite;
}

.float-chip strong {
    display: block;
    color: var(--dm-ink);
    font-size: 13.5px;
    font-weight: 650;
    line-height: 1.25;
}

.float-chip small {
    display: block;
    color: var(--dm-ink-3);
    font-size: 12px;
    line-height: 1.3;
}

.float-chip--a {
    left: -4%;
    bottom: 16%;
}

.float-chip--b {
    right: -4%;
    top: 6%;
    animation-delay: -3s;
}

@keyframes dm-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media (max-width: 575px) {
    .float-chip {
        display: none;
    }
}

/* ---------------------------------------------------------------------
   Home - hero
   --------------------------------------------------------------------- */
.home-hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--dm-header-h) + 56px) 0 96px;
    background:
        radial-gradient(760px 520px at 78% 30%, rgba(51, 102, 255, .14), rgba(51, 102, 255, 0) 70%),
        radial-gradient(520px 380px at 95% 85%, rgba(20, 200, 176, .10), rgba(20, 200, 176, 0) 70%),
        linear-gradient(180deg, #FFFFFF 0%, var(--dm-bg) 100%);
}

/* Subtle dot grid that fades out towards the edges */
.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(15, 23, 42, .07) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 0%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 0%, transparent 75%);
    pointer-events: none;
}

.home-hero .container {
    position: relative;
}

.home-hero__title {
    margin: 22px 0 22px;
    color: var(--dm-primary);
    font-size: clamp(36px, 4.6vw, 58px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -.035em;
}

.home-hero__title span {
    color: var(--dm-ink);
    font-weight: 700;
}

.home-hero__lead {
    max-width: 540px;
    margin: 0 0 12px;
    color: var(--dm-ink-3);
    font-size: 18px;
    line-height: 1.65;
}

.home-hero__cta-note {
    margin: 22px 0 22px;
    color: var(--dm-ink);
    font-size: 15.5px;
    line-height: 1.55;
}

.home-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 30px 0 0;
    padding: 0;
    color: var(--dm-ink-3);
    font-size: 14px;
    font-weight: 500;
}

.home-hero__trust li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.home-hero__trust .ms {
    font-size: 18px;
    color: var(--dm-primary);
}

.home-hero__trust .stars {
    color: var(--dm-accent);
    letter-spacing: -1px;
}

.home-hero__trust .stars .ms {
    color: var(--dm-accent);
    font-size: 17px;
}

.home-hero__visual {
    margin-top: 8px;
}

@media (max-width: 991px) {
    .home-hero {
        padding-bottom: 64px;
    }

    .home-hero__visual {
        margin-top: 56px;
    }
}

@media (max-width: 767px) {
    .home-hero {
        padding-top: calc(var(--dm-header-h) + 32px);
    }

    .home-hero__lead {
        font-size: 16px;
    }
}

/* ---------------------------------------------------------------------
   Home - features
   --------------------------------------------------------------------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.feature-grid .dm-card {
    padding: 24px;
}

.feature-grid .dm-card h3 {
    margin-top: 16px;
    font-size: 17px;
}

.feature-grid .dm-card p {
    font-size: 14.5px;
}

.features-phone {
    position: sticky;
    top: calc(var(--dm-header-h) + 32px);
    padding: 24px 0;
}

@media (max-width: 575px) {
    .feature-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------------------------------------------------------------------
   App screen gallery
   --------------------------------------------------------------------- */
.app-gallery {
    position: relative;
}

.app-gallery__track {
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 24px 4px 36px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
}

.app-gallery__track::-webkit-scrollbar {
    display: none;
}

.app-gallery__item {
    flex: 0 0 228px;
    margin: 0;
    scroll-snap-align: center;
    text-align: center;
}

.app-gallery__item .phone {
    filter: drop-shadow(0 22px 26px rgba(10, 20, 48, .18)) drop-shadow(0 4px 8px rgba(10, 20, 48, .08));
    transition: transform .35s ease;
}

.app-gallery__item:hover .phone {
    transform: translateY(-6px);
}

.app-gallery__item figcaption {
    margin-top: 18px;
    color: var(--dm-ink);
    font-size: 14.5px;
    font-weight: 600;
}

.app-gallery__item figcaption small {
    display: block;
    margin-top: 2px;
    color: var(--dm-ink-3);
    font-size: 13px;
    font-weight: 400;
}

.app-gallery__controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.app-gallery__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--dm-border);
    border-radius: 50%;
    background: #fff;
    color: var(--dm-ink);
    box-shadow: var(--dm-shadow-sm);
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, opacity .2s ease, box-shadow .2s ease;
}

.app-gallery__btn:hover:not(:disabled) {
    box-shadow: var(--dm-shadow);
    color: var(--dm-primary);
}

.app-gallery__btn:disabled {
    opacity: .4;
    cursor: default;
}

@media (max-width: 575px) {
    .app-gallery__item {
        flex-basis: 200px;
    }
}

/* ---------------------------------------------------------------------
   Split (text + phone) blocks
   --------------------------------------------------------------------- */
.dm-split__text p {
    color: var(--dm-ink-3);
    font-size: 17px;
    line-height: 1.75;
}

.dm-split__visual {
    padding: 24px 0;
}

.dm-checklist {
    display: grid;
    gap: 14px;
    margin: 26px 0 32px;
    padding: 0;
}

.dm-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--dm-ink-2);
    font-size: 16px;
    line-height: 1.5;
}

.dm-checklist .ms {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-top: -1px;
    border-radius: 50%;
    background: var(--dm-success-light);
    color: var(--dm-success);
    font-size: 16px;
}

@media (max-width: 991px) {
    .dm-split__visual {
        margin-top: 40px;
    }
}

/* ---------------------------------------------------------------------
   Steps (How it works / Why choose us)
   --------------------------------------------------------------------- */
.steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
}

.step {
    position: relative;
    padding: 30px 28px 28px;
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius-lg);
    background: var(--dm-surface);
    box-shadow: var(--dm-shadow-sm);
}

.step__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.step__num h3 {
    margin: 0;
    color: var(--dm-ink-4);
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.04em;
}

.step h4 {
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 650;
}

.step__kicker {
    display: block;
    margin-bottom: 10px;
    color: var(--dm-primary);
    font-size: 13.5px;
    font-weight: 600;
}

.step p {
    margin: 0;
    color: var(--dm-ink-3);
    font-size: 15px;
}

.step__apps {
    display: flex;
    gap: 8px;
    margin: 4px 0 14px;
}

.step__apps a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #000;
    color: #fff;
    transition: transform .2s ease;
}

.step__apps a:hover {
    color: #fff;
    transform: translateY(-2px);
}

.step__apps svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

@media (max-width: 991px) {
    .steps {
        grid-template-columns: minmax(0, 1fr);
        max-width: 560px;
        margin: 0 auto;
    }
}

/* ---------------------------------------------------------------------
   Reviews
   --------------------------------------------------------------------- */
.review-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.review {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    padding: 30px 28px 26px;
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius-lg);
    background: var(--dm-surface);
    box-shadow: var(--dm-shadow-sm);
}

.review__stars {
    display: flex;
    gap: 1px;
    margin-bottom: 16px;
    color: var(--dm-accent);
}

.review__stars .ms {
    font-size: 19px;
}

.review__quote {
    flex: 1 1 auto;
    margin: 0 0 24px;
    padding: 0;
    border: 0;
    color: var(--dm-ink);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: -.01em;
}

.review__author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding-top: 18px;
    border-top: 1px solid var(--dm-divider);
}

.review__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dm-primary-light);
    color: var(--dm-primary);
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
}

.review__author h3,
.review__name {
    margin: 0;
    color: var(--dm-ink);
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -.01em;
}

.review__source {
    display: block;
    color: var(--dm-ink-3);
    font-size: 13px;
}

.review-foot {
    margin-top: 36px;
    text-align: center;
}

@media (max-width: 991px) {
    .review-grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 560px;
        margin: 0 auto;
    }
}

/* ---------------------------------------------------------------------
   Navy call-to-action panel (download)
   --------------------------------------------------------------------- */
.cta-panel {
    position: relative;
    overflow: hidden;
    padding: 72px 64px 0;
    border-radius: var(--dm-radius-xl);
    background:
        radial-gradient(700px 380px at 85% 0%, rgba(51, 102, 255, .45), rgba(51, 102, 255, 0) 65%),
        radial-gradient(420px 300px at 0% 100%, rgba(20, 200, 176, .18), rgba(20, 200, 176, 0) 70%),
        var(--dm-hero-gradient);
    color: #fff;
    box-shadow: var(--dm-shadow-lg);
}

.cta-panel::before {
    content: "";
    position: absolute;
    right: -140px;
    top: -160px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .035);
    pointer-events: none;
}

.cta-panel__text {
    position: relative;
    padding-bottom: 72px;
}

.cta-panel h2 {
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -.03em;
}

.cta-panel p {
    margin: 0 0 30px;
    color: var(--dm-on-dark-muted);
    font-size: 17px;
}

.cta-panel__phones {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    height: 100%;
    min-height: 380px;
}

.cta-panel__phones .phone {
    width: 46%;
    max-width: 250px;
    margin: 0;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .45));
}

.cta-panel__phones .phone:first-child {
    position: relative;
    z-index: 2;
    margin-right: -6%;
    margin-bottom: -60px;
}

.cta-panel__phones .phone:last-child {
    margin-bottom: -110px;
    opacity: .96;
}

.cta-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 991px) {
    .cta-panel {
        padding: 52px 32px 0;
    }

    .cta-panel__text {
        padding-bottom: 40px;
    }

    .cta-panel__phones {
        min-height: 300px;
    }
}

@media (max-width: 575px) {
    .cta-panel {
        padding: 40px 22px 0;
        border-radius: 26px;
    }

    .cta-panel__phones {
        min-height: 240px;
    }
}

/* ---------------------------------------------------------------------
   Summary + FAQ (home)
   --------------------------------------------------------------------- */
.summary-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 56px;
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius-xl);
    background: var(--dm-surface);
    box-shadow: var(--dm-shadow);
}

.summary-card p {
    color: var(--dm-ink-3);
    font-size: 17px;
}

.summary-card .dm-checklist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 18px 0 26px;
}

.summary-card__closing {
    margin: 0;
    padding: 20px 22px;
    border-radius: var(--dm-radius);
    background: var(--dm-primary-light);
    color: var(--dm-navy-800) !important;
}

@media (max-width: 767px) {
    .summary-card {
        padding: 32px 22px;
        border-radius: 26px;
    }

    .summary-card .dm-checklist {
        grid-template-columns: minmax(0, 1fr);
    }
}

.faq-list {
    display: grid;
    gap: 12px;
    align-content: start;
}

.faq-item {
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius);
    background: var(--dm-surface);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.faq-item[open] {
    border-color: #CCD9FF;
    box-shadow: var(--dm-shadow);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary h4 {
    margin: 0;
    color: var(--dm-ink);
    font-size: 16.5px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -.01em;
}

.faq-item summary .ms {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--dm-bg-muted);
    color: var(--dm-ink-2);
    font-size: 20px;
    transition: transform .25s ease, background-color .2s ease, color .2s ease;
}

.faq-item[open] summary .ms {
    transform: rotate(45deg);
    background: var(--dm-primary-light);
    color: var(--dm-primary);
}

.faq-item p {
    margin: 0;
    padding: 0 22px 22px;
    color: var(--dm-ink-3);
    font-size: 15px;
    line-height: 1.75;
}

.faq-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 48px;
    padding: 28px 32px;
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius-lg);
    background: var(--dm-surface);
}

.faq-cta h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 650;
}

@media (max-width: 991px) {
    .faq-list + .faq-list {
        margin-top: 12px;
    }
}

/* ---------------------------------------------------------------------
   Features page (catalogue)
   --------------------------------------------------------------------- */
.features_page_section .feature_group {
    margin-bottom: 64px;
}

.features_page_section .feature_group_head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.features_page_section .feature_group_title {
    margin: 0 0 4px;
    color: var(--dm-ink);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.025em;
}

.features_page_section .feature_group_intro {
    margin: 0;
    color: var(--dm-ink-3);
    font-size: 15.5px;
}

.features_page_section .feature_card {
    height: calc(100% - 20px);
    margin-bottom: 20px;
    padding: 22px 24px;
    border: 1px solid var(--dm-border);
    border-radius: 18px;
    background: var(--dm-surface);
    box-shadow: var(--dm-shadow-sm);
}

.features_page_section .feature_card:hover {
    border-color: #D5DDEC;
    box-shadow: var(--dm-shadow);
    transform: translateY(-3px);
}

.features_page_section .feature_card_title {
    margin: 0 0 8px;
    color: var(--dm-ink);
    font-size: 16.5px;
    font-weight: 650;
    letter-spacing: -.01em;
}

.features_page_section .feature_card_text {
    margin: 0;
    color: var(--dm-ink-3);
    font-size: 14.5px;
    line-height: 1.65;
}

@media (max-width: 767px) {
    .features_page_section .feature_group_head {
        align-items: flex-start;
    }

    .features_page_section .feature_group_title {
        font-size: 20px;
    }
}

/* ---------------------------------------------------------------------
   Contact page
   --------------------------------------------------------------------- */
.contact-card {
    padding: 44px;
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius-xl);
    background: var(--dm-surface);
    box-shadow: var(--dm-shadow);
}

.contact-card h2 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.025em;
}

.contact-card__intro {
    margin: 0 0 24px;
    color: var(--dm-ink-3);
}

.contact-card .form-group {
    margin-bottom: 16px;
}

.contact-card .form-control {
    height: 52px;
    padding: 12px 16px;
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius-sm);
    background: var(--dm-bg);
    color: var(--dm-ink);
    font-size: 15px;
    box-shadow: none;
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.contact-card textarea.form-control {
    height: auto;
    min-height: 140px;
    resize: vertical;
}

.contact-card .form-control::placeholder {
    color: var(--dm-ink-4);
}

.contact-card .form-control:focus {
    border-color: var(--dm-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(51, 102, 255, .14);
}

.contact-card .math-captcha {
    margin: 4px 0 18px;
    padding: 16px 18px;
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius);
    background: var(--dm-bg-muted);
}

.contact-card .math-captcha label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--dm-ink);
    font-size: 15px;
    font-weight: 600;
}

.contact-card .math-captcha label .ms {
    color: var(--dm-primary);
    font-size: 20px;
}

.contact-card .math-captcha input {
    width: 140px !important;
    margin-left: 0;
    background: #fff;
}

.contact-card .term_check {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 24px;
}

.contact-card .term_check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--dm-primary);
    flex-shrink: 0;
}

.contact-card .term_check label {
    flex: 1 1 0;
    margin: 0;
    color: var(--dm-ink-2);
    font-size: 14.5px;
}

.contact-card .term_check .text-danger {
    flex-basis: 100%;
}

.contact-card .security-notice {
    display: flex;
    gap: 10px;
    margin: 0 0 22px;
    padding: 14px 16px;
    border: 0;
    border-radius: var(--dm-radius-sm);
    background: var(--dm-primary-light);
    color: var(--dm-navy-800);
    font-size: 14px;
    line-height: 1.55;
}

.contact-card .security-notice .ms {
    color: var(--dm-primary);
    font-size: 20px;
}

.contact-card .alert-success,
.contact-card .alert-danger {
    border-radius: var(--dm-radius-sm) !important;
}

.contact-card .alert-danger p:last-child {
    margin-bottom: 0;
}

.contact-info {
    height: 100%;
    padding: 40px 32px;
    border-radius: var(--dm-radius-xl);
    background:
        radial-gradient(500px 300px at 100% 0%, rgba(51, 102, 255, .4), rgba(51, 102, 255, 0) 65%),
        var(--dm-hero-gradient);
    color: #fff;
}

.contact-info h2 {
    margin: 22px 0 10px;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.02em;
}

.contact-info > p {
    color: var(--dm-on-dark-muted);
}

.contact-info__list {
    display: grid;
    gap: 14px;
    margin: 28px 0 0;
    padding: 0;
}

.contact-info__list li {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: var(--dm-radius);
    background: rgba(255, 255, 255, .05);
}

.contact-info__list .icon-tile {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.contact-info__list li > div > span {
    display: block;
    color: var(--dm-secondary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.contact-info__list p {
    margin: 2px 0 10px;
    color: #fff;
    font-size: 15px;
}

.contact-info__list p:last-child {
    margin-bottom: 0;
}

.contact-info__list a {
    color: #fff;
    font-size: 14.5px;
    overflow-wrap: anywhere;
}

.contact-info__list a:hover {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 991px) {
    .contact-info {
        margin-top: 24px;
    }
}

@media (max-width: 575px) {
    .contact-card,
    .contact-info {
        padding: 28px 20px;
        border-radius: 26px;
    }
}

/* ---------------------------------------------------------------------
   Services / Reviews page helpers
   --------------------------------------------------------------------- */
.services_section .row > [class*='col-'],
.reviews_section .row > [class*='col-'] {
    display: flex;
    margin-bottom: 22px;
}

.services_section .dm-card,
.reviews_section .review {
    width: 100%;
}

.review__stars .is-off {
    opacity: .25;
}

.review__name {
    display: block;
}

.reviews_note {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    padding: 18px 22px;
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius);
    background: var(--dm-surface);
}

.reviews_note .ms {
    color: var(--dm-primary);
}

.reviews_note p {
    margin: 0;
    color: var(--dm-ink-3);
    font-size: 14.5px;
    line-height: 1.7;
}

/* ---------------------------------------------------------------------
   Legacy template components still used by Pricing, FAQ, Privacy,
   payment result and error pages
   --------------------------------------------------------------------- */
.puprple_btn,
.white_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 0 26px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.puprple_btn::before,
.white_btn::before {
    display: none !important;
}

.puprple_btn,
.puprple_btn:focus {
    border: 1px solid transparent;
    background: var(--dm-primary-gradient);
    color: #fff;
    box-shadow: 0 10px 22px -10px rgba(51, 102, 255, .75);
}

.puprple_btn:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px -10px rgba(51, 102, 255, .85);
}

.white_btn,
.white_btn:focus {
    border: 1px solid var(--dm-border);
    background: #fff;
    color: var(--dm-ink);
    box-shadow: var(--dm-shadow-sm);
}

.white_btn:hover {
    border-color: #C9D3E6;
    color: var(--dm-ink);
    transform: translateY(-1px);
    box-shadow: var(--dm-shadow);
}

.white_btn:disabled,
.puprple_btn:disabled {
    opacity: .55;
    transform: none;
    cursor: not-allowed;
}

.section_title h2 {
    font-size: clamp(28px, 3.3vw, 42px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.03em;
    color: var(--dm-ink);
}

.section_title h2 span {
    color: var(--dm-primary);
}

.section_title p {
    color: var(--dm-ink-3);
    font-size: 17px;
}

/* Bootstrap accordion on /Home/Faq */
/* Standalone FAQ page: the hero replaces the old in-section heading, so the
   panel sits flush against the section padding instead of below a spacer. */
.faq_section .faq_panel {
    max-width: 860px;
    margin: 0 auto;
}

.faq_section .faq_panel .card {
    margin-bottom: 12px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius) !important;
    background: var(--dm-surface);
    box-shadow: none;
}

.faq_section .faq_panel .card-header {
    position: relative;
    padding: 0;
    border: 0;
    background: transparent;
}

.faq_section .faq_panel .card-header h2 {
    margin: 0;
}

.faq_section .faq_panel .card-header .btn {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 20px 22px;
    color: var(--dm-ink);
    font-size: 16.5px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
}

.faq_section .faq_panel .card-header .btn.active {
    color: var(--dm-primary);
}

.faq_section .faq_panel .card-header .icon_faq {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--dm-bg-muted);
    color: var(--dm-ink-2);
    font-size: 13px;
    flex-shrink: 0;
}

.faq_section .faq_panel .card-header .btn.active .icon_faq {
    background: var(--dm-primary-light);
    color: var(--dm-primary);
}

.faq_section .faq_panel .card-body {
    padding: 0 22px 22px;
}

.faq_section .faq_panel .card-body p {
    margin: 0;
    color: var(--dm-ink-3);
    line-height: 1.75;
}

.still_questions {
    max-width: 860px;
    margin-top: 56px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px 28px;
    border-radius: var(--dm-radius-lg);
    background: var(--dm-surface);
    border: 1px solid var(--dm-border);
}

.still_questions h3 {
    font-size: 22px;
    font-weight: 700;
}

.still_questions p {
    color: var(--dm-ink-3);
}

/* Pricing page (markup and checkout forms unchanged; presentation only) */
.pricing_section .promo_banner {
    max-width: 820px;
    margin-bottom: 40px;
    padding: 44px 36px;
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius-xl);
    background: #fff;
    box-shadow: var(--dm-shadow);
}

.pricing_section .promo_banner .promo_headline {
    color: var(--dm-ink);
    font-weight: 800;
    letter-spacing: -.025em;
}

.pricing_section .promo_banner .promo_note {
    color: var(--dm-ink-3);
}

.plan_table_wrap {
    padding: 28px;
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius-xl);
    background: #fff;
    box-shadow: var(--dm-shadow-sm);
}

.plan_table .plan_feat {
    color: var(--dm-ink-2);
}

.plan_table .plan_group th {
    color: var(--dm-ink-3);
}

.pricing_section .contact_text a {
    color: var(--dm-primary);
}

@media (max-width: 767px) {
    .pricing_section .promo_banner {
        padding: 28px 18px;
        border-radius: 26px;
    }

    .plan_table_wrap {
        padding: 8px 2px;
        border-radius: 20px;
    }
}

/* Privacy policy */
.privacy_content {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 56px;
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius-xl);
    background: var(--dm-surface);
    box-shadow: var(--dm-shadow-sm);
}

.privacy_content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--dm-ink);
    font-size: 1.35rem;
    font-weight: 700;
}

.privacy_content h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--dm-ink);
    font-size: 1.05rem;
    font-weight: 650;
}

.privacy_content p {
    margin-bottom: 15px;
    color: var(--dm-ink-2);
    line-height: 1.8;
}

.privacy_content ul {
    margin-bottom: 15px;
    padding-left: 25px;
}

.privacy_content ul li {
    margin-bottom: 8px;
    color: var(--dm-ink-2);
    line-height: 1.6;
    list-style: disc;
}

.privacy_content ul ul {
    margin-top: 8px;
    margin-bottom: 8px;
}

.privacy_content ul ul li {
    list-style: circle;
}

.privacy_content a {
    color: var(--dm-primary);
    text-decoration: none;
}

.privacy_content a:hover {
    text-decoration: underline;
}

.privacy_section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--dm-divider);
}

.privacy_section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

@media (max-width: 767px) {
    .privacy_content {
        padding: 28px 20px;
        border-radius: 26px;
    }

    .privacy_content h3 {
        font-size: 1.2rem;
    }
}

/* Inline callout, matches the app's soft status banners */
.dm-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 18px;
    padding: 18px 22px;
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius);
    background: var(--dm-bg);
    color: var(--dm-ink-2);
    text-align: left;
}

.dm-alert .ms {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--dm-accent);
    font-size: 22px;
    line-height: 25px;
}

.dm-alert p {
    margin: 0;
    color: inherit !important;
    font-size: 15px;
    line-height: 1.7;
}

.dm-alert strong {
    color: var(--dm-ink);
}

.dm-alert--warning {
    border-color: rgba(255, 176, 32, .42);
    background: var(--dm-warning-light);
}

.dm-alert--warning .ms {
    color: #B26A00;
}

/* Payment result + error pages */
.success_content,
.cancel_content,
.dm-result {
    padding: 56px 48px;
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius-xl);
    background: var(--dm-surface);
    box-shadow: var(--dm-shadow);
}

.success_content h1,
.cancel_content h1,
.dm-result h1 {
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 700;
    letter-spacing: -.03em;
}

.success_content .lead,
.cancel_content .lead,
.dm-result .lead {
    color: var(--dm-ink-2);
}

.success_content p,
.cancel_content p,
.dm-result p {
    color: var(--dm-ink-3);
}

@media (max-width: 575px) {
    .success_content,
    .cancel_content,
    .dm-result {
        padding: 36px 22px;
    }
}

.dm-result__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 22px;
    border-radius: 22px;
}

.dm-result__icon .ms {
    font-size: 36px;
}

.dm-result > .dm-btn {
    margin-top: 12px;
}

.dm-result__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

/* Bootstrap colour utilities used on the in-app subscription page */
.text-primary {
    color: var(--dm-primary) !important;
}

/* Bootstrap 5 utilities used by the in-app subscription view (site ships Bootstrap 4) */
.fw-bold {
    font-weight: 700 !important;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.card.shadow-lg {
    border: 1px solid var(--dm-border) !important;
    border-radius: var(--dm-radius-xl);
    box-shadow: var(--dm-shadow-lg) !important;
}

.display-4 {
    letter-spacing: -.035em;
}

.btn-primary,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:hover {
    border-color: transparent !important;
    background: var(--dm-primary-gradient) !important;
    color: #fff !important;
    border-radius: 999px;
    font-weight: 600;
}

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
footer.site-footer {
    position: relative;
    margin-top: 0;
    padding: 88px 0 0;
    overflow: hidden;
    background: var(--dm-navy-900) !important;
    color: var(--dm-on-dark-muted);
}

footer.site-footer::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 900px;
    height: 360px;
    background: radial-gradient(closest-side, rgba(51, 102, 255, .22), rgba(51, 102, 255, 0));
    transform: translate(-50%, -60%);
    pointer-events: none;
}

footer.site-footer .container {
    position: relative;
}

.site-footer .site-brand,
.site-footer .site-brand:hover {
    color: #fff;
}

.site-footer .site-brand__name span {
    color: var(--dm-on-dark-muted);
}

.site-footer__about {
    max-width: 420px;
    margin: 20px 0 18px;
    color: #8E9BC0;
    font-size: 14.5px;
    line-height: 1.75;
}

.site-footer__email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 500;
}

.site-footer__email .ms {
    font-size: 19px;
    color: var(--dm-secondary);
}

.site-footer__email:hover {
    color: #fff;
    text-decoration: underline;
}

footer.site-footer h3 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.site-footer__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
    margin: 0;
    padding: 0;
}

.site-footer__links a {
    color: #A9B5D6;
    font-size: 14.5px;
}

.site-footer__links a:hover {
    color: #fff;
}

.site-footer__app p {
    margin: 0 0 18px;
    color: #8E9BC0;
    font-size: 14.5px;
}

.site-footer__app .store-btn {
    border-color: rgba(255, 255, 255, .18);
}

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 64px;
    padding: 26px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: 13.5px;
}

.site-footer__bottom p {
    margin: 0;
    color: #7E8BB0;
}

.site-footer__bottom ul {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.site-footer__bottom a {
    color: #A9B5D6;
}

.site-footer__bottom a:hover {
    color: #fff;
}

@media (max-width: 991px) {
    footer.site-footer {
        padding-top: 64px;
    }

    .site-footer__col {
        margin-bottom: 40px;
    }

    .site-footer__bottom {
        margin-top: 8px;
    }
}

/* Back-to-top (main.js fades it in after scrolling) */
.go_top {
    right: 24px;
    bottom: 24px;
    z-index: 1020;
}

.go_top:hover {
    bottom: 24px;
}

.go_top > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--dm-border);
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--dm-ink);
    box-shadow: var(--dm-shadow);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform .2s ease, color .2s ease;
}

.go_top:hover > span {
    color: var(--dm-primary);
    transform: translateY(-2px);
}

/* ---------------------------------------------------------------------
   User Guide (instruction manual)
   --------------------------------------------------------------------- */
.guide-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.guide-jump a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 18px 0 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: #fff;
    font-size: 14.5px;
    font-weight: 600;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.guide-jump a:hover {
    background: rgba(255, 255, 255, .15);
    border-color: rgba(255, 255, 255, .3);
    color: #fff;
    transform: translateY(-1px);
}

.guide-jump__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    color: var(--dm-secondary);
    font-size: 12.5px;
    font-weight: 700;
}

.guide-group {
    margin-bottom: 76px;
    scroll-margin-top: calc(var(--dm-header-h) + 24px);
}

.guide-group:last-of-type {
    margin-bottom: 24px;
}

.guide-group__head {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 30px;
}

.guide-group__head .dm-eyebrow {
    margin-bottom: 6px;
}

.guide-group__title {
    margin: 0 0 6px;
    color: var(--dm-ink);
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 700;
    letter-spacing: -.025em;
}

.guide-group__intro {
    max-width: 640px;
    margin: 0;
    color: var(--dm-ink-3);
    font-size: 15.5px;
    line-height: 1.65;
}

.guide-card {
    display: flex;
    flex-direction: column;
    height: calc(100% - 22px);
    margin-bottom: 22px;
    padding: 24px 26px 20px;
    border: 1px solid var(--dm-border);
    border-radius: 20px;
    background: var(--dm-surface);
    color: inherit;
    box-shadow: var(--dm-shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.guide-card:hover,
.guide-card:focus {
    color: inherit;
    text-decoration: none;
    transform: translateY(-3px);
    border-color: #D5DDEC;
    box-shadow: var(--dm-shadow);
}

.guide-card__title {
    margin: 18px 0 8px;
    color: var(--dm-ink);
    font-size: 17px;
    font-weight: 650;
    line-height: 1.35;
    letter-spacing: -.015em;
}

.guide-card__text {
    margin: 0;
    color: var(--dm-ink-3);
    font-size: 14.5px;
    line-height: 1.65;
}

.guide-card__more {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    padding-top: 18px;
    color: var(--dm-primary);
    font-size: 14px;
    font-weight: 600;
}

.guide-card__more .ms {
    font-size: 18px;
    transition: transform .2s ease;
}

.guide-card:hover .guide-card__more .ms {
    transform: translateX(3px);
}

/* Detail page: sticky figure beside the numbered instructions */
.guide-aside {
    position: sticky;
    top: calc(var(--dm-header-h) + 28px);
}

.guide-figure {
    margin: 0 0 24px;
    padding: 22px 22px 20px;
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius-lg);
    background: linear-gradient(180deg, #F7F9FF 0%, #FFFFFF 70%);
    box-shadow: var(--dm-shadow);
    text-align: center;
}

.guide-figure .phone {
    max-width: 300px;
}

.guide-figure figcaption {
    margin: 16px 0 0;
    color: var(--dm-ink-4);
    font-size: 13.5px;
    line-height: 1.55;
}

/* Walkthrough video that sits under the hero, above the screenshot and the numbered steps */
.guide-video {
    padding: 46px 0 6px;
}

.guide-video__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.guide-video__head {
    max-width: 720px;
    margin-bottom: 26px;
}

.guide-video__title {
    margin: 0;
    color: var(--dm-ink);
    font-size: clamp(21px, 2.3vw, 27px);
    font-weight: 700;
    letter-spacing: -.025em;
}

.guide-video__frame {
    margin: 0;
    padding: 20px;
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius-lg);
    background: linear-gradient(180deg, #F7F9FF 0%, #FFFFFF 70%);
    box-shadow: var(--dm-shadow);
}

.guide-video__frame video {
    display: block;
    width: 100%;
    max-width: 440px;
    height: auto;
    border-radius: var(--dm-radius);
    background: #0B1220;
}

.guide-video__frame--wide video {
    max-width: 880px;
}

.guide-video__note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 640px;
    margin: 20px 0 0;
    color: var(--dm-ink-4);
    font-size: 13.5px;
    line-height: 1.6;
}

.guide-video__note .ms {
    margin-top: 2px;
    color: var(--dm-accent);
    font-size: 18px;
}

.guide-tips {
    margin: 0 0 24px;
    padding: 22px 24px;
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius-lg);
    background: var(--dm-surface);
    box-shadow: var(--dm-shadow-sm);
}

.guide-tips h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    color: var(--dm-ink);
    font-size: 15.5px;
    font-weight: 650;
    letter-spacing: -.01em;
}

.guide-tips h2 .ms {
    color: var(--dm-accent);
    font-size: 21px;
}

.guide-tips ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.guide-tips li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--dm-ink-3);
    font-size: 14.5px;
    line-height: 1.6;
}

.guide-tips li .ms {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--dm-secondary);
    font-size: 18px;
}

.guide-intro {
    margin: 0;
    color: var(--dm-ink-2);
    font-size: 17.5px;
    line-height: 1.75;
}

.guide-steps {
    display: grid;
    gap: 16px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.guide-step {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 26px;
    border: 1px solid var(--dm-border);
    border-radius: 18px;
    background: var(--dm-surface);
    box-shadow: var(--dm-shadow-sm);
}

.guide-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: var(--dm-primary-gradient);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 10px 18px -10px rgba(51, 102, 255, .8);
}

.guide-step__body {
    min-width: 0;
}

.guide-step__title {
    margin: 4px 0 6px;
    color: var(--dm-ink);
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -.015em;
}

.guide-step__text {
    margin: 0;
    color: var(--dm-ink-3);
    font-size: 15px;
    line-height: 1.7;
}

/* Control legend — decodes icon-only toolbars for the reader. */
.guide-legend {
    margin-top: 64px;
    padding: 34px 32px 32px;
    background: linear-gradient(180deg, #F7F9FF 0%, #FFFFFF 100%);
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius-lg);
    box-shadow: var(--dm-shadow-sm);
}

.guide-legend__title {
    margin: 12px 0 0;
    font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--dm-ink);
}

.guide-legend__items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 26px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.guide-legend__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: var(--dm-surface);
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius);
}

.guide-legend__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: rgba(255, 176, 32, 0.14);
    color: var(--dm-accent);
    font-size: 21px;
}

.guide-legend__body {
    min-width: 0;
}

.guide-legend__control {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--dm-ink);
}

.guide-legend__purpose {
    margin: 5px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--dm-ink-3);
}

.guide-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 64px;
}

.guide-nav--single {
    grid-template-columns: minmax(0, 1fr);
}

.guide-nav--single .guide-nav__link--next {
    text-align: left;
}

.guide-nav--single .guide-nav__link--next .guide-nav__dir {
    justify-content: flex-start;
}

.guide-nav__link {
    display: block;
    height: 100%;
    padding: 22px 24px;
    border: 1px solid var(--dm-border);
    border-radius: 18px;
    background: var(--dm-surface);
    color: inherit;
    box-shadow: var(--dm-shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.guide-nav__link:hover,
.guide-nav__link:focus {
    color: inherit;
    text-decoration: none;
    transform: translateY(-3px);
    border-color: #D5DDEC;
    box-shadow: var(--dm-shadow);
}

.guide-nav__dir {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--dm-ink-4);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.guide-nav__dir .ms {
    font-size: 17px;
}

.guide-nav__title {
    display: block;
    margin-top: 8px;
    color: var(--dm-ink);
    font-size: 16.5px;
    font-weight: 650;
    line-height: 1.35;
    letter-spacing: -.01em;
}

.guide-nav__link--next {
    text-align: right;
}

.guide-nav__link--next .guide-nav__dir {
    justify-content: flex-end;
}

@media (max-width: 991px) {
    .guide-aside {
        position: static;
        margin-bottom: 8px;
    }

    .guide-figure .phone {
        max-width: 260px;
    }
}

@media (max-width: 767px) {
    .guide-video {
        padding: 32px 0 0;
    }

    .guide-video__frame {
        padding: 12px;
    }

    .guide-legend {
        margin-top: 44px;
        padding: 24px 20px 22px;
    }

    .guide-legend__items {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        margin-top: 20px;
    }

    .guide-group {
        margin-bottom: 56px;
    }

    .guide-group__head {
        gap: 14px;
    }

    .guide-nav {
        grid-template-columns: minmax(0, 1fr);
        margin-top: 48px;
    }

    .guide-nav__link--next {
        text-align: left;
    }

    .guide-nav__link--next .guide-nav__dir {
        justify-content: flex-start;
    }

    .guide-step {
        gap: 14px;
        padding: 20px;
    }

    .guide-step__num {
        width: 30px;
        height: 30px;
        border-radius: 10px;
        font-size: 14px;
    }

    .guide-step__title {
        font-size: 16px;
    }

    .guide-intro {
        font-size: 16px;
    }
}

/* ---------------------------------------------------------------------
   Motion preferences
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
    }
}
