/* ============================================================
   MoireRemover — design tokens
   ============================================================ */
:root{
  --bg:        #faf6ec;
  --bg-soft:   #f1ead9;
  --card:      #fffdf7;
  --card-2:    #f4ecd8;
  --line:      #e0d5b8;
  --line-soft: #ece3cc;

  --ink:       #2a2317;
  --ink-dim:   #6b6047;
  --ink-faint: #9a8f70;

  --amber:     #e07a2c;
  --amber-dim: #c96a2c;
  --amber-bg:  #ff8a3d;
  --cyan:      #1c8577;

  --serif:  "Fraunces", "Georgia", serif;
  --sans:   "Inter", -apple-system, "Segoe UI", sans-serif;
  --mono:   "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  --radius: 14px;
  --radius-sm: 8px;

  --wrap: 1120px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* faint halftone grain across the whole page — a quiet nod to the
   scanned-paper texture the plugin itself removes */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(42,35,23,0.045) 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: multiply;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; }

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

/* ---------- type ---------- */
h1, h2, h3{
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
h1{ font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1.04; font-weight: 560; }
h2{ font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.15; }
h3{ font-size: 1.25rem; font-weight: 620; }

p{ margin: 0; color: var(--ink-dim); }

.eyebrow{
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before{
  content: "";
  width: 6px; height: 6px;
  background: var(--amber);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--amber);
}

/* ---------- nav ---------- */
.nav{
  position: sticky; top: 0; z-index: 40;
  background: rgba(250,246,236,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav .wrap{
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px;
}
.nav-logo{
  font-family: var(--mono);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  font-weight: 600;
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-logo .dot-mark{ display:flex; }
.nav-links{
  display: flex; gap: 28px; align-items: center;
  font-size: 0.88rem; color: var(--ink-dim);
  list-style: none; margin: 0; padding: 0;
}
.nav-links a{ text-decoration: none; color: var(--ink-dim); transition: color .2s; }
.nav-links a:hover, .nav-links a:focus-visible{ color: var(--amber); }
.nav-cta{
  font-family: var(--mono);
  font-size: 0.78rem;
  padding: 9px 16px;
  border: 1px solid var(--amber-dim);
  border-radius: 100px;
  color: var(--amber) !important;
  text-decoration: none;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.nav-cta:hover, .nav-cta:focus-visible{ background: var(--amber-bg); color: #1c1206 !important; border-color: var(--amber-bg); }

/* ---------- buttons ---------- */
.btn{
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 15px 26px;
  border-radius: 100px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s, border-color .2s, color .2s;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{
  background: var(--amber-bg);
  color: #1c1206;
  box-shadow: 0 6px 20px rgba(224,122,44,0.28);
}
.btn-primary:hover, .btn-primary:focus-visible{ background: #ff9a52; }
.btn-primary svg{ flex: none; }
.btn-ghost{
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover, .btn-ghost:focus-visible{ border-color: var(--ink-dim); }

.btn-row{ display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn-note{
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--ink-faint);
}

/* ---------- hero ---------- */
.hero{
  padding: 76px 0 40px;
  position: relative;
  overflow: hidden;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1{ margin-top: 18px; }
.hero-sub{
  margin-top: 22px;
  font-size: 1.1rem;
  max-width: 46ch;
  color: var(--ink-dim);
}
.hero .btn-row{ margin-top: 32px; }

.badge-strip{
  margin-top: 34px;
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}
.badge-strip span{ display: flex; align-items: center; gap: 7px; }
.badge-strip span::before{
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  flex: none;
}

/* ---------- spectrum signature visual ---------- */
.spectrum{
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  margin: 0 auto;
  border-radius: 50%;
}
.spectrum svg{ width: 100%; height: 100%; display: block; }
.spectrum-caption{
  position: absolute;
  left: 50%; bottom: -6px;
  transform: translate(-50%, 100%);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.spec-ring{ animation: spin 60s linear infinite; transform-origin: 200px 200px; }
.spec-noise circle{ animation: flicker 3.2s ease-in-out infinite; }
.spec-noise circle:nth-child(odd){ animation-delay: -1.1s; }
.spec-noise circle:nth-child(3n){ animation-delay: -2s; }
@keyframes spin{ to{ transform: rotate(360deg); } }
@keyframes flicker{
  0%, 100%{ opacity: 0.85; }
  50%{ opacity: 0.15; }
}

/* ---------- sections ---------- */
section{ padding: 88px 0; position: relative; z-index: 1; }
.section-head{
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head h2{ margin-top: 14px; }
.section-head p{ margin-top: 16px; font-size: 1.04rem; }

.divider{
  border: none;
  border-top: 1px solid var(--line-soft);
  margin: 0;
}

/* ---------- capability cards ---------- */
.cap-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.cap-card{
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.cap-card .tag{
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
}
.cap-card h3{ margin-top: 12px; }
.cap-card p{ margin-top: 10px; font-size: 0.96rem; }
.cap-card .mini-spec{ margin-top: 20px; }

/* small inline spectrum icons inside cards */
.mini-spec svg{ width: 100%; height: 76px; display:block; }

/* ---------- compare slider ---------- */
.compare-block{ margin-bottom: 64px; }
.compare-block:last-child{ margin-bottom: 0; }
.compare-label{
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
}
.compare{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  aspect-ratio: 3 / 2;
  background: var(--card);
  touch-action: pan-y;
}
.compare img{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.compare .img-after{ z-index: 1; }
.compare .img-before{
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}
.compare-tag{
  position: absolute; top: 14px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 100px;
  background: rgba(19,17,12,0.72);
  color: var(--ink);
  z-index: 3;
  backdrop-filter: blur(4px);
}
.compare-tag.before{ left: 14px; }
.compare-tag.after{ right: 14px; }
.compare-handle{
  position: absolute; top: 0; bottom: 0;
  left: 50%;
  width: 0;
  z-index: 4;
  pointer-events: none;
}
.compare-handle::before{
  content: "";
  position: absolute; top: 0; bottom: 0; left: -1px;
  width: 2px;
  background: var(--amber-bg);
  box-shadow: 0 0 10px rgba(255,138,61,0.7);
}
.compare-handle::after{
  content: "↔";
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--amber-bg);
  color: #1c1206;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(42,35,23,0.28);
}
.compare-range{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
  -webkit-appearance: none;
  appearance: none;
}

/* ---------- old vs new ---------- */
.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.split-col{ background: var(--bg-soft); padding: 36px 34px; }
.split-col.is-new{ background: var(--card-2); }
.split-col .tag{
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.split-col.is-new .tag{ color: var(--amber); }
.split-col h3{ margin-top: 10px; }
.step-list{
  list-style: none; margin: 22px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.step-list li{
  display: flex; gap: 14px;
  font-size: 0.95rem; color: var(--ink-dim);
}
.step-list .n{
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
  flex: none;
  padding-top: 2px;
}
.one-step{
  margin-top: 22px;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--ink);
}
.one-step span{ color: var(--amber); }

/* ---------- honesty / limits ---------- */
.limits{
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 40px 40px;
}
.limits ul{
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: flex; flex-direction: column; gap: 16px;
}
.limits li{
  padding-left: 22px;
  position: relative;
  font-size: 0.96rem;
  color: var(--ink-dim);
}
.limits li::before{
  content: "—";
  position: absolute; left: 0; color: var(--ink-faint);
}
.limits-more{
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 0.84rem;
}
.limits-more a{ color: var(--cyan); text-decoration: none; border-bottom: 1px solid rgba(111,214,196,0.35); }
.limits-more a:hover{ border-color: var(--cyan); }

/* ---------- final cta ---------- */
.cta-band{
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 90px 0;
  text-align: center;
}
.cta-band h2{ max-width: 22ch; margin: 0 auto; }
.cta-band p{ max-width: 50ch; margin: 18px auto 0; font-size: 1.05rem; }
.cta-band .btn-row{ justify-content: center; margin-top: 34px; }

/* ---------- footer ---------- */
footer{ padding: 48px 0 60px; }
.footer-grid{
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 24px;
}
.footer-mark{
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink-faint);
}
.footer-links{
  display: flex; gap: 22px;
  list-style: none; margin: 0; padding: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
}
.footer-links a{ color: var(--ink-dim); text-decoration: none; }
.footer-links a:hover{ color: var(--amber); }

/* ---------- tech page extras ---------- */
.tech-hero{ padding: 64px 0 30px; }
.tech-hero h1{ font-size: clamp(2.2rem, 4vw, 3.2rem); margin-top: 14px; }
.tech-hero p{ margin-top: 18px; max-width: 62ch; font-size: 1.05rem; }

.flow{
  counter-reset: step;
  display: flex; flex-direction: column;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.flow-step{
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 26px 28px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--card);
}
.flow-step:last-child{ border-bottom: none; }
.flow-step .num{
  counter-increment: step;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--amber);
}
.flow-step .num::before{ content: counter(step, decimal-leading-zero); }
.flow-step h3{ font-size: 1.05rem; }
.flow-step p{ margin-top: 8px; font-size: 0.94rem; }

table.spec-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec-table th, .spec-table td{
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.spec-table th{
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--bg-soft);
}
.spec-table tr:last-child td{ border-bottom: none; }
.spec-table td:first-child{ color: var(--ink); font-weight: 600; white-space: nowrap; }
.spec-table td.mono{ font-family: var(--mono); color: var(--cyan); }

.tree{
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px 28px;
  font-family: var(--mono);
  font-size: 0.86rem;
  color: var(--ink-dim);
  white-space: pre;
  overflow-x: auto;
  line-height: 1.7;
}
.tree .path{ color: var(--ink); }
.tree .cmt{ color: var(--ink-faint); }

.install-steps{
  display: flex; flex-direction: column; gap: 22px;
}
.install-steps h3{ font-size: 1rem; }
code, .inline-code{
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: 2px 7px;
}
pre{
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.84rem;
  color: var(--ink-dim);
  line-height: 1.6;
}

.back-link{
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink-dim);
  text-decoration: none;
  margin-bottom: 20px;
}
.back-link:hover{ color: var(--amber); }

/* ---------- reveal ---------- */
.reveal{ opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 860px){
  .hero-grid{ grid-template-columns: 1fr; gap: 40px; }
  .hero{ padding-top: 52px; }
  .cap-grid{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
  .nav-links{ display: none; }
  section{ padding: 64px 0; }
  .flow-step{ grid-template-columns: 44px 1fr; padding: 20px; }
  .limits{ padding: 30px 24px; }
  .spectrum{ max-width: 320px; }
}

@media (max-width: 560px){
  .wrap{ padding: 0 18px; }
  .hero{ padding-top: 40px; padding-bottom: 24px; }
  .hero-grid{ gap: 32px; }
  section{ padding: 52px 0; }
  .nav .wrap{ padding-top: 13px; padding-bottom: 13px; }
  .nav-logo{ font-size: 0.78rem; }
  .nav-cta{ padding: 8px 12px; font-size: 0.7rem; }
  .btn{ width: 100%; justify-content: center; padding: 14px 20px; }
  .btn-row{ flex-direction: column; align-items: stretch; }
  .cta-band .btn-row{ align-items: stretch; }
  .spectrum{ max-width: 240px; }
  .spectrum-caption{ font-size: 0.6rem; white-space: normal; text-align: center; width: 90%; }
  .cap-card{ padding: 24px 20px; }
  .split-col{ padding: 28px 22px; }
  .compare{ aspect-ratio: 4 / 5; }
  .compare-tag{ font-size: 0.6rem; padding: 4px 8px; }
  .compare-handle::after{ width: 32px; height: 32px; font-size: 0.85rem; }
  table.spec-table{ display: block; overflow-x: auto; white-space: nowrap; }
  .flow-step{ grid-template-columns: 36px 1fr; gap: 14px; padding: 16px; }
  .tree{ font-size: 0.72rem; padding: 18px; }
  .footer-grid{ flex-direction: column; align-items: flex-start; }
  .cta-band{ padding: 60px 0; }
}
