/* ================================================================
   Mastery Copywriting — Modern SaaS Layout
   Fonts: Sora (headings) + Plus Jakarta Sans (body)
   Palette: Deep indigo + bright lime
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Sora:wght@400;500;600;700;800&display=swap');

:root {
    --primary:    #1e1b4b;
    --secondary:  #312e81;
    --accent:     #84cc16;
    --accent-hover:#6db310;
    --background: #f8fafc;
    --surface:    #ffffff;
    --text:       #1e293b;
    --muted:      #64748b;
    --border:     #e2e8f0;
    --border-hover:#cbd5e1;
    --soft-bg:    #f1f5f9;
    --white:      #ffffff;
    --radius:     10px;
    --radius-lg:  16px;
    --shadow:     0 1px 3px rgba(0,0,0,.05), 0 4px 20px rgba(0,0,0,.04);
    --shadow-lg:  0 10px 40px rgba(0,0,0,.07);
    --font-heading: 'Sora', sans-serif;
    --font-body:    'Plus Jakarta Sans', sans-serif;
    --max-width: 1200px;
    --transition: .25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--background); line-height: 1.75; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-hover); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
ul, ol { list-style: none; }

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

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--primary); }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -.015em; }
h3 { font-size: 1.15rem; }
p  { margin-bottom: 1rem; }

.section-tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-heading); font-size: .7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 3px;
    color: var(--accent-hover);
    background: rgba(132,204,22,.1); padding: 6px 14px; border-radius: 20px;
    margin-bottom: 14px;
}
.section-sub { max-width: 580px; margin: 0 auto 48px; color: var(--muted); font-size: 1.02rem; text-align: center; }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px; border-radius: var(--radius);
    font-family: var(--font-heading); font-weight: 600; font-size: .9rem;
    border: none; cursor: pointer; transition: all var(--transition); text-decoration: none;
}
.btn-primary { background: var(--accent); color: var(--primary); }
.btn-primary:hover { background: var(--accent-hover); color: var(--primary); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(132,204,22,.3); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--border-hover); }
.btn-outline:hover { border-color: var(--primary); background: var(--primary); color: var(--white); transform: translateY(-2px); }
.btn-dark { background: var(--primary); color: var(--white); }
.btn-dark:hover { background: var(--secondary); color: var(--white); transform: translateY(-2px); }

/* ── Navbar ────────────────────────────────────────────── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 14px 0;
    background: rgba(248,250,252,.92); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}
.navbar.scrolled { padding: 10px 0; box-shadow: var(--shadow); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { font-family: var(--font-heading); font-weight: 800; font-size: 1.1rem; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.nav-brand .dot { width: 10px; height: 10px; background: var(--accent); border-radius: 50%; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-size: .87rem; font-weight: 500; transition: color var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a.active::after { content: ''; display: block; height: 2px; background: var(--accent); border-radius: 2px; margin-top: 3px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--primary); border-radius: 2px; }

@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .nav-links { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: var(--surface); flex-direction: column; align-items: flex-start; padding: 80px 28px 28px; gap: 16px; transition: right var(--transition); border-left: 1px solid var(--border); box-shadow: var(--shadow-lg); }
    .nav-links.open { right: 0; }
}

/* ── Hero — Split with Floating Cards ──────────────────── */
.hero {
    padding: 150px 0 100px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--background) 60%, rgba(132,204,22,.06) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero-text h1 { margin-bottom: 20px; }
.hero-text h1 .hl { color: var(--accent-hover); }
.hero-text p { font-size: 1.1rem; color: var(--muted); margin-bottom: 32px; max-width: 480px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* floating cards illustration */
.hero-cards { position: relative; min-height: 380px; }
.float-card {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 20px;
    box-shadow: var(--shadow-lg);
    transition: transform 6s ease-in-out;
}
.float-card.c1 { top: 0; left: 10%; width: 220px; animation: floatA 6s ease-in-out infinite; }
.float-card.c2 { top: 80px; right: 0; width: 240px; animation: floatB 7s ease-in-out infinite; }
.float-card.c3 { bottom: 20px; left: 20%; width: 200px; animation: floatA 8s ease-in-out infinite; }
.float-card .fc-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); margin-bottom: 6px; }
.float-card .fc-value { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.float-card .fc-bar { height: 6px; background: var(--soft-bg); border-radius: 6px; margin-top: 10px; overflow: hidden; }
.float-card .fc-bar-fill { height: 100%; border-radius: 6px; background: var(--accent); }

@keyframes floatA { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes floatB { 0%,100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-text p { margin-left: auto; margin-right: auto; }
    .hero-btns { justify-content: center; }
    .hero-cards { display: none; }
}

/* ── Trust Bar ─────────────────────────────────────────── */
.trust-bar { padding: 52px 0; border-bottom: 1px solid var(--border); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.trust-item .tv { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.trust-item .tl { color: var(--muted); font-size: .85rem; }
@media (max-width: 700px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Sections ──────────────────────────────────────────── */
.section { padding: 92px 0; }
.section-alt { background: var(--soft-bg); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { margin-bottom: 10px; }

/* ── Service Cards — Bento-ish Grid ────────────────────── */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px 24px;
    transition: all var(--transition);
}
.svc-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.svc-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(132,204,22,.1);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-hover); margin-bottom: 16px;
}
.svc-card h3 { margin-bottom: 8px; }
.svc-card p { color: var(--muted); font-size: .9rem; margin-bottom: 0; }
@media (max-width: 800px) { .svc-grid { grid-template-columns: 1fr; } }

/* ── Process ───────────────────────────────────────────── */
.proc-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.proc-card {
    display: grid; grid-template-columns: 60px 1fr 180px; gap: 24px; align-items: center;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px 24px;
    transition: border-color var(--transition);
}
.proc-card:hover { border-color: var(--accent); }
.proc-num { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 800; color: rgba(132,204,22,.2); }
.proc-card h3 { margin-bottom: 4px; }
.proc-card p { color: var(--muted); font-size: .9rem; margin-bottom: 0; }
.proc-img { width: 180px; height: 110px; border-radius: var(--radius); object-fit: cover; background: var(--soft-bg); }
@media (max-width: 800px) { .proc-card { grid-template-columns: 1fr; text-align: center; } .proc-img { width: 100%; max-width: 260px; margin: 0 auto; } }

/* ── Pricing ───────────────────────────────────────────── */
.price-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.price-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 32px 26px;
    display: flex; flex-direction: column;
    transition: all var(--transition); position: relative;
}
.price-card.pop { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.price-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--primary); font-family: var(--font-heading); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 4px 16px; border-radius: 16px; }
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.price-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.price-amt { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 800; color: var(--accent-hover); margin-bottom: 18px; }
.price-amt small { font-size: .82rem; color: var(--muted); font-weight: 400; }
.price-feats { flex: 1; margin-bottom: 22px; }
.price-feats li { padding: 6px 0; border-bottom: 1px solid var(--border); color: var(--text); font-size: .88rem; display: flex; align-items: center; gap: 8px; }
.price-feats li::before { content: '✓'; color: var(--accent-hover); font-weight: 700; font-size: .78rem; }
.price-card .btn { width: 100%; justify-content: center; }

/* ── Builder ───────────────────────────────────────────── */
.builder-box { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px 32px; }
.addon-stack { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.addon-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--soft-bg); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: border-color var(--transition); }
.addon-row:hover { border-color: var(--accent); }
.addon-row label { display: flex; align-items: center; gap: 10px; cursor: pointer; flex: 1; font-size: .93rem; }
.addon-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
.addon-cost { font-family: var(--font-heading); font-weight: 600; color: var(--accent-hover); white-space: nowrap; }

.sup-block { margin-bottom: 26px; }
.sup-block label { display: block; margin-bottom: 6px; font-weight: 500; }
.range-bar { display: flex; align-items: center; gap: 14px; }
.range-bar input[type="range"] { flex: 1; accent-color: var(--accent); }
.range-val { font-family: var(--font-heading); font-weight: 600; min-width: 28px; }

.build-total { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-top: 2px solid var(--accent); margin-top: 10px; }
.build-total .bt-label { font-weight: 600; font-size: 1.05rem; }
.build-total .bt-val { font-family: var(--font-heading); font-size: 1.9rem; font-weight: 800; color: var(--accent-hover); }

/* ── Checkout ──────────────────────────────────────────── */
.co-wrap { max-width: 560px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: .85rem; font-weight: 500; color: var(--muted); }
.form-group input, .form-group select, .form-group textarea { padding: 11px 14px; background: var(--soft-bg); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-family: var(--font-body); font-size: .92rem; transition: border-color var(--transition); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.order-box { background: var(--soft-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; margin-bottom: 26px; }
.order-box h3 { margin-bottom: 12px; }
.ol { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.ol.tot { border-bottom: none; border-top: 2px solid var(--accent); margin-top: 6px; padding-top: 12px; font-weight: 700; font-size: 1rem; }
.ol.tot span:last-child { color: var(--accent-hover); }

/* ── About ─────────────────────────────────────────────── */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-split p { color: var(--muted); }
.about-img { border-radius: var(--radius-lg); overflow: hidden; background: var(--soft-bg); min-height: 260px; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 800px) { .about-split { grid-template-columns: 1fr; } }

.vals-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.val-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 20px; text-align: center; transition: border-color var(--transition); }
.val-card:hover { border-color: var(--accent); }
.val-card h3 { color: var(--accent-hover); margin-bottom: 6px; }
.val-card p { color: var(--muted); font-size: .88rem; margin-bottom: 0; }
@media (max-width: 700px) { .vals-grid { grid-template-columns: 1fr; } }

/* ── FAQ ───────────────────────────────────────────────── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; padding: 18px 0; background: none; border: none; color: var(--primary); font-family: var(--font-heading); font-weight: 600; font-size: .95rem; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: color var(--transition); }
.faq-q:hover { color: var(--accent-hover); }
.faq-ic { transition: transform var(--transition); font-size: 1.1rem; color: var(--muted); }
.faq-item.open .faq-ic { transform: rotate(45deg); color: var(--accent-hover); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding: 0 0 18px; color: var(--muted); font-size: .92rem; }

/* ── Contact ───────────────────────────────────────────── */
.ct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.ct-info { display: flex; flex-direction: column; gap: 20px; }
.ct-row { display: flex; gap: 12px; }
.ct-ic { width: 40px; height: 40px; background: rgba(132,204,22,.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--accent-hover); flex-shrink: 0; }
.ct-row h4 { margin-bottom: 2px; font-size: .92rem; }
.ct-row p { color: var(--muted); font-size: .85rem; margin: 0; }
@media (max-width: 800px) { .ct-grid { grid-template-columns: 1fr; } }

/* ── CTA ───────────────────────────────────────────────── */
.cta-band { text-align: center; padding: 72px 24px; background: var(--primary); }
.cta-band h2 { color: var(--white); margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,.6); margin-bottom: 26px; font-size: 1.02rem; }

/* ── Legal ─────────────────────────────────────────────── */
.legal { max-width: 720px; margin: 0 auto; }
.legal h2 { font-size: 1.2rem; margin: 30px 0 8px; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--muted); font-size: .92rem; }

/* ── Page Header ───────────────────────────────────────── */
.pg-head { padding: 140px 0 52px; text-align: center; background: var(--soft-bg); border-bottom: 1px solid var(--border); }
.pg-head h1 { margin-bottom: 10px; }
.pg-head p { color: var(--muted); max-width: 520px; margin: 0 auto; }

/* ── Footer ────────────────────────────────────────────── */
.footer { padding: 56px 0 24px; background: var(--primary); color: rgba(255,255,255,.65); }
.ft-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.ft-brand { color: var(--white); font-weight: 700; }
.ft-brand p { color: rgba(255,255,255,.45); font-size: .85rem; margin-top: 8px; max-width: 260px; }
.footer h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,.35); margin-bottom: 12px; }
.ft-links li { margin-bottom: 7px; }
.ft-links a { color: rgba(255,255,255,.6); font-size: .85rem; }
.ft-links a:hover { color: var(--accent); }
.ft-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .8rem; color: rgba(255,255,255,.35); }
.ft-disc { font-size: .75rem; font-style: italic; color: rgba(255,255,255,.28); margin-top: 6px; }
@media (max-width: 800px) { .ft-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .ft-grid { grid-template-columns: 1fr; } }

/* ── Result Pages ──────────────────────────────────────── */
.res-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 140px 24px 80px; }
.res-icon { font-size: 3.5rem; margin-bottom: 18px; }
.res-page h1 { margin-bottom: 12px; }
.res-page p { color: var(--muted); max-width: 440px; margin: 0 auto 24px; }

/* ── Animations ────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

.text-center { text-align: center; }
.mt-4 { margin-top: 26px; }
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: .9rem; }
.alert-error { background: rgba(220,38,38,.07); border: 1px solid rgba(220,38,38,.18); color: #dc2626; }
.alert-success { background: rgba(132,204,22,.08); border: 1px solid rgba(132,204,22,.2); color: var(--accent-hover); }
