/* ==========================================================================
   PIXELFLY — PRODUCT PAGES (vgs / cvg / wgc)  ·  "GIFT BOUTIQUE"
   Shared stylesheet. Same design language as homepage /style.css.
   Warm off-white · purple signature · teal secondary · rounded · soft shadows.
   Redefines the product markup's existing class names in boutique style,
   so all main.js hooks (.accordion-*, .order-btn, #order-modal, .hidden…) stay.
   ========================================================================== */

/* ---------- design tokens (from homepage) -------------------------------- */
:root {
    --bg:        #FBFAFD;
    --bg-soft:   #F3EEF8;
    --surface:   #FFFFFF;
    --ink:       #211A2B;
    --ink-soft:  #685F73;
    --line:      #E9E1F1;
    --coral:     #8040B0;   /* brand purple (primary) */
    --coral-d:   #66318C;
    --gold:      #3C9A93;   /* brand teal (secondary) */
    --gold-soft: #D8EFEC;
    --rose:      #F2EAFA;

    --sh-sm: 0 1px 2px rgba(33,26,43,0.04), 0 2px 8px rgba(33,26,43,0.05);
    --sh-md: 0 4px 12px rgba(33,26,43,0.06), 0 12px 28px rgba(33,26,43,0.07);
    --sh-lg: 0 8px 24px rgba(33,26,43,0.08), 0 24px 56px rgba(33,26,43,0.10);
    --sh-coral: 0 10px 30px rgba(128,64,176,0.28);

    --r-sm: 12px;
    --r-md: 18px;
    --r-lg: 26px;
    --r-pill: 999px;

    --fs-display: clamp(2.3rem, 7vw, 3.6rem);
    --fs-h2:      clamp(1.7rem, 5vw, 2.5rem);
    --fs-h3:      clamp(1.15rem, 3vw, 1.4rem);
    --fs-body:    clamp(1rem, 2.5vw, 1.12rem);

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

h1, h2, h3, h4 { font-family: 'Fraunces', serif; font-weight: 600; line-height: 1.15; }

img { max-width: 100%; display: block; }

.container { max-width: 1040px; margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2rem); }

/* ---------- atmospheric background orbs ---------------------------------- */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; }
.orb-1 {
    width: 46vw; height: 46vw; max-width: 520px; max-height: 520px;
    top: -12vw; right: -12vw;
    background: radial-gradient(circle, rgba(128,64,176,0.24), transparent 70%);
}
.orb-2 {
    width: 50vw; height: 50vw; max-width: 560px; max-height: 560px;
    bottom: -18vw; left: -14vw;
    background: radial-gradient(circle, rgba(60,154,147,0.26), transparent 70%);
}

/* ---------- scroll reveal ------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; transition: none; }
    html { scroll-behavior: auto; }
}

/* ==========================================================================
   HEADER  (sticky boutique bar)
   ========================================================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(251,250,253,0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 0;
}
.header-container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.back-link {
    display: inline-flex; align-items: center; gap: 6px;
    text-decoration: none;
    color: var(--ink-soft);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 6px 14px 6px 10px;
    border-radius: var(--r-pill);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--sh-sm);
    transition: transform 0.2s var(--ease), color 0.2s, box-shadow 0.2s;
}
.back-link:hover { transform: translateX(-2px); color: var(--coral-d); box-shadow: var(--sh-md); }
.brand {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.18rem;
    letter-spacing: -0.2px;
    color: var(--ink);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { padding: clamp(2.6rem, 7vw, 4.5rem) 0 clamp(1.5rem, 4vw, 2.5rem); text-align: center; }

.badge {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--gold-soft);
    color: #2A6B65;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: var(--r-pill);
    margin-bottom: clamp(1.1rem, 3vw, 1.5rem);
}

.hero h1 {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: var(--fs-display);
    line-height: 1.05;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    text-wrap: balance;
}

.subtitle {
    font-size: clamp(1.02rem, 2.6vw, 1.2rem);
    color: var(--ink-soft);
    max-width: 46ch;
    margin: 0 auto clamp(1.8rem, 4.5vw, 2.4rem);
    line-height: 1.6;
}

.hero-image-card {
    max-width: 560px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-lg);
    padding: clamp(10px, 2vw, 16px);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.hero-image-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(33,26,43,0.13); }
.hero-thumbnail {
    width: 100%; height: auto; display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--r-md);
    background: var(--rose);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding: clamp(3rem, 8vw, 5rem) 0; }
.section-title {
    text-align: center;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: var(--fs-h2);
    letter-spacing: -0.5px;
    margin-bottom: clamp(1.8rem, 5vw, 2.6rem);
}

/* ==========================================================================
   ACCORDION  (keeps main.js hooks: .accordion-item.active toggled by JS)
   ========================================================================== */
.accordion {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.accordion-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--sh-sm);
    overflow: hidden;
    transition: box-shadow 0.25s;
}
.accordion-item.active { box-shadow: var(--sh-md); }
.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: clamp(1rem, 2.5vw, 1.14rem);
    color: var(--ink);
    text-align: left;
    padding: 1.2rem 1.35rem;
}
.accordion-header::after {
    content: "+";
    flex-shrink: 0;
    width: 30px; height: 30px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--rose);
    color: var(--coral);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.3s var(--ease), background 0.3s, color 0.3s;
}
.accordion-item.active .accordion-header::after {
    content: "\00d7"; /* × */
    background: var(--coral);
    color: #fff;
    transform: rotate(0deg);
}
.accordion-body {
    padding: 0 1.35rem 1.35rem;
    display: none;
    color: var(--ink-soft);
}
.accordion-item.active .accordion-body { display: block; }

/* --- "Cara Pemesanan" steps: override the inline-styled markup --------- */
.order-steps-list > div > div:first-child {
    background: var(--rose) !important;
    color: var(--coral) !important;
    border: none !important;
    box-shadow: 0 3px 8px rgba(128,64,176,0.18);
}
.order-steps-list h4 {
    font-family: 'Fraunces', serif !important;
    font-weight: 600 !important;
    text-transform: none !important;
    color: var(--ink) !important;
    letter-spacing: 0 !important;
}
.order-steps-list p { color: var(--ink-soft) !important; }

/* --- testimonial proof grid ------------------------------------------- */
.proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
}
.proof-card {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--sh-sm);
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: var(--rose);
}
.proof-card img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   PRICING
   ========================================================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.3rem, 3vw, 1.8rem);
    align-items: stretch;
}
@media (min-width: 900px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }

.price-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-md);
    padding: clamp(1.5rem, 3vw, 2rem);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }

.price-card.featured {
    border-color: #E8B04B;
    box-shadow: 0 0 0 2px rgba(232,176,75,0.55), var(--sh-lg);
}
.price-card.featured:hover { box-shadow: 0 0 0 2px rgba(232,176,75,0.72), var(--sh-lg); }

.sale-badge {
    position: absolute;
    top: -13px; right: 20px;
    display: inline-flex; align-items: center;
    background: linear-gradient(135deg, #FFC65C, #F59E0B 55%, #E07A00);
    color: #4A2A00;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 7px 14px;
    border-radius: var(--r-pill);
    border: 1.5px solid rgba(255,255,255,0.7);
    box-shadow: 0 6px 16px rgba(224,122,0,0.42);
    animation: bestPulse 2.2s var(--ease) infinite;
}
@keyframes bestPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .sale-badge { animation: none; } }

.price-header { margin-bottom: 1.4rem; display: flex; flex-direction: column; gap: 4px; }
.package-name {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.2rem;
    text-transform: none;
    letter-spacing: -0.2px;
}
.price-old {
    position: relative;
    display: inline-block;
    width: fit-content;
    color: var(--ink-soft);
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0 3px;
}
.price-old::after {
    content: '';
    position: absolute;
    left: -3px; right: -3px; top: 50%;
    height: 2.5px;
    background: linear-gradient(90deg, #C2477F, #E07A00);
    transform: translateY(-50%) rotate(-6deg);
    border-radius: 3px;
}
.price-value {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 2.3rem;
    color: var(--ink);
    line-height: 1;
}

.features { list-style: none; margin-bottom: 1.6rem; flex-grow: 1; }
.features li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 11px;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--ink);
}
.features li::before {
    content: "\2713"; /* ✓ */
    position: absolute;
    left: 0; top: 1px;
    color: var(--gold);
    font-weight: 800;
}
.features li strong { font-weight: 700; }
.features li.excluded { color: #A79FB0; }
.features li.excluded::before { content: "\00d7"; color: #C9B8D8; }

.demo-note {
    font-size: 0.75rem;
    color: var(--ink-soft);
    margin-top: -10px;
    margin-bottom: 18px;
    text-align: center;
}

/* ==========================================================================
   BUTTONS  (.btn full-width inside cards)
   ========================================================================== */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    text-align: center;
    text-decoration: none;
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    border-radius: var(--r-pill);
    padding: 0.95rem 1.4rem;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}
.btn-secondary {
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: var(--sh-sm);
}
.btn-secondary:hover { transform: translateY(-3px); box-shadow: var(--sh-md); color: var(--coral-d); }

.btn-primary {
    background: linear-gradient(135deg, var(--coral), var(--coral-d));
    color: #fff;
    box-shadow: var(--sh-coral);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(128,64,176,0.34); }
.btn-primary:active { transform: translateY(-1px); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    padding: clamp(2.2rem, 5vw, 3rem) 0;
    border-top: 1px solid var(--line);
    text-align: center;
    background: transparent;
}
.footer p { font-size: 0.84rem; color: var(--ink-soft); }

/* ==========================================================================
   ORDER MODAL  (keeps ids/structure for main.js)
   ========================================================================== */
.hidden { display: none !important; }

.modal {
    position: fixed;
    inset: 0;
    width: 100%; height: 100%;
    background: rgba(33,26,43,0.42);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
    padding: 1.25rem;
}
.modal-content {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-lg);
    width: 100%; max-width: 410px;
    padding: clamp(1.6rem, 4vw, 2.1rem);
    position: relative;
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.4rem; }
.modal-header h2 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.4rem; }
.close-btn {
    background: var(--bg-soft);
    border: none;
    width: 34px; height: 34px;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--ink-soft);
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.close-btn:hover { background: var(--rose); color: var(--coral-d); }

.order-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink-soft);
    margin-bottom: 0.5rem;
}
.order-form input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--bg);
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
    margin-bottom: 1.3rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.order-form input:focus {
    outline: none;
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(128,64,176,0.16);
}

.order-info {
    background: var(--rose);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 1rem 1.1rem;
    margin-bottom: 1.4rem;
}
.info-item { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.info-item + .info-item { margin-top: 0.5rem; }
.info-item span { color: var(--ink-soft); font-size: 0.9rem; }
.info-item strong { font-weight: 800; color: var(--ink); }

.form-note { text-align: center; font-size: 0.76rem; color: var(--ink-soft); margin-top: 0.8rem; }

.redirect-state { text-align: center; padding: 1.5rem 0; }
.redirect-state h3 { font-family: 'Fraunces', serif; font-weight: 600; margin-bottom: 0.4rem; }
.redirect-state p { font-size: 0.88rem; color: var(--ink-soft); }
.redirect-state a { color: var(--coral-d); font-weight: 700; }
.loader {
    width: 40px; height: 40px;
    border: 3px solid var(--line);
    border-top-color: var(--coral);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin: 0 auto 1.3rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   MOBILE DISCLAIMER POPUP  (soften the inline-styled markup)
   ========================================================================== */
#mobile-disclaimer > div {
    border: 1px solid var(--line) !important;
    border-radius: var(--r-lg) !important;
    box-shadow: var(--sh-lg) !important;
}
#mobile-disclaimer svg { stroke: var(--coral) !important; }
#mobile-disclaimer p { color: var(--ink-soft) !important; }
#mobile-disclaimer button {
    background: linear-gradient(135deg, var(--coral), var(--coral-d)) !important;
    border-radius: var(--r-pill) !important;
    box-shadow: var(--sh-coral) !important;
}
