/* LeadAIvisor. Operated by Hello Thesa LLC.
   Marketing pages run ink-dark. Legal pages flip to paper, because long-form
   legal text is unreadable on black and Meta reviewers read these end to end. */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --ink: #0d0d0b;
  --ink-soft: #161613;
  --ink-line: #2a2a25;
  --bone: #eeeae1;
  --bone-dim: #9a968c;
  --marigold: #e0a132;
  --marigold-dim: #8a6520;

  --paper: #f4f1e9;
  --paper-line: #d8d2c4;
  --paper-ink: #1b1b18;
  --paper-dim: #5c584f;

  --display: 'Instrument Serif', Georgia, serif;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --measure: 68ch;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ============ DARK SHELL (marketing) ============ */

body.dark {
  background: var(--ink);
  color: var(--bone);
}

/* Fine grid + grain. Atmosphere without an image request. */
body.dark::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--ink-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
  background-size: 76px 76px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 40%, transparent 100%);
  z-index: 0;
}

body.dark::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ============ MASTHEAD ============ */

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 34px 0;
  border-bottom: 1px solid var(--ink-line);
}

.wordmark {
  font-family: var(--display);
  font-size: 27px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.wordmark .ai { color: var(--marigold); font-style: italic; }

.masthead nav {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.masthead nav a {
  text-decoration: none;
  color: var(--bone-dim);
  margin-left: 26px;
  transition: color 0.2s;
}
.masthead nav a:hover { color: var(--marigold); }

/* ============ HERO ============ */

.hero { padding: 104px 0 88px; max-width: 900px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--marigold);
  margin: 0 0 30px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--marigold-dim), transparent);
}

h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(46px, 7.2vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
}
h1 em { font-style: italic; color: var(--marigold); }

.lede {
  font-size: 21px;
  line-height: 1.55;
  color: var(--bone-dim);
  max-width: 60ch;
  margin: 0 0 44px;
}

/* Staggered page-load reveal. One orchestrated moment, not scattered fidgets. */
.reveal { opacity: 0; transform: translateY(18px); animation: rise 0.85s cubic-bezier(.2,.7,.2,1) forwards; }
.reveal:nth-child(1) { animation-delay: 0.05s; }
.reveal:nth-child(2) { animation-delay: 0.16s; }
.reveal:nth-child(3) { animation-delay: 0.27s; }
.reveal:nth-child(4) { animation-delay: 0.38s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 28px;
  border: 1px solid var(--marigold);
  transition: background 0.22s, color 0.22s, transform 0.22s;
}
.btn-solid { background: var(--marigold); color: var(--ink); }
.btn-solid:hover { transform: translateY(-2px); }
.btn-ghost { color: var(--marigold); }
.btn-ghost:hover { background: var(--marigold); color: var(--ink); transform: translateY(-2px); }

/* ============ STEPS ============ */

.steps {
  padding: 84px 0 96px;
  border-top: 1px solid var(--ink-line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
}
.step {
  background: var(--ink);
  padding: 44px 34px 48px;
}
.step .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--marigold);
  letter-spacing: 0.14em;
  display: block;
  margin-bottom: 20px;
}
.step h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 28px;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.step p { margin: 0; color: var(--bone-dim); font-size: 16px; }

@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; padding-top: 60px; }
  .hero { padding: 68px 0 56px; }
}

/* ============ SECTION ============ */

.section { padding: 92px 0; }
.section h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 52px);
  letter-spacing: -0.015em;
  margin: 0 0 26px;
}
.section p { color: var(--bone-dim); max-width: var(--measure); }

/* ============ FOOTER ============ */

.foot {
  border-top: 1px solid var(--ink-line);
  padding: 52px 0 68px;
  position: relative;
  z-index: 2;
}
.foot-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.foot .entity {
  font-size: 14.5px;
  color: var(--bone-dim);
  max-width: 34ch;
}
.foot .entity strong { color: var(--bone); font-weight: 500; }

.legal-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.legal-links a {
  color: var(--bone-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  align-self: flex-start;
}
.legal-links a:hover { color: var(--marigold); border-bottom-color: var(--marigold); }

.legal-links .label {
  color: var(--ink-line);
  color: #57544c;
  letter-spacing: 0.14em;
  margin-bottom: 2px;
}

/* ============ PAPER SHELL (legal) ============ */

body.paper {
  background: var(--paper);
  color: var(--paper-ink);
}

/* subtle paper tooth */
body.paper::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.doc-head {
  border-bottom: 1px solid var(--paper-line);
  padding: 30px 0;
}
.doc-head .wordmark { color: var(--paper-ink); }
.doc-head .back {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper-dim);
  text-decoration: none;
}
.doc-head .back:hover { color: var(--marigold-dim); }
.doc-head .row { display: flex; justify-content: space-between; align-items: baseline; }

.doc {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: 66px 28px 110px;
}

.doc .kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--marigold-dim);
  margin: 0 0 18px;
}

.doc h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(38px, 5.6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--paper-ink);
}

.doc .updated {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--paper-dim);
  margin: 0 0 46px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--paper-line);
}

.doc h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: -0.01em;
  margin: 52px 0 14px;
  color: var(--paper-ink);
}

.doc h3 {
  font-family: var(--body);
  font-weight: 600;
  font-size: 17px;
  margin: 30px 0 8px;
}

.doc p, .doc li { color: #2f2c27; }
.doc p { margin: 0 0 16px; }
.doc ul { margin: 0 0 18px; padding-left: 22px; }
.doc li { margin-bottom: 9px; }

.doc a { color: var(--marigold-dim); text-decoration: underline; text-underline-offset: 2px; }

.doc code {
  font-family: var(--mono);
  font-size: 14px;
  background: #e7e2d6;
  padding: 1px 6px;
  border-radius: 2px;
}

.callout {
  border-left: 3px solid var(--marigold);
  background: #ebe6da;
  padding: 20px 24px;
  margin: 28px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { font-weight: 600; }

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0 28px;
  font-size: 15.5px;
}
.doc th, .doc td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--paper-line);
  vertical-align: top;
}
.doc th {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--paper-dim);
  font-weight: 500;
}
.doc td code { font-size: 13px; }

.doc-foot {
  border-top: 1px solid var(--paper-line);
  margin-top: 60px;
  padding-top: 26px;
  font-size: 14.5px;
  color: var(--paper-dim);
}
.doc-foot a { color: var(--marigold-dim); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .masthead nav a { margin-left: 16px; font-size: 11.5px; }
  .doc table { font-size: 14px; }
  .doc th, .doc td { padding: 9px 8px; }
}
