/* copyboy.ai — paper, ink, one yellow. The illustrations do the talking. */
:root {
  --paper: #f5f0e6;
  --paper-2: #ece6d8;
  --ink: #141414;
  --ink-2: #3f3c36;
  --ink-3: #85806f;
  --rule: #d9d2c2;
  --yellow: #e6a817;
  --red: #d42b1e;
  --blue: #1f4fb5;
  --green: #4caf50;
  --font: Archivo, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --gutter: max(20px, calc((100vw - var(--wrap)) / 2));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3 { margin: 0 0 20px; font-weight: 800; line-height: 0.95; letter-spacing: -0.01em; text-transform: uppercase; font-stretch: 78%; }
h1 { font-size: clamp(44px, 5.6vw, 80px); font-weight: 900; max-width: 14ch; }
h2 { font-size: clamp(30px, 3.4vw, 46px); max-width: 20ch; }
h3 { font-size: 21px; line-height: 1.1; margin-bottom: 8px; text-transform: none; font-stretch: 100%; font-weight: 800; }
p { margin: 0 0 16px; }
.lead { font-size: 19px; line-height: 1.5; color: var(--ink-2); max-width: 52ch; }
.eyebrow { margin: 0 0 16px; font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); }
.eyebrow_light { color: var(--yellow); }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.section { padding-block: 104px; }
.section_dark { background: var(--ink); color: var(--paper); }
.section_dark h2 { color: var(--paper); }
.section_dark a { color: var(--yellow); }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 54px; padding: 0 28px; border: 0; border-radius: 0;
  font: inherit; font-weight: 700; font-size: 17px; white-space: nowrap;
  color: var(--paper); background: var(--ink); text-decoration: none;
  transition: background .15s;
}
.button:hover { text-decoration: none; background: #000; }
.button_small { height: 40px; padding: 0 18px; font-size: 14px; }
.textlink { font-weight: 700; color: var(--ink); }
.textlink:hover { color: var(--blue); text-decoration: none; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); }
.top__row { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.top__nav { display: flex; align-items: center; gap: 28px; }
.top__nav a:not(.button) { color: var(--ink-2); font-weight: 700; font-size: 14px; }
.top__nav a:not(.button):hover { color: var(--ink); text-decoration: none; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; color: var(--ink); font-stretch: 85%; }
.logo:hover { text-decoration: none; }
.logo__mark { display: inline-block; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); }
.logo__mark_small { width: 16px; height: 16px; }

/* hero: text on the left, illustration bleeding to the right edge */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 24px; padding-block: 48px 0; }
.hero__copy { padding-left: var(--gutter); padding-bottom: 48px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 32px; }
.hero__art img { width: 100%; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: 48px; }
.step__n { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: 18px; font-size: 18px; font-weight: 800; color: var(--paper); background: var(--ink); }
.step__n_red { background: var(--red); }
.step__n_blue { background: var(--blue); }
.step__n_yellow { background: var(--yellow); color: var(--ink); }
.step p { margin: 0; font-size: 16px; color: var(--ink-2); }

@keyframes blink { 0%, 100% { opacity: 1 } 50% { opacity: 0 } }

.trace { list-style: none; margin: 0; padding: 18px 20px; background: var(--ink); color: #e8e3d6; font: 13px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; }
.trace__step { display: flex; gap: 10px; align-items: baseline; padding: 3px 0; }
.trace__step::before { content: "✓"; color: var(--green); font-weight: 700; }
.trace__step_live::before { content: "■"; color: var(--yellow); animation: pulse 1.6s infinite; }
.trace__step_live { color: #fff; font-weight: 700; }
.trace__t { color: #8f8a7e; }
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .3 } }

/* split sections: illustration on one side, bleeding to the viewport edge */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; padding-block: 0; }
.split__art { align-self: stretch; min-height: 520px; max-height: 760px; overflow: hidden; }
.split__art img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.split__copy { padding-block: 96px; padding-right: var(--gutter); }
.split_reverse .split__copy { padding-right: 0; padding-left: var(--gutter); }
.split__art_tall img { object-position: 50% 88%; }

.pillars { display: grid; gap: 0; margin-top: 8px; }
.pillar { padding: 22px 0; border-top: 1px solid var(--rule); }
.pillar p { margin: 0; color: var(--ink-2); }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 12px; }
.tile { display: grid; gap: 4px; align-content: start; padding: 22px 20px 22px 0; border-top: 1px solid var(--rule); }
.tile__k { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.tile__k_red { color: var(--red); }
.tile__v { font-size: 38px; font-weight: 900; line-height: 1; font-stretch: 80%; }
.tile__s { font-size: 13px; color: var(--ink-3); }

/* principles */
.principles { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.rules { color: #cfc9bb; }
.rule { padding: 18px 0; border-top: 1px solid rgba(245,240,230,.2); }
.rule strong { display: block; color: var(--paper); font-size: 18px; margin-bottom: 2px; }
.proof { margin-top: 32px; padding-left: 20px; border-left: 4px solid var(--yellow); color: #e8e3d6; }

/* cta */
.cta .split__copy .lead { margin-bottom: 28px; }

/* prose pages */
.prose { max-width: 72ch; }
.prose h1 { margin-bottom: 24px; }
.prose h2 { font-size: 30px; margin-top: 44px; }
.prose p, .prose li { color: var(--ink-2); }

/* footer */
.foot { border-top: 1px solid var(--rule); padding-block: 28px; font-size: 14px; }
.foot__row { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.foot__brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; font-size: 17px; text-transform: uppercase; font-stretch: 85%; }
.foot__muted { font-weight: 400; color: var(--ink-3); text-transform: none; font-stretch: 100%; }
.foot__links { display: flex; gap: 22px; align-items: center; font-weight: 700; }

@media (max-width: 960px) {
  .section { padding-block: 80px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
  .hero__copy { padding-inline: 20px; padding-bottom: 0; }
  .hero__copy h1 { max-width: none; }
  .steps { grid-template-columns: 1fr 1fr; gap: 32px; }
  .demo { grid-template-columns: 1fr; margin-top: 56px; padding-top: 40px; }
  .split { grid-template-columns: 1fr; gap: 0; }
  .split__copy, .split_reverse .split__copy { padding: 56px 20px 72px; }
  .split_reverse .split__art { order: 2; }
  .split__art { min-height: 0; max-height: 520px; }
  .split__art img { height: auto; max-height: 520px; }
  .principles { grid-template-columns: 1fr; gap: 24px; }
  .top__nav a:not(.button) { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .steps, .tiles { grid-template-columns: 1fr; }
  .hero__cta .button { width: 100%; }
}

/* --- buyer-facing sections --- */
.hero__proof { margin-top: 28px; font-size: 14px; color: var(--ink-3); max-width: 44ch; }
.hero__proof a { color: var(--ink-2); font-weight: 700; }

.problem { padding-block: 88px; background: var(--yellow); color: var(--ink); }
.problem__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.problem .eyebrow { color: var(--ink); }
.problem h2 { max-width: 18ch; font-size: clamp(32px, 3.8vw, 52px); }
.problem__copy .lead { max-width: 48ch; color: var(--ink); }
.problem__copy .lead:last-child { margin-bottom: 0; }

.jobs { list-style: none; margin: 8px 0 24px; padding: 0; }
.jobs li { position: relative; padding: 14px 0 14px 28px; border-top: 1px solid var(--rule); color: var(--ink-2); }
.jobs li::before { content: ""; position: absolute; left: 0; top: 22px; width: 12px; height: 12px; background: var(--ink); }
.jobs li:nth-child(3n+1)::before { background: var(--red); }
.jobs li:nth-child(3n+2)::before { background: var(--blue); }
.jobs li:nth-child(3n+3)::before { background: var(--yellow); }
.jobs li strong { color: var(--ink); }
.jobs__note { color: var(--ink-2); max-width: 52ch; margin: 0; }

.section_paper { background: var(--paper-2); }
.pillars_3 { grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 44px; }
.pillars_3 .pillar { border-top: 2px solid var(--ink); padding-top: 20px; }

.report__note { margin: 20px 0 0; font-size: 15px; color: var(--ink-3); max-width: 52ch; }

.principles__lead { color: #cfc9bb; max-width: 40ch; font-size: 17px; }

.faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.faq__list { margin: 0; }
.faq__item { padding: 20px 0; border-top: 1px solid var(--rule); }
.faq__item:last-child { border-bottom: 1px solid var(--rule); }
.faq dt { font-weight: 800; font-size: 18px; margin-bottom: 6px; }
.faq dd { margin: 0; color: var(--ink-2); }

.cta__note { margin: 18px 0 0; font-size: 14px; color: var(--ink-3); max-width: 44ch; }

@media (max-width: 960px) {
  .problem { padding-block: 64px; }
  .problem h2 { font-size: clamp(30px, 8vw, 40px); }
  .problem__grid, .faq { grid-template-columns: 1fr; gap: 24px; }
  .pillars_3 { grid-template-columns: 1fr; gap: 24px; }
}

/* --- the console, embedded --- */
.inside { padding-block: 88px 104px; }
.inside__lead { margin-top: -6px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 20px; }
.tab { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; font: inherit; font-weight: 700; font-size: 15px; line-height: 1.1; padding: 10px 16px 11px; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; text-align: left; }
.tab__when { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.tab.is-active .tab__when { color: var(--yellow); }
.story { display: grid; grid-template-columns: minmax(0, 20ch) 1fr; gap: 8px 40px; align-items: start; margin: 0 0 20px; padding: 18px 0 20px; border-top: 1px solid var(--rule); }
.story__title { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.15; }
.story__text { margin: 0; color: var(--ink-2); max-width: 62ch; }
.win__note { margin-left: auto; font-weight: 700; color: var(--ink-3); }
.tab:hover { background: var(--paper-2); }
.tab.is-active { background: var(--ink); color: var(--paper); }
.win { border: 2px solid var(--ink); background: #f6f6f6; }
.win__bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; background: var(--paper-2); border-bottom: 2px solid var(--ink); font-size: 12px; font-weight: 700; color: var(--ink-2); }
.win__dots { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 16px 0 0 var(--yellow), 32px 0 0 var(--blue); margin-right: 24px; }
.win__frame { display: block; width: 100%; height: 680px; border: 0; background: #f6f6f6; }
@media (max-width: 960px) {
  .inside { padding-block: 64px 80px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .tab { flex: none; }
  .story { grid-template-columns: 1fr; gap: 8px; }
  .win__frame { height: 560px; }
}
