:root {
    --bg: #0b0b0d;
    --surface: #141418;
    --surface-2: #1c1c22;
    --line: #2a2a33;
    --text: #f4f4f6;
    --muted: #a0a0ad;
    --accent: #7c5cff;
    --accent-ink: #ffffff;
    --radius: 16px;
    --max: 1080px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Nav */
.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(11, 11, 13, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.nav .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.brand span {
    color: var(--accent);
}

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

.nav-links a {
    color: var(--muted);
    text-decoration: none;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink) !important;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

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

.btn.small {
    padding: 8px 16px;
    font-size: 14px;
}

/* Hero */
.hero {
    padding: 88px 0 72px;
}

.hero .wrap {
    text-align: center;
}

.hero .lead {
    margin-left: auto;
    margin-right: auto;
    max-width: 600px;
}

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

.split {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
}

.split h2 {
    font-size: clamp(32px, 4.4vw, 48px);
    margin-bottom: 16px;
}

/* Reading progress bar across the top of this page */
.page-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    height: 3px;
    pointer-events: none;
}

.page-progress i,
.mini-progress i {
    display: block;
    width: 0;
    height: 100%;
    background: var(--accent);
    border-radius: 0 999px 999px 0;
}

/* Product cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.product-grid.three {
    grid-template-columns: repeat(3, 1fr);
}

.group-title {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-grid + .group-title {
    margin-top: 40px;
}

.product {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
}

.product-demo {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    height: 200px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
}

.product-demo .hint {
    color: var(--muted);
    font-size: 13px;
}

.product-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
}

.product-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.product-head h3 {
    margin: 0;
    font-size: 19px;
    letter-spacing: -0.01em;
}

.badge {
    flex: none;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.badge.paid {
    border-color: var(--accent);
    color: var(--text);
}

.product-body p {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 15.5px;
}

.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

/* Small live demos inside the product cards */
.stt.static {
    position: relative;
    right: auto;
    bottom: auto;
    opacity: 1;
    transform: none;
    pointer-events: none;
    width: 72px;
    height: 72px;
    background: var(--accent);
}

.stt.static .bar {
    animation: ring-fill 5s ease-in-out infinite;
}

@keyframes ring-fill {
    0% { stroke-dashoffset: 1; }
    70%, 100% { stroke-dashoffset: 0; }
}

.mini-progress {
    width: 70%;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.demo-btn {
    position: relative;
    display: inline-grid;
    place-items: center;
    padding: 16px 28px;
    border: none;
    border-radius: 999px;
    background: #f4f4f6;
    color: #111111;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.demo-btn:hover {
    background: var(--accent);
    color: #ffffff;
}

.demo-btn .ghost {
    visibility: hidden;
}

.demo-btn .live {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.magnet {
    display: inline-flex;
}

/* Hover Spotlight Card demo: the demo area itself is the lit surface */
.mini-spot {
    --spot-x: 30%;
    --spot-y: 30%;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111114;
}

.mini-spot::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(260px circle at var(--spot-x) var(--spot-y), rgba(124, 92, 255, 0.45), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mini-spot:hover::before {
    opacity: 1;
}

.mini-spot .hint {
    position: relative;
}

/* Countdown Timer demo */
.mini-timer {
    display: flex;
    gap: 8px;
}

.mini-timer div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 64px;
    padding: 12px 8px;
    border-radius: 12px;
    background: #111114;
}

.mini-timer b {
    color: #ffffff;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.mini-timer span {
    color: #a0a0ad;
    font-size: 11px;
}

/* Live Pricing Toggle demo */
.mini-pricing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.mini-toggle {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 4px;
    border-radius: 999px;
    background: #f0f0f3;
}

.mini-toggle::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc((100% - 8px) / 2);
    height: calc(100% - 8px);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s ease;
}

.mini-toggle.yearly::before {
    transform: translateX(100%);
}

.mini-toggle button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border: 0;
    background: none;
    color: #6b6b76;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s ease;
}

.mini-toggle button[aria-pressed="true"] {
    color: #111111;
}

.mini-toggle b {
    padding: 2px 8px;
    border-radius: 999px;
    background: #7c5cff;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
}

.mini-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.mini-price strong {
    font-size: 30px;
    font-weight: 600;
    line-height: 1.1;
}

.mini-price span {
    color: var(--muted);
    font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
    .mini-toggle::before {
        transition: none;
    }
}

/* Live Pricing Slider demo */
.mini-slider {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 240px;
}

.mini-slider label {
    font-size: 14px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.mini-slider input {
    width: 100%;
    margin: 0;
    accent-color: var(--accent);
    cursor: pointer;
}

.mini-slider .mini-price strong {
    font-variant-numeric: tabular-nums;
}

/* Before After Compare demo: two CSS scenes with a draggable divider */
.mini-compare {
    --pos: 50%;
    position: absolute;
    inset: 0;
    overflow: hidden;
    cursor: ew-resize;
    touch-action: pan-y;
    user-select: none;
}

.mini-compare .clip {
    position: absolute;
    inset: 0;
    clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.mini-compare .line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos);
    width: 2px;
    margin-left: -1px;
    background: #ffffff;
}

.mini-compare .knob {
    position: absolute;
    left: var(--pos);
    top: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.mini-compare .knob svg {
    width: 55%;
    height: 55%;
}

.scene {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #ffb37a 0%, #ff8fa3 38%, #8f7bff 78%, #5b46d6 100%);
    pointer-events: none;
}

.scene .sun {
    position: absolute;
    left: 62%;
    top: 22%;
    width: 22%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, #fff6d6 0%, #ffd27a 60%, rgba(255, 210, 122, 0) 72%);
}

.scene .hill {
    position: absolute;
    border-radius: 50%;
}

.scene .h1 { left: -20%; bottom: -62%; width: 90%; height: 100%; background: #6a4fe0; }
.scene .h2 { right: -30%; bottom: -70%; width: 110%; height: 105%; background: #4a35b8; }
.scene .h3 { left: 10%; bottom: -82%; width: 120%; height: 105%; background: #2e2180; }

.scene.before {
    filter: grayscale(1) contrast(0.85) brightness(0.9);
}

.typing-demo {
    /* fixed width so the line stays put while the phrase grows and shrinks */
    width: 290px;
    text-align: left;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.typing-demo span {
    white-space: pre;
}

.typing-demo b {
    color: var(--accent);
}

.typing-demo i {
    display: inline-block;
    width: 3px;
    height: 1.1em;
    margin-left: 2px;
    background: var(--accent);
    vertical-align: -0.18em;
    animation: cursor-blink 1s steps(1) infinite;
}

@keyframes cursor-blink {
    50% { opacity: 0; }
}

.magnet .demo-btn,
.magnet .demo-btn span {
    will-change: transform;
}

.magnet .demo-btn span {
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    .typing-demo i {
        animation: none;
    }

    .stt.static .bar {
        animation: none;
        stroke-dashoffset: 0.35;
    }
}

.eyebrow {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 20px;
}

h1 {
    font-size: clamp(38px, 5.4vw, 60px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0 0 20px;
}

.lead {
    color: var(--muted);
    font-size: 19px;
    max-width: 520px;
    margin: 0 0 32px;
}

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

.fineprint {
    margin-top: 16px;
    color: var(--muted);
    font-size: 14px;
}

/* Demo */
.demo {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
}

.demo-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}

.demo-bar i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--line);
}

.demo-bar span {
    margin-left: 10px;
    color: var(--muted);
    font-size: 13px;
}

.demo-stage {
    position: relative;
    height: 340px;
}

.demo-scroll {
    height: 100%;
    overflow-y: auto;
    padding: 24px;
}

.demo-scroll .block {
    height: 120px;
    border-radius: 12px;
    background: var(--surface-2);
    margin-bottom: 16px;
}

.demo-scroll .block.tall {
    height: 200px;
}

.demo-hint {
    color: var(--muted);
    font-size: 14px;
    margin: 0 0 16px;
}

.demo-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    padding: 14px 16px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
}

.demo-controls .group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--line);
    cursor: pointer;
    padding: 0;
}

.swatch[aria-pressed="true"] {
    border-color: var(--text);
}

.chip {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    font: inherit;
    cursor: pointer;
}

.chip[aria-pressed="true"] {
    color: var(--text);
    border-color: var(--text);
}

/* Scroll-to-top button (plain JS recreation of the Framer component) */
.stt {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #111111;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.3, 1.4, 0.5, 1);
    --ring: #ffffff;
    --track: rgba(255, 255, 255, 0.2);
    --icon: #ffffff;
}

.stt.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.stt.visible:hover {
    transform: scale(1.08);
}

.stt.page {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 20;
    background: var(--accent);
}

.stt .ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.stt .ring .track {
    stroke: var(--track);
}

.stt .ring .bar {
    stroke: var(--ring);
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}

.stt.no-ring .ring {
    display: none;
}

.stt .icon {
    position: relative;
    width: 40%;
    height: 40%;
    stroke: var(--icon);
}

/* Sections */
section {
    padding: 72px 0;
    border-top: 1px solid var(--line);
}

h2 {
    font-size: clamp(28px, 3.4vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}

.section-lead {
    color: var(--muted);
    max-width: 620px;
    margin: 0 0 40px;
}

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

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

.card h3 {
    font-size: 18px;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 15.5px;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--line);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
}

/* Pricing */
.price-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.price-card {
    max-width: 460px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 32px;
}

.price {
    font-size: 52px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    margin: 12px 0 4px;
}

.price small {
    font-size: 16px;
    font-weight: 400;
    color: var(--muted);
    letter-spacing: 0;
}

.price-card ul {
    list-style: none;
    padding: 0;
    margin: 24px 0 28px;
}

.price-card li {
    padding: 8px 0 8px 28px;
    position: relative;
    color: var(--muted);
    font-size: 16px;
}

.price-card li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 15px;
    width: 12px;
    height: 6px;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
}

.price-card .btn {
    width: 100%;
}

/* Bundle offer under the price cards */
.bundle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-top: 16px;
    padding: 32px;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    background: var(--surface);
    scroll-margin-top: 90px;
}

.bundle-text .eyebrow {
    margin-bottom: 12px;
}

.bundle-text strong {
    display: block;
    font-size: 22px;
}

.bundle-text p {
    max-width: 520px;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 16px;
}

.bundle-buy {
    flex: none;
    text-align: right;
}

.bundle-buy .price {
    margin: 0 0 16px;
    white-space: nowrap;
}

@media (max-width: 860px) {
    .bundle {
        flex-direction: column;
        align-items: flex-start;
    }

    .bundle-buy {
        text-align: left;
    }
}

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

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

.faq summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

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

.faq summary::after {
    content: "+";
    float: right;
    color: var(--muted);
    font-weight: 400;
}

.faq details[open] summary::after {
    content: "\2212";
}

.faq p {
    color: var(--muted);
    margin: 12px 0 0;
}

/* Footer */
footer {
    border-top: 1px solid var(--line);
    padding: 40px 0 56px;
    color: var(--muted);
    font-size: 14.5px;
}

footer .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px;
}

footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

footer a {
    color: var(--muted);
    text-decoration: none;
}

footer a:hover {
    color: var(--text);
}

/* Policy pages */
.doc {
    max-width: 760px;
    padding: 64px 24px 88px;
    margin: 0 auto;
}

.doc h1 {
    font-size: 40px;
}

.doc h2 {
    font-size: 22px;
    margin-top: 40px;
}

.doc p,
.doc li {
    color: var(--muted);
}

.doc a {
    color: var(--text);
}

.doc .updated {
    font-size: 14px;
}

@media (max-width: 860px) {
    .hero {
        padding: 56px 0 48px;
    }

    .split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-grid,
    .product-grid.three,
    .price-grid {
        grid-template-columns: 1fr;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .nav-links a:not(.btn) {
        display: none;
    }

    section {
        padding: 56px 0;
    }
}

@media (max-width: 480px) {
    .wrap {
        padding: 0 16px;
    }
}
