:root {
    --brand: #6366f1;
    --brand-light: #eff6ff;
    --bg: #f8fafc;
    --surface: #ffffff;
    --border: #e2e8f0;
    --text: #0f172a;
    --text-muted: #64748b;
    --sidebar-w: 240px;
    --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    color: var(--text);
    background: var(--bg);
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
    width: var(--sidebar-w);
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
}

.sidebar-logo {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    font-size: 1rem;
}

.sidebar-logo img { max-height: 36px; max-width: 100%; }

.sidebar-logo-text { color: var(--brand); }

.nav-list { list-style: none; padding: .5rem 0; flex: 1; overflow-y: auto; }

.nav-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .65rem 1.1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    border-radius: 8px;
    margin: 1px 8px;
    transition: all .15s;
}

.nav-link:hover, .nav-link.active {
    background: var(--brand-light);
    color: var(--brand);
}

.nav-link i { width: 16px; text-align: center; font-size: .875rem; }
.nav-spacer { flex: 1; }
.nav-logout { color: #dc2626 !important; }
.nav-logout:hover { background: #fef2f2 !important; color: #dc2626 !important; }

/* ── Main content ── */
.main-content {
    margin-left: var(--sidebar-w);
    flex: 1;
    min-height: 100vh;
}

.page-container {
    padding: 2rem;
    max-width: 1200px;
}

/* ── Page header ── */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.page-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.text-muted { color: var(--text-muted); font-size: .875rem; margin-top: 3px; }

/* ── Cards ── */
.dash-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.dash-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.dash-card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.dash-two-col {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
}

/* ── Stat grid ── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem;
    display: flex;
    align-items: center;
    gap: .85rem;
}

.stat-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.stat-value { font-size: 1.4rem; font-weight: 700; }
.stat-label { font-size: .75rem; color: var(--text-muted); }

/* ── List items ── */
.list-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem 0;
    border-bottom: 1px solid var(--border);
}

.list-item:last-child { border-bottom: none; }

.list-item-icon {
    width: 36px; height: 36px;
    border-radius: 9px;
    background: #f1f5f9;
    color: #64748b;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem;
    flex-shrink: 0;
}

.list-item-body { flex: 1; min-width: 0; }

.list-item-title {
    font-weight: 600;
    font-size: .9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-item-sub {
    font-size: .78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--brand);
    color: #fff;
    padding: .65rem 1.25rem;
    border-radius: 9px;
    border: none;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity .15s;
}

.btn-primary:hover { opacity: .9; }
.btn-full { width: 100%; justify-content: center; }

.btn-sm {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: var(--bg);
    color: var(--text);
    padding: .4rem .85rem;
    border-radius: 7px;
    border: 1px solid var(--border);
    font-size: .8rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
}

.btn-sm:hover { background: #f1f5f9; }

.btn-green { background: #dcfce7; color: #15803d; border-color: #86efac; }
.btn-green:hover { background: #bbf7d0; }

/* ── Forms ── */
.form-group { margin-bottom: 1rem; }

.form-group label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: .35rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.form-control {
    width: 100%;
    padding: .55rem .85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: .9rem;
    color: var(--text);
    background: var(--surface);
    transition: border-color .15s;
}

.form-control:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent);
}

.filter-bar {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1.25rem;
}

/* ── Badges ── */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: .72rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
}

.badge-green { background: #dcfce7; color: #15803d; }
.badge-warn  { background: #fef3c7; color: #92400e; }
.badge-red   { background: #fee2e2; color: #991b1b; }

/* ── Status dots ── */
.status-dot {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    margin-right: 3px;
}
.status-present { background: #16a34a; }
.status-absent  { background: #dc2626; }
.status-expected, .status-late { background: #f59e0b; }

/* ── Child cards ── */
.children-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.child-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    text-align: center;
    transition: box-shadow .15s, border-color .15s;
    position: relative;
}

.child-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); border-color: var(--brand); }

.child-card-avatar, .child-avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--brand-light);
    color: var(--brand);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    overflow: hidden;
    flex-shrink: 0;
}

.child-avatar-lg {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: var(--brand-light);
    color: var(--brand);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 1.4rem;
    overflow: hidden;
    flex-shrink: 0;
}

.child-card-avatar img, .child-avatar img, .child-avatar-lg img { width: 100%; height: 100%; object-fit: cover; }

.child-card-name { font-weight: 600; font-size: .9rem; }
.child-card-meta { font-size: .75rem; color: var(--text-muted); }
.child-card-kw   { font-size: .72rem; color: var(--text-muted); }

.avatar-in      { border: 2px solid #16a34a; }
.avatar-out     { border: 2px solid #dc2626; opacity: .7; }
.avatar-expected { border: 2px solid #f59e0b; }

.allergy-dot {
    position: absolute;
    top: 8px; right: 8px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #dc2626;
}

/* ── Register ── */
.register-list { display: flex; flex-direction: column; gap: .5rem; }

.register-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .75rem 1rem;
}

.register-actions { display: flex; gap: .4rem; flex-shrink: 0; flex-wrap: wrap; }

/* ── Diary ── */
.diary-feed { display: flex; flex-direction: column; gap: 1rem; }

.diary-entry {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
}

.diary-entry-time {
    font-size: .75rem;
    color: var(--text-muted);
    width: 44px;
    flex-shrink: 0;
    padding-top: 3px;
}

.diary-entry-body {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .75rem 1rem;
}

.diary-entry-type {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--brand);
    margin-bottom: .3rem;
}

.diary-photo {
    max-width: 100%;
    border-radius: 8px;
    margin-top: .5rem;
}

.diary-staff {
    font-size: .73rem;
    color: var(--text-muted);
    margin-top: .4rem;
}

/* ── Info rows ── */
.info-row {
    display: flex;
    gap: .6rem;
    padding: .45rem 0;
    border-bottom: 1px solid var(--border);
    font-size: .875rem;
}

.info-row span {
    font-weight: 600;
    color: var(--text-muted);
    min-width: 100px;
    flex-shrink: 0;
}

/* ── Modal ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-box {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.modal-header h3 { font-size: 1rem; font-weight: 700; }

.modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    padding: 0;
}

/* ── Alerts ── */
.alert {
    padding: .75rem 1rem;
    border-radius: 9px;
    font-size: .875rem;
    margin-bottom: 1rem;
}

.alert-error  { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
.alert-success { background: #f0fdf4; border: 1px solid #86efac; color: #15803d; }

/* ── Empty state ── */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: .875rem;
}

.empty-state a { color: var(--brand); }

/* ── Auth pages ── */
.auth-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--bg); margin: 0; }
.auth-wrap { width: 100%; max-width: 440px; padding: 1rem; }

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
}

.auth-logo {
    font-size: 2.5rem;
    color: var(--brand);
    text-align: center;
    margin-bottom: .5rem;
}

.auth-card h2 { text-align: center; font-size: 1.3rem; margin-bottom: .25rem; }
.auth-sub    { text-align: center; color: var(--text-muted); font-size: .85rem; margin-bottom: 1.5rem; }
.auth-footer { text-align: center; margin-top: 1rem; font-size: .82rem; color: var(--text-muted); }
.auth-footer a { color: var(--brand); }

/* ── Parent portal ── */
.parent-portal { display: block; }

.parent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.parent-nursery-name { font-weight: 700; color: var(--brand); font-size: 1rem; }
.parent-name-badge { font-size: .82rem; color: var(--text-muted); margin-right: .5rem; }
.parent-main .page-container { max-width: 640px; margin: 0 auto; padding: 1.5rem 1rem; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); transition: transform .25s; }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .page-container { padding: 1rem; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .dash-two-col { grid-template-columns: 1fr; }
    .children-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .modal-overlay { align-items: flex-end; padding: 0; }
    .modal-box { border-radius: 16px 16px 0 0; max-width: 100%; }
}

/* ═══════════════════════════════════════════════════
   LANDING PAGE
═══════════════════════════════════════════════════ */

.landing-body {
    display: block;
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #0f172a;
}

/* ── Nav ── */
.landing-nav {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
}
.landing-nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: .85rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}
.landing-logo {
    font-weight: 800;
    font-size: 1.1rem;
    color: #6366f1;
    text-decoration: none;
    flex-shrink: 0;
}
.landing-nav-links {
    display: flex;
    gap: 1.5rem;
    flex: 1;
}
.landing-nav-links a {
    text-decoration: none;
    color: #475569;
    font-size: .9rem;
    font-weight: 500;
}
.landing-nav-links a:hover { color: #6366f1; }
.landing-nav-ctas {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.nav-text-link {
    font-size: .85rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
}
.nav-text-link:hover { color: #6366f1; }
.btn-nav-cta {
    background: #6366f1;
    color: #fff;
    padding: .45rem 1.1rem;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.btn-nav-cta:hover { background: #4f46e5; }

.landing-main { overflow-x: hidden; }

/* ── Hero ── */
.hero {
    max-width: 1120px;
    margin: 0 auto;
    padding: 5rem 1.5rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: #eff6ff;
    color: #2563eb;
    font-size: .78rem;
    font-weight: 700;
    padding: .3rem .75rem;
    border-radius: 20px;
    margin-bottom: 1.25rem;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.hero h1 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 900;
    line-height: 1.12;
    margin-bottom: 1.1rem;
    letter-spacing: -.02em;
    color: #0f172a;
}
.hero-accent {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.65;
    margin-bottom: 1.75rem;
    max-width: 520px;
}
.hero-ctas {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    align-items: center;
}
.btn-hero-primary {
    background: #6366f1;
    color: #fff;
    padding: .8rem 1.6rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    box-shadow: 0 4px 16px rgba(99,102,241,.35);
}
.btn-hero-primary:hover { background: #4f46e5; }
.btn-hero-outline {
    color: #6366f1;
    border: 2px solid #6366f1;
    padding: .75rem 1.5rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
}
.btn-hero-outline:hover { background: #eff6ff; }
.hero-disclaimer {
    margin-top: .85rem;
    font-size: .78rem;
    color: #94a3b8;
}

/* Hero card stack mock */
.hero-visual { position: relative; }
.hero-card-stack { position: relative; padding: 2rem; }
.hero-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem 1.15rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    font-size: .85rem;
}
.hc1 { transform: rotate(-1.5deg); }
.hc2 { margin-top: .75rem; transform: rotate(.8deg); }
.hc3 { margin-top: .75rem; transform: rotate(-1deg); }
.hc-row { display: flex; align-items: center; gap: .5rem; font-weight: 600; margin-bottom: .5rem; }
.hc-dot { width: 8px; height: 8px; border-radius: 50%; }
.hc-dot.green { background: #16a34a; }
.hc-bar { height: 6px; background: #f1f5f9; border-radius: 3px; overflow: hidden; }
.hc-fill { height: 100%; background: linear-gradient(90deg, #6366f1, #8b5cf6); border-radius: 3px; }
.hc-small { font-size: .75rem; color: #64748b; margin-top: .4rem; }

/* ── Social proof ── */
.social-proof {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 2rem 1.5rem;
    text-align: center;
}
.sp-label { font-size: .8rem; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1.25rem; }
.sp-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}
.sp-stat { display: flex; flex-direction: column; align-items: center; padding: 0 2.5rem; }
.sp-num { font-size: 1.6rem; font-weight: 900; color: #6366f1; }
.sp-desc { font-size: .78rem; color: #64748b; margin-top: .15rem; }
.sp-divider { width: 1px; height: 40px; background: #e2e8f0; }

/* ── Section headers ── */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-header h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .6rem; }
.section-header p { color: #64748b; font-size: 1rem; line-height: 1.6; }

/* ── Features ── */
.features {
    padding: 5rem 1.5rem;
    max-width: 1120px;
    margin: 0 auto;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.feature-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.5rem;
    transition: box-shadow .2s, transform .2s;
}
.feature-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.09); transform: translateY(-2px); }
.fc-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.feature-card p { font-size: .85rem; color: #64748b; line-height: 1.55; }

/* ── Family section ── */
.family-section {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    color: #fff;
    padding: 5rem 1.5rem;
}
.family-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: center;
}
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255,255,255,.15);
    color: #c7d2fe;
    font-size: .75rem;
    font-weight: 700;
    padding: .3rem .75rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.family-text h2 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; letter-spacing: -.02em; }
.family-text p { color: #c7d2fe; line-height: 1.65; margin-bottom: 1.25rem; font-size: .95rem; }
.family-list { list-style: none; display: flex; flex-direction: column; gap: .65rem; }
.family-list li { display: flex; align-items: flex-start; gap: .65rem; font-size: .9rem; color: #e0e7ff; }
.family-list li i { color: #6ee7b7; margin-top: 2px; flex-shrink: 0; }

/* Phone mock */
.phone-mock {
    width: 240px;
    background: #1e1b4b;
    border: 2px solid rgba(255,255,255,.15);
    border-radius: 28px;
    padding: 1.25rem 1rem;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
    flex-shrink: 0;
}
.phone-screen { background: #f8fafc; border-radius: 18px; padding: 1rem; }
.phone-card {
    background: #fff;
    border-radius: 8px;
    padding: .6rem .75rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
    border-left-width: 3px;
    border-left-style: solid;
}

/* ── White-label section ── */
.whitelabel-section {
    background: #fafafa;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 4.5rem 1.5rem;
    text-align: center;
}
.wl-inner { max-width: 700px; margin: 0 auto; }
.wl-badge {
    display: inline-flex;
    background: #ede9fe;
    color: #5b21b6;
    font-size: .75rem;
    font-weight: 700;
    padding: .3rem .75rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.wl-inner h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .75rem; }
.wl-inner p { color: #64748b; line-height: 1.65; margin-bottom: 2rem; }
.wl-inner code { background: #f1f5f9; padding: .15rem .4rem; border-radius: 5px; font-size: .88em; color: #334155; }
.wl-compare {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.wl-them, .wl-us {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.25rem 1.75rem;
    min-width: 180px;
    text-align: center;
}
.wl-them { opacity: .8; }
.wl-us { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.12); }
.wl-them-label, .wl-us-label { font-size: .72rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .35rem; }
.wl-us-label { color: #6366f1; }
.wl-price { font-size: 2.2rem; font-weight: 900; color: #dc2626; line-height: 1; }
.wl-price span { font-size: .9rem; font-weight: 600; }
.wl-note { font-size: .72rem; color: #94a3b8; margin-top: .35rem; }
.wl-vs { font-size: 1.1rem; font-weight: 800; color: #cbd5e1; }

/* ── Comparison table ── */
.compare-section {
    padding: 5rem 1.5rem;
    max-width: 1120px;
    margin: 0 auto;
}
.table-scroll { overflow-x: auto; }
.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
}
.compare-table th, .compare-table td {
    padding: .7rem 1rem;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}
.compare-table th:first-child, .compare-table td:first-child { text-align: left; color: #475569; min-width: 200px; }
.compare-table thead th { font-weight: 700; color: #0f172a; background: #f8fafc; font-size: .82rem; }
.compare-table thead th:first-child { background: #f8fafc; }
.us-col { background: #eff6ff !important; color: #1d4ed8; font-weight: 600; }
.compare-table thead .us-col { color: #1d4ed8; font-size: .88rem; }
.compare-price-row td { font-size: .88rem; padding-top: 1rem; padding-bottom: 1rem; }
.tick { color: #16a34a; }
.cross { color: #dc2626; }
.dash { color: #94a3b8; }

/* ── Pricing ── */
.pricing-section {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 5rem 1.5rem;
}
.pricing-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
    align-items: start;
}
.pricing-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.75rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}
.pricing-featured {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,.12), 0 8px 32px rgba(99,102,241,.12);
    transform: scale(1.02);
}
.pricing-enterprise {
    background: #1e1b4b;
    border-color: #312e81;
    color: #e0e7ff;
}
.pricing-enterprise .pricing-price, .pricing-enterprise .pricing-name { color: #c7d2fe; }
.pricing-enterprise .pricing-desc { color: #a5b4fc; }
.pricing-enterprise .pricing-list li { color: #c7d2fe; }
.pricing-enterprise .pricing-list li i { color: #6ee7b7; }
.pricing-popular {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: #6366f1;
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: .25rem .8rem;
    border-radius: 20px;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.pricing-name { font-weight: 800; font-size: 1.05rem; color: #1e293b; }
.pricing-price { font-size: 2.5rem; font-weight: 900; color: #6366f1; line-height: 1; }
.pricing-price span { font-size: 1rem; font-weight: 600; color: #64748b; }
.pricing-desc { font-size: .82rem; color: #64748b; line-height: 1.5; }
.pricing-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; margin-top: .25rem; }
.pricing-list li { font-size: .82rem; display: flex; align-items: flex-start; gap: .5rem; }
.pricing-list li i { margin-top: 2px; color: #16a34a; flex-shrink: 0; font-size: .8rem; }
.pricing-list li.dim { color: #94a3b8; }
.pricing-list li.dim i { color: #dc2626; }
.btn-pricing {
    display: block;
    text-align: center;
    padding: .75rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: .88rem;
    text-decoration: none;
    margin-top: auto;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}
.btn-pricing:hover { background: #e2e8f0; }
.btn-pricing-featured {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
    box-shadow: 0 4px 14px rgba(99,102,241,.3);
}
.btn-pricing-featured:hover { background: #4f46e5; }
.pricing-note {
    max-width: 1120px;
    margin: 2rem auto 0;
    text-align: center;
    font-size: .82rem;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
}

/* ── CTA ── */
.cta-section {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    text-align: center;
    padding: 5rem 1.5rem;
}
.cta-section h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; margin-bottom: .6rem; }
.cta-section p { color: rgba(255,255,255,.8); font-size: 1rem; line-height: 1.6; }
.cta-section .btn-hero-primary { background: #fff; color: #6366f1; box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.cta-section .btn-hero-primary:hover { background: #f0fdf4; }
.cta-section .btn-hero-outline { border-color: rgba(255,255,255,.5); color: #fff; }
.cta-section .btn-hero-outline:hover { background: rgba(255,255,255,.1); }

/* ── Footer ── */
.landing-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 3rem 1.5rem 1.5rem;
}
.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.footer-brand span { font-size: 1.05rem; font-weight: 800; color: #fff; display: flex; align-items: center; gap: .4rem; }
.footer-brand p { font-size: .82rem; color: #64748b; margin-top: .35rem; line-height: 1.5; }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: center; }
.footer-links a { font-size: .85rem; color: #64748b; text-decoration: none; }
.footer-links a:hover { color: #94a3b8; }
.footer-bottom {
    max-width: 1120px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid #1e293b;
    font-size: .78rem;
    color: #475569;
}
.footer-bottom a { color: #64748b; text-decoration: none; }
.footer-bottom a:hover { color: #94a3b8; }

/* ── Landing responsive ── */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; gap: 2rem; }
    .hero-visual { display: none; }
    .family-inner { grid-template-columns: 1fr; }
    .family-phones { display: none; }
    .pricing-featured { transform: none; }
    .sp-divider { display: none; }
    .sp-stats { gap: 1.5rem; }
    .landing-nav-links { display: none; }
}
@media (max-width: 600px) {
    .hero { padding: 3rem 1rem 2.5rem; }
    .features, .compare-section { padding: 3.5rem 1rem; }
    .pricing-section, .family-section, .cta-section { padding: 3.5rem 1rem; }
    .pricing-grid { grid-template-columns: 1fr; }
    .wl-compare { flex-direction: column; }
}
