/* Landing variant D: form-first hero card over a dining-room photo. Scoped to body[data-variant="D"]. Light only.
   Brand navy + brass only (kuka-theme tokens with literal fallbacks; kuka-theme.css is not loaded on /welcome). */

body[data-variant="D"] {
    --wd-navy: var(--kuka-navy-700, #1f3d7a);
    --wd-navy-hover: var(--kuka-navy-800, #152238);
    --wd-navy-deep: var(--kuka-navy-950, #0b1220);
    --wd-brass: var(--kuka-bronze-500, #b78a2e);
    --wd-brass-ink: var(--kuka-bronze-700, #8a6420); /* brass for text on white */
    --wd-brass-soft: var(--kuka-bronze-300, #d1b06b);
    --wd-brass-pale: #e3cd9d;
    --wd-tint: #eef2f8;
    --wd-muted: #4a5568;
    --wd-line: rgba(31, 61, 122, 0.14);
    background-color: var(--tt-color-surface);
    overflow-x: clip;
}

/* ---------- nav / footer ---------- */
body[data-variant="D"] .welcome-nav {
    border-bottom: 2px solid var(--wd-brass);
}

body[data-variant="D"] .welcome-footer {
    border-top: 2px solid var(--wd-brass);
}

/* ---------- buttons ---------- */
body[data-variant="D"] .welcome-c-btn,
body[data-variant="D"] .welcome-nav__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding-inline: var(--tt-space-5);
    border: 1px solid var(--wd-navy);
    border-radius: var(--tt-radius-md);
    background-color: var(--wd-navy);
    color: #ffffff;
    font-weight: var(--tt-font-weight-semibold);
    text-decoration: none;
    transition: background-color 0.15s ease;
}

body[data-variant="D"] .welcome-c-btn:hover,
body[data-variant="D"] .welcome-nav__cta:hover {
    background-color: var(--wd-navy-hover);
    border-color: var(--wd-navy-hover);
    color: #ffffff;
}

body[data-variant="D"] .welcome-c-btn:focus-visible,
body[data-variant="D"] .welcome-nav__cta:focus-visible {
    outline: 3px solid var(--wd-brass);
    outline-offset: 2px;
}

body[data-variant="D"] .welcome-nav__cta {
    min-height: var(--tt-touch-target-min);
    padding-inline: var(--tt-space-4);
    font-size: var(--tt-font-size-sm);
}

/* ---------- hero (mobile first: photo band, card overlapping it) ---------- */
body[data-variant="D"] .welcome-d-hero {
    position: relative;
    isolation: isolate;
    background-color: var(--wd-tint);
}

body[data-variant="D"] .welcome-d-hero__photo {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: 65% 40%;
}

body[data-variant="D"] .welcome-d-hero__inner {
    position: relative;
    max-width: var(--tt-content-max-width);
    margin: -56px auto 0;
    padding: 0 var(--tt-space-4) var(--tt-space-6);
}

body[data-variant="D"] .welcome-d-card {
    position: relative;
    padding: var(--tt-space-5) var(--tt-space-4);
    background-color: #ffffff;
    border-top: 4px solid var(--wd-brass);
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(11, 18, 32, 0.28);
}

body[data-variant="D"] .welcome-d-card .welcome-eyebrow {
    margin-bottom: var(--tt-space-2);
    color: var(--wd-brass-ink);
}

body[data-variant="D"] .welcome-d-hero__headline {
    margin: 0 0 var(--tt-space-3);
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--wd-navy-deep);
}

body[data-variant="D"] .welcome-d-hero__subhead {
    margin: 0 0 var(--tt-space-4);
    line-height: var(--tt-line-height-relaxed);
    color: var(--wd-muted);
}

body[data-variant="D"] #demo-form {
    scroll-margin-top: 5rem;
}

body[data-variant="D"] .welcome-d-card .tt-field {
    margin-bottom: var(--tt-space-3);
}

body[data-variant="D"] .welcome-d-card .form-control {
    min-height: var(--tt-touch-target-min);
}

body[data-variant="D"] .welcome-d-card .form-control:focus {
    border-color: var(--wd-navy);
    box-shadow: 0 0 0 3px rgba(183, 138, 46, 0.35);
}

body[data-variant="D"] .welcome-d-card .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.15rem;
}

body[data-variant="D"] .welcome-d-card .form-check-input:checked {
    background-color: var(--wd-navy);
    border-color: var(--wd-navy);
}

body[data-variant="D"] .welcome-d-card .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(183, 138, 46, 0.35);
}

body[data-variant="D"] .welcome-d-hero__microcopy {
    margin: var(--tt-space-3) 0 0;
    font-size: var(--tt-font-size-sm);
    text-align: center;
    color: var(--wd-muted);
}

@media (min-width: 768px) {
    body[data-variant="D"] .welcome-d-hero__photo {
        height: 320px;
    }

    body[data-variant="D"] .welcome-d-card {
        max-width: 560px;
        padding: var(--tt-space-6);
    }
}

@media (min-width: 992px) {
    body[data-variant="D"] .welcome-d-hero {
        display: flex;
        align-items: center;
        min-height: min(88vh, 760px);
        background-color: var(--wd-navy-deep);
    }

    body[data-variant="D"] .welcome-d-hero__photo {
        position: absolute;
        inset: 0;
        z-index: -2;
        height: 100%;
    }

    body[data-variant="D"] .welcome-d-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background: linear-gradient(90deg, rgba(11, 18, 32, 0.72) 0%, rgba(11, 18, 32, 0.25) 55%, rgba(11, 18, 32, 0) 100%);
    }

    body[data-variant="D"] .welcome-d-hero__inner {
        width: 100%;
        margin: 0 auto;
        padding: var(--tt-space-5) var(--tt-space-4);
    }

    body[data-variant="D"] .welcome-d-card {
        padding: var(--tt-space-6) var(--tt-space-6) var(--tt-space-5);
    }

    /* Name and email side by side so the submit button stays above the fold at 1280x720. */
    body[data-variant="D"] .welcome-d-card form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: var(--tt-space-3);
    }

    body[data-variant="D"] .welcome-d-card form > * {
        grid-column: 1 / -1;
    }

    body[data-variant="D"] .welcome-d-card form > div:nth-of-type(-n + 2) {
        grid-column: auto;
    }
}

/* ---------- proof strip ---------- */
/* Brand navy with two soft glows (brass and blue) drifting slowly, like evening light in a dining room. CSS only; still for reduced motion. */

body[data-variant="D"] .welcome-d-proof {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: var(--tt-space-6) var(--tt-space-4);
    background-color: var(--wd-navy);
    color: #ffffff;
}

body[data-variant="D"] .welcome-d-proof::before,
body[data-variant="D"] .welcome-d-proof::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 60%;
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

body[data-variant="D"] .welcome-d-proof::before {
    top: -60%;
    left: -10%;
    background: radial-gradient(circle, rgba(209, 176, 107, 0.55), transparent 65%);
    animation: welcome-d-glow-a 16s ease-in-out infinite alternate;
}

body[data-variant="D"] .welcome-d-proof::after {
    right: -10%;
    bottom: -70%;
    background: radial-gradient(circle, rgba(120, 160, 230, 0.45), transparent 65%);
    animation: welcome-d-glow-b 20s ease-in-out infinite alternate;
}

@keyframes welcome-d-glow-a {
    to {
        transform: translate(70%, 25%);
    }
}

@keyframes welcome-d-glow-b {
    to {
        transform: translate(-60%, -20%);
    }
}

body[data-variant="D"] .welcome-d-proof__grid {
    display: grid;
    gap: var(--tt-space-5);
    max-width: var(--tt-content-max-width);
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

body[data-variant="D"] .welcome-d-proof__value {
    display: block;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    color: var(--wd-brass-pale);
}

body[data-variant="D"] .welcome-d-proof__label {
    margin: var(--tt-space-1) 0 0;
    font-size: var(--tt-font-size-sm);
    color: rgba(255, 255, 255, 0.88);
}

@media (min-width: 768px) {
    body[data-variant="D"] .welcome-d-proof__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------- sections ---------- */
/* Full-width bands stacked like the login brand panel: each band below the hero rounds its top corners (1rem, the login
   panel's radius) and slides 1rem up over the band before it. Later bands paint on top because they come later in the DOM. */
body[data-variant="D"] .welcome-section,
body[data-variant="D"] .welcome-d-proof,
body[data-variant="D"] .welcome-d-final-cta {
    position: relative;
    margin-top: -1rem;
    border-radius: 1rem 1rem 0 0;
    box-shadow: 0 -6px 16px -6px rgba(11, 18, 32, 0.18);
}

body[data-variant="D"] .welcome-section {
    background-color: var(--tt-color-surface);
    scroll-margin-top: 4.5rem;
}

body[data-variant="D"] .welcome-section--alt {
    background-color: var(--wd-tint);
}

body[data-variant="D"] .welcome-d-heading {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--wd-navy-deep);
}

body[data-variant="D"] .welcome-d-item-title {
    margin: 0 0 var(--tt-space-2);
    font-size: var(--tt-font-size-lg);
    font-weight: var(--tt-font-weight-bold);
    color: var(--wd-navy-deep);
}

body[data-variant="D"] .welcome-d-item-body {
    margin: 0;
    line-height: var(--tt-line-height-relaxed);
    color: var(--wd-muted);
}

/* ---------- outcomes tiles ---------- */
body[data-variant="D"] .welcome-d-tiles {
    display: grid;
    gap: var(--tt-space-4);
    margin: 0;
    padding: 0;
    list-style: none;
}

body[data-variant="D"] .welcome-d-tile {
    padding: var(--tt-space-5);
    background-color: #ffffff;
    border: 1px solid var(--wd-line);
    border-top: 3px solid var(--wd-brass);
    border-radius: var(--tt-radius-lg);
}

body[data-variant="D"] .welcome-d-tile__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: var(--tt-space-3);
    border-radius: var(--tt-radius-md);
    background-color: var(--wd-navy);
    color: var(--wd-brass-soft);
    font-size: 1.25rem;
}

@media (min-width: 768px) {
    body[data-variant="D"] .welcome-d-tiles {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------- before / after ---------- */
body[data-variant="D"] .welcome-d-ba__grid {
    display: grid;
    gap: var(--tt-space-5);
    grid-template-columns: 1fr;
}

body[data-variant="D"] .welcome-d-ba__col {
    padding: var(--tt-space-5);
    border: 1px solid var(--wd-line);
    border-radius: 16px;
}

body[data-variant="D"] .welcome-d-ba__col--without {
    background-color: var(--wd-tint);
}

body[data-variant="D"] .welcome-d-ba__col--without .welcome-d-ba__list {
    color: var(--wd-muted);
}

body[data-variant="D"] .welcome-d-ba__col--without strong {
    font-weight: 800;
    color: var(--wd-navy-deep);
}

body[data-variant="D"] .welcome-d-ba__col--with {
    background-color: var(--wd-navy);
    border-color: var(--wd-navy);
    border-top: 4px solid var(--wd-brass-soft);
}

body[data-variant="D"] .welcome-d-ba__col--with .welcome-d-ba__list {
    color: #ffffff;
    font-weight: 600;
}

body[data-variant="D"] .welcome-d-ba__title {
    margin: 0 0 var(--tt-space-3);
    font-size: var(--tt-font-size-lg);
    font-weight: 800;
    color: var(--wd-navy-deep);
}

body[data-variant="D"] .welcome-d-ba__col--with .welcome-d-ba__title {
    color: var(--wd-brass-pale);
}

body[data-variant="D"] .welcome-d-ba__list {
    display: grid;
    gap: var(--tt-space-2);
    margin: 0;
    padding-left: 1.25rem;
}

@media (min-width: 768px) {
    body[data-variant="D"] .welcome-d-ba__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- benefits ---------- */
body[data-variant="D"] .welcome-d-benefits__grid {
    display: grid;
    gap: var(--tt-space-5);
    grid-template-columns: 1fr;
    margin: 0;
    padding: 0;
    list-style: none;
}

body[data-variant="D"] .welcome-d-benefit {
    display: flex;
    gap: var(--tt-space-3);
    align-items: flex-start;
}

body[data-variant="D"] .welcome-d-benefit__icon {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: var(--wd-navy);
    color: var(--wd-brass-soft);
    font-size: 1.25rem;
}

@media (min-width: 768px) {
    body[data-variant="D"] .welcome-d-benefits__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    body[data-variant="D"] .welcome-d-benefits__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------- how it works: timeline (vertical on phones, horizontal from 768px) ---------- */
/* Real photo (Kate Townsend, Unsplash License; credited in README) under a navy tint, so the middle of the page has warmth. */
body[data-variant="D"] .welcome-d-how {
    background-color: var(--wd-navy);
    background-image:
        linear-gradient(rgba(11, 18, 32, 0.8), rgba(31, 61, 122, 0.84)),
        url("/welcome/d-how-waiter-1200.webp");
    background-position: center 40%;
    background-size: cover;
    color: #ffffff;
}

body[data-variant="D"] .welcome-d-how .welcome-d-heading,
body[data-variant="D"] .welcome-d-how .welcome-d-item-title {
    color: #ffffff;
}

body[data-variant="D"] .welcome-d-how .welcome-d-item-body {
    color: rgba(255, 255, 255, 0.85);
}

@media (min-width: 992px) {
    body[data-variant="D"] .welcome-d-how {
        background-image:
            linear-gradient(rgba(11, 18, 32, 0.8), rgba(31, 61, 122, 0.84)),
            url("/welcome/d-how-waiter.webp");
    }
}

body[data-variant="D"] .welcome-d-steps {
    display: grid;
    gap: var(--tt-space-5);
    margin: 0;
    padding: 0;
    list-style: none;
}

body[data-variant="D"] .welcome-d-step {
    position: relative;
    padding-left: 4rem;
}

body[data-variant="D"] .welcome-d-step__number {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: 2px solid var(--wd-brass-soft);
    border-radius: 50%;
    background-color: var(--wd-brass-soft);
    color: var(--wd-navy-deep);
    font-size: 1.125rem;
    font-weight: 800;
}

body[data-variant="D"] .welcome-d-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 3rem;
    bottom: calc(-1 * var(--tt-space-5));
    left: calc(1.5rem - 1px);
    width: 2px;
    background-color: var(--wd-brass-soft);
}

@media (min-width: 768px) {
    body[data-variant="D"] .welcome-d-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--tt-space-6);
    }

    body[data-variant="D"] .welcome-d-step {
        padding-top: 4.5rem;
        padding-left: 0;
    }

    body[data-variant="D"] .welcome-d-step__number {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.25rem;
    }

    body[data-variant="D"] .welcome-d-step:not(:last-child)::after {
        top: calc(1.75rem - 1px);
        right: calc(-1 * var(--tt-space-6));
        bottom: auto;
        left: 3.5rem;
        width: auto;
        height: 2px;
    }
}

/* ---------- FAQ (native details) ---------- */
body[data-variant="D"] .welcome-d-faq__list {
    display: grid;
    gap: var(--tt-space-3);
    max-width: 48rem;
}

body[data-variant="D"] .welcome-d-faq__item {
    background-color: #ffffff;
    border: 1px solid var(--wd-line);
    border-radius: var(--tt-radius-md);
}

body[data-variant="D"] .welcome-d-faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--tt-space-3);
    min-height: var(--tt-touch-target-min);
    padding: var(--tt-space-3) var(--tt-space-4);
    font-weight: var(--tt-font-weight-semibold);
    color: var(--wd-navy-deep);
    cursor: pointer;
    list-style: none;
}

body[data-variant="D"] .welcome-d-faq__item summary::-webkit-details-marker {
    display: none;
}

body[data-variant="D"] .welcome-d-faq__item summary::after {
    content: "+" / "";
    flex-shrink: 0;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--wd-brass-ink);
}

body[data-variant="D"] .welcome-d-faq__item[open] summary::after {
    content: "\2212" / "";
}

body[data-variant="D"] .welcome-d-faq__item summary:focus-visible {
    outline: 3px solid var(--wd-brass);
    outline-offset: 2px;
    border-radius: var(--tt-radius-md);
}

body[data-variant="D"] .welcome-d-faq__answer {
    margin: 0;
    padding: 0 var(--tt-space-4) var(--tt-space-4);
    line-height: var(--tt-line-height-relaxed);
    color: var(--wd-muted);
}

/* ---------- final band ---------- */
/* Brand navy with faint brass QR-code modules drifting diagonally (CSS only; still for reduced motion). */

body[data-variant="D"] .welcome-d-final-cta {
    padding: var(--tt-space-7) var(--tt-space-4);
    overflow: hidden;
    background-color: var(--wd-navy);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cg fill='%23d1b06b' fill-opacity='.16'%3E%3Cpath d='M8 8h40v40H8zM16 16v24h24V16z' fill-rule='evenodd'/%3E%3Crect x='24' y='24' width='8' height='8'/%3E%3Crect x='64' y='8' width='8' height='8'/%3E%3Crect x='80' y='16' width='8' height='8'/%3E%3Crect x='96' y='8' width='16' height='8'/%3E%3Crect x='128' y='24' width='8' height='8'/%3E%3Crect x='64' y='40' width='8' height='16'/%3E%3Crect x='88' y='48' width='8' height='8'/%3E%3Crect x='112' y='56' width='16' height='8'/%3E%3Crect x='8' y='72' width='8' height='8'/%3E%3Crect x='32' y='80' width='16' height='8'/%3E%3Crect x='72' y='80' width='8' height='8'/%3E%3Crect x='96' y='88' width='8' height='16'/%3E%3Crect x='136' y='80' width='8' height='8'/%3E%3Crect x='16' y='112' width='8' height='8'/%3E%3Crect x='48' y='104' width='8' height='8'/%3E%3Crect x='64' y='120' width='16' height='8'/%3E%3Crect x='112' y='120' width='8' height='8'/%3E%3Crect x='128' y='136' width='16' height='8'/%3E%3Crect x='40' y='144' width='8' height='8'/%3E%3Crect x='88' y='144' width='8' height='8'/%3E%3C/g%3E%3C/svg%3E");
    animation: welcome-d-modules 40s linear infinite;
    text-align: center;
}

@keyframes welcome-d-modules {
    to {
        background-position: 160px 160px;
    }
}

body[data-variant="D"] .welcome-d-final-cta__heading {
    margin: 0 0 var(--tt-space-5);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #ffffff;
}

body[data-variant="D"] .welcome-d-final-cta__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding-inline: var(--tt-space-6);
    border-radius: var(--tt-radius-pill);
    background-color: var(--wd-brass-soft);
    color: var(--wd-navy-deep);
    font-weight: var(--tt-font-weight-bold);
    text-decoration: none;
    transition: background-color 0.15s ease;
}

body[data-variant="D"] .welcome-d-final-cta__button:hover {
    background-color: var(--wd-brass-pale);
    color: var(--wd-navy-deep);
}

body[data-variant="D"] .welcome-d-final-cta__button:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    body[data-variant="D"] .welcome-c-btn,
    body[data-variant="D"] .welcome-nav__cta,
    body[data-variant="D"] .welcome-d-final-cta__button {
        transition: none;
    }

    body[data-variant="D"] .welcome-d-proof::before,
    body[data-variant="D"] .welcome-d-proof::after,
    body[data-variant="D"] .welcome-d-final-cta {
        animation: none;
    }
}
