:root {
  --bg: #07090c;
  --panel: #0d1218;
  --panel2: #090c10;
  --mist: #8fa7bd;
  --dim: #5c6a78;
  --text: #cfd6dd;
  --accent: #4a7aab;
  --outline: #1a222c;
  --pro: #a8965e;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.wrap { max-width: 880px; margin: 0 auto; padding: 0 22px; }
a { color: var(--mist); text-decoration: none; }
a:hover { color: #b6c9db; }

header.site {
  padding: 26px 0 8px;
  display: flex; align-items: center; justify-content: space-between;
}
.wordmark { font-size: 20px; font-weight: 600; letter-spacing: 7px; color: var(--mist); }
nav a { margin-left: 20px; font-size: 14px; color: var(--dim); }
nav a:hover { color: var(--mist); }

.hero { padding: 72px 0 40px; text-align: center;
  background: radial-gradient(ellipse 80% 55% at 50% -10%, rgba(74,122,171,.18), transparent); }
.hero h1 { font-size: clamp(28px, 5vw, 42px); font-weight: 600; line-height: 1.25; color: #e8edf2; }
.hero p.sub { margin: 16px auto 0; max-width: 560px; color: var(--mist); font-size: 18px; }
.badges { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.badge { border: 1px solid var(--outline); background: var(--panel2); color: var(--dim);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; }

section { padding: 44px 0; }
h2 { font-size: 22px; font-weight: 600; color: #e8edf2; margin-bottom: 14px; }
p.lead { color: var(--dim); max-width: 640px; }

.privacy-strip { background: var(--panel); border: 1px solid var(--outline); border-radius: 16px;
  padding: 24px 26px; margin-top: 10px; }
.privacy-strip strong { color: var(--mist); }
.privacy-strip p { color: var(--text); font-size: 15px; }
.privacy-strip .fine { color: var(--dim); font-size: 13px; margin-top: 10px; }

.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-top: 18px; }
.cat { background: var(--panel2); border: 1px solid var(--outline); border-radius: 14px; padding: 16px; }
.cat h3 { font-size: 12px; letter-spacing: 2px; color: var(--dim); font-weight: 600; margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px; }
.cat h3 svg { width: 18px; height: 18px; flex: none; opacity: .9; }
.cat ul { list-style: none; }
.cat li { font-size: 14px; padding: 3px 0; color: var(--text); }
.free { font-size: 10px; letter-spacing: 1px; color: #7c9; border: 1px solid #2c5a44;
  border-radius: 4px; padding: 1px 5px; margin-left: 6px; vertical-align: 2px; }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 18px; }
.feature { background: var(--panel2); border: 1px solid var(--outline); border-radius: 14px; padding: 18px; }
.feature h3 { font-size: 15px; color: #e8edf2; margin-bottom: 6px; }
.feature p { font-size: 14px; color: var(--dim); }

.pro-card { background: linear-gradient(160deg, #101a26, #0b0f14); border: 1px solid #23405c;
  border-radius: 18px; padding: 30px; margin-top: 16px; }
.pro-card .price { font-size: 34px; color: #e8edf2; font-weight: 600; }
.pro-card .price small { font-size: 15px; color: var(--dim); font-weight: 400; }
.pro-card ul { list-style: none; margin: 16px 0 6px; }
.pro-card li { padding: 5px 0; color: var(--text); }
.pro-card li::before { content: "✓  "; color: var(--mist); }
.pro-card .fine { color: var(--dim); font-size: 13px; }

.download-box { background: var(--panel); border: 1px solid var(--outline); border-radius: 16px;
  padding: 26px; margin-top: 14px; }
.btn { display: inline-block; background: var(--accent); color: #fff; border-radius: 12px;
  padding: 13px 26px; font-size: 15px; font-weight: 600; }
.btn:hover { background: #5a8abb; color: #fff; }
.btn.ghost { background: transparent; border: 1px solid var(--outline); color: var(--mist); font-weight: 400; }
.note { color: var(--dim); font-size: 13px; margin-top: 12px; }

/* ---- Early-access banner ---- */
.earlybar {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 22px; text-align: center; font-size: 14px; color: var(--text);
  background: linear-gradient(90deg, rgba(74,122,171,.16), rgba(143,167,189,.08));
  border-top: 1px solid var(--outline); border-bottom: 1px solid var(--outline);
}
.earlybar:hover { background: linear-gradient(90deg, rgba(74,122,171,.26), rgba(143,167,189,.14)); color: var(--text); }
.earlybar-tag {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--mist);
  border: 1px solid var(--outline); background: var(--panel2); border-radius: 999px; padding: 2px 10px;
}
.earlybar-cta { font-weight: 600; color: var(--mist); white-space: nowrap; }
.earlybar:hover .earlybar-cta { color: #b6c9db; }

/* ---- Early-access note (under the request buttons) ---- */
.earlybar:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.req-note { color: var(--dim); font-size: 13px; }

/* ---- Cross-promo tiles ---- */
.xpromo { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 14px; }
.xpromo .tile { display: block; background: var(--panel2); border: 1px solid var(--outline); border-radius: 14px; padding: 16px 18px; }
.xpromo .tile:hover { border-color: #2a3a4c; }
.xpromo .tile h3 { font-size: 15px; color: #e8edf2; margin-bottom: 4px; }
.xpromo .tile p { font-size: 13.5px; color: var(--dim); margin: 0; }

article.page { padding: 40px 0 20px; }
article.page h1 { font-size: 26px; margin-bottom: 6px; color: #e8edf2; }
article.page .updated { color: var(--dim); font-size: 13px; margin-bottom: 24px; }
article.page h2 { font-size: 18px; margin: 26px 0 8px; }
article.page p, article.page li { color: var(--text); font-size: 15px; }
article.page ul { padding-left: 22px; margin: 8px 0; }
article.page .card { background: var(--panel2); border: 1px solid var(--outline);
  border-radius: 14px; padding: 18px 20px; margin: 14px 0; }

.log-entry { border-left: 2px solid var(--outline); padding: 4px 0 4px 18px; margin: 18px 0; }
.log-entry h2 { margin: 0 0 6px; }
.log-entry .date { color: var(--dim); font-size: 13px; }

footer.site { border-top: 1px solid var(--outline); margin-top: 40px; padding: 26px 0 40px;
  display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; color: var(--dim); font-size: 13px; }
footer.site a { color: var(--dim); margin-right: 16px; }
footer.site div:last-child a { margin-right: 0; } /* studio line: "Zone7 Studios" sits flush before "app" */
footer.site a:hover { color: var(--mist); }

/* ---- Hidden-until-hover visitor counter (page views, no cookies/IDs) ---- */
.viewcount {
  position: fixed; right: 12px; bottom: 10px; z-index: 60;
  font-size: 11px; letter-spacing: 0.02em; color: var(--dim);
  padding: 4px 8px; border-radius: 8px;
  opacity: 0; transition: opacity 0.3s ease;
  pointer-events: auto; user-select: none; cursor: default;
}
.viewcount:hover, .viewcount:focus, .viewcount:active { opacity: 0.85; }
.viewcount:empty { display: none; }

/* ---- Nav logo mark (slider-B) ---- */
.wordmark, .wordmark a { display: inline-flex; align-items: center; gap: 8px; }
.logo-b { width: 30px; height: 30px; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .logo-b .th { transition: transform 0.6s ease; }
  .wordmark:hover .th:nth-of-type(1) { transform: translateX(4px); }   /* along top bowl */
  .wordmark:hover .th:nth-of-type(2) { transform: translateY(-7px); }  /* up the spine */
  .wordmark:hover .th:nth-of-type(3) { transform: translateX(-5px); }  /* along bottom run */
}

/* ---- Small screens: stack the header like Ethereal (wordmark on top, links below) ---- */
@media (max-width: 720px) {
  header.site { flex-direction: column; gap: 12px; padding-bottom: 14px; }
  header.site nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; }
  nav a { margin-left: 0; }
}
