/* Stephen Roberts CX — public site system. Rebuild, not a tweak. */
:root {
  --canvas: #0b0c0b;
  --paper: #f3f1ea;
  --muted: #9a9c94;
  --faint: #6a6c64;
  --rule: #1e1f1c;
  --rule-strong: #2e302c;
  --mark: #ff5e12;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(20px, 4.2vw, 56px);
  --measure: 38rem;
  --max: 1280px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--canvas);
  color: var(--paper);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  font-feature-settings: "ss01" on, "kern" on;
}
img { max-width: 100%; display: block; }
a { color: var(--paper); }
a:hover { color: var(--mark); }
a:focus-visible {
  outline: 2px solid var(--mark);
  outline-offset: 3px;
}
::selection { background: var(--mark); color: var(--canvas); }
.skip {
  position: absolute;
  left: var(--pad);
  top: -40px;
  background: var(--paper);
  color: var(--canvas);
  padding: 8px 12px;
  z-index: 20;
  text-decoration: none;
  font-size: 13px;
}
.skip:focus { top: 8px; }

/* Header */
.site-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px var(--pad) 16px;
  border-bottom: 1px solid var(--rule-strong);
  max-width: none;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--paper);
  line-height: 1;
}
.brand:hover { color: var(--paper); }
.brand .logo {
  width: 36px;
  height: 36px;
  display: block;
  flex-shrink: 0;
}
.brand em {
  font-style: italic;
  font-family: var(--serif);
}
.brand .word span {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.62em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-left: 0.4em;
  position: relative;
  top: -0.06em;
  font-weight: 600;
  color: var(--mark);
}
.site-head nav {
  display: flex;
  gap: clamp(16px, 2.4vw, 32px);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}
.site-head nav a {
  color: var(--muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}
.site-head nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--mark);
  transition: right 0.35s ease;
}
.site-head nav a:hover,
.site-head nav a[aria-current="page"] { color: var(--paper); }
.site-head nav a:hover::after,
.site-head nav a[aria-current="page"]::after { right: 0; }

/* Layout */
.wrap {
  padding: 0 var(--pad);
}
.full { padding: 0 var(--pad); }

/* Type */
.kicker {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mark);
  font-weight: 500;
  margin: 0 0 18px;
}
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.03em; }
h1 {
  font-size: clamp(3rem, 8.4vw, 7.5rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  margin: 0 0 28px;
  font-weight: 400;
  max-width: 14ch;
}
h1.product {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  max-width: 12ch;
  line-height: 0.96;
}
h1.note-title {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  max-width: 16ch;
}
h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}
h3 { font-size: 1.25rem; line-height: 1.25; margin: 0 0 8px; }
.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  max-width: 36em;
  margin: 0;
  color: var(--paper);
  font-weight: 400;
}
.quiet { color: var(--muted); }
.meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 8px;
}
.meta a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.meta a:hover { color: var(--mark); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  padding: clamp(48px, 9vw, 120px) var(--pad) clamp(40px, 6vw, 80px);
  max-width: none;
}
.hero .lede { max-width: 28em; color: var(--muted); }

/* Annotated diagram */
.diag {
  margin: 0;
  padding: 0 var(--pad) clamp(56px, 10vw, 128px);
}
.diag-cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-top: 1px solid var(--rule-strong);
  padding: 18px 0 28px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.diag-stage {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.mock {
  background: #eceae3;
  color: #161616;
  border-radius: 10px 10px 6px 6px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  position: relative;
}
.mock-chrome {
  background: #d9d6cd;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-family: var(--sans);
  font-size: 11px;
  color: #5a5a54;
  letter-spacing: 0.02em;
}
.mock-dots { display: flex; gap: 6px; margin-right: 10px; }
.mock-dots i {
  width: 8px; height: 8px; border-radius: 50%;
  background: #b7b4aa;
  display: block;
  font-style: normal;
}
.mock-url {
  background: #f4f2eb;
  border-radius: 4px;
  padding: 3px 10px;
  flex: 1;
  max-width: 280px;
}
.mock-page { padding: 20px 28px 28px; font-family: Georgia, "Times New Roman", serif; min-height: 320px; }
.mock-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  color: #333;
}
.mock-bar strong { font-size: 13px; letter-spacing: 0; font-weight: 650; }
.mock-bar span { color: #6a6a64; }
.mock-kicker {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7a6a3a;
  margin: 0 0 10px;
}
.mock-page h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 2.6vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  max-width: 16ch;
  color: #161616;
}
.mock-sub {
  font-family: var(--sans);
  font-size: 14px;
  color: #4a4a46;
  margin: 0 0 18px;
  max-width: 36em;
  line-height: 1.45;
}
.mock-ctas { display: flex; gap: 10px; align-items: center; margin-bottom: 28px; }
.mock-btn {
  font-family: var(--sans);
  font-size: 12px;
  background: #1a1a18;
  color: #f4f2eb;
  padding: 9px 14px;
  display: inline-block;
}
.mock-ghost {
  font-family: var(--sans);
  font-size: 12px;
  color: #444;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mock-proof {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid #d4d1c8;
  padding-top: 14px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a7a72;
}
.ann { position: relative; }
.ann + .ann { margin-top: 4px; }
.pin {
  position: absolute;
  right: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--mark);
  color: var(--canvas);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  display: grid;
  place-items: center;
  z-index: 2;
  box-shadow: 0 0 0 6px rgba(255,77,46,0.18);
  animation: pin-in 0.55s ease both;
}
.pin-a { animation-delay: 0.15s; top: 22px; }
.pin-b { animation-delay: 0.4s; top: 8px; }
.pin-c { animation-delay: 0.65s; top: 6px; }
@keyframes pin-in {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}
.callouts {
  list-style: none;
  margin: 0;
  padding: 36px 0 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.callouts li {
  animation: rise 0.7s ease both;
  border-top: 1px solid var(--rule-strong);
  padding-top: 16px;
}
.callouts li:nth-child(1) { animation-delay: 0.2s; }
.callouts li:nth-child(2) { animation-delay: 0.45s; }
.callouts li:nth-child(3) { animation-delay: 0.7s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.callouts .n {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mark);
  font-weight: 600;
  margin-bottom: 8px;
}
.callouts strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  line-height: 1.15;
}
.callouts p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 32em;
  line-height: 1.5;
}

/* Sections */
.section {
  padding: clamp(48px, 8vw, 104px) var(--pad);
  border-top: 1px solid var(--rule-strong);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head h2 { margin: 0; }
.section-head .note {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* Product index — typographic rows, not cards */
.index { margin: 0; padding: 0; list-style: none; }
.index a {
  display: grid;
  grid-template-columns: 3.2rem 1fr auto auto;
  gap: 12px 28px;
  align-items: baseline;
  text-decoration: none;
  color: var(--paper);
  padding: 28px 0;
  border-top: 1px solid var(--rule-strong);
  transition: color 0.2s ease;
}
.index li:last-child a { border-bottom: 1px solid var(--rule-strong); }
.index .num {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--faint);
  letter-spacing: -0.03em;
}
.index .body { min-width: 0; }
.index .name {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  display: block;
}
.index .one {
  display: block;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 8px;
  max-width: 38em;
  letter-spacing: -0.011em;
  line-height: 1.45;
}
.index .kind {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 500;
  align-self: center;
}
.index .price {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  gap: 14px;
  justify-self: end;
}
.index .arrow {
  font-style: normal;
  font-family: var(--sans);
  font-size: 1.1rem;
  color: var(--muted);
  transition: transform 0.25s ease, color 0.25s ease;
}
.index a:hover .name { color: var(--mark); }
.index a:hover .arrow { color: var(--mark); transform: translateX(5px); }
.index a:focus-visible { outline: 2px solid var(--mark); outline-offset: 6px; }

/* How */
.how {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: how;
}
.how li { margin: 0; }
.how .n {
  font-family: var(--serif);
  font-size: 2.4rem;
  letter-spacing: -0.04em;
  color: var(--mark);
  display: block;
  margin-bottom: 12px;
  line-height: 1;
}
.how h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}
.how p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* Sample as artifact */
.artifact {
  max-width: 52rem;
}
.pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.55rem, 3.1vw, 2.45rem);
  line-height: 1.22;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  max-width: 22ch;
}
.artifact .attr {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 18px;
}
.more {
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--paper);
  border-bottom: 1px solid var(--mark);
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.more:hover { color: var(--mark); }

/* FAQ */
.faq + .faq {
  border-top: 1px solid var(--rule);
  margin-top: 22px;
  padding-top: 22px;
}
.faq { max-width: 40rem; }
.faq h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
}
.faq p { margin: 0; color: var(--muted); }

/* Product split */
.split {
  display: grid;
  grid-template-columns: 1.25fr 0.7fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  padding: clamp(40px, 7vw, 88px) var(--pad) clamp(24px, 4vw, 48px);
}
.prose { max-width: 40rem; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 8px 0 20px; padding-left: 1.15em; }
.prose li { margin-bottom: 10px; color: var(--muted); }
.prose li strong { color: var(--paper); font-weight: 500; }
.prose h2 { margin-top: 36px; }
.prose a { text-underline-offset: 3px; }
.buy {
  position: sticky;
  top: 24px;
  padding: 8px 0 0;
  border-top: 1px solid var(--paper);
}
.buy .price {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 5vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  margin: 16px 0 8px;
}
.buy .kind {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 16px;
}
.buy p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 28em;
}
a.pay {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  color: var(--canvas);
  text-decoration: none;
  padding: 14px 22px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--paper);
}
a.pay:hover {
  background: var(--mark);
  border-color: var(--mark);
  color: var(--canvas);
}
a.pay:focus-visible { outline: 2px solid var(--mark); outline-offset: 3px; }

/* Also */
.also { list-style: none; margin: 0; padding: 0; }
.also a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  text-decoration: none;
  color: var(--paper);
  padding: 18px 0;
  border-top: 1px solid var(--rule-strong);
  align-items: baseline;
}
.also li:last-child a { border-bottom: 1px solid var(--rule-strong); }
.also .nm {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}
.also .pr {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--muted);
}
.also a:hover .nm { color: var(--mark); }

/* Notes / teardown */
.narrow { max-width: 42rem; padding-top: clamp(36px, 6vw, 72px); padding-bottom: 24px; }
.verdict {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.32;
  letter-spacing: -0.028em;
  margin: 8px 0 28px;
  color: var(--paper);
}
.leak, .issue {
  border-top: 1px solid var(--rule-strong);
  padding: 22px 0 8px;
  margin: 24px 0;
}
.leak-label, .issue-num {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mark);
  font-weight: 600;
  margin-bottom: 10px;
}
.label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
  margin: 16px 0 6px;
}
code {
  font-family: ui-monospace, "IBM Plex Mono", Menlo, monospace;
  font-size: 0.86em;
  color: var(--paper);
  background: #161716;
  padding: 0.1em 0.35em;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 16px 0 12px;
}
th, td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule-strong);
  padding: 10px 12px 10px 0;
}
th {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.yes { color: var(--paper); }
.no { color: var(--faint); }

/* Footer */
.site-foot {
  margin-top: 0;
  padding: 28px var(--pad) 56px;
  border-top: 1px solid var(--rule-strong);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}
.site-foot .domain {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--paper);
  letter-spacing: -0.02em;
}
.site-foot .domain img {
  width: 22px;
  height: 22px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pin, .callouts li, .index .arrow, .site-head nav a::after {
    animation: none;
    transition: none;
  }
}

@media print {
  body { background: #fff; color: #111; font-size: 11pt; }
  .site-head, .site-foot { border-color: #111; }
  a { color: #111; }
  a.pay { background: none; color: #111; border: 1px solid #111; }
  .mock { box-shadow: none; }
  .pin { box-shadow: none; }
  .buy { position: static; }
  .callouts li, .pin { animation: none; }
}

@media (max-width: 880px) {
  .hero,
  .diag-stage,
  .split,
  .how { grid-template-columns: 1fr; }
  h1 { max-width: none; }
  .hero { padding-top: 40px; padding-bottom: 36px; }
  .hero .lede { max-width: none; }
  .callouts { padding-top: 8px; }
  .index a {
    grid-template-columns: 2.2rem 1fr auto;
    gap: 6px 14px;
    padding: 22px 0;
  }
  .index .kind { display: none; }
  .split { display: flex; flex-direction: column; }
  .buy { position: static; order: -1; margin: 0 0 28px; padding-bottom: 20px; }
  .pull { max-width: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-head {
    flex-wrap: wrap;
    gap: 10px 20px;
    padding-top: 16px;
  }
  .site-head nav { gap: 16px; }
  h1 { font-size: clamp(2.55rem, 12vw, 3.4rem); }
  h1.product { font-size: clamp(2.2rem, 11vw, 3rem); }
  .mock-page { padding: 14px 14px 18px; }
  .mock-page h2 { font-size: 1.35rem; }
  .pin { width: 22px; height: 22px; font-size: 10px; }
  .callouts strong { font-size: 1.3rem; }
  .site-foot {
    flex-direction: column;
    gap: 8px;
    padding-bottom: 40px;
  }
}

.tools-lede { margin: 0 0 28px; max-width: 36em; color: var(--muted); }
.longform { padding-top: clamp(36px, 6vw, 72px); max-width: 46rem; padding-bottom: 24px; }
.prose .pull { max-width: 22ch; margin: 8px 0 18px; }
