/* belvista.app: the builder's own interface. Same language as belvistadigital.com:
   dark navy, the blue B, mono labels, a living background. */
:root {
  --bg: #080B12; --bg-2: #0C111B; --panel: #0F1522; --panel-2: #131A2A;
  --ink: #F2F4F8; --muted: #9AA3B5; --dim: #5C6578;
  --blue: #3558F5; --blue-2: #5373FF; --blue-soft: rgba(53, 88, 245, 0.16);
  --ok: #3DDC97; --warn: #F5B53F;
  --line: rgba(242, 244, 248, 0.10); --line-2: rgba(242, 244, 248, 0.18);
  --sans: "Inter", -apple-system, "SF Pro Text", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
  --wrap: 1120px; --r: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100svh; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: rgba(53, 88, 245, 0.45); }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 12px; }
.label::before { content: ""; width: 7px; height: 7px; background: var(--blue-2); flex: none; }
.accent > span { background: linear-gradient(100deg, #8FA6FF 0%, #5373FF 50%, #B8C6FF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* living background */
.welcome-bg { position: fixed; inset: 0; z-index: -10; overflow: hidden; pointer-events: none; background: #06080E; }
.wb-glow { position: absolute; width: 72vmax; height: 52vmax; animation: wb-x var(--tx) ease-in-out infinite alternate; animation-delay: var(--dx, 0s); }
.wb-glow > span { display: block; width: 100%; height: 100%; background: radial-gradient(closest-side, var(--c), transparent); animation: wb-y var(--ty) ease-in-out infinite alternate; animation-delay: var(--dy2, 0s); }
@keyframes wb-x { from { transform: translate3d(calc(-1 * var(--ax)), 0, 0); } to { transform: translate3d(var(--ax), 0, 0); } }
@keyframes wb-y { from { transform: translate3d(0, calc(-1 * var(--ay)), 0) scale(0.92); } to { transform: translate3d(0, var(--ay), 0) scale(1.12); } }
.wb-navy { left: -18vmax; top: -16vmax; width: 82vmax; height: 60vmax; --c: rgba(36, 70, 220, 0.55); --ax: 22vw; --ay: 18vh; --tx: 17s; --ty: 21s; --dx: -7s; }
.wb-blue { right: -20vmax; top: 4vh; width: 80vmax; height: 58vmax; --c: rgba(70, 110, 255, 0.45); --ax: 26vw; --ay: 24vh; --tx: 22s; --ty: 15s; --dy2: -9s; }
.wb-midnight { left: 10vw; bottom: -24vmax; --c: rgba(28, 44, 150, 0.65); --ax: 28vw; --ay: 16vh; --tx: 27s; --ty: 19s; --dx: -15s; }
.wb-slate { left: 24vw; top: 18vh; width: 58vmax; height: 44vmax; --c: rgba(120, 132, 160, 0.26); --ax: 30vw; --ay: 26vh; --tx: 20s; --ty: 25s; --dx: -4s; --dy2: -18s; }
.wb-dots { position: absolute; inset: 0; -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 78%); mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 78%); }
.wb-dots i { position: absolute; top: -26px; left: -26px; right: 0; bottom: 0; background-size: 26px 26px; background-image: radial-gradient(circle, rgba(226, 232, 248, 0.15) 1px, transparent 1.6px); animation: wb-drift 9s linear infinite; }
@keyframes wb-drift { to { transform: translate3d(26px, 26px, 0); } }
@media (prefers-reduced-motion: reduce) { .wb-glow, .wb-glow > span, .wb-dots i { animation: none; } }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(8, 11, 18, 0.72); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid var(--line); }
.top .wrap { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { height: 22px; width: auto; }
.brand .mark { height: 30px; }
.brand .app { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--blue-2); border: 1px solid rgba(83, 115, 255, 0.4); padding: 2px 7px; border-radius: 6px; margin-left: 2px; }
.top nav { display: flex; gap: 28px; font-size: 14.5px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--ink); }
.top .end { display: flex; align-items: center; gap: 14px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap; text-decoration: none; font-size: 15px; font-weight: 600; padding: 13px 22px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; background: transparent; transition: background .2s, border-color .2s, transform .15s, opacity .2s; }
.btn:active { transform: translateY(1px); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-2); }
.btn-line { border-color: var(--line-2); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-ghost { color: var(--muted); padding: 10px 12px; }
.btn-ghost:hover { color: var(--ink); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn .arrow { width: 16px; height: 16px; }

/* landing hero */
.hero { padding: clamp(56px, 9vw, 120px) 0 56px; text-align: center; }
.hero h1 { font-size: clamp(36px, 6vw, 74px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; max-width: 14em; margin: 22px auto 0; text-wrap: balance; }
.hero .sub { margin: 22px auto 0; font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 36em; text-wrap: pretty; }
.composer { margin: 40px auto 0; max-width: 760px; text-align: left; background: rgba(15, 21, 34, 0.86); border: 1px solid var(--line-2); border-radius: 20px; padding: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255,255,255,0.04); position: relative; }
.composer:focus-within { border-color: rgba(83, 115, 255, 0.7); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(53, 88, 245, 0.18); }
.composer textarea { display: block; width: 100%; min-height: 128px; max-height: 50vh; resize: none; background: transparent; border: 0; outline: 0; padding: 16px 16px 8px; font-size: 17px; line-height: 1.55; color: var(--ink); }
.composer textarea::placeholder { color: var(--dim); }
.composer .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 6px 6px 16px; flex-wrap: wrap; }
.composer .hint { font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: 0.04em; }
.composer .err { color: #FF8A8A; font-size: 13.5px; padding: 0 16px 10px; display: none; }
.examples { margin: 18px auto 0; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.examples button { font-size: 13px; color: var(--muted); background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; cursor: pointer; }
.examples button:hover { color: var(--ink); border-color: var(--line-2); }
.fine { margin-top: 22px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--dim); text-transform: uppercase; }
.fine b { color: var(--muted); font-weight: 500; }

/* sections */
section.s { padding: 88px 0; }
.s h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; margin-top: 14px; max-width: 16em; text-wrap: balance; }
.s .lede { margin-top: 16px; color: var(--muted); max-width: 36em; font-size: 17px; }
.steps { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: rgba(15, 21, 34, 0.7); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 26px 28px; }
.step i { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--blue-2); letter-spacing: 0.1em; }
.step h3 { margin-top: 14px; font-size: 20px; letter-spacing: -0.015em; font-weight: 600; }
.step p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.demo { margin-top: 44px; border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; background: #0A0E17; box-shadow: 0 40px 100px rgba(0,0,0,.5); }
.demo .chrome { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--dim); }
.demo .chrome b { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); display: inline-block; }
.demo .chrome span { margin-left: auto; }
.demo iframe { width: 100%; height: min(70vh, 640px); border: 0; background: #fff; }
.price { margin-top: 44px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
.card { background: rgba(15, 21, 34, 0.8); border: 1px solid var(--line); border-radius: 18px; padding: 32px; }
.card.main { border-color: rgba(83, 115, 255, 0.5); background: linear-gradient(180deg, rgba(53,88,245,0.12), rgba(15,21,34,0.8) 40%); }
.card .big { font-size: clamp(40px, 5vw, 60px); line-height: 1; letter-spacing: -0.04em; font-weight: 600; margin-top: 14px; }
.card .big small { font-size: 16px; color: var(--muted); letter-spacing: 0; font-weight: 500; margin-left: 6px; }
.card .alt { margin-top: 8px; color: var(--muted); font-size: 15px; }
.card ul { list-style: none; margin-top: 22px; display: grid; gap: 10px; font-size: 15px; }
.card li { display: flex; gap: 10px; align-items: flex-start; }
.card li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 4px; border-radius: 50%; background: var(--blue-soft); border: 1px solid rgba(83,115,255,.5); }
.card .btn { margin-top: 26px; }
.card h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.card p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.faq { margin-top: 36px; border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--dim); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); padding: 0 0 20px; font-size: 15.5px; max-width: 42em; }
footer.ft { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 13.5px; color: var(--dim); }
footer.ft .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.ft a { text-decoration: none; color: var(--muted); }
footer.ft nav { display: flex; gap: 20px; }

@media (max-width: 860px) {
  .wrap { padding: 0 20px; }
  .top nav, .top .btn-ghost { display: none; }
  .brand img { height: 18px; } .brand .mark { height: 26px; }
  .composer .hint { display: none; }
  .composer textarea { overflow: hidden; }
  .steps, .price { grid-template-columns: 1fr; }
  section.s { padding: 64px 0; }
  .composer textarea { min-height: 112px; font-size: 16px; }
  .composer .row { padding: 4px 4px 4px 12px; }
  .composer .row .btn { flex: 1; }
  .hero { padding-top: 48px; }
}

/* ---------------------------------------------------------------- build page */
.build { height: 100svh; display: grid; grid-template-rows: 60px 1fr; }
.build .top { position: static; }
.build .top .wrap { height: 60px; max-width: none; padding: 0 18px; }
.stage { display: grid; grid-template-columns: 380px 1fr; min-height: 0; }
.side { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: rgba(8, 11, 18, 0.6); }
.side-h { padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.side-h .name { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.side-h .tag { color: var(--muted); font-size: 13px; margin-top: 3px; }
.log { padding: 18px 20px; overflow: auto; flex: 1; font-family: var(--mono); font-size: 13px; line-height: 1.6; }
.log .ln { display: flex; gap: 12px; color: var(--muted); animation: ln-in .5s ease both; }
.log .ln i { font-style: normal; color: var(--dim); flex: none; width: 46px; }
.log .ln.now { color: var(--ink); }
.log .ln.now::after { content: ""; width: 6px; height: 14px; background: var(--blue-2); margin-left: 4px; animation: blink 1s steps(2) infinite; align-self: center; }
@keyframes ln-in { from { opacity: 0; transform: translateY(4px); } }
@keyframes blink { 50% { opacity: 0; } }
.log .elapsed { margin-top: 14px; color: var(--dim); }
.chat { display: none; flex-direction: column; min-height: 0; flex: 1; }
.msgs { flex: 1; overflow: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.m { max-width: 92%; padding: 11px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; }
.m.user { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.m.bot { align-self: flex-start; background: var(--panel-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.m.note { align-self: stretch; max-width: none; background: transparent; border: 1px dashed var(--line-2); color: var(--muted); font-size: 13.5px; }
.m.note b { color: var(--ink); font-weight: 600; display: block; margin-bottom: 6px; }
.m.note ul { padding-left: 18px; display: grid; gap: 4px; }
.m.busy { color: var(--muted); font-family: var(--mono); font-size: 12.5px; background: transparent; border: 0; padding: 4px 2px; }
.chat form { border-top: 1px solid var(--line); padding: 12px; display: flex; gap: 8px; align-items: flex-end; }
.chat textarea { flex: 1; resize: none; min-height: 44px; max-height: 160px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 13px; font-size: 15px; line-height: 1.4; outline: 0; }
.chat textarea:focus { border-color: var(--blue-2); }
.chat .send { width: 44px; height: 44px; border-radius: 12px; background: var(--blue); border: 0; display: grid; place-items: center; cursor: pointer; color: #fff; flex: none; }
.chat .send[disabled] { opacity: .5; }
.chips { padding: 0 12px 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { font-size: 12.5px; color: var(--muted); background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; cursor: pointer; }
.chips button:hover { color: var(--ink); }
.view { display: flex; flex-direction: column; min-height: 0; background: #05070C; }
.view-bar { height: 50px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs button { font-size: 13.5px; color: var(--muted); background: transparent; border: 0; padding: 8px 12px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.tabs button.on { color: var(--ink); background: rgba(255,255,255,0.07); }
.view-bar .sp { flex: 1; }
.dev { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.dev button { background: transparent; border: 0; color: var(--muted); padding: 7px 10px; cursor: pointer; display: grid; place-items: center; }
.dev button.on { color: var(--ink); background: rgba(255,255,255,0.08); }
.dev svg { width: 16px; height: 16px; }
.view-bar .btn { padding: 8px 14px; font-size: 13.5px; }
.frame { flex: 1; min-height: 0; display: grid; place-items: center; padding: 16px; position: relative; overflow: hidden; }
.frame iframe { width: 100%; height: 100%; border: 0; background: #fff; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); transition: width .3s ease, height .3s ease; }
.frame.phone iframe { width: 390px; height: min(100%, 844px); border-radius: 32px; border: 8px solid #1a1f2b; }
.frame .wait { position: absolute; inset: 16px; display: grid; place-items: center; background: linear-gradient(180deg, #0A0E17, #0F1522); border-radius: 10px; border: 1px solid var(--line); text-align: center; padding: 24px; }
.frame .wait .sk { width: min(560px, 80%); display: grid; gap: 14px; }
.sk b { display: block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.12), rgba(255,255,255,.05)); background-size: 200% 100%; animation: sk 1.6s linear infinite; }
.sk b.t { height: 40px; width: 70%; } .sk b.p { width: 90%; } .sk b.q { width: 60%; } .sk b.i { height: 220px; margin-top: 10px; }
@keyframes sk { to { background-position: -200% 0; } }
.frame .wait p { color: var(--muted); font-size: 14px; margin-top: 18px; }
.frame .wait .err { color: #FF8A8A; }
.mobile-bar { display: none; }

/* publish sheet */
.sheet-bg { position: fixed; inset: 0; background: rgba(4, 6, 10, 0.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); z-index: 50; display: none; align-items: center; justify-content: center; padding: 20px; }
.sheet-bg.on { display: flex; }
.sheet { width: min(520px, 100%); background: var(--panel); border: 1px solid var(--line-2); border-radius: 20px; padding: 28px; box-shadow: 0 40px 100px rgba(0,0,0,.6); max-height: 90svh; overflow: auto; }
.sheet h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.025em; }
.sheet p { color: var(--muted); margin-top: 10px; font-size: 15px; }
.sheet .plans { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet .plan { border: 1px solid var(--line-2); border-radius: 14px; padding: 16px; cursor: pointer; background: transparent; text-align: left; color: var(--ink); }
.sheet .plan.on { border-color: var(--blue-2); background: var(--blue-soft); }
.sheet .plan b { display: block; font-size: 22px; letter-spacing: -0.03em; }
.sheet .plan span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.sheet .plan em { display: inline-block; font-style: normal; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ok); margin-top: 8px; }
.sheet ul { list-style: none; margin-top: 18px; display: grid; gap: 8px; font-size: 14.5px; color: var(--muted); }
.sheet li::before { content: "— "; color: var(--dim); }
.sheet .fld { margin-top: 18px; display: grid; gap: 6px; }
.sheet .fld label { font-size: 13px; color: var(--muted); }
.sheet input { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 13px; font-size: 16px; outline: 0; width: 100%; }
.sheet input:focus { border-color: var(--blue-2); }
.sheet .pref { display: flex; align-items: center; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.sheet .pref input { border: 0; background: transparent; flex: 1; min-width: 0; }
.sheet .pref span { font-family: var(--mono); font-size: 13px; color: var(--dim); padding: 0 12px; white-space: nowrap; border-left: 1px solid var(--line); align-self: stretch; display: flex; align-items: center; }
.sheet .acts { margin-top: 22px; display: flex; gap: 10px; justify-content: flex-end; }
.sheet .msg { margin-top: 12px; font-size: 13.5px; color: var(--warn); min-height: 1em; }

@media (max-width: 900px) {
  .build { grid-template-rows: 56px 1fr; }
  .build .top .wrap { height: 56px; padding: 0 14px; }
  .stage { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .side { border-right: 0; order: 2; position: fixed; left: 0; right: 0; bottom: 0; top: auto; height: 72svh; z-index: 40; background: var(--bg); border-top: 1px solid var(--line-2); border-radius: 18px 18px 0 0; transform: translateY(100%); transition: transform .3s ease; }
  .side.open, .side.building { transform: none; }
  .side.building { top: 56px; height: auto; border-radius: 0; }
  .view-bar { gap: 6px; padding: 0 10px; }
  .view-bar .dev, .view-bar .open-new { display: none; }
  .frame { padding: 0; }
  .frame iframe, .frame.phone iframe { width: 100%; height: 100%; border-radius: 0; border: 0; }
  .mobile-bar { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(8, 11, 18, 0.9); }
  .mobile-bar .btn { flex: 1; padding: 12px 16px; }
  .side-h .close { display: inline-flex; }
}
.side-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.side-h .close { display: none; background: transparent; border: 1px solid var(--line-2); color: var(--muted); border-radius: 50%; width: 32px; height: 32px; place-items: center; cursor: pointer; }

/* domain search in the publish sheet */
.sheet .opt { color: var(--dim); font-weight: 400; }
.dom-results { display: grid; gap: 6px; margin-top: 8px; }
.dom-results:empty { display: none; }
.dom-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); cursor: pointer; text-align: left; color: var(--ink); font: inherit; width: 100%; }
.dom-row:hover { border-color: var(--line-2); }
.dom-row b { font-weight: 500; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dom-row span { font-family: var(--mono); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.dom-row .inc { color: var(--ok); }
.dom-row.taken { cursor: default; opacity: .6; }
.dom-row.taken span { color: #FF8A8A; }
.dom-status { font-family: var(--mono); font-size: 12px; color: var(--dim); padding: 6px 2px 0; }
.dom-picked:empty { display: none; }
.dom-picked { margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid rgba(83,115,255,.6); background: var(--blue-soft); border-radius: 10px; font-size: 14.5px; }
.dom-picked button { background: transparent; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; text-decoration: underline; }
.total { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.total b { color: var(--ink); font-weight: 600; }
.total:empty { display: none; }

/* ---------------------------------------------------------------- opening
   Ported from belvistadigital.com (build.py hero_logo / site.css): the B is
   built like a blueprint, fills as halftone, swells, settles, glides left as
   "Bel" then "vista" appear; then the words arrive and the composer comes
   into focus. Plays once per visit; see intro.js. */
.hl-bg { opacity: 0; animation: hl-bg-in 1.3s 4.3s ease forwards; }
@keyframes hl-bg-in { to { opacity: 1; } }
.hero-intro { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; min-height: calc(100svh - 68px); padding: 40px 16px 56px; text-align: center; overflow-x: clip; }
.hero-logo { --h: 70px; --gap: calc(var(--h) * 0.24); --wh: calc(var(--h) * 0.6); --ww: calc(var(--wh) * 4.082); --s0: 1.9; --dy: 17svh; display: flex; align-items: center; justify-content: center; height: calc(var(--h) * 1.12); }
@media (min-width: 640px) { .hero-logo { --h: 100px; --dy: min(22svh, 210px); } }
@media (min-width: 1024px) { .hero-logo { --h: 120px; --s0: 2; --dy: min(13svh, 130px); } }
.hero-logo .mark { position: relative; z-index: 2; width: calc(var(--h) * 0.74); height: var(--h); flex-shrink: 0; overflow: visible; animation: hl-push 1.27s 2.2s both; }
.hero-logo .guides { animation: hl-off 0.45s 1.75s ease forwards; }
.hero-logo .grid { opacity: 0; animation: hl-grid 0.7s ease-out forwards; }
@keyframes hl-grid { to { opacity: 0.24; } }
.hero-logo .cross { stroke: #8FA6FF; stroke-opacity: 0.5; stroke-width: 2.2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: hl-draw 0.7s 0.1s cubic-bezier(0.3, 0.7, 0.3, 1) forwards; }
.hero-logo .hair { fill: none; stroke: #DCE3FA; stroke-opacity: 0.6; stroke-width: 2.4; stroke-dasharray: 1; stroke-dashoffset: 1; animation: hl-draw 0.8s cubic-bezier(0.55, 0, 0.3, 1) forwards; }
.hero-logo .solid { opacity: 0; animation: hl-on 0.2s 1.95s ease forwards; }
@keyframes hl-draw { to { stroke-dashoffset: 0; } }
@keyframes hl-on { to { opacity: 1; } }
@keyframes hl-off { to { opacity: 0; } }
@keyframes hl-push {
  0% { transform: translateY(var(--dy)) scale(var(--s0)); animation-timing-function: cubic-bezier(0.25, 0.75, 0.3, 1); }
  52% { transform: translateY(var(--dy)) scale(calc(var(--s0) * 1.42)); animation-timing-function: cubic-bezier(0.6, 0, 0.25, 1); }
  100% { transform: none; }
}
.hero-logo .word { position: relative; z-index: 1; width: 0; height: var(--wh); flex-shrink: 0; animation: hl-open 1.1s 3.21s cubic-bezier(0.5, 0, 0.1, 1) forwards; }
@keyframes hl-open { to { width: calc(var(--gap) + var(--ww)); } }
.hero-logo .wordmark { position: absolute; top: 0; left: var(--gap); height: 100%; width: var(--ww); max-width: none; opacity: 0; animation: hl-pop 0.13s ease-out forwards; }
.hero-logo .w1 { clip-path: inset(0 59.6% 0 0); animation-delay: 3.5s; }
.hero-logo .w2 { clip-path: inset(0 0 0 40.4%); animation-delay: 3.64s; }
@keyframes hl-pop { to { opacity: 1; } }
.hero-intro .h-title { font-size: clamp(34px, 5.2vw, 66px); line-height: 1.06; letter-spacing: -0.03em; max-width: 18em; font-weight: 600; margin: 0; }
.h-title br.m { display: none; }
@media (max-width: 560px) { .h-title br.m { display: inline; } }
.hero-intro .h-sub { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 34em; margin: 0; }
.hero-intro .composer { margin-top: 10px; width: 100%; }
.hero-intro .examples { margin-top: 0; }
.pills { list-style: none; display: flex; flex-wrap: nowrap; justify-content: center; gap: 8px; margin-top: 6px; }
@media (max-width: 720px) { .pills { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 380px; } .pills li { justify-content: center; font-size: 12px; padding: 7px 10px; } }
.pills li { display: flex; align-items: center; gap: 8px; white-space: nowrap; border: 1px solid var(--line-2); background: rgba(15, 21, 34, 0.6); border-radius: 999px; padding: 7px 14px; font-size: 13px; color: var(--ink); }
.pills li span { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-2); }
.hl-say > span { display: inline-block; opacity: 0; transform: translateY(0.18em); filter: blur(3px); animation: hl-say 0.42s cubic-bezier(0.25, 0.7, 0.2, 1) forwards; }
@keyframes hl-say { 60% { opacity: 0.55; filter: blur(0); } 100% { opacity: 1; transform: none; filter: none; } }
.hl-pale > span { animation-name: hl-say-pale; animation-duration: 0.85s; }
@keyframes hl-say-pale { 35% { opacity: 0.4; filter: blur(0); transform: none; } 100% { opacity: 1; transform: none; filter: none; } }
.hl-focus { opacity: 0; filter: blur(14px); transform: scale(0.94); animation: hl-focus 0.5s cubic-bezier(0.25, 0.7, 0.2, 1) forwards; }
@keyframes hl-focus { 40% { opacity: 1; } 100% { opacity: 1; filter: none; transform: none; } }
/* The header bar: a hairline of light draws across, the bar opens from it, items come up, a sweep crosses once. */
body.intro { background-color: #000; animation: wi-page 1.4s 4.3s ease forwards; }
@keyframes wi-page { to { background-color: var(--bg); } }
body.intro .top { overflow: hidden; background-color: #000; clip-path: inset(calc(50% - 1px) 0 calc(50% - 1px) 0); animation: wi-bar 0.55s 4.75s cubic-bezier(0.3, 0.7, 0.2, 1) forwards; }
@keyframes wi-bar { to { clip-path: inset(0 0 0 0); background-color: rgba(8, 11, 18, 0.72); } }
body.intro .top::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; z-index: 2; pointer-events: none; background: linear-gradient(90deg, transparent, #5373FF 20%, #DCE3FA 50%, #5373FF 80%, transparent); box-shadow: 0 0 12px 1px rgba(83, 115, 255, 0.7); transform: scaleX(0); animation: wi-line 0.5s 4.3s cubic-bezier(0.5, 0, 0.2, 1) forwards, wi-line-out 0.45s 5.05s ease forwards; }
@keyframes wi-line { to { transform: scaleX(1); } }
@keyframes wi-line-out { to { opacity: 0; } }
body.intro .top::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(100deg, transparent 30%, rgba(220, 228, 255, 0.12) 48%, rgba(83, 115, 255, 0.22) 50%, transparent 66%); transform: translateX(-100%); animation: wi-sweep 1.1s 5.35s cubic-bezier(0.45, 0, 0.25, 1) forwards; }
@keyframes wi-sweep { to { transform: translateX(100%); } }
body.intro .top .wrap > * { opacity: 0; transform: translateY(6px); animation: wi-item 0.5s 5s cubic-bezier(0.25, 0.7, 0.2, 1) forwards; }
body.intro .top .wrap > *:nth-child(n+2) { animation-delay: 5.1s; }
@keyframes wi-item { to { opacity: 1; transform: none; } }
body.intro.intro-done .top { animation: none; clip-path: none; overflow: visible; background-color: rgba(8, 11, 18, 0.72); }
body.intro.intro-done .top::before, body.intro.intro-done .top::after { display: none; }
body.intro.intro-done .top .wrap > * { animation: none; opacity: 1; transform: none; }
body.intro main > section:not(.hero-intro), body.intro .ft { opacity: 0; animation: lb-fade 1.4s 4.3s ease forwards; }
@keyframes lb-fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .welcome-bg *, .welcome-bg, .hl-bg { animation: none !important; opacity: 1 !important; }
  .hero-logo .mark, .hero-logo .word, .hero-logo .wordmark, .hero-logo .solid { animation: none; }
  .hero-logo .guides { display: none; }
  .hero-logo .solid, .hero-logo .wordmark { opacity: 1; }
  .hero-logo .word { width: calc(var(--gap) + var(--ww)); }
  .hl-say > span, .hl-focus { animation: none; opacity: 1; transform: none; filter: none; }
  body.intro, body.intro .top, body.intro .top .wrap > *, body.intro main > section, body.intro .ft { animation: none !important; opacity: 1 !important; transform: none !important; clip-path: none !important; }
  body.intro { background-color: var(--bg); }
  body.intro .top { background-color: rgba(8, 11, 18, 0.72); }
  body.intro .top::before, body.intro .top::after { display: none; }
}
/* Returning within two minutes (intro.js): straight to the finished state. */
html.skip-intro .hl-bg { animation: none !important; opacity: 1 !important; }
html.skip-intro .hero-logo .mark, html.skip-intro .hero-logo .word, html.skip-intro .hero-logo .wordmark, html.skip-intro .hero-logo .solid { animation: none; }
html.skip-intro .hero-logo .guides { display: none; }
html.skip-intro .hero-logo .solid, html.skip-intro .hero-logo .wordmark { opacity: 1; }
html.skip-intro .hero-logo .word { width: calc(var(--gap) + var(--ww)); }
html.skip-intro .hl-say > span, html.skip-intro .hl-focus { animation: none; opacity: 1; transform: none; filter: none; }
html.skip-intro body.intro, html.skip-intro body.intro .top, html.skip-intro body.intro .top .wrap > *, html.skip-intro body.intro main > section, html.skip-intro body.intro .ft { animation: none !important; opacity: 1 !important; transform: none !important; clip-path: none !important; }
html.skip-intro body.intro { background-color: var(--bg); }
html.skip-intro body.intro .top::before, html.skip-intro body.intro .top::after { display: none; }
.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; }

/* ---- blog (rendered by the engine, engine/src/blog/render.ts) ---- */
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 28px; }
.post-head { padding: 88px 0 40px; border-bottom: 0; }
.post-head h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.08; margin-top: 18px; }
.post-lede { margin-top: 20px; font-size: 18.5px; color: var(--muted); line-height: 1.6; max-width: 36em; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.post-meta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.post-meta span + span::before { content: "·"; margin-right: 20px; opacity: 0.6; }
.post-hero { max-width: 1040px; margin: 8px auto 48px; padding: 0 28px; }
.post-hero img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; border: 1px solid var(--line); }
.post-hero figcaption { margin-top: 10px; font-size: 12.5px; color: var(--muted); text-align: right; }
.post-hero figcaption a { color: var(--muted); }
.post-body { padding-bottom: 72px; font-size: 17.5px; line-height: 1.75; color: #D9DEE8; }
.post-body > p, .post-body > ul, .post-body > ol { margin: 0 0 22px; }
.post-body h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); margin: 56px 0 18px; scroll-margin-top: 96px; }
.post-body h3 { font-size: 21px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; color: var(--ink); margin: 32px 0 12px; }
.post-body ul, .post-body ol { padding-left: 22px; }
.post-body li { margin: 0 0 10px; padding-left: 4px; }
.post-body li::marker { color: var(--blue-2); }
.post-body a { color: #A9B9FF; text-decoration: underline; text-decoration-color: rgba(169, 185, 255, 0.4); text-underline-offset: 3px; }
.post-body a:hover { text-decoration-color: currentColor; }
.post-body strong { color: var(--ink); font-weight: 500; }
.post-takeaways, .post-toc { margin: 36px 0; padding: 24px 28px; border: 1px solid var(--line-2); border-radius: 16px; background: rgba(15, 21, 34, 0.6); }
.post-takeaways ul, .post-toc ol { margin: 14px 0 0; padding-left: 20px; font-size: 16px; }
.post-toc a { color: var(--ink); text-decoration: none; }
.post-toc a:hover { color: #A9B9FF; }
.post-tip { margin: 28px 0; padding: 18px 22px; border-left: 3px solid var(--blue-2); background: rgba(53, 88, 245, 0.1); border-radius: 0 12px 12px 0; }
.post-tip b { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #A9B9FF; font-weight: 500; }
.post-tip p { margin: 6px 0 0; }
.post-inline-cta { margin: 32px 0; padding: 18px 22px; border: 1px dashed var(--line-2); border-radius: 12px; font-size: 16px; color: var(--muted); }
.post-inline-cta a { font-weight: 500; color: var(--ink); text-decoration: none; margin-right: 6px; }
.post-faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.post-faq summary { cursor: pointer; list-style: none; font-size: 18px; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
.post-faq summary::-webkit-details-marker { display: none; }
.post-faq summary::after { content: "+"; color: var(--blue-2); font-size: 22px; line-height: 1; }
.post-faq details[open] summary::after { content: "–"; }
.post-faq details p { margin: 12px 0 0; color: var(--muted); font-size: 16.5px; }
.post-cta { margin: 64px 0 40px; padding: 40px 36px; border-radius: 20px; border: 1px solid rgba(83, 115, 255, 0.4); background: radial-gradient(120% 140% at 0% 0%, rgba(53, 88, 245, 0.28), rgba(15, 21, 34, 0.85) 60%); }
.post-cta h2 { margin: 14px 0 10px; font-size: clamp(24px, 2.8vw, 32px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); }
.post-cta p { margin: 0 0 24px; color: var(--muted); font-size: 16.5px; }
.post-cta .btn-blue { background: var(--blue); color: #fff; text-decoration: none; }
.post-cta .btn-blue:hover { background: var(--blue-2); }
.post-author { display: flex; gap: 16px; align-items: center; padding-top: 28px; border-top: 1px solid var(--line); font-size: 15px; }
.post-author img { width: 30px; height: auto; flex: none; }
.post-author b { display: block; color: var(--ink); font-weight: 500; }
.post-author span { color: var(--muted); }
.post-related { padding: 72px 0 96px; border-top: 1px solid var(--line); border-bottom: 0; }
.post-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.post-index .post-grid { margin-top: 8px; }
.post-index .post-head { padding-bottom: 48px; }
.post-card { display: flex; flex-direction: column; gap: 12px; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: rgba(15, 21, 34, 0.55); text-decoration: none; color: var(--ink); transition: border-color 0.2s, transform 0.2s, background 0.2s; }
.post-card:hover { border-color: rgba(83, 115, 255, 0.5); background: rgba(19, 26, 42, 0.8); transform: translateY(-2px); }
.post-card h3 { font-size: 21px; font-weight: 400; letter-spacing: -0.015em; line-height: 1.3; margin: 0; }
.post-card p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; flex: 1; }
.pc-cat, .pc-meta { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: #A9B9FF; }
.pc-meta { color: var(--muted); letter-spacing: 0.06em; }
.post-pager { margin: 48px 0 0; display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.post-empty { color: var(--muted); padding: 40px 0; }
.post-index .post-cta { margin: 72px 0 96px; }
@media (max-width: 640px) {
  .post-head { padding-top: 56px; }
  .post-body { font-size: 17px; }
  .post-cta { padding: 30px 22px; }
  .post-takeaways, .post-toc { padding: 20px; }
  .post-hero { padding: 0 16px; }
  .post-hero img { border-radius: 12px; }
}
@media (max-width: 640px) { .post-meta span + span::before { display: none; } }
