/*
 * GNLE Lab site styles — shared across the homepage and the /products/ pages.
 * Plain static site (no build step), so this file is linked root-relative as
 * /assets/site.css from every page regardless of its directory depth.
 */

:root {
    --bg: #f0f2f5;
    --surface: #fff;
    --text: #1a1a1a;
    --muted: #555;
    --muted-2: #666;
    --muted-3: #888;
    --faint: #999;
    --accent: #1976d2;
    --accent-bg: #e3f2fd;
    --border: #e5e7eb;
    --safe-fg: #2e7d32;
    --safe-bg: #e8f5e9;
    --wait-fg: #b25e00;
    --wait-bg: #fff4e0;
    --radius-lg: 16px;
    --radius-md: 12px;
    --maxw: 960px;
    --readw: 640px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    /* Offset in-page anchor jumps so the sticky header does not cover the target. */
    scroll-padding-top: 80px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Header / navigation ------------------------------------------------ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
}

.site-brand img {
    height: 26px;
    width: auto;
    display: block;
}

.site-nav {
    display: flex;
    gap: 24px;
}

.site-nav a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.site-nav a:hover {
    color: var(--accent);
    text-decoration: none;
}

/* ---- Generic section + typography --------------------------------------- */

section {
    padding: 56px 0;
}

section + section {
    border-top: 1px solid var(--border);
}

.section-narrow {
    max-width: var(--readw);
    margin: 0 auto;
}

.kicker {
    font-size: 13px;
    color: var(--muted-3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

h2 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 16px;
}

h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
}

p {
    font-size: 16px;
    color: var(--muted);
    margin-bottom: 16px;
}

p:last-child {
    margin-bottom: 0;
}

.lead {
    font-size: 18px;
    color: var(--muted);
}

/* ---- Badges / pills ----------------------------------------------------- */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-bg);
    padding: 4px 11px;
    border-radius: var(--radius-md);
    letter-spacing: 0.02em;
}

.badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

/* ---- Product cards ------------------------------------------------------ */

.card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

a.card:hover {
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.card-header img {
    height: 34px;
    width: auto;
    flex-shrink: 0;
}

.card h3 {
    margin: 0;
}

.card .tagline {
    font-size: 15px;
    color: var(--muted-2);
    margin-bottom: 14px;
}

.card-cta {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    margin-top: 4px;
}

/* ---- Contact ------------------------------------------------------------ */

.contact-line {
    font-size: 16px;
    color: var(--muted);
}

/* ---- Footer ------------------------------------------------------------- */

footer.site-footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
}

footer.site-footer .container {
    padding-top: 28px;
    padding-bottom: 28px;
    text-align: center;
}

footer.site-footer p {
    font-size: 12px;
    color: var(--faint);
    margin-bottom: 4px;
}

footer.site-footer p:last-child {
    margin-bottom: 0;
}

footer.site-footer .footer-links {
    margin-bottom: 10px;
}

footer.site-footer a {
    color: var(--muted-2);
    font-weight: 500;
}

footer.site-footer a:hover {
    color: var(--accent);
}

/* ---- Disclaimer note ---------------------------------------------------- */

.disclaimer {
    font-size: 13px;
    color: var(--muted-3);
    background: #fafafa;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-top: 8px;
}

/* ---- Plain bulleted list (privacy notice, etc.) ------------------------- */

.plain-list {
    list-style: disc;
    padding-left: 22px;
    margin-bottom: 4px;
}

.plain-list li {
    font-size: 16px;
    color: var(--muted);
    margin-bottom: 8px;
}

.notice-updated {
    font-size: 13px;
    color: var(--muted-3);
    margin-top: 16px;
}

/* ---- Feature list ------------------------------------------------------- */

.features {
    list-style: none;
    display: grid;
    gap: 16px;
}

.features li {
    padding-left: 28px;
    position: relative;
    font-size: 16px;
    color: var(--muted);
}

.features li strong {
    color: var(--text);
    font-weight: 600;
}

.features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: var(--accent-bg);
    border: 2px solid var(--accent);
}

/* ---- Phone mockups ------------------------------------------------------ */

.mockups {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    justify-content: center;
    margin: 8px 0 20px;
}

.mock-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 220px;
}

.phone {
    width: 220px;
    height: 452px;
    background: #fff;
    border: 10px solid #1f2330;
    border-radius: 34px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* The notch sits over the top of the screen. */
.phone::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 92px;
    height: 18px;
    background: #1f2330;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 3;
}

.mock-cap {
    font-size: 13px;
    color: var(--muted-2);
    margin-top: 12px;
    text-align: center;
}

.screen {
    flex: 1;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.screen-bar {
    background: var(--surface);
    padding: 26px 14px 12px;
    border-bottom: 1px solid var(--border);
}

.screen-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.screen-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

/* Family-member selector chips inside a mockup. */
.chips {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.chip {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 10px;
    background: #eef1f5;
    color: var(--muted-2);
}

.chip.active {
    background: var(--accent-bg);
    color: var(--accent);
}

/* Medicine card inside a mockup. */
.mcard {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 11px;
}

.mcard-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.mcard-meta {
    font-size: 9.5px;
    color: var(--muted-3);
    margin-top: 6px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 9px;
}

.pill svg {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
}

.pill.safe {
    color: var(--safe-fg);
    background: var(--safe-bg);
}

.pill.wait {
    color: var(--wait-fg);
    background: var(--wait-bg);
}

/* Settings-style rows for the "you configure the limits" mockup. */
.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 9px 11px;
}

.setting-label {
    font-size: 10px;
    color: var(--muted-2);
}

.setting-value {
    font-size: 10px;
    font-weight: 700;
    color: var(--text);
}

/* Primary action button inside a mockup. */
.mbtn {
    margin-top: auto;
    background: var(--accent);
    color: #fff;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    padding: 9px;
    border-radius: 10px;
}

/* ---- Buttons (real, on the product page) -------------------------------- */

.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: var(--radius-md);
}

.btn:hover {
    text-decoration: none;
    background: #1565c0;
}

/* ---- Responsive --------------------------------------------------------- */

@media (max-width: 600px) {
    section {
        padding: 40px 0;
    }

    h1 {
        font-size: 26px;
    }

    .site-nav {
        gap: 16px;
    }

    .site-nav a {
        font-size: 13px;
    }
}
