/* Sumflare landing page. Light theme only. Plain CSS, no build step. Sizes follow the Tailwind type scale and the
   spacing tokens 2, 4, 8, 12, 16, 24, 32, 40, 48, 64, 80, 96. */

:root {
    --bg: #fafafa;
    --surface: #ffffff;
    --surface-2: #f4f4f5;
    --text: #09090b;
    --muted: #63636b;
    --line: rgb(9 9 11 / 0.08);
    --accent: #f97316;
    --accent-strong: #ea580c;
    --accent-soft: rgb(249 115 22 / 0.12);
    --hero-from: #000000;
    --hero-to: #666666;
    --word-dim: rgb(9 9 11 / 0.28);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --float: cubic-bezier(0.45, 0, 0.55, 1);
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

h1, h2, h3, p {
    margin: 0;
}

h1, h2, h3 {
    text-wrap: balance;
}

p, li {
    text-wrap: pretty;
}

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

/* Text styles */
.heading-1 { font-size: 3.75rem; line-height: 1; font-weight: 600; letter-spacing: -0.03em; }
.heading-2 { font-size: 3rem; line-height: 1; font-weight: 600; letter-spacing: -0.025em; }
.heading-3 { font-size: 2.25rem; line-height: 2.5rem; font-weight: 600; letter-spacing: -0.02em; }
.title-1 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 500; }
.title-2 { font-size: 1.125rem; line-height: 1.75rem; font-weight: 500; }
.title-3 { font-size: 1rem; line-height: 1.5rem; font-weight: 500; }
.body-3 { font-size: 1rem; line-height: 1.5rem; font-weight: 400; }
.body-6 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 400; }
.caption-1 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.caption-2 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 400; }
.caption-3 { font-size: 0.75rem; line-height: 1rem; font-weight: 600; }
.caption-4 { font-size: 0.75rem; line-height: 1rem; font-weight: 500; }
.caption-5 { font-size: 0.75rem; line-height: 1rem; font-weight: 400; }
.title-4 { font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }
.muted { color: var(--muted); }

@media (max-width: 720px) {
    .heading-1 { font-size: 2.25rem; line-height: 2.5rem; }
    .heading-2 { font-size: 1.875rem; line-height: 2.25rem; }
    .heading-3 { font-size: 1.875rem; line-height: 2.25rem; }
    /* Let balancing pick the break on narrow screens instead of the desktop line break. */
    .hero-title br,
    .final br { display: none; }
}

.skip {
    position: absolute;
    left: 16px;
    top: -64px;
    z-index: 100;
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    transition: transform 300ms var(--ease);
}

.skip:focus {
    transform: translateY(80px);
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 300ms var(--ease), transform 300ms var(--ease);
}

.button:hover {
    background: var(--accent-strong);
    transform: translateY(-1px);
}

.button:active {
    transform: scale(0.98);
}

.button-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
    border-radius: 8px;
}

.button-lg {
    padding: 12px 24px;
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.button-secondary {
    background: var(--surface-2);
    color: var(--text);
}

.button-secondary:hover {
    background: var(--accent-soft);
}

.button-disabled,
.button-disabled:hover {
    background: var(--surface-2);
    color: var(--muted);
    cursor: not-allowed;
    transform: none;
}

/* Navigation: a compact bar floating off the top edge. */
.nav-wrap {
    position: fixed;
    top: 16px;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    justify-content: center;
    padding: 0 16px;
    pointer-events: none;
}

.nav {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 8px 8px 8px 16px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface) 72%, transparent);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    box-shadow: 0 0 0 1px var(--line), 0 8px 32px rgb(0 0 0 / 0.08);
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    text-decoration: none;
}

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

.nav-links a {
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    transition: color 300ms var(--ease), background-color 300ms var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="true"] {
    color: var(--text);
    background: var(--surface-2);
}

.menu-toggle {
    display: none;
    position: relative;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

.menu-toggle span {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 500ms var(--ease);
}

.menu-toggle span:first-child { transform: translateY(-4px); }
.menu-toggle span:last-child { transform: translateY(4px); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 96px 24px 24px;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.mobile-menu[hidden] {
    display: none;
}

.mobile-menu a {
    padding: 12px 0;
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 600;
    text-decoration: none;
    opacity: 0;
    transform: translateY(24px);
    animation: menu-in 500ms var(--ease) forwards;
}

.mobile-menu a.button {
    margin-top: 16px;
    padding: 12px 24px;
    font-size: 1.125rem;
}

.mobile-menu a:nth-child(2) { animation-delay: 60ms; }
.mobile-menu a:nth-child(3) { animation-delay: 120ms; }
.mobile-menu a:nth-child(4) { animation-delay: 180ms; }
.mobile-menu a:nth-child(5) { animation-delay: 240ms; }
.mobile-menu a:nth-child(6) { animation-delay: 300ms; }

@keyframes menu-in {
    to { opacity: 1; transform: none; }
}

@media (max-width: 820px) {
    .nav-links,
    .nav-cta { display: none; }
    .menu-toggle { display: block; }
    .nav { width: 100%; justify-content: space-between; }
}

/* Hero */
main {
    overflow-x: clip;
}

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 16px;
    text-align: center;
}

/* The colorful sky behind the hero. Blobs are radial fills (cheaper than blur filters) that drift
   slowly; the whole layer fades into the page background at the bottom. */
.hero-sky {
    position: absolute;
    inset: 0 0 auto;
    height: 900px;
    overflow: hidden;
    background: #fff8f1;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
    mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

.hero-sky::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgb(9 9 11 / 0.12) 1px, transparent 1px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, #000, transparent);
    mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, #000, transparent);
}

.blob {
    position: absolute;
    width: 640px;
    height: 640px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--c) 0%, transparent 65%);
    opacity: 0.75;
    animation: drift 22s var(--float) infinite alternate;
}

.blob-orange { --c: #fdba74; left: -160px; top: -200px; }
.blob-pink { --c: #f9a8d4; left: 22%; top: 220px; animation-duration: 26s; animation-delay: -6s; }
.blob-sky { --c: #7dd3fc; right: -180px; top: -160px; animation-duration: 24s; animation-delay: -12s; }
.blob-violet { --c: #c4b5fd; right: 14%; top: 300px; animation-duration: 28s; animation-delay: -3s; }
.blob-yellow { --c: #fde68a; left: 38%; top: -280px; animation-duration: 20s; animation-delay: -9s; }

@keyframes drift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(80px, 40px, 0) scale(1.12); }
    100% { transform: translate3d(-60px, 80px, 0) scale(0.92); }
}

.hero-stage {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1360px;
    padding-top: 160px;
}

.hero-stage > :not(.floaters) {
    position: relative;
    z-index: 1;
}

/* Floating objects */
.floaters {
    position: absolute;
    inset: 0;
    --mx: 0;
    --my: 0;
}

.floater {
    position: absolute;
    transform: translate3d(calc(var(--mx) * var(--depth) * 1px), calc(var(--my) * var(--depth) * 1px), 0);
    transition: transform 500ms var(--ease);
}

.obj {
    rotate: var(--rot);
    animation:
        pop 900ms var(--ease) var(--delay) both,
        bob 6s var(--float) var(--delay) infinite alternate;
}

.floater:nth-child(even) .obj {
    animation-duration: 900ms, 7.5s;
}

@keyframes pop {
    from { opacity: 0; scale: 0.4; }
    to { opacity: 1; scale: 1; }
}

@keyframes bob {
    from { translate: 0 -8px; }
    to { translate: 0 10px; }
}

.card {
    border-radius: 16px;
    background: rgb(255 255 255 / 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 0 0 1px rgb(9 9 11 / 0.04), 0 12px 32px rgb(9 9 11 / 0.1);
    text-align: left;
}

.chip {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--chip-bg);
    color: var(--chip-fg);
    font-size: 1.875rem;
    box-shadow: inset 0 -4px 0 rgb(9 9 11 / 0.06), 0 12px 24px color-mix(in srgb, var(--chip-fg) 22%, transparent);
}

.chip-sm {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
}

.chip-orange { --chip-bg: #ffedd5; --chip-fg: #ea580c; }
.chip-green { --chip-bg: #dcfce7; --chip-fg: #16a34a; }
.chip-pink { --chip-bg: #fce7f3; --chip-fg: #db2777; }
.chip-violet { --chip-bg: #ede9fe; --chip-fg: #7c3aed; }
.chip-sky { --chip-bg: #e0f2fe; --chip-fg: #0284c7; }

/* "No cookies": a slash across the cookie. */
.slash {
    position: absolute;
    width: 44px;
    height: 3px;
    border-radius: 2px;
    background: var(--chip-fg);
    box-shadow: 0 0 0 2px var(--chip-bg);
    rotate: -45deg;
}

.bars-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 152px;
    padding: 12px;
}

.bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 56px;
}

.bars span {
    flex: 1;
    height: 100%;
    border-radius: 4px;
    background: color-mix(in srgb, var(--accent) calc(40% + var(--i) * 10%), #fed7aa);
    transform-origin: bottom;
    transform: scaleY(var(--h));
    animation: breathe 2.4s var(--float) calc(var(--i) * 150ms) infinite alternate;
}

@keyframes breathe {
    from { transform: scaleY(calc(var(--h) * 0.55)); }
    to { transform: scaleY(var(--h)); }
}

.cloud svg {
    display: block;
    filter: drop-shadow(0 12px 16px rgb(59 130 246 / 0.25));
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 224px;
    padding: 8px 12px 8px 8px;
}

.toast-icon {
    position: relative;
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #dcfce7;
    color: #16a34a;
    font-size: 1.25rem;
}

/* Live dot */
.toast-icon::after {
    content: "";
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 2px #fff;
    animation: ping 1.6s var(--ease) infinite;
}

@keyframes ping {
    0% { box-shadow: 0 0 0 2px #fff, 0 0 0 2px rgb(34 197 94 / 0.5); }
    100% { box-shadow: 0 0 0 2px #fff, 0 0 0 12px rgb(34 197 94 / 0); }
}

.toast-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: opacity 300ms var(--ease), transform 300ms var(--ease);
}

.toast-text.out {
    opacity: 0;
    transform: translateY(-8px);
}

.sparkle {
    width: 24px;
    height: 24px;
}

.sparkle path {
    fill: var(--c);
    transform-origin: center;
    animation: twinkle 3s var(--float) infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.4; transform: scale(0.6) rotate(45deg); }
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--c);
}

/* Desktop positions, relative to the hero stage. */
.f-bars { left: 3%; top: 200px; }
.f-cookie { left: 15%; top: 112px; }
.f-shield { left: 12%; top: 470px; }
.f-pin { left: 4%; top: 390px; }
.f-cloud { right: 3%; top: 96px; }
.f-toast { right: 2%; top: 290px; }
.f-globe { right: 14%; top: 460px; }
.f-phone { right: 17%; top: 128px; }
.s1 { --c: #f59e0b; left: 24%; top: 300px; }
.s2 { --c: #3b82f6; right: 25%; top: 340px; }
.s2 path { animation-delay: -1s; }
.s3 { --c: #ec4899; left: 8%; top: 140px; }
.s3 path { animation-delay: -2s; }
.s4 { --c: #8b5cf6; right: 9%; top: 560px; }
.s4 path { animation-delay: -1.5s; }
.d1 { --c: #93c5fd; left: 20%; top: 560px; }
.d2 { --c: #fca5a5; right: 22%; top: 230px; }
.d3 { --c: #c4b5fd; left: 26%; top: 150px; }

/* Medium screens: the text needs the middle, so keep only the small objects at the edges. */
@media (max-width: 1180px) {
    .f-bars,
    .f-toast,
    .s1,
    .s2,
    .d3 { display: none; }
    .f-cookie { left: 3%; top: 120px; }
    .f-shield { left: 4%; top: 480px; }
    .f-pin { left: 6%; top: 320px; }
    .f-cloud { right: 1%; top: 100px; scale: 0.7; }
    .f-phone { right: 5%; top: 330px; }
    .f-globe { right: 4%; top: 480px; }
    .d1 { left: 3%; top: 600px; }
}

/* Small screens: a few objects above the eyebrow, out of the text's way. */
@media (max-width: 720px) {
    .hero-stage { padding-top: 176px; }
    .f-shield,
    .f-pin,
    .f-phone,
    .f-globe,
    .s4,
    .d1 { display: none; }
    .f-cookie { left: 6%; top: 88px; scale: 0.75; }
    .f-cloud { right: -4%; top: 72px; scale: 0.55; }
    .d2 { right: auto; left: 40%; top: 112px; }
}

/* Small icon chips set inside the headline. */
.title-chips {
    display: inline-flex;
    vertical-align: middle;
    margin: 0 4px;
    translate: 0 -4px;
}

.tchip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-left: -16px;
    border-radius: 50%;
    background: var(--chip-bg);
    color: var(--chip-fg);
    font-size: 1.875rem;
    box-shadow: 0 0 0 4px #fff, 0 8px 16px rgb(9 9 11 / 0.08);
    animation: pop 700ms var(--ease) both;
}

.tchip:first-child { margin-left: 0; }
.tchip-orange { --chip-bg: #ffedd5; --chip-fg: #ea580c; animation-delay: 300ms; }
.tchip-green { --chip-bg: #dcfce7; --chip-fg: #16a34a; animation-delay: 420ms; }
.tchip-sky { --chip-bg: #e0f2fe; --chip-fg: #0284c7; animation-delay: 540ms; }

.title-chips:hover .tchip {
    rotate: -8deg;
    transition: rotate 300ms var(--ease);
}

@media (max-width: 720px) {
    .tchip {
        width: 40px;
        height: 40px;
        margin-left: -12px;
        font-size: 1.25rem;
        box-shadow: 0 0 0 3px #fff;
    }
}

.eyebrow {
    margin-bottom: 24px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.7);
    color: var(--accent-strong);
    box-shadow: 0 0 0 1px rgb(249 115 22 / 0.18);
}

.hero-title {
    max-width: 760px;
    background: linear-gradient(90deg, var(--hero-from), var(--hero-to));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-bottom: 4px;
}

.hero-sub {
    max-width: 680px;
    margin-top: 24px;
    color: var(--muted);
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.proof {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
}

.proof li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.proof i {
    font-size: 1.125rem;
    color: var(--accent);
}

.shot {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1120px;
    margin: 64px 0 0;
    padding: 8px;
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line), 0 32px 80px rgb(0 0 0 / 0.12);
}

.shot img {
    border-radius: 16px;
}

/* Tagline: each word lights up as it scrolls past. */
.tagline {
    display: flex;
    justify-content: center;
    padding: 96px 16px;
}

.tagline p {
    max-width: 720px;
    text-align: center;
    text-wrap: balance;
}

.tagline em {
    font-style: normal;
}

.tagline .word {
    color: var(--word-dim);
    transition: color 500ms var(--ease);
}

.tagline .word.lit {
    color: var(--text);
}

.tagline .word.key.lit {
    color: var(--accent-strong);
}

/* Sections */
.section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 80px 16px;
}

.section-title {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.section-sub {
    max-width: 680px;
    margin: 16px auto 0;
    text-align: center;
    color: var(--muted);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 48px;
}

.feature,
.step,
.plan {
    padding: 24px;
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
}

.feature-icon,
.step-head img {
    display: block;
    width: 48px;
    height: 48px;
}

/* The step number sits on the icon's corner, so the order still reads at a glance. */
.step-head {
    position: relative;
    display: inline-block;
}

.step-head .step-number {
    position: absolute;
    right: -8px;
    bottom: -6px;
    box-shadow: 0 0 0 3px var(--surface);
}

.feature h3,
.step h3 {
    margin-top: 16px;
}

.feature p,
.step p {
    margin-top: 8px;
    color: var(--muted);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 48px 0 0;
    padding: 0;
    list-style: none;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
}

.code {
    margin: 16px 0 0;
    padding: 12px;
    overflow-x: auto;
    border-radius: 8px;
    background: var(--surface-2);
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 0.75rem;
    line-height: 1rem;
}

/* Pricing */
.plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    max-width: 800px;
    margin: 48px auto 0;
}

.plan {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-pro {
    background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}

.plan h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
}

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

.install {
    padding: 12px;
    border-radius: 12px;
    background: var(--surface-2);
}

.plan-pro .install {
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
}

.slots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.slot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 8px;
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
}

.slot i {
    color: var(--accent);
    font-size: 1rem;
}

.slots-pro .slot {
    background: var(--accent-soft);
    box-shadow: none;
}

.slot-locked {
    background: transparent;
    box-shadow: none;
    color: var(--muted);
    outline: 1px dashed rgb(9 9 11 / 0.18);
    outline-offset: -1px;
}

.slot-locked i {
    color: var(--muted);
}

.slots-pro .slot-more {
    background: var(--accent);
    color: #ffffff;
}

.slots-pro .slot-more i {
    color: #ffffff;
}

/* Pro slots arrive one after another when the card is revealed. */
.js .slots-pro .slot {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}

.js .plan-pro.shown .slot {
    opacity: 1;
    transform: none;
}

.js .plan-pro.shown .slot:nth-child(2) { transition-delay: 80ms; }
.js .plan-pro.shown .slot:nth-child(3) { transition-delay: 160ms; }
.js .plan-pro.shown .slot:nth-child(4) { transition-delay: 240ms; }
.js .plan-pro.shown .slot:nth-child(5) { transition-delay: 320ms; }

.track {
    display: flex;
    align-items: center;
    gap: 8px;
}

.track-step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.track-step::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgb(9 9 11 / 0.18);
}

.track-now {
    color: var(--accent-strong);
}

.track-now::before {
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.track-line {
    flex: 1;
    height: 2px;
    border-radius: 999px;
    background: rgb(9 9 11 / 0.1);
}

.plan .button i {
    font-size: 1rem;
}

.checks {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    margin: 8px 0 16px;
    padding: 0;
    list-style: none;
}

.checks li {
    position: relative;
    padding-left: 24px;
}

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

.fine {
    max-width: 680px;
    margin: 24px auto 0;
    text-align: center;
}

/* FAQ */
.faq {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 760px;
    margin: 48px auto 0;
}

.faq details {
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
    transition: background-color 300ms var(--ease);
}

.faq details:hover {
    background: color-mix(in srgb, var(--surface-2) 50%, var(--surface));
}

.faq summary {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    cursor: pointer;
    list-style: none;
}

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

.faq summary::after {
    content: "+";
    color: var(--muted);
    font-size: 1.25rem;
    line-height: 1.5rem;
    transition: transform 500ms var(--ease);
}

.faq details[open] summary::after {
    transform: rotate(45deg);
}

.faq details p {
    padding: 0 24px 16px;
    color: var(--muted);
}

/* Final CTA and footer */
.final {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 1120px;
    margin: 0 auto 64px;
    padding: 96px 16px;
    text-align: center;
}

.final .hero-actions {
    margin-top: 8px;
}

.footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 32px 16px 48px;
    box-shadow: 0 -1px 0 var(--line);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.footer nav {
    display: flex;
    gap: 24px;
}

.footer nav a {
    color: var(--muted);
    text-decoration: none;
    transition: color 300ms var(--ease);
}

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

/* Prose pages (privacy, 404) */
.page {
    max-width: 680px;
    margin: 0 auto;
    padding: 160px 16px 96px;
}

.page h1 {
    margin-bottom: 24px;
}

.page h2 {
    margin: 32px 0 8px;
}

.page p,
.page li {
    color: var(--muted);
    line-height: 1.5rem;
}

.page ul {
    padding-left: 24px;
}

/* Scroll reveal: rise 32px and fade in, once. */
.js .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

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

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { transform: none; transition: opacity 300ms linear; }
    .tagline .word { color: var(--text); transition: none; }
    .tagline .word.key { color: var(--accent-strong); }
    .blob,
    .obj,
    .bars span,
    .sparkle path,
    .toast-icon::after,
    .tchip { animation: none; }
    .floater { transition: none; }
    .js .slots-pro .slot { opacity: 1; transform: none; transition: none; }
    .mobile-menu a { animation: none; opacity: 1; transform: none; }
    .menu-toggle span { transition: none; }
}
