/* SabatHelp Landing Page - sabathelp.ro */
/* ALPS Design System colors */

:root {
    --primary: #2f557f;
    --primary-dark: #1e3a5f;
    --primary-light: #4a7aa8;
    --secondary: #e36520;
    --accent: #ffa92d;
    --success: #448d21;
    --error: #7f264a;
    --white: #ffffff;
    --light-gray: #f5f7fa;
    --gray: #9b9b9b;
    --charcoal: #3d3935;
    --border: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: var(--charcoal);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-success { background: var(--success); color: var(--white); }
.btn-success:hover { background: #367118; }
.btn-sm { padding: 6px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }

/* ── Detecting overlay ── */
.detecting-overlay {
    position: fixed;
    inset: 0;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.detecting-content {
    text-align: center;
}
.detecting-content p {
    margin-top: 16px;
    color: var(--gray);
    font-size: 15px;
}
.spinner-large {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Header ── */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.header-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.brand {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
}
.brand-sub {
    font-size: 12px;
    color: var(--gray);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ── Hero ── */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 80px 0 60px;
    text-align: center;
}
.hero-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}
.hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.6;
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero .btn-outline {
    border-color: rgba(255,255,255,0.5);
    color: var(--white);
}
.hero .btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
}

/* Local status banner */
.local-status {
    margin-top: 32px;
}
.local-status-inner {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
}
.pulse-dot {
    width: 10px;
    height: 10px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
}

/* ── Features ── */
.features {
    padding: 80px 0;
    background: var(--white);
}
.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: var(--primary-dark);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--light-gray);
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.feature-icon {
    font-size: 40px;
    margin-bottom: 12px;
}
.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}
.feature-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.5;
}

/* ── How it works ── */
.how-it-works {
    padding: 80px 0;
    background: var(--light-gray);
}
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: step;
}
.step {
    text-align: center;
    position: relative;
}
.step-num {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto 16px;
}
.step h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}
.step p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.5;
}

/* ── Download ── */
.download {
    padding: 80px 0;
    background: var(--white);
    text-align: center;
}
.download-desc {
    font-size: 16px;
    color: var(--gray);
    max-width: 500px;
    margin: 0 auto 32px;
}
.download-buttons {
    margin-bottom: 16px;
}
.download-note {
    font-size: 13px;
    color: var(--gray);
}

/* ── Setup Guide ── */
.setup-guide {
    padding: 80px 0;
    background: var(--light-gray);
}
.guide-card {
    background: var(--white);
    border-radius: 12px;
    padding: 32px;
    border: 1px solid var(--border);
    max-width: 700px;
    margin: 0 auto;
}
.guide-card > p {
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.6;
}
.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.guide-step {
    padding-left: 20px;
    border-left: 3px solid var(--primary);
}
.guide-step strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}
.guide-step p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.5;
}
code {
    background: var(--light-gray);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    color: var(--primary-dark);
    border: 1px solid var(--border);
}

/* ── Footer ── */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    padding: 32px 0;
    text-align: center;
}
.footer-inner p {
    font-size: 13px;
    margin-bottom: 4px;
}
.site-footer a {
    color: rgba(255,255,255,0.9);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero { padding: 48px 0 40px; }
    .hero-title { font-size: 28px; }
    .hero-subtitle { font-size: 15px; }
    .features-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .hide-mobile { display: none; }
    .features, .how-it-works, .download, .setup-guide { padding: 48px 0; }
    .section-title { font-size: 24px; margin-bottom: 32px; }
    .guide-card { padding: 20px; }
}

@media (max-width: 480px) {
    .steps { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: center; }
    .local-status-inner { flex-direction: column; text-align: center; padding: 16px; }
}
