/* =============================================================
   AI RFQ landing page — styles.css
   Color palette mirrors procuman.com / ai.procuman.io (primary
   blue #1d4ed8, light surface, navy text) so the marketing site
   feels like part of the same product as the app.
   ============================================================= */

:root {
    --primary:        #1d4ed8;   /* royal blue — used by the AI RFQ app */
    --primary-dark:   #1e3a8a;   /* hover/active for the primary CTA */
    --primary-soft:   #eff4ff;   /* tinted background for cards/hero */
    --primary-tint:   #dbe6ff;   /* icon-disc background, divider lines */
    --accent:         #16a34a;   /* green for success/check icons */
    --accent-soft:    #dcfce7;
    --warning:        #b45309;   /* used sparingly for highlight tags */
    --bg:             #ffffff;
    --bg-alt:         #f8fafc;
    --bg-deep:        #f1f5f9;
    --text:           #0f172a;
    --text-muted:     #475569;
    --text-soft:      #64748b;
    --border:         #e2e8f0;
    --border-strong:  #cbd5e1;
    --shadow-sm:      0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow:         0 4px 14px rgba(15, 23, 42, 0.06);
    --shadow-lg:      0 12px 40px rgba(15, 23, 42, 0.10);
    --radius:         10px;
    --radius-lg:      16px;
    --font:           -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                      "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --mono:           ui-monospace, SFMono-Regular, "SF Mono", Menlo,
                      Consolas, monospace;
    --maxw:           1200px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 120ms ease;
}
a:hover { color: var(--primary-dark); text-decoration: underline; }

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

h1, h2, h3, h4 {
    color: var(--text);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.6em 0;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem 0; }

ul, ol { margin: 0 0 1rem 1.2rem; }
li { margin: 0 0 0.4rem 0; }

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 120ms ease;
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn--primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 1px 2px rgba(29, 78, 216, 0.25);
}
.btn--primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(29, 78, 216, 0.25); }
.btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn--ghost:hover { background: var(--bg-alt); color: var(--text); }
.btn--lg { padding: 14px 28px; font-size: 16px; }
.btn--xl { padding: 16px 32px; font-size: 17px; }

.eyebrow {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 16px 0;
}

.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--accent-soft);
    color: var(--accent);
}
.tag--ai    { background: var(--primary-soft); color: var(--primary); }
.tag--green { background: var(--accent-soft); color: var(--accent); }
.tag--muted { background: var(--bg-deep); color: var(--text-soft); }

/* ---------- Header / nav ----------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--border);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 24px;
}
.site-header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text);
}
.site-header__logo img { height: 36px; width: auto; }
.site-header__nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}
.site-header__nav a {
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
    transition: all 120ms ease;
}
.site-header__nav a:hover { background: var(--bg-alt); color: var(--text); text-decoration: none; }
.site-header__actions { display: flex; align-items: center; gap: 8px; }

.site-header__toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text);
}
.site-header__toggle:hover { background: var(--bg-alt); }

@media (max-width: 880px) {
    .site-header__nav { display: none; }
    .site-header__toggle { display: inline-flex; align-items: center; justify-content: center; }
    .site-header__actions .btn--ghost { display: none; }
    .site-header__nav.is-open {
        display: flex;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        padding: 12px 16px;
        box-shadow: var(--shadow);
    }
    .site-header__nav.is-open a {
        padding: 12px 14px;
        border-radius: 8px;
        text-align: left;
    }
}

/* ---------- Hero ------------------------------------------- */
.hero {
    position: relative;
    padding: 80px 0 96px 0;
    background:
        radial-gradient(1200px 600px at 100% 0%, var(--primary-soft) 0%, transparent 60%),
        radial-gradient(800px 500px at 0% 50%, #e0e7ff 0%, transparent 60%),
        var(--bg);
    overflow: hidden;
}
.hero__grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 56px;
    align-items: center;
}
.hero h1 {
    margin: 0 0 20px 0;
}
.hero h1 .accent { color: var(--primary); }
.hero__lede {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin: 0 0 32px 0;
    max-width: 540px;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__trust {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 32px;
    color: var(--text-soft);
    font-size: 13px;
}
.hero__trust .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border-strong); }

/* Visual product mock on the right of the hero */
.hero__mock {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 22px;
    transform: rotate(-1.5deg);
    transition: transform 240ms ease;
}
.hero__mock:hover { transform: rotate(0deg) translateY(-2px); }
.hero__mock__row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--bg-alt);
    margin-bottom: 8px;
    font-size: 13px;
}
.hero__mock__row:last-child { margin-bottom: 0; }
.hero__mock__row .num {
    width: 22px; height: 22px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}
.hero__mock__row .name { font-weight: 600; color: var(--text); }
.hero__mock__row .meta { margin-left: auto; color: var(--text-soft); font-size: 12px; }
.hero__mock__head {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 14px;
    font-size: 12px;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}
.hero__mock__head::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
}
.hero__mock__bid {
    background: var(--primary-soft);
    border: 1px solid var(--primary-tint);
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.hero__mock__bid b { color: var(--primary-dark); }

@media (max-width: 880px) {
    .hero { padding: 56px 0 64px 0; }
    .hero__grid { grid-template-columns: 1fr; gap: 36px; }
    .hero__lede { max-width: 100%; }
}

/* ---------- Generic section -------------------------------- */
section { padding: 80px 0; }
section + section { padding-top: 0; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 48px auto; }
.section__head p { color: var(--text-muted); font-size: 1.0625rem; margin: 0; }

.section--alt { background: var(--bg-alt); }

/* ---------- What is AI RFQ --------------------------------- */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}
.about__points { margin: 24px 0 0 0; padding: 0; list-style: none; }
.about__points li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.about__points li:last-child { border-bottom: 0; }
.about__points .ico {
    flex: 0 0 auto;
    width: 32px; height: 32px;
    border-radius: 8px;
    background: var(--primary-soft);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.about__points b { display: block; color: var(--text); margin-bottom: 2px; }
.about__points span { color: var(--text-muted); font-size: 14px; }
.about__visual {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
}
.about__visual h4 { font-size: 13px; color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 16px 0; }
.about__visual__row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.about__visual__row:last-child { border-bottom: 0; }
.about__visual__row .label { color: var(--text-soft); width: 110px; }
.about__visual__row .val { color: var(--text); font-weight: 600; }

@media (max-width: 880px) {
    .about__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Process (3 steps) ------------------------------ */
.process__diagram {
    margin-top: 40px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 28px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.process__steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 20px;
    align-items: stretch;
}
.process-step {
    position: relative;
    text-align: center;
    padding: 8px 12px 8px 12px;
}
.process-step__badge {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto 16px auto;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 22px;
    box-shadow: 0 0 0 6px var(--primary-soft);
    position: relative;
}
.process-step__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px auto;
    color: var(--primary);
}
.process-step__icon svg { width: 100%; height: 100%; }
.process-step h3 { margin: 0 0 6px 0; font-size: 1.125rem; }
.process-step p { color: var(--text-muted); font-size: 14px; margin: 0 0 8px 0; }
.process-step__example {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    background: var(--bg-alt);
    border: 1px dashed var(--border-strong);
    border-radius: 8px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-muted);
}
.process-arrow {
    align-self: center;
    color: var(--primary);
    opacity: 0.7;
}
.process-arrow svg { width: 36px; height: 36px; }

.process__timeline {
    margin-top: 48px;
    background: linear-gradient(135deg, var(--primary-soft) 0%, #f0f9ff 100%);
    border: 1px solid var(--primary-tint);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.process__timeline__block { text-align: center; }
.process__timeline__block .num {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.process__timeline__block .lbl {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}
.process__timeline__vs {
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 880px) {
    .process__steps {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .process-arrow { transform: rotate(90deg); justify-self: center; }
    .process__timeline { flex-direction: column; }
}

/* ---------- Benefits / features grid ----------------------- */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 180ms ease;
}
.feature:hover {
    border-color: var(--primary-tint);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.feature__icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 8px 0; font-size: 1.0625rem; }
.feature p { color: var(--text-muted); font-size: 14px; margin: 0; }

@media (max-width: 880px) {
    .features { grid-template-columns: 1fr; }
}

/* ---------- Pricing --------------------------------------- */
.pricing {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.plan {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 180ms ease;
}
.plan:hover { box-shadow: var(--shadow); }
.plan--featured {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.plan--featured::before {
    content: "Most popular";
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: 999px;
    white-space: nowrap;
}
.plan h3 { margin: 0 0 8px 0; font-size: 1.125rem; }
.plan__price { display: flex; align-items: baseline; gap: 4px; margin: 8px 0 4px 0; }
.plan__price .num { font-size: 2.25rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.plan__price .per { color: var(--text-muted); font-size: 14px; }
.plan__desc { color: var(--text-muted); font-size: 13px; margin: 0 0 16px 0; min-height: 36px; }
.plan__feat {
    list-style: none;
    margin: 0 0 24px 0;
    padding: 16px 0 0 0;
    border-top: 1px solid var(--border);
}
.plan__feat li {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 8px;
}
.plan__feat li::before {
    content: "✓";
    color: var(--accent);
    font-weight: 700;
    flex: 0 0 auto;
}
.plan__cta { margin-top: auto; }

@media (max-width: 1080px) {
    .pricing { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .pricing { grid-template-columns: 1fr; }
}

/* ---------- FAQ ------------------------------------------ */
.faq {
    max-width: 800px;
    margin: 0 auto;
}
.faq details {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    transition: all 120ms ease;
}
.faq details[open] {
    border-color: var(--primary-tint);
    box-shadow: var(--shadow-sm);
}
.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    color: var(--primary);
    font-weight: 700;
    font-size: 22px;
    line-height: 1;
    transition: transform 120ms ease;
    flex: 0 0 auto;
}
.faq details[open] summary::after { content: "−"; }
.faq__body {
    padding: 0 22px 18px 22px;
    color: var(--text-muted);
    font-size: 15px;
}

/* ---------- Final CTA ------------------------------------ */
.final-cta {
    background:
        radial-gradient(1000px 400px at 50% 0%, rgba(29, 78, 216, 0.18) 0%, transparent 60%),
        var(--primary);
    color: #fff;
    text-align: center;
    padding: 80px 0;
}
.final-cta h2 { color: #fff; margin: 0 0 16px 0; }
.final-cta p { color: rgba(255, 255, 255, 0.85); font-size: 1.125rem; max-width: 640px; margin: 0 auto 28px auto; }
.final-cta .btn--primary {
    background: #fff;
    color: var(--primary);
}
.final-cta .btn--primary:hover { background: var(--bg-alt); color: var(--primary-dark); }

/* ---------- Footer --------------------------------------- */
.site-footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 56px 0 32px 0;
}
.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.site-footer__brand img { height: 36px; width: auto; margin-bottom: 16px; }
.site-footer__brand p { color: var(--text-muted); font-size: 14px; max-width: 320px; }
.site-footer__col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-soft); margin: 0 0 14px 0; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col li { margin-bottom: 8px; }
.site-footer__col a { color: var(--text-muted); font-size: 14px; }
.site-footer__col a:hover { color: var(--text); }
.site-footer__bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--text-soft);
    font-size: 13px;
}
@media (max-width: 880px) {
    .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
    .site-footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Animations (respect motion prefs) ------------ */
@media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; transform: translateY(12px); transition: opacity 480ms ease, transform 480ms ease; }
    .reveal.is-visible { opacity: 1; transform: translateY(0); }
}
