/*
 * Plikli marketing site: dark glass over a slow aurora.
 * Colour marks meaning: sky for actions and links, the five chapter colours
 * on the home page (write, rank, earn, design, run), emerald for live/OK,
 * amber for "to review", coral for warnings. Everything else is ink on glass.
 */
:root {
  --bg: #0a1013;
  --bg-2: #0d161a;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.085);
  --ink: #f1f6f4;
  --ink-2: #d3dedb;
  --ink-muted: #98a8a4;
  --ink-faint: #64746f;
  --line-subtle: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.2);
  --sheen: rgba(255, 255, 255, 0.13);
  --sky: #6cc9ff;
  --teal: #45e0b6;
  --coral: #ff8f72;
  --violet: #b19cff;
  --amber: #ffc864;
  --emerald: #6ee3a7;
  --crimson: var(--coral);
  --grad: linear-gradient(100deg, #7fd3ff, #c3b2ff 50%, #ffa98f);
  --shadow: 0 30px 80px -34px rgba(0, 0, 0, 0.75);
  --display: 'Familjen Grotesk', 'Zen Kaku Gothic New', system-ui, sans-serif;
  --sans: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Yu Gothic', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --max: 1200px;
  --r: 12px;
  --r-lg: 22px;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, label:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 8px; }

/* --- moving background --------------------------------------------------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.aurora i { position: absolute; width: 56vmax; height: 56vmax; border-radius: 50%; filter: blur(80px); opacity: 0.5; will-change: transform; }
.aurora i:nth-child(1) { background: radial-gradient(circle, var(--sky), transparent 62%); top: -22vmax; right: -14vmax; animation: drift-a 38s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { background: radial-gradient(circle, var(--violet), transparent 62%); top: 30vh; left: -24vmax; animation: drift-b 44s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { background: radial-gradient(circle, var(--coral), transparent 62%); bottom: -30vmax; right: 6vmax; opacity: 0.35; animation: drift-c 50s ease-in-out infinite alternate; }
.aurora i:nth-child(4) { background: radial-gradient(circle, var(--teal), transparent 62%); top: 10vh; left: 30vw; width: 40vmax; height: 40vmax; opacity: 0.3; animation: drift-d 34s ease-in-out infinite alternate; }
.aurora::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(var(--line) 1px, transparent 1.2px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 70%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 70%);
}
@keyframes drift-a { to { transform: translate(-18vw, 14vh) scale(1.15); } }
@keyframes drift-b { to { transform: translate(22vw, -10vh) scale(0.9); } }
@keyframes drift-c { to { transform: translate(-24vw, -16vh) scale(1.2); } }
@keyframes drift-d { to { transform: translate(-16vw, 30vh) scale(1.25); } }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
.dots { position: relative; }

.glass, .card, .site-header .bar, .table-wrap, details.faq, .toggle, .menu-panel {
  background: linear-gradient(140deg, var(--surface-2), var(--surface) 60%);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow: inset 0 1px 0 var(--sheen), var(--shadow);
}

/* --- type ----------------------------------------------------------------- */
h1, h2, h3, h4 { color: var(--ink); font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.22; text-wrap: balance; }
h1 { font-size: clamp(34px, 5.6vw, 64px); letter-spacing: -0.03em; line-height: 1.12; }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 17.5px; letter-spacing: -0.01em; line-height: 1.4; }
.lead { font-size: 17px; color: var(--ink-muted); max-width: 62ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--pc, var(--sky));
}
.eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.muted { color: var(--ink-muted); }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: -0.01em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }

/* --- header --------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 20; padding: 14px 0; }
.site-header .bar { display: flex; align-items: center; gap: 22px; padding: 8px 8px 8px 18px; border-radius: 999px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); }
.brand-mark { width: 26px; height: 26px; border-radius: 9px; background: conic-gradient(from 200deg, var(--sky), var(--violet), var(--coral), var(--amber), var(--teal), var(--sky)); box-shadow: inset 0 0 0 1px var(--sheen); }
.nav { display: none; gap: 2px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--ink-muted); padding: 8px 12px; border-radius: 999px; transition: color 0.2s, background 0.2s; }
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav a[aria-current='page'] { color: var(--ink); background: var(--surface-2); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang { font-family: var(--mono); font-size: 12px; text-decoration: none; color: var(--ink-muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.lang:hover { color: var(--ink); border-color: var(--line-strong); }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: 48px; width: min(280px, 90vw); border-radius: var(--r-lg); padding: 8px; display: grid; background: rgba(14, 22, 26, 0.92); }
.menu-panel a { padding: 10px 12px; text-decoration: none; border-radius: var(--r); }
.menu-panel a:hover { background: var(--surface-2); }
.desktop-only { display: none; }
@media (min-width: 960px) {
  .nav { display: flex; }
  .menu { display: none; }
  .desktop-only { display: inline-flex; }
}

/* --- buttons & chips ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  background: var(--grad) 0 0 / 200% 100%; color: #06141c;
  font-family: var(--sans); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: 0 12px 30px -14px rgba(130, 170, 255, 0.9);
  transition: transform 0.2s ease, background-position 0.5s ease;
}
.btn:hover { transform: translateY(-1px); background-position: 100% 0; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--line-strong); }
.btn-accent { }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px;
  border-radius: 999px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.02em;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); white-space: nowrap;
}
.chip-live { color: var(--emerald); border-color: color-mix(in srgb, var(--emerald) 35%, transparent); background: color-mix(in srgb, var(--emerald) 10%, transparent); }
.chip-draft { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 35%, transparent); background: color-mix(in srgb, var(--amber) 10%, transparent); }
.chip-crimson { color: var(--coral); border-color: color-mix(in srgb, var(--coral) 35%, transparent); background: color-mix(in srgb, var(--coral) 10%, transparent); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 10px var(--emerald); flex-shrink: 0; }
.dot-pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* --- sections ------------------------------------------------------------ */
section { padding: 80px 0; scroll-margin-top: 90px; }
section.tight { padding: 48px 0; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head h2 + p { margin-top: 12px; }
.hero { padding: 72px 0 56px; text-align: center; }
.hero .lead { margin: 18px auto 0; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.ticks { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 18px; font-size: 13px; color: var(--ink-muted); }
.ticks span::before { content: '✓'; color: var(--emerald); margin-right: 6px; font-weight: 700; }
.page-hero { padding: 64px 0 36px; }
.page-hero .lead { margin-top: 14px; }

.grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(2, 1fr); } .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } }

.card { border-radius: var(--r-lg); padding: 24px; transition: border-color 0.25s ease, transform 0.25s ease; }
.card h3 { margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.card p { font-size: 14px; color: var(--ink-muted); }
.card .foot { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line-subtle); display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-muted); }
.card-dark { background: linear-gradient(140deg, color-mix(in srgb, var(--teal) 16%, transparent), var(--surface) 70%); border-color: color-mix(in srgb, var(--teal) 35%, transparent); }
.card-dark h3 { color: var(--ink); }
.card-dark p { color: var(--ink-muted); }
.icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; background: linear-gradient(140deg, color-mix(in srgb, var(--pc, var(--sky)) 30%, transparent), var(--surface)); border: 1px solid var(--line); }
.icon svg { width: 17px; height: 17px; stroke: var(--pc, var(--sky)); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.list { list-style: none; display: grid; gap: 10px; margin-top: 14px; }
.list li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 14px; }
.list li::before { content: '✓'; color: var(--emerald); font-weight: 700; }
.list.bad li::before { content: '!'; color: var(--coral); }
.list li strong { color: var(--ink); display: block; font-weight: 700; }
.list li span { color: var(--ink-muted); }

/* --- comparison ----------------------------------------------------------- */
.versus { display: grid; gap: 16px; }
@media (min-width: 900px) { .versus { grid-template-columns: 1fr 1fr; } }
.versus .card header { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.status-line { margin-top: 18px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); font-family: var(--mono); font-size: 11.5px; color: var(--ink-muted); }

.steps { list-style: none; display: grid; gap: 8px; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font-size: 13.5px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; flex-shrink: 0; font-family: var(--mono); font-size: 12px; font-weight: 700; color: #06141c; background: linear-gradient(140deg, #7fd3ff, #c3b2ff); }
.steps li.bad { color: var(--coral); border-color: color-mix(in srgb, var(--coral) 30%, transparent); }
.steps li.good { color: var(--emerald); border-color: color-mix(in srgb, var(--emerald) 30%, transparent); }
.steps li .ok { margin-left: auto; color: var(--emerald); }

/* --- small mock pieces (migration preview) ------------------------------- */
.mock-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 10px; }
.block { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r); font-size: 12.5px; margin-bottom: 6px; }
.check { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-subtle); font-size: 13px; }
.check:last-child { border-bottom: 0; }
.check b { color: var(--ink); font-weight: 700; display: block; }
.check span { color: var(--ink-muted); font-size: 12px; }
.check i { font-style: normal; color: var(--emerald); font-weight: 700; }

/* --- code ---------------------------------------------------------------- */
.code { background: rgba(3, 8, 10, 0.6); color: #dbe6e3; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; font-family: var(--mono); font-size: 12.5px; line-height: 1.75; overflow-x: auto; white-space: pre; }
.code .k { color: var(--violet); }
.code .s { color: var(--teal); }
.code .c { color: var(--ink-faint); }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-family: var(--mono); font-size: 11px; color: var(--ink-muted); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--surface-2); }
.code-head + .code { border-top-left-radius: 0; border-top-right-radius: 0; }
.code-head.dark { background: var(--surface); }

/* --- tables -------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line-subtle); vertical-align: top; }
th { font-family: var(--mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); background: var(--surface); }
tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }
td.yes { color: var(--emerald); font-weight: 700; }
td.no { color: var(--ink-faint); }
td.warn { color: var(--coral); }
.group td { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sky); background: var(--surface) !important; }
td strong { color: var(--ink); font-weight: 700; }

/* --- pricing ------------------------------------------------------------- */
.toggle { display: inline-flex; border-radius: 999px; padding: 4px; gap: 2px; }
.toggle label { padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--ink-muted); }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
#yearly:checked ~ .toggle label[for='yearly'], #monthly:checked ~ .toggle label[for='monthly'] { background: var(--ink); color: var(--bg); }
.price-yearly { display: none; }
#yearly:checked ~ .plans .price-yearly { display: block; }
#yearly:checked ~ .plans .price-monthly { display: none; }
.plans { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; border-radius: 28px; padding: 28px; }
.plan.featured { border: 1px solid transparent; background: linear-gradient(#111b20, #0e171b) padding-box, linear-gradient(130deg, var(--sky), var(--violet), var(--coral)) border-box; }
.plan .ribbon { position: absolute; top: -12px; left: 24px; background: var(--grad); color: #06141c; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.price { font-family: var(--display); font-size: 42px; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.price small { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--ink-muted); letter-spacing: 0; }
.plan .list { margin-top: 0; }
.plan .btn { width: 100%; }

details.faq { border-radius: var(--r-lg); }
details.faq + details.faq { margin-top: 10px; }
details.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::after { content: '+'; font-family: var(--mono); color: var(--sky); font-weight: 400; transition: transform 0.2s ease; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq div { padding: 0 22px 18px; color: var(--ink-muted); font-size: 14px; max-width: 68ch; }

/* --- CTA band & footer ---------------------------------------------------- */
.cta-band .wrap > div:first-child h2 { margin-top: 4px; }
.cta-band .inner { display: grid; gap: 24px; align-items: center; border-radius: 34px; padding: clamp(28px, 5vw, 56px); position: relative; overflow: hidden; }
.cta-band .inner::before { content: ''; position: absolute; width: 460px; height: 460px; right: -140px; top: -180px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--violet) 40%, transparent), transparent 65%); pointer-events: none; }
.cta-band .inner > * { position: relative; }
@media (min-width: 900px) { .cta-band .inner { grid-template-columns: 1.4fr 1fr; } }
.cta-band .btns { display: grid; gap: 10px; }

.site-footer { padding: 40px 0 32px; font-size: 13.5px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; padding-top: 32px; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr repeat(4, 1fr); } }
.footer-grid h4 { font-family: var(--mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-muted); margin-bottom: 12px; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; color: var(--ink-2); }
.footer-grid a:hover { color: var(--sky); }
.footer-base { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line-subtle); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; color: var(--ink-muted); font-size: 12px; }

.notice { padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--amber) 35%, transparent); background: color-mix(in srgb, var(--amber) 8%, transparent); color: var(--amber); border-radius: var(--r); font-size: 14px; }
.prose { max-width: 720px; }
.prose p + p, .prose ul + p, .prose h2 + p { margin-top: 12px; }
.prose ol, .prose ul { padding-left: 20px; margin-top: 10px; display: grid; gap: 6px; }

.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===================== home page ===================== */
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 24px; padding-block: 44px 8px; }
.home-hero h1 { margin: 22px 0 18px; }
.home-hero .lead { margin-bottom: 28px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 13px; color: var(--ink-muted); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; list-style: none; font-size: 13px; color: var(--ink-muted); }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: '✓'; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 10px; font-weight: 700; color: var(--emerald); background: var(--surface-2); border: 1px solid var(--line); }
.stage { position: relative; height: clamp(380px, 46vw, 560px); min-width: 0; }
.stage::before { content: ''; position: absolute; inset: 15%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--sky) 25%, transparent), transparent 70%); filter: blur(30px); }
.stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }

.strip { padding: 24px 0 8px; }
.strip-label { text-align: center; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 16px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: slide 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.brandchip { padding: 10px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 500; white-space: nowrap; color: var(--ink-2); }
@keyframes slide { to { transform: translateX(calc(-50% - 6px)); } }

.chapters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.chapter { border-radius: 20px; padding: 20px; text-decoration: none; display: grid; gap: 6px; align-content: start; min-width: 0; position: relative; overflow: hidden; transition: transform 0.25s ease, border-color 0.25s ease; }
.chapter::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--pc), transparent); }
.chapter:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--pc) 45%, transparent); }
.chapter b { font-family: var(--display); font-size: 17px; line-height: 1.35; color: var(--ink); }
.chapter span { color: var(--ink-muted); font-size: 13px; }
.chapter em { font-family: var(--mono); font-size: 11.5px; font-style: normal; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pc); }

.pillar-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 40px; align-items: start; }
.pillar-head { position: sticky; top: 110px; }
.pillar-head .section-head { margin: 0; }
.pillar-mark { width: 54px; height: 54px; border-radius: 17px; margin-bottom: 18px; background: linear-gradient(140deg, var(--pc), color-mix(in srgb, var(--pc) 25%, transparent)); box-shadow: 0 16px 40px -16px var(--pc), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.item { padding: 22px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.item:hover { border-color: color-mix(in srgb, var(--pc) 45%, transparent); transform: translateY(-2px); }
.item h3 { margin: 0; display: flex; align-items: center; gap: 10px; }
.item h3::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 4px; background: var(--pc); box-shadow: 0 0 14px var(--pc); }
.item.wide { grid-column: 1 / -1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.item .chip { color: var(--pc); border-color: color-mix(in srgb, var(--pc) 32%, transparent); background: color-mix(in srgb, var(--pc) 8%, transparent); }
.more-link { display: inline-flex; margin-top: 18px; font-size: 14px; font-weight: 700; color: var(--pc); text-decoration: none; }
.more-link:hover { text-decoration: underline; }

.themes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.theme { border-radius: 14px; padding: 8px; display: grid; gap: 6px; font-size: 11.5px; color: var(--ink-muted); text-align: center; min-width: 0; background: var(--surface); border: 1px solid var(--line); }
/* Each theme's real front page (public/themes, from apps/api/scripts/theme-thumbnails.ts). */
.theme .mini { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; object-position: top; border-radius: 8px; background: var(--surface-2); }

.howto { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: h; }
.howto .card::before { counter-increment: h; content: counter(h); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; margin-bottom: 18px; font-family: var(--mono); font-weight: 700; color: #06141c; background: linear-gradient(140deg, #7fd3ff, #c3b2ff); }

.invite { border-radius: 34px; padding: clamp(24px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; position: relative; overflow: hidden; }
.invite::before { content: ''; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--violet) 40%, transparent), transparent 65%); pointer-events: none; }
.invite > * { position: relative; }
.invite form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; color: var(--ink-muted); font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; font: 400 15px/1.4 var(--sans); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sky) 25%, transparent); }
.field textarea { resize: vertical; min-height: 92px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form-status { font-size: 14px; color: var(--ink-muted); }
.form-status.ok { color: var(--emerald); }
.form-status.err { color: var(--coral); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* --- small screens -------------------------------------------------------- */
.grid > *, .split > *, .versus > *, .plans > * { min-width: 0; }
.header-cta { display: none; }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }
@media (max-width: 1060px) {
  .chapters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .themes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .home-hero { grid-template-columns: minmax(0, 1fr); padding-top: 24px; }
  .stage { height: 400px; }
  .pillar-grid, .invite { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .pillar-head { position: static; }
  .howto { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 639px) {
  .site-header .bar { gap: 10px; }
  .hero { padding-top: 48px; }
  section { padding: 56px 0; }
  .chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .items, .invite form { grid-template-columns: minmax(0, 1fr); }
  .themes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stage { height: 340px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora i, .marquee-track, .dot-pulse { animation: none; }
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track [aria-hidden='true'] { display: none; }
  * { transition: none !important; }
}

/* Theme gallery (features #themes): screenshot on top, text below. */
.theme-card { padding: 0; overflow: hidden; }
.theme-card .theme-shot { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line-subtle); background: color-mix(in srgb, var(--ink-muted) 12%, transparent); }
.theme-card__body { padding: 16px 20px 20px; }
.theme-card--small .theme-card__body { padding: 10px 14px 12px; }
.theme-card--small h3 { font-size: 14px; margin: 0; }
/* Small theme cards stay two to a row on phones, rather than 14 full-width rows. */
@media (max-width: 719px) { .theme-grid-small { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .theme-grid-small .theme-card__body { padding: 8px 10px 10px; } .theme-grid-small h3 { font-size: 13px; } }
