/* Blog and landing pages (built by tools/content/build.mjs). Same palette as the app: black, orange accent. */
:root { --bg: #000; --panel: #101216; --panel-2: #16191f; --line: #ffffff1f; --text: #f4f4f5; --muted: #a1a1aa; --accent: #fb9f3d; --code: #0b0d10; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.7 Inter, system-ui, -apple-system, sans-serif; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }

/* header and footer: copied from the app (src/styles.css, src/app/app.ts) so both look the same */
.nav { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; gap: 24px; margin: 0; padding: 14px 32px; border: 1px solid transparent; border-radius: 0;
       background: var(--bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-family: Inter, system-ui, sans-serif; line-height: normal;
       transition: margin .25s ease, padding .25s ease, border-radius .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease; }
.nav.scrolled { top: 16px; margin: 0 32px; padding: 12px 28px; border-radius: 999px; background: rgba(8,10,15,.92); border-color: rgba(255,255,255,.28);
                backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
                box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.12); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; font-size: 15px; font-weight: 600; line-height: 1; color: var(--text); text-decoration: none; }
.logo { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 8px; overflow: hidden; }
.logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.nav nav { display: flex; align-items: center; gap: 6px; flex: 1; }
.nav nav a { display: inline-flex; align-items: center; font-size: 14px; padding: 7px 16px; border: 1px solid transparent; border-radius: 999px; color: var(--muted);
             text-decoration: none; white-space: nowrap; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.nav nav a:hover { color: #fff; }
.get { display: flex; align-items: center; gap: 8px; }
.get-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; text-decoration: none; white-space: nowrap;
           border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #e6e9f0; font: 500 13px Inter, sans-serif;
           transition: background .15s, border-color .15s, transform .15s; }
.get-btn:hover, .get-btn.on { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.3); }
.get-btn:hover { transform: translateY(-1px); }
.chrome { width: 16px; height: 16px; border-radius: 50%; position: relative; flex: none; background: conic-gradient(from -60deg, #ea4335 0 120deg, #fbbc05 120deg 240deg, #34a853 240deg 360deg); }
.chrome::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: #fff; }
.chrome::after { content: ''; position: absolute; inset: 5.5px; border-radius: 50%; background: #4285f4; }
.figma { flex: none; }
.guest { display: flex; align-items: center; gap: 6px; }
.guest[hidden], .avatar[hidden] { display: none; }
.login-link { padding: 9px 12px; border-radius: 999px; color: #c4cad6; text-decoration: none; font: 500 14px Inter, sans-serif; }
.login-link:hover { color: #fff; }
.join { padding: 10px 18px; border-radius: 999px; background: #fff; color: #0b0b0d; white-space: nowrap; text-decoration: none; font: 600 14px Inter, sans-serif; transition: transform .15s, box-shadow .15s; }
.join:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255,255,255,.18); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; font: 700 13px Inter, sans-serif; letter-spacing: .02em;
          text-transform: uppercase; color: #111; text-decoration: none; background: linear-gradient(180deg, #fbbf24, #f59e0b); }
@media (max-width: 1100px) { .get-label { display: none; } .get-btn { padding: 0; width: 36px; justify-content: center; } }
@media (max-width: 768px) {
  .nav { gap: 12px; padding: 10px 16px; flex-wrap: wrap; }
  .nav.scrolled { top: 10px; margin: 0 12px; padding: 10px 18px; border-radius: 28px; }
  .logo { width: 34px; height: 34px; }
  .nav nav { order: 3; flex-basis: 100%; overflow-x: auto; }
}
@media (max-width: 560px) { .login-link { display: none; } .join { padding: 9px 14px; font-size: 13px; } }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 999px; background: var(--accent); color: #140a00;
       font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 32px 24px 80px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

.post { max-width: 740px; margin: 0 auto; }
.kicker { margin: 0 0 10px; color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
h1 { margin: 0 0 16px; font-size: clamp(32px, 5vw, 48px); line-height: 1.1; letter-spacing: -.025em; }
h2 { margin: 52px 0 14px; font-size: 27px; line-height: 1.25; letter-spacing: -.015em; }
h3 { margin: 34px 0 10px; font-size: 20px; line-height: 1.35; }
.lede { margin: 0 0 14px; color: #d4d4d8; font-size: 20px; line-height: 1.55; }
.meta { margin: 0 0 36px; color: var(--muted); font-size: 14px; }
p, li { color: #e4e4e7; }
ul, ol { padding-left: 22px; }
li { margin: 6px 0; }
strong { color: #fff; }
hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
blockquote { margin: 24px 0; padding: 14px 20px; border-left: 3px solid var(--accent); background: var(--panel); border-radius: 0 12px 12px 0; }
blockquote p { margin: 0; }

code { font: 14.5px/1.6 'JetBrains Mono', ui-monospace, Menlo, monospace; background: var(--panel-2); padding: 2px 6px; border-radius: 6px; color: #fde6c8; }
pre { margin: 22px 0; padding: 18px 20px; overflow-x: auto; background: var(--code); border: 1px solid var(--line); border-radius: 14px; }
pre code { padding: 0; background: none; color: #e7e9ee; font-size: 14px; white-space: pre; }

table { width: 100%; margin: 22px 0; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
th, td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }

/* a live example inside a post */
.demo { position: relative; display: grid; place-items: center; min-height: 240px; margin: 26px 0; padding: 28px; overflow: hidden;
        border: 1px solid var(--line); border-radius: 22px; background: radial-gradient(120% 90% at 50% 38%, #17171a 0%, #0b0b0d 72%); }
.demo-label { position: absolute; left: 14px; bottom: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--muted); font-size: 11px; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding-left: 48px; margin: 18px 0; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 1px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
                      background: var(--panel-2); border: 1px solid var(--line); color: var(--accent); font-weight: 600; font-size: 14px; }
.note { margin: 24px 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); font-size: 15.5px; }

.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--muted); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 16px; color: #d4d4d8; }

.cta { max-width: 740px; margin: 64px auto 0; padding: 32px; border-radius: 24px; border: 1px solid #fb9f3d40;
       background: radial-gradient(90% 120% at 0% 0%, #fb9f3d22, transparent 60%), var(--panel); }
.cta h2 { margin: 0 0 10px; }
.cta p { margin: 0 0 20px; color: #d4d4d8; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.related { max-width: 1120px; margin: 64px auto 0; }
.related h2 { margin-top: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel);
        color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s; }
.card:hover { border-color: #fb9f3d80; transform: translateY(-2px); }
.card .kicker { margin: 0; font-size: 11px; }
.card b { font-size: 17px; line-height: 1.35; }
.card span:last-child { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.blog-head { max-width: 740px; margin: 16px 0 48px; }

/* landing pages */
.landing { max-width: 1120px; margin: 0 auto; }
.hero { max-width: 820px; margin: 24px auto 56px; text-align: center; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); }
.hero .lede { margin: 0 auto 28px; max-width: 640px; }
.hero .cta-row { justify-content: center; }
.hero .small { margin-top: 14px; color: var(--muted); font-size: 14px; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin: 32px 0; }
.feature { padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.feature h3 { margin: 0 0 8px; }
.feature p { margin: 0; color: #c9c9cf; font-size: 15.5px; }
.landing section { margin: 72px 0; }
.landing section > h2 { text-align: center; margin: 0 0 12px; font-size: clamp(26px, 4vw, 36px); }
.landing section > p.center { max-width: 680px; margin: 0 auto 28px; text-align: center; color: #c9c9cf; }
.landing .faq { max-width: 740px; margin: 72px auto 0; }

.foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; margin-top: 40px; padding: 50px max(24px, calc((100% - 1312px) / 2)); background: #05070a;
        color: var(--muted); font: 14px/1.5 Inter, system-ui, sans-serif; }
.foot > div { display: flex; flex-direction: column; gap: 10px; }
.foot b { color: #fff; }
.foot p { margin: 0; max-width: 280px; color: var(--muted); }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: #fff; }
.foot-brand { display: flex; flex-direction: row; align-items: center; gap: 10px; }
.foot-brand .logo { width: 34px; height: 34px; }
.foot-brand b { font-size: 17px; }
.foot .powered { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap;
                 margin-top: 14px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.foot .powered a { color: #9aa2b3; }
.foot .powered a b { color: #fff; font-weight: 600; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 24px 16px 64px; }
  .cta { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) { .demo * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; } }
