/* atmovio.com – styles on top of Pico CSS 2 */
:root, :root[data-theme="light"] {
  --at-navy: #0b2a6f; --at-blue: #1e63d6; --at-sky: #38bdf8; --at-ink: #0f172a; --at-text: #0f172a; --at-muted: #5b6b85;
  --at-bg: #fff; --at-bg-alt: #f3f7fd; --at-surface: #fff; --at-soft: #f8fbff; --at-text-2: #33415a; --at-line: #dfe7f3; --at-radius: 14px;
  --at-hero-a: #e6f1ff; --at-hero-b: #eaf7ff; --at-ph-a: #f7faff; --at-ph-b: #eef4fc; --at-ph-line: #c3d3ea; --at-oss: #eef5ff;
  --at-chip-text: var(--at-navy); --at-topbar: rgba(255,255,255,.82); --at-shadow: rgba(11,42,111,.45);
  --pico-primary: var(--at-blue); --pico-primary-hover: #174fb0; --pico-primary-background: var(--at-blue); --pico-primary-hover-background: #174fb0;
  --pico-font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  --pico-font-size: 100%; --pico-line-height: 1.55; --pico-border-radius: 10px; --pico-spacing: 1rem;
  --pico-color: var(--at-ink); --pico-muted-color: var(--at-muted); --pico-background-color: var(--at-bg);
  --pico-form-element-spacing-vertical: .55rem; --pico-form-element-spacing-horizontal: 1.1rem;
}
html { scroll-behavior: smooth; scroll-padding-top: 106px; }
body { margin: 0; overflow-x: hidden; }
body.lb-open { overflow: hidden; }
[x-cloak] { display: none !important; }
.container { width: min(1140px, 100% - 2.5rem); margin-inline: auto; padding: 0; }
.container.narrow { max-width: 780px; }
.container.mid { max-width: 900px; }
h1, h2, h3, h4 { --pico-font-weight: 700; letter-spacing: -.015em; color: var(--at-text); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); margin-bottom: .6rem; }
h3 { font-size: 1.12rem; margin-bottom: .35rem; }
p { color: var(--pico-color); }
.note { color: var(--at-muted); font-size: .92rem; }
.more { font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }
code { font-size: .88em; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--at-topbar); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.topbar.scrolled { border-color: var(--at-line); box-shadow: 0 6px 24px -18px rgba(11,42,111,.35); }
.topbar .container { display: flex; align-items: center; gap: 1rem; height: 96px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 84px; width: auto; display: block; }
.brand-footer img { height: 52px; background: var(--at-surface); border-radius: 10px; padding: .35rem .7rem; }
.menu { margin-left: auto; display: flex; align-items: center; gap: 1.15rem; }
.menu a { color: var(--at-text); text-decoration: none; font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
.menu a:hover { color: var(--at-blue); }
.menu a.active { color: var(--at-blue); }
.menu .donate { color: #c2410c; }
.menu .lang { color: var(--at-muted); border: 1px solid var(--at-line); border-radius: 999px; padding: .3rem .85rem; font-size: .95rem; font-weight: 500; }
.menu .gh { display: inline-flex; align-items: center; gap: .45rem; background: var(--at-navy); color: #fff; padding: .55rem 1.1rem; border-radius: 999px; font-weight: 700; font-size: 1.05rem; }
.menu .gh:hover { background: var(--at-blue); color: #fff; }
.topbar .burger { display: none; margin-left: auto; width: 42px; height: 42px; border: 0; background: none; box-shadow: none; padding: 8px; flex-direction: column; justify-content: center; gap: 5px; --pico-background-color: transparent; --pico-border-color: transparent; }
.burger span { display: block; height: 2px; background: var(--at-text); border-radius: 2px; }

/* hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 4rem); background: radial-gradient(1200px 500px at 15% -10%, var(--at-hero-a) 0%, transparent 60%), radial-gradient(900px 400px at 95% 10%, var(--at-hero-b) 0%, transparent 55%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.kicker { color: var(--at-blue); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .8rem; }
.hero h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.3rem); line-height: 1.08; margin-bottom: 1rem; }
.hero h1 span { color: var(--at-blue); }
.lead { font-size: 1.12rem; color: var(--at-text-2); max-width: 56ch; }
.cta { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.4rem 0 .8rem; }
.cta [role=button] { margin: 0; font-weight: 600; border-radius: 999px; padding: .7rem 1.35rem; }
.cta .secondary { background: var(--at-surface); color: var(--at-chip-text); border-color: var(--at-line); }
.cta .secondary:hover { border-color: var(--at-blue); color: var(--at-blue); }
.cta.center { justify-content: center; }

/* screenshots */
.shot { margin: 0; }
.shot a { display: block; border-radius: var(--at-radius); overflow: hidden; border: 1px solid var(--at-line); box-shadow: 0 30px 60px -30px var(--at-shadow), 0 8px 24px -16px rgba(11,42,111,.25); background: var(--at-surface); transition: transform .25s, box-shadow .25s; }
.shot a:hover { transform: translateY(-3px); box-shadow: 0 36px 70px -30px rgba(11,42,111,.5), 0 10px 26px -16px rgba(11,42,111,.3); }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.shot figcaption { font-size: .88rem; color: var(--at-muted); margin-top: .6rem; text-align: center; }
.shot-empty div { aspect-ratio: 16 / 10; border-radius: var(--at-radius); border: 1.5px dashed var(--at-ph-line); background: repeating-linear-gradient(135deg, var(--at-ph-a) 0 12px, var(--at-ph-b) 12px 24px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; color: var(--at-muted); text-align: center; padding: 1rem; }
.shot-empty span { font-weight: 600; color: var(--at-chip-text); }
.shot-empty small { font-size: .82rem; }
.shot-hero img { aspect-ratio: 16 / 11; }

/* trust strip */
.trust { border-block: 1px solid var(--at-line); background: var(--at-bg); }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; padding: 1.6rem 0; }
.trust strong { display: block; color: var(--at-chip-text); margin-bottom: .25rem; }
.trust p { margin: 0; font-size: .9rem; color: var(--at-muted); }

/* sections */
.block { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.block-alt { background: var(--at-bg-alt); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 2.5rem; }
.section-head.left { text-align: left; margin-left: 0; margin-bottom: 1.5rem; }
.section-head p { color: var(--at-text-2); font-size: 1.05rem; margin: 0; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.features article { margin: 0; padding: 1.5rem; border: 1px solid var(--at-line); border-radius: var(--at-radius); box-shadow: 0 10px 30px -24px rgba(11,42,111,.4); background: var(--at-surface); }
.features p { margin: 0; color: var(--at-text-2); font-size: .95rem; }
.ico { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--at-blue), var(--at-navy)); display: grid; place-items: center; margin-bottom: 1rem; }
.ico svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* AI */
.ai-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: stretch; }
.ai-main { display: flex; flex-direction: column; }
.ai-main .providers { margin-top: auto; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start; }
.steps .num { width: 44px; height: 44px; border-radius: 50%; background: var(--at-surface); border: 2px solid var(--at-blue); color: var(--at-blue); font-weight: 800; display: grid; place-items: center; }
.steps p { margin: 0; color: var(--at-text-2); font-size: .95rem; }
.ai-main h4, .ai-side h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--at-muted); margin: 1.6rem 0 .6rem; }
.chips li, .providers li, .steps li { list-style: none; padding-left: 0; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chips li { background: var(--at-surface); border: 1px solid var(--at-line); border-radius: 999px; padding: .2rem .7rem; font-size: .84rem; color: var(--at-chip-text); }
.providers { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.providers li { display: grid; grid-template-columns: 170px 1fr; gap: .8rem; font-size: .92rem; padding: .45rem .7rem; background: var(--at-surface); border-radius: 8px; border: 1px solid var(--at-line); }
.providers span { color: var(--at-muted); }

.shots-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.75rem; }

/* hardware */
.hw-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 3rem; align-items: center; }
table.hw { margin: 0; background: var(--at-surface); border: 1px solid var(--at-line); border-radius: var(--at-radius); overflow: hidden; }
table.hw th, table.hw td { padding: .8rem 1rem; border-bottom: 1px solid var(--at-line); font-size: .95rem; }
table.hw th { width: 32%; color: var(--at-chip-text); font-weight: 700; background: var(--at-soft); }
table.hw tr:last-child th, table.hw tr:last-child td { border-bottom: 0; }

/* install */
.install-grid { display: grid; grid-template-columns: 1fr; gap: 1.6rem; align-items: start; }
.install-grid > :first-child { max-width: 820px; }
.install-grid .terminal { width: 100%; }
.install-steps { padding-left: 1.2rem; color: var(--at-text-2); }
.install-steps li { margin-bottom: .5rem; }
.terminal { background: #0b1220; border-radius: var(--at-radius); box-shadow: 0 30px 60px -30px rgba(11,42,111,.6); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: .45rem; padding: .7rem 1rem; background: #111a2e; }
.term-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2c3a55; }
.term-bar span:nth-child(1) { background: #ff5f57; } .term-bar span:nth-child(2) { background: #febc2e; } .term-bar span:nth-child(3) { background: #28c840; }
.term-bar em { margin-left: .5rem; color: #8ea2c6; font-style: normal; font-size: .8rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.term-bar button { margin-left: auto; width: auto; padding: .2rem .7rem; font-size: .75rem; background: #1e2b48; border: 0; color: #cbd5e1; border-radius: 6px; }
.terminal pre { margin: 0; padding: 1.2rem 1.3rem 1.2rem; background: transparent; color: #e2e8f0; font-size: .95rem; line-height: 1.8; white-space: pre; overflow-x: auto; }
@media (max-width: 1000px) { .terminal pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .88rem; } }
.terminal .c { color: #6b7fa3; }

/* API */
.api-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.api-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.api-grid h3 { display: flex; align-items: center; gap: .5rem; }
.ha-ico { display: inline-flex; width: 30px; height: 30px; border-radius: 8px; background: #41bdf5; color: #fff; align-items: center; justify-content: center; }
.ha-ico svg { width: 18px; height: 18px; }
.api-grid article.ha-card { border-color: #41bdf5; box-shadow: 0 0 0 3px rgba(65,189,245,.15); }
.hero-chips { list-style: none; padding-left: 0; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: .9rem 0 0; }
.hero-chips li { list-style: none; margin: 0; padding: .3rem .75rem !important; border-radius: 999px; border: 1px solid var(--at-line); background: var(--at-surface); font-size: .82rem; font-weight: 600; color: var(--at-chip-text); }
.hero-chips li.ha { border-color: #41bdf5; background: rgba(65,189,245,.12); }
.hero-chips li.ha a { color: #1a8fc4; text-decoration: none; }
:root[data-theme="dark"] .hero-chips li.ha a { color: #7dd3fc; }
@media (max-width: 1000px) { .api-grid.three { grid-template-columns: 1fr; } }
.api-grid article { margin: 0; min-width: 0; padding: 1.6rem; border: 1px solid var(--at-line); border-radius: var(--at-radius); background: var(--at-surface); display: flex; flex-direction: column; }
.api-grid p { color: var(--at-text-2); font-size: .95rem; }
.api-grid pre { background: #0b1220; color: #e2e8f0; border-radius: 10px; padding: 1rem 1.1rem; font-size: .78rem; line-height: 1.65; margin: .4rem 0 1rem; overflow-x: auto; flex: 1; white-space: pre; }
.api-grid pre code { background: none; color: inherit; padding: 0; }
.api-grid .more { margin-top: auto; }

/* OSS */
.oss { text-align: center; background: linear-gradient(180deg, var(--at-surface) 0%, var(--at-oss) 100%); }
.oss h2 { max-width: 760px; margin-inline: auto; }
.oss p { max-width: 720px; margin: 0 auto 1.2rem; color: var(--at-text-2); }

/* FAQ */
details { border: 1px solid var(--at-line); border-radius: 12px; background: var(--at-surface); padding: 0 1.1rem; margin-bottom: .7rem; }
details summary { padding: .95rem 0; font-weight: 600; color: var(--at-chip-text); }
details p { margin: 0 0 1rem; color: var(--at-text-2); font-size: .95rem; }

/* footer */
.footer { background: #0b1220; color: #cbd5e1; padding: 2.5rem 0 2rem; }
.footer .brand { color: #fff; }
.footer p { color: #94a3b8; font-size: .9rem; margin: .5rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; align-items: start; }
.footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer nav a { color: #e2e8f0; text-decoration: none; font-size: .92rem; }
.footer nav a:hover { color: #fff; text-decoration: underline; }
.footer .made { grid-column: 1 / -1; border-top: 1px solid #1f2a44; padding-top: 1.2rem; }
.footer .made a { color: #fff; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(2,6,23,.88); display: flex; align-items: center; justify-content: center; padding: 1.5rem; cursor: zoom-out; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .6rem; cursor: default; max-width: 100%; }
.lightbox img { max-width: min(96vw, 1600px); max-height: 86vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox figcaption { color: #e2e8f0; font-size: .95rem; }
.lightbox .close { position: fixed; top: .75rem; right: 1rem; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 1.8rem; line-height: 1; padding: 0; }

/* responsive */
@media (max-width: 1000px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid, .ai-grid, .hw-grid, .install-grid { grid-template-columns: 1fr; }
  .hero-shot { order: 2; }
}
@media (max-width: 1180px) {
  .topbar .burger { display: flex; }
  .menu { position: fixed; inset: 96px 0 auto 0; flex-direction: column; align-items: stretch; background: var(--at-bg); border-bottom: 1px solid var(--at-line); padding: 1rem 1.25rem 1.25rem; gap: .9rem; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s; box-shadow: 0 20px 40px -20px rgba(11,42,111,.4); }
  .menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .menu .lang, .menu .gh { justify-content: center; text-align: center; }
}
@media (max-width: 760px) {
  .topbar .container { height: 72px; }
  .brand img { height: 56px; }
  .menu { inset: 72px 0 auto 0; }
  .features, .trust-grid, .shots-grid, .api-grid { grid-template-columns: 1fr; }
  .providers li { grid-template-columns: 1fr; gap: .1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .lead { font-size: 1.02rem; }
}

/* subpages */
.sub { padding-top: clamp(2rem, 5vw, 3.5rem); }
.sub h1 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.7rem); line-height: 1.12; margin-bottom: .8rem; }
.sub .lead { margin-bottom: 2rem; }
.sub-h2 { margin-top: 3rem; }
.card-box { margin: 0; padding: 1.6rem; border: 1px solid var(--at-line); border-radius: var(--at-radius); background: var(--at-surface); }
.card-box h2 { font-size: 1.3rem; margin-bottom: .2rem; }
.card-box .role { color: var(--at-muted); margin-bottom: .8rem; }
.card-box [role=button] { margin: .4rem 0 0; width: auto; border-radius: 999px; font-weight: 600; }
.card-box .secondary { background: var(--at-surface); color: var(--at-chip-text); border-color: var(--at-line); }
.card-link { display: flex; flex-direction: column; gap: .35rem; padding: 1.2rem 1.3rem; border: 1px solid var(--at-line); border-radius: var(--at-radius); background: var(--at-surface); text-decoration: none; color: var(--at-ink); transition: border-color .2s, transform .2s, box-shadow .2s; }
.card-link:hover { border-color: var(--at-blue); transform: translateY(-2px); box-shadow: 0 16px 30px -22px rgba(11,42,111,.5); }
.card-link strong { color: var(--at-chip-text); font-size: 1.05rem; }
.card-link span { color: var(--at-text-2); font-size: .93rem; }
.card-link em { font-style: normal; color: var(--at-blue); font-size: .88rem; font-weight: 600; margin-top: .2rem; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
/* donate */
.donate-grid { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 2.5rem; align-items: start; margin-bottom: 2.5rem; }
.sub .lead { max-width: 70ch; }
.qr { margin: 0; padding: 1rem; border: 1px solid var(--at-line); border-radius: var(--at-radius); background: var(--at-surface); text-align: center; }
.qr img { width: 100%; height: auto; max-width: 360px; image-rendering: pixelated; }
.qr figcaption { font-size: .85rem; color: var(--at-muted); margin-top: .5rem; }
.bank h2 { font-size: 1.2rem; margin-bottom: .8rem; }
.bank-rows { margin: 0; display: grid; gap: .5rem; }
.bank-rows > div { display: grid; grid-template-columns: 140px minmax(0, 1fr) 48px; align-items: stretch; border: 1px solid var(--at-line); border-radius: 10px; overflow: hidden; background: var(--at-surface); }
.bank-rows dt { background: var(--at-soft); color: var(--at-muted); padding: .65rem .8rem; font-size: .9rem; margin: 0; }
.bank-rows dd { margin: 0; padding: .75rem .9rem; font-weight: 600; letter-spacing: .01em; font-size: 1.05rem; }
.bank-rows .copy { margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--at-navy); color: #fff; font-size: 1rem; }
.bank-rows .copy:hover { background: var(--at-blue); }
.donate-other h2 { font-size: 1.2rem; margin-bottom: .8rem; }
.donate-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.donate-cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .donate-cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.thanks { text-align: center; margin-top: 3rem; font-size: 1.5rem; font-weight: 700; color: var(--at-chip-text); }
.thanks span { color: #dc2626; }
.thanks small { font-size: .95rem; font-weight: 400; color: var(--at-muted); }
/* changelog */
.release { margin: 0 0 1.4rem; padding: 1.3rem 1.5rem; border: 1px solid var(--at-line); border-radius: var(--at-radius); background: var(--at-surface); }
.release.latest { border-color: var(--at-blue); box-shadow: 0 16px 40px -28px rgba(30,99,214,.6); }
.release header { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .8rem; margin-bottom: .6rem; }
.release h2 { font-size: 1.25rem; margin: 0; }
.release .badge { background: var(--at-blue); color: #fff; font-size: .72rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.release time { color: var(--at-muted); font-size: .9rem; }
.release .rtitle { color: var(--at-chip-text); font-weight: 600; }
.release ul { margin: 0; padding-left: 1.2rem; }
.release li { margin-bottom: .35rem; color: var(--at-text-2); font-size: .95rem; }
@media (max-width: 760px) { .contact-grid, .projects, .donate-grid, .donate-cards { grid-template-columns: 1fr; } .bank-rows > div { grid-template-columns: 90px minmax(0, 1fr) 44px; } .bank-rows dd { font-size: .92rem; } }

/* ---- dark theme (auto by system, or forced by the toggle via data-theme) */
:root[data-theme="dark"] {
  --at-bg: #0b1220; --at-bg-alt: #0f1a2e; --at-surface: #131f35; --at-soft: #182642; --at-text-2: #b6c2d9; --at-line: #24334f;
  --at-hero-a: #14264a; --at-hero-b: #0f2a3d; --at-ph-a: #131f35; --at-ph-b: #172640; --at-ph-line: #2c3f63; --at-oss: #122040;
  --at-chip-text: #dbe7ff; --at-text: #e6edf7; --at-muted: #8fa0bf; --at-topbar: rgba(11,18,32,.82); --at-shadow: rgba(0,0,0,.6);
  --pico-color: #e6edf7; --pico-background-color: var(--at-bg); --pico-muted-color: var(--at-muted);
  --pico-card-background-color: var(--at-surface); --pico-card-border-color: var(--at-line);
  --pico-code-background-color: #182642; --pico-code-color: #dbe7ff; --pico-form-element-background-color: #0f1a2e; --pico-form-element-border-color: var(--at-line);
}
:root[data-theme="dark"] .footer { background: #060b15; }
:root[data-theme="dark"] .menu .gh { background: #1e63d6; }
:root[data-theme="dark"] .menu .lang { border-color: var(--at-line); }
:root[data-theme="dark"] .brand img { filter: drop-shadow(0 0 0 transparent); }
:root[data-theme="dark"] .brand-footer img { background: #fff; }
:root[data-theme="dark"] .qr { background: #fff; }
:root[data-theme="dark"] .shot a { border-color: var(--at-line); }
:root[data-theme="dark"] .ico { background: linear-gradient(135deg, #2f7de1, #1e3a8a); }
:root[data-theme="dark"] .kicker { color: #7fb0ff; }
:root[data-theme="dark"] .more, :root[data-theme="dark"] a:not([role=button]):not(.gh):not(.card-link):not(.menu a) { color: #8ec0ff; }
:root[data-theme="dark"] .footer nav a { color: #e2e8f0; }
:root[data-theme="dark"] .steps .num { background: var(--at-surface); }

/* icon buttons in the top bar: theme toggle, language flag, GitHub */
.menu .ico-btn { --pico-color: var(--at-text); display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--at-line); background: var(--at-surface); color: var(--at-text); padding: 0; margin: 0; cursor: pointer; box-shadow: none; }
.menu .ico-btn:hover { border-color: var(--at-blue); color: var(--at-blue); }
.menu .ico-btn svg { width: 20px; height: 20px; }
.menu .flag svg { width: 24px; height: 17px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.menu .gh { padding: 0; width: 40px; height: 40px; justify-content: center; border-radius: 50%; }
.menu .gh svg { width: 20px; height: 20px; }
.menu .icons { display: flex; align-items: center; gap: .5rem; margin-left: .4rem; }
@media (max-width: 1180px) { .menu .icons { justify-content: center; } }
.terminal details.clone { margin: 0; padding: 0 1.3rem .9rem; border: 0; background: transparent; border-radius: 0; }
.terminal details.clone { border-top: 1px solid #1e2b48; padding-top: .7rem; }
.terminal details.clone summary { color: #8ea2c6; font-size: .85rem; font-weight: 500; padding: .2rem 0; cursor: pointer; }
.terminal details.clone summary code { background: #1e2b48; color: #cbd5e1; }
.terminal details.clone pre { padding: .6rem 0 0; font-size: .88rem; }
.brand .logo-dark { display: none; }
:root[data-theme="dark"] .brand:not(.brand-footer) .logo-light { display: none; }
:root[data-theme="dark"] .brand:not(.brand-footer) .logo-dark { display: block; }

/* contact – project logos */
.card-link.project .plogo { display: flex; align-items: center; justify-content: center; height: 84px; overflow: hidden; border-radius: 10px; background: #fff; border: 1px solid var(--at-line); padding: .7rem 1rem; margin-bottom: .8rem; }
.card-link.project .plogo img { display: block; max-height: 56px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
/* API page */
.ha { margin-bottom: 2.5rem; padding: 1.8rem; }
.ha-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .6rem; }
.ha-head h2 { margin: 0; }
.ha-logo { width: 38px; height: 38px; border-radius: 10px; background: #41bdf5; color: #fff; display: grid; place-items: center; }
.ha-logo svg { width: 22px; height: 22px; }
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 .6rem; }
.tabs button { width: auto; margin: 0; padding: .4rem .9rem; font-size: .9rem; border-radius: 999px; background: var(--at-surface); color: var(--at-text); border: 1px solid var(--at-line); box-shadow: none; --pico-color: var(--at-text); }
.tabs button.on { background: var(--at-blue); color: #fff; border-color: var(--at-blue); }
.codebox { position: relative; background: #0b1220; border-radius: 12px; border: 1px solid #1e2b48; overflow: hidden; }
.codebox pre { margin: 0; padding: 1rem 1.2rem; background: transparent; color: #e2e8f0; font-size: .84rem; line-height: 1.6; overflow-x: auto; }
.codebox pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.codebox .copy { position: absolute; top: .5rem; right: .5rem; width: auto; margin: 0; padding: .2rem .7rem; font-size: .75rem; background: #1e2b48; border: 0; color: #cbd5e1; border-radius: 6px; box-shadow: none; }
.codebox.small pre { font-size: .8rem; }
.api-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; align-items: start; }
.api-two h2 { font-size: 1.4rem; }
.api-two h3 { font-size: 1.05rem; margin-top: 1.4rem; }
.api-two .codebox { margin: .8rem 0; }
table.endpoints { margin: 1rem 0 0; font-size: .88rem; }
table.endpoints td { padding: .5rem .6rem; border-bottom: 1px solid var(--at-line); vertical-align: top; }
table.endpoints td:first-child { width: 48%; }
table.endpoints code { font-size: .8rem; white-space: normal; word-break: break-all; }
ul.plain { padding-left: 1.1rem; color: var(--at-text-2); font-size: .95rem; }
ul.plain li { margin-bottom: .4rem; }
@media (max-width: 900px) { .api-two { grid-template-columns: 1fr; } }

/* support band */
.support { padding-block: 2.6rem; }
.support-box { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding: 2rem 2.2rem; border-radius: 18px; border: 1px solid var(--at-border); background: linear-gradient(135deg, var(--at-surface) 0%, var(--at-oss) 100%); box-shadow: var(--at-shadow, 0 10px 30px rgba(0,0,0,.06)); }
.support-text { flex: 1 1 420px; min-width: 0; max-width: 680px; }
.support-text h2 { margin: .2rem 0 .5rem; font-size: 1.7rem; }
.support-text p:last-child { margin: 0; color: var(--at-text-2); }
.support .cta { margin: 0; flex: 0 0 auto; }
@media (max-width: 900px) { .support-box { flex-wrap: wrap; } }
.donate-btn { --pico-background-color: #e0245e; --pico-border-color: #e0245e; --pico-color: #fff; }
.donate-btn:hover, .donate-btn:focus { --pico-background-color: #c31a4f; --pico-border-color: #c31a4f; }
.topbar nav a.donate { color: #e0245e; font-weight: 700; }
@media (max-width: 700px) { .support-box { padding: 1.4rem; } .support .cta { width: 100%; } .support .cta a { flex: 1; } }
