/*
 * Marketing site layout. Colors, families and radius come only from /brand.css
 * (ui/brand.css). Text lives in the HTML; this file holds none.
 *
 * Direction: the page tells one story about one example product. Two rules
 * carry it. Yellow (highlight) means "you": your product's name in an answer
 * and the lines your agent adds to your page. The logo's answer bubble, with
 * its one square corner, marks speech: the assistant's answer, a buyer's
 * question and our invitations (buttons). Documents such as diffs and code
 * keep plain corners. The dark purple answer band is the one loud moment; the
 * rest is type on paper with rules.
 */

/* Bricolage Grotesque is pinned to the identity type scale: one file per role,
   selected by weight. IBM Plex files are IBM's own Latin1 subsets. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/BricolageGrotesque-Display-Latin1.woff2") format("woff2");
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/BricolageGrotesque-Heading-Latin1.woff2") format("woff2");
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-weight: 650;
  font-display: swap;
  src: url("/fonts/BricolageGrotesque-Card-Latin1.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/IBMPlexSans-Regular-Latin1.woff2") format("woff2");
  unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/IBMPlexSans-SemiBold-Latin1.woff2") format("woff2");
  unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/IBMPlexMono-Regular-Latin1.woff2") format("woff2");
  unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02;
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--brand-bg);
  color: var(--brand-ink);
  font-family: var(--brand-font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3 {
  font-family: var(--brand-font-display);
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-weight: 800;
  font-size: clamp(2.5rem, 4.4vw + 1rem, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
h2 {
  font-weight: 700;
  font-size: clamp(2rem, 2.2vw + 1.1rem, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
h3 {
  font-weight: 650;
  font-size: 1.375rem;
  line-height: 1.2;
}
p {
  margin: 0;
}
p + p {
  margin-top: 0.85em;
}
a {
  color: var(--brand-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--brand-primary);
  outline-offset: 3px;
}
strong {
  font-weight: 600;
}
code,
pre {
  font-family: var(--brand-font-mono);
  font-size: 0.875rem;
  line-height: 1.6;
  font-feature-settings: "zero" 1;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--brand-surface);
  border: 1px solid var(--brand-muted);
  border-radius: var(--brand-radius);
}
.skip-link:focus {
  top: 1rem;
}
.wrap {
  width: min(100% - 2 * clamp(1.25rem, 4vw, 3rem), 76rem);
  margin-inline: auto;
}
.section {
  padding-block: clamp(3rem, 5vw, 4.5rem);
}
.section-intro {
  max-width: 40rem;
  margin-top: 1.25rem;
}
.measure {
  max-width: 42rem;
}

/* Buttons. A button invites the reader to say something back, so it takes
   the answer bubble's one square corner. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.8rem 1.5rem;
  border-radius: 1.625rem 1.625rem 1.625rem 0;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
}
.button-primary {
  background: var(--brand-primary);
  color: var(--brand-primary-ink);
}
.button-primary:hover {
  background: var(--brand-deep);
}
.button-quiet {
  min-height: 2.75rem;
  padding: 0.5rem 1.125rem;
  border: 1px solid var(--brand-muted);
  border-radius: 1.375rem 1.375rem 1.375rem 0;
  color: var(--brand-ink);
  background: var(--brand-surface);
}
.button-quiet:hover {
  border-color: var(--brand-ink);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2rem;
}
.fine-print {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--brand-muted);
}

/* Header */
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.25rem;
}
.brand {
  order: 1;
  display: inline-block;
  padding-block: 0.25rem;
}
.brand img {
  width: 5.75rem;
}
.sign-in {
  order: 2;
}
.site-nav {
  order: 3;
  flex-basis: 100%;
}
@media (min-width: 48rem) {
  .site-nav {
    order: 2;
    flex-basis: auto;
    margin-left: auto;
  }
  .sign-in {
    order: 3;
  }
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
}
.site-nav a {
  display: inline-block;
  padding-block: 0.625rem;
  color: var(--brand-ink);
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
}

/* Hero: the promise in the largest type on the site, then the answer it
   describes. */
.hero {
  padding-block: clamp(2rem, 5vw, 4.5rem) clamp(2.5rem, 5vw, 4rem);
}
.hero h1 {
  font-size: clamp(2.75rem, 7.4vw + 0.5rem, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.028em;
}
.hero-pitch {
  margin-top: clamp(1.75rem, 4vw, 3rem);
  max-width: 38rem;
}
.lede {
  font-size: clamp(1.1875rem, 0.6vw + 1rem, 1.4375rem);
  line-height: 1.5;
}
@media (min-width: 64rem) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 27rem);
    column-gap: 4rem;
    align-items: end;
  }
  .hero-pitch {
    margin-top: 0;
    padding-bottom: 0.5rem;
  }
}

/* The answer: one large assistant reply in the logo's bubble shape. The
   buyer's question is the reply's mirror, square at the bottom right. */
.answer {
  width: min(100% - 2 * clamp(0.75rem, 2.5vw, 2rem), 84rem);
  margin: 0 auto;
}
.answer-bubble {
  padding: clamp(1.5rem, 5vw, 4.5rem);
  background: var(--brand-deep);
  color: var(--brand-surface);
  border-radius: clamp(1.75rem, 4vw, 3.5rem) clamp(1.75rem, 4vw, 3.5rem) clamp(1.75rem, 4vw, 3.5rem) 0;
}
.answer-question {
  width: fit-content;
  max-width: min(100%, 34rem);
  margin-left: auto;
  padding: 0.875rem 1.25rem;
  background: var(--brand-accent);
  color: var(--brand-ink);
  border-radius: 1.5rem 1.5rem 0 1.5rem;
  font-size: clamp(1.0625rem, 0.5vw + 0.95rem, 1.25rem);
  line-height: 1.4;
}
.answer-reply {
  max-width: 52rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
.answer-source {
  font-family: var(--brand-font-display);
  font-weight: 650;
  font-size: 1.0625rem;
  color: var(--brand-deep-muted);
}
.answer-text {
  margin-top: 0.75rem;
  font-size: clamp(1.375rem, 1.3vw + 1rem, 2.25rem);
  line-height: 1.32;
  letter-spacing: -0.005em;
}
.answer-text sup {
  font-size: 0.5em;
  font-weight: 600;
  line-height: 0;
  color: var(--brand-deep-muted);
}
/* Your name in the answer: the highlight draws across once, after load. */
.answer mark {
  padding: 0 0.15em;
  margin: 0 -0.05em;
  color: var(--brand-ink);
  font-weight: 600;
  background-color: transparent;
  background-image: linear-gradient(var(--brand-highlight), var(--brand-highlight));
  background-repeat: no-repeat;
  background-size: 100% 100%;
  border-radius: 0.2em;
  animation: highlight-in 700ms 500ms cubic-bezier(0.25, 0.8, 0.3, 1) both;
}
@keyframes highlight-in {
  from {
    background-size: 0% 100%;
    color: var(--brand-surface);
  }
}
.answer-cites {
  display: grid;
  gap: 0.375rem;
  margin: clamp(1.75rem, 4vw, 2.75rem) 0 0;
  padding: 1.25rem 0 0 1.5rem;
  border-top: 1px solid var(--brand-deep-muted);
  font-size: 1rem;
  color: var(--brand-deep-muted);
}
.answer-cites li::marker {
  font-weight: 600;
}
.cite-page {
  color: var(--brand-highlight);
  font-weight: 600;
}
.answer figcaption {
  margin-top: 0.875rem;
  padding-left: clamp(1.5rem, 5vw, 4.5rem);
  font-size: 0.9375rem;
  color: var(--brand-muted);
}

/* Questions: the buyer's side of the conversation, in their own words. */
.questions {
  display: grid;
  gap: 3rem;
}
.questions-copy p {
  max-width: 36rem;
}
.questions-copy h2 + p {
  margin-top: 1.25rem;
}
.chorus {
  margin: 0;
}
.chorus ul {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chorus li {
  width: fit-content;
  max-width: 26rem;
  padding: 0.75rem 1.125rem;
  background: var(--brand-accent);
  border-radius: 1.375rem 1.375rem 0 1.375rem;
  line-height: 1.45;
}
.chorus li:nth-child(2n) {
  align-self: flex-end;
}
.chorus li:nth-child(3) {
  margin-left: 12%;
}
.chorus figcaption {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--brand-muted);
}
@media (min-width: 60rem) {
  .questions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 5rem;
    align-items: center;
  }
}

/* The page change: a diff of the example page, with the reasons in the margin.
   Rows are two columns on wide screens: the line, then its note. */
/* The longest section on the page, so its heading gets the most room. */
.change-head h2 {
  max-width: 15ch;
  font-size: clamp(2.25rem, 3.6vw + 1rem, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.change-head p {
  max-width: 44rem;
}
.change-head h2 + p {
  margin-top: 1.5rem;
}
.diff {
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
}
.diff-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}
.diff-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.diff-line {
  display: flex;
  gap: 0.75rem;
  margin: 0;
  padding: 0.625rem clamp(1rem, 2.5vw, 1.75rem);
  background: var(--brand-surface);
  border-inline: 1px solid var(--brand-line);
  font-family: var(--brand-font-mono);
  font-size: clamp(0.875rem, 0.3vw + 0.8rem, 1.0625rem);
  line-height: 1.55;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.diff-sign {
  flex: none;
  width: 1ch;
  color: var(--brand-muted);
}
.diff-row:first-child .diff-line {
  padding-block: 1rem;
  border-top: 1px solid var(--brand-line);
  border-radius: var(--brand-radius) var(--brand-radius) 0 0;
  border-bottom: 1px solid var(--brand-line);
  font-family: var(--brand-font-body);
  font-size: 0.9375rem;
  color: var(--brand-muted);
}
.diff-row:nth-child(2) .diff-line {
  padding-top: 1rem;
}
.diff-row:last-child .diff-line {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--brand-line);
  border-radius: 0 0 var(--brand-radius) var(--brand-radius);
}
.diff-context .diff-line {
  color: var(--brand-muted);
}
.diff-del .diff-line {
  color: var(--brand-muted);
}
.diff-del .diff-text {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.diff-ins .diff-line {
  background: var(--brand-highlight);
  border-color: var(--brand-highlight);
}
.diff-ins .diff-sign {
  color: var(--brand-ink);
}
.diff-note {
  margin: 0;
  padding: 0.75rem clamp(1rem, 2.5vw, 1.75rem) 0.875rem calc(clamp(1rem, 2.5vw, 1.75rem) + 1.75ch);
  background: var(--brand-surface);
  border-inline: 1px solid var(--brand-line);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.diff-note::before {
  content: "";
  display: block;
  width: 1.5rem;
  height: 2px;
  margin-bottom: 0.5rem;
  background: var(--brand-primary);
}
.diff figcaption {
  margin-top: 0.875rem;
  font-size: 0.9375rem;
  color: var(--brand-muted);
}
@media (min-width: 60rem) {
  .diff-row {
    grid-template-columns: minmax(0, 1fr) 19rem;
    column-gap: 2.5rem;
    align-items: center;
  }
  .diff-note {
    padding: 0 0 0 1rem;
    background: transparent;
    border-inline: 0;
    border-left: 2px solid var(--brand-primary);
  }
  .diff-note::before {
    display: none;
  }
}
/* On narrow screens a note sits inside the box, so a note on the last row
   closes the box instead of the line above it. */
@media (max-width: 59.99rem) {
  .diff-row:last-child:has(.diff-note) .diff-line {
    padding-bottom: 0.625rem;
    border-bottom: 0;
    border-radius: 0;
  }
  .diff-row:last-child .diff-note {
    border-bottom: 1px solid var(--brand-line);
    border-radius: 0 0 var(--brand-radius) var(--brand-radius);
  }
}

/* After the change: what happens in Google and Bing, as done-for-you ticks. */
.setup {
  display: grid;
  gap: 1.5rem 4rem;
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--brand-line);
}
.setup h3 {
  font-size: clamp(1.5rem, 1vw + 1.1rem, 2rem);
  line-height: 1.1;
}
.setup p {
  max-width: 34rem;
}
.setup h3 + p {
  margin-top: 1rem;
}
@media (min-width: 60rem) {
  .setup {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
.ticks {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ticks li {
  position: relative;
  padding: 0.75rem 0 0.75rem 2.25rem;
  border-bottom: 1px solid var(--brand-line);
}
.ticks li:first-child {
  padding-top: 0;
}
.ticks li:first-child::before {
  top: 0.4em;
}
/* The tick from the logo mark, drawn with two borders. */
.ticks li::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: calc(0.75rem + 0.4em);
  width: 0.8rem;
  height: 0.45rem;
  border-left: 3px solid var(--brand-primary);
  border-bottom: 3px solid var(--brand-primary);
  border-radius: 1px;
  transform: rotate(-45deg);
}
.setup-note {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--brand-muted);
}

/* Measurement: a short, single column. The proof, kept brief. */
.measure-block {
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--brand-line);
}
.measure-block p {
  max-width: 46rem;
}
.measure-block h2 + p {
  margin-top: 1.25rem;
}

/* Agents: the request beside the explanation. */
.agents {
  display: grid;
  gap: 2.5rem 4rem;
  align-items: center;
}
.agents p {
  max-width: 34rem;
}
.agents h2 + p {
  margin-top: 1.25rem;
}
@media (min-width: 60rem) {
  .agents {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}
.code-sample {
  margin: 0;
  min-width: 0;
}
.code-sample pre {
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  overflow-x: auto;
  background: var(--brand-ink);
  color: var(--brand-surface);
  border-radius: var(--brand-radius);
}
.code-sample .hl {
  color: var(--brand-accent);
}

/* Pricing: a short menu. Each plan is one ruled row. */
.pricing-head {
  max-width: 44rem;
}
.plans {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--brand-ink);
}
.plan {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem 2rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--brand-ink);
}
.plan h3 {
  font-size: clamp(1.75rem, 1.4vw + 1.2rem, 2.5rem);
  line-height: 1;
  letter-spacing: -0.015em;
}
.plan-fit {
  margin-top: 0.5rem;
  color: var(--brand-muted);
}
.plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 0.5rem;
}
.price-figure {
  font-family: var(--brand-font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 1.6vw + 1.6rem, 3rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.plan-credits {
  margin-top: 0.25rem;
  font-weight: 600;
}
.plan .button {
  justify-self: start;
  margin-top: 0.75rem;
}
@media (min-width: 56rem) {
  .plan {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 16rem;
    align-items: center;
  }
  .plan .button {
    justify-self: stretch;
    margin-top: 0;
  }
}
.plan-notes {
  display: grid;
  gap: 1rem 4rem;
  margin-top: 2rem;
  font-size: 1rem;
  color: var(--brand-muted);
}
.plan-notes p + p {
  margin-top: 0;
}
@media (min-width: 56rem) {
  .plan-notes {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* FAQ: heading held beside the questions. */
.faq-layout {
  display: grid;
  gap: 2rem 4rem;
}
@media (min-width: 60rem) {
  .faq-layout {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    align-items: start;
  }
  .faq-layout h2 {
    position: sticky;
    top: 2rem;
  }
}
.faq-item {
  padding-block: 1.5rem;
  border-top: 1px solid var(--brand-line);
}
.faq-item:first-child {
  padding-top: 0;
  border-top: 0;
}
.faq-item p {
  margin-top: 0.5rem;
  max-width: 40rem;
}

/* Closing call to action: our last line in the conversation, a pale answer
   bubble that echoes the deep one at the top. */
.closing-bubble {
  padding: clamp(2rem, 6vw, 5rem);
  background: var(--brand-accent);
  border-radius: clamp(1.75rem, 4vw, 3.5rem) clamp(1.75rem, 4vw, 3.5rem) clamp(1.75rem, 4vw, 3.5rem) 0;
}
.closing h2 {
  max-width: 14ch;
  font-size: clamp(2.5rem, 4.4vw + 1rem, 5rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
}

/* Footer */
.site-footer {
  padding-block: 2.5rem;
  border-top: 1px solid var(--brand-line);
  font-size: 0.9375rem;
  color: var(--brand-muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer a {
  display: inline-block;
  padding-block: 0.375rem;
  color: var(--brand-muted);
}

/* API docs, legal and error pages */
.doc {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.doc h1 {
  font-size: clamp(2.25rem, 3.6vw + 1rem, 3.5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  max-width: 18ch;
}
.doc .lede {
  margin-top: 1.25rem;
}
.doc h2 {
  margin-top: 3.5rem;
  font-size: clamp(1.75rem, 1.4vw + 1.2rem, 2.25rem);
}
.doc h3 {
  margin-top: 2rem;
}
.doc p,
.doc ul,
.doc ol {
  max-width: 44rem;
}
.doc p,
.doc ul,
.doc ol,
.doc pre,
.doc .table-wrap {
  margin-top: 1rem;
}
.doc li + li {
  margin-top: 0.375rem;
}
.doc pre {
  padding: 1rem 1.25rem;
  overflow-x: auto;
  background: var(--brand-ink);
  color: var(--brand-surface);
  border-radius: var(--brand-radius);
}
.doc :not(pre) > code {
  padding: 0.1em 0.3em;
  background: var(--brand-surface);
  border: 1px solid var(--brand-line);
  border-radius: 0.25em;
  overflow-wrap: anywhere;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
th,
td {
  padding: 0.75rem 1rem 0.75rem 0;
  border-bottom: 1px solid var(--brand-line);
  text-align: start;
  vertical-align: top;
}
th {
  font-weight: 600;
}
td code {
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
  .answer mark {
    animation: none;
  }
}
