/* MaxZit website (same design system as backupzit.com). Colors follow the MaxZit brand tokens (BRIEF.md). */
:root {
  --bg: #ffffff; --fg: #0f172a; --muted: #475569; --card: #f8fafc; --line: #e2e8f0;
  --accent: #4f46e5; --accent-2: #6366f1; --accent-soft: #eef2ff; --side: #0f172a;
  --code: #f1f5f9; --ok: #15803d;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020; --fg: #e2e8f0; --muted: #94a3b8; --card: #111833; --line: #1f2a4a;
    --accent: #818cf8; --accent-soft: #1e1b4b; --side: #080c18; --code: #0e1530; --ok: #4ade80;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
code, pre, kbd { font-family: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .88em; }
:not(pre) > code { background: var(--code); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; color: #312e81; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
header.site { background: linear-gradient(120deg, #1e1b4b 0%, #312e81 45%, #4f46e5 100%); color: #fff; }
header.site a { color: #fff; }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 16px; position: relative; }
.brand { display: block; line-height: 0; padding: 4px 0; }
.brand img { height: 32px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; font-size: 15.5px; }
.nav a { text-decoration: none; opacity: .92; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { opacity: 1; border-bottom-color: rgba(255,255,255,.6); }
.nav a[aria-current="page"] { opacity: 1; border-bottom-color: #a5b4fc; }
.nav .lang { border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: 3px 12px; }
.nav .lang:hover { border-color: #fff; }
.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nav-button { display: none; }
@media (max-width: 899px) {
  .nav-button { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border: 1px solid rgba(255,255,255,.45); border-radius: 10px; padding: 7px 12px; font-size: 15px; font-weight: 600; user-select: none; }
  .bars, .bars::before, .bars::after { display: block; width: 16px; height: 2px; background: #fff; border-radius: 2px; position: relative; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -5px; } .bars::after { top: 5px; }
  .nav-toggle:focus-visible + .nav-button { outline: 3px solid #a5b4fc; outline-offset: 2px; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0 8px; font-size: 17px; }
  .nav a { padding: 10px 2px; border-bottom: 1px solid rgba(255,255,255,.15); }
  .nav a[aria-current="page"] { border-bottom-color: rgba(255,255,255,.15); font-weight: 700; }
  .nav .lang { border: 0; border-radius: 0; padding: 10px 2px; }
  .nav-toggle:checked ~ .nav { display: flex; }
}
.hero { padding-top: 20px; padding-bottom: 44px; }
.home .hero { padding-top: 36px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(28px, 4.6vw, 44px); line-height: 1.15; margin: 0 0 14px; letter-spacing: -.01em; max-width: 900px; }
.hero .lead { font-size: clamp(17px, 2.2vw, 19.5px); max-width: 800px; margin: 0; opacity: .95; }
.hero .eyebrow { display: inline-block; font-size: 14px; font-weight: 600; letter-spacing: .02em; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 3px 12px; margin-bottom: 16px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 10px; font-weight: 600; text-decoration: none; line-height: 1.3; }
header .btn.primary { background: #fff; color: #312e81; }
header .btn.ghost { border: 1px solid rgba(255,255,255,.6); }
main .btn.primary { background: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { main .btn.primary { color: #0b1020; } }
main .btn.ghost { border: 1px solid var(--accent); color: var(--accent); }
.btn:hover { filter: brightness(1.06); }

/* Content */
main { padding-bottom: 24px; }
section { padding: 44px 0 4px; scroll-margin-top: 12px; }
section:first-child { padding-top: 36px; }
h2 { font-size: clamp(23px, 3vw, 28px); line-height: 1.25; margin: 0 0 14px; letter-spacing: -.005em; }
h3 { font-size: 18.5px; line-height: 1.3; margin: 22px 0 6px; }
p.sub { color: var(--muted); margin-top: -6px; max-width: 760px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card p + p { margin-top: 8px; }
a.card { display: block; text-decoration: none; color: inherit; transition: border-color .15s; }
a.card:hover { border-color: var(--accent); }
a.card h3 { color: var(--accent); }
.card ul { margin: 8px 0 0; padding-left: 20px; color: var(--muted); font-size: 15.5px; }
.icon { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 15px; margin-bottom: 10px; }
ul.ticks { padding-left: 0; list-style: none; }
ul.ticks li { position: relative; padding-left: 28px; margin: 10px 0; }
ul.ticks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
pre { background: var(--code); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-size: 14.5px; line-height: 1.5; }
pre code { font-size: inherit; }
.table { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin: 12px 0 8px; }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { background: var(--card); font-weight: 600; }
td:first-child { white-space: nowrap; }
td.wrap-ok { white-space: normal; }
@media (max-width: 639px) {
  thead { display: none; }
  tr, td { display: block; }
  tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  tr:last-child { border-bottom: 0; }
  td { border: 0; padding: 2px 14px; white-space: normal; }
  td:first-child { font-weight: 600; }
  td:first-child code { font-weight: 400; }
}
details { border-bottom: 1px solid var(--line); padding: 12px 0; }
details p { margin: 8px 0 4px; color: var(--muted); }
summary { cursor: pointer; font-weight: 600; }
.note { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 8px; padding: 12px 16px; margin: 16px 0; }
.note p { margin: 0; }
.muted { color: var(--muted); }
.tag { display: inline-block; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 2px 12px; font-size: 14px; margin: 0 6px 6px 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.toc a { display: inline-block; text-decoration: none; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 4px 12px; font-size: 14.5px; }
.toc a:hover { border-color: var(--accent); }

/* Architecture diagram */
.flow { display: grid; gap: 10px; text-align: center; font-size: 15px; }
.flow .row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.flow .box { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; min-width: 150px; }
.flow .box b { display: block; }
.flow .box span { color: var(--muted); font-size: 14px; }
.flow .box.main { border-color: var(--accent); background: var(--accent-soft); }
.flow .arrow { color: var(--muted); font-size: 14px; }

/* Plans */
.plan { display: flex; flex-direction: column; }
.plan p { margin-top: 10px; }
.plan .price { font-size: 26px; font-weight: 700; margin: 4px 0 6px; color: var(--fg); }
.plan .actions { margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.plan.featured { border-color: var(--accent); }

/* Footer */
footer.site { margin-top: 56px; background: var(--side); color: #cbd5e1; font-size: 15px; }
@media (prefers-color-scheme: light) { footer.site { background: #0f172a; } }
footer.site a { color: #e2e8f0; text-decoration: none; }
footer.site a:hover { color: #fff; text-decoration: underline; }
footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 24px; padding-top: 40px; padding-bottom: 24px; }
footer .cols > div:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { footer .cols > div:first-child { grid-column: auto; } }
footer .cols > div { display: flex; flex-direction: column; gap: 6px; }
footer .cols img { height: 28px; width: auto; align-self: flex-start; margin-bottom: 4px; }
footer .cols p { margin: 4px 0 0; }
footer h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: #a5b4fc; margin: 0 0 4px; }
footer .fine { border-top: 1px solid #1f2a4a; padding-top: 16px; padding-bottom: 28px; font-size: 13.5px; color: #94a3b8; }
footer .fine p { margin: 0; }

/* Language picker (no JavaScript: <details>) */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.langpick { position: relative; }
.langpick summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; padding: 3px 12px; font-weight: 400; }
.langpick summary::-webkit-details-marker { display: none; }
.langpick summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(45deg) translate(-2px, -2px); margin-left: 2px; }
.langpick[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.langpick summary:hover { border-color: #fff; }
.globe { width: 14px; height: 14px; border: 1.5px solid #fff; border-radius: 50%; position: relative; display: inline-block; }
.globe::before { content: ""; position: absolute; inset: 0 3px; border: 1.5px solid #fff; border-top: 0; border-bottom: 0; border-radius: 50%; }
.globe::after { content: ""; position: absolute; left: -1px; right: -1px; top: 50%; border-top: 1.5px solid #fff; }
.langpick ul { list-style: none; margin: 8px 0 0; padding: 6px; position: absolute; right: 0; z-index: 5; background: #1e1b4b; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.35); display: grid; grid-template-columns: 1fr 1fr; gap: 0 4px; min-width: 300px; }
.langpick li a { display: block; padding: 6px 10px; border-radius: 8px; border: 0; white-space: nowrap; }
.nav .langpick li a { border-bottom: 0; }
.langpick li a:hover { background: rgba(255,255,255,.12); }
.langpick li a[aria-current] { background: rgba(165,180,252,.25); font-weight: 600; }
@media (max-width: 899px) {
  .langpick summary { border: 0; border-radius: 0; padding: 10px 2px; width: 100%; }
  .langpick ul { position: static; box-shadow: none; min-width: 0; margin: 0 0 8px; }
}
footer .langs-foot { display: flex; flex-wrap: wrap; gap: 4px 14px; padding-bottom: 20px; font-size: 14px; color: #94a3b8; }
footer .langs-foot a[aria-current] { color: #a5b4fc; }

/* MaxZit additions */
.nav .login { border: 1px solid rgba(255,255,255,.6); border-radius: 999px; padding: 4px 14px; font-weight: 600; opacity: 1; }
.nav .login:hover { background: #fff; color: #312e81; border-bottom-color: rgba(255,255,255,.6); }
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card.product img { display: block; width: 40px; height: 40px; margin-bottom: 10px; }
.card .more { margin-top: 10px; color: var(--accent); font-weight: 600; }
.card.soon { border-style: dashed; }
.card.big { display: flex; gap: 20px; align-items: flex-start; padding: 24px; }
.card.big img { flex: none; width: 56px; height: 56px; margin: 4px 0 0; }
.card.big h2 { margin-bottom: 8px; }
.card.big ul { font-size: 16px; padding-left: 0; }
.card.big .cta { margin-top: 18px; }
@media (max-width: 639px) { .card.big { flex-direction: column; gap: 4px; padding: 18px; } }
.card h2 { font-size: 21px; margin: 0 0 8px; }
.card .cta { margin-top: 16px; }
.big-link { font-size: 20px; font-weight: 600; margin: 4px 0 8px !important; }
.cta-box { padding: 24px; border-radius: 14px; }
.cta-box h2 { margin-bottom: 8px; }
.cta-box p { margin: 0; }
.cta-box .cta { margin-top: 18px; }
@media (max-width: 899px) {
  .nav .login { border: 0; border-radius: 0; padding: 10px 2px; border-bottom: 1px solid rgba(255,255,255,.15); }
  .nav .login:hover { background: none; color: #fff; }
}
