/* NightPager: one idea per screen, dark, quiet. */
:root {
  --bg: #14110F;
  --panel: #1C1714;
  --text: #FFFBF5;
  --muted: #C8B6A4;
  --line: #3A2E27;
  --accent: #FF8533;
  --accent-hover: #FFA057;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'Consolas', 'SFMono-Regular', 'Liberation Mono', 'Menlo', monospace;
}

* { box-sizing: border-box; }
html { scroll-snap-type: y proximity; scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: var(--body); font-size: 17px; line-height: 1.55; }

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Each section is its own screen */
.screen {
  min-height: 100vh;
  min-height: 100svh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 16px;
  position: relative;
}
.inner { width: 100%; max-width: 560px; margin: 0 auto; }
.center { text-align: center; }

/* Fade in on scroll (only when the script runs and motion is allowed) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.shown { opacity: 1; transform: none; }

.mark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); text-decoration: none;
}
.logo { width: 32px; height: 27px; shape-rendering: crispEdges; }

h1 { font-size: 34px; line-height: 1.18; font-weight: 650; margin: 18px 0 12px; }
h2 { font-size: 22px; font-weight: 600; margin: 0 0 20px; }
.lede { color: var(--muted); margin: 0; }

.scroll-hint {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: var(--muted); text-decoration: none; font-size: 22px;
}

/* How it works */
.steps { list-style: none; padding: 0; margin: 0 0 20px; color: var(--muted); }
.steps li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.steps strong { color: var(--text); font-weight: 600; }
.step-icon { width: 32px; height: 32px; flex-shrink: 0; shape-rendering: crispEdges; }

/* The phone demo */
.phone {
  max-width: 340px;
  margin: 0 auto;
  background: #2A231E;
  border: 2px solid #4A3B31;
  border-radius: 22px;
  padding: 14px;
}
.phone-top {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  padding: 0 4px 8px;
}
.thread {
  background: #0E0C0A;
  border-radius: 10px;
  height: 260px;
  overflow-y: auto;
  padding: 10px;
  display: flex; flex-direction: column; gap: 8px;
}
.hint { color: var(--muted); font-size: 13px; margin: auto 0; text-align: center; }
.msg { margin: 0; padding: 8px 10px; border-radius: 10px; font-size: 13px; line-height: 1.4; max-width: 88%; }
.msg.in { background: #2B2219; color: #FFE6C7; align-self: flex-start; }
.msg.in.urgent { border: 1px solid var(--accent); }
.msg.out { background: var(--accent); color: #171003; align-self: flex-end; font-family: var(--mono); font-weight: 700; }
.msg.sys { background: none; color: var(--muted); font-size: 12px; font-style: italic; align-self: center; text-align: center; max-width: 100%; padding: 2px 4px; }

.keys { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.keys button {
  flex: 1 1 auto;
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  background: #3A2F27; color: var(--text);
  border: 1px solid #574638; border-radius: 6px;
  padding: 8px 6px; cursor: pointer;
}
.keys button:hover { border-color: var(--accent); }
.keys.demo button { font-family: var(--body); font-weight: 500; font-size: 12px; color: var(--muted); background: none; }

/* Calls */
.scenes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.scenes figure { margin: 0; }
.scene {
  width: 100%; height: auto; display: block; shape-rendering: crispEdges;
  background: #0B0907; border: 1px solid var(--line); border-radius: 8px; padding: 10px;
}
figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
figcaption strong { display: block; color: var(--text); font-weight: 600; }
.note { font-size: 14px; color: var(--accent-hover); margin: 8px 0 0; }

/* Start */
.promise { font-size: 20px; margin: 0 0 24px; }
.button {
  display: inline-block; background: var(--accent); color: #171003;
  font-weight: 600; text-decoration: none; padding: 12px 22px; border-radius: 6px;
}
.button:hover { background: var(--accent-hover); color: #171003; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.plan {
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel);
  padding: 18px 14px; text-align: center;
}
.plan.featured { border-color: var(--accent); }
.price { font-size: 28px; font-weight: 650; }
.per { color: var(--muted); font-size: 14px; }
.name { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
#pricing p { color: var(--muted); margin: 0 0 8px; }
#pricing .fine { font-size: 14px; }

.last { justify-content: space-between; }
.last .inner { margin-top: auto; margin-bottom: auto; }
footer { font-size: 13px; color: var(--muted); text-align: center; padding-top: 40px; }
footer a { color: var(--muted); }
footer p { margin: 4px 0; }

/* Privacy page */
.page main { max-width: 560px; margin: 0 auto; padding: 64px 16px 48px; }
.page h2 { font-size: 18px; margin: 32px 0 8px; }
.page p, .page li { color: var(--muted); }
.page li { margin-bottom: 6px; }
.page footer { padding-bottom: 32px; }

/* Pixel animations */
@keyframes np-spray { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(-4px); opacity: 0.82; } }
@keyframes np-puddle { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(1.04); } }
@keyframes np-panic { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes np-float-z { 0%, 100% { transform: translateY(0); opacity: 0.98; } 50% { transform: translateY(-5px); opacity: 0.55; } }
@keyframes np-breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.np-anim-spray { animation: np-spray 0.7s steps(2, start) infinite; }
.np-anim-puddle { transform-origin: center; animation: np-puddle 1.1s steps(2, start) infinite; }
.np-anim-panic { animation: np-panic 0.6s steps(2, start) infinite; }
.np-anim-z { animation: np-float-z 1.6s steps(2, start) infinite; }
.np-anim-breathe { animation: np-breathe 2.2s steps(2, start) infinite; }

@media (max-width: 480px) {
  h1 { font-size: 28px; }
  .scenes { grid-template-columns: 1fr; }
  .plans { gap: 8px; }
  .plan { padding: 14px 6px; }
  .price { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .np-anim-spray, .np-anim-puddle, .np-anim-panic, .np-anim-z, .np-anim-breathe { animation: none !important; }
}
