/* CubeBaby tools: product site. Dark by default (like the apps), light when the system asks for it. */
:root {
  --bg: #0d0d0f; --bg2: #141417; --card: #18181c; --line: #2a2a30; --text: #ececef; --dim: #9a9aa3; --faint: #6c6c75;
  --green: #4dffa8; --green-ink: #062b1a; --amber: #ffb45a; --red: #ff6b6b; --link: #7fd8ff;
  --radius: 14px; --max: 1080px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f6f4; --bg2: #ffffff; --card: #ffffff; --line: #e0e0dc; --text: #17171a; --dim: #55555d; --faint: #85858d;
    --green: #0f9d63; --green-ink: #ffffff; --amber: #b86a00; --red: #c43535; --link: #0a6fa8;
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 "Segoe UI", system-ui, -apple-system, sans-serif; }
a { color: var(--link); text-decoration: none; } a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
code, kbd, pre { font-family: Consolas, "Cascadia Mono", monospace; font-size: .92em; }
code { background: var(--bg2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
kbd { border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; background: var(--bg2); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* header / nav */
header.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; letter-spacing: .2px; }
.brand:hover { text-decoration: none; }
.lamp { width: 14px; height: 14px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); flex: none; }
.lamp.amber { background: var(--amber); box-shadow: 0 0 12px var(--amber); }
nav.links { display: flex; gap: 18px; font-size: 15px; flex-wrap: wrap; justify-content: flex-end; }
nav.links a { color: var(--dim); } nav.links a:hover, nav.links a[aria-current] { color: var(--text); text-decoration: none; }
nav.links a.lang { border: 1px solid var(--line); border-radius: 6px; padding: 0 7px; font-size: 13px; font-weight: 600; }
@media (max-width: 640px) { nav.links .opt { display: none; } }

/* hero */
.hero { padding: 72px 0 40px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -.5px; }
.hero p.lead { font-size: 19px; color: var(--dim); max-width: 720px; margin: 0 0 26px; }
.eyebrow { color: var(--green); font-weight: 600; font-size: 14px; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 10px; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 10px; font-weight: 600; border: 1px solid var(--line); color: var(--text); background: var(--card); }
.btn:hover { text-decoration: none; border-color: var(--faint); }
.btn.primary { background: var(--green); color: var(--green-ink); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.06); }
.btn small { font-weight: 400; opacity: .75; }

/* sections */
section { padding: 36px 0; }
h2 { font-size: 28px; margin: 0 0 8px; letter-spacing: -.2px; }
h3 { font-size: 19px; margin: 26px 0 8px; }
p.sub { color: var(--dim); margin: 0 0 24px; max-width: 760px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-top: 0; display: flex; align-items: center; gap: 10px; }
.card .shot { border-radius: 10px; border: 1px solid var(--line); margin: 4px 0 18px; background: #0e0e10; }
.card ul { padding-left: 20px; margin: 10px 0 18px; } .card li { margin: 4px 0; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--dim); }
.tag.green { color: var(--green); border-color: color-mix(in srgb, var(--green) 45%, transparent); }
.feature h4 { margin: 0 0 4px; font-size: 16px; } .feature p { margin: 0; color: var(--dim); font-size: 15px; }

/* comparison table */
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--dim); font-weight: 600; }
.yes { color: var(--green); font-weight: 600; } .no { color: var(--faint); }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }

/* notes */
.note { border-left: 3px solid var(--amber); background: color-mix(in srgb, var(--amber) 8%, var(--card)); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 18px 0; }
.note.green { border-color: var(--green); background: color-mix(in srgb, var(--green) 7%, var(--card)); }
.note.red { border-color: var(--red); background: color-mix(in srgb, var(--red) 7%, var(--card)); }
.note p { margin: 4px 0; } .note strong:first-child { display: block; margin-bottom: 2px; }

/* guides */
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; padding: 40px 0 60px; }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; gap: 10px; } .toc { position: static !important; } }
.toc { position: sticky; top: 80px; align-self: start; font-size: 14px; }
.toc b { display: block; color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 8px; }
.toc a { display: block; color: var(--dim); padding: 3px 0; } .toc a:hover { color: var(--text); text-decoration: none; }
article h1 { font-size: 36px; line-height: 1.15; margin: 0 0 10px; }
article h2 { margin-top: 40px; padding-top: 8px; font-size: 24px; }
article p, article li { max-width: 760px; }
ol.steps { counter-reset: s; list-style: none; padding: 0; }
ol.steps > li { counter-increment: s; position: relative; padding: 0 0 18px 46px; }
ol.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--card); border: 1px solid var(--line); color: var(--green); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin: 14px 0; max-width: 760px; }
.kv dt { color: var(--dim); } .kv dd { margin: 0; font-family: Consolas, monospace; font-size: 14.5px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 10px 0; max-width: 760px; }
details summary { cursor: pointer; font-weight: 600; } details p { margin: 8px 0 2px; color: var(--dim); }

/* downloads */
.dl { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.dl .meta { color: var(--dim); font-size: 14px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 30px 0 50px; color: var(--faint); font-size: 14px; }
footer p { margin: 6px 0; max-width: 860px; }
footer .wrap > div { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }
footer a { color: var(--dim); }
