/* neuralcache.app's other pages (pro, privacy, terms, refunds, the tester guide and the pages the
   emails open): the homepage's world (home.css) without the field: its tokens, header, menu,
   buttons and footer, then each page's own parts. */
:root {
  color-scheme: dark;
  --bg: #01030a;
  --text: #eef4ff;
  --text-2: #b4c2de;
  --muted: #8091b3;
  --line: rgba(120, 180, 255, 0.16);
  --line-hi: rgba(110, 200, 255, 0.55);
  --cyan: #39d0ff;
  --cyan-ink: #bfe8ff;
  --pro: #b39dff;
  --pro-ink: #ddd3ff;
  --amber: #ffb347;
  --amber-ink: #ffcf8a;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --gutter: max(20px, 6vw);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: rgba(110, 180, 255, 0.25) var(--bg); }
body { min-height: 100svh; display: flex; flex-direction: column; background: radial-gradient(80% 60% at 75% 10%, rgba(20, 60, 170, 0.16), transparent 70%), radial-gradient(60% 50% at 10% 100%, rgba(80, 40, 160, 0.1), transparent 70%), var(--bg); color: var(--text); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
main { flex: 1; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(57, 208, 255, 0.35); }
.fine { font-size: 14px; color: var(--muted); }
.form-note { min-height: 1.4em; font-size: 14px; color: var(--muted); }
.form-note.ok { color: var(--cyan); }
.form-note.err { color: #ffb4a8; }

/* ---------- header and footer: the homepage's ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 10; display: flex; align-items: center; gap: 24px; padding: 12px var(--gutter); background: rgba(1, 3, 10, 0.72); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); border-bottom: 1px solid rgba(120, 180, 255, 0.1); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; text-decoration: none; letter-spacing: -0.01em; }
.logo svg { width: 26px; height: 26px; fill: #9ad9ff; }
.logo__ring { fill: none; stroke: rgba(120, 200, 255, 0.55); stroke-width: 1.2; }
.logo__core { fill: var(--cyan); }
.logo__cache { color: var(--cyan); }
.pillnav { margin: 0 auto; display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(8, 14, 34, 0.55); border: 1px solid var(--line); }
.pillnav a { padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 550; color: var(--text-2); text-decoration: none; transition: color 200ms ease, background-color 200ms ease; }
.pillnav a:hover { color: var(--text); background: rgba(120, 180, 255, 0.1); }
.pillnav a[aria-current="page"] { color: var(--text); background: rgba(120, 180, 255, 0.12); }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding: 32px var(--gutter) 40px; border-top: 1px solid var(--line); background: rgba(1, 3, 10, 0.85); font-size: 14px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-left: auto; }
.foot nav a { text-decoration: none; color: var(--text-2); }
.foot nav a:hover { color: var(--text); }
.foot p { flex-basis: 100%; font-size: 13px; }
/* Phones: the header's links move into a menu (pages.js), as on the homepage. */
.menubtn { display: none; flex: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: rgba(6, 12, 30, 0.6); cursor: pointer; position: relative; }
.menubtn i { position: absolute; left: 11px; right: 11px; height: 1.6px; border-radius: 2px; background: var(--text); transition: transform 300ms var(--ease), top 300ms var(--ease); }
.menubtn i:first-of-type { top: 15px; } .menubtn i:last-of-type { top: 23px; }
.menubtn[aria-expanded="true"] i:first-of-type { top: 19px; transform: rotate(45deg); }
.menubtn[aria-expanded="true"] i:last-of-type { top: 19px; transform: rotate(-45deg); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.menu[hidden] { display: none; }
.menu { position: fixed; z-index: 11; top: 70px; left: 12px; right: 12px; display: flex; flex-direction: column; padding: 8px; border-radius: 18px; background: rgba(4, 9, 24, 0.94); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.menu a { padding: 14px 16px; border-radius: 12px; font-size: 17px; font-weight: 550; text-decoration: none; color: var(--text); }
.menu a:hover, .menu a:focus-visible { background: rgba(120, 180, 255, 0.1); }
.menu a[aria-current="page"] { background: rgba(120, 180, 255, 0.12); }
@media (max-width: 760px) { .pillnav { display: none; } .top { gap: 10px; } .top .btn { margin-left: auto; } .menubtn { display: block; } .foot nav { margin-left: 0; } }
@media (min-width: 761px) { .menu { display: none !important; } }
/* The tester guide and the email pages: a quiet way back on the right instead of the links. */
.top__aside { margin-left: auto; font-size: 14.5px; font-weight: 550; color: var(--text-2); text-decoration: none; padding: 10px 2px; }
.top__aside:hover { color: var(--text); }

/* ---------- the app's buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 20px; border-radius: 12px; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; color: #fff; background: linear-gradient(180deg, #2f9bff, #1a5fe0); border: 1.5px solid rgba(140, 225, 255, 0.95); box-shadow: 0 0 24px rgba(57, 180, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35); cursor: pointer; transition: transform 160ms var(--ease), box-shadow 200ms ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 34px rgba(57, 180, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--small { min-height: 38px; padding: 0 16px; font-size: 14px; }
/* Touch: every control a finger's size (44 px), as in the app. */
@media (pointer: coarse) {
  .btn--small, .menubtn { min-height: 44px; }
  .menubtn { width: 44px; height: 44px; }
  .menubtn i:first-of-type { top: 17px; } .menubtn i:last-of-type { top: 25px; }
  .menubtn[aria-expanded="true"] i:first-of-type, .menubtn[aria-expanded="true"] i:last-of-type { top: 21px; }
  .top { padding-block: 10px; }
  .foot nav { gap: 0 20px; }
  .foot nav a { display: inline-block; padding: 11px 0; }
}
.btn--big { min-height: 52px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn--ghost { color: var(--cyan-ink); background: rgba(57, 208, 255, 0.06); border-color: rgba(57, 208, 255, 0.4); box-shadow: none; }
.btn--ghost:hover { box-shadow: 0 0 22px rgba(57, 208, 255, 0.25); }
.btn--pro { width: 100%; min-height: 50px; border-radius: 14px; font-size: 16px; background: linear-gradient(180deg, #8f7bff, #5f49e0); border-color: rgba(205, 190, 255, 0.95); box-shadow: 0 0 24px rgba(150, 120, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn--pro:hover { box-shadow: 0 0 34px rgba(150, 120, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.plan { align-self: flex-start; font-size: 12.5px; font-weight: 650; padding: 3px 11px; border-radius: 999px; color: var(--cyan-ink); background: rgba(57, 208, 255, 0.08); border: 1px solid rgba(57, 208, 255, 0.4); }
.plan--pro { color: var(--pro-ink); background: rgba(179, 157, 255, 0.1); border-color: rgba(179, 157, 255, 0.5); }
h1, h2 { font-family: var(--display); text-wrap: balance; }

/* ---------- /pro: buying Pro ---------- */
.buy { min-height: 100svh; padding: 132px var(--gutter) 80px; max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr); gap: 48px clamp(32px, 6vw, 96px); align-items: start; }
.buy__intro { display: flex; flex-direction: column; gap: 20px; }
.buy__intro h1 { font-size: clamp(2.8rem, 1.6rem + 3.6vw, 5rem); line-height: 0.96; font-weight: 300; letter-spacing: -0.045em; }
.buy__intro > p:not(.plan) { font-size: 18px; color: var(--text-2); max-width: 34rem; text-wrap: pretty; }
.buy__list { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.buy__list li { position: relative; padding-left: 22px; font-size: 16.5px; }
.buy__list li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 7px; height: 7px; border-radius: 50%; background: var(--pro); box-shadow: 0 0 8px rgba(179, 157, 255, 0.7); }
.buy__card, .buy__state { display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: 24px; background: radial-gradient(120% 80% at 100% 0%, rgba(179, 157, 255, 0.16), transparent 60%), linear-gradient(180deg, rgba(22, 24, 70, 0.7), rgba(8, 10, 34, 0.85)); border: 1px solid rgba(179, 157, 255, 0.55); box-shadow: 0 0 40px rgba(179, 157, 255, 0.14); }
.buy__state { grid-column: 2; }
.buy__state h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.buy__state p { color: var(--text-2); font-size: 16px; }
.buy__plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; border: 0; }
.buy__plans legend { margin-bottom: 10px; font-size: 14px; color: var(--text-2); }
.buy__plan { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(2, 6, 18, 0.5); cursor: pointer; transition: border-color 150ms ease, background-color 150ms ease; }
.buy__plan input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.buy__plan span { font-size: 15px; color: var(--text-2); }
.buy__plan b { display: block; font-size: 26px; font-weight: 650; letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.buy__plan small { font-size: 12.5px; color: var(--muted); }
.buy__plan:has(input:checked) { border-color: rgba(179, 157, 255, 0.8); background: rgba(179, 157, 255, 0.1); }
.buy__plan:has(input:focus-visible) { outline: 2px solid rgba(179, 157, 255, 0.8); outline-offset: 2px; }
.buy__field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-2); }
.buy__field input { min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(2, 6, 18, 0.7); font-size: 16px; caret-color: var(--cyan); }
.buy__field input:focus-visible { border-color: var(--line-hi); }
.buy .fine { font-size: 13.5px; line-height: 1.55; }
.buy .fine a { color: var(--pro-ink); text-underline-offset: 0.2em; }
.buy [hidden] { display: none !important; }
/* Until the server says whether Pro is on sale, the card keeps its place, empty (pro.js). */
html.js .buy[data-pending] .buy__card > * { visibility: hidden; }
@media (max-width: 860px) { .buy { grid-template-columns: 1fr; padding-top: 100px; } .buy__state { grid-column: 1; } }

/* ---------- documents: privacy, terms, refunds ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 132px var(--gutter) 96px; box-sizing: content-box; }
.doc h1 { font-size: clamp(2.6rem, 1.6rem + 3vw, 4.2rem); line-height: 0.98; font-weight: 300; letter-spacing: -0.045em; }
.doc h2 { margin: 44px 0 12px; font-family: var(--font); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.doc p, .doc li { font-size: 16.5px; line-height: 1.65; color: var(--text-2); }
.doc p + p { margin-top: 12px; }
.doc .lead { margin-top: 18px; font-size: 19px; color: var(--text); }
.doc .updated { margin-top: 14px; font-size: 14px; color: var(--muted); }
.doc .updated + p { margin-top: 28px; }
.doc ul { list-style: disc; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.doc li b { color: var(--text); font-weight: 600; }
.doc a { color: var(--cyan-ink); text-decoration-color: rgba(191, 232, 255, 0.4); text-underline-offset: 0.2em; }
@media (max-width: 760px) { .doc { padding-top: 100px; box-sizing: border-box; } }

/* ---------- the tester guide (beta) ---------- */
.doc p + ol, .doc p + ul { margin-top: 12px; }
.doc ol { padding-left: 22px; display: flex; flex-direction: column; gap: 12px; }
.doc ol li::marker { color: var(--cyan-ink); font-weight: 600; }
.doc .small { display: inline-block; margin-top: 4px; font-size: 14.5px; color: var(--muted); }
.doc p.small { display: block; margin-top: 14px; }
.doc kbd { font: 600 0.86em var(--font); padding: 1px 7px; border-radius: 6px; border: 1px solid rgba(110, 200, 255, 0.4); background: rgba(57, 208, 255, 0.07); color: var(--text); white-space: nowrap; }

/* ---------- the pages the emails open: one short message, centred in the window ---------- */
.note { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 620px; margin: 0 auto; padding: 132px var(--gutter) 96px; box-sizing: content-box; }
.note h1 { font-size: clamp(2.4rem, 1.5rem + 2.6vw, 3.6rem); line-height: 1; font-weight: 300; letter-spacing: -0.045em; }
.note p { margin-top: 18px; font-size: 18px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.note p a:not(.btn) { color: var(--cyan-ink); text-decoration-color: rgba(191, 232, 255, 0.4); text-underline-offset: 0.2em; }
.note b { color: var(--text); font-weight: 600; }
.note .acts { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.note .acts a:not(.btn) { color: var(--text-2); font-size: 15.5px; font-weight: 550; text-decoration: none; }
.note .acts a:not(.btn):hover { color: var(--text); }
.note form { margin-top: 26px; }
@media (max-width: 760px) { .note { padding-top: 110px; box-sizing: border-box; justify-content: flex-start; } }
