/* ===== ChildLocks – Global Styles ===== */

:root {
    --clr-bg-dark: #0c1020;
    --clr-bg-light: #f4f6fa;
    --clr-surface: #ffffff;
    --clr-surface-soft: #f9fafc;

    --clr-primary: #1cb5a3;
    --clr-primary-soft: rgba(28, 181, 163, 0.18);
    --clr-secondary: #ffd54a;
    --clr-accent: #ff7bb0;

    --clr-text-main: #1a1d26;
    --clr-text-muted: #6c7283;
    --clr-text-on-dark: #fdfdfe;

    --radius-card: 18px;
    --radius-pill: 999px;

    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-strong: 0 18px 45px rgba(0, 0, 0, 0.16);

    --font-heading: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Reset-ish */

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

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--clr-text-main);
    background: var(--clr-bg-light);
}

/* Utility */

.container {
    width: min(1120px, 100% - 32px);
    margin-inline: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.7rem 1.4rem;
    text-decoration: none;
    transition:
        background 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.05s ease;
}

.btn-primary {
    background: var(--clr-primary);
    color: var(--clr-text-on-dark);
    box-shadow: 0 10px 25px rgba(28, 181, 163, 0.35);
}

.btn-primary:hover {
    background: #17a291;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--clr-primary);
    border: 1px solid var(--clr-primary-soft);
}

.btn-secondary:hover {
    background: var(--clr-primary-soft);
}

.btn-ghost {
    background: transparent;
    border: none;
    color: var(--clr-text-muted);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: var(--radius-pill);
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.8);
    color: var(--clr-text-muted);
}

.chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16c782;
}

/* ===== HEADER / NAV (Public + Panels) ===== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(12, 16, 32, 0.95);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 0.75rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--clr-text-on-dark);
    text-decoration: none;
}

.brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 14px;
    background: radial-gradient(circle at 30% 20%, #ffd54a, #ff7bb0 40%, #1cb5a3 100%);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.brand-text-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
}

.brand-text-sub {
    font-size: 0.72rem;
    opacity: 0.8;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    font-size: 0.9rem;
}

.nav-links a {
    color: var(--clr-text-on-dark);
    text-decoration: none;
    opacity: 0.85;
}

.nav-links a:hover {
    opacity: 1;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.nav-toggle {
    display: none;
}

/* Mobile nav */

@media (max-width: 720px) {
    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        background: transparent;
        color: var(--clr-text-on-dark);
        cursor: pointer;
        font-size: 1.1rem;
    }

    .site-header-open .nav-mobile {
        display: flex;
    }

    .nav-mobile {
        display: none;
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem 0 1rem;
    }

    .nav-mobile a {
        color: var(--clr-text-on-dark);
        text-decoration: none;
        font-size: 0.95rem;
    }

    .nav-mobile .nav-mobile-cta {
        display: flex;
        gap: 0.6rem;
        margin-top: 0.5rem;
    }
}

/* ===== PUBLIC HOMEPAGE ===== */

.hero {
    background: radial-gradient(circle at top left, #23284a 0, #0c1020 40%, #050711 100%);
    color: var(--clr-text-on-dark);
    padding: 2.5rem 0 3rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.hero-heading {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 0.75rem;
}

.hero-lead {
    font-size: 0.98rem;
    max-width: 480px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.3rem;
}

.hero-footnote {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    opacity: 0.75;
}

.hero-visual {
    background: radial-gradient(circle at top left, rgba(255, 213, 74, 0.35), transparent 55%);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.2rem;
    box-shadow: var(--shadow-strong);
}

.hero-devices {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.device-card {
    background: rgba(5, 9, 24, 0.8);
    border-radius: 16px;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.86rem;
}

.device-name {
    font-weight: 600;
}

.device-meta {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Sections */

.section {
    padding: 3rem 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 2rem;
}

.section-heading h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.section-heading p {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
}

/* Steps */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.step-card {
    background: var(--clr-surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    padding: 1.3rem 1.45rem;
}

.step-label {
    font-size: 0.75rem;
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.3rem;
}

.step-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.step-text {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
}

/* Platforms row */

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.platform-card {
    background: var(--clr-surface-soft);
    border-radius: 16px;
    padding: 1rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.platform-label {
    font-size: 0.8rem;
    font-weight: 600;
}

.platform-tag {
    font-size: 0.75rem;
    color: var(--clr-text-muted);
}

/* Features */

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.feature-card {
    background: var(--clr-surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    padding: 1.2rem 1.3rem;
    display: flex;
    gap: 0.9rem;
}

.feature-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: var(--clr-primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.feature-title {
    font-weight: 600;
    margin-bottom: 0.2rem;
    font-size: 0.99rem;
}

.feature-text {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
}

/* Trust section */

.trust-banner {
    background: #fff;
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
    padding: 1.3rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

/* Footer */

.site-footer {
    padding: 2rem 0 1.5rem;
    background: #0a0d18;
    color: rgba(250, 250, 255, 0.85);
    font-size: 0.85rem;
}

.site-footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
    opacity: 0.85;
}

.site-footer a:hover {
    opacity: 1;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ===== DASHBOARDS (Parent + Admin) ===== */

.dashboard-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    background: var(--clr-bg-light);
}

.dashboard-sidebar {
    background: #101426;
    color: var(--clr-text-on-dark);
    padding: 1.2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard-sidebar .brand {
    color: var(--clr-text-on-dark);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.92rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    text-decoration: none;
    color: rgba(244, 246, 255, 0.85);
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.06);
}

.sidebar-nav a.is-active {
    background: rgba(28, 181, 163, 0.18);
    color: var(--clr-text-on-dark);
}

.sidebar-footer {
    margin-top: auto;
    font-size: 0.8rem;
    opacity: 0.75;
}

/* Dashboard main */

.dashboard-main {
    background: linear-gradient(180deg, #f4f6fa 0, #edf0f7 40%, #f4f6fa 100%);
    padding: 1.2rem 1.4rem 2rem;
}

.dashboard-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
}

.dashboard-title-group h1 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin: 0;
}

.dashboard-title-group p {
    margin: 0.1rem 0 0;
    font-size: 0.85rem;
    color: var(--clr-text-muted);
}

.dashboard-user-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dashboard-user-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
    font-size: 0.85rem;
}

.dashboard-user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd54a, #ff7bb0);
}

/* Cards / grids */

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1.4fr;
    gap: 1rem;
}

.dashboard-grid-full {
    margin-top: 1.2rem;
}

.card {
    background: var(--clr-surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    padding: 1rem 1.1rem;
}

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

.card-title {
    font-weight: 600;
    font-size: 0.98rem;
}

.card-sub {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
}

/* Small components */

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    font-size: 0.75rem;
    background: #f4f6fa;
    color: var(--clr-text-muted);
}

/* Tables-ish */

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.table th,
.table td {
    padding: 0.4rem 0.2rem;
    text-align: left;
}

.table th {
    font-weight: 600;
    color: var(--clr-text-muted);
    border-bottom: 1px solid #e1e4ed;
}

.table tr + tr td {
    border-top: 1px solid #eef0f7;
}

/* Responsive */

@media (max-width: 960px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .steps-grid,
    .platforms-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding-inline: 1rem;
        padding-block: 0.75rem;
    }

    .sidebar-nav {
        flex-direction: row;
        gap: 0.3rem;
        font-size: 0.8rem;
    }

    .sidebar-footer {
        display: none;
    }

    .dashboard-main {
        padding-inline: 1rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
