:root {
    --ink: #0f172a;
    --ink-soft: #475569;
    --line: #e2e8f0;
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --brand: #0d9488;
    --brand-dark: #0f766e;
    --brand-ink: #042f2e;
    --accent: #f59e0b;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -8px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
}

a { color: inherit; }

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Nav */
header.site {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
    color: var(--ink);
}

.logo .mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.95rem;
    font-weight: 800;
}

nav.links {
    display: flex;
    gap: 28px;
    align-items: center;
}

nav.links a.nav-link {
    text-decoration: none;
    color: var(--ink-soft);
    font-size: 0.95rem;
    font-weight: 500;
}

nav.links a.nav-link:hover { color: var(--ink); }

.nav-cta {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: inherit;
    text-decoration: none;
    border: 1px solid transparent;
    appearance: none;
    cursor: pointer;
}

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

.btn-primary:hover { background: var(--brand-dark); }

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

.btn-ghost:hover { border-color: #cbd5e1; }

.btn-lg { padding: 14px 26px; font-size: 1.05rem; border-radius: 12px; }

#menu-toggle { display: none; }

.menu-backdrop {
    display: none;
}

/* Hero */
.hero {
    padding: 88px 0 64px;
    background:
        radial-gradient(1200px 400px at 80% -10%, rgba(13, 148, 136, 0.10), transparent),
        var(--bg);
}

.hero .wrap {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand-dark);
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 20px;
}

h1 {
    font-size: clamp(2.1rem, 4vw, 3.1rem);
    line-height: 1.12;
    margin: 0 0 18px;
    letter-spacing: -0.02em;
}

.lede {
    font-size: 1.15rem;
    color: var(--ink-soft);
    max-width: 52ch;
    margin: 0 0 30px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }

.hero-note { font-size: 0.85rem; color: var(--ink-soft); }

/* Hero visual: mock pick-list card */
.mock-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.mock-card .mock-head {
    background: var(--brand-ink);
    color: white;
    padding: 14px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}

.mock-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    font-size: 0.88rem;
    align-items: center;
}

.mock-row:last-child { border-bottom: none; }

.mock-sku { font-weight: 600; }
.mock-loc { color: var(--ink-soft); font-size: 0.8rem; }

.pill {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

.pill-soon { background: #fef3c7; color: #92400e; }
.pill-ok { background: #dcfce7; color: #166534; }

/* Sections */
section { padding: 72px 0; }

.section-head { margin: 0 0 44px; }

.section-head .eyebrow { margin-bottom: 14px; }

h2 {
    font-size: clamp(1.6rem, 3vw, 2.15rem);
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.section-head p { max-width: 640px; color: var(--ink-soft); font-size: 1.05rem; margin: 0; }

.section-head.centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.btn-inverse {
    background: white;
    color: var(--brand-ink);
}

.btn-inverse:hover {
    background: #f8fafc;
    color: var(--brand-ink);
}

.btn-full { width: 100%; }

.footer-logo { margin-bottom: 6px; }

.bg-soft { background: var(--bg-soft); }

/* Feature grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
}

.card .icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: #ecfdf5;
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.card .icon svg { width: 28px; height: 28px; }

.card h3 { font-size: 1.05rem; margin: 0 0 8px; text-align: center; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }

/* How it works */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 26px 22px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
}

.step .num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: var(--brand-ink);
    color: white;
    font-weight: 700;
    font-size: 1.4rem;
    margin: 0 auto 18px;
}

.step h3 { font-size: 1rem; margin: 0 0 6px; text-align: center; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }

/* Audience */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.audience-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
}

.audience-card h3 { font-size: 1.02rem; margin: 0 0 8px; }
.audience-card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.plan {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 26px;
    background: var(--bg);
}

.plan.featured {
    border-color: var(--brand);
    box-shadow: var(--shadow);
    position: relative;
}

.plan.featured::before {
    content: "Most popular";
    position: absolute;
    top: -12px;
    left: 26px;
    background: var(--brand);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}

.plan-name { font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; text-align: center; }
.plan-price { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 2px; text-align: center; }
.plan-price span { font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); }
.plan-desc { color: var(--ink-soft); font-size: 0.88rem; margin-bottom: 22px; text-align: center; }

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
    flex: 1;
}

.plan-features li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.9rem;
    padding: 7px 0;
    color: var(--ink);
}

.plan-features li svg { flex: none; margin-top: 3px; color: var(--brand); }

.trial-note {
    text-align: center;
    color: var(--ink-soft);
    font-size: 0.9rem;
    margin-top: 28px;
}

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }

details.faq-item {
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
}

details.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

details.faq-item summary .chev {
    transition: transform 0.15s ease;
    color: var(--ink-soft);
    flex: none;
    margin-left: 16px;
}

details.faq-item[open] summary .chev { transform: rotate(180deg); }

details.faq-item p {
    margin: 14px 0 0;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

/* Final CTA */
.cta-band {
    background: var(--brand-ink);
    color: white;
    border-radius: 24px;
    padding: 56px 40px;
    text-align: center;
}

.cta-band h2 { color: white; }
.cta-band p { color: #99f6e4; max-width: 46ch; margin: 0 auto 28px; }

/* Footer */
footer.site {
    border-top: 1px solid var(--line);
    padding: 40px 0;
    color: var(--ink-soft);
    font-size: 0.88rem;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links { display: flex; gap: 20px; }
.footer-links a { text-decoration: none; color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 900px) {
    .hero .wrap { grid-template-columns: 1fr; }
    .grid-3, .steps, .audience-grid, .pricing-grid { grid-template-columns: 1fr 1fr; }
}

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

    .menu-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(2, 6, 23, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
        z-index: 30;
    }

    #menu-toggle:checked ~ .menu-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    #menu-toggle:checked ~ header ~ .mobile-menu {
        transform: translateX(0);
    }

    .mobile-menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(82vw, 320px);
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 24px 20px 20px;
        border-left: 1px solid var(--line);
        background: #ffffff;
        box-shadow: var(--shadow);
        transform: translateX(100%);
        transition: transform 0.22s ease;
        z-index: 41;
    }

    .mobile-menu a { padding: 10px 0; text-decoration: none; color: var(--ink); font-weight: 500; }

    .menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        border: 1px solid var(--line);
        cursor: pointer;
    }
    .grid-3, .steps, .audience-grid, .pricing-grid { grid-template-columns: 1fr; }

    .card {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        gap: 16px;
        padding: 20px;
    }

    .card .icon {
        flex: none;
        width: 64px;
        height: auto;
        margin: 0;
    }

    .card .icon svg { width: 24px; height: 24px; }

    .card-body { flex: 1; min-width: 0; }
    .card h3 { text-align: left; }

    .step {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        gap: 16px;
        padding: 20px;
    }

    .step .num {
        flex: none;
        width: 64px;
        height: auto;
        margin: 0;
        font-size: 1.1rem;
    }

    .step-body { flex: 1; min-width: 0; }
    .step h3 { text-align: left; }
}

@media (min-width: 721px) {
    .menu-btn, .mobile-menu { display: none; }
}

/* Flash status */
.flash-status {
    background: #ecfdf5;
    color: var(--brand-ink);
    border-bottom: 1px solid #a7f3d0;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 24px;
}

/* Auth + signup modals */
dialog.signup-modal,
dialog.auth-modal {
    border: none;
    border-radius: 18px;
    padding: 0;
    width: min(460px, calc(100vw - 32px));
    box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.35);
}

dialog.auth-modal::backdrop { background: rgba(15, 23, 42, 0.55); }

.modal-switch {
    text-align: center;
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin: 4px 0 0;
}

.modal-switch a { color: var(--brand-dark); font-weight: 600; text-decoration: none; }

.field-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    margin: -4px 0 18px;
}

.field-check input { width: auto; }

.modal-form {
    padding: 32px 28px;
    position: relative;
}

.modal-form h3 {
    margin: 0 0 6px;
    font-size: 1.3rem;
    letter-spacing: -0.01em;
}

.modal-sub {
    margin: 0 0 20px;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    border: none;
    background: none;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--ink-soft);
    cursor: pointer;
    padding: 4px;
}

.modal-close:hover { color: var(--ink); }

.plan-toggle {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.plan-opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 9px 4px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--ink-soft);
    cursor: pointer;
}

.plan-opt span { font-weight: 500; font-size: 0.74rem; color: var(--ink-soft); }

.plan-opt.active {
    border-color: var(--brand);
    background: #ecfdf5;
    color: var(--brand-ink);
}

.plan-opt.active span { color: var(--brand-dark); }

.field {
    display: block;
    margin-bottom: 14px;
}

.field span {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    font-size: 0.95rem;
    font-family: inherit;
}

.field input:focus {
    outline: 2px solid var(--brand);
    outline-offset: 1px;
    border-color: var(--brand);
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.err {
    display: block;
    color: #b91c1c;
    font-size: 0.78rem;
    margin-top: 4px;
}

.modal-foot {
    text-align: center;
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin: 16px 0 0;
}

.modal-foot a { color: var(--brand-dark); font-weight: 600; text-decoration: none; }

@media (max-width: 480px) {
    .field-row { grid-template-columns: 1fr; }
}