Deploy in 90 seconds
Every commit builds and ships automatically to Frankfurt, Dublin or Singapore — no pipeline to babysit.
How deploys workThe same 3D language in three real Northlight scenes: an empty state whose open-box icon tells the story, a feature row where the icons are the backbone, and pricing plans that recompute live with the monthly/annual switch — here the icon is not decoration, it is the skeleton of the scene.
The component as it is used in a product — not a specimen grid.
An empty screen is a promise, not an apology. The open-box icon lands first and the copy is composed around it; the primary action answers inline, right where you clicked.
Create your first Northlight project or start from a ready template — setup takes under two minutes.
Preparing your repository in Frankfurt… just a few seconds.
Three pillars of the Northlight pitch. The icon is the first thing the eye lands on and the column is built under it — remove the icon and the row loses its skeleton.
Every commit builds and ships automatically to Frankfurt, Dublin or Singapore — no pipeline to babysit.
How deploys workSee each service’s spend 30 days ahead and get warned before the invoice, not after.
See the forecast modelEnd-to-end encryption, SSO and audit logs from day one — compliance without the paperwork marathon.
Read the security briefRocket for the launch, stacked layers for growth, a crown for scale. Flip the billing segment and every card recomputes in place — annual saves roughly 20%.
| Prop | Type | Default | What it does |
|---|---|---|---|
| scene | string | 'empty · features · pricing' | Three real scenes; in all of them the icon lands first and the copy is composed around it — not the other way round. |
| billing | segment | 'monthly | annual' | The billing switch recomputes all three plan prices in place; annual saves roughly 20%. |
| empty-action | state | 'inline' | The empty state’s primary button reports its result inline, right under the actions — no popup, no new page. |
| icon-size | px | '52 · 56 · 104' | Features 52, plans 56 and the empty state 104px — the icon grows with the weight of the scene. |
<!-- Once for all three scenes: two shared gradients + the radial shadow -->
<svg width="0" height="0" aria-hidden="true"><defs>
<linearGradient id="i3sc-body" x1="0" y1="0" x2="1" y2="1">
<stop offset="0" class="i3sc-s1"/><stop offset="1" class="i3sc-s2"/>
</linearGradient>
<linearGradient id="i3sc-accent" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" class="i3sc-s3"/><stop offset="1" class="i3sc-s4"/>
</linearGradient>
<radialGradient id="i3sc-shadow">
<stop offset="0" stop-color="#0f172a" stop-opacity=".26"/>
<stop offset="1" stop-color="#0f172a" stop-opacity="0"/>
</radialGradient>
</defs></svg>
<!-- Scene 1: empty state — the open-box icon tells the story -->
<div class="i3sc-empty" x-data="{ created: false }">
<svg class="i3sc-empty-icon" viewBox="0 0 64 64" role="img" aria-label="Empty box">
<ellipse class="i3sc-sh" cx="32" cy="53" rx="17" ry="4.5"/>
<path d="M14 30h36v14a5 5 0 0 1-5 5H19a5 5 0 0 1-5-5Z" fill="url(#i3sc-body)"/>
<path d="M14 30 6 24v9l8 5Z" fill="url(#i3sc-accent)"/>
<path d="M50 30l8-6v9l-8 5Z" fill="url(#i3sc-accent)"/>
<path d="M41 8l1.9 4.3L47 14l-4.1 1.7L41 20l-1.9-4.3L35 14l4.1-1.7Z" fill="url(#i3sc-accent)"/>
</svg>
<h4>Your workspace is empty</h4>
<p>Create your first Northlight project or start from a ready template — setup takes under two minutes.</p>
<button type="button" class="i3sc-btn" x-on:click="created = true">Create first project</button>
<p class="i3sc-note" x-show="created" x-cloak>Preparing your repository in Frankfurt… just a few seconds.</p>
</div>
<!-- Scene 3: plans — prices recompute live with the monthly/annual switch -->
<div class="i3sc-plans" x-data="{
cycle: 'annual',
plans: { launch: { m: '$12', a: '$9' }, growth: { m: '$29', a: '$23' }, scale: { m: '$99', a: '$79' } },
labelM: 'per month', labelA: 'per month, billed yearly',
}">
<div class="i3sc-seg" role="radiogroup" aria-label="Billing cycle">
<button type="button" role="radio" :aria-checked="cycle === 'monthly'"
x-on:click="cycle = 'monthly'">Monthly</button>
<button type="button" role="radio" :aria-checked="cycle === 'annual'"
x-on:click="cycle = 'annual'">Annual</button>
</div>
<article class="i3sc-plan" data-featured>
<svg viewBox="0 0 64 64" aria-hidden="true"><!-- the layers icon --></svg>
<h4>Growth</h4>
<p><b x-text="cycle === 'monthly' ? plans.growth.m : plans.growth.a"></b>
<small x-text="cycle === 'monthly' ? labelM : labelA"></small></p>
</article>
</div>
<style>
.i3sc .i3sc-s1 { stop-color: #c7b8ff; } .i3sc .i3sc-s2 { stop-color: #6c4cf1; }
.i3sc .i3sc-s3 { stop-color: #8df0ff; } .i3sc .i3sc-s4 { stop-color: #0ea5e9; }
.i3sc .i3sc-sh { fill: url(#i3sc-shadow); }
.i3sc-empty { display: grid; justify-items: center; text-align: center; gap: .75rem; }
.i3sc-empty-icon { inline-size: 6.5rem; }
.i3sc-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.i3sc-plan { display: grid; gap: .6rem; padding: 1.5rem; border-radius: 1.25rem; border: 1px solid #e6e2ff; }
.i3sc-plan[data-featured] { border-color: #6c4cf1; box-shadow: 0 12px 30px #6c4cf12e; }
.i3sc-btn { border: none; border-radius: 999px; padding: .65rem 1.25rem; cursor: pointer;
background: linear-gradient(135deg, #c7b8ff, #6c4cf1); color: #fff; }
@media (prefers-reduced-motion: reduce) { .i3sc * { transition: none !important; animation: none !important; } }
</style>
// app/Pages/Pricing.jsx — Inertia (React) page; renders the React
// snippet below unchanged, with Inertia's Link wired into the provider.
import { Link } from '@inertiajs/react';
import { NabuXUIProvider } from '@nabuxai/ui-react';
import PricingScenes from '@/components/PricingScenes';
export default function Pricing() {
return (
<NabuXUIProvider locale="en" linkComponent={Link}>
<main className="nx-page">
<PricingScenes />
</main>
</NabuXUIProvider>
);
}
// PricingScenes.jsx — 3D icons as the backbone of real scenes: the
// empty state and pricing plans, one hidden defs block for every icon.
import { useState } from 'react';
import '@nabuxai/ui-core/css';
const PLANS = [
{ id: 'launch', name: 'Launch', m: 12, a: 9, icon: 'rocket', perks: ['3 projects', 'GitHub deploys', 'Community support'] },
{ id: 'growth', name: 'Growth', m: 29, a: 23, icon: 'layers', perks: ['Unlimited projects', 'Preview environments', '4-hour support'], featured: true },
{ id: 'scale', name: 'Scale', m: 99, a: 79, icon: 'crown', perks: ['Dedicated regions', 'Audit log', '1-hour support'] },
];
const ART = {
rocket: <>
<ellipse fill="url(#sc3-shadow)" cx="32" cy="55" rx="15" ry="4.5" />
<path fill="url(#sc3-accent)" d="M27.5 45h9c.3 3.5-1.7 6.5-4.5 9.5-2.8-3-4.8-6-4.5-9.5Z" />
<path fill="url(#sc3-accent)" d="M23 33c-5.5 3-8.5 8.5-8.5 15l8.5-5.5Z" />
<path fill="url(#sc3-accent)" d="M41 33c5.5 3 8.5 8.5 8.5 15L41 42.5Z" />
<path fill="url(#sc3-body)" d="M32 7c6.5 4.5 9.5 12.5 9.5 20.5V41a4 4 0 0 1-4 4h-11a4 4 0 0 1-4-4V27.5C22.5 19.5 25.5 11.5 32 7Z" />
<circle fill="url(#sc3-accent)" cx="32" cy="26" r="5.5" />
</>,
layers: <>
<ellipse fill="url(#sc3-shadow)" cx="32" cy="54" rx="18" ry="4" />
<path fill="url(#sc3-deep)" d="M13 29.5 32 39l19-9.5v8L32 47.5 13 37.5Z" />
<path fill="url(#sc3-body)" d="M13 21.5 32 31l19-9.5v8L32 39 13 29.5Z" />
<path fill="url(#sc3-accent)" d="M32 12l19 9.5L32 31l-19-9.5Z" />
</>,
crown: <>
<ellipse fill="url(#sc3-shadow)" cx="32" cy="54" rx="16" ry="4" />
<path fill="url(#sc3-body)" d="M13 42 9 22l12.5 8L32 15l10.5 15L55 22l-4 20Z" />
<path fill="url(#sc3-accent)" d="M13 42h38v6a3 3 0 0 1-3 3H16a3 3 0 0 1-3-3Z" />
<circle fill="url(#sc3-accent)" cx="32" cy="13" r="2.5" />
</>,
};
export default function PricingScenes() {
const [cycle, setCycle] = useState('annual');
const [created, setCreated] = useState(false);
return (
<>
<style>{`
.sc3-empty { display: grid; justify-items: center; text-align: center; gap: .75rem; padding: 2.5rem 1rem; }
.sc3-empty svg { inline-size: 6.5rem; }
.sc3-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.sc3-plan { display: grid; align-content: start; gap: .6rem; padding: 1.5rem; border-radius: 1.25rem;
border: 1px solid #e6e2ff; background: #fff; }
.sc3-plan[data-featured='true'] { border-color: #6c4cf1; box-shadow: 0 12px 30px #6c4cf12e; }
.sc3-plan svg { inline-size: 3.5rem; }
.sc3-price { font-size: 1.75rem; font-weight: 700; }
.sc3-seg { display: inline-flex; gap: .25rem; padding: .25rem; border-radius: 999px; background: #f1eeff; }
.sc3-seg button { border: none; border-radius: 999px; padding: .4rem 1rem; cursor: pointer; }
.sc3-seg button[aria-checked='true'] { background: linear-gradient(135deg, #c7b8ff, #6c4cf1); color: #fff; }
.sc3-btn { justify-self: center; border: none; border-radius: 999px; padding: .65rem 1.25rem; cursor: pointer;
background: linear-gradient(135deg, #c7b8ff, #6c4cf1); color: #fff; }
`}</style>
{/* One hidden defs block colours every icon in every scene. */}
<svg width="0" height="0" aria-hidden="true"><defs>
<linearGradient id="sc3-body" x1="0" y1="0" x2="1" y2="1">
<stop offset="0" stopColor="#c7b8ff" /><stop offset="1" stopColor="#6c4cf1" />
</linearGradient>
<linearGradient id="sc3-accent" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stopColor="#8df0ff" /><stop offset="1" stopColor="#0ea5e9" />
</linearGradient>
<radialGradient id="sc3-shadow">
<stop offset="0" stopColor="#0f172a" stopOpacity=".26" />
<stop offset="1" stopColor="#0f172a" stopOpacity="0" />
</radialGradient>
</defs></svg>
{/* Scene 1 — the empty state; the open-box icon leads, the copy follows. */}
<div className="sc3-empty">
<svg viewBox="0 0 64 64" role="img" aria-label="Empty box">
<ellipse fill="url(#sc3-shadow)" cx="32" cy="53" rx="17" ry="4.5" />
<path fill="url(#sc3-body)" d="M14 30h36v14a5 5 0 0 1-5 5H19a5 5 0 0 1-5-5Z" />
<path fill="url(#sc3-accent)" d="M14 30 6 24v9l8 5Z" />
<path fill="url(#sc3-accent)" d="M50 30l8-6v9l-8 5Z" />
<path fill="url(#sc3-accent)" d="M41 8l1.9 4.3L47 14l-4.1 1.7L41 20l-1.9-4.3L35 14l4.1-1.7Z" />
</svg>
<h4>Your workspace is empty</h4>
<p>Create your first Northlight project or start from a ready template — setup takes under two minutes.</p>
<button type="button" className="sc3-btn" onClick={() => setCreated(true)}>Create first project</button>
{created && <p role="status">Preparing your repository in Frankfurt… just a few seconds.</p>}
</div>
{/* Scene 3 — pricing; the monthly/annual switch recomputes every card. */}
<div className="sc3-seg" role="radiogroup" aria-label="Billing cycle">
<button type="button" role="radio" aria-checked={cycle === 'monthly'} onClick={() => setCycle('monthly')}>Monthly</button>
<button type="button" role="radio" aria-checked={cycle === 'annual'} onClick={() => setCycle('annual')}>Annual</button>
</div>
<div className="sc3-plans">
{PLANS.map((p) => (
<article className="sc3-plan" data-featured={p.featured} key={p.id}>
<svg viewBox="0 0 64 64" role="img" aria-label={p.name}>{ART[p.icon]}</svg>
<h4>{p.name}</h4>
<p className="sc3-price">${cycle === 'monthly' ? p.m : p.a}
<small> per month{cycle === 'annual' ? ', billed yearly' : ''}</small>
</p>
<ul>
{p.perks.map((perk) => <li key={perk}>{perk}</li>)}
</ul>
<button type="button" className="sc3-btn">Choose {p.name}</button>
</article>
))}
</div>
</>
);
}
<!-- PricingScenes.vue — 3D icons as the backbone of real scenes -->
<script setup lang="ts">
import { ref } from 'vue';
import '@nabuxai/ui-core/css';
const plans = [
{ id: 'launch', name: 'Launch', m: 12, a: 9, icon: 'rocket', perks: ['3 projects', 'GitHub deploys', 'Community support'], featured: false },
{ id: 'growth', name: 'Growth', m: 29, a: 23, icon: 'layers', perks: ['Unlimited projects', 'Preview environments', '4-hour support'], featured: true },
{ id: 'scale', name: 'Scale', m: 99, a: 79, icon: 'crown', perks: ['Dedicated regions', 'Audit log', '1-hour support'], featured: false },
];
const art: Record<string, string> = {
rocket: `<ellipse fill="url(#sc3-shadow)" cx="32" cy="55" rx="15" ry="4.5"/>
<path fill="url(#sc3-accent)" d="M27.5 45h9c.3 3.5-1.7 6.5-4.5 9.5-2.8-3-4.8-6-4.5-9.5Z"/>
<path fill="url(#sc3-accent)" d="M23 33c-5.5 3-8.5 8.5-8.5 15l8.5-5.5Z"/>
<path fill="url(#sc3-accent)" d="M41 33c5.5 3 8.5 8.5 8.5 15L41 42.5Z"/>
<path fill="url(#sc3-body)" d="M32 7c6.5 4.5 9.5 12.5 9.5 20.5V41a4 4 0 0 1-4 4h-11a4 4 0 0 1-4-4V27.5C22.5 19.5 25.5 11.5 32 7Z"/>
<circle fill="url(#sc3-accent)" cx="32" cy="26" r="5.5"/>`,
layers: `<ellipse fill="url(#sc3-shadow)" cx="32" cy="54" rx="18" ry="4"/>
<path fill="url(#sc3-deep)" d="M13 29.5 32 39l19-9.5v8L32 47.5 13 37.5Z"/>
<path fill="url(#sc3-body)" d="M13 21.5 32 31l19-9.5v8L32 39 13 29.5Z"/>
<path fill="url(#sc3-accent)" d="M32 12l19 9.5L32 31l-19-9.5Z"/>`,
crown: `<ellipse fill="url(#sc3-shadow)" cx="32" cy="54" rx="16" ry="4"/>
<path fill="url(#sc3-body)" d="M13 42 9 22l12.5 8L32 15l10.5 15L55 22l-4 20Z"/>
<path fill="url(#sc3-accent)" d="M13 42h38v6a3 3 0 0 1-3 3H16a3 3 0 0 1-3-3Z"/>
<circle fill="url(#sc3-accent)" cx="32" cy="13" r="2.5"/>`,
};
const cycle = ref<'monthly' | 'annual'>('annual');
const created = ref(false);
</script>
<template>
<!-- One hidden defs block colours every icon in every scene. -->
<svg width="0" height="0" aria-hidden="true"><defs>
<linearGradient id="sc3-body" x1="0" y1="0" x2="1" y2="1">
<stop offset="0" stop-color="#c7b8ff" /><stop offset="1" stop-color="#6c4cf1" />
</linearGradient>
<linearGradient id="sc3-accent" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#8df0ff" /><stop offset="1" stop-color="#0ea5e9" />
</linearGradient>
<radialGradient id="sc3-shadow">
<stop offset="0" stop-color="#0f172a" stop-opacity=".26" />
<stop offset="1" stop-color="#0f172a" stop-opacity="0" />
</radialGradient>
</defs></svg>
<!-- Scene 1 — the empty state; the open-box icon leads, the copy follows. -->
<div class="sc3-empty">
<svg viewBox="0 0 64 64" role="img" aria-label="Empty box">
<ellipse fill="url(#sc3-shadow)" cx="32" cy="53" rx="17" ry="4.5" />
<path fill="url(#sc3-body)" d="M14 30h36v14a5 5 0 0 1-5 5H19a5 5 0 0 1-5-5Z" />
<path fill="url(#sc3-accent)" d="M14 30 6 24v9l8 5Z" />
<path fill="url(#sc3-accent)" d="M50 30l8-6v9l-8 5Z" />
<path fill="url(#sc3-accent)" d="M41 8l1.9 4.3L47 14l-4.1 1.7L41 20l-1.9-4.3L35 14l4.1-1.7Z" />
</svg>
<h4>Your workspace is empty</h4>
<p>Create your first Northlight project or start from a ready template — setup takes under two minutes.</p>
<button type="button" class="sc3-btn" @click="created = true">Create first project</button>
<p v-if="created" role="status">Preparing your repository in Frankfurt… just a few seconds.</p>
</div>
<!-- Scene 3 — pricing; the monthly/annual switch recomputes every card. -->
<div class="sc3-seg" role="radiogroup" aria-label="Billing cycle">
<button type="button" role="radio" :aria-checked="cycle === 'monthly'" @click="cycle = 'monthly'">Monthly</button>
<button type="button" role="radio" :aria-checked="cycle === 'annual'" @click="cycle = 'annual'">Annual</button>
</div>
<div class="sc3-plans">
<article v-for="p in plans" :key="p.id" class="sc3-plan" :data-featured="p.featured">
<svg viewBox="0 0 64 64" role="img" :aria-label="p.name" v-html="art[p.icon]" />
<h4>{{ p.name }}</h4>
<p class="sc3-price">${{ cycle === 'monthly' ? p.m : p.a }}
<small> per month<template v-if="cycle === 'annual'">, billed yearly</template></small>
</p>
<ul>
<li v-for="perk in p.perks" :key="perk">{{ perk }}</li>
</ul>
<button type="button" class="sc3-btn">Choose {{ p.name }}</button>
</article>
</div>
</template>
<style scoped>
.sc3-empty { display: grid; justify-items: center; text-align: center; gap: .75rem; padding: 2.5rem 1rem; }
.sc3-empty svg { inline-size: 6.5rem; }
.sc3-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.sc3-plan { display: grid; align-content: start; gap: .6rem; padding: 1.5rem; border-radius: 1.25rem;
border: 1px solid #e6e2ff; background: #fff; }
.sc3-plan[data-featured='true'] { border-color: #6c4cf1; box-shadow: 0 12px 30px #6c4cf12e; }
.sc3-plan svg { inline-size: 3.5rem; }
.sc3-price { font-size: 1.75rem; font-weight: 700; }
.sc3-seg { display: inline-flex; gap: .25rem; padding: .25rem; border-radius: 999px; background: #f1eeff; }
.sc3-seg button { border: none; border-radius: 999px; padding: .4rem 1rem; cursor: pointer; }
.sc3-seg button[aria-checked='true'] { background: linear-gradient(135deg, #c7b8ff, #6c4cf1); color: #fff; }
.sc3-btn { justify-self: center; border: none; border-radius: 999px; padding: .65rem 1.25rem; cursor: pointer;
background: linear-gradient(135deg, #c7b8ff, #6c4cf1); color: #fff; }
</style>
<!-- PricingScenes.svelte — 3D icons as the backbone of real scenes -->
<script lang="ts">
import '@nabuxai/ui-core/css';
const plans = [
{ id: 'launch', name: 'Launch', m: 12, a: 9, icon: 'rocket', perks: ['3 projects', 'GitHub deploys', 'Community support'], featured: false },
{ id: 'growth', name: 'Growth', m: 29, a: 23, icon: 'layers', perks: ['Unlimited projects', 'Preview environments', '4-hour support'], featured: true },
{ id: 'scale', name: 'Scale', m: 99, a: 79, icon: 'crown', perks: ['Dedicated regions', 'Audit log', '1-hour support'], featured: false },
];
const art: Record<string, string> = {
rocket: `<ellipse fill="url(#sc3-shadow)" cx="32" cy="55" rx="15" ry="4.5"/>
<path fill="url(#sc3-accent)" d="M27.5 45h9c.3 3.5-1.7 6.5-4.5 9.5-2.8-3-4.8-6-4.5-9.5Z"/>
<path fill="url(#sc3-accent)" d="M23 33c-5.5 3-8.5 8.5-8.5 15l8.5-5.5Z"/>
<path fill="url(#sc3-accent)" d="M41 33c5.5 3 8.5 8.5 8.5 15L41 42.5Z"/>
<path fill="url(#sc3-body)" d="M32 7c6.5 4.5 9.5 12.5 9.5 20.5V41a4 4 0 0 1-4 4h-11a4 4 0 0 1-4-4V27.5C22.5 19.5 25.5 11.5 32 7Z"/>
<circle fill="url(#sc3-accent)" cx="32" cy="26" r="5.5"/>`,
layers: `<ellipse fill="url(#sc3-shadow)" cx="32" cy="54" rx="18" ry="4"/>
<path fill="url(#sc3-deep)" d="M13 29.5 32 39l19-9.5v8L32 47.5 13 37.5Z"/>
<path fill="url(#sc3-body)" d="M13 21.5 32 31l19-9.5v8L32 39 13 29.5Z"/>
<path fill="url(#sc3-accent)" d="M32 12l19 9.5L32 31l-19-9.5Z"/>`,
crown: `<ellipse fill="url(#sc3-shadow)" cx="32" cy="54" rx="16" ry="4"/>
<path fill="url(#sc3-body)" d="M13 42 9 22l12.5 8L32 15l10.5 15L55 22l-4 20Z"/>
<path fill="url(#sc3-accent)" d="M13 42h38v6a3 3 0 0 1-3 3H16a3 3 0 0 1-3-3Z"/>
<circle fill="url(#sc3-accent)" cx="32" cy="13" r="2.5"/>`,
};
let cycle = $state<'monthly' | 'annual'>('annual');
let created = $state(false);
</script>
<!-- One hidden defs block colours every icon in every scene. -->
<svg width="0" height="0" aria-hidden="true"><defs>
<linearGradient id="sc3-body" x1="0" y1="0" x2="1" y2="1">
<stop offset="0" stop-color="#c7b8ff" /><stop offset="1" stop-color="#6c4cf1" />
</linearGradient>
<linearGradient id="sc3-accent" x1="0" y1="0" x2="0" y2="1">
<stop offset="0" stop-color="#8df0ff" /><stop offset="1" stop-color="#0ea5e9" />
</linearGradient>
<radialGradient id="sc3-shadow">
<stop offset="0" stop-color="#0f172a" stop-opacity=".26" />
<stop offset="1" stop-color="#0f172a" stop-opacity="0" />
</radialGradient>
</defs></svg>
<!-- Scene 1 — the empty state; the open-box icon leads, the copy follows. -->
<div class="sc3-empty">
<svg viewBox="0 0 64 64" role="img" aria-label="Empty box">
<ellipse fill="url(#sc3-shadow)" cx="32" cy="53" rx="17" ry="4.5" />
<path fill="url(#sc3-body)" d="M14 30h36v14a5 5 0 0 1-5 5H19a5 5 0 0 1-5-5Z" />
<path fill="url(#sc3-accent)" d="M14 30 6 24v9l8 5Z" />
<path fill="url(#sc3-accent)" d="M50 30l8-6v9l-8 5Z" />
<path fill="url(#sc3-accent)" d="M41 8l1.9 4.3L47 14l-4.1 1.7L41 20l-1.9-4.3L35 14l4.1-1.7Z" />
</svg>
<h4>Your workspace is empty</h4>
<p>Create your first Northlight project or start from a ready template — setup takes under two minutes.</p>
<button type="button" class="sc3-btn" onclick={() => (created = true)}>Create first project</button>
{#if created}
<p role="status">Preparing your repository in Frankfurt… just a few seconds.</p>
{/if}
</div>
<!-- Scene 3 — pricing; the monthly/annual switch recomputes every card. -->
<div class="sc3-seg" role="radiogroup" aria-label="Billing cycle">
<button type="button" role="radio" aria-checked={cycle === 'monthly'} onclick={() => (cycle = 'monthly')}>Monthly</button>
<button type="button" role="radio" aria-checked={cycle === 'annual'} onclick={() => (cycle = 'annual')}>Annual</button>
</div>
<div class="sc3-plans">
{#each plans as p (p.id)}
<article class="sc3-plan" data-featured={p.featured}>
<svg viewBox="0 0 64 64" role="img" aria-label={p.name}>{@html art[p.icon]}</svg>
<h4>{p.name}</h4>
<p class="sc3-price">${cycle === 'monthly' ? p.m : p.a}
<small> per month{cycle === 'annual' ? ', billed yearly' : ''}</small>
</p>
<ul>
{#each p.perks as perk (perk)}
<li>{perk}</li>
{/each}
</ul>
<button type="button" class="sc3-btn">Choose {p.name}</button>
</article>
{/each}
</div>
<style>
.sc3-empty { display: grid; justify-items: center; text-align: center; gap: .75rem; padding: 2.5rem 1rem; }
.sc3-empty svg { inline-size: 6.5rem; }
.sc3-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.sc3-plan { display: grid; align-content: start; gap: .6rem; padding: 1.5rem; border-radius: 1.25rem;
border: 1px solid #e6e2ff; background: #fff; }
.sc3-plan[data-featured='true'] { border-color: #6c4cf1; box-shadow: 0 12px 30px #6c4cf12e; }
.sc3-plan svg { inline-size: 3.5rem; }
.sc3-price { font-size: 1.75rem; font-weight: 700; }
.sc3-seg { display: inline-flex; gap: .25rem; padding: .25rem; border-radius: 999px; background: #f1eeff; }
.sc3-seg button { border: none; border-radius: 999px; padding: .4rem 1rem; cursor: pointer; }
.sc3-seg button[aria-checked='true'] { background: linear-gradient(135deg, #c7b8ff, #6c4cf1); color: #fff; }
.sc3-btn { justify-self: center; border: none; border-radius: 999px; padding: .65rem 1.25rem; cursor: pointer;
background: linear-gradient(135deg, #c7b8ff, #6c4cf1); color: #fff; }
</style>