/* NomadVNC pages on greg.tech. Self-contained: no web fonts, no scripts, no analytics. */
:root {
  color-scheme: light dark;
  --bg: #fbfbfc;
  --surface: #ffffff;
  --surface-2: #f2f3f6;
  --text: #0e1525;
  --muted: #5d6576;
  --faint: #8a91a0;
  --accent: #2563d9;
  --accent-strong: #1b4fb8;
  --on-accent: #ffffff;
  --border: rgba(14, 21, 37, 0.09);
  --border-strong: rgba(14, 21, 37, 0.15);
  --danger: #c4372f;
  --danger-soft: rgba(196, 55, 47, 0.07);
  --stage: #0b1220;
  --radius: 12px;
  --radius-sm: 8px;
  --max: 64rem;
  --prose: 42rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0d14;
    --surface: #10151f;
    --surface-2: #161c28;
    --text: #e8ebf1;
    --muted: #9aa2b2;
    --faint: #6f7787;
    --accent: #6ea4ff;
    --accent-strong: #94bcff;
    --on-accent: #08101f;
    --border: rgba(232, 235, 241, 0.08);
    --border-strong: rgba(232, 235, 241, 0.15);
    --danger: #ef6b62;
    --danger-soft: rgba(239, 107, 98, 0.09);
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }
code {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: var(--surface-2);
  border-radius: 5px;
  padding: 0.1em 0.35em;
  overflow-wrap: anywhere;
}
strong { font-weight: 600; }
h1, h2, h3 { line-height: 1.15; font-weight: 650; }
h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.25rem); letter-spacing: -0.035em; margin: 0 0 1.1rem; }
h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem); letter-spacing: -0.025em; margin: 0 0 0.75rem; }
h3 { font-size: 1rem; letter-spacing: -0.01em; margin: 0 0 0.3rem; }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; margin: 0 0 1rem; }
li + li { margin-top: 0.35rem; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.mt { margin-top: 1rem; }
.skip-link { position: absolute; left: 1rem; top: -3rem; z-index: 20; background: var(--surface); padding: 0.5rem 0.9rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 0.75rem; }

/* Layout */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.prose { max-width: var(--prose); }
main { padding-bottom: 5rem; }
.section { padding-top: 5.5rem; }
.section-head { margin-bottom: 2rem; max-width: var(--prose); }
.section-head p { color: var(--muted); margin: 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; gap: 1rem; min-height: 3.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--text); text-decoration: none; font-weight: 650; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.brand img { width: 26px; height: 26px; border-radius: 6px; }
.nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; font-size: 0.92rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 30rem) {
  .brand span { display: none; }
  .nav { gap: 1.1rem; }
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 600; font-size: 0.95rem; line-height: 1.2;
  padding: 0.72rem 1.15rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  background: var(--accent); color: var(--on-accent);
  transition: background-color 0.15s ease;
}
.button:hover { background: var(--accent-strong); color: var(--on-accent); }
.button.secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.button.secondary:hover { background: var(--surface-2); color: var(--text); }
.button.danger { background: var(--danger); color: #fff; }
.button.danger:hover { background: color-mix(in srgb, var(--danger) 88%, #000); }

/* Landing hero */
.hero { padding: 5rem 0 0; }
.hero h1 { max-width: 20ch; text-wrap: balance; }
h1, h2 { text-wrap: balance; }
.lede { font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem); color: var(--muted); max-width: 36rem; margin-bottom: 2rem; }
.meta { margin: 1.4rem 0 0; font-size: 0.88rem; color: var(--faint); }
.meta span + span::before { content: "\00b7"; margin: 0 0.55rem; }
.stage {
  margin: 3.5rem 0 0;
  background: var(--stage);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--border), 0 24px 60px -24px rgba(14, 21, 37, 0.35);
}
.stage img { width: 100%; }

/* Feature list */
.features { display: grid; gap: 2.25rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.features > div { border-top: 1px solid var(--border-strong); padding-top: 1.1rem; }
.features p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* Split: text beside the phone */
.split { display: grid; gap: 3rem; grid-template-columns: 1fr minmax(0, 17rem); align-items: center; }
.split .phone { justify-self: center; width: 100%; max-width: 17rem; border-radius: 28px; overflow: hidden; background: var(--stage); box-shadow: 0 0 0 1px var(--border), 0 24px 50px -24px rgba(14, 21, 37, 0.4); }
.split ul { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.split li { padding: 0.75rem 0; border-top: 1px solid var(--border); margin: 0; color: var(--muted); }
.split li strong { color: var(--text); }
@media (max-width: 46rem) {
  .split { grid-template-columns: 1fr; }
  .split .phone { max-width: 14rem; }
}

/* Download table */
.downloads { border-top: 1px solid var(--border-strong); }
.downloads > div {
  display: grid; gap: 0.35rem 2rem; align-items: baseline;
  grid-template-columns: 11rem 12rem 1fr;
  padding: 1.1rem 0; border-bottom: 1px solid var(--border);
}
.downloads .platform { font-weight: 600; }
.downloads .platform small { display: block; font-weight: 400; font-size: 0.85rem; color: var(--faint); }
.downloads .files { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; font-size: 0.95rem; }
.downloads .files a { font-weight: 600; text-decoration: none; }
.downloads .files a:hover { text-decoration: underline; }
.downloads .files .none { color: var(--faint); }
.downloads .note { color: var(--muted); font-size: 0.93rem; margin: 0; }
@media (max-width: 46rem) {
  .downloads > div { grid-template-columns: 1fr; }
}

/* Two columns of plain content */
.columns { display: grid; gap: 3rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.plain-links { list-style: none; padding: 0; margin: 0; }
.plain-links li { margin: 0; border-top: 1px solid var(--border); }
.plain-links li:last-child { border-bottom: 1px solid var(--border); }
.plain-links a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; color: var(--text); text-decoration: none; }
.plain-links a::after { content: "\2192"; color: var(--faint); transition: transform 0.15s ease; }
.plain-links a:hover { color: var(--accent); }
.plain-links a:hover::after { transform: translateX(3px); color: var(--accent); }

/* Inner page heads */
.page-head { padding: 4rem 0 0; }
.page-head h1 { font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.5rem); margin-bottom: 0.75rem; }
.page-head .lede { margin-bottom: 0; }
.page-head + .section { padding-top: 3rem; }
.dateline { font-size: 0.88rem; color: var(--faint); margin: 0 0 0.6rem; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.35rem 1.5rem; }
.card > :last-child { margin-bottom: 0; }

/* Link lists (support guides, deletion steps) */
.link-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border-strong); }
.link-list li { margin: 0; border-bottom: 1px solid var(--border); }
.link-list a { display: grid; grid-template-columns: 1fr auto; gap: 0.1rem 1rem; align-items: center; padding: 0.95rem 0; text-decoration: none; color: var(--text); }
.link-list a:hover .title { color: var(--accent); }
.link-list .title { font-weight: 600; }
.link-list .desc { grid-column: 1; color: var(--muted); font-size: 0.92rem; }
.link-list .row { display: grid; gap: 0.1rem; padding: 0.95rem 0; }
.link-list a::after { content: "\2192"; grid-column: 2; grid-row: 1 / span 2; color: var(--faint); transition: transform 0.15s ease; }
.link-list a:hover::after { transform: translateX(3px); color: var(--accent); }

/* Callouts */
.callout { display: flex; gap: 0.85rem; align-items: flex-start; border-radius: var(--radius); padding: 1.1rem 1.25rem; background: var(--surface-2); }
.callout p { margin: 0; }
.callout svg { width: 1.2rem; height: 1.2rem; flex: none; margin-top: 0.2rem; }
.callout.danger { background: var(--danger-soft); }
.callout.danger svg { color: var(--danger); }

/* FAQ */
.faq { border-top: 1px solid var(--border-strong); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 600; padding: 1.05rem 0;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-weight: 400; font-size: 1.3rem; line-height: 1; color: var(--faint); }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--accent); }
.faq .answer { padding: 0 0 1.1rem; color: var(--muted); }
.faq .answer > :last-child { margin-bottom: 0; }
.faq .answer strong { color: var(--text); }

/* Policy documents */
.doc { max-width: var(--prose); }
.doc h2 { font-size: 1.3rem; margin-top: 2.75rem; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin-top: 1.5rem; }
.doc .card { margin: 0 0 1.25rem; }
.toc { display: flex; flex-wrap: wrap; gap: 0.3rem 1.25rem; list-style: none; padding: 0; margin: 1.5rem 0 0; font-size: 0.9rem; }
.toc li { margin: 0; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.checks li { margin: 0; }

/* Tables */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--border-strong); margin: 0 0 1.25rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
th, td { text-align: left; vertical-align: top; padding: 0.75rem 1rem 0.75rem 0; }
th { font-size: 0.8rem; font-weight: 600; color: var(--faint); }
td { border-top: 1px solid var(--border); }
td:first-child { width: 42%; }
td:last-child { color: var(--muted); }

/* Forms */
.form-card { max-width: 30rem; }
label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.4rem; }
input[type="email"] {
  width: 100%; font: inherit; font-size: 1rem; padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--bg); color: var(--text); margin-bottom: 1rem;
}
input[type="email"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.form-card .button { width: 100%; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 2rem 0 2.5rem; font-size: 0.86rem; color: var(--faint); }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
