/* ===========================================================================
   ZERO ID — shared theme
   ---------------------------------------------------------------------------
   Design tokens, nav, footer and typography shared across the secondary pages
   (about, contact, and the legal/policy set).

   index-new.html and pricing-new.html still carry their own inline copies of
   these tokens. If you convert those to link this file, keep the token values
   in sync — this file is the intended single source of truth going forward.

   Type: Funnel Display (display) / Wix Madefor Display (body) / JetBrains Mono
   =========================================================================== */

:root {
    --bg: #08080A;
    --surface: #0E0E11;
    --surface-2: #141418;

    --line: rgba(255, 255, 255, .09);
    --line-strong: rgba(255, 255, 255, .18);

    --fg: #FFFFFF;
    --fg-muted: #A2A2AC;
    --fg-dim: #7E7E89;

    --lime: #CEFF0C;
    --lime-soft: rgba(206, 255, 12, .12);
    --on-lime: #08080A;

    --danger: #FF6B6B;
    --amber: #FFCC4D;
    --amber-soft: rgba(255, 204, 77, .1);

    --font-display: 'Funnel Display', system-ui, sans-serif;
    --font-body: 'Wix Madefor Display', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 32px;

    --gutter: clamp(20px, 5vw, 40px);
    --section-y: clamp(64px, 7vw, 104px);
    --maxw: 1240px;

    --ease: cubic-bezier(.22, 1, .36, 1);
    --dur: 240ms;

    --z-drawer: 200;
    --z-nav: 210;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.1;
    margin: 0;
    text-wrap: balance;
}

p {
    margin: 0;
    text-wrap: pretty;
}

:focus-visible {
    outline: 2px solid var(--lime);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection {
    background: var(--lime);
    color: var(--on-lime);
}

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

.skip-link {
    position: absolute;
    left: 12px;
    top: -100px;
    z-index: 999;
    background: var(--lime);
    color: var(--on-lime);
    padding: 12px 20px;
    border-radius: var(--r-sm);
    font-weight: 600;
    text-decoration: none;
    transition: top var(--dur) var(--ease);
}

.skip-link:focus-visible {
    top: 12px;
}

/* ---------- Layout ---------- */
.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section-pad {
    padding-block: var(--section-y);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--lime);
    margin: 0 0 20px;
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--lime);
    flex: none;
}

.h-section {
    font-size: clamp(1.9rem, 4vw, 3rem);
}

.lead {
    color: var(--fg-muted);
    font-size: clamp(1rem, 1.15vw, 1.0625rem);
    max-width: 62ch;
}

.rule {
    height: 1px;
    background: var(--line);
    border: 0;
    margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .9375rem;
    letter-spacing: -.01em;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
        border-color var(--dur) var(--ease), transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.btn svg {
    flex: none;
}

.btn-primary {
    background: var(--lime);
    color: var(--on-lime);
}

.btn-primary:hover {
    background: #DDFF4D;
}

.btn-ghost {
    border-color: var(--line-strong);
    color: var(--fg);
}

.btn-ghost:hover {
    border-color: var(--fg);
    background: rgba(255, 255, 255, .05);
}

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

.btn-sm {
    min-height: 42px;
    padding: 10px 20px;
    font-size: .875rem;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---------- Nav ---------- */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-block: 7px;
    text-decoration: none;
}

.logo svg,
.logo-img {
    height: 30px;
    width: auto;
}

/* ---------- Slim header (secondary pages) ----------
   Logo left, Home + primary CTA right. No nav list, so no drawer needed. */
.nav-simple .nav-inner {
    justify-content: space-between;
}

.nav-simple .nav-actions {
    gap: 6px;
}

.nav-simple .nav-home {
    padding: 10px 14px;
    font-size: .875rem;
    font-weight: 500;
    color: var(--fg-muted);
    text-decoration: none;
    border-radius: var(--r-sm);
    transition: color var(--dur) var(--ease);
}

.nav-simple .nav-home:hover {
    color: var(--fg);
}

/* The full nav hides its buttons under 960px because the drawer carries them.
   The slim header has no drawer, so its CTA must stay visible. */
@media (max-width:960px) {
    .nav-simple .nav-actions .btn {
        display: inline-flex;
    }
}

@media (max-width:520px) {
    .nav-simple .btn {
        padding-inline: 16px;
    }

    .nav-simple .nav-home {
        padding-inline: 8px;
    }

    .nav-simple .logo-img {
        height: 26px;
    }
}

.nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: var(--z-nav);
    border-bottom: 1px solid transparent;
    transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.nav.is-stuck {
    background: rgba(8, 8, 10, .82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
}

.nav.is-drawer-open {
    background: var(--surface);
    border-bottom-color: var(--line);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 76px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-inline: auto;
}

.nav-links a {
    position: relative;
    padding: 10px 14px;
    font-size: .875rem;
    font-weight: 500;
    color: var(--fg-muted);
    text-decoration: none;
    border-radius: var(--r-sm);
    transition: color var(--dur) var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--fg);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 1px;
    background: var(--lime);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur) var(--ease);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
    transform: scaleX(1);
}

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

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--fg);
    position: relative;
    transition: background-color var(--dur) var(--ease);
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 1.5px;
    background: var(--fg);
    transition: transform var(--dur) var(--ease);
}

.nav-toggle span::before {
    top: -6px;
}

.nav-toggle span::after {
    top: 6px;
}

.nav-toggle[aria-expanded="true"] span {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-scrim {
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-drawer) - 1);
    background: rgba(4, 4, 6, .68);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur) var(--ease);
}

.nav-scrim.is-open {
    opacity: 1;
    pointer-events: auto;
}

.drawer {
    position: fixed;
    inset: 76px 0 auto;
    z-index: var(--z-drawer);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 28px;
    display: none;
}

.drawer.is-open {
    display: block;
    animation: drawerIn 320ms var(--ease);
}

@keyframes drawerIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.drawer a {
    display: block;
    padding: 15px 4px;
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -.02em;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
}

.drawer .btn {
    width: 100%;
    margin-top: 22px;
}

@media (max-width:960px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-actions .btn {
        display: none;
    }

    .nav-inner {
        justify-content: space-between;
    }
}

/* ---------- Page header ---------- */
.page-head {
    position: relative;
    padding-top: clamp(112px, 13vw, 158px);
    padding-bottom: clamp(30px, 4vw, 48px);
    overflow: hidden;
}

.page-head::before {
    content: "";
    position: absolute;
    top: -320px;
    left: 50%;
    width: min(1100px, 130vw);
    aspect-ratio: 1;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(206, 255, 12, .10) 0%, transparent 62%);
    pointer-events: none;
}

.page-head>* {
    position: relative;
}

.page-head h1 {
    font-size: clamp(2.25rem, 5.4vw, 3.75rem);
    letter-spacing: -.03em;
}

.page-head .lead {
    margin-top: 18px;
}

/* Breadcrumb */
.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--fg-dim);
    list-style: none;
}

/* inline-block + padding keeps the crumb links above the 24px minimum
   target size; vertical padding alone does not grow an inline hit box. */
.crumbs a {
    display: inline-block;
    padding-block: 5px;
    color: var(--fg-dim);
    text-decoration: none;
    transition: color var(--dur) var(--ease);
}

.crumbs a:hover {
    color: var(--lime);
}

.crumbs li[aria-current="page"] {
    color: var(--fg-muted);
}

.crumbs .sep {
    opacity: .5;
}

/* ---------- Prose (legal / policy copy) ---------- */
.prose {
    max-width: 78ch;
    color: var(--fg-muted);
    font-size: 1rem;
}

.prose h2 {
    margin-top: clamp(40px, 5vw, 56px);
    margin-bottom: 14px;
    font-size: clamp(1.25rem, 2.2vw, 1.625rem);
    color: var(--fg);
    scroll-margin-top: 100px;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose h3 {
    margin-top: 32px;
    margin-bottom: 10px;
    font-size: 1.0625rem;
    color: var(--fg);
}

.prose p {
    margin-bottom: 16px;
}

.prose ul,
.prose ol {
    margin: 0 0 20px;
    padding-left: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.prose li {
    position: relative;
    padding-left: 26px;
}

.prose ul li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: .68em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lime);
}

.prose ol {
    counter-reset: prose-ol;
}

.prose ol li {
    counter-increment: prose-ol;
}

.prose ol li::before {
    content: counter(prose-ol) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-mono);
    font-size: .8125rem;
    color: var(--lime);
}

.prose strong,
.prose b {
    color: var(--fg);
    font-weight: 600;
}

.prose a {
    color: var(--lime);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose a:hover {
    text-decoration-thickness: 2px;
}

.prose hr {
    height: 1px;
    background: var(--line);
    border: 0;
    margin: 40px 0;
}

/* Sits alongside the prose column on wide screens */
.doc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

@media (max-width:1000px) {
    .doc-layout {
        grid-template-columns: 1fr;
    }
}

.doc-aside {
    position: sticky;
    top: 100px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
}

@media (max-width:1000px) {
    .doc-aside {
        position: static;
        order: -1;
    }
}

.doc-aside h2 {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--fg-dim);
    margin-bottom: 16px;
}

.doc-toc {
    display: grid;
    gap: 2px;
    list-style: none;
}

.doc-toc a {
    display: block;
    padding: 7px 10px;
    border-radius: var(--r-sm);
    font-size: .8125rem;
    line-height: 1.45;
    color: var(--fg-muted);
    text-decoration: none;
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.doc-toc a:hover {
    background: var(--lime-soft);
    color: var(--fg);
}

/* ---------- Cards ---------- */
.card {
    position: relative;
    padding: clamp(24px, 3vw, 32px);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease),
        transform var(--dur) var(--ease);
}

.card:hover {
    border-color: var(--line-strong);
    background: var(--surface-2);
}

.card .ico {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--lime-soft);
    color: var(--lime);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.125rem;
    margin-bottom: 10px;
}

.card p {
    color: var(--fg-muted);
    font-size: .9375rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

@media (max-width:900px) {
    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width:640px) {

    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ---------- Notice ---------- */
.notice {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px 22px;
    border: 1px solid rgba(255, 204, 77, .3);
    border-radius: var(--r-md);
    background: var(--amber-soft);
    color: #F2E3BE;
    font-size: .875rem;
    line-height: 1.6;
}

.notice svg {
    flex: none;
    margin-top: 2px;
    color: var(--amber);
}

/* ---------- CTA panel ---------- */
.cta-panel {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background: var(--surface);
    padding: clamp(36px, 5vw, 68px);
    text-align: center;
    overflow: hidden;
}

.cta-panel::before {
    content: "";
    position: absolute;
    top: -50%;
    left: 50%;
    width: 700px;
    aspect-ratio: 1;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(206, 255, 12, .13), transparent 65%);
    pointer-events: none;
}

.cta-panel>* {
    position: relative;
}

.cta-panel .lead {
    margin: 18px auto 30px;
}

.cta-panel .cta-row {
    justify-content: center;
}

/* ---------- Footer ---------- */
.footer {
    border-top: 1px solid var(--line);
    padding-top: clamp(48px, 5vw, 72px);
    margin-top: clamp(48px, 6vw, 88px);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: 40px;
}

/* Two-column footer for pages that carry no link lists — otherwise the
   4-column track leaves two empty columns and the content hugs the left. */
.footer-grid.footer-slim {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
}

@media (max-width:900px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

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

.footer p {
    color: var(--fg-muted);
    font-size: .9375rem;
}

.footer h2 {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--fg-dim);
    margin-bottom: 18px;
}

.footer-links {
    display: grid;
    gap: 6px;
    list-style: none;
}

.footer-links a {
    display: block;
    padding-block: 4px;
    font-size: .9375rem;
    color: var(--fg-muted);
    text-decoration: none;
    transition: color var(--dur) var(--ease);
    width: fit-content;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
    color: var(--lime);
}

.footer-mail {
    list-style: none;
}

.footer-mail a {
    display: block;
    padding-block: 3px;
    font-size: .9375rem;
    color: var(--fg-muted);
    text-decoration: none;
    transition: color var(--dur) var(--ease);
}

.footer-mail a:hover {
    color: var(--lime);
}

.footer-mail small {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--fg-dim);
    margin-bottom: 5px;
}

.footer-mail li+li {
    margin-top: 18px;
}

.colophon {
    margin-top: clamp(44px, 5vw, 64px);
    padding-block: 26px;
    border-top: 1px solid var(--line);
}

.colophon p {
    font-size: .75rem;
    line-height: 1.7;
    color: var(--fg-dim);
    max-width: 96ch;
}

/* ---------- Reveal ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

[data-reveal].is-in {
    opacity: 1;
    transform: none;
}

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

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
