/* nexorpanel.com — same palette as the panel: accent #2166bd, status colours
   with an icon and a label, a dark scheme with its own values. */
:root {
  --bg: #ffffff;
  --bg-alt: #f3f6fa;
  --surface: #ffffff;
  --text: #121a26;
  --muted: #566274;
  --border: #dbe2eb;
  --accent: #2166bd;
  --accent-hover: #1a559e;
  --accent-soft: #e7f0fb;
  --on-accent: #ffffff;
  --ok: #0b7a0b;
  --ok-soft: #e5f6e5;
  --warn: #8a5a00;
  --warn-soft: #fff4dc;
  --err: #b42323;
  --err-soft: #fde8e8;
  --code-bg: #0f1724;
  --code-text: #e6edf6;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .08);
  --radius: 12px;
  --wrap: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e141d;
    --bg-alt: #121a25;
    --surface: #161f2c;
    --text: #e7edf5;
    --muted: #a0adbf;
    --border: #273345;
    --accent: #5b9cf0;
    --accent-hover: #7db1f5;
    --accent-soft: #17263b;
    --on-accent: #08111d;
    --ok: #5fd35f;
    --ok-soft: #12291a;
    --warn: #f2b84b;
    --warn-soft: #2d2412;
    --err: #ff8080;
    --err-soft: #331618;
    --code-bg: #0a0f17;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
code { font: .92em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--accent-soft); padding: .1em .35em; border-radius: 5px; overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.22em; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 820px; }
.wrap.narrow { max-width: 868px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.fine { font-size: .85rem; color: var(--muted); margin-top: 1em; }
.fine .i { margin-right: .35em; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: .6em; }
.lead { font-size: 1.15rem; color: var(--muted); }
.h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); letter-spacing: -.02em; }
.h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); letter-spacing: -.015em; }
.h3 { font-size: 1.25rem; margin-top: 1.8em; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 42px; padding: .55em 1.1em; border-radius: 10px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 600; text-decoration: none;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn-lg { min-height: 50px; padding: .7em 1.4em; font-size: 1.05rem; }
.btn-sm { min-height: 32px; padding: .25em .8em; font-size: .9rem; }
.btn-block { display: flex; width: 100%; white-space: normal; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-alt); color: var(--text); border-color: var(--muted); }
.btn-outline { background: transparent; color: var(--accent); }
.btn-outline:hover { background: var(--accent-soft); color: var(--accent); }
.btn-disabled, .btn-disabled:hover { background: var(--bg-alt); border-color: var(--border); color: var(--muted); cursor: default; margin: 0; }
.btn-google { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-google:hover { background: var(--bg-alt); color: var(--text); border-color: var(--muted); }
.link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 1.2em 0; }
.actions form { margin: 0; }
form.inline { display: inline; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.top-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.menu-btn { order: 3; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 10px; background: none; color: var(--text); cursor: pointer; flex: none; }
.menu-btn .i { width: 22px; height: 22px; }
.nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 16px 16px; flex-direction: column; box-shadow: var(--shadow); }
.nav.open { display: flex; }
.nav a { padding: 12px 4px; color: var(--text); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--border); }
.nav a:last-child { border-bottom: 0; }
.nav a[aria-current] { color: var(--accent); }
.top-end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
@media (max-width: 999px) { .top-end { order: 2; } }
@media (min-width: 1000px) {
  .menu-btn { display: none; }
  .nav, .nav.open { position: static; display: flex; flex-direction: row; gap: 4px; padding: 0; background: none; border: 0; box-shadow: none; margin-left: 12px; }
  .nav a { padding: 8px 12px; border: 0; border-radius: 8px; font-size: .95rem; color: var(--muted); }
  .nav a:hover, .nav a[aria-current] { color: var(--text); background: var(--bg-alt); }
}
.langs { position: relative; }
.langs > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border); text-transform: uppercase; font-size: .85rem; font-weight: 600; }
.langs > summary::-webkit-details-marker { display: none; }
.langs ul { position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); min-width: 170px; z-index: 30; }
.langs a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--text); text-decoration: none; }
.langs a:hover { background: var(--bg-alt); }
.langs a[aria-current] { font-weight: 700; color: var(--accent); }
@media (max-width: 420px) { .top-end .btn-ghost { padding: .55em .7em; } .brand span { display: none; } }

/* notices */
.notice { display: flex; gap: .6em; align-items: flex-start; padding: 12px 16px; border-radius: 10px; background: var(--accent-soft); border-left: 4px solid var(--accent); margin: 20px 0; }
.notice-ok { background: var(--ok-soft); border-color: var(--ok); }
.notice-ok .i { color: var(--ok); }
.notice-err { background: var(--err-soft); border-color: var(--err); }
.notice-err .i { color: var(--err); }
.notice .i { margin-top: .2em; }

/* hero */
.hero { padding: 48px 0 24px; background: radial-gradient(1000px 500px at 85% -10%, var(--accent-soft), transparent 70%); }
.hero-in { display: grid; gap: 40px; align-items: center; }
.hero-in > *, .service > *, .two > * { min-width: 0; }
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); letter-spacing: -.025em; line-height: 1.08; }
.hero .lead { max-width: 36em; }
@media (min-width: 1000px) { .hero { padding: 72px 0 32px; } .hero-in { grid-template-columns: 1fr 1.15fr; } }
.frame { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--surface); }
.hero-shot .frame { transform: perspective(1600px) rotateY(-4deg); transition: transform .3s; }
.hero-shot .frame:hover { transform: none; }
@media (prefers-reduced-motion: reduce) { .hero-shot .frame { transform: none; } html { scroll-behavior: auto; } }
.strip { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; color: var(--muted); font-weight: 500; }
.strip li { display: inline-flex; align-items: center; gap: .45em; }
.strip .i { color: var(--accent); }

/* command box */
.cmd { display: flex; align-items: center; gap: 10px; background: var(--code-bg); color: var(--code-text); border-radius: 10px; padding: 8px 8px 8px 14px; margin: 1em 0; max-width: 100%; }
.cmd code { background: none; color: inherit; padding: 0; flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-size: .9rem; scrollbar-width: thin; }
.cmd-prompt { color: #7cc0ff; font-family: ui-monospace, monospace; user-select: none; }
.cmd-copy { display: inline-flex; align-items: center; gap: 6px; flex: none; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; padding: 6px 10px; font: inherit; font-size: .85rem; cursor: pointer; }
.cmd-copy:hover { background: rgba(255,255,255,.18); }
.cmd-copy.done { background: #0b7a0b; border-color: #0b7a0b; }

/* sections */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.page-head { padding-top: 48px; }
.features { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 36px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.feature h3 { font-size: 1.1rem; margin-top: .8em; }
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }
.feature-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); flex: none; }
.feature-icon .i { width: 24px; height: 24px; }
.fi-lock, .fi-shield { color: #0b8a4a; background: color-mix(in srgb, #0b8a4a 12%, transparent); }
.fi-mail, .fi-users { color: #b5338a; background: color-mix(in srgb, #b5338a 12%, transparent); }
.fi-db, .fi-backup { color: #0f7f95; background: color-mix(in srgb, #0f7f95 12%, transparent); }
.fi-folder, .fi-wrench { color: #b06a00; background: color-mix(in srgb, #e69500 14%, transparent); }
.fi-chart, .fi-terminal { color: #6b46c1; background: color-mix(in srgb, #6b46c1 12%, transparent); }
@media (prefers-color-scheme: dark) {
  .fi-lock, .fi-shield { color: #5fd38f; } .fi-mail, .fi-users { color: #f08ccc; } .fi-db, .fi-backup { color: #5fd0e6; }
  .fi-folder, .fi-wrench { color: #f2b84b; } .fi-chart, .fi-terminal { color: #b39cf5; }
}

.gallery { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin: 36px 0; }
.shot { margin: 0; }
.shot figcaption { color: var(--muted); font-size: .92rem; margin-top: 10px; }
.shot .frame { transition: transform .2s, box-shadow .2s; }
.shot .frame:hover { transform: translateY(-3px); }

.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.steps p { color: var(--muted); margin: 0; }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; margin-bottom: 12px; }
.steps-compact { grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
.steps-compact li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; }
.steps-compact .step-n { margin: 0; flex: none; }

/* pricing */
.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 36px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 26px 22px 22px; }
.plan h3 { font-size: 1.3rem; margin: 0; }
.plan > .muted { margin: .2em 0 0; font-size: .95rem; }
.plan-popular { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan-current { border-color: var(--ok); }
.badge { position: absolute; top: -13px; left: 22px; margin: 0; background: var(--accent); color: var(--on-accent); font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.price { margin: 18px 0 2px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.amount { font-size: 2.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.per { color: var(--muted); }
.save { color: var(--ok); font-weight: 600; font-size: .9rem; margin: 0 0 6px; }
.ticks { list-style: none; padding: 0; margin: 14px 0 20px; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .i { color: var(--ok); margin-top: .2em; }
.plan-cta { margin-top: auto; }
.plan-cta form { margin: 0; }

.cta-band { display: grid; gap: 20px; align-items: center; background: linear-gradient(135deg, #0f1b2d, #1b3a66); color: #fff; border-radius: 18px; padding: 30px; }
.cta-band h2 { font-size: 1.6rem; }
.cta-band p { color: #c5d6ee; margin: 0; }
.cta-band .btn { background: #fff; color: #10223d; border-color: #fff; }
.cta-band .btn:hover { background: #e7f0fb; }
@media (min-width: 860px) { .cta-band { grid-template-columns: auto 1fr auto; padding: 36px 40px; } }

.faq { margin-top: 28px; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }

/* cards, forms, tables */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin: 20px 0; }
.card .h2, .card .h3 { margin-top: 0; }
.row-between { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.row-between form { margin: 0; }
.form { display: grid; gap: 6px; }
.form label { font-weight: 600; font-size: .95rem; margin-top: 10px; }
.form input, .form select, .form textarea { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; min-height: 44px; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 0; }
.form .btn { margin-top: 12px; }
.service { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .service { grid-template-columns: 1.1fr .9fr; } .service .card { position: sticky; top: 88px; margin-top: 0; } }
.login { max-width: 440px; margin: 0 auto; text-align: center; }
.login svg { margin: 0 auto 14px; }
.login .form { text-align: left; margin-top: 24px; border-top: 1px solid var(--border); padding-top: 12px; }
.table-wrap { overflow-x: auto; margin: 12px 0; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .85rem; }
td form { margin: 0; }
.files a { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; white-space: nowrap; }
.sha { font-size: .75rem; word-break: break-all; background: none; padding: 0; color: var(--muted); }
.notes { white-space: pre-wrap; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; padding: 14px; font-size: .9rem; overflow-x: auto; }
.notes-cell { max-width: 280px; white-space: pre-wrap; }
.inline-form { display: flex; gap: 6px; }
.inline-form select { font: inherit; padding: 4px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg); color: var(--text); }
.opts { display: grid; gap: 6px 18px; grid-template-columns: 1fr; }
.opts dd { margin: 0 0 10px; color: var(--muted); }
@media (min-width: 720px) { .opts { grid-template-columns: max-content 1fr; } .opts dd { margin: 0; } }
.two { display: grid; gap: 0 32px; }
@media (min-width: 720px) { .two { grid-template-columns: 1fr 1fr; } }
.older { padding-left: 1.2em; }
.older li { margin-bottom: 6px; overflow-wrap: anywhere; }
.pill { display: inline-block; font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: var(--bg-alt); color: var(--muted); border: 1px solid var(--border); }
.pill-active, .pill-trialing, .pill-paid, .pill-done { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.pill-past_due, .pill-new, .pill-in_progress, .pill-incomplete { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill-canceled, .pill-cancelled, .pill-unpaid { background: var(--err-soft); color: var(--err); border-color: transparent; }
.stats { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.stats li { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 20px; }
.stats strong { font-size: 1.6rem; display: block; }

.prose h2 { font-size: 1.25rem; margin-top: 1.8em; }
.prose li { margin-bottom: .5em; }

.notfound .big404 { font-size: clamp(5rem, 18vw, 9rem); font-weight: 900; line-height: 1; margin: 0; letter-spacing: -.04em; background: linear-gradient(135deg, #2f7ad8, #7cc0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.links-inline { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }

/* footer */
.foot { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 48px 0 24px; margin-top: 0; }
.foot-in { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.foot-brand { grid-column: 1 / -1; max-width: 360px; }
@media (min-width: 900px) { .foot-in { grid-template-columns: 2fr 1fr 1fr 1fr; } .foot-brand { grid-column: auto; } }
.foot-brand p { color: var(--muted); font-size: .92rem; margin-top: 12px; }
.foot nav { display: flex; flex-direction: column; gap: 8px; }
.foot nav h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 4px; }
.foot nav a { color: var(--text); text-decoration: none; font-size: .95rem; }
.foot nav a:hover { color: var(--accent); }
.foot nav a[aria-current] { font-weight: 700; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem; }

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1400px, 96vw); max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(5, 10, 18, .82); }
.lightbox img { max-height: 86vh; width: auto; margin: 0 auto; border-radius: 10px; }
.lightbox-cap { color: #e7edf5; text-align: center; margin: 12px 0 0; }
.lightbox-close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: #121a26; cursor: pointer; display: grid; place-items: center; }
