/* ============================================
   WellSpot — Bright Lab-Like Design System
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --teal-50: #ecfeff;
    --teal-100: #cffafe;
    --teal-200: #a5f3fc;
    --teal-300: #67e8f9;
    --teal-400: #22d3ee;
    --teal-500: #06b6d4;
    --teal-600: #0891b2;
    --teal-700: #0e7490;
    --teal-800: #155e75;
    --teal-900: #164e63;

    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;

    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
    --radius: 8px;
    --radius-lg: 12px;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--teal-600);
    text-decoration: none;
    transition: color .15s;
}

a:hover {
    color: var(--teal-700);
}

h1, h2, h3, h4 {
    line-height: 1.25;
    color: var(--gray-900);
}

/* --- Skip Link --- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: var(--teal-600);
    color: var(--white);
    padding: .5rem 1rem;
    font-weight: 600;
    font-size: .9rem;
    border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
    left: 0;
    color: var(--white);
}

/* --- Focus Styles --- */
:focus-visible {
    outline: 2px solid var(--teal-500);
    outline-offset: 2px;
}

.footer :focus-visible {
    outline-color: var(--teal-400);
}

/* --- Layout Utilities --- */
.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.section {
    padding: 4rem 0;
}

.section--alt {
    background: var(--gray-50);
}

.section__title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: .5rem;
}

.section__subtitle {
    text-align: center;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* --- Well-Plate Decorative Grid --- */
.well-grid-bg {
    position: relative;
    overflow: hidden;
}

.well-grid-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, var(--teal-200) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: .18;
    pointer-events: none;
}

/* --- Navigation --- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3.5rem;
}

.nav__brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: .5rem;
}

.nav__brand:hover {
    color: var(--gray-900);
}

.nav__brand-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.nav__links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav__links a {
    font-size: .9rem;
    font-weight: 500;
    color: var(--gray-600);
}

.nav__links a:hover {
    color: var(--teal-600);
}

/* Mobile nav toggle */
.nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: .25rem;
}

.nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-700);
    margin: 5px 0;
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}

@media (max-width: 640px) {
    .nav__toggle {
        display: block;
    }

    .nav__links {
        display: none;
        position: absolute;
        top: 3.5rem;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--white);
        border-bottom: 1px solid var(--gray-200);
        padding: 1rem 1.25rem;
        gap: .75rem;
        box-shadow: var(--shadow-md);
    }

    .nav__links.open {
        display: flex;
    }
}

/* --- Hero --- */
.hero {
    padding: 4rem 0 3rem;
    text-align: center;
}

.hero__tagline {
    display: inline-block;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--teal-600);
    background: var(--teal-50);
    padding: .3rem .8rem;
    border-radius: 9999px;
    margin-bottom: 1.25rem;
}

.hero__title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero__title em {
    font-style: normal;
    color: var(--teal-600);
}

.hero__desc {
    font-size: 1.15rem;
    color: var(--gray-500);
    max-width: 560px;
    margin: 0 auto 2rem;
}

.hero__cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero__badge {
    transition: transform .15s, box-shadow .15s;
    border-radius: var(--radius);
}

.hero__badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero__badge img {
    height: 48px;
    width: auto;
}

/* Hero video embed */
.hero__video {
    max-width: 640px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.hero__video iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Hero illustration — well-plate visual */
.hero__illustration {
    max-width: 480px;
    margin: 0 auto;
    aspect-ratio: 4 / 3;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.well-plate {
    display: grid;
    gap: 4px;
    padding: 1.5rem;
}

.well-plate--96 {
    grid-template-columns: repeat(12, 1fr);
}

.well-plate .well {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gray-200);
    transition: background .3s, box-shadow .3s;
}

.well-plate .well--lit {
    background: var(--teal-400);
    box-shadow: 0 0 10px var(--teal-300), 0 0 20px rgba(8,145,178,.2);
}

.well-plate .well--amber {
    background: var(--amber-300);
    box-shadow: 0 0 10px var(--amber-200), 0 0 20px rgba(245,158,11,.15);
}

@media (max-width: 640px) {
    .hero__title {
        font-size: 1.85rem;
    }

    .hero__desc {
        font-size: 1rem;
    }

    .well-plate .well {
        width: 16px;
        height: 16px;
    }

    .well-plate {
        gap: 3px;
        padding: 1rem;
    }
}

/* --- How It Works --- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    counter-reset: step;
}

.step {
    text-align: center;
    counter-increment: step;
}

.step__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--teal-50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    position: relative;
}

.step__icon::before {
    content: counter(step);
    position: absolute;
    top: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--teal-600);
    color: var(--white);
    font-size: .75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: .35rem;
}

.step__desc {
    font-size: .9rem;
    color: var(--gray-500);
}

@media (max-width: 640px) {
    .steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 320px;
        margin: 0 auto;
    }
}

/* --- Feature Cards --- */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: box-shadow .2s, border-color .2s;
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--teal-200);
}

.feature-card__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: .75rem;
}

.feature-card__icon--teal {
    background: var(--teal-50);
    color: var(--teal-600);
}

.feature-card__icon--amber {
    background: var(--amber-50);
    color: var(--amber-600);
}

.feature-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: .35rem;
}

.feature-card__desc {
    font-size: .9rem;
    color: var(--gray-500);
    line-height: 1.5;
}

/* --- Pricing --- */
.pricing {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 640px;
    margin: 0 auto;
}

.pricing-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    background: var(--white);
    transition: box-shadow .2s, border-color .2s;
}

.pricing-card:hover {
    box-shadow: var(--shadow-md);
}

.pricing-card--featured {
    border-color: var(--teal-400);
    position: relative;
}

.pricing-card--featured::before {
    content: "Most Popular";
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--teal-600);
    color: var(--white);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .2rem .75rem;
    border-radius: 9999px;
}

.pricing-card__name {
    font-size: .85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--gray-500);
    margin-bottom: .5rem;
}

.pricing-card__price {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: .25rem;
}

.pricing-card__price small {
    font-size: .85rem;
    font-weight: 500;
    color: var(--gray-400);
}

.pricing-card__desc {
    font-size: .9rem;
    color: var(--gray-500);
    margin-bottom: 1.25rem;
}

.pricing-card__features {
    list-style: none;
    text-align: left;
    font-size: .9rem;
    color: var(--gray-600);
}

.pricing-card__features li {
    padding: .35rem 0;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.pricing-card__features li::before {
    content: "✓";
    color: var(--teal-500);
    font-weight: 700;
    font-size: .85rem;
}

@media (max-width: 640px) {
    .pricing {
        grid-template-columns: 1fr;
    }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .65rem 1.5rem;
    border-radius: var(--radius);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background .15s, box-shadow .15s, transform .1s;
}

.btn:active {
    transform: scale(.98);
}

.btn--primary {
    background: var(--teal-600);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--teal-700);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    background: transparent;
    border: 1.5px solid var(--gray-300);
    color: var(--gray-700);
}

.btn--outline:hover {
    border-color: var(--teal-400);
    color: var(--teal-600);
}

/* --- Footer --- */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 3rem 0 1.5rem;
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__brand {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: .5rem;
}

.footer__desc {
    font-size: .85rem;
    line-height: 1.6;
    max-width: 280px;
}

.footer__heading {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gray-300);
    margin-bottom: .75rem;
}

.footer__links {
    list-style: none;
}

.footer__links li {
    margin-bottom: .4rem;
}

.footer__links a {
    font-size: .85rem;
    color: var(--gray-400);
}

.footer__links a:hover {
    color: var(--teal-400);
}

.footer__bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .8rem;
}

.footer__bottom a {
    color: var(--gray-400);
}

.footer__bottom a:hover {
    color: var(--teal-400);
}

@media (max-width: 640px) {
    .footer__inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer__bottom {
        flex-direction: column;
        gap: .5rem;
        text-align: center;
    }
}

/* --- Content Pages (Help, Privacy, Feedback) --- */
.page-header {
    padding: 3rem 0 2rem;
    text-align: center;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.page-header__title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: .5rem;
}

.page-header__desc {
    color: var(--gray-500);
    max-width: 500px;
    margin: 0 auto;
}

.content {
    padding: 3rem 0 4rem;
}

.content__body {
    max-width: 720px;
    margin: 0 auto;
}

.content__body h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 2.5rem 0 .75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

.content__body h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.content__body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 .5rem;
}

.content__body p {
    margin-bottom: 1rem;
    color: var(--gray-600);
}

.content__body ul, .content__body ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    color: var(--gray-600);
}

.content__body li {
    margin-bottom: .4rem;
}

.content__body code {
    background: var(--gray-100);
    padding: .15rem .4rem;
    border-radius: 4px;
    font-size: .9em;
    font-family: "SF Mono", SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

.content__body pre {
    background: var(--gray-800);
    color: var(--gray-100);
    padding: 1.25rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin-bottom: 1.25rem;
    font-size: .85rem;
    line-height: 1.7;
}

.content__body pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.content__body a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Info box */
.info-box {
    background: var(--teal-50);
    border-left: 3px solid var(--teal-500);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-bottom: 1.25rem;
}

.info-box p {
    color: var(--teal-800);
    margin-bottom: 0;
}

/* FAQ / Accordion-style */
.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: .75rem;
    overflow: hidden;
}

.faq-item summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray-800);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--gray-400);
    transition: transform .2s;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item__answer {
    padding: 0 1.25rem 1rem;
    color: var(--gray-600);
    font-size: .95rem;
}

/* --- Feedback Page --- */
.feedback-card {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
    padding: 2.5rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
}

.feedback-card__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feedback-card__title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.feedback-card__desc {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

.feedback-card__links {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    align-items: center;
}

/* --- Table styling --- */
.content__body table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.25rem;
    font-size: .9rem;
}

.content__body th,
.content__body td {
    border: 1px solid var(--gray-200);
    padding: .6rem .75rem;
    text-align: left;
}

.content__body th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
}

.content__body td {
    color: var(--gray-600);
}

/* --- CTA Banner --- */
.cta-banner {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--teal-50) 0%, var(--amber-50) 100%);
}

.cta-banner__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.cta-banner__desc {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}
