:root {
  --bg: #0b0c10;
  --paper: #eceae4;
  --muted: #9a958c;
  --line: rgba(236, 234, 228, 0.12);
  --plugin: #12141c;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { background: var(--bg); color: var(--paper); }
body {
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-family: var(--serif); font-style: italic; }

.kicker {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.lede {
  font-size: 18px;
  line-height: 1.5;
  max-width: 40rem;
  color: var(--muted);
}

.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px 32px;
  background: rgba(11, 12, 16, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--serif); font-size: 26px; }
.top nav { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.top nav a:hover, .top nav a.is-on { color: var(--paper); }
.top-end { display: flex; align-items: center; gap: 12px; }
a.payhip-buy-button,
a.payhip-buy-button.payhip-styled-button,
a.payhip-buy-button.payhip-green-styled-button,
.buy-pill,
.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center;
  gap: 0 !important;
  padding: 0 !important;
  font-family: var(--sans) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  line-height: 1 !important;
  background: var(--paper) !important;
  color: var(--bg) !important;
  border: 1px solid var(--paper) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
}
.buy-label, .buy-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  white-space: nowrap;
}
.buy-price {
  background: rgba(11, 12, 16, 0.1);
  border-left: 1px solid rgba(11, 12, 16, 0.12);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}
.buy-pill {
  height: 40px;
  min-height: 40px;
}
.buy-pill .buy-label { padding: 0 16px; font-size: 11px; }
.btn .buy-label, .btn-buy .buy-label { padding: 15px 22px; }
.btn.ghost {
  background: transparent !important;
  color: var(--paper) !important;
  border-color: var(--line) !important;
  padding: 14px 20px !important;
  text-transform: none !important;
  letter-spacing: -0.01em !important;
  font-size: 14px !important;
  font-weight: 400 !important;
}
a.payhip-buy-button.buy-text,
.end a.payhip-buy-button {
  background: none !important;
  color: inherit !important;
  border: none !important;
  padding: 0 !important;
  min-height: 0;
  text-transform: none;
  letter-spacing: inherit;
  font-size: inherit !important;
  font-weight: 400 !important;
}
.end a.payhip-buy-button .buy-label { padding: 0; }
a.payhip-buy-button:hover,
.buy-pill:hover,
.btn:hover {
  background: transparent !important;
  color: var(--paper) !important;
  border-color: var(--paper) !important;
}
a.payhip-buy-button:hover .buy-price {
  background: transparent;
  border-left-color: var(--line);
  color: inherit;
}
.btn.ghost:hover { background: rgba(236, 234, 228, 0.06) !important; }
a.payhip-buy-button.buy-text:hover,
.end a.payhip-buy-button:hover {
  background: none !important;
  border: none !important;
  color: var(--paper) !important;
}
.nav-toggle {
  display: none; width: 40px; height: 40px; background: none;
  border: 1px solid var(--line); position: relative; color: inherit;
}
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor;
}
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 23px; }

.hero { padding: 96px 32px 48px; max-width: 1100px; }
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 7vw, 84px); line-height: 0.96;
  letter-spacing: -0.03em; margin: 16px 0 24px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

section { padding: 80px 32px; scroll-margin-top: 72px; }
.sec-head { margin-bottom: 40px; max-width: 40rem; }
.sec-head.split {
  display: flex; justify-content: space-between; align-items: baseline;
  max-width: none; gap: 16px;
}
h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.03em;
  line-height: 1.05; margin-bottom: 12px;
}

.gif-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.gif-frame {
  position: relative;
  background: var(--plugin);
  border: 1px solid var(--line);
  aspect-ratio: 8 / 5;
  overflow: hidden;
}
.gif-frame canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.demo {
  margin: 0;
  overflow: hidden;
  background: var(--plugin);
}
.demo-video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: var(--plugin);
}
.gif-card h3 { font-family: var(--serif); font-size: 28px; font-weight: 400; margin: 16px 0 8px; }
.gif-card p { color: var(--muted); font-size: 15px; max-width: 36ch; }

.who { display: grid; grid-template-columns: minmax(16rem, 0.9fr) 1.1fr; gap: 64px; align-items: start; }
.who-intro p { color: var(--muted); font-size: 17px; }
.who-list { list-style: none; }
.who-list li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 16px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.who-list .idx { color: var(--muted); font-size: 13px; padding-top: 4px; }
.who-list h3 { font-size: 20px; font-weight: 500; margin-bottom: 8px; }
.who-list p { color: var(--muted); }

.truth {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.truth p { color: var(--muted); max-width: 38rem; }
.spec { list-style: none; }
.spec li {
  display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
.spec strong { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; color: var(--muted); }

.notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.note {
  display: block; padding: 24px; border: 1px solid var(--line); min-height: 200px;
}
.note:hover { background: rgba(236, 234, 228, 0.03); }
.note .kicker { display: block; margin-bottom: 10px; }
.note h3 { font-family: var(--serif); font-size: 24px; font-weight: 400; margin-bottom: 10px; line-height: 1.15; }
.note p { color: var(--muted); font-size: 15px; }

.faq h2 { margin-bottom: 24px; }
.faq-list { max-width: 44rem; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-size: 18px; font-weight: 500;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details p { color: var(--muted); padding: 0 0 20px; }

.buy { padding-bottom: 96px; }
.buy .lede { margin-bottom: 24px; }

.end {
  display: flex; flex-wrap: wrap; gap: 20px 32px;
  padding: 28px 32px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px;
}
.end a:hover { color: var(--paper); }

.wrap, .guides-hero, .essay { padding: 120px 32px 80px; max-width: 1100px; margin: 0 auto; }
.guides-hero { max-width: 1100px; }
.guides-hero h1 { max-width: 16ch; }
.essay { max-width: 42rem; margin-left: 32px; }
.essay-top { margin-bottom: 36px; }
.essay-body { font-size: 18px; color: var(--muted); }
.essay-body h2 { color: var(--paper); font-size: 32px; margin: 36px 0 12px; }
.essay-body p, .essay-body li { margin: 0 0 16px; }
.essay-body ul, .essay-body ol { padding-left: 1.2em; }
.essay-cta { margin: 48px 0; padding: 28px; border: 1px solid var(--line); display: grid; gap: 12px; }
.more { margin-top: 48px; }
.nf { min-height: 70vh; display: grid; place-content: center; gap: 16px; padding: 120px 32px; }
.nf h1 { font-family: var(--serif); font-size: 48px; font-weight: 400; }

@media (max-width: 900px) {
  .top nav {
    display: none; position: absolute; top: 64px; left: 16px; right: 16px;
    flex-direction: column; background: var(--bg); border: 1px solid var(--line); padding: 16px;
  }
  .nav-open .top nav { display: flex; }
  .nav-toggle { display: block; }
  .gif-row, .who, .truth, .notes-grid, .sec-head.split { grid-template-columns: 1fr; }
  .hero, section, .demo, .end, .essay { padding-left: 20px; padding-right: 20px; }
  .essay { margin-left: 0; }
  .who-list li { grid-template-columns: 2.5rem minmax(0, 1fr); }
}
