/* Meesho AI Shipping Optimizer — global public theme (Zesmack)
   Single source of truth for the purple brand theme.
   Edit this file to restyle the entire public site. */

:root {
    --brand-1: #570de0;
    --brand-2: #7c3aed;
    --brand-3: #a855f7;
    --brand-dark: #2a0a63;
    --brand-mid: #3d1595;
    --bg: #f6f4fb;
    --bg-soft: #faf7ff;
    --bg-tint: #f3e5f5;
    --text: #2a2a33;
    --text-soft: #555;
    --muted: #888;
    --border: #ece8f5;
    --accent-warn-bg: #fff8e1;
    --accent-warn-border: #f59f00;
    --accent-error-bg: #ffebee;
    --accent-error-text: #c62828;
    --shadow: 0 8px 28px rgba(87,13,224,0.08);
    --shadow-strong: 0 20px 60px rgba(87,13,224,0.18);
    --radius: 14px;
    --radius-sm: 8px;
    --gradient: linear-gradient(135deg, #570de0 0%, #7c3aed 50%, #a855f7 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-1); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Top nav ---------- */
.site-nav {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 14px 20px;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 1px 0 rgba(87,13,224,0.03);
}
.site-nav .nav-inner { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--brand-dark); font-size: 16px; min-height: 44px; }
.site-nav .brand-badge { width: 32px; height: 32px; border-radius: 8px; background: var(--gradient); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.site-nav .brand-logo { width: 32px; height: 32px; border-radius: 8px; display: block; flex-shrink: 0; }
.site-nav .links { display: flex; align-items: center; }
.site-nav .links a { color: var(--brand-dark); margin: 0 10px; font-weight: 600; font-size: 14px; padding: 8px 0; min-height: 44px; display: inline-flex; align-items: center; }
.site-nav .links a:hover { color: var(--brand-1); text-decoration: none; }
.site-nav .nav-cta { background: var(--gradient); color: #fff !important; padding: 12px 18px; border-radius: var(--radius-sm); font-weight: 700; font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
.site-nav .nav-cta:hover { opacity: 0.92; text-decoration: none; }
.site-nav .nav-cta-mobile { display: none; }
/* Hamburger button — hidden on desktop, shown on mobile via media query */
.site-nav .nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 8px;
    margin-left: auto;
}
.site-nav .nav-toggle:hover { background: var(--bg-tint); }
.site-nav .nav-toggle .bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--brand-dark);
    margin: 5px auto;
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.site-nav .nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav .nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.site-nav .nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    background: var(--gradient);
    color: #fff;
    padding: 72px 20px 64px;
    text-align: center;
}
.hero h1 { font-size: 40px; margin-bottom: 12px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.2; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.15); }
.hero h2, .hero h3 { color: #fff; }
.hero .lead { opacity: 0.96; font-size: 17px; max-width: 720px; margin: 0 auto 22px; color: #fff; }
.hero .badges { display: inline-flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; justify-content: center; }
.hero .badge { background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.3); padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; color: #fff; }
.hero.compact { padding: 56px 20px 48px; }
.hero.compact h1 { font-size: 34px; }

/* ---------- Container ---------- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 22px; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 22px; }
.section { padding: 56px 0; }
.section-tight { padding: 36px 0; }

/* ---------- Card ---------- */
.card {
    background: #fff;
    border-radius: var(--radius);
    padding: 36px 38px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}
.card.tight { padding: 24px 26px; }
.card.flat { box-shadow: none; border: 1px solid var(--border); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { color: var(--brand-dark); line-height: 1.3; }
h2 { font-size: 26px; margin-bottom: 14px; font-weight: 800; }
h2.section-title { text-align: center; margin-bottom: 36px; }
h3 { font-size: 19px; color: var(--brand-mid); margin: 18px 0 8px; font-weight: 700; }
h4 { font-size: 16px; color: var(--brand-mid); margin: 14px 0 6px; font-weight: 700; }

.card h2 { font-size: 21px; margin-top: 30px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--bg-tint); }
.card h2:first-child, .card h2:first-of-type { margin-top: 0; }
.card h3 { font-size: 16px; margin-top: 18px; margin-bottom: 6px; }

p { margin-bottom: 12px; font-size: 15px; }
.lead-text { font-size: 17px; color: var(--text-soft); }
ul, ol { margin: 8px 0 14px 22px; }
li { margin-bottom: 6px; font-size: 15px; }
strong { color: #1a1a22; }
code { background: var(--bg-tint); padding: 2px 6px; border-radius: 4px; font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--brand-dark); }

/* ---------- Badges / pills ---------- */
.pill { display: inline-block; background: var(--bg-tint); color: var(--brand-1); padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.pill-updated { margin-bottom: 22px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    background: var(--gradient);
    color: #fff !important;
    padding: 12px 26px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { opacity: 0.92; transform: translateY(-1px); text-decoration: none; }
.btn.ghost { background: #fff; color: var(--brand-1) !important; border: 2px solid var(--brand-1); }
.btn.ghost:hover { background: var(--bg-tint); }
.btn.white { background: #fff; color: var(--brand-1) !important; }
.btn.lg { padding: 14px 32px; font-size: 16px; }

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.feature {
    background: #fff;
    border-radius: var(--radius);
    padding: 26px;
    border: 1px solid var(--border);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-3); }
.feature .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--gradient); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; margin-bottom: 14px; }
.feature h3 { color: var(--brand-dark); margin: 0 0 8px; font-size: 18px; }
.feature p { color: var(--text-soft); font-size: 14px; margin: 0; }
.feature a.more { display: inline-block; margin-top: 10px; font-weight: 600; font-size: 14px; }

/* ---------- Pricing grid ---------- */
.plans { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.plan {
    background: #fff;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 24px;
    position: relative;
    transition: all .2s ease;
}
.plan:hover { border-color: var(--brand-1); transform: translateY(-3px); }
.plan.popular { border-color: var(--brand-1); box-shadow: var(--shadow-strong); }
.plan .popular-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gradient); color: #fff; font-size: 11px; font-weight: 700; padding: 5px 14px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px; }
.plan h3 { color: var(--brand-dark); font-size: 20px; margin: 0 0 6px; }
.plan .price { font-size: 34px; font-weight: 800; color: var(--brand-1); margin: 8px 0 4px; }
.plan .price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.plan .credits { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.plan ul.features { list-style: none; margin: 0 0 18px; padding: 0; }
.plan ul.features li { padding: 6px 0 6px 22px; position: relative; font-size: 14px; }
.plan ul.features li::before { content: "\2713"; position: absolute; left: 0; color: var(--brand-1); font-weight: 800; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; list-style: none; margin-left: 0; padding-left: 0; }
.steps li { counter-increment: step; position: relative; padding: 14px 16px 14px 54px; background: var(--bg-soft); border-radius: var(--radius-sm); margin-bottom: 10px; }
.steps li::before { content: counter(step); position: absolute; left: 14px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--gradient); color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }

/* ---------- Notice / callouts ---------- */
.notice { background: var(--accent-warn-bg); border-left: 4px solid var(--accent-warn-border); padding: 12px 16px; border-radius: 6px; margin: 14px 0; font-size: 14px; }
.callout { background: var(--bg-tint); border-left: 4px solid var(--brand-1); padding: 14px 18px; border-radius: 6px; margin: 16px 0; font-size: 14px; }

/* ---------- Table ---------- */
table.data { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 14px; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data th { background: var(--bg-soft); color: var(--brand-mid); font-weight: 700; }

/* ---------- Details (FAQ) ---------- */
details.faq { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 10px; }
details.faq[open] { background: var(--bg-tint); }
details.faq summary { cursor: pointer; font-weight: 600; color: var(--brand-dark); font-size: 15px; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before { content: "+"; color: var(--brand-1); font-weight: 800; margin-right: 10px; }
details.faq[open] summary::before { content: "\2013"; }
details.faq p { margin-top: 12px; margin-bottom: 0; }

/* ---------- CTA block ---------- */
.cta-block {
    background: var(--gradient);
    color: #fff;
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    margin: 32px 0;
}
.cta-block h2 { color: #fff; margin-bottom: 10px; font-size: 26px; }
.cta-block p { color: #f3e5f5; margin-bottom: 18px; font-size: 16px; }
.cta-block .btn.white { background: #fff; color: var(--brand-1) !important; }

/* ---------- Blog list ---------- */
.post-list { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.post {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all .2s ease;
}
.post:hover { border-color: var(--brand-3); box-shadow: var(--shadow); transform: translateY(-2px); }
.post .date { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.post h3 { color: var(--brand-dark); margin: 0 0 8px; font-size: 18px; }
.post h3 a { color: inherit; }
.post p { color: var(--text-soft); font-size: 14px; margin: 0 0 12px; }
.post .read-more { font-weight: 600; font-size: 14px; }

article.blog-post .meta { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
article.blog-post h2 { margin-top: 28px; }
article.blog-post img { max-width: 100%; border-radius: var(--radius-sm); margin: 16px 0; }

/* ---------- Footer ---------- */
.site-footer {
    background: #1a0a3d;
    color: #d8ccf5;
    padding: 44px 22px 28px;
    margin-top: 40px;
}
.site-footer .footer-grid { max-width: 1160px; margin: 0 auto 28px; display: grid; gap: 28px; grid-template-columns: 2fr 1fr 1fr 1fr; }
@media (max-width: 820px) { .site-footer .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.site-footer a { color: #d8ccf5; font-size: 14px; display: block; margin-bottom: 6px; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer .brand-col p { color: #b8a7e0; font-size: 13px; margin-top: 10px; max-width: 300px; }
.site-footer .bottom { max-width: 1160px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 18px; text-align: center; font-size: 13px; color: #b8a7e0; }
.site-footer .bottom .disclaimer { font-size: 12px; color: #9c8bc9; margin-top: 6px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-20 { margin-bottom: 20px; }
.mb-32 { margin-bottom: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    /* Hide brand text on small screens to free space for nav */
    .site-nav .brand-text { font-size: 14px; }
    /* Show hamburger, hide desktop CTA — mobile nav has its own CTA inside */
    .site-nav .nav-toggle { display: block; }
    .site-nav .nav-cta { display: none; }
    /* Collapse nav links into a stacked panel that drops down */
    .site-nav .nav-inner { flex-wrap: wrap; }
    .site-nav .links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--border);
    }
    .site-nav .links.is-open { display: flex; }
    .site-nav .links a {
        margin: 0;
        padding: 14px 6px;
        font-size: 16px;
        border-bottom: 1px solid var(--border);
        min-height: 48px;
    }
    .site-nav .links a:last-child { border-bottom: 0; }
    .site-nav .nav-cta-mobile {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        background: var(--gradient);
        color: #fff !important;
        margin-top: 8px;
        padding: 14px 18px !important;
        border-radius: var(--radius-sm);
        font-weight: 700;
        border-bottom: 0 !important;
    }
}
@media (max-width: 600px) {
    .hero { padding: 52px 20px 44px; }
    .hero h1 { font-size: 28px; }
    .hero .lead { font-size: 15px; }
    .card { padding: 24px 20px; }
    .card h2 { font-size: 18px; }
    h2 { font-size: 22px; }
    .site-nav .brand-text { display: none; }
}
