/* Wipers · wipers.ai
   Hand-tuned static CSS. No build step. Light + dark via prefers-color-scheme. */

:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --surface-2: #f2f2ef;
  --text: #17191d;
  --muted: #5d6470;
  --faint: #8b929e;
  --border: #e4e5e8;
  --accent: #1156d6;
  --accent-hover: #0d47b5;
  --accent-soft: #e9f0fd;
  --tag-bg: #fff8ec;
  --tag-border: #f0d9ab;
  --tag-text: #b26b00;
  --shadow: 0 1px 2px rgb(23 25 29 / 0.05), 0 8px 24px rgb(23 25 29 / 0.06);
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1013;
    --surface: #16181d;
    --surface-2: #1b1e24;
    --text: #e9eaec;
    --muted: #a3a9b4;
    --faint: #6e7580;
    --border: #262a31;
    --accent: #4c8dff;
    --accent-hover: #6ea3ff;
    --accent-soft: #14243f;
    --tag-bg: #2a2113;
    --tag-border: #4a3a1c;
    --tag-text: #e0a83f;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px rgb(0 0 0 / 0.35);
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: #fff; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--surface);
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

.container {
  max-width: 1040px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---- header -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.logo:hover { text-decoration: none; }
.logo svg { display: block; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.site-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--text); text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  border: 1px solid transparent;
}
.btn:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }

.btn-small { padding: 7px 14px; font-size: 0.88rem; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

@media (max-width: 720px) {
  .site-nav a:not(.btn) { display: none; }
}

/* ---- hero ---------------------------------------------------------------- */

.hero {
  padding-block: 88px 84px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(2.35rem, 5vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 20px;
}

.hero h1 .wiped-word {
  position: relative;
  white-space: nowrap;
}
.hero h1 .wiped-word::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  top: 54%;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(-2deg);
}

.hero-sub {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 30px;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.fineprint {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--faint);
  margin: 0;
}

@media (max-width: 880px) {
  .hero { padding-block: 56px 64px; }
  .hero .container { grid-template-columns: 1fr; gap: 44px; }
}

/* ---- feed demo ----------------------------------------------------------- */

.demo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--shadow);
}

.demo-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 4px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}

.demo-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
}

.demo-url {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
  background: var(--surface-2);
  border-radius: 6px;
  padding: 3px 10px;
  margin-left: 8px;
}

.demo-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}
.demo-badge b {
  background: var(--accent);
  color: #fff;
  border-radius: 5px;
  padding: 1px 6px;
  font-weight: 600;
}

.post {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 14px;
  margin-top: 10px;
  background: var(--bg);
}

.post-head {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: none;
  background: linear-gradient(135deg, #7fa8d9, #4d7db3);
}
.avatar.av2 { background: linear-gradient(135deg, #d9a87f, #b3784d); }
.avatar.av3 { background: linear-gradient(135deg, #8fbf9a, #5a9468); }

.post-author { font-size: 0.84rem; font-weight: 600; }
.post-deg { font-size: 0.8rem; color: var(--faint); }
.post-meta { font-size: 0.74rem; color: var(--faint); line-height: 1.3; }

.sk {
  height: 9px;
  border-radius: 5px;
  background: var(--surface-2);
  margin-top: 8px;
}
.w92 { width: 92%; } .w85 { width: 85%; } .w78 { width: 78%; }
.w64 { width: 64%; } .w55 { width: 55%; }

.slop-text {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.65;
}

.post.slop {
  position: relative;
  overflow: hidden;
  animation: slop-cycle 9s infinite;
}

.post.slop::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 32%,
    color-mix(in srgb, var(--accent) 22%, transparent) 48%, transparent 64%);
  transform: translateX(-130%);
  animation: sweep 9s infinite;
}

.wiped-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  margin-top: 10px;
  padding: 9px 12px;
  border: 1px solid var(--tag-border);
  border-radius: 8px;
  background: var(--tag-bg);
  color: var(--tag-text);
  font-family: var(--mono);
  font-size: 0.74rem;
  animation: note-cycle 9s infinite;
}
.wiped-note .restore {
  color: var(--accent);
  font-weight: 600;
  flex: none;
}

@keyframes slop-cycle {
  0%, 38%   { opacity: 1; max-height: 240px; padding-block: 13px; margin-top: 10px; border-width: 1px; }
  46%, 92%  { opacity: 0; max-height: 0; padding-block: 0; margin-top: 0; border-width: 0; }
  100%      { opacity: 1; max-height: 240px; padding-block: 13px; margin-top: 10px; border-width: 1px; }
}

@keyframes sweep {
  0%, 30%   { transform: translateX(-130%); }
  42%, 100% { transform: translateX(130%); }
}

@keyframes note-cycle {
  0%, 43%   { opacity: 0; max-height: 0; padding-block: 0; margin-top: 0; border-width: 0; }
  50%, 90%  { opacity: 1; max-height: 48px; padding-block: 9px; margin-top: 10px; border-width: 1px; }
  97%, 100% { opacity: 0; max-height: 0; padding-block: 0; margin-top: 0; border-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .post.slop, .wiped-note { animation: none; }
  .post.slop::after { display: none; }
}

.demo-caption {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--faint);
  margin: 12px 4px 0;
}

/* ---- sections ------------------------------------------------------------ */

section {
  border-top: 1px solid var(--border);
  padding-block: 76px;
  scroll-margin-top: 60px;
}

.kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 14px;
}

section h2 {
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 16px;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 62ch;
  margin: 0 0 40px;
}

/* how it works */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}

.steps h3 {
  font-size: 1.06rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.how-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 44px;
}

.note-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 20px 22px;
}

.note-card h3 {
  font-size: 0.98rem;
  font-weight: 650;
  margin: 0 0 6px;
}

.note-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 820px) {
  .steps, .how-notes { grid-template-columns: 1fr; }
}

/* network guard */

.split {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: center;
}

.split .lead { margin-bottom: 0; }

.guard-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 6px 20px;
}

.guard-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 16px;
}
.guard-row + .guard-row { border-top: 1px solid var(--border); }

.guard-name { font-weight: 600; font-size: 0.95rem; }
.guard-sub { color: var(--faint); font-size: 0.82rem; margin-top: 2px; }

.toggle {
  flex: none;
  width: 40px;
  height: 23px;
  border-radius: 12px;
  background: var(--accent);
  position: relative;
}
.toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
}

.guard-count {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: 6px;
  padding: 4px 10px;
  flex: none;
}

@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
}

/* privacy */

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.privacy-col {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 24px 26px;
}

.privacy-col h3 {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}

.privacy-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.privacy-col li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 0.94rem;
  color: var(--text);
}
.privacy-col li:last-child { margin-bottom: 0; }

.privacy-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.privacy-col.local li::before { background: var(--accent); }
.privacy-col.server li::before { background: var(--faint); }

.privacy-col li small {
  display: block;
  color: var(--faint);
  font-size: 0.82rem;
}

.privacy-nothing {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin: 16px 0 0;
}

@media (max-width: 820px) {
  .privacy-grid { grid-template-columns: 1fr; }
}

/* pricing */

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.plan {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 26px 26px 24px;
}

.plan.best { border-color: var(--accent); }

.plan-tag {
  position: absolute;
  top: -11px;
  left: 22px;
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 20px;
  padding: 3px 10px;
}

.plan-name {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

.plan-price {
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 6px;
}

.plan-price .unit {
  font-size: 1rem;
  font-weight: 500;
  color: var(--faint);
  letter-spacing: 0;
}

.plan-sub {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}

.pricing-notes {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 68ch;
}
.pricing-notes p { margin: 0 0 8px; }

@media (max-width: 820px) {
  .plans { grid-template-columns: 1fr; }
}

/* faq */

.faq-list { max-width: 780px; }

.faq-list details {
  border-bottom: 1px solid var(--border);
}
.faq-list details:first-of-type { border-top: 1px solid var(--border); }

.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 2px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--faint);
  flex: none;
}
.faq-list details[open] summary::after { content: "\2212"; }

.faq-list details p {
  margin: 0 0 20px;
  padding-inline: 2px;
  color: var(--muted);
  font-size: 0.96rem;
  max-width: 70ch;
}

/* ---- footer ---------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 44px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.footer-tagline {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--faint);
  margin: 6px 0 0;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-links a:hover { color: var(--text); }

.footer-legal {
  color: var(--faint);
  font-size: 0.82rem;
  max-width: 72ch;
}
.footer-legal p { margin: 0 0 6px; }

/* ---- prose pages (privacy, terms) ----------------------------------------- */

.prose {
  max-width: 720px;
  margin-inline: auto;
  padding: 56px 24px 80px;
}

.prose h1 {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 8px;
}

.prose .updated {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--faint);
  margin: 0 0 36px;
}

.prose h2 {
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  margin: 40px 0 12px;
}

.prose p, .prose li {
  color: var(--muted);
  font-size: 0.98rem;
}

.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }

.prose strong { color: var(--text); font-weight: 600; }
