/* Mageloom FX site. Near-black, warm text, lime for the one main action, amber and ember glows.
   Fonts are self-hosted (SIL OFL, licences in /assets/fonts/): IBM Plex Sans, the app's own UI face, and
   Cormorant Garamond for display headings. */
@font-face {
  font-family: "Plex Sans";
  src: url("/assets/fonts/plex-sans-latin.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant";
  src: url("/assets/fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallbacks keep the swap from shifting the layout. */
@font-face { font-family: "Plex Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 103%; ascent-override: 99%; descent-override: 26%; line-gap-override: 0%; }
@font-face { font-family: "Cormorant Fallback"; src: local("Georgia"), local("Times New Roman"); size-adjust: 88%; ascent-override: 102%; descent-override: 32%; line-gap-override: 0%; }

:root {
  --bg: #0b0b0b;
  --bg-2: #121110;
  --panel: #171513;
  --panel-2: #1d1a17;
  --line: #2b2723;
  --line-soft: #1f1c19;
  --text: #f1e9dc;
  --muted: #b9af9f;
  --dim: #8f8678;
  --signal: #d9ff4a;
  --signal-hover: #e6ff7c;
  --signal-ink: #141a00;
  --amber: #ffb03b;
  --amber-hi: #ffc970;
  --ember: #f48711;
  --flame: #ff5a1f;
  --radius: 8px;
  --radius-lg: 14px;
  --wrap: 1180px;
  --serif: "Cormorant", "Cormorant Fallback", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Plex Sans", "Plex Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --glow: 0 0 0 1px rgba(255, 176, 59, .08), 0 24px 60px -28px rgba(244, 135, 17, .45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.62 var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--amber-hi); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 3px; }
::selection { background: rgba(255, 176, 59, .35); color: #fff; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.005em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.9rem); line-height: 1.02; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
h3 { font: 600 1.15rem/1.3 var(--sans); letter-spacing: -.005em; }
p { margin: 0 0 1em; text-wrap: pretty; }
code, pre, kbd { font-family: var(--mono); font-size: .86em; }
code { background: #1d1a17; border: 1px solid var(--line); border-radius: 4px; padding: .05em .35em; }
pre { background: #0d0c0b; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; overflow-x: auto; line-height: 1.6; margin: 0 0 1.2em; }
pre code { background: none; border: 0; padding: 0; font-size: .85rem; }
pre .c { color: var(--dim); }
pre .p { color: var(--amber); user-select: none; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--signal); color: var(--signal-ink); padding: 8px 12px; z-index: 100; border-radius: 4px; }
.skip:focus { left: 8px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 .76rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--amber); margin: 0 0 16px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; transform: rotate(45deg); background: var(--ember); box-shadow: 0 0 10px 1px rgba(244, 135, 17, .7); flex: none; }
.glow-text { background: linear-gradient(100deg, var(--amber-hi) 0%, var(--ember) 45%, #ffd9a0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(11, 11, 11, .78); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid rgba(255, 176, 59, .1); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 1.32rem/1 var(--serif); letter-spacing: .01em; white-space: nowrap; }
.brand:hover { color: #fff; }
.brand img { width: 30px; height: 30px; border-radius: 7px; box-shadow: 0 0 18px -2px rgba(244, 135, 17, .55); }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: .92rem; position: relative; padding: 6px 0; }
.nav a:not(.cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav a:not(.cta):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .cta { color: var(--signal-ink); padding: 7px 14px; }
@media (max-width: 960px) { .nav .opt { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 20px; border-radius: var(--radius); font: 600 .95rem/1.2 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .2s, border-color .2s, box-shadow .2s, transform .2s; }
.btn-main { background: var(--signal); color: var(--signal-ink); box-shadow: 0 0 0 0 rgba(217, 255, 74, 0); }
.btn-main:hover { background: var(--signal-hover); color: var(--signal-ink); box-shadow: 0 0 28px -4px rgba(217, 255, 74, .55); }
.btn-ghost { border-color: #3d3731; color: var(--text); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: var(--amber); color: var(--text); background: rgba(255, 176, 59, .07); }
.btn[aria-disabled="true"] { opacity: .8; cursor: default; }
.btn:disabled { opacity: .4; cursor: default; box-shadow: none; }
.btn-soon { border-color: #3a3530; color: var(--muted); background: #141312; }
.btn-sm { min-height: 36px; padding: 7px 13px; font-size: .88rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Hero: the copy sits in the clip's empty black sky; the clip fades into the page at its edges. */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 56px 0 64px; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(50% 40% at 50% 0%, rgba(255, 176, 59, .10), transparent 70%),
    radial-gradient(45% 35% at 72% 72%, rgba(244, 135, 17, .20), transparent 70%),
    radial-gradient(30% 30% at 18% 70%, rgba(85, 156, 188, .08), transparent 70%); }
.hero-copy { position: relative; z-index: 2; text-align: center; max-width: 900px; margin: 0 auto; }
.hero-copy .eyebrow { justify-content: center; }
.hero-copy h1 { margin-bottom: .32em; text-shadow: 0 2px 30px rgba(0, 0, 0, .6); }
.hero-copy .lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 40em; margin: 0 auto 1.4em; }
.hero-copy .actions { justify-content: center; }
.hero-stage { position: relative; width: min(1400px, 100%); margin: -6.5% auto 0; z-index: 1; }
.hero-media { position: relative; aspect-ratio: 16 / 9; background: #000;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 26%, #000 82%, transparent 100%), linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, transparent 0%, #000 26%, #000 82%, transparent 100%), linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%); mask-composite: intersect; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.motion-toggle { position: absolute; right: max(16px, 9%); bottom: 20%; z-index: 3; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); background: rgba(11, 11, 11, .55); }
.embers { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.embers i { position: absolute; bottom: 12%; left: var(--x); width: var(--s, 3px); height: var(--s, 3px); border-radius: 50%; background: #ffcf7a; box-shadow: 0 0 6px 2px rgba(255, 140, 30, .75); opacity: 0; }
.facts { list-style: none; padding: 0; margin: -3% auto 0; position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); overflow: hidden; font-size: .92rem; color: var(--muted); }
.facts li { background: rgba(14, 13, 12, .92); padding: 16px 18px 16px 40px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 18px; top: 1.45em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--ember); box-shadow: 0 0 8px rgba(244, 135, 17, .8); }
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero-stage { margin-top: 8px; }
  .hero-media { -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%); }
  .motion-toggle { right: 12px; bottom: 10%; }
  .facts { grid-template-columns: 1fr 1fr; margin-top: 0; }
}
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .hero-copy .actions .btn { width: 100%; } .hero-copy .eyebrow { display: block; letter-spacing: .14em; line-height: 1.5; } .hero-copy .eyebrow::before { display: none; } }

/* Sections */
section { padding: 96px 0; position: relative; }
.sec-head { max-width: 46em; margin-bottom: 40px; }
.sec-head p { color: var(--muted); font-size: 1.07rem; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
/* Divider: a thin line that burns brighter in the middle, with a rune diamond. */
.rule { border: 0; height: 1px; margin: 0 auto; width: min(var(--wrap), 100% - 32px); overflow: visible; position: relative;
  background: linear-gradient(90deg, transparent, rgba(255, 176, 59, .28) 30%, rgba(244, 135, 17, .55) 50%, rgba(255, 176, 59, .28) 70%, transparent); }
.rule::after { content: ""; position: absolute; left: 50%; top: -4px; width: 9px; height: 9px; transform: translateX(-50%) rotate(45deg); background: var(--bg); border: 1px solid var(--ember); box-shadow: 0 0 12px rgba(244, 135, 17, .6); }
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.split.rev { grid-template-columns: 1.25fr 1fr; }
.split.rev > :first-child { order: 2; }
@media (max-width: 860px) { .split, .split.rev { grid-template-columns: 1fr; gap: 32px; } .split.rev > :first-child { order: 0; } }
.shot { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid #2a2520; background: #080808; box-shadow: var(--glow); }
.shot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px 0 rgba(255, 220, 170, .08); }
figure { margin: 0; }
figcaption { font-size: .86rem; color: var(--dim); margin-top: 12px; }
ul.points { padding: 0; list-style: none; color: var(--muted); margin: 0 0 1em; }
ul.points li { margin-bottom: .7em; padding-left: 22px; position: relative; }
ul.points li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 6px; height: 6px; transform: rotate(45deg); border: 1px solid var(--amber); }
ul.points strong { color: var(--text); font-weight: 600; }

/* Families */
.families { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.families figure { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid #26221e; background: #050505; transition: border-color .3s, box-shadow .3s, transform .3s; }
.families figure:hover { border-color: rgba(255, 176, 59, .45); box-shadow: 0 16px 40px -20px rgba(244, 135, 17, .6); transform: translateY(-2px); }
.families img { transition: transform .6s ease; }
.families figure:hover img { transform: scale(1.04); }
.families figcaption { position: absolute; left: 10px; bottom: 10px; margin: 0; color: var(--text); font-size: .8rem; font-weight: 600; letter-spacing: .02em; background: rgba(8, 8, 8, .72); border: 1px solid rgba(255, 255, 255, .08); border-radius: 99px; padding: 3px 10px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.counts { display: flex; flex-wrap: wrap; gap: 28px 48px; margin: 36px 0 18px; }
.counts div { display: flex; align-items: baseline; gap: 10px; color: var(--muted); font-size: .95rem; }
.counts b { font: 600 2.6rem/1 var(--serif); color: var(--text); }
.counts-note { color: var(--dim); font-size: .9rem; margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; padding: 0; list-style: none; }
.tags li { font-size: .8rem; color: var(--muted); border: 1px solid #2f2a25; background: rgba(255, 255, 255, .02); border-radius: 99px; padding: 4px 11px; }
@media (max-width: 700px) { .families { grid-template-columns: repeat(2, 1fr); gap: 8px; } .families figcaption { left: 6px; bottom: 6px; font-size: .72rem; padding: 2px 8px; } }

/* Looks */
.looks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.look { position: relative; background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid #26221e; border-radius: var(--radius-lg); padding: 22px; overflow: hidden; }
.look::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--accent, var(--amber)); box-shadow: 0 0 18px 2px var(--accent, var(--amber)); opacity: .8; }
.look:nth-child(1) { --accent: #ffd27a; }
.look:nth-child(2) { --accent: var(--ember); }
.look:nth-child(3) { --accent: #e0612a; }
.look h3 { font: 600 1.9rem/1.1 var(--serif); margin-bottom: 4px; }
.look p { color: var(--muted); font-size: .94rem; min-height: 4.8em; }
.look img { border-radius: 6px; background: #090a0b; margin-top: 8px; }
.look .mix { font: .8rem var(--mono); color: var(--dim); min-height: 0; }
@media (max-width: 860px) { .looks { grid-template-columns: 1fr; } .look p { min-height: 0; } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0 0 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 40px; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 176, 59, .5), transparent); z-index: 0; }
.steps li { position: relative; z-index: 1; background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid #26221e; border-radius: var(--radius-lg); padding: 22px; counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--amber); background: #120d08; color: var(--amber-hi); font: 600 1.3rem/1 var(--serif); margin-bottom: 14px; box-shadow: 0 0 18px -2px rgba(244, 135, 17, .6); }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .steps::before { display: none; } }

/* Agents */
.term { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid #2a2520; background: #0d0c0b; box-shadow: var(--glow); }
.term-bar { display: flex; gap: 7px; align-items: center; padding: 11px 14px; border-bottom: 1px solid #221e1a; background: #131110; }
.term-bar span { width: 10px; height: 10px; border-radius: 50%; background: #2e2924; }
.term-bar em { margin-left: 8px; font: normal .78rem var(--mono); color: var(--dim); }
.term pre { border: 0; border-radius: 0; margin: 0; background: none; }

/* Perf */
.budget { display: grid; grid-template-columns: 334px 1fr; gap: 56px; align-items: start; }
.budget .shot { max-width: 334px; }
dl.rows { display: grid; grid-template-columns: auto 1fr; gap: 0 20px; margin: 0 0 1.2em; border-top: 1px solid var(--line-soft); }
dl.rows dt, dl.rows dd { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
dl.rows dt { color: var(--amber); font: 600 .78rem/1.9 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
dl.rows dd { margin: 0; }
@media (max-width: 760px) { .budget { grid-template-columns: 1fr; } .budget .shot { margin-inline: auto; } }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price { position: relative; background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid #26221e; border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.price.feature { border-color: rgba(255, 176, 59, .45); background: radial-gradient(120% 60% at 50% 0%, rgba(244, 135, 17, .16), transparent 70%), var(--bg-2); box-shadow: 0 30px 70px -34px rgba(244, 135, 17, .7); }
.price.feature::before { content: "Founder price"; position: absolute; top: -12px; left: 24px; font: 600 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #1a0f00; background: linear-gradient(90deg, var(--amber-hi), var(--ember)); padding: 6px 10px; border-radius: 99px; }
.price h3 { font: 600 1.7rem/1.1 var(--serif); margin: 0; }
.price .amount { font: 600 3rem/1 var(--serif); }
.price .amount small { font: 400 .9rem var(--sans); color: var(--muted); }
.price ul { padding-left: 1.1em; margin: 0; color: var(--muted); font-size: .94rem; flex: 1; }
.price li { margin-bottom: .3em; }
.price li::marker { color: var(--ember); }
.price .btn { justify-content: center; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; gap: 26px; } }

/* FAQ */
.faq h2 { text-align: center; margin-bottom: 32px; }
.faq details { border: 1px solid var(--line-soft); background: var(--bg-2); border-radius: var(--radius); margin-bottom: 10px; padding: 0 20px; transition: border-color .2s; }
.faq details[open] { border-color: rgba(255, 176, 59, .3); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font: 400 1.4rem var(--mono); color: var(--amber); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); }

/* Closing call */
.closer { text-align: center; padding: 110px 0 120px; overflow: hidden; isolation: isolate; }
.closer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(45% 60% at 50% 100%, rgba(244, 135, 17, .22), transparent 70%); }
.closer h2 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
.closer p { color: var(--muted); max-width: 34em; margin-inline: auto; }
.closer .actions { justify-content: center; margin-top: 26px; }

/* Docs pages */
.doc { padding: 64px 0 96px; position: relative; isolation: isolate; }
.doc::before { content: ""; position: absolute; inset: 0 0 auto; height: 420px; z-index: -1; background: radial-gradient(50% 70% at 50% 0%, rgba(244, 135, 17, .12), transparent 70%); }
.doc h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.doc h2 { margin-top: 1.6em; font-size: clamp(1.8rem, 3.4vw, 2.3rem); }
.doc h3 { margin-top: 1.4em; }
.doc li { margin-bottom: .35em; }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .94rem; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #221f1c; vertical-align: top; }
.doc th { color: var(--muted); font-weight: 600; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gallery a { display: block; color: var(--muted); text-decoration: none; font-size: .88rem; }
.gallery img { border-radius: 8px; border: 1px solid #24211e; margin-bottom: 6px; }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } }

/* Community gallery (/gallery) */
.cg-head { text-align: center; max-width: 44em; margin: 0 auto 40px; }
.cg-head .eyebrow { justify-content: center; }
.cg-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.cg-card { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid #26221e; border-radius: var(--radius-lg); overflow: hidden; transition: border-color .3s, box-shadow .3s, transform .3s; }
.cg-card:hover { border-color: rgba(255, 176, 59, .45); box-shadow: 0 16px 40px -20px rgba(244, 135, 17, .6); transform: translateY(-2px); }
.cg-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #050505; }
.cg-card div { padding: 14px 16px 16px; }
.cg-card h2 { font: 600 1.3rem/1.2 var(--serif); margin: 0 0 4px; overflow-wrap: anywhere; }
.cg-card p { margin: 0; color: var(--dim); font-size: .86rem; overflow-wrap: anywhere; }
.cg-card .cg-badge { display: inline-block; margin: 0 0 8px; font: 600 .68rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #1a0f00; background: linear-gradient(90deg, var(--amber-hi), var(--ember)); padding: 5px 9px; border-radius: 99px; }
.cg-empty {text-align: center; max-width: 40em; margin: 0 auto; padding: 56px 24px; border: 1px dashed rgba(255, 176, 59, .3); border-radius: var(--radius-lg); background: radial-gradient(60% 80% at 50% 0%, rgba(244, 135, 17, .1), transparent 70%), var(--bg-2); }
.cg-empty .sigil { width: 72px; height: 72px; margin: 0 auto 18px; }
.cg-empty h2 { margin: 0 0 .3em; }
.cg-empty ol { text-align: left; display: inline-block; color: var(--muted); margin: 10px 0 0; padding-left: 1.3em; }
.cg-empty li { margin-bottom: .4em; }
.cg-empty li::marker { color: var(--amber); font-weight: 600; }

/* Footer */
footer { border-top: 1px solid var(--line-soft); padding: 44px 0 56px; color: var(--dim); font-size: .9rem; background: linear-gradient(180deg, transparent, rgba(244, 135, 17, .03)); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

@media (max-width: 600px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .top .wrap { gap: 10px; }
  .nav { gap: 14px; }
  .nav a { font-size: .88rem; }
  .brand { font-size: 1.18rem; gap: 8px; }
  .brand img { width: 26px; height: 26px; }
  .counts { gap: 18px 28px; }
  .counts b { font-size: 2.1rem; }
}
@media (max-width: 380px) { .nav .opt-sm { display: none; } }

/* Motion. All of it is decoration, and all of it stops for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .embers i { animation: rise var(--d, 7s) linear var(--delay, 0s) infinite; }
  .rv { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
  .rv.in { opacity: 1; transform: none; }
  .price.feature { animation: breathe 5s ease-in-out infinite; }
}
@keyframes rise {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  10% { opacity: .9; }
  60% { opacity: .6; }
  100% { transform: translate(var(--drift, 20px), -420px) scale(.3); opacity: 0; }
}
@keyframes breathe {
  0%, 100% { box-shadow: 0 30px 70px -34px rgba(244, 135, 17, .55); }
  50% { box-shadow: 0 30px 80px -28px rgba(244, 135, 17, .85); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .families figure:hover, .families figure:hover img, .cg-card:hover { transform: none; }
}

/* Grid children may shrink below their content (long code lines scroll inside their pre). */
.split > *, .budget > *, .looks > *, .pricing > *, .steps > *, .cg-grid > * { min-width: 0; }
.doc p, .doc li { overflow-wrap: anywhere; }
.legal .draft { border-left: 3px solid var(--amber); background: #19140e; padding: 10px 14px; border-radius: 0 6px 6px 0; }
.legal h1 { font-size: clamp(2.2rem, 4.6vw, 3.2rem); }
