/* ═══════════════════════════════════════
   Mirage Landing Page
   Warm desert daylight · Geist
   Sand + bone · brand violet · dune horizon
   ═══════════════════════════════════════ */

:root {
    --bg: #f5f1e8;
    --bg-rgb: 245, 241, 232;
    --surface: #fffefb;
    --surface-2: #f0ebe0;
    --text: #221f1a;
    --text-2: #5a5548;
    --text-3: #8a8474;
    --border: rgba(60, 52, 36, 0.12);
    --border-strong: rgba(60, 52, 36, 0.22);

    --accent: #6c55d4;
    --accent-hover: #5843bb;
    --accent-bg: rgba(108, 85, 212, 0.09);
    --accent-glow: #b7a4ef;

    /* warm desert sky + sand */
    --sky-top: #dfe1f2;
    --sky-mid: #ece7f0;
    --sky-low: #f6efe6;
    --sun: #fff6ec;
    --sun-warm: #ffe6cf;
    --dune-1: #efe6d3;
    --dune-2: #e7dcc4;
    --dune-3: #ddd0b3;

    /* warm lavender dusk — softer than pure indigo, sits on sand */
    --violet-1: #9377dd;
    --violet-2: #6f56c8;
    --violet-deep: #4a3a9e;

    --shadow-sm: 0 1px 2px rgba(60, 52, 36, 0.05), 0 10px 26px -14px rgba(60, 52, 36, 0.16);
    --shadow-md: 0 2px 4px rgba(60, 52, 36, 0.06), 0 20px 44px -18px rgba(60, 52, 36, 0.22);
    --shadow-btn: 0 8px 22px -8px rgba(88, 67, 187, 0.5);
    --shadow-device: 0 40px 80px -30px rgba(70, 55, 30, 0.4);

    --nav-bg: rgba(245, 241, 232, 0.78);
    --check: #6c55d4;
    --partial: #a99ad6;
    --cross: #bdb6a6;
    --table-win: rgba(108, 85, 212, 0.06);
    --table-head: rgba(60, 52, 36, 0.04);
    --table-hover: rgba(108, 85, 212, 0.04);

    --r-card: 22px;
    --r-chip: 12px;
    --r-pill: 999px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-hover: cubic-bezier(0.18, 0.9, 0.28, 1.18);
    --font: 'Geist', system-ui, -apple-system, 'SF Pro Text', sans-serif;

    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.45 0 0 0 0 0.40 0 0 0 0 0.28 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");

    color-scheme: light;
}

/* ═══ Reset ═══ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

html { background: var(--bg); }

body {
    position: relative;
    font-family: var(--font);
    color: var(--text);
    background: transparent;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Warm desert wash behind the page */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(60% 45% at 72% 8%, rgba(255, 230, 207, 0.55), transparent 70%),
        radial-gradient(55% 40% at 12% 22%, rgba(183, 164, 239, 0.28), transparent 72%),
        radial-gradient(50% 40% at 90% 55%, rgba(150, 180, 240, 0.2), transparent 70%),
        linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 34%, var(--bg) 60%);
}

/* Grain shares one texture across the page */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
    background-image: var(--grain);
}

/* Prism lens: a fixed band at the bottom of the screen that bends the real
   page content and splits it into a spectrum as it scrolls underneath.
   Chrome / Firefox (and Safari 26+ when it supports SVG backdrop filters). */
.prism-lens {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: 42vh;
    z-index: 60;
    pointer-events: none;
    -webkit-backdrop-filter: url(#prismLens);
    backdrop-filter: url(#prismLens);
    -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 100%);
    mask-image: linear-gradient(to top, #000 10%, transparent 100%);
}
.prism-svg { position: absolute; width: 0; height: 0; }

/* Prismatic spectrum band that always renders (so Safari, which can't apply
   SVG filters as a backdrop, still gets the mirage split). On Chrome/Firefox
   it sits over the live warp; on Safari it is the whole effect. */
.prism-lens::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(150% 62% at 50% 138%,
        rgba(255, 90, 120, 0.0) 30%,
        rgba(255, 155, 85, 0.6) 43%,
        rgba(120, 220, 150, 0.55) 53%,
        rgba(110, 150, 255, 0.6) 63%,
        rgba(190, 120, 255, 0.0) 76%);
    mix-blend-mode: screen;
    opacity: var(--prism-energy, 0.18);
    transition: opacity 0.25s linear;
}

@media (prefers-reduced-motion: reduce) { .prism-lens { display: none; } }

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 clamp(1.5rem, 4vw, 3rem); }

h1, h2, h3 { letter-spacing: -0.035em; text-wrap: balance; }

::selection { background: rgba(108, 85, 212, 0.2); }

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

/* ═══ Navigation ═══ */

.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 66px;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
    border-bottom: 1px solid transparent;
    transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.nav.scrolled {
    background: var(--nav-bg);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    backdrop-filter: blur(18px) saturate(1.4);
    border-bottom-color: var(--border);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    transition: opacity 0.2s var(--ease), transform 0.35s var(--ease-hover);
}
.nav-logo:hover { opacity: 0.75; transform: translateY(-1px); }
.nav-icon { width: 30px; height: 30px; border-radius: 8px; transition: transform 0.45s var(--ease-hover); }
.nav-logo:hover .nav-icon { transform: rotate(-4deg) scale(1.04); }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
    position: relative;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-2);
    transition: color 0.2s var(--ease), transform 0.35s var(--ease-hover);
}
.nav-links a:hover { color: var(--text); transform: translateY(-1px); }

.nav-links .nav-cta {
    background: var(--accent);
    color: #fff !important;
    padding: 0.5rem 1.2rem;
    border-radius: var(--r-pill);
    font-weight: 600;
    box-shadow: var(--shadow-btn);
    transition: background 0.25s var(--ease), transform 0.35s var(--ease-hover), box-shadow 0.35s var(--ease);
}
.nav-links .nav-cta:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(88, 67, 187, 0.62); }
.nav-links .nav-cta:active { transform: scale(0.97); }

.nav-toggle {
    display: none;
    background: none; border: none; cursor: pointer;
    color: var(--text); padding: 4px;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

/* ═══ Hero — the desert scene ═══ */

.hero {
    position: relative;
    height: 100dvh;
    min-height: 640px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(1.5rem, 4vh, 3rem);
    padding: clamp(5.5rem, 10vh, 8rem) 0 clamp(1.5rem, 4vh, 3rem);
    overflow: hidden;
}

/* dune horizon anchoring the devices */
.hero-dunes {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 42%;
    z-index: 0;
    pointer-events: none;
}
.hero-dunes svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-inner {
    position: relative;
    z-index: 3;
    flex: 0 0 auto;
    width: 100%;
    max-width: 1000px;
    padding: 0 1.5rem;
    text-align: center;
}

.hero h1 {
    font-weight: 640;
    font-size: clamp(2.6rem, 5.6vw, 5rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
    color: var(--text);
}
/* keep the lead on its own line so the changing device word never reflows it */
.hero-lead { display: block; }

.hero-sub {
    margin: 1.3rem auto 0;
    max-width: 32rem;
    font-size: clamp(1.02rem, 1.5vw, 1.2rem);
    color: var(--text-2);
}

/* device word cycler */
.device-cycler {
    display: inline-flex;
    box-sizing: content-box;
    height: 1.02em;
    overflow: hidden;
    vertical-align: bottom;
    margin-top: 0.05em;
    padding: 0.02em 0.34em;
    border-radius: 0.2em;
    background: var(--accent-bg);
    color: var(--accent);
    box-shadow: inset 0 0 0 1px rgba(108, 85, 212, 0.24);
    width: var(--device-w, max-content);
    will-change: width;
}
.device-reel { display: flex; flex-direction: column; align-items: flex-start; will-change: transform; }
.device-word { display: block; height: 1.02em; line-height: 1.02; white-space: nowrap; }

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: clamp(1.6rem, 3vh, 2.3rem);
}

.btn-download {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.95rem 1.9rem;
    border-radius: var(--r-pill);
    box-shadow: var(--shadow-btn);
    overflow: hidden;
    isolation: isolate;
    transition: background 0.28s var(--ease), transform 0.38s var(--ease-hover), box-shadow 0.38s var(--ease);
}
.btn-download::after,
.btn-cta::after {
    content: '';
    position: absolute;
    inset: -1px;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.34) 45%, transparent 68%);
    transform: translateX(-120%) skewX(-16deg);
    transition: transform 0.65s var(--ease);
}
.btn-download svg { width: 17px; height: 17px; fill: currentColor; }
.btn-download:hover { background: var(--accent-hover); transform: translateY(-3px) scale(1.015); box-shadow: 0 16px 34px -10px rgba(88, 67, 187, 0.68); }
.btn-download:hover::after,
.btn-cta:hover::after { transform: translateX(120%) skewX(-16deg); }
.btn-download:active { transform: scale(0.98); }

.host-download-link {
    position: relative;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-2);
    padding-bottom: 1px;
    transition: color 0.2s var(--ease);
}
.host-download-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: currentColor;
    opacity: 0.45;
    transform-origin: left;
    transition: opacity 0.25s var(--ease), transform 0.35s var(--ease-hover);
}
.host-download-link:hover { color: var(--accent); }
.host-download-link:hover::after { opacity: 1; transform: scaleX(1.08); }

/* device cluster below the copy — capped so the whole hero group centers and fits */
.hero-stage {
    position: relative;
    z-index: 2;
    flex: 0 1 auto;
    min-height: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
}
.hero-stage img {
    max-width: min(1180px, 92vw);
    max-height: 48vh;
    width: auto;
    height: auto;
    filter: drop-shadow(var(--shadow-device));
    animation: device-rise 1.2s var(--ease) both;
}
@keyframes device-rise {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: none; }
}

@media (max-width: 760px) {
    .hero { padding-top: 5.5rem; }
    .hero h1 { font-size: clamp(2.3rem, 9vw, 3.2rem); }
    .hero-stage img { max-width: 122vw; }
}

/* ═══ Shared section ═══ */

.section-tag {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.section-heading {
    font-weight: 640;
    font-size: clamp(2.2rem, 4.4vw, 3.4rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

/* ═══ Sell chapters ═══ */

.sell { padding: clamp(3.5rem, 7vw, 6rem) 0; text-align: center; }
.sell-copy { max-width: 60rem; margin: 0 auto; }
.sell-copy h2 {
    font-weight: 640;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.03;
    letter-spacing: -0.04em;
}
.sell-copy p { margin: 1.1rem auto 0; max-width: 34rem; font-size: 1.1rem; color: var(--text-2); }

/* ═══ Value strip ═══ */

.value-strip {
    direction: ltr;
    overflow: hidden;
    padding: 2rem 0;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.value-track { display: flex; gap: 0.65rem; width: max-content; animation: caravan 46s linear infinite; }
@keyframes caravan { to { transform: translateX(calc(-50% - 0.325rem)); } }
.value-strip:hover .value-track { animation-play-state: paused; }

.value-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.05rem;
    border-radius: var(--r-pill);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-2);
    flex-shrink: 0;
    user-select: none;
    cursor: default;
}
.value-chip svg { width: 17px; height: 17px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vc-blue, .vc-cyan, .vc-emerald, .vc-amber, .vc-violet, .vc-rose, .vc-sky, .vc-lime { color: var(--text-2); }

/* ═══ Features (bento) ═══ */

.features-section { padding: clamp(4rem, 8vw, 7rem) 0; }
.features-header { margin-bottom: 3rem; }

.features-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }

.feature-card {
    position: relative;
    grid-column: span 2;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-card);
    padding: 1.9rem 1.8rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.45s var(--ease-hover), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.feature-card:hover { box-shadow: var(--shadow-md); border-color: rgba(108, 85, 212, 0.2); }

.feature-card.fc-wide { grid-column: span 3; }
.feature-card.fc-full { grid-column: span 6; display: flex; align-items: center; gap: 1.4rem; }
.feature-card.fc-full .feature-icon { margin-bottom: 0; flex-shrink: 0; }
.feature-card.fc-full h3 { margin-bottom: 0.2rem; }

.feature-card.fc-tint {
    background: linear-gradient(150deg, #efe7fb, #f4eff5 60%, #f1ecf3);
    border-color: rgba(108, 85, 212, 0.16);
}
.feature-card.fc-dusk {
    background: radial-gradient(90% 100% at 80% 110%, var(--violet-1), var(--violet-2) 70%);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}
.feature-card.fc-dusk p { color: rgba(255, 255, 255, 0.82); }
.feature-card.fc-dusk .feature-icon { background: rgba(255, 255, 255, 0.18); color: #fff; }

.feature-icon {
    position: relative;
    z-index: 1;
    width: 44px; height: 44px;
    border-radius: var(--r-chip);
    display: grid;
    place-items: center;
    margin-bottom: 1.2rem;
    background: var(--accent-bg);
    color: var(--accent);
    transition: transform 0.45s var(--ease-hover), background 0.35s var(--ease), color 0.35s var(--ease);
}
.feature-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-card:hover .feature-icon { transform: translateY(-2px) scale(1.06); background: var(--accent); color: #fff; }
.feature-card.fc-dusk:hover .feature-icon { background: rgba(255, 255, 255, 0.26); color: #fff; }
.fi-blue, .fi-cyan, .fi-emerald, .fi-amber, .fi-violet, .fi-rose, .fi-sky, .fi-lime, .fi-indigo { background: var(--accent-bg); color: var(--accent); }

.feature-card h3 { font-weight: 620; font-size: 1.1rem; letter-spacing: -0.02em; margin-bottom: 0.45rem; }
.feature-card p { font-size: 0.92rem; color: var(--text-2); line-height: 1.55; }

@media (max-width: 860px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-card, .feature-card.fc-wide, .feature-card.fc-full { grid-column: span 1; }
    .feature-card.fc-full { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
    .features-grid { grid-template-columns: 1fr; }
}

/* ═══ How it works ═══ */

.how-section { padding: 0 0 clamp(4rem, 8vw, 7rem); }
.how-header { margin-bottom: 3rem; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

.step-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-card);
    padding: 2.2rem 1.8rem 2rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.45s var(--ease-hover), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.step-card:hover { box-shadow: var(--shadow-md); border-color: rgba(108, 85, 212, 0.2); }
.step-num { position: absolute; top: 1.3rem; inset-inline-end: 1.6rem; font-size: 2.6rem; font-weight: 640; letter-spacing: -0.04em; line-height: 1; color: rgba(108, 85, 212, 0.2); }
.step-icon { position: relative; z-index: 1; width: 48px; height: 48px; margin-bottom: 1.1rem; border-radius: var(--r-chip); display: grid; place-items: center; background: var(--accent-bg); color: var(--accent); transition: transform 0.45s var(--ease-hover), background 0.35s var(--ease), color 0.35s var(--ease); }
.step-icon svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.step-card:hover .step-icon { transform: translateY(-2px) scale(1.06); background: var(--accent); color: #fff; }
.step-card h3 { font-weight: 620; font-size: 1.18rem; letter-spacing: -0.02em; }

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

/* ═══ Loom ═══ */

.loom-banner {
    position: relative;
    margin: 0 clamp(1rem, 4vw, 2.5rem);
    border-radius: calc(var(--r-card) + 10px);
    background:
        radial-gradient(90% 120% at 50% 118%, rgba(196, 172, 244, 0.6), transparent 60%),
        linear-gradient(to bottom, #5f4bb8 0%, #7358c8 55%, #8f72d4 100%);
    color: #fff;
    padding: clamp(5rem, 9vw, 8rem) 1.5rem;
    text-align: center;
    overflow: hidden;
}
.loom-banner-content { position: relative; z-index: 1; }
.loom-eyebrow {
    display: inline-block;
    font-size: 0.76rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72); margin-bottom: 1.1rem;
}
.loom-headline { font-weight: 640; font-size: clamp(2.2rem, 5.2vw, 3.8rem); line-height: 1.03; letter-spacing: -0.04em; }
.loom-sub { max-width: 40rem; margin: 1.3rem auto 0; color: rgba(255, 255, 255, 0.82); font-size: 1.08rem; }

/* ═══ Compare ═══ */

.compare-section { padding: clamp(4rem, 8vw, 7rem) 0; }
.compare-header { margin-bottom: 2.6rem; }

.compare-wrapper {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-card);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; table-layout: fixed; }
.compare-table thead th { padding: 1rem 1.1rem; font-weight: 600; font-size: 0.85rem; text-align: center; background: var(--table-head); border-bottom: 1px solid var(--border); color: var(--text-2); }
.compare-table thead th:first-child { text-align: start; color: var(--text); width: 30%; }
.compare-table thead th:not(:first-child), .compare-table tbody td:not(:first-child) { width: 17.5%; }
.compare-table .col-mirage { color: var(--accent) !important; background: var(--table-win); }
.compare-table tbody td { padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--border); text-align: center; color: var(--text-2); vertical-align: middle; }
.compare-table tbody td:first-child { text-align: start; font-weight: 500; color: var(--text); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody td.col-mirage { background: var(--table-win); font-weight: 600; color: var(--text); }
.compare-table tbody tr { transition: background 0.2s var(--ease); }
.compare-table tbody tr:hover { background: var(--table-hover); }

.icon-check, .icon-partial, .icon-cross { display: inline-block; font-weight: 700; }
.icon-check { color: var(--check); }
.icon-partial { color: var(--partial); }
.icon-cross { color: var(--cross); }
.footnote-marker { color: var(--accent); font-weight: 600; font-size: 0.7em; vertical-align: super; line-height: 0; }

.compare-footnote { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.76rem; color: var(--text-3); }
.compare-footnote-row { display: grid; grid-template-columns: 0.9em 1fr; column-gap: 0.35rem; align-items: baseline; }
.compare-footnote .footnote-marker { font-size: 1em; vertical-align: baseline; line-height: 1.4; }

@media (max-width: 720px) {
    .compare-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .compare-table { min-width: 560px; }
    .compare-table thead th:first-child, .compare-table tbody td:first-child { position: sticky; inset-inline-start: 0; background: var(--surface); }
    .compare-table thead th:first-child { background: var(--surface-2); }
}

/* ═══ Pricing ═══ */

.pricing-section { padding: clamp(4rem, 8vw, 7rem) 0; }
.pricing-header { margin-bottom: 2.6rem; }

.pricing-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pricing-table-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-card);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.pricing-table { font-size: 0.85rem; }
.pricing-table thead th { vertical-align: bottom; padding: 0.95rem 1rem 0.75rem; }
.pricing-table thead th:first-child { width: 42%; }
.pricing-table thead th:not(:first-child), .pricing-table tbody td:not(:first-child) { width: 29%; }
.pricing-table tbody td { padding: 0.48rem 1rem; }
.pricing-table tbody td.col-mirage { color: var(--text) !important; font-weight: 560; }
.pricing-plan-name { display: block; font-weight: 620; font-size: 0.95rem; color: var(--text); margin-bottom: 0.25rem; }
.pricing-table thead th.col-mirage .pricing-plan-name { color: var(--accent); }
.pricing-plan-price { display: block; font-weight: 650; font-size: 1.45rem; letter-spacing: -0.035em; line-height: 1.1; color: var(--text); }
.pricing-plan-price .save-badge { vertical-align: 0.2em; margin-inline-start: 0.25rem; }
.pricing-unit { font-size: 0.95rem; font-weight: 500; letter-spacing: 0; opacity: 0.62; }
.pricing-plan-term { display: flex; align-items: center; justify-content: center; gap: 0.35rem; font-size: 0.75rem; font-weight: 500; color: var(--text-3); margin-top: 0.25rem; }
.save-badge { background: var(--accent); color: #fff; display: inline-flex; align-items: center; font-size: 0.66rem; font-weight: 650; letter-spacing: 0.04em; padding: 0.16rem 0.55rem; border-radius: var(--r-pill); text-transform: uppercase; }
.icon-dash { display: inline-block; width: 0.85em; height: 2px; border-radius: 1px; background: var(--border-strong); vertical-align: middle; }

.pricing-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-card);
    padding: 2.2rem 2rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.45s var(--ease-hover), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.pricing-card:hover { box-shadow: var(--shadow-md); border-color: rgba(108, 85, 212, 0.2); }
.pricing-lifetime-wrapper { margin-top: 1rem; position: relative; z-index: 1; }
.pricing-card-lifetime {
    display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
    padding: 2rem;
    background: linear-gradient(150deg, #efe7fb, #f5f0f4);
    border-color: rgba(108, 85, 212, 0.16);
}
.pricing-lifetime-info h3 { font-weight: 620; font-size: 1.3rem; margin-bottom: 0.35rem; }
.pricing-lifetime-info p { color: var(--text-2); font-size: 0.92rem; }
.pricing-lifetime-price { text-align: end; }
.pricing-lifetime-price .pricing-price { font-size: 2.2rem; }
.pricing-price { font-weight: 650; font-size: 2.8rem; letter-spacing: -0.04em; line-height: 1.08; }
.pricing-term { font-size: 0.82rem; color: var(--text-3); margin-top: 0.35rem; }
.pricing-referral-note {
    max-width: 42rem;
    margin: 1.5rem auto 0;
    color: var(--text-2);
    font-size: 0.9rem;
    line-height: 1.55;
    text-align: center;
}

/* Mobile-only "see full comparison" link (hidden on desktop) */
.compare-mobile {
    display: none;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.6rem;
    padding: 1rem 1.4rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-chip);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--accent);
    justify-content: space-between;
}
.compare-mobile svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }


@media (max-width: 760px) {
        }
@media (max-width: 760px) {
    .pricing-card-lifetime { flex-direction: column; text-align: center; }
    .pricing-lifetime-price { text-align: center; }
}
@media (max-width: 720px) {
    .pricing-table { min-width: 0; }
    .pricing-table thead th, .pricing-table tbody td { padding-inline: 0.6rem; }
    .pricing-table thead th:first-child, .pricing-table tbody td:first-child { position: static; background: transparent; }
    .pricing-table thead th:first-child { width: 38%; }
    .pricing-table thead th:not(:first-child), .pricing-table tbody td:not(:first-child) { width: 31%; }
}

/* ═══ CTA ═══ */

.cta-section { padding: clamp(4rem, 8vw, 7rem) 0; }
.cta-card {
    position: relative;
    border-radius: calc(var(--r-card) + 10px);
    padding: clamp(3.5rem, 8vw, 6rem) 2rem;
    text-align: center;
    color: #fff;
    overflow: hidden;
    background: radial-gradient(120% 150% at 50% 0%, var(--violet-1), var(--violet-deep) 80%);
    box-shadow: 0 30px 70px -30px rgba(44, 33, 96, 0.55);
    transition: transform 0.55s var(--ease-hover), box-shadow 0.55s var(--ease);
}
.cta-card:hover,
.cta-card.is-hovered { box-shadow: 0 38px 82px -34px rgba(44, 33, 96, 0.7); }
.cta-inner { position: relative; z-index: 2; max-width: 44rem; margin: 0 auto; }
.cta-card h2 { font-weight: 640; font-size: clamp(2.2rem, 5.2vw, 3.6rem); line-height: 1.05; letter-spacing: -0.04em; margin-bottom: 0.8rem; }
.cta-card p { color: rgba(255, 255, 255, 0.8); margin-bottom: 2.4rem; font-size: 1.08rem; }
.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem 2.25rem;
}

.btn-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #fff;
    color: var(--violet-2);
    font-weight: 650;
    font-size: 1rem;
    padding: 0.9rem 1.8rem;
    border-radius: var(--r-pill);
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.38s var(--ease-hover), box-shadow 0.38s var(--ease);
    box-shadow: 0 10px 26px -10px rgba(20, 15, 50, 0.5);
}
.btn-cta svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.35s var(--ease-hover); }
.btn-cta:hover { transform: translateY(-3px) scale(1.015); box-shadow: 0 16px 34px -12px rgba(20, 15, 50, 0.62); }
.btn-cta:hover svg { transform: translateX(4px); }
.btn-cta:active { transform: scale(0.98); }
.cta-card .host-download-link { color: rgba(255, 255, 255, 0.85); }
.cta-card .host-download-link::after { opacity: 0.45; }
.cta-card .host-download-link:hover { color: #fff; }

/* ═══ Footer ═══ */

footer { border-top: 1px solid var(--border); padding: 2.4rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-copy { font-size: 0.82rem; color: var(--text-3); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-links a { font-size: 0.82rem; color: var(--text-2); transition: color 0.2s var(--ease); }
.footer-links a:hover { color: var(--accent); }
.language-picker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--text-3);
    font-size: 0.82rem;
}
.language-picker select {
    min-width: 10.5rem;
    color: var(--text-2);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.45rem 2rem 0.45rem 0.7rem;
    font: inherit;
}
.language-picker select:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ═══ Reveal ═══ */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.rd1 { transition-delay: 0.05s; } .rd2 { transition-delay: 0.1s; } .rd3 { transition-delay: 0.15s; }
.rd4 { transition-delay: 0.2s; } .rd5 { transition-delay: 0.25s; } .rd6 { transition-delay: 0.3s; }

/* ═══ Article / hub / legal (subpages) ═══ */

.article-page, .legal-page { padding-top: 66px; }
.article-hero { padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--border); }
.article-hero-content { max-width: 1240px; margin: 0 auto; padding: 0 clamp(1.5rem, 4vw, 3rem); }
.article-hero h1 { font-weight: 640; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.06; letter-spacing: -0.04em; max-width: 20ch; margin-bottom: 1rem; }
.article-hero p { font-size: 1.1rem; color: var(--text-2); max-width: 54ch; }
.article-meta { display: flex; align-items: center; gap: 1rem; margin-top: 1.4rem; font-size: 0.8rem; color: var(--text-3); }
.article-meta span { display: flex; align-items: center; gap: 0.35rem; }
.article-meta svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.vs-names { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.vs-name { font-weight: 640; font-size: clamp(1.4rem, 3.5vw, 2rem); letter-spacing: -0.03em; }
.vs-name-highlight { color: var(--accent); }
.vs-badge { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); }

.article-body { max-width: 760px; margin: 0 auto; padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem) clamp(4rem, 7vw, 6rem); }
.article-body h2 { font-weight: 640; font-size: 1.5rem; letter-spacing: -0.03em; margin: 2.6rem 0 1rem; }
.article-body h3 { font-weight: 620; font-size: 1.15rem; margin: 1.9rem 0 0.6rem; }
.article-body p, .article-body li { font-size: 0.95rem; color: var(--text-2); line-height: 1.75; margin-bottom: 0.9rem; }
.article-body ul, .article-body ol { padding-inline-start: 1.4rem; margin-bottom: 1rem; }
.article-body strong { color: var(--text); font-weight: 650; }
.article-body a { color: var(--accent); font-weight: 500; }
.article-body a:hover { text-decoration: underline; text-underline-offset: 3px; }
.article-body .compare-wrapper { margin: 2rem 0; }
.article-body .compare-table thead th:first-child, .article-body .compare-table tbody td:first-child { width: 40%; }
.article-body .compare-table thead th:not(:first-child), .article-body .compare-table tbody td:not(:first-child) { width: 30%; }

.article-highlight { background: var(--accent-bg); border: 1px solid rgba(108, 85, 212, 0.16); border-radius: var(--r-card); padding: 1.6rem 1.8rem; margin: 1.8rem 0; }
.article-highlight h3 { margin-top: 0; }
.article-highlight p:last-child { margin-bottom: 0; }
.article-cta { margin-top: 3rem; }

/* embedded CTA card on subpages inherits .cta-card violet */
.article-body .cta-card h2, .article-body .cta-card p, .article-body .cta-card a { color: #fff !important; }
.article-body .cta-card p { color: rgba(255, 255, 255, 0.8) !important; }
.article-body .cta-card .btn-cta { color: var(--violet-2) !important; background: #fff; }

.hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2.4rem; }
.hub-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 1.8rem 1.7rem; box-shadow: var(--shadow-sm); overflow: hidden; transition: transform 0.45s var(--ease-hover), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease); }
.hub-card:hover,
.hub-card.is-hovered { box-shadow: var(--shadow-md); border-color: rgba(108, 85, 212, 0.2); }
.hub-card-icon { position: relative; z-index: 1; width: 42px; height: 42px; border-radius: var(--r-chip); display: grid; place-items: center; margin-bottom: 0.85rem; background: var(--accent-bg); color: var(--accent); transition: transform 0.45s var(--ease-hover), background 0.35s var(--ease), color 0.35s var(--ease); }
.hub-card-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hub-card h2, .hub-card h3 { font-weight: 620; font-size: 1.12rem; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.hub-card p { font-size: 0.92rem; color: var(--text-2); line-height: 1.55; flex: 1; }
.hub-card-arrow { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.9rem; font-size: 0.85rem; font-weight: 600; color: var(--accent); transition: gap 0.35s var(--ease-hover); }
.hub-card:hover .hub-card-arrow,
.hub-card.is-hovered .hub-card-arrow { gap: 0.7rem; }
.hub-card:hover .hub-card-icon,
.hub-card.is-hovered .hub-card-icon { transform: translateY(-2px) scale(1.06); background: var(--accent); color: #fff; }
.hub-card-arrow svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.35s var(--ease-hover); }

/* ═══ Tilt & spotlight hover (JS sets --rot-x/--rot-y/--mouse-x/--mouse-y) ═══ */

.value-chip, .feature-card, .step-card, .pricing-card, .pricing-table-card, .compare-wrapper, .cta-card, .hub-card {
    --spot-rgb: 108, 85, 212;
    position: relative;
    touch-action: manipulation;
    transform-origin: center;
    will-change: transform;
}
.cta-card { --spot-rgb: 183, 164, 239; }

.value-chip::after, .feature-card::after, .step-card::after, .pricing-card::after,
.pricing-table-card::after, .compare-wrapper::after, .cta-card::after, .hub-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(
        800px circle at var(--mouse-x, -9999px) var(--mouse-y, -9999px),
        rgba(var(--spot-rgb), 0.10),
        transparent 40%
    );
    z-index: 10;
    pointer-events: none;
}
.value-chip.is-hovered::after, .feature-card.is-hovered::after, .step-card.is-hovered::after,
.pricing-card.is-hovered::after, .pricing-table-card.is-hovered::after, .compare-wrapper.is-hovered::after,
.cta-card.is-hovered::after, .hub-card.is-hovered::after { opacity: 1; }

.value-chip.is-hovered, .feature-card.is-hovered, .step-card.is-hovered,
.pricing-card.is-hovered, .pricing-table-card.is-hovered, .compare-wrapper.is-hovered,
.cta-card.is-hovered, .hub-card.is-hovered {
    transform: perspective(1000px) rotateX(var(--rot-x, 0deg)) rotateY(var(--rot-y, 0deg));
    transition: transform 0s, box-shadow 0.3s ease-out, border-color 0.3s ease-out;
}

@media (prefers-reduced-motion: reduce) {
    .value-chip.is-hovered, .feature-card.is-hovered, .step-card.is-hovered,
    .pricing-card.is-hovered, .pricing-table-card.is-hovered, .compare-wrapper.is-hovered,
    .cta-card.is-hovered, .hub-card.is-hovered { transform: none; }
}
.hub-card:hover .hub-card-arrow svg,
.hub-card.is-hovered .hub-card-arrow svg { transform: translateX(3px); }

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

.legal-page { padding: 8rem 0 5rem; }
.legal-page h1 { font-weight: 640; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.04em; margin-bottom: 0.5rem; }
.legal-updated { font-size: 0.82rem; color: var(--text-3); margin-bottom: 2.5rem; }
.legal-page h2 { font-weight: 620; font-size: 1.25rem; margin: 2.2rem 0 0.6rem; }
.legal-page p, .legal-page li { font-size: 0.9rem; color: var(--text-2); line-height: 1.75; margin-bottom: 0.65rem; }
.legal-page ul { padding-inline-start: 1.25rem; margin-bottom: 0.75rem; }
.legal-page a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-chip); margin-bottom: 0.75rem; box-shadow: var(--shadow-sm); }
.faq-item summary { padding: 1rem 1.25rem; font-weight: 600; font-size: 0.95rem; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.25rem; font-weight: 400; color: var(--accent); transition: transform 0.25s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 1.25rem 1rem; font-size: 0.9rem; color: var(--text-2); line-height: 1.65; margin: 0; }

/* ═══ Responsive nav ═══ */

@media (max-width: 760px) {
    .nav { padding: 0 1.25rem; }
    .nav-toggle { display: block; }
    .nav-links {
        position: absolute;
        top: 66px; left: 0.75rem; right: 0.75rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--r-chip);
        box-shadow: var(--shadow-md);
        padding: 0.4rem;
        display: none;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 0.75rem 1rem; border-radius: 8px; color: var(--text-2); }
    .nav-links a:hover { background: var(--accent-bg); }
    .nav-links .nav-cta { text-align: center; justify-content: center; margin-top: 0.3rem; color: #fff !important; box-shadow: none; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .language-picker { width: 100%; justify-content: space-between; }
}

/* ═══ Mobile tightening — one calm column, nothing oversized ═══ */

@media (max-width: 640px) {
    /* Hero flows naturally instead of forcing a full empty viewport */
    .hero { height: auto; min-height: 0; justify-content: flex-start; gap: 1.3rem; padding: 4.5rem 0 0; }
    .hero h1 { font-size: clamp(2.05rem, 8.5vw, 2.7rem); }
    .hero-sub { font-size: 0.98rem; margin-top: 0.9rem; max-width: 22rem; }
    .btn-download { padding: 0.8rem 1.5rem; }
    .hero-dunes { height: 30%; }
    .hero-stage { margin-top: 0.5rem; padding: 0 1rem; }
    .hero-stage img { max-width: 100%; max-height: none; }

    .features-section, .compare-section { padding: 3rem 0; }
    .how-section { padding: 0 0 3rem; }
    .pricing-section { padding: 3rem 0; }
    .features-header, .how-header, .compare-header, .pricing-header { margin-bottom: 1.6rem; }
    .section-heading { font-size: clamp(1.85rem, 7.6vw, 2.3rem); }

    /* Features become a clean divided list — icon pinned top-left (out of flow),
       title + body stacked tight against the top. */
    .features-grid { display: flex; flex-direction: column; gap: 0; }
    .feature-card,
    .feature-card.fc-wide,
    .feature-card.fc-full,
    .feature-card.fc-tint,
    .feature-card.fc-dusk {
        position: relative;
        display: block;
        padding: 1.15rem 0 1.15rem 3.25rem;
        background: none;
        color: var(--text);
        border: none;
        border-top: 1px solid var(--border);
        border-radius: 0;
        box-shadow: none;
        transform: none;
    }
    .features-grid > .feature-card:first-child { border-top: none; padding-top: 0; }
    .features-grid > .feature-card:first-child .feature-icon { top: 0; }
    .feature-card:hover { transform: none; box-shadow: none; }
    .feature-card::after { display: none; }
    .feature-icon { position: absolute; inset-inline-start: 0; top: 1.15rem; width: 38px; height: 38px; margin: 0; }
    .feature-icon svg { width: 19px; height: 19px; }
    .feature-card.fc-dusk .feature-icon,
    .feature-card.fc-tint .feature-icon { background: var(--accent-bg); color: var(--accent); }
    .feature-card h3 { font-size: 1rem; margin: 0 0 0.2rem; }
    .feature-card p { font-size: 0.88rem; color: var(--text-2); margin: 0; }
    .feature-card.fc-dusk p { color: var(--text-2); }

    .steps-grid { gap: 0.7rem; }
    .step-card { padding: 1.5rem 1.35rem; }
    .step-num { font-size: 2rem; top: 1rem; inset-inline-end: 1.2rem; }
    .step-icon { width: 40px; height: 40px; margin-bottom: 0.85rem; }
    .step-icon svg { width: 20px; height: 20px; }
    .step-card h3 { font-size: 1.08rem; }

    .loom-banner { margin: 0 1rem; padding: 3.5rem 1.4rem; border-radius: 24px; }
    .loom-headline { font-size: clamp(1.85rem, 8vw, 2.5rem); }
    .loom-sub { font-size: 0.96rem; margin-top: 1rem; }

    .pricing-grid { gap: 0.7rem; }
        .pricing-features { gap: 0.5rem; }
    .pricing-features li { font-size: 0.86rem; }
        
    /* The full comparison table is dropped on mobile in favor of a link */
    .compare-wrapper, .compare-footnote { display: none; }
    .compare-mobile { display: flex; }

    .cta-section { padding: 3rem 0; }
    .cta-card { padding: 3rem 1.5rem; }
    .cta-card h2 { font-size: clamp(1.85rem, 8vw, 2.5rem); }
    .cta-card p { margin-bottom: 1.8rem; }
    .cta-actions { flex-direction: column; gap: 1.1rem; }

    footer { padding: 2rem 0; }
    .footer-links { gap: 1rem 1.25rem; }
    .language-picker { align-items: flex-start; flex-direction: column; }
    .language-picker select { width: 100%; max-width: 18rem; }
}

/* ═══ Reduced motion ═══ */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .value-track { animation: none; }
    .hero-stage img { animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .feature-card, .step-card, .hub-card, .pricing-card, .cta-card, .btn-download, .btn-cta, .nav-logo, .nav-icon, .nav-links a, .nav-links .nav-cta, .host-download-link, .feature-icon, .step-icon, .hub-card-icon, .hub-card-arrow, .hub-card-arrow svg { transition: none; }
    .feature-card::after, .step-card::after, .hub-card::after, .pricing-card::after, .cta-card::before, .btn-download::after, .btn-cta::after, .host-download-link::after { transition: none; }
}
