/* didtheyopen — one stylesheet, no build step. */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/bricolage-grotesque.woff2') format('woff2');
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('/fonts/instrument-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  /* Paper and ink are tinted toward the brand green, never pure white/black. */
  --paper: #f6f8f5;
  --paper-raised: #fdfefd;
  --ink: #121613;
  --ink-2: #3c443e;
  --muted: #5f6a62;
  --line: #dde3dc;
  --line-strong: #c3ccc4;
  --green: #0a8a4f; /* text-safe on paper: 4.9:1 */
  --green-bright: #19c37a; /* the dot in the logo */
  --green-wash: #e3f4ea;
  --focus: #0a8a4f;
  --display: 'Bricolage Grotesque', 'Instrument Sans', ui-sans-serif, sans-serif;
  --body: 'Instrument Sans', ui-sans-serif, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1210;
    --paper-raised: #161b18;
    --ink: #e6ece7;
    --ink-2: #c2cbc4;
    --muted: #8e9a91;
    --line: #232a26;
    --line-strong: #323b36;
    --green: #3fd08a;
    --green-bright: #3fd08a;
    --green-wash: #13261b;
    --focus: #3fd08a;
  }
}

* {
  box-sizing: border-box;
}
html,
body {
  overflow-x: clip;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    17px/1.6 var(--body),
    sans-serif;
  font-feature-settings: 'ss01';
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: var(--green-bright);
  color: #06140c;
}
a {
  color: var(--ink);
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.15s;
}
a:hover {
  text-decoration-color: currentColor;
}
a:visited {
  color: var(--ink-2);
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-sm);
  z-index: 10;
}
.skip:focus {
  top: 12px;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.narrow {
  max-width: 720px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 19px/1 var(--display);
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.brand:visited {
  color: var(--ink);
}
.brand img {
  width: 28px;
  height: 28px;
}
.site-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
.site-nav a {
  white-space: nowrap;
  font-size: 15px;
  color: var(--ink-2);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--r-sm);
}
.site-nav a:hover {
  background: var(--line);
  color: var(--ink);
}
.site-nav a.nav-signin {
  margin-left: 4px;
  color: var(--ink);
  font-weight: 600;
  border: 1px solid var(--line-strong);
}
.site-nav a[aria-current='page'] {
  color: var(--ink);
  font-weight: 600;
}

/* Type */
h1,
h2,
h3 {
  font-family: var(--display);
  color: var(--ink);
  text-wrap: balance;
  margin: 0;
}
h1 {
  font-size: clamp(40px, 7.2vw, 76px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
}
p {
  text-wrap: pretty;
}
.lede {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34em;
  margin: 24px 0 0;
}
.dot {
  color: var(--green-bright);
}

/* Hero */
.hero {
  padding-top: 56px;
  padding-bottom: 72px;
}
.measure {
  max-width: 720px;
}
.start {
  margin-top: 40px;
  max-width: 640px;
}
.start-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  margin: 0 0 8px;
}
.prompt {
  position: relative;
  background: var(--paper-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 20px 112px 20px 20px;
  font: 15px/1.6 var(--mono);
  color: var(--ink);
  box-shadow:
    0 1px 0 var(--line),
    0 12px 32px -20px rgb(18 22 19 / 0.35);
}
.prompt p {
  margin: 0;
  overflow-wrap: anywhere;
}
.copy {
  position: absolute;
  top: 12px;
  right: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--r-sm);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font: 600 15px/1 var(--body);
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color 0.15s,
    transform 0.1s var(--ease);
}
.btn:hover {
  background: var(--ink-2);
}
.btn:active {
  transform: translateY(1px);
}
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-quiet:hover {
  background: var(--line);
}
.start-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  margin: 16px 0 0;
  font-size: 15px;
  color: var(--muted);
}
.start-meta form {
  display: inline;
}
.linkish {
  white-space: nowrap;
  background: none;
  border: 0;
  padding: 8px 0;
  font: inherit;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  cursor: pointer;
}
.linkish:hover {
  text-decoration-color: currentColor;
}

/* The conversation: the product, shown */
.convo {
  margin-top: 56px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper-raised);
  padding: 28px;
  display: grid;
  gap: 16px;
  max-width: 760px;
}
.msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  line-height: 1.5;
}
.msg-you {
  justify-self: end;
  background: var(--ink);
  color: var(--paper);
  border-bottom-right-radius: 4px;
}
.msg-agent {
  justify-self: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.msg-agent strong {
  color: var(--green);
}
.who {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}
.msg-you .who {
  color: rgb(246 248 245 / 0.65);
}
.caption {
  font-size: 14px;
  color: var(--muted);
  margin: 12px 0 0;
}

/* Sections */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}
.section-intro {
  max-width: 36em;
  color: var(--ink-2);
  margin: 16px 0 0;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  border-top: 2px solid var(--ink);
  padding-top: 16px;
}
.steps li::before {
  content: counter(step);
  display: block;
  font: 700 15px/1 var(--display);
  color: var(--green);
  margin-bottom: 12px;
}
.steps p {
  margin: 8px 0 0;
  color: var(--ink-2);
}
code {
  font: 0.88em/1.4 var(--mono);
  background: var(--green-wash);
  padding: 2px 4px;
  border-radius: 4px;
}

/* Comparison */
.compare {
  margin-top: 40px;
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.compare th,
.compare td {
  text-align: left;
  vertical-align: top;
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--line);
}
.compare thead th {
  font: 700 15px/1.3 var(--display);
  color: var(--muted);
}
.compare thead th.us {
  color: var(--ink);
}
.compare tbody th {
  font-weight: 600;
  width: 26%;
}
.compare td.us {
  font-weight: 600;
}
.compare td.them {
  color: var(--muted);
}

/* Pricing */
.trial-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin: 32px 0 0;
  padding: 16px 20px;
  border-radius: var(--r-md);
  background: var(--green-wash);
}
.trial-line strong {
  font-family: var(--display);
  font-size: 19px;
}
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.plan {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 24px;
  background: var(--paper-raised);
}
.plan-cta {
  margin-top: auto;
  align-self: stretch;
}
.plan h3 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
}
.plan .tag {
  font: 600 13px/1 var(--body);
  color: var(--green);
}
.price {
  font: 800 44px/1 var(--display);
  letter-spacing: -0.03em;
  margin: 16px 0 4px;
}
.price span {
  font: 500 16px/1 var(--body);
  color: var(--muted);
  letter-spacing: 0;
}
.plan ul {
  margin: 16px 0 24px;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
}
.plan li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.upgrade-line {
  margin: 16px 0 0;
  color: var(--ink-2);
}
.fineprint {
  font-size: 14px;
  color: var(--muted);
  margin: 16px 0 0;
}

/* FAQ */
.faq {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  position: relative;
  font: 600 19px/1.35 var(--display);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 18px;
  font: 400 24px/1 var(--body);
  color: var(--muted);
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  margin: 0 0 20px;
  color: var(--ink-2);
  max-width: 40em;
}

/* Closing */
.closing {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}
.closing h2 {
  max-width: 14em;
}

/* Articles (guides, legal) */
.article {
  padding: 40px 0 80px;
}
.article h1 {
  font-size: clamp(34px, 5.4vw, 52px);
}
.article h2 {
  font-size: 24px;
  margin: 40px 0 0;
}
.article p,
.article li {
  color: var(--ink-2);
}
.article p {
  margin: 16px 0 0;
}
.article ul,
.article ol {
  padding-left: 24px;
  margin: 16px 0 0;
}
.article li {
  margin: 8px 0;
}
.article .answer {
  font-size: 19px;
  color: var(--ink);
  margin-top: 24px;
}
.article pre {
  background: var(--paper-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 20px;
  margin: 16px 0 0;
  overflow-x: auto;
  font: 14px/1.6 var(--mono);
}
.article p code,
.article li code {
  overflow-wrap: anywhere;
}
.article .prompt {
  margin-top: 16px;
}
.article .crumbs {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}
.article .crumbs ol {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.article .crumbs li {
  display: inline;
  margin: 0;
}
.article .crumbs li:not(:last-child)::after {
  content: '/';
  margin: 0 8px;
  color: var(--line-strong);
}
.article .crumbs a {
  color: var(--muted);
  text-decoration: none;
}
.article .crumbs a:hover {
  color: var(--ink);
}
.article .crumbs [aria-current='page'] {
  color: var(--ink-2);
}
.article .guide-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.article .guide-list > li {
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.article .guide-list > li:last-child {
  border-bottom: 1px solid var(--line);
}
.article .guide-list a {
  font: 700 18px/1.35 var(--display);
  color: var(--ink);
}
.article .guide-list a:visited {
  color: var(--ink);
}
.article .table-scroll {
  margin-top: 16px;
  max-width: 100%;
  overflow-x: auto;
}
.article .table-scroll .compare {
  margin-top: 0;
}
/* Any .compare.wide table must include a .stack-label span in each td.
   The rows stack below 700px, so a desktop scrollbar at 680 to 699 does not
   make the table scroll inside its box. The table is three columns at 700px and up. */
.article .table-scroll .compare.wide {
  min-width: 40rem;
}
.compare.wide .stack-label {
  display: none;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 480px) {
  .article .compare:not(.wide) thead {
    display: none;
  }
  .article .compare:not(.wide),
  .article .compare:not(.wide) tbody,
  .article .compare:not(.wide) tr,
  .article .compare:not(.wide) th,
  .article .compare:not(.wide) td {
    display: block;
    width: auto;
  }
  .article .compare:not(.wide) tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .article .compare:not(.wide) th,
  .article .compare:not(.wide) td {
    border: 0;
    padding: 0;
  }
  .article .compare:not(.wide) th {
    margin-bottom: 4px;
  }
}
@media (width < 700px) {
  .article .table-scroll:has(.compare.wide) {
    overflow-x: visible;
  }
  .article .table-scroll .compare.wide {
    min-width: 0;
  }
  .article .compare.wide thead {
    display: none;
  }
  .article .compare.wide,
  .article .compare.wide tbody,
  .article .compare.wide tr,
  .article .compare.wide th,
  .article .compare.wide td {
    display: block;
    width: auto;
  }
  .article .compare.wide tr {
    padding: 14px 0 6px;
    border-bottom: 1px solid var(--line);
  }
  .article .compare.wide th,
  .article .compare.wide td {
    border: 0;
    padding: 0;
  }
  .article .compare.wide tbody th {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
  }
  .article .compare.wide td {
    margin: 0 0 8px;
    font-weight: 400;
  }
  .article .compare.wide .stack-label {
    display: inline;
    font-weight: 600;
    color: var(--ink);
  }
}
.updated {
  color: var(--muted);
  font-size: 14px;
  margin-top: 12px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  font-size: 15px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.site-footer h4 {
  margin: 0 0 8px;
  font: 600 14px/1.3 var(--body);
  color: var(--ink);
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li {
  margin: 2px 0;
}
.site-footer li a {
  display: inline-block;
  max-width: 100%;
  padding: 6px 0;
  overflow-wrap: anywhere;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer a[href^='mailto:'] {
  overflow-wrap: anywhere;
}
.site-footer a:hover {
  color: var(--ink);
}

/* Wide screens: use the width instead of leaving the right half empty */
@media (min-width: 1000px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
  }
  .hero h1 {
    font-size: clamp(44px, 4.1vw, 58px);
  }
  .hero .convo {
    margin-top: 0;
  }
  .hero .msg {
    max-width: 90%;
  }
  .faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 56px;
    align-items: start;
  }
  .faq-layout .faq {
    margin-top: 0;
  }
}
.closing .wrap {
  text-align: center;
}
.closing h2 {
  margin-inline: auto;
}
.closing .start {
  margin-inline: auto;
  text-align: left;
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }
  .wrap {
    padding: 0 16px;
  }
  .site-nav a.hide-sm {
    display: none;
  }
  .site-nav a {
    padding: 8px;
  }
  .hero {
    padding-top: 32px;
    padding-bottom: 56px;
  }
  .prompt {
    padding: 16px 16px 64px;
  }
  .copy {
    top: auto;
    bottom: 12px;
    right: 12px;
  }
  .convo {
    padding: 16px;
    margin-top: 40px;
  }
  .msg {
    max-width: 92%;
  }
  .section {
    padding: 56px 0;
  }
  .compare tbody th {
    width: auto;
  }
  .compare th,
  .compare td {
    padding-right: 8px;
    font-size: 15px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

.prompt-inline {
  padding: 20px;
  margin-top: 24px;
}

.site-footer .brand {
  color: var(--ink);
}

/* Narrow phones: keep Sign in visible; the agent guide stays in the footer */
@media (max-width: 480px) {
  .site-nav a.hide-xs {
    display: none;
  }
  .site-header {
    flex-wrap: wrap;
    row-gap: 4px;
  }
  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

/* API docs */
.docs-page .docs-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 28px;
}
.docs-page .docs-toc a {
  color: var(--ink-2);
  font-size: 15px;
  text-decoration: none;
}
.docs-page .docs-toc a:hover {
  color: var(--ink);
}
.docs-page code,
.docs-page a {
  overflow-wrap: anywhere;
}
.docs-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.endpoint {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper-raised);
}
.endpoint h3 {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.verb {
  display: inline-block;
  min-width: 4.6em;
  margin-right: 8px;
  color: var(--green);
  font-weight: 700;
}
.docs-install {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}
.docs-page .prompt {
  max-width: none;
  margin-top: 16px;
}
.docs-page .prompt pre {
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
}
.docs-install .btn:visited {
  color: var(--paper);
}
.endpoint pre,
.docs-page pre {
  max-width: 100%;
}
