/* WauHost site: shared by the home page and every article (built into dist/ by build.py) */
/* same tokens as the product (mockup/index.html), so the page and the screenshots feel like one thing */
:root {
  --bg: #F4F1EA; --bg-2: #EDE8DD; --panel: #FFFFFF; --ink: #1C2028; --muted: #646A74; --faint: #9BA0A8;
  --line: #E3DDD1; --dot: #D6CFC1; --accent: #0E7C86; --accent-ink: #FFFFFF; --accent-soft: #DFF1F2;
  --ok: #1D9A57; --warn: #D7802A; --bad: #D4433B; --hl: #E8761E;
  --mono: 'JetBrains Mono', ui-monospace, monospace; --sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111317; --bg-2: #16191E; --panel: #181B20; --ink: #E7E9EC; --muted: #9AA1AB; --faint: #6C737D;
    --line: #2A2F36; --dot: #262A31; --accent: #4FC9D0; --accent-ink: #071A1C; --accent-soft: #14292C; --hl: #F59A4C; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111317; --bg-2: #16191E; --panel: #181B20; --ink: #E7E9EC; --muted: #9AA1AB; --faint: #6C737D;
  --line: #2A2F36; --dot: #262A31; --accent: #4FC9D0; --accent-ink: #071A1C; --accent-soft: #14292C; --hl: #F59A4C; color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
.wrap { width: min(1240px, 100% - 64px); margin: 0 auto; }
.narrow { width: min(820px, 100% - 64px); margin: 0 auto; }

/* nav */
nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px); }
nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; text-decoration: none; letter-spacing: -.01em; }
.brand svg { width: 30px; height: 30px; color: var(--accent); }
nav .links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 600; color: var(--muted); }
nav .links a { text-decoration: none; } nav .links a:hover { color: var(--ink); }
.theme { border: 0; background: none; color: var(--muted); cursor: pointer; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; }
.theme:hover { color: var(--ink); background: var(--bg-2); }
.theme svg { width: 19px; height: 19px; }

.btn { display: inline-flex; align-items: center; gap: 8px; font: 700 16px var(--sans); padding: 14px 24px; border-radius: 12px; text-decoration: none; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.sm { padding: 9px 16px; font-size: 14.5px; border-radius: 10px; }

/* hero */
.hero { padding: 96px 0 0; text-align: center; background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 22px 22px; }
.eyebrow { font: 600 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 22px; }
h1 { font-size: clamp(44px, 7.4vw, 92px); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; margin: 0 auto 26px; max-width: 13ch; }
h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: clamp(18px, 2vw, 22px); color: var(--muted); max-width: 40em; margin: 0 auto 36px; }
.ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.note { font-size: 14px; color: var(--faint); margin-top: 18px; }
.stage { margin: 72px auto 0; width: min(1360px, 100% - 32px); }
.frame { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.frame video, .frame img { width: 100%; height: auto; }

/* works with: real marks, grey until hovered */
.logos { padding: 100px 0 0; text-align: center; }
.logos .k { margin-bottom: 30px; }
.brands { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 60px; }
.brands li { display: flex; align-items: center; gap: 13px; color: var(--muted); font-weight: 700; font-size: 23px; letter-spacing: -.01em; transition: color .2s; }
.brands svg { width: 44px; height: 44px; fill: currentColor; flex: none; }
.brands li:hover { color: var(--b, var(--ink)); }

/* statement */
.statement { padding: 120px 0 120px; }
.statement p { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.22; letter-spacing: -.02em; font-weight: 700; margin: 0; }
.statement p span { color: var(--muted); }

/* features: one idea each */
.feature { padding: 110px 0; }
.feature + .feature { padding-top: 40px; }
.feature .text { max-width: 640px; margin-bottom: 44px; }
.feature.right .text { margin-left: auto; text-align: right; }
.k { font: 600 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.06; letter-spacing: -.03em; margin: 0 0 18px; font-weight: 800; }
.text p { color: var(--muted); font-size: 19px; margin: 0; }
.text p.k { color: var(--accent); font-size: 13px; margin: 0 0 14px; }
.shot { width: 100%; }
.band { background: var(--bg-2); }
.phones { display: flex; gap: 28px; justify-content: center; align-items: flex-start; }
.phones .frame { width: min(330px, 46%); border-radius: 28px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.frame.mid { max-width: 940px; margin: 0 auto; }
.frame.small { max-width: 560px; margin: 64px auto 0; }
/* tall panels (drawers, guides): fixed shape, show the top */
.pair.tall .frame { aspect-ratio: 4 / 5; }
.pair.tall img, .pair.mix .frame:first-child img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* server panel beside the console: the panel takes the console's height */
.pair.mix { grid-template-columns: 5fr 8fr; align-items: stretch; }
.pair.mix .frame:first-child { position: relative; }
.pair.mix .frame:first-child img { position: absolute; inset: 0; }
.cols > * { min-width: 0; }
.phone-hero { display: none; }

/* how it runs */
.runs { padding: 140px 0; }
.cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: start; }
.cmd { font: 500 15px/1.5 var(--mono); border: 1px solid var(--line); background: #15181D; color: #E7E9EC; padding: 22px 24px; border-radius: 14px; overflow-x: auto; white-space: nowrap; }
.cmd b { color: #7CD39A; font-weight: 500; }
.cmd + small { display: block; color: var(--faint); font-size: 14px; margin-top: 12px; }
.facts { display: grid; gap: 34px; }
.facts h3 { font-size: 21px; margin: 0 0 6px; letter-spacing: -.01em; }
.facts p { margin: 0; color: var(--muted); font-size: 17px; }

/* pricing */
.price { padding: 150px 0; text-align: center; background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 22px 22px; }
.big { font-size: clamp(110px, 18vw, 220px); font-weight: 800; letter-spacing: -.06em; line-height: .9; margin: 0; }
.price .sub { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; margin: 26px 0 14px; letter-spacing: -.01em; }
.price .why { color: var(--muted); max-width: 36em; margin: 0 auto 36px; }

/* faq */
.faq { padding: 120px 0; }
.faq h2 { margin-bottom: 40px; }
details { border-top: 1px solid var(--line); padding: 22px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { font-weight: 700; font-size: 20px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--faint); font-weight: 500; font-size: 24px; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { color: var(--muted); margin: 12px 0 0; max-width: 46em; }

/* bullets: a teal tick, no boxes */
ul.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
ul.ticks li { position: relative; padding-left: 36px; font-size: 18px; line-height: 1.45; color: var(--ink); }
ul.ticks li::before { content: ''; position: absolute; left: 0; top: .1em; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); }
ul.ticks li::after { content: ''; position: absolute; left: 9px; top: calc(.1em + 5px); width: 5px; height: 10px; border: solid var(--accent); border-width: 0 2.4px 2.4px 0; transform: rotate(45deg); }
.feature.right .text { text-align: left; }

/* flow charts: nodes like the product's map, joined by moving teal dashes */
.flowsec { padding: 40px 0 70px; }
.flowsec .text { max-width: 640px; margin-bottom: 52px; }
.flow { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-start; }
.flow .node { position: relative; z-index: 1; flex: 0 1 200px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.flow .ic, .out .ic { position: relative; z-index: 1; width: 68px; height: 68px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); color: var(--accent); display: grid; place-items: center; flex: none; }
.flow .ic svg { width: 30px; height: 30px; }
.flow .node b { font-size: 18px; margin-top: 14px; letter-spacing: -.01em; }
.flow .node small { color: var(--muted); font-size: 15px; line-height: 1.4; max-width: 14em; margin-top: 4px; }
.flow .link { flex: 1 1 40px; min-width: 28px; height: 2px; margin: 34px -66px 0; position: relative; z-index: 0;
  background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 14px); background-size: 14px 2px; animation: dash .9s linear infinite; }
@keyframes dash { to { background-position: 14px 0; } }
@keyframes dashv { to { background-position: 0 14px; } }
/* the WauHost zone around "Your server" + "Your website": fades in as you scroll on */
.zonehost { position: relative; }
.zone { position: absolute; border: 1.5px solid color-mix(in srgb, var(--hl) 60%, transparent); background: color-mix(in srgb, var(--hl) 7%, transparent);
  border-radius: 26px; opacity: 0; transform: scale(.97); transition: opacity .8s ease, transform .8s ease; pointer-events: none; }
.zone.on { opacity: 1; transform: none; }
.ztag { position: absolute; z-index: 3; top: 0; left: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 9px; white-space: nowrap;
  background: var(--bg); padding: 6px 14px; border-radius: 99px; border: 1.5px solid color-mix(in srgb, var(--hl) 60%, transparent); color: var(--hl); }
.ztag b { font-size: 14.5px; color: var(--ink); letter-spacing: -.005em; }
.ztag .zl { width: 22px; height: 22px; color: var(--accent); } .ztag .zk { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) { .zone { transition: none; } }
/* update flow: compare, then two outcomes */
.flowwrap { display: flex; align-items: flex-start; padding-top: 30px; }
.flowwrap .flow { flex: 1 1 auto; }
.fork { flex: 0 0 400px; position: relative; display: grid; gap: 16px; margin: -27px 0 0 0; padding-left: 64px; }
.fork::before { content: ''; position: absolute; left: -66px; top: 61px; width: 102px; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 14px); background-size: 14px 2px; animation: dash .9s linear infinite; }
.fork::after { content: ''; position: absolute; left: 36px; top: 34px; bottom: 34px; width: 2px; background: repeating-linear-gradient(180deg, var(--accent) 0 8px, transparent 8px 14px); background-size: 2px 14px; }
.out { position: relative; display: flex; align-items: center; gap: 14px; }
.out::before { content: ''; position: absolute; left: -28px; top: 50%; width: 22px; height: 2px; background: var(--accent); }
.out .ic { width: 52px; height: 52px; border-radius: 16px; }
.out .ic svg { width: 24px; height: 24px; }
.out.ok .ic { color: var(--ok); } .out.warn .ic { color: var(--warn); }
.out span { font-size: 15.5px; color: var(--muted); line-height: 1.4; } .out b { display: block; color: var(--ink); font-size: 17px; }
.frame.after-flow { margin-top: 72px; }  /* .frame.mid's margin shorthand used to cancel this */
/* how it works */
.runs .text { max-width: 640px; margin-bottom: 52px; }
.peace { margin-top: 100px; }
.peace h3 { font-size: 26px; letter-spacing: -.015em; margin: 0; }
#tech { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#tech .cmd { margin-top: 20px; }
.cmdnote { display: block; color: var(--faint); font-size: 14px; margin: 10px 0 8px; }
.techlist { list-style: none; padding: 0; margin: 0; }
.techlist li { color: var(--muted); font-size: 16px; line-height: 1.5; padding: 10px 0; border-top: 1px solid var(--line); }
.techlist li:first-child { border-top: 0; }
.techlist b { color: var(--ink); margin-right: 6px; }
.faq details p a { color: var(--accent); }
/* pricing ticks, centred block, left-aligned lines */
.pticks { display: flex; justify-content: center; margin: 34px 0 22px; }
.pticks ul.ticks { margin: 0; } .pticks ul.ticks li { font-size: 20px; }
@media (prefers-reduced-motion: reduce) { .flow .link, .fork::before { animation: none; } }

/* closing + footer */
.close { padding: 130px 0; text-align: center; }
.close h2 { font-size: clamp(36px, 5.4vw, 66px); max-width: 16ch; margin: 0 auto 30px; }
/* (the footer is built by build.py: see .foot below) */

/* gentle reveal; content is visible without JS */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 860px) {
  .cols, .pair, .pair.mix { grid-template-columns: 1fr; gap: 48px; }
  .pair { gap: 20px; }
  .pair.mix .frame:first-child { aspect-ratio: 4 / 5; }
  nav .links { display: none; }
  nav .wrap { gap: 12px; } nav .wrap .btn { margin-left: auto; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .wrap, .narrow { width: calc(100% - 32px); }
  .hero { padding-top: 56px; }
  .stage { width: calc(100% - 16px); margin-top: 48px; }
  .stage .frame:first-child { display: none; }  /* the desktop map is unreadable at phone width */
  .stage .phone-hero { display: block; width: min(320px, 78%); margin: 0 auto; border-radius: 24px; }
  .frame { border-radius: 12px; }
  .statement { padding: 96px 0 72px; }
  .logos { padding-top: 64px; } .brands { gap: 18px 28px; } .brands li { font-size: 18px; gap: 10px; } .brands svg { width: 34px; height: 34px; }
  .feature { padding: 72px 0; } .feature + .feature { padding-top: 24px; }
  .feature .text { margin-bottom: 28px; }
  .feature.right .text { margin-left: 0; text-align: left; }
  .text p { font-size: 17px; }
  .runs, .price, .faq, .close { padding: 96px 0; }
  .phones { gap: 14px; } .phones .frame { width: 48%; border-radius: 20px; }
  .cmd { font-size: 13px; padding: 18px; }
  /* flow charts run top to bottom */
  .flow, .flowwrap { flex-direction: column; align-items: center; }
  .flow .node { flex: none; }
  .flow .link { flex: none; width: 2px; height: 34px; min-width: 0; margin: 12px 0; z-index: 0;
    background: repeating-linear-gradient(180deg, var(--accent) 0 8px, transparent 8px 14px); background-size: 2px 14px; animation-name: dashv; }
  .fork { flex: none; margin: 46px 0 0; padding: 0; width: 100%; max-width: 360px; }
  .fork::before { left: 50%; top: -46px; width: 2px; height: 34px; background: repeating-linear-gradient(180deg, var(--accent) 0 8px, transparent 8px 14px); background-size: 2px 14px; animation-name: dashv; }
  .fork::after, .out::before { display: none; }
  .peace { margin-top: 64px; }
  .zonehost .flow .link:nth-child(4) { height: 72px; }  /* room for the WauHost tag on the way into the zone */
  ul.ticks li { font-size: 17px; } .pticks ul.ticks li { font-size: 18px; }
}

/* footer: the link hub on every page (built by build.py) */
.foot { padding: 72px 0 56px; color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); background: var(--bg-2); }
.foot .fcols { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr 1fr; gap: 48px; }
.foot .brand { color: var(--ink); margin-bottom: 12px; }
.foot .fabout { max-width: 22em; margin: 0; line-height: 1.55; }
.foot h4 { font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 6px 0 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--accent); }
.foot .fbase { display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13.5px; }
@media (max-width: 860px) { .foot .fcols { grid-template-columns: 1fr 1fr; gap: 36px 28px; } .foot .fcols > :first-child { grid-column: 1 / -1; } }

/* articles */
.article { padding: 72px 0 40px; }
.article .k { margin-bottom: 18px; }
.article h1 { font-size: clamp(38px, 5.6vw, 64px); text-align: left; max-width: 18ch; margin: 0 0 22px; }
.article .lede { text-align: left; margin: 0 0 18px; max-width: 34em; }
.article .meta { color: var(--faint); font-size: 14px; margin: 0 0 48px; }
.badge { display: inline-block; font: 600 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--hl); border: 1.5px solid color-mix(in srgb, var(--hl) 55%, transparent); border-radius: 99px; padding: 3px 10px; margin-left: 10px; vertical-align: 2px; }
.prose h2 { font-size: clamp(26px, 3.2vw, 36px); margin: 64px 0 16px; }
.prose h3 { font-size: 21px; margin: 36px 0 10px; letter-spacing: -.01em; }
.prose p, .prose li { color: var(--muted); }
.prose p { margin: 0 0 16px; max-width: 40em; }
.prose strong { color: var(--ink); }
.prose a { color: var(--accent); }
.prose ul.ticks li { color: var(--ink); }
.prose .flow { margin: 40px 0 24px; }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0 8px; font-size: 16px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.prose th { font: 600 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.prose td:first-child { color: var(--ink); font-weight: 600; width: 26%; }
.prose td { color: var(--muted); }
.tablewrap { overflow-x: auto; }
.sources { font-size: 14px; color: var(--faint); margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); }
.sources li { color: var(--faint); margin: 4px 0; word-break: break-word; }
.acta { margin: 72px 0 40px; padding: 40px 0; border-top: 1px solid var(--line); text-align: left; }
.acta h2 { margin: 0 0 22px; }
.acta .ctas { justify-content: flex-start; }
.alist { list-style: none; padding: 0; margin: 0; }
.alist li { padding: 26px 0; border-top: 1px solid var(--line); }
.alist a { text-decoration: none; font-size: 24px; font-weight: 800; letter-spacing: -.015em; color: var(--ink); }
.alist a:hover { color: var(--accent); }
.alist p { margin: 6px 0 0; color: var(--muted); }
@media (max-width: 720px) { .article { padding-top: 40px; } .prose table { font-size: 15px; } .prose td:first-child { width: 34%; } }
.prose code { font: 500 .88em var(--mono); background: var(--bg-2); padding: 2px 7px; border-radius: 6px; color: var(--ink); }

/* neutral bullets for lists that aren't "good things" (problems, open questions) */
ul.dots { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
ul.dots li { position: relative; padding-left: 26px; color: var(--ink); line-height: 1.45; }
ul.dots li::before { content: ''; position: absolute; left: 6px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }

/* comparison tables on phones: each row becomes a heading + the products side by side */
@media (max-width: 720px) {
  .prose table, .prose tbody, .prose tr, .prose td { display: block; }
  .prose thead { display: none; }
  .prose tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .prose td { border: 0; padding: 0; width: auto !important; }
  .prose td:first-child { grid-column: 1 / -1; font-size: 17px; }
  .prose td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
  .prose td:not(:first-child) { font-size: 15px; }
}
