/* ==========================================================
   DigyFix — Custom PC
   Zelfde kleuren en lettertype als de homepage en Website op maat.
   Het 3D-model staat in js/pages/custom-pc/custom-pc-scene.js.
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,400..800&display=swap');

.pc-page {
    --pc-text: #edf1f7;
    --pc-text-muted: #c5cedc;
    --pc-ink: #0f1b2d;
    --pc-muted: #475569;
    --pc-line: #d9e0ec;
    --pc-blue: #1f4fa8;
    --pc-blue-deep: #143572;
    --pc-blue-light: #8eb8ff;
    --pc-tag: #f3c332;
    --pc-tag-hover: #ffd75a;
    --pc-glass: #ffffffd9;
    --pc-glow: 0 1px 2px #0000000f, 0 18px 50px -12px #0000002e;
    --pc-ease: cubic-bezier(0.22, 1, 0.36, 1);

    padding-bottom: 96px;
    color: var(--pc-text);
    font-family: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.pc-page *,
.pc-page *::before,
.pc-page *::after {
    box-sizing: border-box;
}

.pc-page a:focus-visible,
.pc-page button:focus-visible {
    outline: 3px solid var(--pc-tag);
    outline-offset: 4px;
}

/* ----------------------------------------------------------
   Knoppen en gedeelde koppen
   ---------------------------------------------------------- */

.pc-page .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 24px;
    border: 0;
    border-radius: 10px;
    background: var(--pc-tag);
    color: var(--pc-ink);
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1.4;
    text-decoration: none;
    box-shadow: 0 10px 24px -12px #f3c332b3;
    transition: background 160ms ease;
}

.pc-page .button:hover {
    background: var(--pc-tag-hover);
}

.pc-section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    color: var(--pc-tag);
    font-size: 0.85rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    line-height: 1.5;
}

.pc-section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.pc-page h2 {
    margin: 0;
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
    font-weight: 700;
    font-stretch: 115%;
    letter-spacing: -0.03em;
    line-height: 1.1;
    text-wrap: balance;
}

/* ----------------------------------------------------------
   Blok 1: introductie met 3D-model
   ---------------------------------------------------------- */

.pc-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 4vw, 48px);
    min-height: min(720px, calc(100vh - 80px));
    padding: 88px 0 72px;
}

.pc-hero-copy {
    min-width: 0;
}

.pc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 24px;
    padding: 6px 14px 6px 10px;
    border: 1px solid var(--pc-line);
    border-radius: 999px;
    background: var(--pc-glass);
    color: var(--pc-blue);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
}

.pc-eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pc-tag);
    box-shadow: 0 0 0 4px #f3c33233;
}

.pc-hero h1 {
    max-width: 14ch;
    margin: 0;
    font-size: clamp(2.5rem, 4.6vw, 3.5rem);
    font-weight: 700;
    font-stretch: 118%;
    letter-spacing: -0.035em;
    line-height: 1.02;
    text-wrap: balance;
}

.pc-hero-text {
    max-width: 46ch;
    margin: 28px 0 0;
    color: var(--pc-text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.pc-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    margin-top: 36px;
}

.pc-hero-facts {
    display: grid;
    gap: 10px;
    margin: 40px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid var(--site-border);
    list-style: none;
}

.pc-hero-facts li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--pc-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Klein vinkje in de huisstijl. */
.pc-hero-facts li::before {
    content: '';
    flex: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1b2d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat,
        var(--pc-tag);
}

/* Het vlak met het 3D-model. */
.pc-hero-visual {
    position: relative;
    /* Bovenkant gelijk met de kop links, in plaats van verticaal gecentreerd. */
    align-self: start;
    min-width: 0;
    margin: 0;
    aspect-ratio: 1 / 1.08;
    overflow: hidden;
    border: 1px solid var(--site-border);
    border-radius: 20px;
    background:
        radial-gradient(circle at 50% 42%, #1f4fa833 0, transparent 62%),
        linear-gradient(to right, #ffffff08 1px, transparent 1px) 0 0 / 28px 28px,
        linear-gradient(to bottom, #ffffff08 1px, transparent 1px) 0 0 / 28px 28px,
        var(--site-surface);
    box-shadow: 0 2px 4px #00000014, 0 30px 70px -24px #00000080;
}

.pc-scene {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.pc-scene[hidden] {
    display: none;
}

/* Labels bij de onderdelen, geplaatst door het script. */
.pc-scene-labels {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.pc-scene-label {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px 5px 8px;
    border: 1px solid #ffffff1f;
    border-radius: 999px;
    background: #1c1f26d9;
    color: var(--pc-text);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    opacity: 0;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    will-change: transform, opacity;
}

.pc-scene-label::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pc-blue-light);
}

.pc-scene-label.is-accent::before {
    background: var(--pc-tag);
}

.pc-scene-bar {
    position: absolute;
    right: 16px;
    bottom: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pc-scene-toggle {
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid var(--site-border);
    border-radius: 999px;
    background: var(--site-surface-soft);
    color: var(--pc-text);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.pc-scene-toggle:hover,
.pc-scene-toggle[aria-pressed='true'] {
    border-color: var(--pc-tag);
    background: var(--pc-tag);
    color: var(--pc-ink);
}

/* Geen WebGL: het model valt weg en de tekst krijgt de volle breedte. */
.pc-hero-visual[hidden] {
    display: none;
}

.pc-hero:has(.pc-hero-visual[hidden]) {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
}

/* ----------------------------------------------------------
   Blok 2: toepassingen
   ---------------------------------------------------------- */

.pc-uses {
    margin-top: 120px;
}

.pc-uses > h2 {
    max-width: 22ch;
}

.pc-uses-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 40px;
}

.pc-use {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    border: 1px solid var(--pc-line);
    border-radius: 16px;
    background: var(--pc-glass);
    box-shadow: var(--pc-glow);
    color: var(--pc-ink);
}

/* Gele lijn bovenaan, net als op Website op maat. */
.pc-use::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 24px;
    width: 40px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--pc-tag);
}

.pc-use-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: #1f4fa814;
    color: var(--pc-blue);
}

.pc-use-icon svg {
    width: 24px;
    height: 24px;
}

.pc-use h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    font-weight: 700;
    font-stretch: 112%;
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.pc-use > p {
    margin: 0;
    color: var(--pc-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.pc-use ul {
    display: grid;
    gap: 10px;
    margin: 20px 0 0;
    padding: 20px 0 0;
    border-top: 1px solid #1f4fa81f;
    list-style: none;
}

.pc-use li {
    position: relative;
    padding-left: 20px;
    color: var(--pc-ink);
    font-size: 0.9rem;
    line-height: 1.55;
}

.pc-use li::before {
    content: '';
    position: absolute;
    top: 0.55em;
    left: 2px;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--pc-blue);
}

/* ----------------------------------------------------------
   Blok 3: merken
   ---------------------------------------------------------- */

.pc-brands {
    margin-top: 120px;
}

.pc-brands-intro > h2 {
    max-width: 22ch;
}

.pc-brands-intro > p:not(.pc-section-label) {
    max-width: 58ch;
    margin: 20px 0 0;
    color: var(--pc-text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.pc-brand-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 40px;
}

.pc-brand-group {
    padding: 24px;
    border: 1px solid var(--site-border);
    border-radius: 16px;
    background: var(--site-surface);
}

.pc-brand-group h3 {
    margin: 0 0 18px;
    color: var(--site-muted);
    font-size: 0.8rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    line-height: 1.4;
    text-transform: uppercase;
}

.pc-brand-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pc-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 108px;
    padding: 16px 10px 12px;
    border: 1px solid var(--site-border);
    border-radius: 12px;
    background: var(--site-surface-soft);
    transition: border-color 180ms ease, background 180ms ease;
}

.pc-brand:hover {
    border-color: #f3c33273;
    background: #2f3846;
}

/* De logo's zijn zwart; met invert worden ze wit, zodat ze bij de donkere pagina passen. */
.pc-brand-logo {
    display: block;
    width: auto;
    max-width: 88px;
    height: 30px;
    object-fit: contain;
    filter: invert(1);
    opacity: 0.72;
    transition: opacity 180ms ease;
}

.pc-brand-wordmark {
    display: flex;
    align-items: center;
    height: 30px;
    color: #fff;
    font-size: 1.02rem;
    font-weight: 800;
    font-stretch: 112%;
    letter-spacing: -0.02em;
    line-height: 1;
    white-space: nowrap;
    opacity: 0.72;
    transition: opacity 180ms ease;
}

.pc-brand:hover .pc-brand-logo,
.pc-brand:hover .pc-brand-wordmark {
    opacity: 1;
}

.pc-brand-name {
    color: var(--site-muted);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
}

/* Naam alleen voor schermlezers, als het logo de naam al laat zien. */
.pc-brand-name.is-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.pc-brands-note {
    margin: 16px 0 0;
    color: var(--site-muted);
    font-size: 0.8rem;
    line-height: 1.6;
}

/* ----------------------------------------------------------
   Blok 2b: samenstellen met software
   Kop en uitleg naast elkaar, daaronder vier controles op een lijn.
   ---------------------------------------------------------- */

.pc-check {
    margin-top: 120px;
    padding: 48px;
    border: 1px solid var(--site-border);
    border-radius: 20px;
    background:
        radial-gradient(120% 140% at 100% 0%, #1f4fa82e 0%, transparent 55%),
        var(--site-surface);
}

.pc-check-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: end;
    gap: 24px clamp(32px, 6vw, 72px);
}

.pc-check-intro h2 {
    max-width: 18ch;
}

.pc-check-intro > p {
    max-width: 52ch;
    margin: 0;
    color: var(--pc-text-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.pc-check-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
    margin: 48px 0 0;
    padding: 0;
    list-style: none;
}

/* De lijn die de vier controles verbindt, door het midden van de iconen */
.pc-check-steps::before {
    content: '';
    position: absolute;
    top: 23px;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, var(--pc-tag), #f3c33240 50%, var(--site-border));
}

.pc-check-step {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pc-check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border: 1px solid var(--site-border);
    border-radius: 12px;
    background: var(--site-surface-soft);
    color: var(--pc-tag);
}

.pc-check-icon svg {
    width: 22px;
    height: 22px;
}

.pc-check-step h3 {
    margin: 0 0 8px;
    color: var(--pc-text);
    font-size: 1.1rem;
    font-weight: 700;
    font-stretch: 110%;
    line-height: 1.3;
}

.pc-check-step p {
    margin: 0;
    color: var(--pc-text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
}

@media (max-width: 1000px) {
    .pc-check-intro {
        grid-template-columns: minmax(0, 1fr);
    }

    .pc-check-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px 28px;
    }

    .pc-check-steps::before {
        display: none;
    }
}

@media (max-width: 640px) {
    .pc-check {
        margin-top: 80px;
        padding: 32px 24px;
    }

    .pc-check-steps {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        margin-top: 36px;
    }
}

/* ----------------------------------------------------------
   Blok 4: waar je op kunt rekenen
   ---------------------------------------------------------- */

.pc-principles {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(32px, 6vw, 72px);
    margin-top: 120px;
    padding: 48px;
    border: 1px solid var(--site-border);
    border-radius: 20px;
    background: var(--site-surface);
}

.pc-principles-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 28px;
    margin: 0;
}

.pc-principle {
    padding-top: 18px;
    border-top: 1px solid var(--site-border);
}

.pc-principle dt {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
    color: var(--pc-text);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
}

.pc-principle dt::before {
    content: '';
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pc-tag);
}

.pc-principle dd {
    margin: 0;
    color: var(--pc-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ----------------------------------------------------------
   Blok 5: wat we van je nodig hebben
   ---------------------------------------------------------- */

.pc-brief {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 6vw, 72px);
    margin-top: 120px;
}

.pc-brief-copy > p:not(.pc-section-label) {
    max-width: 44ch;
    margin: 20px 0 0;
    color: var(--pc-text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.pc-brief-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: pc-brief;
}

.pc-brief-list li {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 4px 16px;
    padding: 20px 24px;
    border: 1px solid var(--pc-line);
    border-radius: 14px;
    background: var(--pc-glass);
    color: var(--pc-ink);
    counter-increment: pc-brief;
}

.pc-brief-list li::before {
    content: counter(pc-brief);
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f3c33240;
    color: var(--pc-ink);
    font-weight: 700;
}

.pc-brief-list strong {
    font-size: 1.02rem;
    line-height: 1.4;
}

.pc-brief-list span {
    color: var(--pc-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ----------------------------------------------------------
   Blok 6: afsluiting
   ---------------------------------------------------------- */

.pc-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px 48px;
    margin-top: 120px;
    padding: 56px 64px;
    border-radius: 20px;
    background:
        linear-gradient(to right, #ffffff0f 1px, transparent 1px) 0 0 / 24px 24px,
        linear-gradient(to bottom, #ffffff0f 1px, transparent 1px) 0 0 / 24px 24px,
        var(--pc-blue-deep);
    box-shadow: 0 2px 4px #00000014, 0 30px 70px -18px #00000059;
}

/* Foto achter het blok: rechts zichtbaar, links blauw zodat de tekst leesbaar blijft. */
.pc-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.pc-cta-image {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% center;
}

.pc-cta::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(to right, #ffffff0f 1px, transparent 1px) 0 0 / 24px 24px,
        linear-gradient(to bottom, #ffffff0f 1px, transparent 1px) 0 0 / 24px 24px,
        linear-gradient(90deg, var(--pc-blue-deep) 0%, var(--pc-blue-deep) 38%, color-mix(in srgb, var(--pc-blue-deep) 70%, transparent) 65%, color-mix(in srgb, var(--pc-blue-deep) 25%, transparent) 100%);
}

.pc-cta-copy,
.pc-cta-actions {
    position: relative;
}

.pc-cta h2 {
    color: #fff;
}

.pc-cta-copy p {
    max-width: 50ch;
    margin: 16px 0 0;
    color: #d5e1f7;
    font-size: 1.05rem;
    line-height: 1.7;
}

.pc-cta-actions {
    display: grid;
    justify-items: center;
    gap: 8px;
}

.pc-cta-actions .button {
    width: 100%;
    white-space: nowrap;
}

/* ----------------------------------------------------------
   Verschijnen bij scrollen (alleen als JavaScript draait)
   ---------------------------------------------------------- */

.pc-page.is-enhanced [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 700ms var(--pc-ease), transform 700ms var(--pc-ease);
    transition-delay: var(--pc-delay, 0ms);
}

.pc-page.is-enhanced [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */

@media (max-width: 900px) {
    .pc-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
        min-height: 0;
        padding: 64px 0 40px;
    }

    .pc-hero-visual {
        width: 100%;
        max-width: 560px;
        justify-self: center;
    }

    .pc-principles,
    .pc-brief {
        grid-template-columns: minmax(0, 1fr);
    }

    .pc-uses-grid,
    .pc-brand-groups {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .pc-page {
        padding-bottom: 64px;
    }

    .pc-hero {
        padding-top: 48px;
    }

    .pc-hero-text {
        font-size: 1.02rem;
    }

    .pc-hero-actions .button {
        width: 100%;
    }

    .pc-hero-visual {
        aspect-ratio: 1 / 1.15;
    }

    /* Op kleine schermen zouden de labels het model overlappen. */
    .pc-scene-labels {
        display: none;
    }

    .pc-uses,
    .pc-brands,
    .pc-principles,
    .pc-brief,
    .pc-cta {
        margin-top: 80px;
    }

    .pc-principles {
        padding: 32px 24px;
    }

    .pc-principles-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .pc-brief-list li {
        padding: 18px;
    }

    .pc-cta {
        grid-template-columns: minmax(0, 1fr);
        padding: 36px 24px 28px;
    }

    /* Tekst loopt hier over de hele breedte: foto overal donkerder maken. */
    .pc-cta::before {
        background: linear-gradient(0deg, var(--pc-blue-deep) 0%, color-mix(in srgb, var(--pc-blue-deep) 88%, transparent) 60%, color-mix(in srgb, var(--pc-blue-deep) 60%, transparent) 100%);
    }

    .pc-cta-actions .button {
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pc-page *,
    .pc-page.is-enhanced [data-reveal] {
        transition: none !important;
    }

    .pc-page.is-enhanced [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
