:root {
    --navy-900: #18181b;
    --teal-900: #134e4a;
    --teal-600: #0d9488;
    --teal-500: #14b8a6;
    --teal-400: #2dd4bf;
    --zinc-700: #3f3f46;
    --zinc-600: #52525b;
    --zinc-500: #71717a;
    --zinc-400: #a1a1aa;
    --white: #ffffff;
    --border-soft: rgba(255, 255, 255, 0.1);
    --surface: rgba(255, 255, 255, 0.05);
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;
    --header-h: 88px;
    --page-gradient: linear-gradient(to right, var(--navy-900), var(--teal-900));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
    background: var(--page-gradient);
    background-attachment: fixed;
    color: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

.container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    background: var(--teal-600);
    color: var(--white);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

/* ---------------------------------- Buttons ---------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 2.5rem;
    border-radius: var(--radius-lg);
    padding: 0 1rem;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.btn--icon-trailing {
    padding-right: 0.75rem;
}

.btn__icon {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}

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

.btn--primary:hover {
    background: var(--teal-500);
}

.btn--ghost {
    background: transparent;
    color: var(--white);
}

.btn--ghost:hover {
    background: var(--surface);
}

.btn--default {
    background: var(--zinc-700);
    color: var(--white);
    border: 1px solid var(--zinc-600);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn--default:hover {
    background: rgba(82, 82, 91, 0.75);
}

.btn--sm {
    height: 2rem;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    border-radius: var(--radius-md);
}

/* ---------------------------------- Pills ---------------------------------- */

.pill {
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius-full);
    padding: 0.15rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.pill--muted {
    background: var(--surface);
    color: var(--zinc-400);
}

.pill--accent {
    background: rgba(13, 148, 136, 0.2);
    color: var(--teal-400);
}

/* ---------------------------------- Header / Nav ---------------------------------- */

.site-header {
    padding-top: 1.5rem;
    position: relative;
    z-index: 20;
}

.nav {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav__logo img {
    height: 3.5rem;
    width: auto;
}

.nav__actions {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

.nav__toggle {
    background: transparent;
    border: none;
    color: var(--zinc-400);
    padding: 0.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.nav__toggle:hover {
    background: var(--zinc-700);
}

.nav__toggle svg {
    width: 1.5rem;
    height: 1.5rem;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    position: absolute;
    inset-inline: 0.5rem;
    top: 0.5rem;
    padding: 1rem 1.25rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.mobile-menu.is-open {
    display: flex;
}

.mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.mobile-menu__header img {
    height: 3rem;
    width: auto;
}

.mobile-menu__close {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--zinc-500);
    padding: 0.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
}

.mobile-menu__close:hover {
    background: rgba(0, 0, 0, 0.05);
}

.mobile-menu__close svg {
    width: 1.5rem;
    height: 1.5rem;
}

.mobile-menu__cta {
    text-align: center;
}

@media (min-width: 768px) {
    .nav__actions {
        display: flex;
    }

    .nav__toggle {
        display: none;
    }

    .mobile-menu {
        display: none !important;
    }
}

/* ---------------------------------- Hero ---------------------------------- */

.hero {
    padding: 3rem 0 1rem;
}

.hero__inner {
    text-align: center;
    max-width: 42rem;
}

.hero__title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 1rem;
}

.hero__subhead {
    font-size: 1.125rem;
    color: var(--zinc-400);
    margin: 0 0 2rem;
}

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

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

/* ---------------------------------- Mockups (placeholder screenshots) ---------------------------------- */

.mockup {
    border: 4px double var(--zinc-700);
    border-radius: var(--radius-xl);
    background: rgba(24, 24, 27, 0.6);
    overflow: hidden;
    text-align: left;
}

.mockup__bar {
    display: flex;
    gap: 0.4rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-soft);
}

.mockup__dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: var(--radius-full);
    background: var(--zinc-700);
}

.mockup__body {
    padding: 1.5rem;
}

.mockup--compact .mockup__body {
    padding: 1.25rem;
}

.mockup__row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-soft);
    margin-bottom: 1.25rem;
}

.mockup__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--white);
}

.mockup__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

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

.mockup__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.mockup__field--full {
    margin-top: 1rem;
}

.mockup__label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--zinc-500);
}

.mockup__value {
    font-size: 0.875rem;
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.75rem;
    color: var(--white);
}

.mockup__value--accent {
    color: var(--teal-400);
}

.mockup__value--textarea {
    display: block;
    min-height: 3.5rem;
    line-height: 1.5;
}

.mockup__photo {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-md);
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--zinc-500);
    flex-shrink: 0;
}

.mockup__photo svg {
    width: 1.15rem;
    height: 1.15rem;
}

.mockup__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.25rem;
}

/* Timeline (beat 2) */

.timeline {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 0;
    margin: 0 0 1.5rem;
}

.timeline__step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--zinc-500);
}

.timeline__dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: var(--radius-full);
    background: var(--zinc-700);
}

.timeline__step.is-done {
    color: var(--zinc-400);
}

.timeline__step.is-done .timeline__dot {
    background: var(--teal-600);
}

.timeline__step.is-current {
    color: var(--white);
    font-weight: 600;
}

.timeline__step.is-current .timeline__dot {
    background: var(--teal-400);
    box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.2);
}

.status-callout {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(13, 148, 136, 0.15);
    border: 1px solid rgba(13, 148, 136, 0.35);
    border-radius: var(--radius-lg);
    padding: 0.6rem 0.85rem;
    color: var(--teal-400);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.status-callout__dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: var(--radius-full);
    background: var(--teal-400);
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.25);
}

.chat-preview {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
}


.chat-preview__thread {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.chat-preview__msg {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: flex-start;
    max-width: 80%;
}

.chat-preview__msg--reply {
    align-self: flex-end;
    align-items: flex-end;
}

.chat-preview__sender {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--zinc-500);
    margin-bottom: 0.2rem;
}

.chat-preview__bubble {
    display: inline-block;
    background: var(--surface);
    color: var(--white);
    font-size: 0.8125rem;
    border-radius: var(--radius-lg);
    padding: 0.5rem 0.85rem;
}

.chat-preview__bubble--reply {
    background: rgba(13, 148, 136, 0.2);
    color: var(--teal-400);
}

/* Records list (beat 3) */

.records-list {
    display: flex;
    flex-direction: column;
}

.records-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-soft);
}

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

.records-row__info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.records-row__property {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--white);
}

.records-row__meta {
    font-size: 0.8125rem;
    color: var(--zinc-500);
}

.records-row__people {
    font-size: 0.75rem;
    color: var(--zinc-500);
}

/* ---------------------------------- Scroll sequence ---------------------------------- */

.scroll-sequence {
    padding: 1.5rem 0 4rem;
}

.scroll-sequence__track {
    display: grid;
    grid-template-columns: 1fr;
}

.beat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
}

.beat__line {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0 0 1.5rem;
}

.scroll-visual {
    display: none;
}

/* Desktop: sticky pinned visual, centered, caption crossfades with the image.
   Gated behind .scroll-sequence-sticky, which nothing currently applies to
   the <html> element -- paused in favor of the simple stacked layout below
   while the mockups grow taller with more real fields. Add the class back
   to re-enable. */
@media (min-width: 901px) {
    html.scroll-sequence-sticky .scroll-sequence__track {
        grid-template-rows: 1fr;
    }

    html.scroll-sequence-sticky .scroll-sequence__text {
        grid-column: 1;
        grid-row: 1;
    }

    html.scroll-sequence-sticky .beat {
        min-height: 85vh;
    }

    html.scroll-sequence-sticky .beat__line,
    html.scroll-sequence-sticky .beat__visual {
        display: none;
    }

    html.scroll-sequence-sticky .scroll-visual {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        grid-column: 1;
        grid-row: 1;
        align-self: start;
        position: sticky;
        top: calc(var(--header-h) + 1rem);
        height: 85vh;
    }

    html.scroll-sequence-sticky .scroll-visual__panel {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        opacity: 0;
        transition: opacity 0.5s ease;
    }

    html.scroll-sequence-sticky .scroll-visual__panel.is-active {
        opacity: 1;
    }

    html.scroll-sequence-sticky .scroll-visual__caption {
        font-size: 1.375rem;
        font-weight: 600;
        letter-spacing: -0.01em;
        text-align: center;
        max-width: 28rem;
        margin: 0 0 1.5rem;
    }

    html.scroll-sequence-sticky .scroll-visual__panel .mockup {
        width: 100%;
        max-width: 68rem;
    }
}

/* Mobile, or reduced-motion at any width: stacked image-then-caption, no pinning */
.beat__visual {
    margin-top: 0.5rem;
}

/* ---------------------------------- FAQ ---------------------------------- */

.faq {
    border-top: 1px solid var(--border-soft);
    padding: 4rem 0;
}

.faq__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.faq__heading {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 1rem;
}

.faq__support {
    color: var(--zinc-400);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

.faq__link {
    color: var(--teal-500);
    font-weight: 600;
    text-decoration: none;
}

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

.faq__list {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.faq__question {
    font-weight: 600;
    margin: 0 0 0.4rem;
}

.faq__answer {
    color: var(--zinc-400);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

@media (min-width: 768px) {
    .faq__grid {
        grid-template-columns: 5fr 7fr;
        gap: 3rem;
    }
}

/* ---------------------------------- Final CTA ---------------------------------- */

.final-cta {
    border-top: 1px solid var(--border-soft);
    padding: 4rem 0;
    text-align: center;
}

.final-cta__line {
    margin: 0;
    color: var(--zinc-400);
    font-size: 0.9375rem;
}

/* ---------------------------------- Footer ---------------------------------- */

.site-footer {
    border-top: 1px solid var(--border-soft);
    padding: 3rem 0;
    text-align: center;
}

.site-footer__logo {
    height: 4rem;
    width: auto;
    margin: 0 auto 1.5rem;
}

.site-footer__email {
    display: block;
    text-decoration: none;
    margin-bottom: 1.5rem;
}

.site-footer__email:hover {
    color: var(--teal-400);
}

.site-footer__copyright {
    margin: 0;
    color: var(--zinc-400);
    font-size: 0.875rem;
}

/* ---------------------------------- Reduced motion ---------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
