/* AvatarRise — site styles. One file, no framework, no external requests. */

@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/inter-var.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Instrument Serif";
    src: url("/assets/fonts/instrument-serif.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Instrument Serif";
    src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

:root {
    --bg: #050506;
    --bg-2: #0b0b0d;
    --surface: #101013;
    --surface-2: #16161a;
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);
    --text: #f2f0ec;
    --muted: #a3a1a8;
    --dim: #8a8890;
    --ivory: #efe4d4;
    --lilac: #b8a9ff;
    --violet: #7c6bff;
    --brand: #8b7bff;
    --ok: #8fe3b0;
    --warn: #ffcf8a;
    --err: #ff9a9a;
    --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
    --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
    --radius: 14px;
    --radius-lg: 22px;
    --container: 1200px;
    --gutter: clamp(20px, 4vw, 40px);
    --header-h: 68px;
}

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

html {
    background: var(--bg);
    color-scheme: dark;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: rgba(184, 169, 255, 0.35); color: #fff; }

:focus-visible {
    outline: 2px solid var(--lilac);
    outline-offset: 3px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--text);
    color: var(--bg);
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus { top: 12px; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

.container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---------- Type ---------- */

.eyebrow {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand);
    margin-bottom: 16px;
}

.display {
    font-family: var(--serif);
    font-size: clamp(44px, 6.2vw, 86px);
    line-height: 1;
    letter-spacing: -0.025em;
}
.h2 {
    font-family: var(--sans);
    font-weight: 600;
    font-size: clamp(30px, 3.6vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.028em;
}
.h3 {
    font-family: var(--sans);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.35;
}
em { font-style: italic; }
.lead {
    font-size: clamp(17px, 1.6vw, 20px);
    line-height: 1.6;
    color: var(--muted);
    max-width: 640px;
}
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
    white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform 0.2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #fff; }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.04); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.text-link {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--line-2);
    text-underline-offset: 4px;
    transition: text-decoration-color 0.2s;
}
.text-link:hover { text-decoration-color: var(--lilac); }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    background: rgba(5, 5, 6, 0.72);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.site-header .container {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 28px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -0.01em;
}
.brand .logo-mark { width: 28px; height: 28px; color: var(--brand); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 14px;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s, background-color 0.2s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav a[aria-current="page"] { color: var(--text); }
.nav .nav-mobile { display: none; }
.header-cta { display: flex; align-items: center; gap: 8px; }
.menu-toggle {
    display: none;
    margin-left: auto;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    background: transparent;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
    display: block;
    width: 16px; height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    position: relative;
    transition: transform 0.25s, background-color 0.25s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -5px; }
.menu-toggle span::after { top: 5px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1100px) {
    .menu-toggle { display: inline-flex; }
    .header-cta .btn-ghost { display: none; }
    .nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 12px var(--gutter) 24px;
        height: calc(100vh - var(--header-h));
        height: calc(100dvh - var(--header-h));
        overflow-y: auto;
        background: var(--bg);
        display: none;
    }
    .nav.is-open { display: flex; }
    .nav a { padding: 14px 4px; font-size: 17px; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--text); }
    .nav a:hover { background: transparent; }
    .nav .nav-mobile { display: block; }
    body.menu-open { overflow: hidden; }
    .header-cta { margin-left: auto; }
    .menu-toggle { margin-left: 0; }
}
@media (max-width: 420px) {
    .header-cta .btn-primary { padding: 0 14px; font-size: 13px; }
}

/* ---------- Sections ---------- */

main { display: block; }
.section { padding: clamp(72px, 9vw, 124px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.hero + .section { padding-top: clamp(56px, 7vw, 96px); }
.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.h2 + .lead { margin-top: 22px; }
.lead + .spec { margin-top: 40px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.section-head.split {
    max-width: none;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: end;
}
.section-head.split .lead { margin: 0; }
@media (max-width: 860px) { .section-head.split { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    padding: clamp(48px, 6vw, 80px) 0 clamp(48px, 6vw, 72px);
    overflow: hidden;
    isolation: isolate;
}
.hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 50%; top: -30%;
    width: min(1100px, 140vw); height: 900px;
    transform: translateX(-50%);
    background:
        radial-gradient(closest-side at 35% 45%, rgba(124, 107, 255, 0.10), transparent 70%),
        radial-gradient(closest-side at 70% 55%, rgba(239, 228, 212, 0.04), transparent 70%);
    filter: blur(10px);
    pointer-events: none;
}
.hero-copy { max-width: 900px; }
.hero .lead { margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--dim); }

.page-hero { padding: clamp(64px, 9vw, 120px) 0 clamp(48px, 6vw, 72px); }
.page-hero .display { font-size: clamp(42px, 6vw, 80px); }
.page-hero .display-sm { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.05; max-width: 920px; }

/* ---------- Contact sheet (hero visual) ---------- */

.sheet {
    margin: clamp(40px, 5vw, 64px) 0 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01));
    padding: 14px;
}
.sheet-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 8px 14px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dim);
}
.sheet-bar .id { color: var(--muted); display: inline-flex; align-items: center; gap: 10px; }
.sheet-bar .lock {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--ok);
}
.sheet-bar .lock::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: var(--ok); box-shadow: 0 0 10px var(--ok);
}
.frames {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}
.frame {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #0d0d10;
}
.frame .figure { position: absolute; inset: 0; width: 100%; height: 100%; }
.frame .photo { object-fit: cover; }
.frame:has(.photo)::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(0,0,0,0.75)); pointer-events: none; }
.frame:has(.photo) .frame-meta, .frame:has(.photo) .frame-wave, .frame:has(.photo) .frame-tag, .frame:has(.photo) .frame-play { z-index: 1; }
.frame-meta {
    position: absolute;
    left: 10px; right: 10px; bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 8px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.78);
}
.frame-meta b { font-weight: 500; color: #fff; display: block; letter-spacing: 0.04em; }
.frame-tag {
    position: absolute; top: 10px; left: 10px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.14);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.86);
}
.frame-wave {
    position: absolute; left: 10px; right: 10px; bottom: 56px;
    height: 26px;
    display: flex; align-items: center; gap: 3px;
}
.frame-wave i {
    flex: 1; border-radius: 2px;
    background: rgba(255,255,255,0.7);
    height: 40%;
}
.frame-wave i:nth-child(3n+1) { height: 70%; }
.frame-wave i:nth-child(4n+2) { height: 95%; }
.frame-wave i:nth-child(5n+3) { height: 25%; }
.frame-wave i:nth-child(7n) { height: 55%; }
.frame-play {
    position: absolute; top: 50%; left: 50%;
    width: 44px; height: 44px; margin: -22px 0 0 -22px;
    border-radius: 50%;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.3);
    display: grid; place-items: center;
}
.frame-play::after {
    content: ""; margin-left: 3px;
    border-left: 11px solid #fff;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
}
/* Lighting scenes */
.scene-studio { background: radial-gradient(120% 80% at 30% 20%, #3a3646 0%, #15141b 55%, #0a0a0d 100%); }
.scene-life   { background: radial-gradient(120% 90% at 80% 10%, #6a4a35 0%, #2a1d18 45%, #0d0a09 100%); }
.scene-clip   { background: radial-gradient(110% 90% at 20% 90%, #1f3b4a 0%, #101c24 50%, #07090b 100%); }
.scene-voice  { background: radial-gradient(120% 90% at 50% 0%, #3b2f63 0%, #191530 50%, #08070d 100%); }
.scene-lang   { background: radial-gradient(120% 90% at 85% 85%, #4a3a2a 0%, #1b1712 55%, #090807 100%); }
.sheet-foot {
    display: flex; flex-wrap: wrap; gap: 8px 24px;
    padding: 14px 8px 4px;
    font-size: 13px; color: var(--dim);
}
@media (max-width: 860px) {
    .frames { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .frames .frame:nth-child(n+4) { display: none; }
}
@media (max-width: 520px) {
    .sheet-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
    .frames { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .frames .frame:nth-child(3) { display: none; }
}

/* ---------- Problem list ---------- */

.compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.compare > div { padding: clamp(28px, 4vw, 44px); }
.compare > div + div { border-left: 1px solid var(--line); background: var(--bg-2); }
.compare h3 { margin-bottom: 22px; }
.compare ul { list-style: none; display: grid; gap: 14px; }
.compare li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--muted); }
.compare li svg { width: 18px; height: 18px; margin-top: 4px; }
.compare .bad svg { color: var(--dim); }
.compare .good li { color: var(--text); }
.compare .good svg { color: var(--lilac); }
@media (max-width: 760px) {
    .compare { grid-template-columns: 1fr; }
    .compare > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Module grid ---------- */

.grid-lines {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}
.grid-lines > * {
    padding: clamp(26px, 3vw, 36px);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    min-height: 220px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: background-color 0.3s;
}
.grid-lines > *:hover { background: rgba(255,255,255,0.02); }
.grid-lines .num { font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: 0.1em; }
.grid-lines p { color: var(--muted); margin: 0; font-size: 15px; }
.grid-lines .wide { grid-column: span 2; }
.grid-lines .icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    border: 1px solid var(--line-2);
    display: grid; place-items: center;
    color: var(--brand);
    margin-bottom: 8px;
}
.grid-lines .icon svg { width: 20px; height: 20px; }
@media (max-width: 960px) {
    .grid-lines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-lines .wide { grid-column: span 2; }
}
@media (max-width: 600px) {
    .grid-lines { grid-template-columns: 1fr; }
    .grid-lines .wide { grid-column: auto; }
    .grid-lines > * { min-height: 0; }
}

/* ---------- Steps ---------- */

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li {
    position: relative;
    padding: 28px 24px 30px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    counter-increment: step;
}
.steps li::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    font-size: 14px;
    font-weight: 600;
    color: var(--brand);
    margin-bottom: 22px;
}
.steps p { color: var(--muted); margin: 10px 0 0; font-size: 15px; }
.steps-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; }
@media (max-width: 960px) { .steps, .steps-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps, .steps-6 { grid-template-columns: 1fr; } }

/* ---------- Example production ---------- */

.stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.stat { padding: 34px 18px 30px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b {
    display: block;
    font-weight: 600;
    font-size: clamp(36px, 4.4vw, 56px);
    line-height: 1;
    letter-spacing: -0.04em;
}
.stat span { display: block; margin-top: 12px; color: var(--muted); font-size: 14px; }
.disclaimer {
    display: flex; gap: 10px; align-items: flex-start;
    margin-top: 22px; font-size: 13px; color: var(--dim);
}
.disclaimer svg { width: 16px; height: 16px; margin-top: 2px; flex: none; }
@media (max-width: 960px) {
    .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .stat:nth-child(4) { border-left: 0; }
    .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat:nth-child(odd) { border-left: 0; }
    .stat:nth-child(4) { border-left: 1px solid var(--line); }
    .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Audience list ---------- */

.rows { list-style: none; border-top: 1px solid var(--line); margin-bottom: 28px; }
.rows li {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 24px;
    align-items: baseline;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
}
.rows .num { font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: 0.1em; }
.rows h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.rows p { color: var(--muted); margin: 0; }
@media (max-width: 760px) {
    .rows li { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- Tech / two-col ---------- */

.two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 88px);
    align-items: start;
}
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.spec { list-style: none; border-top: 1px solid var(--line); }
.spec li {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
}
.spec li span:first-child { color: var(--text); font-weight: 500; }
.spec li span:last-child { color: var(--muted); }

.pipeline {
    position: sticky;
    top: calc(var(--header-h) + 32px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px;
    background: var(--bg-2);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--muted);
}
.pipeline .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pipeline .row + .row { margin-top: 12px; }
.pipeline .node {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--line-2);
    background: var(--surface);
    color: var(--text);
}
.pipeline .node.accent { border-color: rgba(184,169,255,0.5); color: var(--lilac); }
.pipeline .arrow { color: var(--dim); }
.pipeline .label { width: 100%; color: var(--dim); text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; margin-top: 16px; }
.pipeline .label:first-child { margin-top: 0; }

/* ---------- Principles ---------- */

.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; }
.principles li {
    padding: 26px 22px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--surface), var(--bg));
}
.principles svg { width: 22px; height: 22px; color: var(--ivory); margin-bottom: 18px; }
.principles p { color: var(--muted); font-size: 15px; margin: 10px 0 0; }
@media (max-width: 960px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */

.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.plan {
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--bg-2);
}
.plan.featured {
    border-color: rgba(184, 169, 255, 0.45);
    background:
        radial-gradient(120% 60% at 50% 0%, rgba(124, 107, 255, 0.16), transparent 70%),
        var(--surface);
}
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.plan-name { font-size: 16px; font-weight: 600; }
.badge {
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid rgba(184, 169, 255, 0.4);
    color: var(--lilac);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.plan-for { color: var(--muted); font-size: 14px; margin: 8px 0 0; min-height: 44px; }
.price { margin: 26px 0 24px; display: flex; align-items: baseline; gap: 6px; }
.price b { font-weight: 600; font-size: 44px; line-height: 1; letter-spacing: -0.04em; }
.price span { color: var(--dim); font-size: 14px; }
.plan ul { list-style: none; display: grid; gap: 11px; margin-bottom: 28px; font-size: 14px; color: var(--muted); }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.plan li svg { width: 16px; height: 16px; margin-top: 3px; color: var(--lilac); }
.plan .btn { margin-top: auto; }
@media (max-width: 1060px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } .plan-for { min-height: 0; } }

.note-box {
    margin-top: 22px;
    padding: 18px 20px;
    border-radius: var(--radius);
    border: 1px dashed var(--line-2);
    color: var(--muted);
    font-size: 14px;
}

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
th, td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
th { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); background: var(--bg-2); }
td { color: var(--muted); }
td:first-child { color: var(--text); }
tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 24px 0;
    cursor: pointer;
    font-size: clamp(17px, 1.6vw, 20px);
    font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "";
    flex: none;
    width: 12px; height: 12px;
    border-right: 1.5px solid var(--muted);
    border-bottom: 1.5px solid var(--muted);
    transform: rotate(45deg) translate(-3px, -3px);
    transition: transform 0.25s;
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq .answer { padding: 0 0 26px; color: var(--muted); max-width: 760px; }
.faq .answer p:last-child { margin: 0; }

/* ---------- CTA band ---------- */

.cta-band {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid var(--line);
    padding: clamp(48px, 8vw, 96px) clamp(24px, 6vw, 80px);
    text-align: center;
    background:
        radial-gradient(60% 80% at 50% 120%, rgba(124, 107, 255, 0.28), transparent 70%),
        radial-gradient(40% 60% at 85% -10%, rgba(239, 228, 212, 0.12), transparent 70%),
        var(--bg-2);
}
.cta-band .lead { margin: 22px auto 0; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Prose (articles, legal) ---------- */

.prose { max-width: 720px; font-size: 17px; line-height: 1.75; color: #d9d7d2; }
.prose h2 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin: 56px 0 18px; color: var(--text); }
.prose h3 { font-weight: 600; font-size: 19px; margin: 36px 0 12px; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--dim); }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 4px; }
.prose .callout {
    margin: 30px 0;
    padding: 20px 22px;
    border-left: 2px solid var(--lilac);
    background: var(--bg-2);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--muted);
    font-size: 16px;
}
.meta-line { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }

.layout-aside { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 1fr); gap: 64px; }
.aside-card {
    position: sticky; top: calc(var(--header-h) + 24px);
    align-self: start;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-2);
    font-size: 15px;
    color: var(--muted);
}
.aside-card h2 { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.aside-card .btn { margin-top: 16px; }
@media (max-width: 960px) { .layout-aside { grid-template-columns: 1fr; } .aside-card { position: static; } }

/* ---------- Blog list ---------- */

.posts { list-style: none; border-top: 1px solid var(--line); }
.posts li { border-bottom: 1px solid var(--line); }
.posts a {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) 40px;
    gap: 28px;
    align-items: center;
    padding: 34px 0;
    text-decoration: none;
}
.posts .mono { color: var(--dim); }
.posts h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; transition: color 0.2s; }
.posts p { margin: 10px 0 0; color: var(--muted); }
.posts svg { width: 22px; height: 22px; color: var(--muted); transition: transform 0.2s, color 0.2s; }
.posts a:hover h2 { color: var(--brand); }
.posts a:hover svg { transform: translateX(4px); color: var(--text); }
@media (max-width: 760px) {
    .posts a { grid-template-columns: 1fr; gap: 10px; }
    .posts svg { display: none; }
}

/* ---------- Forms ---------- */

.form-card {
    padding: clamp(24px, 4vw, 40px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--bg-2);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; }
.field label .opt { color: var(--dim); font-weight: 400; }
.field input, .field select, .field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--line-2);
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 40px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--lilac);
    box-shadow: 0 0 0 3px rgba(184, 169, 255, 0.18);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--err); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.form-foot .small { font-size: 13px; color: var(--dim); max-width: 420px; margin: 0; }
.form-status { margin-top: 18px; padding: 14px 16px; border-radius: 10px; font-size: 15px; display: none; }
.form-status.is-visible { display: block; }
.form-status.ok { background: rgba(143, 227, 176, 0.08); border: 1px solid rgba(143, 227, 176, 0.3); color: var(--ok); }
.form-status.info { background: rgba(255, 207, 138, 0.06); border: 1px solid rgba(255, 207, 138, 0.3); color: var(--warn); }
.form-status.error { background: rgba(255, 154, 154, 0.07); border: 1px solid rgba(255, 154, 154, 0.3); color: var(--err); }
.form-status a { color: inherit; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.contact-points { list-style: none; display: grid; gap: 22px; margin-top: 36px; }
.contact-points li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; color: var(--muted); font-size: 15px; }
.contact-points strong { display: block; color: var(--text); font-weight: 500; margin-bottom: 2px; }
.contact-points .icon {
    width: 40px; height: 40px; border-radius: 10px;
    border: 1px solid var(--line-2);
    display: grid; place-items: center; color: var(--lilac);
}
.contact-points .icon svg { width: 18px; height: 18px; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 72px 0 40px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-grid p { color: var(--muted); font-size: 14px; max-width: 320px; margin-top: 16px; }
.footer-grid h2 { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: var(--text); }
.footer-big {
    margin-top: 72px;
    font-family: var(--serif);
    font-size: clamp(64px, 16vw, 236px);
    line-height: 0.9;
    letter-spacing: -0.03em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.14);
    user-select: none;
    white-space: nowrap;
    overflow: hidden;
}
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
    margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line);
    font-size: 13px; color: var(--dim);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- 404 ---------- */

.notfound { min-height: 60vh; display: grid; align-content: center; }

/* ---------- Reveal (progressive: content is visible without JS) ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

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

@media print {
    .site-header, .site-footer, .hero::before, .sheet { display: none; }
    body { background: #fff; color: #000; }
}

/* ---------- Studio interface illustration ---------- */

.app { margin: 0; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--bg-2); overflow: hidden; }
.app-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.app-bar .dots { display: flex; gap: 6px; }
.app-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.14); }
.app-url { font-family: var(--mono); font-size: 12px; color: var(--dim); padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px; }
.app-body { display: grid; grid-template-columns: 210px minmax(0, 1fr); min-height: 420px; }
.app-side { border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 2px; }
.app-group { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); padding: 12px 10px 6px; }
.app-group:first-child { padding-top: 0; }
.app-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--muted); }
.app-item svg { width: 16px; height: 16px; }
.app-item.is-active { background: rgba(139, 123, 255, 0.12); color: var(--text); }
.app-item.is-active svg { color: var(--brand); }
.app-main { padding: 24px; }
.app-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.app-head strong { display: block; font-size: 18px; font-weight: 600; }
.app-head span { font-size: 13px; color: var(--muted); }
.app-head .pill { margin-left: auto; }
.avatar { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 15px; color: var(--text); background: radial-gradient(circle at 35% 30%, #4a4160, #1a1724); border: 1px solid var(--line-2); }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--bg); }
.card h3 { font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.kv { margin: 0; display: grid; gap: 10px; }
.kv div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; font-size: 13px; }
.kv dt { color: var(--dim); }
.kv dd { margin: 0; color: var(--text); }
.jobs { list-style: none; display: grid; gap: 14px; }
.jobs li { display: grid; grid-template-columns: minmax(0, 1fr) 90px auto; gap: 12px; align-items: center; font-size: 13px; }
.bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand); border-radius: inherit; }
.bar .w100 { width: 100%; } .bar .w65 { width: 65%; } .bar .w40 { width: 40%; } .bar .w0 { width: 0; }
.pill { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; border: 1px solid var(--line-2); color: var(--muted); }
.pill.ok { color: var(--ok); border-color: rgba(143, 227, 176, 0.35); }
.pill.run { color: var(--brand); border-color: rgba(139, 123, 255, 0.4); }
.card-note { margin: 16px 0 0; font-size: 12px; color: var(--dim); }
.app-caption { padding: 12px 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
@media (max-width: 960px) {
    .app-body { grid-template-columns: 1fr; }
    .app-side { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px; }
    .app-group { display: none; }
    .app-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .app-main { padding: 16px; }
    .app-head { flex-wrap: wrap; }
    .app-head .pill { margin-left: 0; }
    .kv div { grid-template-columns: 1fr; gap: 2px; }
    .jobs li { grid-template-columns: 1fr auto; }
    .jobs .bar { grid-column: 1 / -1; grid-row: 2; }
    .app-side .app-item:nth-child(n+7) { display: none; }
}

.avatar { object-fit: cover; object-position: center 25%; }

.uc { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.uc-flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.uc-flip .uc-media { order: 2; }
.uc-media { max-width: 440px; width: 100%; }
.uc-flip .uc-media { justify-self: end; }
.uc-text .lead { margin-bottom: 32px; }
.uc-photo { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); }
@media (max-width: 860px) {
    .uc, .uc-flip { grid-template-columns: 1fr; gap: 28px; }
    .uc-media { max-width: none; }
    .uc-flip .uc-media { order: 0; }
    .uc-photo { aspect-ratio: 4 / 3; object-fit: cover; object-position: center 25%; }
}
