/*
 * st-mobi.by design: light, plain, readable. Tokens first (--sm-*), then Bootstrap's own variables pointed at them,
 * then a few components (sm-*) shared by the landing and the account pages. No animations, no pop-ups.
 */

:root {
    --sm-primary: #2563eb;
    --sm-primary-rgb: 37, 99, 235;
    --sm-primary-hover: #1d4ed8;
    --sm-primary-soft: #eef3ff;
    --sm-accent: #0ea5a4;
    --sm-ink: #0f172a;
    --sm-text: #334155;
    --sm-muted: #64748b;
    --sm-border: #e2e8f0;
    --sm-surface: #ffffff;
    --sm-bg: #f8fafc;
    --sm-success: #16a34a;
    --sm-radius: 14px;
    --sm-radius-sm: 10px;
    --sm-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .06);
    --sm-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --bs-body-font-family: var(--sm-font);
    --bs-body-color: var(--sm-text);
    --bs-body-bg: var(--sm-surface);
    --bs-emphasis-color: var(--sm-ink);
    --bs-secondary-color: var(--sm-muted);
    --bs-border-color: var(--sm-border);
    --bs-primary: var(--sm-primary);
    --bs-primary-rgb: var(--sm-primary-rgb);
    --bs-link-color: var(--sm-primary);
    --bs-link-color-rgb: var(--sm-primary-rgb);
    --bs-link-hover-color: var(--sm-primary-hover);
    --bs-border-radius: var(--sm-radius-sm);
    --bs-border-radius-lg: var(--sm-radius);
}

body {
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 {
    color: var(--sm-ink);
    font-weight: 700;
    letter-spacing: -.01em;
}

.btn {
    --bs-btn-font-weight: 600;
    --bs-btn-border-radius: var(--sm-radius-sm);
}

.btn-primary {
    --bs-btn-bg: var(--sm-primary);
    --bs-btn-border-color: var(--sm-primary);
    --bs-btn-hover-bg: var(--sm-primary-hover);
    --bs-btn-hover-border-color: var(--sm-primary-hover);
    --bs-btn-active-bg: var(--sm-primary-hover);
    --bs-btn-active-border-color: var(--sm-primary-hover);
}

.btn-outline-primary {
    --bs-btn-color: var(--sm-primary);
    --bs-btn-border-color: var(--sm-primary);
    --bs-btn-hover-bg: var(--sm-primary);
    --bs-btn-hover-border-color: var(--sm-primary);
    --bs-btn-active-bg: var(--sm-primary-hover);
}

.text-ink { color: var(--sm-ink) !important; }

/* Header and footer (every page). */

.sm-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--sm-border);
}

.sm-header .nav-link {
    color: var(--sm-text);
    font-weight: 500;
}

.sm-header .nav-link:hover,
.sm-header .nav-link.active {
    color: var(--sm-primary);
}

.sm-brand {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--sm-ink);
    text-decoration: none;
}

.sm-brand:hover { color: var(--sm-ink); }

.sm-brand-mark {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9px;
    background: var(--sm-primary);
    color: #fff;
    font-size: 1rem;
}

.sm-footer {
    margin-top: auto;
    background: var(--sm-bg);
    border-top: 1px solid var(--sm-border);
    color: var(--sm-muted);
    font-size: .925rem;
}

.sm-footer a { color: var(--sm-text); text-decoration: none; }
.sm-footer a:hover { color: var(--sm-primary); }

.sm-footer-title {
    color: var(--sm-ink);
    font-weight: 600;
    margin-bottom: .75rem;
}

/* Sections and cards (the landing; the account pages reuse cards and page headers). */

.sm-section { padding: 5rem 0; }
.sm-section-alt { background: var(--sm-bg); }

.sm-section-header {
    max-width: 44rem;
    margin: 0 auto 3rem;
    text-align: center;
}

.sm-section-header p { color: var(--sm-muted); font-size: 1.1rem; margin: 0; }

.sm-eyebrow {
    display: inline-block;
    padding: .3rem .75rem;
    border-radius: 999px;
    background: var(--sm-primary-soft);
    color: var(--sm-primary);
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.sm-card {
    height: 100%;
    background: var(--sm-surface);
    border: 1px solid var(--sm-border);
    border-radius: var(--sm-radius);
    padding: 1.5rem;
}

.sm-card-raised { box-shadow: var(--sm-shadow); border-color: transparent; }

.sm-icon {
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 12px;
    background: var(--sm-primary-soft);
    color: var(--sm-primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.sm-page-header {
    padding: 2rem 0 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--sm-border);
}

.sm-page-header p { color: var(--sm-muted); margin: .25rem 0 0; }

/* Hero. */

.sm-hero {
    padding: 4.5rem 0 4rem;
    background:
        radial-gradient(60rem 30rem at 85% -10%, var(--sm-primary-soft), transparent 70%),
        var(--sm-surface);
}

.sm-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    line-height: 1.1;
    letter-spacing: -.02em;
}

.sm-hero .lead { color: var(--sm-muted); font-size: 1.2rem; }

.sm-checks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    color: var(--sm-muted);
    font-size: .95rem;
}

.sm-checks i { color: var(--sm-success); margin-right: .35rem; }

/* The phone in the hero: plain HTML, so no image to keep in step with the app. */

.sm-phone {
    width: 18.5rem;
    max-width: 100%;
    margin: 0 auto;
    padding: .75rem;
    border-radius: 2.25rem;
    background: var(--sm-ink);
    box-shadow: 0 30px 60px rgba(15, 23, 42, .18);
}

.sm-phone-screen {
    border-radius: 1.6rem;
    background: var(--sm-bg);
    padding: 1.25rem 1rem;
    font-size: .85rem;
}

.sm-visit {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem .8rem;
    margin-top: .5rem;
    background: var(--sm-surface);
    border: 1px solid var(--sm-border);
    border-radius: 12px;
}

.sm-visit-dot {
    flex: none;
    width: 1.75rem;
    height: 1.75rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--sm-primary-soft);
    color: var(--sm-primary);
}

.sm-visit-done .sm-visit-dot { background: #dcfce7; color: var(--sm-success); }

/* Steps. */

.sm-step-number {
    display: inline-grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--sm-primary);
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Prices. */

.sm-price-card { display: flex; flex-direction: column; }

.sm-price {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--sm-ink);
    line-height: 1;
}

.sm-price small { font-size: .9rem; font-weight: 500; color: var(--sm-muted); }

.sm-feature-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 1.5rem;
    flex: 1;
}

.sm-feature-list li {
    display: flex;
    gap: .5rem;
    padding: .3rem 0;
    font-size: .95rem;
}

.sm-feature-list i { color: var(--sm-success); flex: none; }

.sm-demo-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 2rem;
    padding: 1.5rem 2rem;
    border-radius: var(--sm-radius);
    background: var(--sm-primary-soft);
    margin-bottom: 2rem;
}

/* Call to action band. */

.sm-cta {
    border-radius: calc(var(--sm-radius) * 1.5);
    background: linear-gradient(135deg, var(--sm-primary), #1e40af);
    color: #fff;
    padding: 3rem;
}

.sm-cta h2 { color: #fff; }
.sm-cta p { color: rgba(255, 255, 255, .85); }

.sm-cta .btn-light { color: var(--sm-primary); }

/* The cookie notice: a thin bar at the bottom, no overlay. */

.sm-cookie-bar {
    position: sticky;
    bottom: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .97);
    border-top: 1px solid var(--sm-border);
    box-shadow: 0 -4px 16px rgba(15, 23, 42, .06);
}

@media (max-width: 575.98px) {
    .sm-section { padding: 3.5rem 0; }
    .sm-cta { padding: 2rem 1.5rem; }
}
