/* NuviraHub website: light and professional, the app's petrol blue; dark theme
   follows the system. No external fonts or scripts. */
:root {
  color-scheme: light dark;
  --bg: #ffffff; --bg2: #f3f7f9; --fg: #17252b; --muted: #5a6b72; --line: #dbe4e8;
  --accent: #136e8c; --accent2: #0e5870; --accent-fg: #ffffff; --soft: #e2f0f5; --card: #ffffff;
  --code: #0f1e24; --code-fg: #d9e7ec; --shadow: 0 1px 2px rgba(16, 40, 50, .06), 0 8px 24px rgba(16, 40, 50, .06);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f171b; --bg2: #141f24; --fg: #e3ecef; --muted: #9db0b7; --line: #263a42;
    --accent: #4fb0cc; --accent2: #78c5db; --accent-fg: #071216; --soft: #17323b; --card: #16232a;
    --code: #0a1216; --shadow: none; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 0 0 .6rem; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 1rem; }
h3 { font-size: 1.12rem; margin: 0 0 .4rem; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 48rem; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 42rem; }
.center .lead { margin-left: auto; margin-right: auto; }
section { padding: 56px 0; }
.band { background: var(--bg2); }

.bar { background: var(--accent); color: var(--accent-fg); font-size: .92rem; padding: 7px 0; text-align: center; }
.bar a { color: inherit; font-weight: 600; }

.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: var(--fg); text-decoration: none; }
.menu { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.menu a { color: var(--fg); text-decoration: none; font-weight: 500; }
.menu a:hover, .menu a[aria-current] { color: var(--accent); }
.menu a.btn { color: var(--accent-fg); }
.menu-toggle { display: none; margin-left: auto; padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--fg); font: inherit; font-weight: 600; cursor: pointer; }
.langs { position: relative; }
.langs summary { list-style: none; cursor: pointer; text-transform: uppercase; font-weight: 600; font-size: .9rem; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; }
.langs summary::-webkit-details-marker { display: none; }
.langs ul { position: absolute; right: 0; top: 110%; margin: 0; padding: 6px; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); min-width: 9rem; }
.langs li a { display: block; padding: 6px 10px; border-radius: 6px; color: var(--fg); text-decoration: none; }
.langs li a:hover, .langs li a[aria-current] { background: var(--soft); }

.btn { display: inline-block; padding: 12px 22px; border-radius: 8px; background: var(--accent); color: var(--accent-fg); font-weight: 600; text-decoration: none; border: 2px solid var(--accent); }
.btn:hover { background: var(--accent2); border-color: var(--accent2); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--soft); }
.btn.small { padding: 7px 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4rem 0 .6rem; }
.actions.center { justify-content: center; }

.hero { padding: 72px 0 64px; background: linear-gradient(180deg, var(--soft), var(--bg)); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }

/* Drawing of the app's Connection page (not a screenshot). */
/* Screenshots of the app (light or dark like the visitor's system). */
.app-window { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); box-shadow: 0 20px 50px rgba(16, 40, 50, .18); }
.app-title { display: flex; align-items: center; gap: 8px; padding: 7px 12px; background: var(--bg2); border-bottom: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.app-title .dots { margin-left: auto; display: flex; gap: 6px; }
.app-title .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
picture img, .shot img { display: block; width: 100%; height: auto; }
.tour .grid2 { margin-top: 32px; gap: 40px 32px; }
.shot { margin: 0; }
.shot picture { display: block; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.shot figcaption { margin-top: 12px; color: var(--muted); font-size: .95rem; }
.shot figcaption strong { color: var(--fg); font-size: 1.02rem; }
.pro-tag { display: inline-block; margin-left: 6px; padding: 0 7px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); font-size: .74rem; font-weight: 700; vertical-align: 2px; }

.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid2.align { align-items: center; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.card.wide { margin-bottom: 24px; }
.card .icon { font-size: 1.6rem; margin-bottom: 8px; }
.card.accent { border: 2px solid var(--accent); }
.card.founders { background: var(--soft); border-color: transparent; }
.plan .price { font-weight: 700; color: var(--accent); margin: .2rem 0; }
.plan .price.big { font-size: 1.6rem; }
.ticks { list-style: none; padding: 0; margin: 1rem 0; }
.ticks li { padding: 6px 0 6px 28px; position: relative; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.chips { list-style: none; padding: 0; margin: 1.5rem auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 60rem; }
.chips li { padding: 8px 14px; border-radius: 999px; background: var(--soft); font-weight: 500; }
.chips li.pro { border: 1px solid var(--accent); background: transparent; }
.chips li.pro::after { content: " Pro"; color: var(--accent); font-size: .78rem; font-weight: 700; }

.steps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; box-shadow: var(--shadow); }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); font-weight: 700; margin-bottom: 10px; }
.note-box { border-left: 4px solid var(--accent); background: var(--card); padding: 18px 22px; border-radius: 0 10px 10px 0; margin: 24px 0; }
.note-box p { margin-bottom: 0; }

/* Legal texts: long reading, numbered sections. */
.legal h2 { font-size: 1.3rem; margin: 2.2rem 0 .7rem; }
.legal h3 { margin: 1.5rem 0 .5rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin: .35rem 0; }
.legal code { font-size: .9em; overflow-wrap: anywhere; }
.page-head { padding: 56px 0 8px; background: linear-gradient(180deg, var(--soft), var(--bg)); }
.table { overflow-x: auto; }
table.features { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
table.features th, table.features td { padding: 11px 16px; border-bottom: 1px solid var(--line); text-align: left; }
table.features td:nth-child(n+2), table.features thead th:nth-child(n+2) { text-align: center; width: 5.5rem; font-weight: 700; color: var(--accent); }
table.features thead th { background: var(--bg2); }
table.features.numbers td:nth-child(n+2), table.features.numbers thead th:nth-child(n+2) { width: 9rem; }
.perf .grid3 { margin-top: 28px; }
.perf-sub { margin-top: 40px; }
.perf-notes { margin-top: 8px; gap: 0 24px; }
.perf-notes .note-box { margin: 16px 0 0; }
table.features tr.group th { background: var(--soft); font-size: .92rem; text-transform: uppercase; letter-spacing: .04em; }

.code { position: relative; }
pre { background: var(--code); color: var(--code-fg); padding: 16px 18px; border-radius: 10px; overflow-x: auto; font: .9rem/1.5 ui-monospace, Consolas, monospace; }
pre.cmd { padding: 10px 18px; }
.copy { position: absolute; top: 10px; right: 10px; padding: 4px 10px; border-radius: 6px; border: 1px solid #34454d; background: #1b2329; color: #d9e7ec; cursor: pointer; font: inherit; font-size: .8rem; }

.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: .6rem 0 0; color: var(--muted); }
.guide h2 { font-size: 1.3rem; margin: 2.4rem 0 .7rem; scroll-margin-top: 88px; }
.guide ol, .guide ul { padding-left: 1.3rem; }
.guide li { margin: .4rem 0; }
.guide code { font-size: .9em; overflow-wrap: anywhere; background: var(--soft); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; }
.guide .note-box { margin: 1rem 0 0; }
.guide .note-box p { margin: 0; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 20px; }
.toc ol { columns: 2; column-gap: 32px; margin: 0; }
.toc li { margin: 0; padding: .2rem 0; break-inside: avoid; }
@media (max-width: 600px) { .toc ol { columns: 1; } }

.foot { background: var(--bg2); border-top: 1px solid var(--line); padding: 40px 0 24px; margin-top: 24px; font-size: .95rem; }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.foot h3 { font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.foot .cols div a:not(.brand) { display: block; color: var(--fg); text-decoration: none; padding: 3px 0; }
.foot .cols div a:hover { color: var(--accent); }
.foot .fine { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

@media (max-width: 900px) {
  .hero-grid, .grid2 { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .menu-toggle { display: block; }
  .menu { display: none; }
  .top.open .menu { display: flex; flex-direction: column; align-items: stretch; gap: 4px; position: absolute; left: 0; right: 0; top: 64px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 16px; box-shadow: var(--shadow); }
  .top.open .menu a { padding: 10px 0; }
  .top.open .menu a.btn { padding: 10px 14px; text-align: center; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid4, .grid3 { grid-template-columns: 1fr; }
  section { padding: 40px 0; }
}
