/* ==========================================================
   SproutAI — Premium Design System
   Palette: Soft cream background, signal green accent, ink text
   Typography: Fraunces (display) + Inter (UI)
   ========================================================== */

:root {
    --cream-50:  #FFFBF0;
    --cream-100: #FDF6E3;
    --cream-200: #F7ECCB;
    --cream-300: #EFE0AF;
    --ink-900:   #0E1412;
    --ink-700:   #2B3633;
    --ink-500:   #5B6A66;
    --ink-300:   #9BA8A4;
    --ink-100:   #D9E0DE;
    --green-500: #25D366;   /* WhatsApp */
    --green-600: #1EBE5D;
    --green-700: #15A34A;
    --green-50:  #E9FBEF;
    --amber-500: #E2B53A;
    --danger:    #D64545;
    --shadow-sm: 0 1px 2px rgba(14,20,18,.05), 0 1px 1px rgba(14,20,18,.04);
    --shadow-md: 0 6px 20px -6px rgba(14,20,18,.12), 0 2px 6px rgba(14,20,18,.05);
    --shadow-lg: 0 20px 50px -20px rgba(14,20,18,.25), 0 8px 20px -10px rgba(14,20,18,.15);
    --radius-sm: .5rem;
    --radius-md: .875rem;
    --radius-lg: 1.25rem;
    --radius-xl: 1.75rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-900);
    background: var(--cream-100);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Typography ---------- */
.font-display { font-family: 'Fraunces', 'Georgia', serif; letter-spacing: -0.02em; font-weight: 500; }
.font-mono    { font-family: 'JetBrains Mono', ui-monospace, monospace; }

h1, h2, h3, h4 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin: 0; color: var(--ink-900); }
h1 { font-size: clamp(2.25rem, 5vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.625rem); }
h4 { font-size: 1.125rem; }
p  { margin: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }

.section { padding: 4rem 0; }
@media (min-width: 768px) { .section { padding: 6rem 0; } }
@media (min-width: 1024px) { .section { padding: 7rem 0; } }

/* ---------- Navigation ---------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(253, 246, 227, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid rgba(14,20,18,.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .625rem; font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 1.375rem; letter-spacing: -0.02em; }
.brand-mark {
    display: grid; place-items: center;
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--green-500), var(--green-700));
    color: #fff;
    box-shadow: 0 4px 12px -2px rgba(37,211,102,.5);
}
.nav-links { display: none; gap: 2rem; font-size: .9375rem; color: var(--ink-700); }
.nav-links a { transition: color .15s; }
.nav-links a:hover { color: var(--green-700); }
.nav-cta { display: flex; align-items: center; gap: .75rem; }
@media (min-width: 960px) { .nav-links { display: flex; } }

.mobile-menu-btn { background: transparent; border: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--ink-900); }
.mobile-menu-btn:hover { background: rgba(14,20,18,.06); }
@media (min-width: 960px) { .mobile-menu-btn { display: none; } }

.mobile-panel { display: none; padding: 1rem 1.25rem 1.5rem; border-top: 1px solid rgba(14,20,18,.06); background: var(--cream-100); }
.mobile-panel.open { display: block; }
.mobile-panel a { display: block; padding: .75rem 0; font-size: 1rem; color: var(--ink-700); border-bottom: 1px solid rgba(14,20,18,.05); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .75rem 1.25rem;
    border-radius: 999px;
    font-weight: 500; font-size: .9375rem;
    transition: all .2s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}
.btn-primary {
    background: var(--green-500); color: #fff;
    box-shadow: 0 6px 20px -8px rgba(37,211,102,.65), inset 0 -2px 0 rgba(0,0,0,.08);
}
.btn-primary:hover { background: var(--green-600); transform: translateY(-1px); box-shadow: 0 10px 28px -10px rgba(37,211,102,.8), inset 0 -2px 0 rgba(0,0,0,.08); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--ink-900); border-color: rgba(14,20,18,.12); }
.btn-ghost:hover { background: rgba(14,20,18,.04); border-color: rgba(14,20,18,.2); }
.btn-dark { background: var(--ink-900); color: var(--cream-50); }
.btn-dark:hover { background: var(--ink-700); }
.btn-lg { padding: 1rem 1.75rem; font-size: 1rem; }
.btn-sm { padding: .5rem .9rem; font-size: .875rem; }
.btn-block { width: 100%; }

/* ---------- Cards ---------- */
.card {
    background: #fff;
    border: 1px solid rgba(14,20,18,.06);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(37,211,102,.25); }
.card-body { padding: 1.75rem; }
.card-title { font-family: 'Fraunces', Georgia, serif; font-size: 1.375rem; margin-bottom: .5rem; }
.card-desc  { color: var(--ink-500); font-size: .95rem; margin-bottom: 1.25rem; }
.price-line { display: flex; align-items: baseline; gap: .4rem; margin-bottom: 1rem; }
.price-line .amount { font-family: 'Fraunces', Georgia, serif; font-size: 2rem; font-weight: 500; }
.price-line .currency { color: var(--ink-500); font-size: .9rem; }

/* ---------- Feature list ---------- */
.feature-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .625rem; }
.feature-list li { position: relative; padding-left: 1.75rem; font-size: .9375rem; color: var(--ink-700); }
.feature-list li::before {
    content: ""; position: absolute; left: 0; top: .25rem;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315A34A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- Badges ---------- */
.badge {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .375rem .75rem;
    background: var(--cream-200);
    color: var(--ink-700);
    border-radius: 999px;
    font-size: .8125rem; font-weight: 500;
    border: 1px solid rgba(14,20,18,.05);
}
.badge-green { background: var(--green-50); color: var(--green-700); border-color: rgba(21,163,74,.15); }
.badge-amber { background: #FCF2D7; color: #8B6A16; border-color: rgba(139,106,22,.15); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 5rem 0 6rem;
    overflow: hidden;
    background: linear-gradient(180deg, var(--cream-100) 0%, var(--cream-50) 100%);
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(600px circle at 15% 20%, rgba(37,211,102,.10), transparent 50%),
        radial-gradient(400px circle at 85% 80%, rgba(226,181,58,.10), transparent 50%);
    pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 4rem; } }
.hero-eyebrow { margin-bottom: 1.25rem; }
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 em { font-style: italic; color: var(--green-700); }
.hero-lede { font-size: 1.15rem; color: var(--ink-500); max-width: 560px; margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.5rem; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding-top: 2rem; border-top: 1px solid rgba(14,20,18,.08); }
.hero-stats .stat .num { font-family: 'Fraunces', Georgia, serif; font-size: 1.75rem; font-weight: 500; color: var(--ink-900); }
.hero-stats .stat .lbl { font-size: .8125rem; color: var(--ink-500); margin-top: .15rem; }

/* Hero illustration card (the "resume" floating mock) */
.hero-visual { position: relative; perspective: 1200px; }
.resume-mock {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    border: 1px solid rgba(14,20,18,.05);
    transform: rotate(-2deg);
    position: relative;
    max-width: 380px;
    margin: 0 auto;
    animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty {
    0%,100% { transform: rotate(-2deg) translateY(0); }
    50%     { transform: rotate(-1deg) translateY(-8px); }
}
.resume-mock::after {
    content: ""; position: absolute; right: -18px; bottom: -18px;
    width: 120px; height: 120px; border-radius: 28px;
    background: linear-gradient(135deg, var(--green-500), var(--green-700));
    z-index: -1; opacity: .9;
    box-shadow: 0 30px 60px -20px rgba(37,211,102,.5);
}
.resume-avatar { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, var(--amber-500), #C28E1F); }
.resume-header { display: flex; align-items: center; gap: .875rem; margin-bottom: 1.5rem; }
.resume-name { font-family: 'Fraunces', serif; font-size: 1.125rem; font-weight: 500; }
.resume-role { font-size: .8125rem; color: var(--ink-500); }
.bar { height: 10px; background: var(--cream-200); border-radius: 999px; margin: .5rem 0; }
.bar.w-90 { width: 90%; } .bar.w-70 { width: 70%; } .bar.w-60 { width: 60%; } .bar.w-45 { width: 45%; } .bar.w-80 { width: 80%; }
.resume-section-title { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--green-700); font-weight: 600; margin-top: 1.25rem; margin-bottom: .5rem; }
.ats-pill { position: absolute; top: -20px; right: -20px; background: #fff; border: 1px solid rgba(37,211,102,.25); border-radius: 999px; padding: .5rem 1rem; font-size: .8125rem; color: var(--green-700); font-weight: 600; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: .4rem; transform: rotate(6deg); }

/* ---------- Trust strip ---------- */
.trust-strip { padding: 2rem 0; border-top: 1px solid rgba(14,20,18,.06); border-bottom: 1px solid rgba(14,20,18,.06); background: var(--cream-50); }
.trust-strip .row { display: flex; flex-wrap: wrap; gap: 2rem 3rem; align-items: center; justify-content: center; color: var(--ink-500); font-size: .875rem; }
.trust-strip .logo-tile { font-family: 'Fraunces', serif; font-size: 1.1rem; font-weight: 500; color: var(--ink-700); opacity: .75; }

/* ---------- Section eyebrow ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; color: var(--green-700); font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .15em; margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--green-500); }

/* ---------- Grid of cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Process / steps ---------- */
.step {
    position: relative;
    padding: 2rem 1.75rem;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(14,20,18,.06);
    box-shadow: var(--shadow-sm);
}
.step-num { font-family: 'Fraunces', serif; font-size: 2.5rem; color: var(--green-500); opacity: .9; line-height: 1; margin-bottom: .75rem; font-weight: 400; }
.step h4 { margin-bottom: .5rem; }
.step p { color: var(--ink-500); font-size: .9375rem; }

/* ---------- Testimonials ---------- */
.testimonial {
    background: #fff; border: 1px solid rgba(14,20,18,.06);
    border-radius: var(--radius-lg); padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}
.testimonial blockquote { margin: 0 0 1.25rem; font-family: 'Fraunces', serif; font-size: 1.125rem; line-height: 1.5; font-weight: 400; color: var(--ink-900); }
.testimonial blockquote::before { content: "\201C"; font-size: 2.25rem; color: var(--green-500); line-height: 0.2; margin-right: .25rem; vertical-align: -.2em; }
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--cream-300), var(--amber-500)); display:grid; place-items:center; color:#fff; font-weight:600; font-size:.8125rem; }
.testimonial-meta .name { font-weight: 600; font-size: .9375rem; }
.testimonial-meta .role { font-size: .8125rem; color: var(--ink-500); }

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid rgba(14,20,18,.08); }
.faq-item summary {
    cursor: pointer; list-style: none;
    padding: 1.5rem 0;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    font-family: 'Fraunces', serif; font-size: 1.15rem; font-weight: 500;
    color: var(--ink-900);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--cream-200); color: var(--ink-700);
    display: grid; place-items: center; transition: transform .25s ease, background .2s;
    flex-shrink: 0;
}
.faq-item[open] summary .icon { transform: rotate(45deg); background: var(--green-500); color: #fff; }
.faq-item .answer { padding: 0 0 1.5rem; color: var(--ink-500); font-size: .9375rem; line-height: 1.65; max-width: 720px; }

/* ---------- CTA section ---------- */
.cta-band {
    background: var(--ink-900); color: var(--cream-50);
    border-radius: var(--radius-xl);
    padding: 4rem 2rem;
    position: relative; overflow: hidden;
    text-align: center;
}
.cta-band::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(500px at 20% 10%, rgba(37,211,102,.15), transparent 60%),
        radial-gradient(400px at 80% 90%, rgba(226,181,58,.1), transparent 60%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: 1rem; }
.cta-band p  { color: rgba(255,255,255,.75); max-width: 620px; margin: 0 auto 2rem; font-size: 1.1rem; }

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 1.25rem; }
.field label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: .5rem; color: var(--ink-700); }
.field input, .field textarea, .field select {
    width: 100%;
    padding: .875rem 1rem;
    border: 1px solid rgba(14,20,18,.12);
    border-radius: var(--radius-md);
    background: #fff; color: var(--ink-900);
    font-family: inherit; font-size: .9375rem;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: var(--green-500);
    box-shadow: 0 0 0 4px rgba(37,211,102,.15);
}
.field textarea { min-height: 120px; resize: vertical; }
.field .help { font-size: .8125rem; color: var(--ink-500); margin-top: .375rem; }

.form-card {
    background: #fff; border-radius: var(--radius-xl);
    padding: 2.5rem; box-shadow: var(--shadow-md);
    border: 1px solid rgba(14,20,18,.05);
}

/* ---------- Flash messages ---------- */
.flash { padding: 1rem 1.25rem; border-radius: var(--radius-md); margin-bottom: 1.25rem; font-size: .9375rem; }
.flash-success { background: var(--green-50); color: var(--green-700); border: 1px solid rgba(21,163,74,.2); }
.flash-error   { background: #FDECEC; color: var(--danger); border: 1px solid rgba(214,69,69,.25); }
.flash-info    { background: #EEF5FF; color: #2563EB; border: 1px solid rgba(37,99,235,.2); }

/* ---------- Footer ---------- */
.footer { background: var(--ink-900); color: rgba(253,246,227,.72); padding: 4rem 0 2rem; }
.footer a { color: inherit; }
.footer a:hover { color: var(--green-500); }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1.5fr 1fr 1fr 1fr; margin-bottom: 3rem; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h5 { color: #fff; font-size: .875rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .12em; font-family: 'Inter', sans-serif; font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .625rem; font-size: .9rem; }
.footer .tagline { color: rgba(253,246,227,.55); font-size: .9rem; max-width: 340px; margin-top: 1rem; }
.footer-bottom { padding-top: 2rem; border-top: 1px solid rgba(253,246,227,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .8125rem; color: rgba(253,246,227,.5); }

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Dashboard ---------- */
.dash-layout { display: grid; gap: 2rem; grid-template-columns: 260px 1fr; padding: 2.5rem 0; }
@media (max-width: 900px) { .dash-layout { grid-template-columns: 1fr; } }
.dash-side { background: #fff; border-radius: var(--radius-lg); padding: 1.5rem; border: 1px solid rgba(14,20,18,.06); box-shadow: var(--shadow-sm); height: fit-content; position: sticky; top: 90px; }
.dash-side a { display: flex; align-items: center; gap: .625rem; padding: .75rem .875rem; border-radius: var(--radius-md); font-size: .9375rem; color: var(--ink-700); margin-bottom: .25rem; }
.dash-side a:hover { background: var(--cream-100); }
.dash-side a.active { background: var(--green-50); color: var(--green-700); font-weight: 500; }
.dash-main { display: grid; gap: 1.5rem; }
.panel { background: #fff; border: 1px solid rgba(14,20,18,.06); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); }
.kpi-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.kpi { background: #fff; border: 1px solid rgba(14,20,18,.06); border-radius: var(--radius-md); padding: 1.25rem 1.5rem; }
.kpi .kpi-num { font-family: 'Fraunces', serif; font-size: 2rem; font-weight: 500; }
.kpi .kpi-lbl { font-size: .8125rem; color: var(--ink-500); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { text-align: left; padding: .875rem 1rem; border-bottom: 1px solid rgba(14,20,18,.06); }
.table th { font-weight: 600; color: var(--ink-500); text-transform: uppercase; font-size: .75rem; letter-spacing: .08em; background: var(--cream-50); }
.table tbody tr:hover { background: var(--cream-50); }
.status { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .625rem; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.status-success { background: var(--green-50); color: var(--green-700); }
.status-pending { background: #FCF2D7; color: #8B6A16; }
.status-failed  { background: #FDECEC; color: var(--danger); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.max-prose { max-width: 720px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-2 { margin-bottom: .5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.muted { color: var(--ink-500); }
.hr { height: 1px; background: rgba(14,20,18,.08); margin: 2rem 0; border: 0; }
