/* MapTect - Lightweight Flat Public & SEO Stylesheet (Zero gradients, sharp radii) */

:root {
    --dark-bg: #0f172a;
    --dark-surface: #1e293b;
    --dark-border: rgba(148, 163, 184, 0.18);
    --dark-text: #f8fafc;
    --dark-muted: #94a3b8;

    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --surface: #ffffff;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --text: #0f172a;
    --text-muted: #475569;
    --text-dim: #64748b;

    --brand: #0284c7;
    --brand-hover: #0369a1;
    --brand-soft: #f0f9ff;
    --brand-border: #bae6fd;
    --brand-on-dark: #38bdf8;

    --radius-sm: 3px;
    --radius-md: 4px;
    --radius-lg: 6px;
    --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }

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

/* Header (Dark) */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background-color: var(--dark-bg);
    border-bottom: 1px solid var(--dark-border);
}

.header-inner {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.brand-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background-color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 26px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark-muted);
}

.nav-links a:hover,
.nav-links a.active { color: #ffffff; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Buttons (Flat, crisp) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    font-family: inherit;
    text-align: center;
}

.btn-sm { padding: 8px 14px; font-size: 0.8125rem; }
.btn-md { padding: 10px 18px; font-size: 0.875rem; }
.btn-lg { padding: 13px 22px; font-size: 0.9375rem; }
.btn-full { width: 100%; }

.btn-primary { background-color: var(--brand); color: #ffffff; }
.btn-primary:hover { background-color: var(--brand-hover); }

.btn-secondary { background-color: #ffffff; color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background-color: #f1f5f9; }

.btn-secondary-dark { background-color: var(--dark-surface); color: #e2e8f0; border-color: rgba(148, 163, 184, 0.3); }
.btn-secondary-dark:hover { background-color: #334155; color: #ffffff; }

.btn-ghost { background-color: transparent; color: var(--dark-muted); }
.btn-ghost:hover { color: #ffffff; background-color: rgba(148, 163, 184, 0.12); }

/* Hero (Dark 2-column) */
.hero {
    background-color: var(--dark-bg);
    color: var(--dark-text);
    padding: 56px 0 64px;
    border-bottom: 1px solid var(--dark-border);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-on-dark);
    margin-bottom: 12px;
}

.hero-title {
    font-size: clamp(1.9rem, 3.8vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1rem;
    color: #cbd5e1;
    margin-bottom: 26px;
    max-width: 560px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.hero-note {
    font-size: 0.8rem;
    color: var(--dark-muted);
}

.hero-visual {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background-color: var(--dark-surface);
}

.hero-visual img { width: 100%; height: auto; display: block; }

/* Facts Bar (Light, replaces fake social proof) */
.facts-bar {
    background-color: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
}

.facts-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 32px;
    list-style: none;
    padding: 0;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-muted);
}

.facts-list li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.facts-list i { color: var(--brand); font-size: 1.1rem; }

/* Light Content Sections */
.section { padding: 68px 0; background-color: var(--bg); }
.section-alt { background-color: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 44px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand);
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(1.5rem, 2.8vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.22;
    color: var(--text);
    margin-bottom: 10px;
}

.section-desc { font-size: 0.94rem; color: var(--text-muted); }

/* Grids & Cards */
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }

.card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px;
}

.card h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.card p { font-size: 0.875rem; color: var(--text-muted); }

/* Feature Grid (2x3 scannable) */
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.feature-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background-color: var(--brand-soft);
    border: 1px solid var(--brand-border);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-item h3 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.feature-item p { font-size: 0.84rem; color: var(--text-muted); line-height: 1.5; }

/* Steps list (beside PDF preview) */
.steps-stack { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }

.step-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.step-num {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    background-color: var(--brand);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.step-row h3 { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.step-row p { font-size: 0.84rem; color: var(--text-muted); }

.media-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-strong);
    background-color: var(--surface);
}

/* Interactive 6-branch Tabs */
.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 8px 14px;
    border-radius: var(--radius-md);
    background-color: #ffffff;
    border: 1px solid var(--border-strong);
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: inherit;
    transition: all 0.15s ease;
}

.tab-btn:hover { color: var(--text); border-color: var(--brand); }
.tab-btn.active { background-color: var(--brand); border-color: var(--brand); color: #ffffff; }

.tab-panel {
    display: none;
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 26px;
}

.tab-panel.active { display: block; }
.tab-panel h3 { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.tab-panel p { font-size: 0.9rem; color: var(--text-muted); max-width: 780px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background-color: var(--bg-alt);
    border: 1px solid var(--border);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Comparison Table */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background-color: #ffffff;
}

.compare-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.compare-table th,
.compare-table td {
    padding: 13px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.compare-table th {
    background-color: var(--bg-alt);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.compare-table th.col-highlight { color: var(--brand); background-color: var(--brand-soft); }
.compare-table td.col-highlight { background-color: var(--brand-soft); color: var(--text); font-weight: 600; }
.compare-table tr:last-child td { border-bottom: none; }

/* Checklist */
.check-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.check-list li { display: flex; align-items: flex-start; gap: 9px; }
.check-list i { font-size: 1.05rem; flex-shrink: 0; margin-top: 2px; }
.icon-ok { color: var(--brand); }
.icon-muted { color: #94a3b8; }
.text-muted-item { color: #94a3b8; }

/* Pricing */
.pricing-card {
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-card.featured {
    border: 2px solid var(--brand);
}

.pricing-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.pricing-name { font-size: 1.1rem; font-weight: 700; color: var(--text); }

.badge-popular {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    background-color: var(--brand-soft);
    border: 1px solid var(--brand-border);
    color: var(--brand);
}

.pricing-desc { font-size: 0.8125rem; color: var(--text-muted); min-height: 2.5em; }
.pricing-price { display: flex; align-items: baseline; gap: 6px; margin: 16px 0; }
.pricing-amount { font-size: 1.95rem; font-weight: 800; color: var(--text); }
.pricing-period { font-size: 0.8125rem; color: var(--text-dim); }
.pricing-features { border-top: 1px solid var(--border); padding-top: 16px; margin-bottom: 22px; }
.pricing-features strong { color: var(--text); }

/* Knowledge Base Cards & Filter */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
}

.article-card {
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s ease;
}

.article-card:hover { border-color: var(--brand); }
.article-card.hidden { display: none; }
.article-thumb { aspect-ratio: 16 / 9; background-color: var(--dark-bg); overflow: hidden; border-bottom: 1px solid var(--border); }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.article-cat { font-size: 0.72rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.article-title { font-size: 0.98rem; font-weight: 700; color: var(--text); line-height: 1.35; margin-bottom: 8px; }
.article-excerpt { font-size: 0.83rem; color: var(--text-muted); margin-bottom: 14px; flex: 1; }
.article-meta { font-size: 0.75rem; color: var(--text-dim); display: flex; justify-content: space-between; align-items: center; }
.article-read { color: var(--brand); font-weight: 600; }

/* FAQ Accordion */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }

.faq-item {
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0 20px;
}

.faq-item summary {
    padding: 16px 0;
    font-weight: 600;
    font-size: 0.94rem;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.25rem; color: var(--brand); font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-answer { padding: 0 0 16px; font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }

/* Prose (Articles & Legal Pages - Light) */
.page-narrow { max-width: 820px; margin: 0 auto; }

.prose { color: #334155; font-size: 0.96rem; line-height: 1.78; }
.prose h2 { font-size: 1.3rem; font-weight: 700; color: var(--text); margin: 28px 0 10px; }
.prose h3 { font-size: 1.08rem; font-weight: 600; color: var(--text); margin: 20px 0 8px; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--brand); text-decoration: underline; }
.prose code { background-color: #f1f5f9; border: 1px solid var(--border); padding: 2px 6px; border-radius: var(--radius-sm); font-size: 0.85em; }

/* Footer (Dark 2-column) */
.site-footer {
    margin-top: auto;
    background-color: var(--dark-bg);
    border-top: 1px solid var(--dark-border);
    padding: 52px 0 26px;
    font-size: 0.875rem;
    color: var(--dark-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--dark-border);
}

.footer-heading {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    margin-bottom: 14px;
}

.footer-company p { margin-bottom: 8px; font-size: 0.85rem; }
.footer-links {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
}

.footer-links a { font-size: 0.85rem; color: var(--dark-muted); transition: color 0.15s ease; }
.footer-links a:hover { color: #ffffff; }

.footer-bottom {
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    color: #64748b;
}

/* Responsive */
@media (min-width: 768px) {
    .nav-links { display: flex; }
    .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1.3fr 1fr; }
}

@media (min-width: 960px) {
    .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 44px; }
}
