/*
 * KlayByte Biz brochure — two A4 pages (front and back). Prints edge to edge;
 * on screen the pages sit on a grey desk with a toolbar above them.
 */

:root {
    --font: 'Noto Sans Bengali', system-ui, sans-serif;
    --font-display: 'Anek Bangla', 'Noto Sans Bengali', system-ui, sans-serif;
    --primary: #0d6efd;
    --accent: #4f46e5;
    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --soft: #f4f7fd;
    --green: #16a34a;
    --amber: #b45309;
    --rose: #e11d48;
    --teal: #0d9488;
}

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

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    color: var(--ink-2);
    background: #cbd5e1;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

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

h1, h2, h3 {
    margin: 0;
    color: var(--ink);
    line-height: 1.25;
}

p {
    margin: 0;
}

/* Screen toolbar */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    padding: 14px 16px;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 15px;
}

.toolbar a,
.toolbar button {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1rem;
    border: 0;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.toolbar .is-ghost {
    background: transparent;
    border: 1px solid rgba(226, 232, 240, .4);
}

/* A4 sheet */
.sheet {
    position: relative;
    width: 210mm;
    height: 297mm;
    margin: 24px auto;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .25);
}

/* ── Front page ───────────────────────────────────────────────── */
.cover {
    position: relative;
    height: 170mm;
    padding: 14mm 14mm 0;
    background:
        radial-gradient(120mm 80mm at 100% 0%, rgba(255, 255, 255, .18), transparent 60%),
        linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #e0e7ff;
}

.brand {
    display: flex;
    align-items: center;
    gap: 3mm;
    color: #fff;
    font-family: var(--font-display);
    font-size: 17pt;
    font-weight: 700;
}

.brand-logo {
    width: 11mm;
    height: 11mm;
    flex: none;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 11mm;
    height: 11mm;
    border-radius: 3mm;
    background: #fff;
    color: var(--primary);
    font-size: 15pt;
}

.cover-tag {
    display: inline-block;
    margin-top: 9mm;
    padding: 1mm 4mm;
    border-radius: 99px;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 10pt;
    font-weight: 600;
}

.cover h1 {
    margin-top: 4mm;
    color: #fff;
    font-size: 24pt;
    line-height: 1.2;
}

.cover-lead {
    max-width: 150mm;
    margin-top: 4mm;
    font-size: 11.5pt;
    line-height: 1.65;
}

.cover-shot {
    position: absolute;
    left: 24mm;
    right: 24mm;
    bottom: -24mm;
    overflow: hidden;
    border: 1.5mm solid #fff;
    border-radius: 4mm;
    background: #fff;
    box-shadow: 0 10mm 20mm -6mm rgba(15, 23, 42, .45);
}

.front-body {
    padding: 32mm 14mm 0;
}

.pill-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3mm;
}

.pill {
    padding: 2.5mm 3mm;
    border: .3mm solid var(--line);
    border-radius: 3mm;
    background: var(--soft);
    text-align: center;
}

.pill strong {
    display: block;
    color: var(--primary);
    font-size: 15pt;
    line-height: 1.2;
}

.pill span {
    font-size: 9pt;
    color: var(--muted);
}

.benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3mm 6mm;
    margin-top: 5mm;
}

.benefit {
    display: flex;
    gap: 3mm;
}

.benefit i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 9mm;
    height: 9mm;
    border-radius: 2.5mm;
    background: #e8f0ff;
    color: var(--primary);
    font-size: 11pt;
}

.benefit h3 {
    font-size: 11.5pt;
}

.benefit p {
    font-size: 9.5pt;
    line-height: 1.55;
    color: var(--muted);
}

.sheet-foot {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4mm 14mm;
    background: #0f172a;
    color: #cbd5e1;
    font-size: 9.5pt;
}

.sheet-foot strong {
    color: #fff;
}

/* ── Back page ────────────────────────────────────────────────── */
.back {
    padding: 12mm 14mm 0;
}

.back-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 4mm;
    border-bottom: .4mm solid var(--line);
}

.back-head h2 {
    font-size: 19pt;
}

.back-head p {
    color: var(--muted);
    font-size: 10pt;
}

.modules {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.5mm;
    margin-top: 5mm;
}

.module {
    padding: 3.5mm;
    border: .3mm solid var(--line);
    border-radius: 3mm;
}

.module h3 {
    display: flex;
    align-items: center;
    gap: 2mm;
    margin-bottom: 1.5mm;
    font-size: 10.5pt;
}

.module h3 i {
    color: var(--primary);
    font-size: 10pt;
}

.module ul {
    margin: 0;
    padding-left: 4mm;
    font-size: 8.6pt;
    line-height: 1.5;
    color: var(--ink-2);
}

.shots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.5mm;
    margin-top: 5mm;
}

.shots figure {
    margin: 0;
}

.shots img {
    border: .3mm solid var(--line);
    border-radius: 2mm;
}

.shots figcaption {
    margin-top: 1mm;
    text-align: center;
    font-size: 8.5pt;
    color: var(--muted);
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5mm;
    margin-top: 5mm;
}

.box {
    padding: 4mm;
    border-radius: 3mm;
    background: var(--soft);
}

.box h3 {
    margin-bottom: 2mm;
    font-size: 11pt;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5mm;
}

.tags span {
    padding: .6mm 2.5mm;
    border: .3mm solid var(--line);
    border-radius: 99px;
    background: #fff;
    font-size: 8.8pt;
}

.box ul {
    margin: 0;
    padding-left: 4mm;
    font-size: 8.8pt;
    line-height: 1.55;
}

.contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6mm;
    margin-top: 5mm;
    padding: 5mm 6mm;
    border-radius: 3mm;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #e0e7ff;
}

.contact h3 {
    color: #fff;
    font-size: 14pt;
}

.contact p {
    font-size: 9.5pt;
}

.contact-lines {
    flex: 0 0 auto;
    font-size: 10.5pt;
    line-height: 1.8;
    color: #fff;
    text-align: right;
}

.contact-lines i {
    margin-left: 2mm;
}

.contact-lines a {
    color: inherit;
    text-decoration: none;
}

/* ── Print ────────────────────────────────────────────────────── */
@media print {
    body {
        background: #fff;
    }

    .toolbar {
        display: none;
    }

    .sheet {
        margin: 0;
        box-shadow: none;
        page-break-after: always;
        break-after: page;
    }

    .sheet:last-of-type {
        page-break-after: auto;
        break-after: auto;
    }
}

/* Small screens: scale the sheet down so the page never scrolls sideways */
@media screen and (max-width: 840px) {
    .sheet {
        zoom: .45;
    }
}

/* Headings use the display face, like the landing pages. */
h1, h2, h3 {
    font-family: var(--font-display);
}
