/* Saham247 marketing site — shared styles across index/manual/faq.
   Deliberately self-contained (no build step, no external fonts/CDN) so this
   folder can be deployed as plain static files on saham247.com, independent
   of the app itself (which lives on the app.saham247.com subdomain). */

:root {
    --color-primary: #667eea;
    --color-primary-dark: #5a67d8;
    --color-accent-2: #764ba2;
    --bg-page: #ffffff;
    --bg-surface-2: #f6f7fb;
    --text-primary: #1a1a2e;
    --text-secondary: #5c5c72;
    --text-muted: #8888a0;
    --border: #e7e7f0;
    --success-bg: #dcfce7;
    --success-text: #166534;
    --radius-md: 12px;
    --radius-lg: 20px;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: var(--bg-page);
    line-height: 1.6;
}
a { color: var(--color-primary); }
img, svg { max-width: 100%; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.site-nav {
    position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.92); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.site-nav .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; text-decoration: none; color: var(--text-primary); }
.brand svg { color: var(--color-primary); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.nav-links a:hover, .nav-links a.active { color: var(--color-primary); }
.nav-cta {
    display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: 999px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-2) 100%);
    color: #fff !important; font-weight: 700; font-size: 0.88rem; text-decoration: none;
}
.nav-toggle { display: none; background: none; border: none; padding: 6px; cursor: pointer; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
    text-decoration: none; border: none; cursor: pointer;
}
.btn-primary { background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-2) 100%); color: #fff; }
.btn-outline { background: #fff; color: var(--text-primary); border: 1.5px solid var(--border); }

/* Sections */
section { padding: 72px 0; }
.section-eyebrow { color: var(--color-primary); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 10px; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
h2 { font-size: 2rem; }
.section-lead { color: var(--text-secondary); font-size: 1.05rem; max-width: 620px; margin: 14px 0 0; }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head .section-lead { margin-left: auto; margin-right: auto; }

/* Hero */
.hero { padding: 64px 0 40px; background: linear-gradient(180deg, #f6f7ff 0%, #ffffff 100%); }
.hero .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 2.6rem; letter-spacing: -0.02em; }
.hero .highlight { background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: 0.8rem; color: var(--text-muted); }
.hero-art { width: 100%; }

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card {
    background: var(--bg-surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 28px;
}
.card .icon-wrap {
    width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-2) 100%); color: #fff; margin-bottom: 16px;
}
.card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.card p { color: var(--text-secondary); font-size: 0.92rem; margin: 0; }

.pain-card { border-left: 4px solid #ef4444; }
.solve-card { border-left: 4px solid #22c55e; }

/* Workflow steps */
.workflow { counter-reset: step; }
.workflow-step { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.workflow-step:last-child { border-bottom: none; }
.workflow-step .num {
    counter-increment: step; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
    background: var(--bg-surface-2); border: 1.5px solid var(--border); display: flex; align-items: center;
    justify-content: center; font-weight: 800; color: var(--color-primary);
}
.workflow-step .num::before { content: counter(step); }
.workflow-step h3 { font-size: 1rem; margin-bottom: 4px; }
.workflow-step p { color: var(--text-secondary); font-size: 0.9rem; margin: 0; }

/* Pricing teaser */
.price-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.price-tile { text-align: center; padding: 20px 12px; border-radius: var(--radius-md); border: 1px solid var(--border); }
.price-tile.featured { border-color: var(--color-primary); background: #f6f7ff; }
.price-tile .name { font-weight: 700; font-size: 0.92rem; }
.price-tile .price { font-size: 1.05rem; font-weight: 800; margin-top: 6px; color: var(--color-primary); }
.price-tile .price small { font-size: 0.65rem; color: var(--text-muted); font-weight: 500; display: block; }

/* CTA band */
.cta-band {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-2) 100%); color: #fff;
    border-radius: var(--radius-lg); padding: 56px 40px; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 520px; margin: 12px auto 26px; }
.cta-band .btn-primary { background: #fff; color: var(--color-primary); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 24px; background: var(--bg-surface-2); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 18px; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.88rem; font-weight: 600; }
.footer-disclaimer { font-size: 0.72rem; color: var(--text-muted); line-height: 1.6; max-width: 900px; }
.footer-copy { margin-top: 18px; font-size: 0.78rem; color: var(--text-muted); }

/* Content pages (manual/faq) */
.page-header { padding: 48px 0 8px; text-align: center; }
.page-header h1 { font-size: 2rem; }
.toc { background: var(--bg-surface-2); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px 24px; margin-bottom: 12px; }
.toc h2 { font-size: 0.95rem; margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 20px; font-size: 0.9rem; }
.toc li { margin-bottom: 6px; }
.manual-section { padding: 40px 0; border-bottom: 1px solid var(--border); }
.manual-section:last-of-type { border-bottom: none; }
.manual-section h2 { font-size: 1.4rem; display: flex; align-items: center; gap: 10px; }
.manual-section .step-num {
    width: 32px; height: 32px; border-radius: 50%; background: var(--color-primary); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 800; flex-shrink: 0;
}
.manual-section ul, .manual-section ol { color: var(--text-secondary); font-size: 0.94rem; }
.manual-section p { color: var(--text-secondary); font-size: 0.94rem; }
.tip-box {
    background: #f6f7ff; border: 1px solid #dfe2ff; border-radius: var(--radius-md);
    padding: 14px 18px; font-size: 0.88rem; color: var(--text-secondary); margin-top: 14px;
}
.tip-box strong { color: var(--text-primary); }

.faq-item { border-bottom: 1px solid var(--border); padding: 22px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { font-size: 1.02rem; margin-bottom: 8px; }
.faq-item p, .faq-item li { color: var(--text-secondary); font-size: 0.92rem; }

/* Responsive */
@media (max-width: 900px) {
    .hero .container { grid-template-columns: 1fr; }
    .hero-art { order: -1; max-width: 320px; margin: 0 auto; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .price-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
    .nav-links { position: fixed; inset: 68px 0 0 0; background: #fff; flex-direction: column; padding: 24px; gap: 18px; display: none; }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .price-strip { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 2rem; }
    section { padding: 48px 0; }
    .cta-band { padding: 40px 24px; }
}
