/* AdIntent
   Every brand decision lives in the tokens below (colors, type, radius) and
   in the files under /img/brand/ and the favicon set at the root, taken from
   the brand package (docs/brand/adintent): a brand change replaces those, with
   no change to the pages. The recurring motif is the mark's own idea, a line
   of text with the placement (the brass diamond) set into it. Brass is for
   graphics only; it never carries text. */

:root{
  --ink: #101820;
  --night: #0B1118;
  --paper: #F6F5F1;
  --white: #FFFFFF;
  --brass: #B8862B;
  --brass-light: #E2B456;
  --cobalt: #2448D8;
  --cobalt-light: #8EA6FF;
  --slate: #566271;
  --mist: #9AA4B2;
  --line: #E2E0D8;
  --line-dark: rgba(246, 245, 241, .12);
  --font-display: "Instrument Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --max: 1140px;
  --gutter: 28px;
}

*{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; }
body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img{ max-width: 100%; display: block; }
a{ color: var(--cobalt); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover{ text-decoration-thickness: 2px; }
h1, h2, h3{ font-family: var(--font-display); font-weight: 600; color: var(--ink); line-height: 1.08; margin: 0 0 .5em; text-wrap: balance; }
h1{ font-size: clamp(2.4rem, 5.2vw, 3.5rem); letter-spacing: -0.02em; line-height: 1.05; }
h2{ font-size: clamp(1.65rem, 3vw, 2rem); letter-spacing: -0.01em; }
h3{ font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.25; }
p{ margin: 0 0 1em; }
b, strong{ font-weight: 600; }
:focus-visible{ outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
::selection{ background: rgba(36, 72, 216, .16); }

.wrap{ max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* the placement: a small brass diamond set into a line */
.dia{ display: inline-block; width: .5em; height: .5em; background: var(--brass); transform: rotate(45deg); flex-shrink: 0; }

.eyebrow{ display: inline-flex; align-items: center; gap: 10px; font: 500 .75rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--slate); margin-bottom: 18px; }
.eyebrow::before{ content: ""; width: 7px; height: 7px; background: var(--brass); transform: rotate(45deg); }
.lede{ text-wrap: pretty; font-size: 1.2rem; line-height: 1.55; color: var(--slate); max-width: 36em; }

/* header */
.site-header{ position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap{ display: flex; align-items: center; gap: 28px; height: 72px; }
.brand{ display: flex; align-items: center; flex-shrink: 0; padding: 6px 0; }
.brand img{ height: 24px; width: auto; }
.nav{ display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a{ position: relative; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: var(--radius-sm); }
.nav a:hover{ background: rgba(16, 24, 32, .05); }
.nav a[aria-current="page"]::after{ content: ""; position: absolute; left: 50%; bottom: -15px; width: 7px; height: 7px; margin-left: -3.5px; background: var(--brass); transform: rotate(45deg); }

.btn{ display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; font-size: .95rem; line-height: 1; padding: 13px 20px; border-radius: var(--radius-sm); border: 1px solid var(--ink); transition: background .15s ease, border-color .15s ease, color .15s ease; }
.btn:hover{ background: #222c37; border-color: #222c37; text-decoration: none; }
.btn--accent{ background: var(--cobalt); border-color: var(--cobalt); color: var(--white); }
.btn--accent:hover{ background: #1c3bb8; border-color: #1c3bb8; }
.btn--ghost{ background: transparent; color: var(--ink); border-color: #cfccc2; }
.btn--ghost:hover{ background: var(--white); border-color: var(--ink); }
.btn .arr{ transition: transform .15s ease; }
.btn:hover .arr{ transform: translateX(3px); }
.nav .btn{ margin-left: 12px; padding: 10px 16px; color: var(--paper); }
.nav .btn:hover{ background: #222c37; }

/* hero */
.hero{ position: relative; padding: 96px 0 88px; overflow: hidden; }
.hero::before{ /* ruled lines: the page the placement is set into */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0 39px, rgba(16, 24, 32, .045) 39px 40px);
  mask-image: radial-gradient(ellipse 70% 90% at 75% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 75% 40%, #000 0%, transparent 75%);
  pointer-events: none;
}
.hero .wrap{ position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 64px; align-items: center; }
.hero h1{ margin-bottom: 24px; }
.hero h1 .dia{ width: .32em; height: .32em; margin: 0 .16em 0 .12em; vertical-align: .14em; }
.hero .actions{ display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.page-hero{ padding: 80px 0 48px; }
.page-hero h1{ max-width: 16em; }
.page-hero .lede{ margin-top: 10px; }

/* the illustration: an article column, the matched line, the unit set under it */
.demo{ margin: 0; position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 28px 22px; box-shadow: 0 1px 0 rgba(16,24,32,.04), 0 40px 80px -48px rgba(16,24,32,.45); }
.demo__bar{ display: flex; align-items: center; gap: 6px; margin-bottom: 22px; }
.demo__bar span{ width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.demo__tag{ position: absolute; right: 22px; top: 22px; display: inline-flex; align-items: center; gap: 8px; font: 500 .68rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.demo__tag::before{ content: ""; width: 6px; height: 6px; background: var(--brass); transform: rotate(45deg); }
.demo__title{ font: 600 1.2rem/1.25 var(--font-display); color: var(--ink); margin-bottom: 14px; letter-spacing: -0.01em; }
.demo__text{ height: 8px; border-radius: 4px; background: #EEECE6; margin: 10px 0; }
.demo__label{ margin: 20px 0 4px; font: 500 .68rem/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }
.demo__list{ list-style: none; margin: 0; padding: 0; font-size: .97rem; color: var(--ink); }
.demo__list li{ display: flex; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid #EFEDE7; }
.demo__list li::before{ content: ""; width: 5px; height: 5px; border-radius: 50%; background: #c9c6bd; flex-shrink: 0; }
.demo__list li.is-match{ font-weight: 600; }
.demo__list li.is-match::before{ width: 8px; height: 8px; border-radius: 0; background: var(--brass); transform: rotate(45deg); margin: 0 -1.5px; }
.demo__unit{ position: relative; margin: 2px 0 6px 20px; display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); font-size: .85rem; }
.demo__unit::before{ /* the thread from the line to the unit placed under it */
  content: ""; position: absolute; left: -16px; top: -10px; width: 12px; height: 32px;
  border-left: 1px solid var(--brass); border-bottom: 1px solid var(--brass); border-bottom-left-radius: 4px;
}
.demo__thumb{ width: 44px; height: 44px; border-radius: var(--radius-sm); background: linear-gradient(140deg, #EDE6D3, #D9CFB4); position: relative; overflow: hidden; }
.demo__thumb::after{ content: ""; position: absolute; left: 17px; top: 9px; width: 10px; height: 26px; border-radius: 4px 4px 3px 3px; background: #9C8540; opacity: .55; }
.demo__unit b{ display: block; color: var(--ink); font-size: .92rem; font-weight: 600; }
.demo__unit small{ font: 500 .66rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
.demo__cta{ font-weight: 600; color: var(--cobalt); white-space: nowrap; }
.demo__note{ margin: 16px 0 0; padding-top: 14px; border-top: 1px dashed var(--line); font-size: .8rem; color: var(--slate); }

/* sections */
.section{ padding: 96px 0; }
.section--tint{ background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark{ background: var(--night); color: var(--paper); }
.section--dark h2, .section--dark h3{ color: var(--paper); }
.section--dark p{ color: var(--mist); }
.section--dark a:not(.btn){ color: var(--cobalt-light); }
.section--dark .eyebrow{ color: var(--mist); }
.section--dark .eyebrow::before{ background: var(--brass-light); }
.section-head{ max-width: 42em; margin-bottom: 48px; }
.section-head p{ color: var(--slate); font-size: 1.05rem; }

/* how it works: three steps on one ruled line, a diamond where each sits */
.steps{ position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; padding-top: 28px; }
.steps::before{ content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1px; background: var(--line); }
.step{ position: relative; padding: 0 8px 0 0; }
.step::before{ content: ""; position: absolute; top: -28px; left: 0; width: 9px; height: 9px; background: var(--ink); transform: rotate(45deg); }
.step:last-child::before{ background: var(--brass); }
.step::after{ counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: -32px; left: 22px; font: 500 .72rem/1 var(--font-mono); letter-spacing: .1em; color: var(--slate); background: var(--white); padding: 0 8px; }
.step h3{ margin-bottom: 10px; }
.step p{ margin: 0; color: var(--slate); font-size: 1rem; }

.split{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card{ display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; text-decoration: none; color: inherit; transition: border-color .15s ease, box-shadow .15s ease; }
.section--tint .card{ background: var(--paper); }
a.card:hover{ border-color: var(--ink); box-shadow: 0 24px 48px -32px rgba(16,24,32,.4); text-decoration: none; }
.card h3{ font-size: 1.4rem; margin-bottom: 12px; }
.card p{ color: var(--slate); }
.card .more{ margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--cobalt); display: inline-flex; align-items: center; gap: 8px; }
a.card:hover .more{ gap: 12px; }
.card ul{ list-style: none; margin: 4px 0 20px; padding: 0; }
.card li{ position: relative; padding: 9px 0 9px 22px; border-top: 1px solid var(--line); font-size: .98rem; }
.card li:last-child{ border-bottom: 1px solid var(--line); }
.card li::before{ content: ""; position: absolute; left: 2px; top: 1.05em; width: 6px; height: 6px; background: var(--brass); transform: rotate(45deg); }

.prose{ max-width: 42em; }
.prose p, .prose li{ color: #2b3540; }
.prose h2{ font-size: 1.5rem; margin-top: 2.2em; }
.prose h3{ margin-top: 1.6em; }
.prose ul, .prose ol{ padding-left: 22px; }
.prose li{ margin: 8px 0; }
.prose .updated{ font: 500 .75rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--slate); margin-bottom: 28px; }

.table{ width: 100%; border-collapse: separate; border-spacing: 0; font-size: .98rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.section--tint .table{ background: var(--paper); }
.table th, .table td{ text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th{ font: 500 .72rem/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.table tr:last-child td{ border-bottom: 0; }
.table td{ color: #2b3540; }
.table td:first-child{ font-weight: 500; color: var(--ink); white-space: nowrap; font-family: var(--font-mono); font-size: .9rem; letter-spacing: .02em; }

.network{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pub{ display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; text-decoration: none; color: inherit; transition: border-color .15s ease, background .15s ease; }
.pub:hover{ border-color: var(--ink); background: var(--white); text-decoration: none; }
.pub em{ display: inline-flex; align-items: center; gap: 8px; font: 500 .66rem/1 var(--font-mono); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); margin-bottom: 14px; }
.pub em::before{ content: ""; width: 5px; height: 5px; background: var(--brass); transform: rotate(45deg); }
.pub b{ display: block; font: 600 1.12rem/1.25 var(--font-display); color: var(--ink); letter-spacing: -0.01em; }
.pub small{ display: block; font: 500 .8rem/1.4 var(--font-mono); color: var(--cobalt); margin: 3px 0 10px; }
.pub span{ font-size: .93rem; color: var(--slate); line-height: 1.5; }

.chips{ display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 28px; }
.chips span{ font: 500 .74rem/1 var(--font-mono); letter-spacing: .06em; padding: 8px 12px; border: 1px solid var(--line-dark); border-radius: 999px; color: var(--paper); }

.contact{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.contact .card{ padding: 28px; }
.contact .card h3{ margin-bottom: 8px; font-size: 1.2rem; }
.contact .card p{ flex: 1; }
.contact .card a{ font-weight: 600; word-break: break-all; font-family: var(--font-mono); font-size: .9rem; }

.cta{ display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta > div{ max-width: 40em; }
.cta h2{ margin: 0 0 12px; }
.cta p{ margin: 0; }

/* footer */
.site-footer{ background: var(--night); color: var(--mist); padding: 72px 0 40px; font-size: .93rem; }
.site-footer .wrap{ display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }
.site-footer img{ height: 22px; width: auto; margin-bottom: 20px; }
.site-footer p{ max-width: 22em; }
.site-footer h4{ margin: 4px 0 16px; font: 500 .7rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--paper); }
.site-footer ul{ list-style: none; margin: 0; padding: 0; }
.site-footer li{ margin: 9px 0; }
.site-footer a{ color: var(--mist); text-decoration: none; }
.site-footer a:hover{ color: var(--paper); }
.site-footer .base{ grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 28px; margin-top: 16px; border-top: 1px solid var(--line-dark); font-size: .85rem; }
.site-footer .base .dia{ width: 6px; height: 6px; background: var(--brass-light); }

@media (max-width: 960px){
  .hero .wrap{ grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .network, .contact{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .wrap{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px){
  :root{ --gutter: 16px; }
  body{ font-size: 16px; }
  .site-header .wrap{ height: auto; padding-top: 14px; padding-bottom: 6px; flex-wrap: wrap; gap: 6px; }
  .nav{ width: calc(100% + 8px); margin: 0 -4px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar{ display: none; }
  .nav a{ padding: 8px 10px; white-space: nowrap; font-size: .9rem; }
  .nav a[aria-current="page"]::after{ bottom: -5px; width: 5px; height: 5px; margin-left: -2.5px; }
  .nav .btn{ display: none; }
  .hero{ padding: 56px 0 56px; }
  .page-hero{ padding: 52px 0 28px; }
  .section{ padding: 64px 0; }
  .split, .network, .contact{ grid-template-columns: minmax(0, 1fr); }
  .steps{ grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 0; padding-left: 28px; }
  .steps::before{ left: 4px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .step::before{ top: 6px; left: -28px; }
  .step::after{ position: static; display: block; padding: 0; margin-bottom: 8px; background: none; }
  .card{ padding: 26px; }
  .table, .table tbody, .table tr, .table td{ display: block; }
  .table tr:first-child{ display: none; }
  .table tr{ padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .table tr:last-child{ border-bottom: 0; }
  .table td{ padding: 2px 0; border: 0; }
  .table td:first-child{ margin-bottom: 6px; }
  .demo{ padding: 22px 20px 18px; }
  .demo__unit{ grid-template-columns: 36px 1fr; }
  .demo__thumb{ width: 36px; height: 36px; }
  .demo__thumb::after{ left: 13px; top: 7px; width: 9px; height: 22px; }
  .demo__cta{ grid-column: 2; }
  .site-footer .wrap{ grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (prefers-reduced-motion: reduce){ *{ transition: none !important; } }

/* the list item that carries the unit: no bullet, no rule of its own */
.demo__list li.demo__slot{ display: block; padding: 0 0 6px; border-top: 0; }
.demo__list li.demo__slot::before{ display: none; }
