/* ============================================================
   Fosters Electrics, Demo chooser
   Private demo presentation page. Designed to feel as polished
   as the three demo sites it leads into.
   ============================================================ */

:root {
    --d-ink: #11141B;
    --d-graphite: #0B1018;
    --d-charcoal: #20242E;
    --d-paper: #FFFFFF;
    --d-cream: #F4EFE5;
    --d-cream-soft: #FAF6EC;
    --d-cream-warm: #EFE7D4;
    --d-gold: #B0844A;
    --d-gold-bright: #D8AC68;
    --d-gold-deep: #8C6738;
    --d-body: #4A535F;
    --d-muted: #818995;
    --d-line: rgba(17,20,27,0.08);
    --d-line-strong: rgba(17,20,27,0.14);
    --d-line-dark: rgba(255,255,255,0.12);
    --d-radius-sm: 8px;
    --d-radius: 14px;
    --d-radius-lg: 22px;
    --d-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--d-ink);
    background: var(--d-cream);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "ss01", "cv11";
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--d-gold); outline-offset: 3px; border-radius: 4px; }

.d-container {
    max-width: 1240px;
    margin: 0 auto;
    padding-left: 44px;
    padding-right: 44px;
}
@media (max-width: 960px) { .d-container { padding-left: 32px; padding-right: 32px; } }
@media (max-width: 600px) { .d-container { padding-left: 20px; padding-right: 20px; } }

.d-eyebrow {
    display: inline-block;
    color: var(--d-gold);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.d-eyebrow--light { color: var(--d-gold-bright); }

/* ============================================================
   Topbar, glass, sticky
   ============================================================ */
.d-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(244,239,229,0.86);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--d-line);
}
.d-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 14px;
    padding-bottom: 14px;
}
.d-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--d-ink);
}
.d-brand__logo {
    height: 42px;
    width: auto;
    flex: 0 0 auto;
}
.d-brand__text {
    font-weight: 700;
    letter-spacing: -0.012em;
    font-size: 1.02rem;
    line-height: 1.15;
}
.d-brand__text small {
    display: block;
    font-weight: 500;
    color: var(--d-muted);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 4px;
}
.d-pill {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: var(--d-ink);
    color: var(--d-cream);
    padding: 8px 14px;
    border-radius: 999px;
    white-space: nowrap;
}
@media (max-width: 600px) {
    .d-brand__text small { display: none; }
    .d-brand__text { font-size: 0.95rem; }
    .d-brand__logo { height: 36px; }
    .d-pill { padding: 7px 10px; font-size: 0.6rem; letter-spacing: 0.16em; }
}

/* ============================================================
   Hero, dark cinematic
   ============================================================ */
.d-hero {
    background: var(--d-graphite);
    color: #FFFFFF;
    padding: 104px 0 92px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.d-hero::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(1100px 600px at 82% -10%, rgba(216,172,104,0.20), transparent 60%),
        radial-gradient(900px 600px at -5% 110%, rgba(176,132,74,0.10), transparent 60%),
        linear-gradient(180deg, rgba(255,255,255,0.02), transparent 25%);
    z-index: -1;
}
.d-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(216,172,104,0.32), transparent);
    z-index: -1;
}
@media (max-width: 720px) { .d-hero { padding: 64px 0 60px; } }
.d-hero__title {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: clamp(2.3rem, 5.4vw, 3.8rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 400;
    margin: 0 0 22px;
    max-width: 20ch;
    color: #FFFFFF;
}
.d-hero__title em {
    color: var(--d-gold-bright);
    font-style: italic;
    font-weight: 500;
}
.d-hero__sub {
    font-size: clamp(1.05rem, 1.7vw, 1.22rem);
    line-height: 1.6;
    color: rgba(255,255,255,0.84);
    margin: 0 0 14px;
    max-width: 58ch;
}
.d-hero__helper {
    font-size: 0.96rem;
    color: rgba(255,255,255,0.62);
    margin: 0;
    max-width: 58ch;
}
.d-hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 36px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
}
.d-hero__tag-mark {
    color: var(--d-gold-bright);
    font-weight: 700;
}
.d-hero__tag-sep {
    width: 18px;
    height: 1px;
    background: rgba(255,255,255,0.22);
    display: inline-block;
}

/* ============================================================
   Section head
   ============================================================ */
.d-section__head {
    margin-bottom: 44px;
}
.d-section__head h2 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: clamp(1.85rem, 3.6vw, 2.4rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 400;
    margin: 0 0 12px;
}
.d-section__head p {
    color: var(--d-body);
    font-size: 1rem;
    margin: 0;
    max-width: 56ch;
    line-height: 1.65;
}

/* ============================================================
   Previews, screenshot-first cards
   ============================================================ */
.d-previews {
    padding: 88px 0 80px;
}
@media (max-width: 720px) { .d-previews { padding: 56px 0 52px; } }

.d-preview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}
@media (min-width: 880px) {
    .d-preview-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

.d-preview {
    display: flex;
    flex-direction: column;
    background: var(--d-paper);
    border-radius: var(--d-radius-lg);
    border: 1px solid var(--d-line);
    box-shadow:
        0 1px 2px rgba(17,20,27,0.04),
        0 24px 60px -36px rgba(17,20,27,0.22);
    overflow: hidden;
    color: inherit;
    transition:
        transform 0.35s var(--d-ease),
        box-shadow 0.35s var(--d-ease),
        border-color 0.35s var(--d-ease);
}
.d-preview:hover, .d-preview:focus-visible {
    transform: translateY(-4px);
    box-shadow:
        0 1px 2px rgba(17,20,27,0.04),
        0 40px 76px -32px rgba(17,20,27,0.30);
    border-color: var(--d-gold);
    outline: none;
}

.d-preview__shot {
    aspect-ratio: 16 / 9;
    background: var(--d-cream-warm);
    overflow: hidden;
    position: relative;
}
.d-preview__shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s var(--d-ease);
}
.d-preview:hover .d-preview__shot img { transform: scale(1.025); }
.d-preview__shot::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(11,16,24,0.16) 100%);
    pointer-events: none;
}

.d-preview__body {
    padding: 24px 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}
.d-preview__label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--d-gold);
}
.d-preview h3 {
    margin: 0;
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.32rem;
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.22;
    color: var(--d-ink);
}
.d-preview__angle {
    margin: 0;
    color: var(--d-body);
    font-size: 0.96rem;
    line-height: 1.55;
}
.d-preview__meta {
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px solid var(--d-line);
    font-size: 0.92rem;
    color: var(--d-body);
    line-height: 1.5;
}
.d-preview__meta strong {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--d-ink);
    margin-bottom: 4px;
}
.d-preview__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--d-ink);
    color: #FFFFFF;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    width: max-content;
    margin-top: 10px;
    transition:
        background 0.25s var(--d-ease),
        transform 0.25s var(--d-ease);
}
.d-preview__btn::after {
    content: "→";
    font-weight: 400;
    transition: transform 0.25s var(--d-ease);
}
.d-preview:hover .d-preview__btn { background: var(--d-gold); }
.d-preview:hover .d-preview__btn::after { transform: translateX(3px); }

/* ============================================================
   Recommendation, editorial card
   ============================================================ */
.d-rec { padding: 12px 0 80px; }
@media (max-width: 720px) { .d-rec { padding: 8px 0 56px; } }
.d-rec__card {
    background: var(--d-cream-soft);
    border: 1px solid var(--d-line);
    border-left: 4px solid var(--d-gold);
    border-radius: var(--d-radius);
    padding: 40px 44px 36px;
    box-shadow: 0 1px 2px rgba(17,20,27,0.04);
}
@media (max-width: 720px) { .d-rec__card { padding: 28px 24px 24px; } }
.d-rec h2 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: clamp(1.65rem, 3.4vw, 2.05rem);
    line-height: 1.15;
    letter-spacing: -0.015em;
    font-weight: 400;
    margin: 0 0 16px;
    color: var(--d-ink);
}
.d-rec__lead {
    margin: 0 0 24px;
    font-size: 1.04rem;
    line-height: 1.65;
    color: var(--d-ink);
    max-width: 68ch;
}
.d-rec__list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--d-line);
}
.d-rec__list li {
    padding: 14px 0;
    border-bottom: 1px solid var(--d-line);
    font-size: 0.98rem;
    color: var(--d-body);
    line-height: 1.6;
}
.d-rec__list li:last-child { border-bottom: none; }
.d-rec__list strong { color: var(--d-ink); font-weight: 700; }

/* ============================================================
   Proof strip, compact band
   ============================================================ */
.d-proof {
    background: var(--d-cream-warm);
    border-top: 1px solid var(--d-line);
    border-bottom: 1px solid var(--d-line);
    padding: 28px 0;
}
.d-proof__inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 28px;
}
.d-proof__label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--d-gold-deep);
    flex: 0 0 auto;
}
.d-proof__row {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.d-proof__row li {
    background: var(--d-paper);
    border: 1px solid var(--d-line);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.86rem;
    color: var(--d-ink);
    font-weight: 500;
    white-space: nowrap;
}
@media (max-width: 600px) {
    .d-proof__row li { font-size: 0.82rem; padding: 7px 12px; }
}

/* ============================================================
   Footer
   ============================================================ */
.d-footer {
    padding: 36px 0 56px;
    color: var(--d-muted);
    font-size: 0.88rem;
    text-align: center;
    line-height: 1.6;
}
