/* ==============================================================
   WedUploader Public Refinement V2
   Final spacing, typography, accessibility, and ornament layer.
   This file intentionally loads last so the approved public source
   remains traceable while refinements stay easy to remove or reuse.
   ============================================================== */

:root {
    --wu-copy-measure: 66ch;
    --wu-card-gap: clamp(1rem, 1.65vw, 1.5rem);
    --wu-section-space: clamp(5rem, 7vw, 7rem);
    --wu-section-space-tight: clamp(3.75rem, 5vw, 5rem);
}

body[data-page] {
    font-kerning: normal;
    font-optical-sizing: auto;
    text-rendering: optimizeLegibility;
}

body[data-page] :where(h1, h2, h3, .wu-display, .wu-title, .wu-title-sans) {
    text-wrap: balance;
}

body[data-page] :where(p, li, .wu-lead, .wu-body) {
    text-wrap: pretty;
}

body[data-page] .wu-body,
body[data-page] .wu-prose p,
body[data-page] .wu-prose li {
    line-height: 1.78;
}

body[data-page] .wu-section {
    padding-block: var(--wu-section-space);
}

body[data-page] .wu-section--tight {
    padding-block: var(--wu-section-space-tight);
}

body[data-page] .wu-section-head {
    gap: clamp(2rem, 5vw, 4rem);
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

body[data-page] :where(.wu-proof-grid,
    .wu-feature-constellation,
    .wu-latest-feature-grid,
    .wu-content-grid,
    .wu-review-feed,
    .wu-fact-grid,
    .wu-faq-cards,
    .wu-story-chapters,
    .wu-featured-content,
    .wu-featured-content-side) {
    gap: var(--wu-card-gap);
}

body[data-page] :where(.wu-tile,
    .wu-feature,
    .wu-story-card,
    .wu-content-card,
    .wu-review-card,
    .wu-story-chapter,
    .wu-fact,
    .wu-mini-story,
    .wu-faq-card) {
    border-color: color-mix(in srgb, var(--wu-line) 88%, var(--wu-gold-300));
}

body[data-page] :where(.wu-story-card-copy, .wu-content-card-body) {
    padding: clamp(1.25rem, 2vw, 1.625rem);
}

body[data-page] :where(.wu-btn, .wu-chip, button, a):focus-visible,
body[data-page] :where(input, select, textarea, summary):focus-visible {
    outline: 3px solid rgba(193, 154, 91, .28);
    outline-offset: 3px;
}

body[data-page] :where(.wu-btn, .wu-chip, .wu-menu-btn) {
    min-height: 46px;
}

body[data-page] .wu-header {
    box-shadow: 0 1px 0 rgba(33, 31, 27, .04);
}

/* Optional ornament nodes are inserted by ornaments.js. */
body[data-page] .wu-has-public-ornament {
    position: relative;
    isolation: isolate;
    overflow: clip;
}

body[data-page] .wu-has-public-ornament> :not(.wu-public-ornament) {
    position: relative;
    z-index: 1;
}

.wu-public-ornament {
    position: absolute;
    z-index: 0;
    display: block;
    pointer-events: none;
    user-select: none;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: .48;
    filter: saturate(.9);
}

.wu-public-ornament--ribbon {
    top: clamp(-7rem, -7vw, -3rem);
    right: clamp(-7.5rem, -6vw, -2.5rem);
    width: clamp(19rem, 34vw, 34rem);
    aspect-ratio: 4 / 3;
    background-image: url("../ornaments/ornament-ribbon-leaf-top-right.webp");
    background-position: top right;
}

.wu-public-ornament--arches {
    right: clamp(-7.5rem, -6vw, -2rem);
    bottom: clamp(-6rem, -5vw, -2.25rem);
    width: clamp(19rem, 36vw, 36rem);
    aspect-ratio: 4 / 3;
    background-image: url("../ornaments/ornament-arches-bottom-right.webp");
    background-position: bottom right;
}

body[data-page] .wu-ornament-clear-zone {
    padding-right: clamp(0rem, 6vw, 4rem);
}

@media (max-width: 991.98px) {
    body[data-page] .wu-navbar {
        gap: 1rem;
    }

    body[data-page] .wu-section {
        padding-block: clamp(4.5rem, 9vw, 5.75rem);
    }

    .wu-public-ornament {
        opacity: .36;
    }
}

@media (max-width: 767.98px) {
    :root {
        --wu-card-gap: .875rem;
    }

    body[data-page] .wu-section,
    body[data-page] .wu-section--tight {
        padding-block: clamp(3.75rem, 14vw, 4.75rem);
    }

    body[data-page] .wu-display {
        font-size: clamp(3rem, 14vw, 4.125rem);
        line-height: .96;
    }

    body[data-page] :where(.wu-soft-panel, .wu-dark-panel, .wu-form-card, .wu-contact-card) {
        padding: 16px;
        border-radius: var(--wu-radius-md);
    }

    .wu-public-ornament {
        width: min(17rem, 72vw);
        opacity: .24;
    }

    .wu-public-ornament--ribbon {
        top: -2.25rem;
        right: -5.75rem;
    }

    .wu-public-ornament--arches {
        right: -5.5rem;
        bottom: -3.5rem;
    }
}

@media (prefers-contrast: more) {
    .wu-public-ornament {
        opacity: .18;
    }
}

@media print {
    .wu-public-ornament {
        display: none;
    }
}


.wu-page-hero.wu-about-first:before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 700px;
    aspect-ratio: 4 / 3;
    background: url(../ornaments/ornament-4.webp) left top / contain no-repeat;
    transform: scaleX(1);
    opacity: .5;
    pointer-events: none;
}

@media (max-width: 575.98px) {
    .wu-page-hero.wu-about-first:before {
        width: 400px;
        opacity: .5;
    }
}

.wu-friendly {
    background: var(--wu-gold-50);
}

.wu-friendly-head {
    grid-column: 1 / -1;
    grid-row: 1;
    max-width: 1180px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 48px;
}

.wu-friendly-head .wu-eyebrow {
    justify-content: center;
    margin-bottom: 18px;
}

.wu-friendly-head .wu-title {
    max-width: 1180px;
    margin: 0 auto;
    color: #2c2925;
    font-weight: 400;
    line-height: 1.08;
    text-wrap: balance;
}

.wu-friendly-head .wu-title em {
    font-weight: 400;
}

.wu-friendly-head .wu-title strong {
    font-weight: 700;
}

.wu-friendly-head .wu-lead {
    margin: 24px auto 0;
    color: #787168;
    text-wrap: balance;
}

.wu-friendly-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2.2vw, 28px);
    align-items: stretch;
}

.wu-friendly-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    min-height: 330px;
    padding: clamp(24px, 2.4vw, 36px);
    border: 1px solid rgba(93, 74, 48, .1);
    border-radius: 17px;
}

.wu-friendly-step {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

.wu-friendly-card h3 {
    max-width: 360px;
    margin: 0;
    font-family: var(--wu-font-sans);
    font-size: clamp(22px, 2vw, 29px);
    font-weight: 600;
    letter-spacing: -.025em;
    line-height: 1.2;
}

.wu-friendly-card p {
    margin: 34px 0 0;
    font-size: clamp(14px, 1.15vw, 17px);
    line-height: 1.55;
}

/* 01 — Share */
.wu-friendly-card--share {
    background: #f5ecdc;
    color: #192838;
}

.wu-friendly-card--share .wu-friendly-step {
    color: #927150;
}

.wu-friendly-card--share p {
    color: #665f57;
}

.wu-friendly-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 24px;
}

.wu-friendly-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    padding: 4px 14px;
    border: 1px solid #decbb0;
    border-radius: 999px;
    background: #ecd9ba;
    color: #624321;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
}

/* 02 — Upload */
.wu-friendly-card--upload {
    background: #c19b5f;
    color: #fff;
}

.wu-friendly-card--upload .wu-friendly-step {
    color: #f2dfbf;
}

.wu-friendly-card--upload p {
    color: rgba(255, 255, 255, .93);
}

.wu-friendly-demo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    gap: 12px;
    min-height: 46px;
    margin-top: 30px;
    padding: 9px 20px;
    border-radius: 999px;
    background: #f7efe2;
    color: #a47c43;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease;
}

.wu-friendly-demo:hover {
    background: #fff;
    color: #80613a;
    transform: translateY(-2px);
}

/* 03 — Keep */
.wu-friendly-card--keep {
    background: #80613a;
    color: #fff;
}

.wu-friendly-card--keep .wu-friendly-step {
    color: #ebd9bf;
}

.wu-friendly-card--keep p {
    color: rgba(255, 255, 255, .93);
}

.wu-friendly-more {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 12px;
    max-width: 100%;
    margin-top: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d9bd91;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease;
}

.wu-friendly-more:hover {
    border-color: #fff;
    color: #fff;
}

.wu-friendly-demo:focus-visible,
.wu-friendly-more:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

/* Tablet: Figma tetap memakai tiga card, dengan proporsi lebih tinggi. */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .wu-friendly-grid {
        gap: 16px;
    }

    .wu-friendly-card {
        min-height: 420px;
        padding: 25px;
    }

    .wu-friendly-card h3 {
        font-size: clamp(21px, 2.4vw, 27px);
    }

    .wu-friendly-card p {
        font-size: 15px;
    }

    .wu-friendly-badges span {
        font-size: 13px;
    }
}

/* Mobile: urutan Share → Upload → Keep seperti frame Figma. */
@media (max-width: 767.98px) {
    .wu-friendly-head {
        margin-bottom: 36px;
    }

    .wu-friendly-break {
        display: none;
    }

    .wu-friendly-head .wu-title {
        font-size: clamp(38px, 9vw, 52px);
        line-height: 1.12;
    }

    .wu-friendly-head .wu-lead {
        margin-top: 20px;
        font-size: 16px;
        line-height: 1.55;
    }

    .wu-friendly-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .wu-friendly-card {
        min-height: 0;
        padding: 26px 24px;
        border-radius: 17px;
    }

    .wu-friendly-card h3 {
        max-width: none;
        font-size: clamp(22px, 5.8vw, 28px);
    }

    .wu-friendly-card p {
        margin-top: 26px;
        font-size: 16px;
        line-height: 1.5;
    }

    .wu-friendly-badges,
    .wu-friendly-demo,
    .wu-friendly-more {
        margin-top: 28px;
    }
}

@media (max-width: 390px) {
    .wu-friendly-card {
        padding: 24px 20px;
    }

    .wu-friendly-badges span {
        font-size: 12px;
        padding-inline: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .wu-friendly-demo,
    .wu-friendly-more {
        transition: none;
    }
}