/*
Theme Name: Unpacked
Theme URI: https://unpackedbooks.com
Author: Viktor von Drakk
Description: Single-page theme for the Unpacked book series. The "cardboard box" landing page, self-contained — no page builder required.
Version: 1.4
*/

:root {
    --cardboard-base: #cca876;
    --cardboard-dark: #b08d5b;
    --cardboard-light: #e0bf93;
    --tape-color: rgba(255, 255, 230, 0.6);
    --stamp-red: #c1272d;
    --text-dark: #2c1e16;
}

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

body {
    background-color: #1a1a1a;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 40px 20px;
}

/* --- Cardboard Box Container --- */
.cardboard-box {
    position: relative;
    width: 100%;
    max-width: 800px;
    background-color: var(--cardboard-base);
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px),
        repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
    box-shadow: inset 0 0 40px rgba(0,0,0,0.3), 0 15px 30px rgba(0,0,0,0.5);
    border-radius: 4px;
    margin: 40px 0;
}

.box-content { padding: 60px 40px; position: relative; z-index: 2; }

/* --- Box Flaps --- */
.flap { position: absolute; background-color: var(--cardboard-light); box-shadow: inset 0 0 20px rgba(0,0,0,0.2); z-index: 1; }
.flap-top-left, .flap-top-right { top: -40px; height: 40px; width: 50%; border-top-left-radius: 5px; border-top-right-radius: 5px; }
.flap-top-left  { left: 0;  border-right: 2px solid var(--cardboard-dark); }
.flap-top-right { right: 0; border-left: 2px solid var(--cardboard-dark); }
.flap-bottom-left, .flap-bottom-right { bottom: -40px; height: 40px; width: 50%; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; }
.flap-bottom-left  { left: 0;  border-right: 2px solid var(--cardboard-dark); }
.flap-bottom-right { right: 0; border-left: 2px solid var(--cardboard-dark); }

/* --- Stamps --- */
.shipping-stamps { position: absolute; top: 30px; right: 30px; display: flex; flex-direction: column; gap: 15px; opacity: 0.8; }
.stamp { font-family: 'Special Elite', cursive; color: var(--stamp-red); border: 3px solid var(--stamp-red); padding: 5px 10px; font-size: 1.2rem; font-weight: bold; text-transform: uppercase; transform: rotate(5deg); border-radius: 4px; letter-spacing: 2px; }
.this-side-up { transform: rotate(-3deg); color: var(--text-dark); border-color: var(--text-dark); font-size: 0.9rem; }

/* --- Header --- */
header { text-align: center; margin-bottom: 40px; }
.series-title { font-family: 'Special Elite', cursive; font-size: 4rem; letter-spacing: -2px; margin-bottom: 10px; color: var(--text-dark); text-shadow: 2px 2px 0px rgba(255,255,255,0.2); }
.subtitle { font-size: 1.2rem; font-style: italic; opacity: 0.8; }

/* --- Hero & Book Mockup --- */
.hero { display: flex; gap: 40px; align-items: center; margin-bottom: 50px; }
.book-mockup { flex-shrink: 0; width: 200px; height: 300px; background: #111; border-radius: 2px 8px 8px 2px; box-shadow: inset 4px 0 10px rgba(0,0,0,0.5), 10px 10px 20px rgba(0,0,0,0.4); position: relative; transform: perspective(600px) rotateY(-15deg); transition: transform 0.3s ease; }
.book-mockup:hover { transform: perspective(600px) rotateY(0deg) scale(1.05); }
.book-cover { position: absolute; top: 0; left: 5%; right: 0; bottom: 0; background: linear-gradient(135deg, #2a2a2a, #000); color: #fff; padding: 20px; display: flex; flex-direction: column; justify-content: flex-start; text-align: left; border-left: 1px solid rgba(255,255,255,0.2); }
.book-cover h2 { font-family: 'Special Elite', cursive; font-size: 1.8rem; margin-bottom: 10px; letter-spacing: 1px; }
.hero-text { font-size: 1.1rem; line-height: 1.6; }
.hero-text p { margin-bottom: 12px; }
.hero-cta { display: inline-block; text-decoration: none; margin-top: 8px; }

/* --- Body copy / blurb --- */
.blurb { line-height: 1.6; margin-bottom: 50px; }
.blurb p { margin-bottom: 16px; }
.blurb h3 { font-family: 'Special Elite', cursive; font-size: 1.4rem; margin: 24px 0 12px; }
.learn-list { list-style: none; margin: 0 0 16px; padding: 0; }
.learn-list li { position: relative; padding-left: 28px; margin-bottom: 12px; }
.learn-list li::before { content: "📦"; position: absolute; left: 0; top: 0; }

/* --- Subscribe section --- */
.subscribe-section { background-color: rgba(255,255,255,0.1); padding: 30px; border-radius: 8px; border: 2px dashed rgba(0,0,0,0.2); text-align: center; }
.subscribe-section h3 { margin-bottom: 20px; font-family: 'Special Elite', cursive; font-size: 1.5rem; }
form { display: flex; gap: 10px; margin-bottom: 20px; align-items: center; flex-wrap: wrap; justify-content: center; }
.inline-label { margin-right: 10px; }
input[type="email"] { flex-grow: 1; padding: 12px 15px; border: 2px solid var(--text-dark); background-color: transparent; font-family: 'Inter', sans-serif; font-size: 1rem; outline: none; border-radius: 4px; color: var(--text-dark); }
input[type="email"]::placeholder { color: rgba(44,30,22,0.6); }
.btn { padding: 12px 20px; font-weight: 600; cursor: pointer; border: 2px solid var(--text-dark); font-family: 'Inter', sans-serif; transition: all 0.2s ease; border-radius: 4px; text-decoration: none; display: inline-block; }
.primary-btn { background-color: var(--text-dark); color: var(--cardboard-light); }
.primary-btn:hover { background-color: #000; color: #fff; }
.divider { display: flex; align-items: center; text-align: center; margin: 20px 0; }
.divider::before, .divider::after { content: ''; flex: 1; border-bottom: 1px dashed rgba(0,0,0,0.3); }
.divider span { padding: 0 10px; font-size: 0.8rem; font-weight: bold; letter-spacing: 1px; }
.social-login { display: flex; gap: 10px; justify-content: center; }
.social-btn { flex: 1; background-color: transparent; color: var(--text-dark); }
.social-btn:hover { background-color: rgba(0,0,0,0.05); }

#success-message { display: none; padding: 20px; margin-top: 16px; background-color: rgba(255,255,255,0.3); border-radius: 4px; border: 1px solid var(--text-dark); }
#success-message .btn { margin-top: 12px; }

/* --- Responsive --- */
@media (max-width: 600px) {
    .hero { flex-direction: column; text-align: center; }
    .series-title { font-size: 3rem; }
    form { flex-direction: column; }
    .social-login { flex-direction: column; }
    .shipping-stamps { position: static; flex-direction: row; justify-content: center; margin-bottom: 20px; }
    .hero-ctas { flex-direction: column; }
    .stat-row, .cards, .buy-box { flex-direction: column; }
}

/* === Conversion-landing sections (book-grounded copy) =================== */
.panel { margin-bottom: 44px; line-height: 1.6; }
.panel h3 { font-family: 'Special Elite', cursive; font-size: 1.5rem; margin-bottom: 14px; }
.panel p { margin-bottom: 14px; }
.panel-lead { font-size: 1.05rem; }
.fineprint { font-size: 0.85rem; opacity: 0.75; }

/* Hero additions */
.hero-headline { font-family: 'Special Elite', cursive; font-size: 2rem; line-height: 1.15; margin-bottom: 14px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0; }
.secondary-btn { background-color: transparent; color: var(--text-dark); }
.secondary-btn:hover { background-color: rgba(0,0,0,0.05); }
.banner-line { background-color: rgba(193,39,45,0.08); border: 1px dashed var(--stamp-red); border-radius: 4px; padding: 10px 14px; font-size: 0.95rem; }

/* Stat band */
.stat-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.stat { flex: 1; min-width: 120px; text-align: center; border: 2px dashed rgba(0,0,0,0.2); border-radius: 6px; padding: 16px 12px; background-color: rgba(255,255,255,0.08); }
.stat-num { display: block; font-family: 'Special Elite', cursive; font-size: 2rem; color: var(--stamp-red); }
.stat-label { font-size: 0.9rem; }

/* "Say this, not that" sample */
.sample-key { border: 2px solid var(--text-dark); border-radius: 6px; padding: 18px; background-color: rgba(255,255,255,0.12); }
.sample-jargon { margin-bottom: 10px; }
.sample-translation { border-left: 4px solid var(--stamp-red); padding-left: 12px; margin-bottom: 10px; }
.sample-note { font-size: 0.9rem; font-style: italic; opacity: 0.8; margin-bottom: 0; }

/* Audience cards */
.cards { display: flex; gap: 16px; flex-wrap: wrap; }
.card { flex: 1; min-width: 180px; border: 2px dashed rgba(0,0,0,0.2); border-radius: 6px; padding: 16px; background-color: rgba(255,255,255,0.08); }
.card strong { display: block; margin-bottom: 6px; }
.card span { display: block; font-size: 0.95rem; }

/* Buy box */
.buy-panel { text-align: center; }
.buy-box { display: flex; gap: 28px; justify-content: center; margin-bottom: 18px; }
.price { text-align: center; }
.price-tag { display: block; font-family: 'Special Elite', cursive; font-size: 2rem; }
.price-label { font-size: 0.9rem; opacity: 0.8; }

/* FAQ */
.faq-q { font-weight: 600; margin-bottom: 2px; }
.faq-a { margin-bottom: 16px; opacity: 0.9; }

/* Final CTA + footer */
.final-cta { text-align: center; border: 2px dashed var(--stamp-red); border-radius: 8px; padding: 26px; background-color: rgba(255,255,255,0.1); }
.final-cta .hero-ctas { justify-content: center; }
.site-footer { text-align: center; font-size: 0.85rem; opacity: 0.7; margin-top: 30px; border-top: 1px dashed rgba(0,0,0,0.2); padding-top: 16px; }
.site-footer p { margin: 0; }

/* === Skin the embedded MailerLite form to match the cardboard look ====== */
/* Strip MailerLite's own card/background so our dashed cardboard panel shows. */
.subscribe-section .ml-form-embedContainer,
.subscribe-section .ml-form-embedWrapper,
.subscribe-section .ml-form-embedBody,
.subscribe-section .ml-form-align-center {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 auto !important;
    max-width: 540px;
}
/* MailerLite may inject its own title/description — hide it; we already have a heading.
   (If the whole form ever vanishes, delete this one rule.) */
.subscribe-section .ml-form-embedContent { display: none !important; }

/* Email field → match the theme's input */
.subscribe-section .ml-form-embedBody input[type="email"],
.subscribe-section .ml-form-embedBody input.form-control {
    background: transparent !important;
    border: 2px solid var(--text-dark) !important;
    border-radius: 4px !important;
    color: var(--text-dark) !important;
    font-family: 'Inter', sans-serif !important;
    padding: 12px 15px !important;
    box-shadow: none !important;
}
.subscribe-section .ml-form-embedBody input::placeholder { color: rgba(44,30,22,0.6) !important; }

/* Submit button → match .primary-btn */
.subscribe-section .ml-form-embedSubmit button,
.subscribe-section .ml-form-embedBody button[type="submit"] {
    background-color: var(--text-dark) !important;
    color: var(--cardboard-light) !important;
    border: 2px solid var(--text-dark) !important;
    border-radius: 4px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    text-transform: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease;
}
.subscribe-section .ml-form-embedSubmit button:hover { background-color: #000 !important; color: #fff !important; }

/* Form text + success message */
.subscribe-section .ml-form-embedBody,
.subscribe-section .ml-form-embedBody p,
.subscribe-section .ml-form-embedBody label { color: var(--text-dark) !important; font-family: 'Inter', sans-serif !important; }
.subscribe-section .ml-form-successBody {
    background: rgba(255,255,255,0.3) !important;
    border: 1px solid var(--text-dark) !important;
    border-radius: 4px !important;
    padding: 16px !important;
    color: var(--text-dark) !important;
}
