/* ============================================================
   Yendo brochures — shared print + screen styles
   Design tokens mirror the marketing site:
     - bg dark:   #0f172a
     - primary:   #0ea5e9 (sky)
     - accent:    #7c3aed (purple) / #22d3ee (cyan)
     - WhatsApp:  #25d366
   Fonts: Plus Jakarta Sans (display) + Space Grotesk (mono-ish accents).
   Optimised for A4/Letter portrait print + on-screen reading.
   ============================================================ */

* { box-sizing: border-box; }

:root {
    --bg: #0f172a;
    --bg-soft: #111827;
    --surface: rgba(255,255,255,0.04);
    --border: rgba(255,255,255,0.08);
    --text: #e2e8f0;
    --muted: #94a3b8;
    --primary: #0ea5e9;
    --purple: #7c3aed;
    --cyan: #22d3ee;
    --whatsapp: #25d366;
    --gastronomy: #f59e0b;
    --construction: #f97316;
    --security: #ef4444;
    --clubs: #14b8a6;
}

html, body {
    margin: 0;
    padding: 0;
    background: #0b1220;
    color: var(--text);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

/* === Toolbar === */
.brochure-toolbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 20px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    font-family: 'Space Grotesk', monospace;
    font-size: 13px;
}
.brochure-toolbar .back { color: var(--muted); text-decoration: none; }
.brochure-toolbar .back:hover { color: #fff; }
.brochure-toolbar .lang-switch { display: flex; gap: 4px; }
.brochure-toolbar .lang-switch a {
    padding: 4px 10px; border-radius: 999px;
    border: 1px solid var(--border);
    color: var(--muted); text-decoration: none;
}
.brochure-toolbar .lang-switch a.active { background: #fff; color: #0f172a; border-color: #fff; }
.brochure-toolbar .print-btn {
    border: 1px solid var(--primary);
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}
.brochure-toolbar .print-btn:hover { background: var(--primary); color: #0f172a; }

/* === Page === */
.brochure {
    max-width: 210mm;      /* A4 width */
    margin: 24px auto;
    padding: 22mm 18mm;
    background: linear-gradient(180deg, var(--bg) 0%, #0a0f1f 100%);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: 0 30px 80px rgba(0,0,0,0.45);
    border-radius: 18px;
    position: relative;
    overflow: hidden;
}
.brochure::before {
    content: "";
    position: absolute;
    top: -20%; left: -10%;
    width: 50%; height: 50%;
    background: radial-gradient(circle, rgba(14,165,233,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.brochure::after {
    content: "";
    position: absolute;
    bottom: -20%; right: -10%;
    width: 50%; height: 50%;
    background: radial-gradient(circle, rgba(124,58,237,0.10) 0%, transparent 70%);
    pointer-events: none;
}
.brochure > * { position: relative; z-index: 1; }

.brochure--gastronomy::before { background: radial-gradient(circle, rgba(245,158,11,0.16) 0%, transparent 70%); }
.brochure--construction::before { background: radial-gradient(circle, rgba(249,115,22,0.16) 0%, transparent 70%); }
.brochure--security::before { background: radial-gradient(circle, rgba(239,68,68,0.16) 0%, transparent 70%); }
.brochure--clubs::before { background: radial-gradient(circle, rgba(20,184,166,0.16) 0%, transparent 70%); }

/* === Header === */
.brochure-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border);
    padding-bottom: 14px;
    margin-bottom: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.01em;
    color: #fff;
}
.brand-tag {
    font-family: 'Space Grotesk', monospace;
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-top: 2px;
}
.header-meta {
    text-align: right;
    font-family: 'Space Grotesk', monospace;
    font-size: 10px;
    color: var(--muted);
    line-height: 1.5;
}
.header-meta .badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.header-meta .url { display: block; margin-top: 4px; color: #fff; }

/* === Hero === */
.hero {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 28px;
    align-items: center;
    margin-bottom: 22px;
}
.hero .kicker {
    font-family: 'Space Grotesk', monospace;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 0 0 8px;
}
.hero h1 {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 12px;
}
.hero h1 .hl {
    background: linear-gradient(90deg, var(--primary), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.brochure--gastronomy .hero h1 .hl { background: linear-gradient(90deg, var(--gastronomy), var(--whatsapp)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brochure--construction .hero h1 .hl { background: linear-gradient(90deg, var(--construction), #fde047); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brochure--security .hero h1 .hl { background: linear-gradient(90deg, var(--security), #f59e0b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brochure--clubs .hero h1 .hl { background: linear-gradient(90deg, var(--clubs), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero .lede {
    font-size: 13.5px;
    line-height: 1.55;
    color: #cbd5e1;
    margin: 0;
}
.chat-mock {
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.chat-bubble {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 14px;
    font-size: 12px;
    line-height: 1.4;
}
.chat-bubble.in {
    background: rgba(37, 211, 102, 0.15);
    border: 1px solid rgba(37, 211, 102, 0.25);
    color: #d1fae5;
    align-self: flex-start;
    border-top-left-radius: 4px;
}
.chat-bubble.out {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    color: #fff;
    align-self: flex-end;
    border-top-right-radius: 4px;
}
.chat-link {
    color: #a5f3fc;
    text-decoration: underline;
    word-break: break-all;
}
.chat-action {
    align-self: center;
    font-size: 10px;
    color: var(--muted);
    font-style: italic;
    opacity: 0.65;
    text-align: center;
    padding: 2px 0;
}

/* === Pillars === */
.pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}
.pillars--3 { grid-template-columns: repeat(3, 1fr); }
.pillar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
}
.pillar-icon { font-size: 22px; margin-bottom: 6px; }
.pillar h3 {
    font-size: 13px;
    margin: 0 0 4px;
    color: #fff;
    font-weight: 700;
}
.pillar p {
    font-size: 11.5px;
    line-height: 1.4;
    margin: 0;
    color: var(--muted);
}

/* === Pain/Solution === */
.pain-solution {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}
.pain, .solution {
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 12px;
    line-height: 1.5;
}
.pain {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.solution {
    background: rgba(34, 197, 94, 0.07);
    border: 1px solid rgba(34, 197, 94, 0.25);
}
.pain h3, .solution h3 {
    font-size: 12px;
    font-family: 'Space Grotesk', monospace;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 8px;
    color: #fff;
}
.pain ul, .solution ul {
    margin: 0;
    padding-left: 18px;
    color: var(--text);
}
.pain li, .solution li { margin-bottom: 4px; }

/* === Numbers === */
.numbers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}
.number {
    background: linear-gradient(180deg, rgba(14,165,233,0.08), rgba(124,58,237,0.06));
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    text-align: center;
}
.number .value {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 24px;
    color: #fff;
    line-height: 1;
}
.number .label {
    display: block;
    font-size: 10.5px;
    color: var(--muted);
    margin-top: 4px;
    line-height: 1.3;
}

/* === How / Quote === */
.how { margin-bottom: 18px; }
.how h2, .quote h2 {
    font-size: 16px;
    color: #fff;
    margin: 0 0 10px;
    font-weight: 700;
}
.how-steps {
    margin: 0;
    padding-left: 18px;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--text);
}
.how-steps li { margin-bottom: 6px; }

.quote { margin: 14px 0 18px; }
.quote blockquote {
    margin: 0;
    padding: 14px 18px;
    border-left: 3px solid var(--primary);
    background: rgba(14,165,233,0.06);
    border-radius: 0 12px 12px 0;
    font-size: 13px;
    line-height: 1.5;
    color: #fff;
    font-style: italic;
}
.quote-attr {
    font-family: 'Space Grotesk', monospace;
    font-size: 11px;
    color: var(--muted);
    margin: 6px 0 0 18px;
}

/* === CTA Footer === */
.cta {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 18px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(14,165,233,0.18));
    border: 1px solid var(--border);
    border-radius: 18px;
    align-items: center;
}
.cta-kicker {
    font-family: 'Space Grotesk', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--cyan);
    margin: 0 0 4px;
}
.cta h2 {
    font-size: 22px;
    line-height: 1.15;
    margin: 0 0 8px;
    color: #fff;
    font-weight: 800;
}
.cta-line {
    font-size: 12.5px;
    color: #cbd5e1;
    margin: 0 0 12px;
}
.cta-numbers { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.cta-number {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', monospace;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}
.cta-number .flag { font-size: 14px; }
.cta-number a { color: #fff; text-decoration: none; border-bottom: 1px dotted rgba(255,255,255,0.4); }
.cta-url {
    font-family: 'Space Grotesk', monospace;
    font-size: 11px;
    color: var(--muted);
    margin: 0;
}

.cta-right { text-align: center; }

/* High-res QR with centre logo overlay */
.qr-wrap {
    position: relative;
    display: block;
    width: 160px;
    margin: 0 auto;
}
.qr-wrap img {
    display: block;
    border-radius: 10px;
    width: 160px;
    height: 160px;
}
.qr-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 34px;
    height: 34px;
    box-sizing: border-box;
    background: #25d366;
    border-radius: 7px;
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 16px;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
}

/* keep for any legacy references */
.qr-placeholder {
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 160px;
    margin: 0 auto;
    border: 2px dashed rgba(255,255,255,0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(255,255,255,0.04);
    color: var(--muted);
    font-family: 'Space Grotesk', monospace;
    font-size: 10px;
    text-align: center;
    line-height: 1.4;
}
.qr-cap {
    font-size: 10.5px;
    color: var(--muted);
    margin: 8px 0 0;
}

.legal {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-family: 'Space Grotesk', monospace;
    font-size: 9.5px;
    color: var(--muted);
    text-align: center;
    letter-spacing: 0.05em;
}

/* === Print === */
@media print {
    .no-print { display: none !important; }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    html, body {
        margin: 0;
        padding: 0;
        background: #0f172a !important;
    }

    .brochure {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        border: none;
        max-width: none;
        width: 100%;
        min-height: 0;
        padding: 7mm 8mm;
        page-break-after: always;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Header */
    .brochure-header { padding-bottom: 7px; margin-bottom: 10px; }
    .brand-logo { width: 30px; height: 30px; }
    .brand-name { font-size: 16px; }

    /* Hero */
    .hero { gap: 14px; margin-bottom: 10px; }
    .hero .kicker { margin-bottom: 3px; font-size: 10px; }
    .hero h1 { font-size: 21px; margin-bottom: 6px; }
    .hero .lede { font-size: 11px; line-height: 1.4; }

    /* Chat mock */
    .chat-mock { padding: 8px; gap: 4px; }
    .chat-bubble { padding: 5px 8px; font-size: 10.5px; }

    /* Pillars */
    .pillars, .pillars--3 { gap: 7px; margin-bottom: 10px; }
    .pillar { padding: 8px 9px; border-radius: 10px; }
    .pillar-icon { font-size: 17px; margin-bottom: 3px; }
    .pillar h3 { font-size: 11px; margin-bottom: 2px; }
    .pillar p { font-size: 10px; }

    /* Pain / Solution */
    .pain-solution { gap: 8px; margin-bottom: 10px; }
    .pain, .solution { padding: 9px 11px; font-size: 10.5px; }
    .pain h3, .solution h3 { font-size: 10.5px; margin-bottom: 5px; }
    .pain li, .solution li { margin-bottom: 2px; }

    /* Numbers */
    .numbers { gap: 7px; margin-bottom: 10px; }
    .number { padding: 8px 6px; border-radius: 10px; }
    .number .value { font-size: 18px; }
    .number .label { font-size: 9px; margin-top: 2px; }

    /* How */
    .how { margin-bottom: 10px; }
    .how h2 { font-size: 12px; margin-bottom: 5px; }
    .how-steps { font-size: 10.5px; line-height: 1.4; padding-left: 14px; }
    .how-steps li { margin-bottom: 2px; }

    /* CTA */
    .cta { padding: 10px 12px; gap: 12px; border-radius: 12px; }
    .cta-kicker { font-size: 9px; margin-bottom: 2px; }
    .cta h2 { font-size: 17px; margin-bottom: 5px; }
    .cta-line { font-size: 10.5px; margin-bottom: 7px; }
    .cta-numbers { gap: 3px; margin-bottom: 5px; }
    .cta-number { font-size: 12px; gap: 6px; }
    .cta-url { font-size: 10px; }

    /* QR */
    .qr-wrap { width: 120px; }
    .qr-wrap img { width: 120px; height: 120px; }
    .qr-logo { width: 26px; height: 26px; font-size: 12px; border-width: 2px; }
    .qr-cap { font-size: 9.5px; }

    /* Legal */
    .legal { margin-top: 7px; padding-top: 5px; font-size: 8.5px; }
}

@page {
    size: A4 portrait;
    margin: 0;
}

/* === Mobile === */
@media (max-width: 720px) {
    .brochure { padding: 18px; margin: 12px; }
    .hero, .cta, .pain-solution { grid-template-columns: 1fr; }
    .pillars, .pillars--3, .numbers { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 24px; }
}
