/* funkynerd — plum-led palette, one warm accent. */
:root {
	--plum: #554d7c;
	--plum-dark: #3e3860;
	--lavender: #7a72a6;
	--deep: #2e2a45;
	--midnight: #1e1b2e;
	--slate: #5b5870;
	--mist: #a9a3cc;
	--tint: #eeedf4;
	--haze: #f7f6fa;
	--line: #e4e2ec;
	--marigold: #f2b544;
	--marigold-tint: #fcefd2;
	--font-head: 'Space Grotesk', system-ui, sans-serif;
	--font-body: 'Inter', system-ui, sans-serif;
	--font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
	font-family: var(--font-body);
	color: var(--midnight);
	background: #fff;
	line-height: 1.5;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

main { flex: 1 0 auto; }

a { color: var(--plum); text-decoration: none; }
a:hover { color: var(--plum-dark); }

h1, h2, h3 { font-family: var(--font-head); margin: 0; letter-spacing: -0.03em; }
p { margin: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

.eyebrow { font-family: var(--font-mono); font-weight: 500; font-size: 14px; color: var(--plum); }
.muted { color: var(--slate); }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 52px; padding: 0 28px; border-radius: 12px;
	font-family: var(--font-head); font-weight: 700; font-size: 17px;
	border: 1px solid transparent; cursor: pointer;
}
.btn-light { background: #fff; color: var(--midnight); }
.btn-light:hover { background: var(--tint); color: var(--midnight); }
.btn-accent { background: var(--marigold); color: var(--midnight); }
.btn-accent:hover { background: #f6c460; color: var(--midnight); }
.btn-plum { background: var(--plum); color: #fff; }
.btn-plum:hover { background: var(--plum-dark); color: #fff; }
.btn-ghost { border-color: #5a5478; color: #fff; font-weight: 600; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-outline { border-color: var(--plum); color: var(--plum); font-weight: 600; }
.btn-outline:hover { background: var(--tint); }
.btn-sm { min-height: 44px; padding: 0 22px; font-size: 16px; border-radius: 10px; font-weight: 600; }
.link-arrow { font-family: var(--font-head); font-weight: 600; font-size: 17px; display: inline-flex; align-items: center; min-height: 44px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--midnight); font-family: var(--font-head); font-weight: 700; font-size: 23px; letter-spacing: -0.02em; }
.brand:hover { color: var(--midnight); }
.brand b { color: var(--plum); font-weight: 700; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.main-nav a.nav-link { color: #3b384d; font-weight: 500; padding: 10px 0; border-bottom: 2px solid transparent; }
.main-nav a.nav-link:hover { color: var(--plum); }
.main-nav a.nav-link.active { color: var(--plum); font-weight: 600; border-bottom-color: var(--plum); }

/* Hero (dark) */
.hero { background: var(--midnight); color: #fff; }
.hero .container { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; padding-top: 104px; padding-bottom: 112px; }
.hero-copy { flex: 1 1 500px; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border: 1px solid #3f3a5c; border-radius: 999px; font-size: 14px; color: #d6d3e4; }
.pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--marigold); }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.04; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--marigold); }
.hero .lead { font-size: 20px; line-height: 1.6; color: #bdb9d0; max-width: 540px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-art { flex: 1 1 460px; position: relative; min-height: 440px; overflow: hidden; }
.mock { position: absolute; border-radius: 16px; box-shadow: 0 30px 60px rgba(0, 0, 0, .4); overflow: hidden; }
.mock-mail { left: 0; top: 30px; width: 360px; background: #fff; color: var(--midnight); }
.mock-mail header { display: flex; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--slate); }
.mock-mail header strong { font-family: var(--font-head); font-size: 15px; color: var(--plum); }
.mock-row { display: flex; gap: 12px; padding: 12px 18px; border-bottom: 1px solid #f0eff5; }
.mock-row:last-child { border-bottom: 0; }
.mock-row i { flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--tint); }
.mock-row i.warm { background: var(--marigold-tint); }
.mock-row b { display: block; font-size: 14px; }
.mock-row span { font-size: 13px; color: var(--slate); }
.mock-phone { right: 0; top: 0; width: 186px; height: 360px; background: #2a2640; border: 1px solid #4a4466; border-radius: 30px; }
.mock-phone .notch { margin: 14px auto 0; width: 54px; height: 6px; border-radius: 3px; background: #4a4466; }
.mock-phone .title { margin: 18px 14px 0; padding: 14px; border-radius: 14px; background: var(--plum); font-family: var(--font-head); font-weight: 700; font-size: 15px; }
.mock-phone .bar { margin: 10px 14px 0; height: 44px; border-radius: 10px; background: #353149; }
.mock-term { left: 70px; bottom: 0; width: 380px; max-width: calc(100% - 70px); background: #120f1f; border: 1px solid #3f3a5c; border-radius: 14px; }
.mock-term header { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid #2a2640; font-family: var(--font-mono); font-size: 12px; color: #8e89a8; }
.mock-term header i { width: 9px; height: 9px; border-radius: 50%; background: #4a4466; }
.mock-term header span { margin-left: 8px; }
.mock-term pre { margin: 0; padding: 14px 16px 18px; font-family: var(--font-mono); font-size: 13px; line-height: 1.8; color: #d6d3e4; }
.mock-term .p { color: var(--marigold); }
.mock-term .d { color: var(--mist); }

/* Sections */
.section { padding: 104px 0; }
.section-haze { background: var(--haze); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.section-head .text { max-width: 640px; display: flex; flex-direction: column; gap: 14px; }
.section-head h2, .section-title { font-size: clamp(32px, 4vw, 46px); line-height: 1.08; }
.section-head p { font-size: 18px; line-height: 1.6; color: var(--slate); }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-hub { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.grid-why { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; }

/* Icon tiles */
.tile { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 14px; background: var(--plum); flex: 0 0 auto; }
.tile svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile.tone-lavender { background: var(--lavender); }
.tile.tone-deep { background: var(--deep); }
.tile.tone-tint { background: var(--tint); }
.tile.tone-tint svg { stroke: var(--plum); }
.tile-sm { width: 46px; height: 46px; border-radius: 12px; background: var(--tint); }
.tile-sm svg { width: 24px; height: 24px; stroke: var(--plum); }
.tile-white { background: #fff; border: 1px solid var(--line); }

/* Cards */
.card { display: flex; flex-direction: column; gap: 18px; padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: 18px; color: var(--midnight); }
a.card:hover { border-color: var(--lavender); color: var(--midnight); }
.card.dashed { border-style: dashed; border-color: #b5b1c8; }
.card .meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card h3 { font-size: 26px; }
.card .kind { font-family: var(--font-mono); font-size: 13px; color: var(--slate); }
.card .body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .body p { line-height: 1.6; color: var(--slate); }
.card .go { font-family: var(--font-head); font-weight: 600; color: var(--plum); }
.badge { padding: 4px 11px; border-radius: 999px; background: var(--tint); color: var(--midnight); font-size: 13px; font-weight: 600; }
.badge.live { background: var(--marigold-tint); }

.why h3 { font-size: 22px; margin: 14px 0; }
.why p { line-height: 1.65; color: var(--slate); }

/* Spotlight */
.spotlight { background: var(--midnight); color: #fff; border-radius: 24px; overflow: hidden; display: flex; flex-wrap: wrap; }
.spotlight .copy { flex: 1 1 440px; padding: 56px; display: flex; flex-direction: column; gap: 20px; justify-content: center; align-items: flex-start; }
.spotlight .tag { padding: 5px 12px; border-radius: 999px; background: var(--marigold); color: var(--midnight); font-size: 13px; font-weight: 600; }
.spotlight h2 { font-size: 40px; line-height: 1.1; }
.spotlight p { font-size: 17px; line-height: 1.6; color: #bdb9d0; }
.spotlight .art { flex: 1 1 440px; min-height: 340px; background: #2a2640; padding: 40px; display: flex; align-items: center; }
.spotlight .art pre { width: 100%; margin: 0; background: #120f1f; border: 1px solid #3f3a5c; border-radius: 14px; padding: 22px; font-family: var(--font-mono); font-size: 14px; line-height: 1.9; color: #d6d3e4; }

/* Updates */
.updates a { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 18px; background: var(--haze); color: var(--midnight); }
.updates a:hover { background: var(--tint); }
.updates small { font-family: var(--font-mono); font-size: 13px; color: var(--plum); }
.updates strong { font-family: var(--font-head); font-size: 21px; line-height: 1.3; }

/* Bands */
.band { border-radius: 24px; padding: 64px 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; color: #fff; }
.band .copy { flex: 1 1 420px; display: flex; flex-direction: column; gap: 12px; }
.band h2 { font-size: 38px; line-height: 1.1; }
.band p { font-size: 18px; line-height: 1.6; color: #e3e0ee; }
.band-plum { background: var(--plum); }
.band-dark { background: var(--midnight); }
.band-dark p { color: #bdb9d0; }

/* Page header (inner pages) */
.page-head { background: var(--haze); border-bottom: 1px solid var(--line); }
.page-head .container { display: flex; flex-direction: column; gap: 18px; padding-top: 80px; padding-bottom: 64px; }
.page-head h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.035em; max-width: 760px; }
.page-head p { font-size: 19px; line-height: 1.6; color: var(--slate); max-width: 600px; }

/* Filters */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid #d9d6e4; color: #3b384d; font-weight: 600; font-size: 15px; background: #fff; }
.chip:hover { border-color: var(--plum); color: var(--plum); }
.chip.on { background: var(--plum); border-color: var(--plum); color: #fff; }

/* Product page */
.product-hero { background: var(--plum); color: #fff; }
.product-hero .container { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; padding-top: 72px; }
.product-hero .back { color: #e3e0ee; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }
.product-hero .back:hover { color: #fff; }
.product-hero .tile { width: 64px; height: 64px; border-radius: 18px; background: #fff; }
.product-hero .tile svg { stroke: var(--plum); width: 32px; height: 32px; }
.product-hero h1 { font-size: clamp(44px, 6vw, 68px); line-height: 1.02; letter-spacing: -0.035em; }
.product-hero .lead { font-size: 21px; line-height: 1.5; color: #e3e0ee; max-width: 620px; }
.product-hero .actions { justify-content: center; }
.product-hero .btn-ghost { border-color: var(--mist); }
.product-bottom { padding-bottom: 72px; }
.soon-note { padding: 14px 20px; border-radius: 12px; background: rgba(255, 255, 255, .12); color: #fff; }

.window { margin-top: 40px; width: 100%; max-width: 940px; background: #fff; color: var(--midnight); border-radius: 18px 18px 0 0; box-shadow: 0 -10px 50px rgba(30, 27, 46, .3); overflow: hidden; text-align: left; }
.window-bar { display: flex; align-items: center; gap: 8px; padding: 13px 18px; background: var(--haze); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--slate); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d9d6e4; }
.window-bar span { margin-left: 12px; }
.window-body { display: flex; flex-wrap: wrap; min-height: 360px; }
.window-side { flex: 0 0 200px; padding: 18px; background: #fbfafd; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--slate); }
.window-side div { padding: 10px 12px; border-radius: 8px; }
.window-side .on { background: var(--tint); color: var(--plum); font-weight: 600; }
.window-list { flex: 1 1 360px; min-width: 0; }
.window-list .mock-row { padding: 18px 24px; gap: 14px; }
.window-list .mock-row i { flex-basis: 36px; height: 36px; }
.window-list .mock-row b { font-size: 16px; }
.window-list .mock-row span { font-size: 14px; display: block; margin-top: 3px; }

.feature { border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.feature h3 { font-size: 21px; }
.feature p { line-height: 1.6; color: var(--slate); }

.plans { max-width: 980px; margin: 0 auto; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.plan .name { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: 20px; }
.plan .price { font-family: var(--font-head); font-weight: 700; font-size: 42px; letter-spacing: -0.02em; }
.plan p { flex: 1; line-height: 1.6; color: var(--slate); }
.plan.featured { background: var(--midnight); color: #fff; }
.plan.featured p { color: #bdb9d0; }
.plan.featured .badge { background: var(--marigold); color: var(--midnight); }

.faq { max-width: 820px; margin: 0 auto; }
.faq > div { padding: 24px 0; border-bottom: 1px solid var(--line); }
.faq > div:first-of-type { border-top: 1px solid var(--line); }
.faq h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.02em; }
.faq p { line-height: 1.6; color: var(--slate); }
.center { text-align: center; max-width: 640px; margin: 0 auto 48px; }

.more { display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); border-radius: 16px; padding: 20px; color: var(--midnight); }
.more:hover { border-color: var(--lavender); color: var(--midnight); }
.more strong { flex: 1; font-family: var(--font-head); font-size: 20px; }
.more .tile { width: 44px; height: 44px; border-radius: 12px; }
.more .tile svg { width: 22px; height: 22px; }

/* Simple pages */
.prose { padding: 96px 0; }
.prose h1 { font-size: 48px; margin-bottom: 16px; }

/* Footer */
.site-footer { background: var(--midnight); color: #bdb9d0; flex-shrink: 0; }
.site-footer .container { padding-top: 72px; padding-bottom: 32px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.footer-about { flex: 1 1 300px; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.footer-about .brand { color: #fff; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px 72px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--mist); }
.footer-col a { color: #fff; }
.footer-col a:hover { text-decoration: underline; color: #fff; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid #353149; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; }
.footer-bottom a { color: #fff; }

@media (max-width: 640px) {
	.container { padding: 0 20px; }
	.hero .container { padding-top: 64px; padding-bottom: 72px; gap: 40px; }
	.section { padding: 72px 0; }
	.band, .spotlight .copy { padding: 40px 28px; }
	.window-side { flex-basis: 100%; flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* Downloads */
.dl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-bottom: 24px; }
.dl-platform { margin: 28px 0 12px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--plum); font-family: var(--font-head); }
.dl-list { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.dl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 18px 24px; background: #fff; color: var(--midnight); border-top: 1px solid var(--line); }
.dl-row:first-child { border-top: 0; }
.dl-row:hover { background: var(--haze); color: var(--midnight); }
.dl-name { flex: 1 1 280px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dl-name strong { font-family: var(--font-head); font-size: 18px; }
.dl-name small { font-family: var(--font-mono); font-size: 13px; color: var(--slate); overflow-wrap: anywhere; }
.dl-size { color: var(--slate); font-size: 15px; min-width: 64px; text-align: right; }
.notes { margin-top: 28px; border: 1px solid var(--line); border-radius: 16px; padding: 4px 24px; background: var(--haze); }
.notes summary { cursor: pointer; padding: 16px 0; font-family: var(--font-head); font-weight: 600; }
.notes pre { margin: 0 0 20px; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-body); font-size: 15px; line-height: 1.6; color: var(--slate); }
.soon-note a { color: #fff; text-decoration: underline; }
