*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --font-sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
    --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
    --radius: 0.875rem;

    --background: oklch(98.5% 0.004 275);
    --foreground: oklch(19% 0.035 279);
    --surface: oklch(100% 0 0);
    --surface-raised: oklch(95.5% 0.014 279);
    --card: oklch(100% 0 0);
    --primary: oklch(51.2% 0.234 277);
    --primary-foreground: oklch(98.5% 0.005 275);
    --primary-glow: oklch(55% 0.21 285);
    --muted-foreground: oklch(48% 0.03 279);
    --border: oklch(19% 0.035 279 / 0.12);
    --ring: oklch(51.2% 0.234 277);
    --tint: oklch(19% 0.035 279);
    --tint-grid-opacity: 7%;
    --tint-card-top: 4%;
    --tint-card-bottom: 0%;

    --gradient-hero: radial-gradient(120% 90% at 50% 0%, oklch(51.2% 0.234 277 / 0.12) 0%, oklch(98.5% 0.004 275 / 0) 65%);
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-glow) 100%);
    --gradient-card: linear-gradient(160deg, oklch(0.19 0.035 279 / var(--tint-card-top)) 0%, oklch(0.19 0.035 279 / var(--tint-card-bottom)) 100%);
    --shadow-glow: 0 18px 50px -20px oklch(51.2% 0.234 277 / 0.35);
    --shadow-panel: 0 28px 70px -28px oklch(35% 0.06 279 / 0.28);
}

.dark {
    --background: oklch(12.8% 0.031 279);
    --foreground: oklch(97.3% 0.008 275);
    --surface: oklch(20.2% 0.048 281);
    --surface-raised: oklch(28.6% 0.108 279);
    --card: oklch(19% 0.043 281);
    --primary: oklch(51.2% 0.234 277);
    --primary-foreground: oklch(98.5% 0.005 275);
    --primary-glow: oklch(64% 0.19 285);
    --muted-foreground: oklch(68% 0.032 275);
    --border: oklch(98% 0.02 280 / 0.12);
    --ring: oklch(51.2% 0.234 277);
    --tint: oklch(98% 0.02 280);
    --tint-grid-opacity: 5%;
    --tint-card-top: 7%;
    --tint-card-bottom: 1%;

    --gradient-hero: radial-gradient(120% 90% at 50% 0%, oklch(28.6% 0.108 279 / 0.55) 0%, oklch(12.8% 0.031 279 / 0) 65%);
    --gradient-card: linear-gradient(160deg, oklch(0.98 0.02 280 / var(--tint-card-top)) 0%, oklch(0.98 0.02 280 / var(--tint-card-bottom)) 100%);
    --shadow-glow: 0 18px 60px -18px oklch(51.2% 0.234 277 / 0.55);
    --shadow-panel: 0 32px 90px -30px oklch(6% 0.02 279 / 0.9);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5.5rem;
}

body {
    min-height: 100vh;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--foreground);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.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;
}

.container {
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

.narrow {
    max-width: 42rem;
}

.center {
    text-align: center;
}

.muted {
    color: var(--muted-foreground);
}

.muted a {
    color: var(--primary-glow);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Typography */
h1, h2, h3,
.font-display {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    line-height: 1.05;
}

h2 {
    font-size: clamp(1.875rem, 3.5vw, 2.25rem);
}

h3 {
    font-size: 1.125rem;
}

.text-gradient {
    background-image: var(--gradient-primary);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary-glow);
}

.section-intro {
    max-width: 42rem;
}

.section-intro.center {
    margin: 0 auto;
}

.section-intro h2 {
    margin-top: 1rem;
}

.section-intro p:not(.section-label) {
    margin-top: 1rem;
    color: var(--muted-foreground);
}

.lead {
    margin-top: 1.5rem;
    max-width: 36rem;
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.625;
    color: var(--muted-foreground);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-decoration: none;
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--ring);
}

.btn-sm {
    height: 2.75rem;
    padding: 0 1.75rem;
    font-size: 0.875rem;
}

.btn-lg {
    height: 3.25rem;
    padding: 0 2.25rem;
    font-size: 1rem;
    border-radius: 0.75rem;
}

.btn-primary {
    background-image: var(--gradient-primary);
    color: var(--primary-foreground);
    box-shadow: var(--shadow-glow);
    border: none;
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-secondary {
    border-color: var(--border);
    background: color-mix(in oklab, var(--surface) 60%, transparent);
    color: var(--foreground);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    border-color: color-mix(in oklab, var(--primary) 60%, transparent);
    background: var(--surface);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
    background: color-mix(in oklab, var(--background) 80%, transparent);
    backdrop-filter: blur(24px);
}

.header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    max-width: 80rem;
    margin: 0 auto;
    padding: 1rem 1.25rem;
}

@media (min-width: 768px) {
    .header-inner {
        padding: 1rem 2rem;
    }
}

.brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.625rem;
}

.brand-logo {
    display: block;
    height: 3.25rem;
    width: auto;
    max-width: min(280px, 65vw);
    object-fit: contain;
}

.brand-logo-sm {
    height: 2.5rem;
    max-width: 200px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

@media (min-width: 768px) {
    .header-actions {
        gap: 1.5rem;
    }
}

.nav-links {
    display: none;
    align-items: center;
    gap: 1.75rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.nav-links a:hover {
    color: var(--foreground);
}

@media (min-width: 900px) {
    .nav-links {
        display: flex;
    }
}

.theme-toggle,
.mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    background: color-mix(in oklab, var(--surface) 60%, transparent);
    color: var(--foreground);
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: border-color 0.2s, background 0.2s;
}

.theme-toggle:hover,
.mobile-menu-btn:hover {
    border-color: color-mix(in oklab, var(--primary) 60%, transparent);
    background: var(--surface);
}

.theme-toggle .icon-sun,
.dark .theme-toggle .icon-moon {
    display: none;
}

.dark .theme-toggle .icon-sun {
    display: block;
}

.mobile-menu-btn .icon-close {
    display: none;
}

.mobile-menu-btn[aria-expanded="true"] .icon-menu {
    display: none;
}

.mobile-menu-btn[aria-expanded="true"] .icon-close {
    display: block;
}

@media (min-width: 900px) {
    .mobile-menu-btn {
        display: none;
    }
}

.header-cta {
    display: none;
}

@media (min-width: 640px) {
    .header-cta {
        display: inline-flex;
    }
}

.nav-waitlist {
    font-weight: 600;
    color: var(--primary-glow) !important;
}

@media (min-width: 900px) {
    .nav-waitlist {
        display: none;
    }
}

/* Mobile nav drawer */
@media (max-width: 899px) {
    .nav-links {
        position: fixed;
        inset: 4.5rem 1rem auto;
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 0.75rem;
        border: 1px solid var(--border);
        border-radius: 1rem;
        background: var(--surface);
        box-shadow: var(--shadow-panel);
        z-index: 60;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 0.875rem 1rem;
        border-radius: 0.5rem;
        color: var(--foreground);
    }

    .nav-links a:hover {
        background: var(--surface-raised);
    }
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: var(--gradient-hero);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, color-mix(in oklab, var(--tint) var(--tint-grid-opacity), transparent) 1px, transparent 1px),
        linear-gradient(to bottom, color-mix(in oklab, var(--tint) var(--tint-grid-opacity), transparent) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 100%);
    mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 100%);
}

.hero-inner {
    position: relative;
    display: grid;
    align-items: center;
    gap: 3.5rem;
    padding-top: 5rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .hero-inner {
        padding-top: 7rem;
        padding-bottom: 6rem;
    }
}

@media (min-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1.05fr 1fr;
    }
}

.eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: color-mix(in oklab, var(--surface) 70%, transparent);
    padding: 0.375rem 0.875rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.eyebrow-pill svg {
    color: var(--primary-glow);
    flex-shrink: 0;
}

.hero-copy h1 {
    margin-top: 1.5rem;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2.25rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 32rem;
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.hero-stats dt {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 600;
    letter-spacing: -0.025em;
}

.hero-stats dd {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    line-height: 1.375;
    color: var(--muted-foreground);
}

.hero-visual {
    position: relative;
}

.hero-glow {
    position: absolute;
    inset: -2rem;
    border-radius: 1.5rem;
    background: color-mix(in oklab, var(--primary) 20%, transparent);
    filter: blur(64px);
}

.hero-visual img {
    position: relative;
    width: 100%;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-panel);
}

/* Sections */
.section {
    position: relative;
    padding: 5rem 0;
}

.section-compact {
    padding: 3.5rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 7rem 0;
    }

    .section-compact {
        padding: 4.5rem 0;
    }
}

.surface-card {
    background-image: var(--gradient-card);
    background-color: var(--card);
    border: 1px solid var(--border);
    transition: border-color 0.22s, transform 0.22s, box-shadow 0.22s;
}

.surface-card:hover {
    box-shadow: var(--shadow-glow);
    border-color: oklch(51.2% 0.234 277 / 0.55);
    transform: translateY(-3px);
}

.feature-grid {
    display: grid;
    gap: 1.25rem;
    margin-top: 3.5rem;
}

@media (min-width: 640px) {
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.feature-card {
    border-radius: 1rem;
    padding: 1.5rem;
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    background: color-mix(in oklab, var(--surface-raised) 60%, transparent);
    color: var(--primary-glow);
    transition: border-color 0.2s;
}

.feature-card:hover .feature-icon {
    border-color: color-mix(in oklab, var(--primary) 50%, transparent);
}

.feature-card h3 {
    margin-top: 1.25rem;
}

.feature-card h3 a:hover {
    color: var(--primary-glow);
}

.feature-card p {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.625;
    color: var(--muted-foreground);
}

/* How it works */
.how-grid {
    display: grid;
    gap: 3.5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .how-grid {
        grid-template-columns: 0.85fr 1.15fr;
    }
}

.how-grid h2 {
    margin-top: 1rem;
}

.steps {
    list-style: none;
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.steps li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.25rem;
}

.step-num {
    margin-top: 0.125rem;
    font-family: var(--font-display);
    font-size: 0.875rem;
    color: var(--primary-glow);
    font-variant-numeric: tabular-nums;
}

.steps li > div {
    border-left: 1px solid var(--border);
    padding-left: 1.25rem;
}

.steps p {
    margin-top: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.625;
    color: var(--muted-foreground);
}

.how-visual {
    position: relative;
}

.how-glow {
    position: absolute;
    inset: -1.5rem;
    border-radius: 1.5rem;
    background: color-mix(in oklab, var(--primary) 15%, transparent);
    filter: blur(64px);
}

.console-shot {
    position: relative;
    display: grid;
    grid-template-columns: 9.5rem minmax(0, 1fr);
    min-height: 22rem;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid #e4e6ec;
    background: #f5f6f8;
    color: #1b1d21;
    box-shadow: var(--shadow-panel);
    font-family: var(--font-sans);
}

.console-shot-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0.75rem;
    background: #fff;
    border-right: 1px solid #e4e6ec;
}

.console-shot-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.25rem;
}

.console-shot-mark {
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 0.4rem;
    background: linear-gradient(135deg, #0023c4, #ff5cf4);
    flex-shrink: 0;
}

.console-shot-brand strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.console-shot-brand span {
    display: block;
    font-size: 0.6rem;
    color: #6b7280;
}

.console-shot-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.console-shot-nav li {
    padding: 0.45rem 0.55rem;
    border-radius: 0.45rem;
    font-size: 0.68rem;
    color: #6b7280;
}

.console-shot-nav li.is-active {
    background: rgba(0, 35, 196, 0.08);
    color: #0023c4;
    font-weight: 600;
}

.console-shot-org {
    margin-top: auto;
    padding: 0.45rem 0.55rem;
    border-radius: 0.45rem;
    background: #eef0f5;
    font-size: 0.65rem;
    color: #6b7280;
}

.console-shot-main {
    padding: 1rem 1.1rem 1.15rem;
    min-width: 0;
}

.console-shot-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.console-shot-eyebrow {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #0023c4;
}

.console-shot-header h3 {
    margin-top: 0.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.console-shot-pill {
    flex-shrink: 0;
    border-radius: 999px;
    background: rgba(5, 150, 105, 0.12);
    color: #059669;
    font-size: 0.62rem;
    font-weight: 600;
    padding: 0.25rem 0.55rem;
}

.console-shot-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.console-shot-stats > div {
    background: #fff;
    border: 1px solid #e4e6ec;
    border-radius: 0.55rem;
    padding: 0.55rem 0.6rem;
}

.console-shot-stats span {
    display: block;
    font-size: 0.58rem;
    color: #6b7280;
    margin-bottom: 0.2rem;
}

.console-shot-stats strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.console-shot-stats .ok {
    color: #059669;
}

.console-shot-stats .warn {
    color: #d97706;
}

.console-shot-findings {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.console-shot-findings li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.55rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #e4e6ec;
    border-radius: 0.55rem;
    padding: 0.55rem 0.65rem;
}

.console-shot-findings .dot {
    width: 0.45rem;
    height: 0.45rem;
    margin-top: 0.35rem;
    border-radius: 999px;
    background: #059669;
}

.console-shot-findings .dot.warn {
    background: #d97706;
}

.console-shot-findings strong {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.console-shot-findings p {
    margin-top: 0.1rem;
    font-size: 0.62rem;
    line-height: 1.35;
    color: #6b7280;
}

@media (max-width: 640px) {
    .console-shot {
        grid-template-columns: 1fr;
    }

    .console-shot-nav {
        display: none;
    }

    .console-shot-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Pricing */
.pricing-grid {
    display: grid;
    gap: 1.25rem;
    margin-top: 3.5rem;
}

@media (min-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.pricing-card {
    display: flex;
    flex-direction: column;
    border-radius: 1rem;
    padding: 1.75rem;
}

.pricing-card-featured {
    position: relative;
    border: 1px solid color-mix(in oklab, var(--primary) 60%, transparent);
    background: var(--surface);
    box-shadow: var(--shadow-glow);
    border-radius: 1rem;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
}

.popular-badge {
    position: absolute;
    top: -0.75rem;
    left: 1.75rem;
    border-radius: 999px;
    background-image: var(--gradient-primary);
    padding: 0.25rem 0.75rem;
    font-size: 11px;
    font-weight: 500;
    color: var(--primary-foreground);
}

.price {
    margin-top: 1rem;
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.price span {
    margin-left: 0.25rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--muted-foreground);
}

.price-desc {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.625;
    color: var(--muted-foreground);
}

.pricing-card ul,
.pricing-card-featured ul {
    list-style: none;
    margin: 1.5rem 0 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.pricing-card li,
.pricing-card-featured li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    color: var(--muted-foreground);
}

.pricing-card li svg,
.pricing-card-featured li svg {
    margin-top: 0.125rem;
    flex-shrink: 0;
    color: var(--primary-glow);
}

.pricing-card .btn,
.pricing-card-featured .btn {
    margin-top: 2rem;
    width: 100%;
    height: 2.75rem;
    font-size: 0.875rem;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2.5rem;
}

.faq-item {
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
}

.faq-item:hover {
    transform: none;
}

.faq-item summary {
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 600;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.625;
    color: var(--muted-foreground);
}

/* Waitlist */
.waitlist-panel {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 3.5rem 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .waitlist-panel {
        padding: 5rem 4rem;
    }
}

.waitlist-bg {
    position: absolute;
    inset: 0;
    background-image: var(--gradient-hero);
}

.waitlist-inner {
    position: relative;
    max-width: 42rem;
    margin: 0 auto;
}

.waitlist-inner p {
    margin-top: 1rem;
    color: var(--muted-foreground);
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 28rem;
    margin: 2.25rem auto 0;
}

@media (min-width: 640px) {
    .waitlist-form {
        flex-direction: row;
    }
}

.waitlist-form input {
    flex: 1;
    height: 3rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    background: color-mix(in oklab, var(--background) 70%, transparent);
    color: var(--foreground);
    padding: 0 0.875rem;
    font-size: 1rem;
    outline: none;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.waitlist-form input:focus {
    box-shadow: 0 0 0 1px var(--ring);
}

.waitlist-form .btn {
    flex-shrink: 0;
}

.waitlist-form .honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.form-note {
    margin-top: 1rem !important;
    color: var(--primary-glow) !important;
    font-size: 0.875rem;
}

.form-note-error {
    color: #f87171 !important;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0;
}

.footer-inner {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .footer-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }
}

.footer-brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.625rem;
}

.footer-brand p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-nav a:hover {
    color: var(--foreground);
}

/* Legal page */
.legal-page {
    padding-bottom: 4rem;
}

/* Features page */
.features-page {
    padding-bottom: 2rem;
}

.features-hero {
    position: relative;
    overflow: hidden;
    padding: 4.5rem 0 2.5rem;
}

.features-hero-inner {
    position: relative;
    max-width: 40rem;
}

.features-hero h1 {
    margin-top: 0.75rem;
    font-size: clamp(2rem, 4.5vw, 3rem);
}

.features-hero .lead {
    margin-top: 1.25rem;
}

.features-overview {
    padding-top: 0;
}

.features-overview .muted {
    font-size: 1.0625rem;
    line-height: 1.7;
}

.features-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.feature-detail {
    padding: 2.75rem 0;
    border-top: 1px solid var(--border);
}

.feature-detail:last-child {
    border-bottom: 1px solid var(--border);
}

.feature-detail-copy {
    max-width: 40rem;
}

.feature-detail .feature-icon {
    margin-bottom: 1rem;
}

.feature-detail h2 {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
}

.feature-tagline {
    margin-top: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--primary-glow);
}

.feature-detail-copy > p:not(.feature-tagline) {
    margin-top: 1rem;
    color: var(--muted-foreground);
    line-height: 1.7;
}

.feature-detail ul {
    margin-top: 1.25rem;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.feature-detail li {
    position: relative;
    padding-left: 1.35rem;
    color: var(--foreground);
    font-size: 0.975rem;
}

.feature-detail li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--primary-glow);
}

.inline-link {
    color: var(--primary-glow);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.inline-link:hover {
    color: var(--foreground);
}

.features-page .waitlist-inner .btn {
    margin-top: 1.75rem;
}

.legal-hero {
    position: relative;
    overflow: hidden;
    padding: 4rem 0 2.5rem;
}

.legal-hero-inner {
    position: relative;
}

.legal-hero h1 {
    margin-top: 0.75rem;
    font-size: clamp(2rem, 4vw, 2.75rem);
}

.legal-hero .muted {
    margin-top: 0.75rem;
}

.legal-wrap {
    max-width: 52rem;
    margin-top: 0.5rem;
}

.legal-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
    padding: 0.35rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background: color-mix(in oklab, var(--surface) 70%, transparent);
}

.legal-tab {
    border: none;
    background: transparent;
    color: var(--muted-foreground);
    border-radius: 0.5rem;
    padding: 0.7rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.legal-tab:hover {
    color: var(--foreground);
    background: color-mix(in oklab, var(--surface-raised) 80%, transparent);
}

.legal-tab.is-active {
    color: var(--primary-foreground);
    background-image: var(--gradient-primary);
    box-shadow: var(--shadow-glow);
}

.legal-draft-banner {
    margin-bottom: 1.25rem;
    padding: 0.95rem 1.15rem;
    border: 1px solid color-mix(in oklab, var(--primary) 35%, var(--border));
    border-radius: 0.75rem;
    background: color-mix(in oklab, var(--primary) 8%, var(--surface));
    color: var(--muted-foreground);
    font-size: 0.9rem;
    line-height: 1.55;
}

.legal-draft-banner strong {
    color: var(--foreground);
}

.legal-draft-banner code {
    font-size: 0.82em;
    padding: 0.1em 0.35em;
    border-radius: 0.3rem;
    background: color-mix(in oklab, var(--surface-raised) 80%, transparent);
}

.legal-card-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 720px) {
    .legal-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.legal-index-card {
    display: block;
    border-radius: 1rem;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
}

.legal-index-card h2 {
    margin-top: 0.65rem;
    font-size: 1.25rem;
}

.legal-index-card > p:not(.section-label) {
    margin-top: 0.65rem;
    color: var(--muted-foreground);
    font-size: 0.9rem;
    line-height: 1.55;
}

.legal-hero .section-label a {
    color: inherit;
    text-decoration: none;
}

.legal-hero .section-label a:hover {
    color: var(--foreground);
}

.legal-prose > *:first-child {
    margin-top: 0;
}

.legal-prose h2 {
    margin: 2rem 0 0.85rem;
    font-size: 1.35rem;
}

.legal-prose h3 {
    margin: 1.5rem 0 0.65rem;
    font-size: 1.1rem;
}

.legal-prose h4 {
    margin: 1.15rem 0 0.5rem;
    font-size: 1rem;
}

.legal-prose p,
.legal-prose li {
    color: var(--muted-foreground);
    font-size: 0.95rem;
    line-height: 1.7;
}

.legal-prose p + p {
    margin-top: 0.85rem;
}

.legal-prose strong {
    color: var(--foreground);
    font-weight: 600;
}

.legal-prose a {
    color: var(--primary-glow);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-prose ul,
.legal-prose ol {
    margin: 0.75rem 0 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.legal-prose blockquote {
    margin: 1rem 0;
    padding: 0.85rem 1rem;
    border-left: 3px solid var(--primary);
    border-radius: 0 0.65rem 0.65rem 0;
    background: color-mix(in oklab, var(--primary) 6%, var(--surface));
    color: var(--muted-foreground);
    font-size: 0.9rem;
    line-height: 1.6;
}

.legal-prose hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.75rem 0;
}

.legal-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.25rem;
    font-size: 0.88rem;
    overflow-x: auto;
    display: block;
}

.legal-prose thead {
    background: color-mix(in oklab, var(--surface-raised) 70%, transparent);
}

.legal-prose th,
.legal-prose td {
    border: 1px solid var(--border);
    padding: 0.65rem 0.75rem;
    text-align: left;
    vertical-align: top;
    color: var(--muted-foreground);
    min-width: 7rem;
}

.legal-prose th {
    color: var(--foreground);
    font-weight: 600;
}

.legal-prose code {
    font-size: 0.85em;
    padding: 0.1em 0.35em;
    border-radius: 0.3rem;
    background: color-mix(in oklab, var(--surface-raised) 80%, transparent);
}

.legal-doc {
    border-radius: 1rem;
    overflow: hidden;
}

.legal-doc:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
}

.legal-doc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 1.5rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: color-mix(in oklab, var(--surface-raised) 55%, transparent);
}

@media (min-width: 768px) {
    .legal-doc-header {
        padding: 1.75rem 2rem 1.5rem;
    }
}

.legal-doc-header h2 {
    font-size: 1.5rem;
}

.legal-doc-header p,
.legal-doc-header > span {
    margin-top: 0.35rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.legal-doc-header > span {
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.legal-doc-body {
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .legal-doc-body {
        padding: 2rem;
    }
}

.legal-doc-body h3 {
    margin: 1.75rem 0 0.75rem;
    font-size: 1.15rem;
}

.legal-doc-body h3:first-child {
    margin-top: 0;
}

.legal-doc-body p,
.legal-doc-body li {
    color: var(--muted-foreground);
    font-size: 0.95rem;
    line-height: 1.7;
}

.legal-doc-body p + p {
    margin-top: 0.9rem;
}

.legal-doc-body strong {
    color: var(--foreground);
    font-weight: 600;
}

.legal-doc-body ul {
    margin: 0.75rem 0 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.legal-block {
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    background: color-mix(in oklab, var(--surface-raised) 40%, transparent);
}

.legal-block + .legal-block {
    margin-top: 0.85rem;
}

.legal-block h3 {
    margin-top: 0;
}

.legal-doc-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    background: color-mix(in oklab, var(--surface-raised) 55%, transparent);
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

@media (min-width: 768px) {
    .legal-doc-footer {
        padding: 1rem 2rem;
    }
}

.legal-contact {
    margin-top: 1.75rem;
    text-align: center;
    font-size: 0.95rem;
}

.legal-contact a {
    color: var(--primary-glow);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .btn-primary:hover,
    .surface-card:hover {
        transform: none;
    }
}
