/* LAN Console pages on wisphero.com (/lanconsole/ and /lanconsole/privacy/).
   Same Barlow fonts and ink/mist base as the WISPHero site; LAN Console's own Chrome-style blue is the accent.
   No framework, no inline styles, no scripts (the site's CSP allows none inline). Mobile first. */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../../fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"); }

:root {
  color-scheme: light dark;
  --ink: #14222b;
  --mist: #f2f5f6;
  --surface: #ffffff;
  --omni: #edf2fa;          /* Chrome's address-bar fill, as LAN Console draws it */
  --blue: #0b57d0;          /* LAN Console primary */
  --blue-soft: #d3e3fd;     /* LAN Console tab strip */
  --muted: #4b5f68;
  --line: #d3dcdf;
  --warn: #8a5a00;
  --warn-bg: #fdf1d8;
  --bad: #c4372a;
  --shot-edge: #c9d3d8;
  --shadow: 0 1px 2px rgb(20 34 43 / 0.06), 0 18px 48px -12px rgb(20 34 43 / 0.22);
  --bg: var(--mist);
  --text: var(--ink);

  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
  /* modular scale, ratio ~1.25, fluid between phone and wide desktop */
  --s-1: clamp(0.94rem, 0.9rem + 0.15vw, 1rem);
  --s0: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --s1: clamp(1.25rem, 1.12rem + 0.55vw, 1.5rem);
  --s2: clamp(1.55rem, 1.25rem + 1.3vw, 2.25rem);
  --s3: clamp(2.1rem, 1.45rem + 2.9vw, 3.75rem);
  --ip: clamp(1.9rem, 1rem + 5.2vw, 5.25rem);
  --gutter: clamp(1rem, 4vw, 3rem);
  --wide: 96rem;
  --measure: 38rem;
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10181e;
    --surface: #17222a;
    --omni: #22303a;
    --text: #e3e8ea;
    --muted: #a9b8bf;
    --line: #2c3b45;
    --blue: #a8c7fa;
    --blue-soft: #1f3550;
    --warn: #f2c46b;
    --warn-bg: #3a2d10;
    --bad: #f2867a;
    --shot-edge: #2c3b45;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 18px 48px -12px rgb(0 0 0 / 0.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--s0) / 1.55 var(--font-body);
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.1; letter-spacing: -0.005em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding-left: 1.2em; }
li + li { margin-top: 0.35em; }
strong { font-weight: 500; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.9em; background: var(--omni); padding: 0.08em 0.35em; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 1rem 1.5rem; min-height: 3.75rem; flex-wrap: wrap; padding-block: 0.5rem; }
.brand { display: flex; align-items: baseline; gap: 0.55rem; text-decoration: none; color: var(--text); margin-right: auto; }
.brand b { font: 600 1.35rem/1 var(--font-head); }
.brand span { color: var(--muted); font-size: var(--s-1); }
.top nav { display: flex; gap: 0.25rem 1.25rem; flex-wrap: wrap; font-size: var(--s-1); }
.top nav a { color: var(--text); text-decoration: none; padding: 0.35rem 0; border-bottom: 2px solid transparent; }
.top nav a:hover, .top nav a[aria-current="page"] { border-bottom-color: var(--blue); }
@media (max-width: 40rem) {
  /* phones: the bar scrolls away with the page and its links sit on one line that scrolls sideways */
  .top { position: static; }
  .top .wrap { gap: 0.25rem; }
  .top nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; padding-bottom: 0.15rem; }
  .top nav a { white-space: nowrap; padding-block: 0.6rem; }
  .omni { gap: 0.75rem; }
}

/* ---------- hero: the address bar ---------- */
.hero { padding-block: clamp(2.5rem, 7vw, 6rem) 0; }
.hero h1 { font-size: var(--s3); max-width: 18ch; }
.hero .lede { font-size: var(--s1); line-height: 1.45; color: var(--muted); max-width: var(--measure); margin-top: 1.1rem; }
@media (min-width: 64rem) {
  /* wide screens: headline left, lede right, both resting on one baseline above the address bar */
  .hero .intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3rem; align-items: end; }
  .hero h1 { max-width: none; }
  .hero .lede { margin-top: 0; }
  .omni { max-width: none; }
}

.omni {
  margin-top: clamp(1.75rem, 4vw, 3rem);
  display: flex; align-items: center; gap: clamp(0.6rem, 1.6vw, 1.4rem);
  background: var(--omni);
  border-radius: 999px;
  padding: clamp(0.7rem, 1.6vw, 1.2rem) clamp(1.1rem, 3vw, 2.4rem);
  max-width: 62rem;
  box-shadow: inset 0 0 0 1px var(--line);
}
.omni svg { flex: none; width: clamp(1.4rem, 3.2vw, 2.6rem); height: auto; color: var(--muted); }
.omni .addr { font: 600 var(--ip)/1 var(--font-head); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: clip; min-width: 0; }
.omni .addr span { color: var(--muted); font-weight: 600; }
.omni .chip {
  margin-left: auto; flex: none;
  font-size: var(--s-1); font-weight: 500; line-height: 1.2;
  background: var(--surface); color: var(--text);
  border-radius: 999px; padding: 0.45rem 0.9rem;
  box-shadow: 0 0 0 1px var(--line);
}
.gone { margin: 1rem 0 0 clamp(1.1rem, 3vw, 2.4rem); color: var(--muted); font-size: var(--s0); }
.gone s { color: var(--bad); text-decoration-thickness: 2px; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; min-height: 2.9rem; padding: 0.6rem 1.35rem;
  border-radius: 999px; font-weight: 500; text-decoration: none;
  background: var(--blue); color: var(--surface);
}
.btn.quiet { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1px var(--line); }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
@media (prefers-color-scheme: dark) { .btn { color: #062e6f; } }

/* screenshots: real LAN Console windows, shown edge to edge on phones */
.shot { margin: 0; }
.shot a { display: block; border-radius: var(--radius); }
.shot img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); outline: 1px solid var(--shot-edge); outline-offset: -1px; background: var(--surface); }
.shot figcaption { margin-top: 0.75rem; font-size: var(--s-1); color: var(--muted); max-width: var(--measure); }
.hero .shot { margin-top: clamp(2.5rem, 6vw, 4.5rem); }

@media (max-width: 40rem) {
  /* on a phone the screenshot runs to the screen edges, so the window frame stays as large as possible */
  .bleed { margin-inline: calc(-1 * var(--gutter)); }
  .bleed img { border-radius: 0; outline: none; box-shadow: none; border-block: 1px solid var(--shot-edge); }
  .bleed figcaption { padding-inline: var(--gutter); }
  .omni .chip { display: none; }
}

/* ---------- sections ---------- */
section { padding-block: clamp(3.5rem, 9vw, 7rem); }
section + section { border-top: 1px solid var(--line); }
.head { max-width: var(--measure); margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.head h2 { font-size: var(--s2); }
.head p { margin-top: 0.9rem; color: var(--muted); font-size: var(--s1); line-height: 1.45; }

/* a feature: text and its screenshot side by side on wide screens, stacked on narrow ones */
.feature { display: grid; gap: 1.5rem 3.5rem; align-items: start; }
.feature + .feature { margin-top: clamp(3.5rem, 8vw, 6rem); }
.feature h3 { font-size: var(--s1); margin-bottom: 0.7rem; }
.feature .text { max-width: var(--measure); }
.feature .text ul { margin-block: 0.4rem 1em; }
@media (min-width: 64rem) {
  .feature { grid-template-columns: minmax(18rem, 2fr) 5fr; }
  .feature.flip { grid-template-columns: 5fr minmax(18rem, 2fr); }
  .feature.flip .text { order: 2; }
  .feature .text { position: sticky; top: 5.5rem; }
}

.note {
  display: inline-block; margin-bottom: 0.8rem;
  font-size: var(--s-1); font-weight: 500; line-height: 1.3;
  color: var(--warn); background: var(--warn-bg);
  border-radius: 6px; padding: 0.25rem 0.6rem;
}

/* light/dark pair */
.pair { display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .pair { grid-template-columns: 1fr 1fr; } }

/* the long list of smaller things */
.more { display: grid; gap: 2rem 3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.more h3 { font-size: var(--s1); margin-bottom: 0.5rem; }
.more p { color: var(--muted); }

/* the honest part */
.limits { background: var(--surface); }
.limits .cols { display: grid; gap: 2rem 3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.limits h3 { font-size: var(--s1); margin-bottom: 0.6rem; }
.limits ul { color: var(--muted); }
.limits li strong { color: var(--text); }

.get .cols { display: grid; gap: 2.5rem 3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.get h3 { font-size: var(--s1); margin-bottom: 0.6rem; }
.get .btn { margin-top: 1rem; }

/* ---------- privacy page ---------- */
.doc { padding-block: clamp(2.5rem, 7vw, 5rem); }
.doc .wrap { max-width: 46rem; }
.doc h1 { font-size: var(--s3); }
.doc .meta { color: var(--muted); margin-top: 0.75rem; }
.doc .short { background: var(--surface); border-radius: var(--radius); padding: clamp(1.1rem, 3vw, 1.75rem); margin-block: 2rem 2.5rem; box-shadow: inset 0 0 0 1px var(--line); }
.doc .short h2 { font-size: var(--s1); margin-bottom: 0.75rem; }
.doc h2 { font-size: var(--s1); margin: 2.5rem 0 0.75rem; }
.doc .short h2 { margin-top: 0; }
.doc ul { margin-bottom: 1em; }
.doc table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1.25rem; font-size: var(--s-1); }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 500; }
@media (max-width: 34rem) {
  .doc table, .doc tbody, .doc tr, .doc td, .doc th { display: block; }
  .doc thead { display: none; }
  .doc tr { border-bottom: 1px solid var(--line); padding-block: 0.5rem; }
  .doc td { border: 0; padding: 0.15rem 0; }
  .doc td:first-child { font-weight: 500; }
}

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 2.5rem 3rem; font-size: var(--s-1); color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }
.foot p { margin: 0; }
.foot .links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-left: auto; }

@media (prefers-reduced-motion: no-preference) {
  .omni .addr { animation: settle 0.9s cubic-bezier(.2,.7,.2,1) both; }
  .gone s { animation: strike 0.5s 0.9s ease-out both; }
  @keyframes settle { from { opacity: 0; transform: translateX(-0.4em); } }
  @keyframes strike { from { text-decoration-color: transparent; } }
}

@media print {
  .top, .actions, .foot .links { display: none; }
  body { background: #fff; color: #000; }
}
