/*
 * Public marketing pages (layouts/web.blade.php).
 *
 * Self-contained on purpose: the previous landing page pulled Bootstrap 4
 * from StackPath (shut down), animate.css from cdnjs, Google Fonts, UIkit,
 * slick, magnific-popup and font-awesome -- roughly 2.4MB of CSS for one
 * page -- and hotlinked its icons from ecourier.com.bd and dropbd.com.
 * dropbd.com no longer answers, so each of those requests hung until the
 * browser gave up, while the preloader overlay waited on window.load before
 * uncovering the page. Nothing here loads off-site and no font is fetched
 * over the network.
 */

/* ---------------------------------------------------------------- tokens */
:root {
    /* Brand: the logo is Bangladesh-flag green and red on near-black. */
    --brand: #1a8f4c;
    --brand-dark: #11693a;
    --brand-soft: #e7f5ed;
    --accent: #e23b32;
    --accent-dark: #c22c24;

    --ink: #0f1a17;
    --ink-2: #44544e;
    --ink-3: #7a8a84;
    --line: #e3e9e6;
    --surface: #ffffff;
    --surface-2: #f5f8f6;
    --night: #0b0f0e;
    --night-2: #131a18;

    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(15, 26, 23, .06), 0 2px 8px rgba(15, 26, 23, .05);
    --shadow: 0 2px 6px rgba(15, 26, 23, .06), 0 12px 32px rgba(15, 26, 23, .09);
    --shadow-lg: 0 24px 64px rgba(11, 15, 14, .18);

    --container: 1160px;
    /* Same order as the panel, so the two look related wherever the faces
       are available. This page loads neither, by design. */
    --font: Roboto, SolaimanLipi, "Segoe UI", system-ui, -apple-system,
            "Noto Sans Bengali", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --ink: #e9efec;
        --ink-2: #aab8b3;
        --ink-3: #829a92;
        --line: #26302d;
        --surface: #101614;
        --surface-2: #0b100f;
        --brand-soft: #10291e;
    }
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

h1, h2, h3, h4, h5 { margin: 0 0 .5rem; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding: clamp(48px, 6vw, 86px) 0; }
.section--alt { background: var(--surface-2); }

.section-head { max-width: 640px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.section-head p { color: var(--ink-2); margin: 0; }
.eyebrow {
    display: inline-block; margin-bottom: .6rem; padding: .25rem .7rem;
    font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--brand); background: var(--brand-soft); border-radius: 999px;
}

/* --------------------------------------------------------------- buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .72rem 1.35rem; border: 1px solid transparent; border-radius: 10px;
    font-weight: 600; font-size: .95rem; cursor: pointer; white-space: nowrap;
    transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(226, 59, 50, .3); }
.btn--accent:hover { background: var(--accent-dark); }
.btn--brand { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(26, 143, 76, .28); }
.btn--brand:hover { background: var(--brand-dark); }
.btn--ghost { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.btn--lg { padding: .9rem 1.7rem; font-size: 1rem; }

/* ------------------------------------------------------------------ hero */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(900px 420px at 88% -8%, rgba(26, 143, 76, .42), transparent 62%),
        radial-gradient(680px 360px at 4% 108%, rgba(226, 59, 50, .3), transparent 60%),
        linear-gradient(170deg, #0f1614 0%, #0b0f0e 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
    display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px);
    /* The bottom padding leaves room for the tracking box, which is pulled
       72px up into the hero. */
    align-items: center; padding: clamp(44px, 6vw, 84px) 0 clamp(80px, 7vw, 110px);
}
.hero-badge {
    display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem;
    padding: .35rem .85rem .35rem .4rem; border-radius: 999px; font-size: .83rem; font-weight: 600;
    background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14); color: #d8ece2;
}
.hero-badge i {
    width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%;
    background: var(--brand); font-style: normal;
}
.hero-badge i svg { width: 13px; height: 13px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: #6ddc9c; }
.hero-lead { max-width: 46ch; font-size: 1.08rem; color: #c3d2cc; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.hero-note { margin: 1.4rem 0 0; font-size: .86rem; color: #93a8a0; }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { order: -1; }
}

/* Mock tracking card. Replaces a 336KB hotlinked hero PNG. */
.track-card {
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius-lg); padding: 1.3rem; backdrop-filter: blur(6px);
    box-shadow: var(--shadow-lg);
}
.track-card__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.track-card__id { font-size: .8rem; color: #9fb5ac; letter-spacing: .04em; }
.track-card__id b { display: block; font-size: 1.05rem; color: #fff; letter-spacing: .02em; }
.pill {
    padding: .3rem .75rem; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap;
    background: rgba(109, 220, 156, .16); color: #6ddc9c; border: 1px solid rgba(109, 220, 156, .3);
}
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.6rem; position: relative; }
.timeline::before {
    content: ""; position: absolute; left: 7px; top: 10px; bottom: 14px; width: 2px;
    background: linear-gradient(var(--brand), rgba(255, 255, 255, .14));
}
.timeline li { position: relative; padding: 0 0 1.05rem; font-size: .92rem; color: #cadbd4; }
.timeline li::before {
    content: ""; position: absolute; left: -1.6rem; top: 6px; width: 16px; height: 16px;
    border-radius: 50%; background: #0b0f0e; border: 2px solid var(--brand);
}
.timeline li.is-done::before { background: var(--brand); }
.timeline li.is-current::before { border-color: #6ddc9c; box-shadow: 0 0 0 5px rgba(109, 220, 156, .18); }
.timeline li.is-next { color: #7d9189; }
.timeline li.is-next::before { border-color: rgba(255, 255, 255, .2); }
.timeline b { display: block; color: #fff; font-weight: 600; }
.timeline small { color: #8da49b; }

/* ------------------------------------------------------------ track form */
/* Lifted into the hero by a fixed amount, so the overlap is predictable
   instead of depending on the box's own height. */
.track-box {
    position: relative; z-index: 2; margin: -72px auto 0;
    max-width: 920px; padding: 1.4rem 1.5rem; border-radius: var(--radius-lg);
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.track-box h2 { font-size: 1.12rem; margin-bottom: .15rem; }
.track-box > p { margin: 0 0 1rem; font-size: .9rem; color: var(--ink-2); }
.track-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.track-form input {
    flex: 1 1 260px; min-width: 0; padding: .8rem 1rem; font-size: 1rem;
    color: var(--ink); background: var(--surface-2);
    border: 1px solid var(--line); border-radius: 10px;
}
.track-form input:focus { outline: 2px solid var(--brand); outline-offset: 1px; background: var(--surface); }
.track-result {
    margin: .9rem 0 0; padding: .7rem .9rem; border-radius: 10px; font-size: .92rem;
    background: var(--brand-soft); border: 1px solid rgba(26, 143, 76, .25);
}
.track-result[hidden] { display: none; }
.track-result.is-miss { background: rgba(226, 59, 50, .1); border-color: rgba(226, 59, 50, .3); }

@media (max-width: 575px) {
    .track-box { margin-top: -40px; padding: 1.2rem; }
    .track-form .btn { width: 100%; }
}

/* ----------------------------------------------------------------- stats */
.stats { background: var(--night-2); color: #fff; padding: clamp(32px, 4vw, 52px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat b {
    display: block; font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem);
    font-weight: 700; color: #6ddc9c; letter-spacing: -.02em;
}
.stat span { font-size: .9rem; color: #a7bab2; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem; } }

/* ----------------------------------------------------------------- cards */
.grid { display: grid; gap: 1.1rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
    .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .grid--2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
    padding: 1.5rem; border-radius: var(--radius); background: var(--surface);
    border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(26, 143, 76, .35); }
.card h3 { margin-bottom: .35rem; }
.card p { margin: 0; color: var(--ink-2); font-size: .94rem; }

.icon {
    width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 1rem;
    border-radius: 12px; background: var(--brand-soft); color: var(--brand);
}
.icon svg { width: 24px; height: 24px; }
.icon--accent { background: rgba(226, 59, 50, .1); color: var(--accent); }

/* --------------------------------------------------------------- pricing */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-bottom: 1.6rem; }
.tab {
    padding: .6rem 1.2rem; border: 1px solid var(--line); background: var(--surface);
    color: var(--ink-2); border-radius: 999px; font-weight: 600; font-size: .92rem; cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.tab:hover { border-color: var(--brand); color: var(--brand); }
.tab[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

.price-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem; }
/* display: grid beats the browser's own rule for [hidden], so without this
   every zone's prices show at once and the tabs change nothing. */
.price-grid[hidden] { display: none; }
@media (max-width: 900px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .price-grid { grid-template-columns: 1fr; } }
.price {
    text-align: center; padding: 1.3rem .8rem; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--line);
}
.price span { display: block; font-size: .85rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.price b { display: block; margin-top: .4rem; font-size: 1.4rem; color: var(--brand); letter-spacing: -.02em; }
.price small { display: block; color: var(--ink-3); font-size: .78rem; }
.price-note { margin: 1.2rem 0 0; text-align: center; font-size: .88rem; color: var(--ink-3); }

/* ------------------------------------------------------------------- faq */
.faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; align-items: start; }
.faq-col { display: grid; gap: .8rem; align-content: start; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }
details.qa {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: .2rem 1.1rem;
}
details.qa[open] { border-color: rgba(26, 143, 76, .4); }
details.qa summary {
    display: flex; align-items: center; gap: .7rem; padding: 1rem 0; cursor: pointer;
    font-weight: 600; list-style: none;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after {
    content: ""; margin-left: auto; flex: none; width: 9px; height: 9px;
    border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
    transform: rotate(45deg) translateY(-3px); transition: transform .2s ease;
}
details.qa[open] summary::after { transform: rotate(225deg) translateY(-1px); }
details.qa summary svg { width: 20px; height: 20px; flex: none; color: var(--brand); }
details.qa p { margin: 0 0 1rem; padding-left: 1.7rem; color: var(--ink-2); font-size: .94rem; }

/* ------------------------------------------------------------------- cta */
.cta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem;
    padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); color: #fff;
    background: linear-gradient(120deg, #11693a, #1a8f4c 55%, #0f5c33);
    box-shadow: var(--shadow);
}
.cta h2 { color: #fff; margin-bottom: .3rem; }
.cta p { margin: 0; color: rgba(255, 255, 255, .85); }

/* --------------------------------------------------------------- reveal */
/* Scoped to .js so a blocked or failed landing.js leaves the content
   visible rather than hiding half the page behind opacity: 0. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
    .js .reveal { opacity: 1; transform: none; }
}

.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------- public tracking result */
/* The journey card again, on a light page. The hero's version is drawn for
   a near-black background; this inverts the parts that assume it. */
.track-result-page { max-width: 640px; margin-inline: auto; }

.track-card--light {
    background: var(--surface);
    border-color: var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: none;
    color: var(--ink);
}

.track-card--light .track-card__id { color: var(--ink-3); }
.track-card--light .track-card__id b { color: var(--ink); }
.track-card--light .pill {
    background: rgba(26, 143, 76, .12);
    color: var(--brand-dark);
    border-color: rgba(26, 143, 76, .3);
}
.track-card--light .timeline li { color: var(--ink-2); }
.track-card--light .timeline li::before { background: var(--surface); }
.track-card--light .timeline li.is-done::before { background: var(--brand); }
.track-card--light .timeline li.is-next { color: var(--ink-3); }
.track-card--light .timeline li.is-next::before { border-color: var(--line); }
.track-card--light .timeline b { color: var(--ink); }
.track-card--light .timeline small { color: var(--ink-3); }
.track-card--light .timeline::before {
    background: linear-gradient(var(--brand), var(--line));
}

.track-area {
    margin: -.4rem 0 1rem;
    font-size: .9rem;
    color: var(--ink-3);
}

/* ------------------------------------------- journey inside the hero box */
/* The lookup box used to show one line of text. It now holds the whole
   journey, so it needs the shape of a result rather than a sentence. */
.track-journey__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .2rem;
}

.track-journey__no {
    font-size: 1rem;
    letter-spacing: .02em;
    color: var(--ink);
}

.track-journey__status {
    padding: .2rem .65rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    background: rgba(26, 143, 76, .14);
    color: var(--brand-dark);
}

.track-journey__area {
    margin: 0 0 .8rem;
    font-size: .85rem;
    color: var(--ink-3);
}

.track-journey__steps {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1.45rem;
    position: relative;
}

.track-journey__steps::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 8px;
    bottom: 12px;
    width: 2px;
    background: linear-gradient(var(--brand), var(--line));
}

.track-journey__steps li {
    position: relative;
    padding-bottom: .75rem;
    font-size: .86rem;
}

.track-journey__steps li:last-child { padding-bottom: 0; }

.track-journey__steps li::before {
    content: "";
    position: absolute;
    left: -1.45rem;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--brand);
}

.track-journey__steps li.is-next { color: var(--ink-3); }
.track-journey__steps li.is-next::before { border-color: var(--line); }
.track-journey__steps li.is-done::before { background: var(--brand); }

.track-journey__steps b {
    display: block;
    font-weight: 600;
    color: var(--ink);
}

.track-journey__steps li.is-next b { color: var(--ink-3); font-weight: 500; }

.track-journey__steps small { color: var(--ink-3); font-size: .78rem; }
