/* ============================================================
   Summa POS — design tokens
   Paleta: Charcoal #1F2937 primary, Sage #10B981 accent.
   ============================================================ */
:root {
    --summa-charcoal: #1F2937;
    --summa-charcoal-700: #111827;
    --summa-sage: #10B981;
    --summa-sage-700: #047857;
    --summa-bg: #FAFAF7;
    --summa-surface: #FFFFFF;
    --summa-surface-alt: #F3F4F6;
    --summa-border: #E5E7EB;
    --summa-muted: #6B7280;
    --summa-text: #1F2937;
    --summa-danger: #DC2626;
    --summa-warning: #F59E0B;
}

html {
    font-size: 15px;
    scroll-behavior: smooth;
}
@media (min-width: 768px) {
    html { font-size: 16px; }
}
body {
    background: var(--summa-bg);
    color: var(--summa-text);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1; }

a { color: var(--summa-sage-700); text-decoration: none; }
a:hover { color: var(--summa-sage); text-decoration: underline; }

/* --- Header ----------------------------------------------------- */
.summa-header {
    background: var(--summa-surface);
    border-bottom: 1px solid var(--summa-border);
    position: sticky;
    top: 0;
    z-index: 50;
}
.summa-header .navbar { padding: 0.5rem 0; }
.summa-brand img { display: block; }
.summa-header .nav-link {
    color: var(--summa-charcoal);
    font-weight: 500;
    padding-left: 1rem;
    padding-right: 1rem;
}
.summa-header .nav-link:hover { color: var(--summa-sage-700); }

/* --- Buttons ---------------------------------------------------- */
.summa-btn-primary {
    background: var(--summa-sage);
    color: #fff;
    border: none;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background 120ms ease;
}
.summa-btn-primary:hover {
    background: var(--summa-sage-700);
    color: #fff;
}
.summa-btn-secondary {
    background: var(--summa-charcoal);
    color: #fff;
    border: none;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    font-weight: 600;
}
.summa-btn-secondary:hover {
    background: var(--summa-charcoal-700);
    color: #fff;
}
.summa-btn-ghost {
    background: transparent;
    color: var(--summa-charcoal);
    border: 1px solid var(--summa-border);
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    font-weight: 500;
}
.summa-btn-ghost:hover {
    background: var(--summa-surface-alt);
    color: var(--summa-charcoal);
}

/* --- Hero ------------------------------------------------------- */
.summa-hero {
    padding: 5rem 0 4rem;
    background: linear-gradient(180deg, var(--summa-bg) 0%, var(--summa-surface-alt) 100%);
}
.summa-hero h1 {
    font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--summa-charcoal);
    margin-bottom: 1rem;
}
.summa-hero .lead {
    font-size: 1.2rem;
    color: var(--summa-muted);
    max-width: 36rem;
}
.summa-hero img.mascot {
    max-width: 220px;
    width: 100%;
    height: auto;
}

/* --- Sections --------------------------------------------------- */
.summa-section { padding: 4rem 0; }
.summa-section h2 {
    font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem);
    font-weight: 700;
    color: var(--summa-charcoal);
    margin-bottom: 0.75rem;
}
.summa-section .section-lead {
    color: var(--summa-muted);
    max-width: 42rem;
    margin-bottom: 2.5rem;
}

.feature-card {
    background: var(--summa-surface);
    border: 1px solid var(--summa-border);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
}
.feature-card .feature-icon {
    font-size: 1.6rem;
    color: var(--summa-sage);
    margin-bottom: 0.5rem;
}
.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--summa-charcoal);
}
.feature-card p {
    color: var(--summa-muted);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* --- Pricing cards --------------------------------------------- */
.pricing-card {
    background: var(--summa-surface);
    border: 1px solid var(--summa-border);
    border-radius: 14px;
    padding: 2rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}
.pricing-card.popular {
    border-color: var(--summa-sage);
    box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.25);
}
.pricing-card .popular-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--summa-sage);
    color: #fff;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}
.pricing-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--summa-charcoal);
    margin-bottom: 0.25rem;
}
.pricing-card .plan-subtitle {
    color: var(--summa-muted);
    font-size: 0.92rem;
    margin-bottom: 1rem;
}
.pricing-card .plan-price {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--summa-charcoal);
    line-height: 1;
}
.pricing-card .plan-price small {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--summa-muted);
}
.pricing-card .plan-period {
    color: var(--summa-muted);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}
.pricing-card ul.features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex: 1;
}
.pricing-card ul.features li {
    padding: 0.45rem 0;
    padding-left: 1.6rem;
    position: relative;
    font-size: 0.95rem;
    color: var(--summa-text);
}
.pricing-card ul.features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--summa-sage);
    font-weight: 700;
}
.pricing-card .pricing-cta {
    text-align: center;
}

/* --- Footer ----------------------------------------------------- */
.summa-footer {
    background: var(--summa-charcoal);
    color: #D1D5DB;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}
.summa-footer h6.footer-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}
.summa-footer a {
    color: #D1D5DB;
    text-decoration: none;
}
.summa-footer a:hover { color: var(--summa-sage); }
.summa-footer hr { border-color: #374151; opacity: 0.4; }
.summa-footer .text-muted { color: #9CA3AF !important; }
