:root {
    --dd-page-pattern: url("images/design-dates-pattern.png");
    --dd-logo-height: 36px;
}

@media (min-width: 768px) {
    :root { --dd-logo-height: 40px; }
}

#navbar .dd-header-logo,
.journey-header .brand .dd-header-logo,
.funnel-logo-header .system-logo-link .dd-header-logo,
.funnel-hero-section .hero-logo .dd-header-logo {
    display: block;
    height: var(--dd-logo-height);
    width: auto;
    max-width: min(42vw, 220px);
    object-fit: contain;
    object-position: left center;
}

body.dd-home, body.dd-profile, body:has(> .journey-header) {
    background-image: var(--dd-page-pattern);
    background-repeat: repeat;
    background-size: 480px 330px;
}

.dd-home .dd-pattern-layer,
.dd-home #main-content > :is(.bg-white, .bg-surface, .dd-reviews36) {
    background-image: var(--dd-page-pattern);
    background-size: 480px 330px;
}
.dd-home .dd-pattern-layer { pointer-events: none; }
.dd-home { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }

.dd-intro-banner {
    position: fixed;
    inset: auto 0 0;
    z-index: 60;
    display: flex;
    justify-content: center;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
    border-radius: 0;
    background: #fffdf9;
    box-shadow: inset 0 1px #e4e6df;
    pointer-events: none;
}
.dd-intro-banner a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    pointer-events: auto;
    min-height: 44px;
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    box-shadow: 0 3px 16px #19394633;
    text-decoration: none;
}
.dd-intro-banner a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.dd-home .cookie-banner { bottom: calc(62px + env(safe-area-inset-bottom)); }
.dd-home .cookie-banner:not(.active) { visibility: hidden; pointer-events: none; }

.dd-home .mobile-menu {
    align-items: stretch;
    justify-content: flex-start;
    padding: 76px 16px 28px;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.dd-home .mobile-menu-links { display: grid; gap: 4px; width: min(100%, 480px); }
.dd-home .mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 12px 14px !important;
    text-align: left;
}
.dd-home .mobile-menu-link i { width: 1.25em; flex: none; color: var(--gold); }
.dd-home .mobile-menu-link::after { display: none; }
.dd-home .mobile-menu-cta { margin-top: 12px; }

.dd-reviews36 { padding-block: clamp(24px, 4vw, 48px); }
.dd-reviews36.dd-reviews36-compact { margin-block: 0; padding-block: clamp(10px, 1.5vw, 18px); }
.shell:has(+ .dd-reviews36-compact) { margin-block-end: 12px; }
.speed-page:has(> .dd-reviews36-compact:last-child) { padding-block-end: 18px; }
.dd-reviews36-compact + .speed-exit-actions { margin-block-start: 12px; }
.dd-reviews36 .dd-reviews36-head { margin-bottom: 14px; }
.dd-reviews36 .dd-reviews36-track { align-items: flex-start; padding: 4px 0 10px; }
.dd-reviews36 .dd-review36 { padding: 16px 18px; border-radius: 14px; }
.dd-review36 blockquote { margin: 8px 0 12px; font-size: 13.44px; line-height: 1.55; }
.dd-review36 .dd-review36-avatar { width: 30px; height: 30px; flex: none; }
.dd-reviews36 .dd-reviews36-caption { margin-top: 8px; }

@media (max-width: 600px) {
    .dd-reviews36 .dd-reviews36-head { display: flex; align-items: center; gap: 10px; }
    .dd-reviews36 .dd-reviews36-controls { margin-top: 0; }
    .dd-reviews36 .dd-review36 { flex: 0 0 100%; }
    .dd-reviews36 .dd-reviews36-controls button { min-width: 44px; height: 44px; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .dd-home .mobile-menu, .dd-home .mobile-menu-link,
    .dd-home .mobile-menu-cta, .dd-home .mobile-menu-close { transition: none; }
}

.dd-home .btn-premium,
.dd-home .dd-culture36-cta,
.dd-home .newsletter-submit {
    background-image: none;
    text-decoration: none;
}

.dd-home .btn-premium::before { content: none; }

.dd-home .dd-action-button,
.dd-home .dd-date-promise-bottom a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 38px;
    border-radius: 9px;
    background: var(--brand);
    color: #fff;
    text-decoration: none;
}
.dd-home .dd-action-secondary { background: #e8eff0; color: #173b44; }
.dd-home .dd-date-promise-bottom a { padding: 9px 17px; border: 0; min-height: 44px; }
.dd-home .dd-action-button:focus-visible,
.dd-home .dd-date-promise-bottom a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.dd-home .dd-culture36-cta { background: #fffdf9; color: #173b44; border-color: transparent; }
.dd-intro-banner a:hover { filter: brightness(.92); }
.dd-intro-banner a i:last-child { margin-left: 3px; }

.dd-process-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px 22px; }
.dd-process-card { min-width: 0; overflow-wrap: anywhere; }
.dd-process-arrow {
    position: absolute;
    z-index: 11;
    top: 50%;
    left: calc(100% + 2px);
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #e8eff0;
    color: #173b44;
    pointer-events: none;
    font-size: 10px;
}
.dd-process-arrow i { animation: dd-process-flow 3.3s ease-in-out infinite; }
.dd-process-card:nth-child(2) .dd-process-arrow i { animation-delay: .5s; }
.dd-process-card:nth-child(3) .dd-process-arrow i { animation-delay: 1s; }
@keyframes dd-process-flow {
    0%, 75%, 100% { opacity: .75; transform: translateX(-2px); }
    36% { opacity: 1; transform: translateX(2px); }
}
@media (max-width: 1023px) {
    .dd-process-turn {
        transform: rotate(135deg);
        top: calc(100% + 5px);
        left: -20px;
    }
}
@media (min-width: 1024px) {
    .dd-process-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 600px) {
    .dd-process-card { padding: 12px 10px; }
    .dd-process-card h3 { font-size: 12px; line-height: 1.3; margin-bottom: 5px; }
    .dd-process-card p { font-size: 11px; line-height: 1.45; }
    .dd-process-card .dd-process-icon { width: 32px; height: 32px; margin-bottom: 8px; border-radius: 9px; }
    .dd-process-icon i { font-size: 14px; }
    .dd-process-card .dd-process-number { font-size: 26px; top: 9px; right: 9px; }
}
@media (prefers-reduced-motion: reduce) {
    .dd-process-arrow i { animation: none; }
}

.dd-home .dd-culture36-cta {
    padding: 10px 16px;
    border: 0;
    border-radius: 9px;
}
body:has(> .journey-header) .button,
.dd-profile .action-btn {
    background-image: none;
    text-decoration: none;
}

.dd-home .home-stats-grid article { padding: 13px 16px; }
.dd-home .home-stats-grid strong { margin-top: 10px; }
@media (max-width: 600px) {
    .dd-home .home-stats-grid article { padding: 10px 12px; }
    .dd-home .home-stats-grid strong { margin-top: 8px; }
}

/* Client pages use an in-flow cookie notice so it cannot shade the bottom of the screen. */
body:has(> .journey-header) .dd-cookie {
    position: static;
    margin: 12px auto;
    width: calc(100% - 28px);
    box-shadow: none;
}

.dd-footer-social {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: inherit;
    border: 1px solid currentColor;
    border-radius: 50%;
}
.dd-footer-social:hover { color: var(--gold); }
