/* Marketing site — white, four brand colours, motion that knows when to stop */

:root {
    --c-blue: #0086fd;
    --c-pink: #06b6d4;
    --c-green: #2ee68a;
    --c-red: #64748b;

    --bg: #05080c;
    --bg-soft: #0d1420;
    --surface: #0d1420;
    --ink: #eef2f0;
    --ink-soft: #9fb0c0;
    --ink-on-light: #0b1221;
    --line: #1e2b3d;
    --radius: 18px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .35);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 24px 60px rgba(0, 0, 0, .5);
    --max: 1120px;
}

:root[data-theme="light"] {
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --surface: #ffffff;
    --ink: #0b1221;
    --ink-soft: #475569;
    --ink-on-light: #0b1221;
    --line: #e6e9ef;
    --shadow-sm: 0 1px 2px rgba(11, 18, 33, .04), 0 6px 18px rgba(11, 18, 33, .05);
    --shadow-lg: 0 2px 6px rgba(11, 18, 33, .05), 0 24px 60px rgba(11, 18, 33, .10);
}

html, body { background: var(--bg); transition: background-color .35s ease; }
body, .card, .compare, .tier, .faq details, .pill, .btn-ghost, .nav {
    transition: background-color .35s ease, color .35s ease, border-color .35s ease, box-shadow .35s ease;
}

::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }

.theme-toggle {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-soft);
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s;
}

.theme-toggle:hover { color: var(--ink); border-color: #cfd6e2; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
.theme-toggle .icon { margin: 0; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--c-blue); text-decoration: none; }
h1, h2, h3 { letter-spacing: -.022em; line-height: 1.12; margin: 0; }
p { margin: 0; }
.muted { color: var(--ink-soft); }
.small { font-size: .88rem; }

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

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

/* Content is visible by default. Only once the page has told us scripting is
   alive do we hide it to animate it in — otherwise a blocked script or an
   observer that never fires would leave the page blank. */
.reveal { opacity: 1; transform: none; }

html.js-reveal .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1);
    transition-delay: var(--d, 0s);
}

html.js-reveal .reveal.shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    html.js-reveal .reveal { opacity: 1; transform: none; transition: none; }
    .blob { animation: none !important; }
    .logo-mark { animation: none !important; }
}

html[data-still] .reveal,
html[data-still].js-reveal .reveal { opacity: 1; transform: none; transition: none; }
html[data-still] .blob { animation: none; }
html[data-still] .logo-mark { animation: none; }

@keyframes drift {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(28px, -22px) scale(1.07); }
    66%  { transform: translate(-20px, 18px) scale(.95); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes hueshift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------- nav */

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(5, 7, 6, .78);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 22px;
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.04rem;
    color: var(--ink);
    letter-spacing: -.02em;
}

.logo-mark {
    width: 26px;
    height: 26px;
    display: block;
}

.logo-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }

.nav-links { display: flex; gap: 4px; margin-left: 18px; }

.nav-links a {
    color: var(--ink-soft);
    font-size: .95rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 9px;
    transition: color .15s, background .15s;
}

.nav-links a:hover { color: var(--ink); background: var(--bg-soft); }

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

.link-btn { color: var(--ink-soft); font-weight: 600; font-size: .95rem; padding: 8px 10px; }
.link-btn:hover { color: var(--ink); }

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

/* ----------------------------------------------------------------- buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 12px;
    font: inherit;
    font-size: 1rem;
    font-weight: 650;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .14s, box-shadow .14s, filter .14s, background .14s;
}

.btn-brand {
    background: linear-gradient(120deg, var(--c-blue), var(--c-pink));
    color: #fff;
    box-shadow: 0 10px 24px -10px var(--c-blue);
}

.btn-brand:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -12px var(--c-pink); }
.btn-brand:active { transform: translateY(0); }

.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--bg-soft); border-color: #cfd6e2; }

.btn-sm { min-height: 40px; padding: 0 15px; font-size: .92rem; border-radius: 10px; }
.btn-block { width: 100%; }

/* -------------------------------------------------------------------- hero */

.hero { position: relative; padding: 88px 0 72px; overflow: hidden; }

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(64px);
    opacity: .3;
    pointer-events: none;
    animation: drift 20s ease-in-out infinite;
}

.blob-1 { width: 460px; height: 460px; background: var(--c-blue);  top: -170px; left: -120px; }
.blob-2 { width: 400px; height: 400px; background: var(--c-pink);  top: -90px;  right: -110px; animation-delay: -6s; }
.blob-3 { width: 340px; height: 340px; background: var(--c-green); bottom: -180px; left: 32%; animation-delay: -12s; }

.hero-inner { position: relative; max-width: 820px; margin: 0 auto; text-align: center; }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    font-size: .85rem;
    font-weight: 600;
    color: var(--ink-soft);
    box-shadow: var(--shadow-sm);
    margin-bottom: 22px;
}

.pill b {
    background: linear-gradient(90deg, var(--c-blue), var(--c-pink));
    color: #fff;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: .76rem;
    letter-spacing: .02em;
}

.hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); margin-bottom: 20px; }

.grad {
    background-image: linear-gradient(100deg, var(--c-blue), var(--c-pink), var(--c-green), var(--c-blue));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: hueshift 9s ease-in-out infinite;
}

html[data-still] .grad { animation: none; }

.hero-sub { font-size: clamp(1rem, 2.1vw, 1.16rem); color: var(--ink-soft); max-width: 640px; margin: 0 auto 30px; }

.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: .88rem; color: var(--ink-soft); }

.proof {
    display: flex;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
    margin-top: 46px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.proof div { text-align: center; }
.proof b { display: block; font-size: 1.5rem; letter-spacing: -.02em; }
.proof span { font-size: .8rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .07em; }

.proof div:nth-child(1) b { color: var(--c-blue); }
.proof div:nth-child(2) b { color: var(--c-green); }
.proof div:nth-child(3) b { color: var(--c-pink); }
.proof div:nth-child(4) b { color: var(--c-red); }

/* ---------------------------------------------------------------- sections */

.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); border-block: 1px solid var(--line); }

.section-head { text-align: center; max-width: 660px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.65rem, 3.6vw, 2.3rem); margin-bottom: 12px; }
.section-head p { color: var(--ink-soft); }

.eyebrow {
    display: inline-block;
    font-size: .76rem;
    font-weight: 750;
    letter-spacing: .13em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.eyebrow-red { color: var(--c-red); }
.eyebrow-green { color: var(--c-green); }
.eyebrow-blue { color: var(--c-blue); }
.eyebrow-pink { color: var(--c-pink); }

/* ---------------------------------------------------------------- features */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(282px, 1fr)); gap: 18px; }

.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px 24px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--tint);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d8deea; }
.card:hover::before { transform: scaleX(1); }

.card-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    color: #fff;
    background: var(--tint);
}

.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: .96rem; }

.tint-red   { --tint: var(--c-red); }
.tint-green { --tint: var(--c-green); }
.tint-blue  { --tint: var(--c-blue); }
.tint-pink  { --tint: var(--c-pink); }

/* -------------------------------------------------------------- comparison */

.compare {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.compare-row {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) 1.3fr 1.3fr;
    gap: 0;
    border-bottom: 1px solid var(--line);
}

.compare-row:last-child { border-bottom: 0; }
.compare-row > * { padding: 16px 18px; }

.compare-head { background: var(--bg-soft); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; }
.compare-head .pr { color: var(--c-red); }
.compare-head .dg { color: var(--c-green); }

.compare-row .aspect { font-weight: 650; font-size: .95rem; }
.compare-row .pr,
.compare-row .dg { font-size: .95rem; color: var(--ink-soft); display: flex; gap: 10px; align-items: flex-start; }
.compare-row .pr { background: rgba(225, 29, 72, .035); }
.compare-row .dg { background: rgba(5, 150, 105, .04); }

.mark { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 800; color: #fff; margin-top: 2px; }
.mark-no { background: var(--c-red); }
.mark-yes { background: var(--c-green); }

@media (max-width: 760px) {
    .compare-row { grid-template-columns: 1fr; }
    .compare-row > * { padding: 12px 16px; }
    .compare-row .aspect { padding-bottom: 4px; background: var(--bg-soft); }
    .compare-head { display: none; }
}

/* ----------------------------------------------------------------- pricing */

.price-toggle { display: flex; justify-content: center; gap: 8px; margin-bottom: 30px; }

.price-toggle a {
    padding: 9px 18px;
    border-radius: 999px;
    font-weight: 650;
    font-size: .92rem;
    color: var(--ink-soft);
    border: 1px solid var(--line);
    background: var(--surface);
}

.price-toggle a.on { background: var(--c-green); color: #fff; border-color: var(--c-green); }

.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; align-items: start; }

.tier {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}

.tier:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.tier-best { border-color: transparent; box-shadow: var(--shadow-lg); }

.tier-best::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(120deg, var(--c-blue), var(--c-pink), var(--c-green));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.tier-flag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(120deg, var(--c-blue), var(--c-pink));
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 5px 13px;
    border-radius: 999px;
    white-space: nowrap;
}

.tier h3 { font-size: 1.15rem; margin-bottom: 6px; }
.tier > p.muted { font-size: .92rem; margin-bottom: 16px; }

.tier-price { font-size: 2.1rem; font-weight: 750; letter-spacing: -.03em; margin-bottom: 2px; }
.tier-price small { font-size: .95rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
.tier-alt { font-size: .8rem; color: var(--ink-soft); margin-bottom: 18px; }

.tier ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; font-size: .95rem; }
.tier li { display: flex; gap: 10px; align-items: flex-start; }
.tier li::before { content: "✓"; color: var(--c-green); font-weight: 800; flex: 0 0 auto; }
.tier .btn { margin-top: auto; }

/* --------------------------------------------------------------------- faq */

.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }

.faq details {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 20px;
    box-shadow: var(--shadow-sm);
    transition: border-color .2s;
}

.faq details[open] { border-color: #cfd6e2; }

.faq summary {
    list-style: none;
    cursor: pointer;
    font-weight: 650;
    padding: 18px 34px 18px 0;
    position: relative;
}

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

.faq summary::after {
    content: "+";
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--c-blue);
    transition: transform .2s;
}

.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 0 20px; color: var(--ink-soft); font-size: .97rem; }

/* --------------------------------------------------------------------- cta */

.cta { padding: 76px 0; }

.cta-box {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    padding: 58px 28px;
    text-align: center;
    color: #fff;
    background: linear-gradient(120deg, var(--c-blue), var(--c-pink) 55%, var(--c-green));
    background-size: 200% 200%;
    animation: hueshift 12s ease-in-out infinite;
}

html[data-still] .cta-box { animation: none; }

.cta-box h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin-bottom: 12px; }
.cta-box p { opacity: .92; margin-bottom: 26px; }

.cta-box .btn {
    background: #fff;
    color: var(--ink-on-light);
    box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45);
}

.cta-box .btn:hover { transform: translateY(-1px); }

/* ------------------------------------------------------------------ footer */

.foot { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 48px 0 0; }

.foot-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 22px 36px;
    display: flex;
    gap: 32px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.foot-inner p { margin-top: 10px; font-size: .92rem; max-width: 320px; }
.foot-links { display: flex; flex-direction: column; gap: 10px; }
.foot-links a { color: var(--ink-soft); font-size: .93rem; }
.foot-links a:hover { color: var(--ink); }

.foot-bar {
    border-top: 1px solid var(--line);
    padding: 18px 22px;
    text-align: center;
    font-size: .85rem;
    color: var(--ink-soft);
}

/* ------------------------------------------------------------- cms article */

.article { max-width: 760px; margin: 0 auto; padding: 60px 0 72px; }
.article h1 { font-size: clamp(1.9rem, 4.2vw, 2.6rem); margin-bottom: 26px; }
.article h2 { font-size: 1.3rem; margin: 34px 0 12px; }
.article h3 { font-size: 1.08rem; margin: 24px 0 10px; }
.article p { margin-bottom: 16px; color: var(--ink-soft); }
.article ul { color: var(--ink-soft); padding-left: 22px; margin-bottom: 16px; }
.article li { margin-bottom: 7px; }
.article a { text-decoration: underline; text-underline-offset: 2px; }
