/* WC Digital Download Evidence — Frontend Styles
   Plain-CSS translation of the Australian Recipe Hub landing system. */

.wc-dde-download-area {
    --wc-dde-radius: 0.875rem;
    --wc-dde-background: oklch(0.985 0.012 85);
    --wc-dde-foreground: oklch(0.24 0.02 80);
    --wc-dde-card: oklch(1 0 0);
    --wc-dde-primary: oklch(0.7673 0.1669 146.5);
    --wc-dde-primary-foreground: oklch(0.985 0.012 85);
    --wc-dde-secondary: oklch(0.94 0.02 85);
    --wc-dde-secondary-foreground: oklch(0.3 0.03 80);
    --wc-dde-muted: oklch(0.95 0.015 85);
    --wc-dde-muted-foreground: oklch(0.5 0.02 80);
    --wc-dde-accent: oklch(0.65 0.13 45);
    --wc-dde-border: oklch(0.9 0.015 85);
    --wc-dde-shadow-soft: 0 10px 40px -10px color-mix(in oklab, var(--wc-dde-primary) 15%, transparent);
    --wc-dde-shadow-card: 0 4px 20px -8px oklch(0 0 0 / 0.08);

    margin: 0;
    padding: 0;
    overflow: hidden;
    background: var(--wc-dde-background);
    color: var(--wc-dde-foreground);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.wc-dde-download-area *,
.wc-dde-download-area *::before,
.wc-dde-download-area *::after {
    box-sizing: border-box;
}

.wc-dde-trust-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-bottom: 1px solid var(--wc-dde-border);
    background: color-mix(in oklab, var(--wc-dde-card) 60%, transparent);
    color: var(--wc-dde-muted-foreground);
    font-size: clamp(0.75rem, 1.6vw, 0.9rem);
    line-height: 1.4;
    text-align: center;
}

.wc-dde-trust-bar__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    color: var(--wc-dde-primary);
    font-size: 1rem;
    font-weight: 800;
}

.wc-dde-hero-card {
    position: relative;
    padding: 2.5rem 1.25rem 3rem;
}

.wc-dde-hero-card__glow {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(ellipse at top, oklch(0.95 0.04 140) 0%, transparent 60%);
    pointer-events: none;
}

.wc-dde-hero-card__content {
    position: relative;
    z-index: 1;
    display: grid;
    max-width: 72rem;
    margin: 0 auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.wc-dde-hero-card__copy {
    text-align: center;
}

.wc-dde-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    border-radius: 999px;
    background: var(--wc-dde-secondary);
    padding: 0.25rem 0.75rem;
    color: var(--wc-dde-secondary-foreground);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
}

.wc-dde-hero-card h2,
.wc-dde-section-heading h3,
.wc-dde-files-box h3,
.wc-dde-consent-box h3 {
    margin: 0;
    color: var(--wc-dde-foreground);
    font-family: Fraunces, Georgia, serif;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.wc-dde-hero-card h2 {
    margin-top: 1rem;
    font-size: clamp(2.5rem, 10vw, 4.5rem);
    line-height: 1.05;
}

.wc-dde-header__subtitle {
    max-width: 42rem;
    margin: 1.25rem auto 0;
    color: var(--wc-dde-muted-foreground);
    font-size: clamp(1.125rem, 2.2vw, 1.25rem);
    line-height: 1.625;
}

.wc-dde-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    color: var(--wc-dde-muted-foreground);
    font-size: 0.875rem;
}

.wc-dde-benefits span {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.wc-dde-order-info {
    margin: 1.75rem 0 0;
    color: var(--wc-dde-muted-foreground);
    font-size: 0.875rem;
    font-weight: 600;
}

.wc-dde-hero-card__panel {
    position: relative;
}

.wc-dde-hero-image-wrap {
    position: relative;
    max-width: 28rem;
    margin: 0 auto;
}

.wc-dde-hero-image-wrap::before {
    content: "";
    position: absolute;
    inset: -1.5rem;
    z-index: -1;
    border-radius: 3rem;
    background: linear-gradient(135deg, var(--wc-dde-secondary), transparent);
    filter: blur(24px);
}

.wc-dde-hero-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 1.5rem;
}

.wc-dde-access-section {
    padding: 4rem 1.25rem;
}

.wc-dde-access-section--consent,
.wc-dde-access-section--files {
    background: var(--wc-dde-card);
}

.wc-dde-access-section--files {
    border-top: 1px solid var(--wc-dde-border);
}

.wc-dde-consent-box,
.wc-dde-files-box {
    max-width: 48rem;
    margin: 0 auto;
    border: 1px solid var(--wc-dde-border);
    border-radius: 1.5rem;
    background: var(--wc-dde-background);
    box-shadow: var(--wc-dde-shadow-soft);
}

.wc-dde-consent-box,
.wc-dde-files-box {
    padding: 2rem;
}

.wc-dde-section-heading {
    margin-bottom: 1.5rem;
}

.wc-dde-section-heading--center {
    text-align: center;
}

.wc-dde-section-heading p {
    margin: 0;
    color: var(--wc-dde-primary);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.wc-dde-section-heading h3,
.wc-dde-files-box h3,
.wc-dde-consent-box h3 {
    margin-top: 0.75rem;
    font-size: clamp(1.875rem, 5vw, 2.75rem);
    line-height: 1.08;
}

.wc-dde-consent-text {
    margin: 0 0 1.75rem;
    padding: 1.5rem;
    border: 1px solid var(--wc-dde-border);
    border-radius: 1.25rem;
    background: color-mix(in oklab, var(--wc-dde-secondary) 58%, var(--wc-dde-card));
    color: var(--wc-dde-muted-foreground);
    font-size: 1rem;
    line-height: 1.65;
}

.wc-dde-consent-text p:first-child {
    margin-top: 0;
}

.wc-dde-consent-text p:last-child {
    margin-bottom: 0;
}

.wc-dde-consent-form {
    display: grid;
    gap: 1.5rem;
}

.wc-dde-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin: 0;
    color: color-mix(in oklab, var(--wc-dde-foreground) 90%, transparent);
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.45;
    cursor: pointer;
}

.wc-dde-consent-label input[type="checkbox"] {
    flex: 0 0 auto;
    width: 1.35rem;
    height: 1.35rem;
    margin-top: 0.05rem;
    accent-color: var(--wc-dde-primary);
    cursor: pointer;
}

.wc-dde-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: 1rem 2rem;
    border: 0;
    border-radius: 999px;
    font-size: clamp(1rem, 1.8vw, 1.125rem);
    font-weight: 650;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
}

.wc-dde-btn:hover,
.wc-dde-btn:focus {
    transform: scale(1.02);
    text-decoration: none;
    filter: brightness(1.08);
}

.wc-dde-btn-primary,
.wc-dde-btn-download,
.wc-dde-file-card__btn {
    background: var(--wc-dde-primary);
    color: var(--wc-dde-primary-foreground);
    box-shadow: var(--wc-dde-shadow-soft);
}

.wc-dde-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    filter: none;
}

.wc-dde-file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.wc-dde-file-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    min-height: 15rem;
    padding: 1.75rem 1.25rem;
    overflow: hidden;
    border: 0;
    border-radius: 1rem;
    background: var(--wc-dde-card);
    box-shadow: var(--wc-dde-shadow-card);
    text-align: center;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.wc-dde-file-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 10px 28px -10px oklch(0 0 0 / 0.15);
}

.wc-dde-file-card__icon,
.wc-dde-file-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    background: color-mix(in oklab, var(--wc-dde-primary) 10%, transparent);
    color: var(--wc-dde-primary);
    font-size: 1.7rem;
    line-height: 1;
}

.wc-dde-file-card__name,
.wc-dde-file-name {
    flex: 1;
    color: var(--wc-dde-foreground);
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.4;
    word-break: break-word;
}

.wc-dde-file-list {
    display: grid;
    gap: 1rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.wc-dde-file-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--wc-dde-border);
    border-radius: 1rem;
    background: var(--wc-dde-card);
}

.wc-dde-footer-note {
    display: grid;
    gap: 0.25rem;
    padding: 2rem 1.25rem;
    border-top: 1px solid var(--wc-dde-border);
    background: var(--wc-dde-card);
    color: var(--wc-dde-muted-foreground);
    text-align: center;
}

.wc-dde-footer-note p {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.55;
}

.wc-dde-footer-note__delivery {
    margin-top: 0.45rem !important;
}

.wc-dde-footer-note__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.wc-dde-footer-note a {
    color: var(--wc-dde-muted-foreground);
    font-size: 0.75rem;
    font-weight: 650;
    text-decoration: none;
}

.wc-dde-footer-note a:hover,
.wc-dde-footer-note a:focus {
    color: var(--wc-dde-foreground);
    text-decoration: underline;
}

.wc-dde-error {
    padding: 1.1rem 1.25rem;
    border: 1px solid #f0b9b9;
    border-radius: 1rem;
    background: #fff1f1;
    color: #7a1e1e;
}

.wc-dde-success-msg {
    margin-bottom: 1.25rem;
    padding: 1rem;
    border: 1px solid color-mix(in oklab, var(--wc-dde-primary) 25%, var(--wc-dde-border));
    border-radius: 1rem;
    background: color-mix(in oklab, var(--wc-dde-primary) 10%, var(--wc-dde-card));
    color: color-mix(in oklab, var(--wc-dde-foreground) 78%, var(--wc-dde-primary));
    font-size: 0.92rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .wc-dde-hero-card {
        padding-top: 4rem;
        padding-bottom: 3rem;
    }

    .wc-dde-hero-card__content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 3rem;
    }

    .wc-dde-hero-card__copy {
        text-align: left;
    }

    .wc-dde-header__subtitle {
        margin-left: 0;
    }

    .wc-dde-benefits {
        justify-content: flex-start;
    }

    .wc-dde-consent-box,
    .wc-dde-files-box {
        padding: 3rem;
    }
}

@media (max-width: 520px) {
    .wc-dde-access-section {
        padding: 3rem 1rem;
    }

    .wc-dde-consent-box,
    .wc-dde-files-box {
        padding: 1.5rem;
        border-radius: 1.25rem;
    }

    .wc-dde-file-grid {
        grid-template-columns: 1fr;
    }

    .wc-dde-btn-primary,
    .wc-dde-btn-download,
    .wc-dde-file-card__btn {
        width: 100%;
    }
}
