/* VpsPilot site styles. Shared by every page; no scripts, no inline styles (strict CSP). */
:root {
  --bg: #0E1116;
  --surface: #161B22;
  --border: #2A313A;
  --border-soft: #1E242C;
  --text: #E6EDF3;
  --text-2: #C9D1D9;
  --muted: #9BA6B2;
  --accent: #3DD68C;
  --accent-bg: #12301F;
  --accent-border: #2E6B4F;
  --accent-text: #C6F0DA;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 16px;
  --wide: 1120px;
  --prose: 72ch;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: no-preference) {
  a, .btn { transition: color .15s, background-color .15s, border-color .15s; }
}

h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 700; }
h1 { font-size: 34px; letter-spacing: -0.03em; }
h2 { font-size: 26px; letter-spacing: -0.02em; }
h3 { font-size: 17px; font-weight: 600; line-height: 1.3; }
p { margin: 0; }
strong { color: var(--text); }
@media (min-width: 720px) { h1 { font-size: 48px; } h2 { font-size: 32px; } }

/* Layout shell: full-width bars, content centred to --wide with a gutter */
body > header, body > main, body > footer {
  width: 100%;
  padding-inline: max(var(--gutter), calc((100% - var(--wide)) / 2 + var(--gutter)));
}
body > main { flex: 1; padding-block: 24px 48px; display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 720px) { body > main { padding-block: 48px 72px; gap: 48px; } }
main > section { display: flex; flex-direction: column; gap: 12px; }
main ul { margin: 0; padding-left: 1.25em; display: flex; flex-direction: column; gap: 8px; color: var(--text-2); }
main p { color: var(--muted); }
main > p, main > section p { max-width: var(--prose); }

/* Header and nav */
body > header { padding-block: 14px 0; display: flex; flex-direction: column; gap: 6px; }
@media (min-width: 720px) { body > header { padding-block: 20px; flex-direction: row; align-items: center; gap: 24px; } }
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; align-self: flex-start;
  color: var(--text); text-decoration: none; font-size: 18px; font-weight: 700;
}
.brand:hover { color: var(--text); }
.brand::before {
  content: ""; width: 28px; height: 28px; flex: none; border-radius: 8px;
  background: var(--accent-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M8 9l5 5-5 5M15 20h6' fill='none' stroke='%233DD68C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 28px no-repeat;
  border: 1px solid var(--accent-border);
}
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0; }
nav a {
  min-height: 44px; display: inline-flex; align-items: center; padding: 0 10px;
  font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none;
}
nav a:hover, nav a[aria-current="page"] { color: var(--text); }
nav a[aria-current="page"] { font-weight: 600; }
body > header nav, body > footer nav { margin-inline: -10px; }
@media (min-width: 720px) {
  body > header nav { margin: 0; }
  body > header nav a { font-size: 15px; padding: 0 12px; }
  body > header nav ul { gap: 4px; }
}

/* Footer */
body > footer {
  border-top: 1px solid var(--border-soft); padding-block: 24px 32px;
  display: flex; flex-direction: column; gap: 10px;
}
body > footer p { font-size: 13px; line-height: 1.5; color: var(--muted); }
body > footer p a { color: var(--text-2); }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn {
  min-height: 48px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--border);
  display: inline-flex; align-items: center; font-weight: 600; font-size: 15px;
  color: var(--text); text-decoration: none;
}
.btn:hover { color: var(--text); border-color: var(--muted); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--accent-text); border-color: var(--accent-text); color: var(--bg); }

/* Home */
.hero { gap: 18px; }
.hero h1 { line-height: 1.08; }
.hero p { font-size: 17px; line-height: 1.55; }
.hero p.actions { font-size: 15px; }
@media (min-width: 720px) {
  .hero { padding-block: 16px; }
  .hero h1 { font-size: 56px; max-width: 18ch; }
  .hero p { font-size: 19px; }
  .hero p.actions { font-size: 15px; }
}
.tiles { list-style: none; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tiles li {
  padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border);
  color: var(--text-2); font-size: 15px; line-height: 1.55;
}
.callout, .band { padding: 22px; border-radius: 20px; gap: 8px; }
.callout { background: var(--accent-bg); border: 1px solid var(--accent-border); }
.callout p { color: var(--accent-text); }
.callout h2 { font-size: 22px; }
.band { border: 1px solid var(--border); background: var(--surface); }
@media (min-width: 720px) { .callout, .band { padding: 32px; } }

/* Feature cards (features page) */
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; }
.grid > h1 { grid-column: 1 / -1; margin-bottom: 12px; }
.grid > section { padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.grid > section h2 { font-size: 17px; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.grid > section p { font-size: 14px; line-height: 1.55; }
@media (min-width: 480px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }

/* Pricing */
.narrow { max-width: calc(800px + 2 * var(--gutter)); margin-inline: auto; }
.plans { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 720px) { .plans { flex-direction: row; } }
.plans > section {
  flex: 1; min-width: 0; padding: 24px; border-radius: 20px; background: var(--surface);
  border: 1px solid var(--border); gap: 12px; display: flex; flex-direction: column;
}
.plans > section.best { border: 2px solid var(--accent); }
.plans h2 { font-size: 18px; font-weight: 600; letter-spacing: 0; }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.badge { font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-bg); padding: 3px 10px; border-radius: 10px; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price .amount { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); line-height: 1.1; }
.price .per { font-size: 15px; color: var(--muted); }
.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 28px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5 9-10' fill='none' stroke='%233DD68C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
main > .note { font-size: 14px; line-height: 1.5; }
.faq { gap: 0; }
.faq > h2 { font-size: 24px; margin-bottom: 6px; }
.qa { padding: 18px 0; border-top: 1px solid var(--border-soft); display: flex; flex-direction: column; gap: 6px; }
.qa h3 { font-size: 16px; }
.qa p { font-size: 15px; line-height: 1.6; }

/* Icons */
.icon { width: 24px; height: 24px; flex: none; color: var(--accent); }
.icon-lg { width: 32px; height: 32px; }
.tiles li, .grid > section { display: flex; flex-direction: column; gap: 8px; }
.tiles h3 { margin-top: 4px; color: var(--text); }
.tiles p { font-size: 14px; line-height: 1.55; color: var(--muted); }

/* Hero phone mockup (decorative, static markup) */
.hero { gap: 36px; }
.hero-copy { display: flex; flex-direction: column; gap: 18px; flex: 1; min-width: 0; }
.hero .trial { font-size: 14px; }
.phone {
  width: 266px; max-width: 100%; flex: none; padding: 10px; border-radius: 36px;
  background: var(--border-soft); border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.phone-screen { border-radius: 28px; background: var(--bg); padding: 18px 12px 22px; display: flex; flex-direction: column; gap: 8px; }
.phone-title { font-size: 20px; font-weight: 700; padding: 0 4px 4px; }
.srv { padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 3px; }
.srv.on { border-color: var(--accent-border); }
.srv-name { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.pill { font-size: 10px; font-weight: 600; color: var(--accent); background: var(--accent-bg); padding: 1px 6px; border-radius: 8px; }
.mono, .term { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.mono { font-size: 11px; color: var(--muted); }
.term { margin-top: 6px; padding: 10px 12px; border-radius: 12px; background: #0A0D11; font-size: 11px; line-height: 1.6; color: var(--text-2); overflow-wrap: anywhere; }
.term .g { color: var(--accent); }
@media (min-width: 720px) { .hero { flex-direction: row; align-items: center; gap: 64px; } }

/* Prose pages: legal, support, docs. Narrow reading column, clear heading hierarchy. */
.prose { max-width: calc(var(--prose) + 2 * var(--gutter)); margin-inline: auto; gap: 0; }
.prose h1 { font-size: 32px; line-height: 1.1; letter-spacing: -0.02em; }
.prose h2 { font-size: 19px; line-height: 1.3; letter-spacing: 0; margin: 0 0 8px; }
.prose h3 { font-size: 17px; margin: 0 0 4px; }
@media (min-width: 720px) { .prose h1 { font-size: 44px; } .prose h2 { font-size: 22px; } }
.prose p, .prose li { font-size: 16px; line-height: 1.7; color: var(--text-2); max-width: none; }
@media (min-width: 720px) { .prose p, .prose li { font-size: 17px; } }
.prose p { margin-top: 18px; }
.prose h1 + p, .prose h1 + ul { margin-top: 10px; }
.prose section { display: block; margin-top: 28px; }
.prose section > h2 + p, .prose section > h3 + p { margin-top: 0; }
.prose ul { margin-top: 12px; }
.prose > h2 { margin-top: 32px; }
.prose article > h1 + p { font-size: 14px; color: var(--muted); }
.prose article > h1 + p + p {
  margin-top: 24px; padding: 16px 18px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--border); font-size: 15px; line-height: 1.6;
}

body > main.narrow, body > main.prose { padding-inline: var(--gutter); }
