@font-face { font-family: 'Glacial Indifference'; font-weight: 400; font-display: swap; src: url('/fonts/glacial-400.woff') format('woff'); }
@font-face { font-family: 'Glacial Indifference'; font-weight: 700; font-display: swap; src: url('/fonts/glacial-700.woff') format('woff'); }
@font-face { font-family: 'Yeseva One'; font-weight: 400; font-display: swap; src: url('/fonts/yeseva-400.woff2') format('woff2'); }

:root {
  --rind: #1b5139;
  --rind-deep: #0f3526;
  --leaf: #85bf75;
  --cream: #fded9e;
  --zest: #fccc0c;
  --peel: #f2a20c;
  --pith: #ffffff;
  --wash: #f5f6f4;
  --ink: #1c2620;
  --muted: #55625a;
  --line: #e3e6e1;
  --display: 'Yeseva One', Georgia, serif;
  --sans: 'Glacial Indifference', ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--pith); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, pre { margin: 0; }
ul, ol { padding: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--peel); outline-offset: 3px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--leaf) 40%, white); }
h1, h2 { font-family: var(--display); font-weight: 400; color: var(--rind); line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; line-height: 1.3; color: var(--rind); letter-spacing: -0.01em; }
code, pre { font-family: var(--mono); font-size: 0.875em; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: white; padding: 0.5rem 1rem; }
.lede { font-size: clamp(1.1rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 38em; }
.text-link { color: var(--rind); font-weight: 700; text-decoration: underline; text-decoration-color: var(--peel); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.text-link:hover { text-decoration-color: var(--rind); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.65rem 1.2rem; border-radius: 0.5rem; font-size: 1rem; font-weight: 700; text-decoration: none; border: 1.5px solid transparent; transition: background-color 0.12s, border-color 0.12s; }
.btn-peel { background: var(--peel); color: var(--rind-deep); }
.btn-peel:hover { background: var(--zest); }
.btn-line { border-color: color-mix(in srgb, var(--rind) 35%, transparent); color: var(--rind); background: white; }
.btn-line:hover { background: var(--wash); border-color: var(--rind); }
.btn-small { padding: 0.4rem 0.9rem; font-size: 0.95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* Header: brand and page links on the left, account actions on the right */
.site-header { position: sticky; top: 0; z-index: 5; background: rgb(255 255 255 / 0.95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
/* No divider at the top of the page; a soft shadow fades in once the page scrolls under the header. */
@supports (animation-timeline: scroll()) {
  .site-header { animation: header-lift linear both; animation-timeline: scroll(root); animation-range: 0 5rem; }
  @keyframes header-lift { to { box-shadow: 0 1px 0 rgb(15 53 38 / 0.06), 0 10px 30px -18px rgb(15 53 38 / 0.28); } }
}
.site-header .wrap { display: flex; align-items: center; gap: 2.5rem; height: 4.25rem; }
.brand { display: flex; align-items: center; gap: 0.55rem; font: 1.3rem/1 var(--display); color: var(--rind); text-decoration: none; }
.brand span { padding-top: 0.1em; }
.site-nav { display: flex; align-items: center; gap: 1.75rem; font-size: 0.95rem; }
.site-nav a, .site-actions .signin { text-decoration: none; color: var(--muted); transition: color 0.12s; }
.site-nav a:hover, .site-actions .signin:hover, .site-nav a[aria-current='page'] { color: var(--rind-deep); }
.site-actions { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; font-size: 0.95rem; }
.site-actions .btn { padding: 0.45rem 0.95rem; font-size: 0.9rem; border-radius: 0.45rem; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border-radius: 0.45rem; border: 1px solid var(--line); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before, .menu summary span::after { content: ''; display: block; width: 1rem; height: 1.5px; background: var(--rind-deep); position: relative; }
.menu summary span::before { position: absolute; top: -5px; }
.menu summary span::after { position: absolute; top: 5px; }
.menu nav { position: absolute; right: 0; top: calc(100% + 0.6rem); background: #fff; border: 1px solid var(--line); border-radius: 0.6rem; box-shadow: 0 18px 40px -18px rgb(15 53 38 / 0.35); padding: 0.4rem; display: grid; min-width: 11rem; }
.menu nav a { text-decoration: none; color: var(--ink); padding: 0.55rem 0.75rem; border-radius: 0.4rem; }
.menu nav a:hover { background: var(--wash); }
@media (max-width: 52rem) {
  .site-nav, .site-actions .signin { display: none; }
  .menu { display: block; }
  .site-actions { gap: 0.6rem; }
}

/* Hero */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem); }
.hero .wrap { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 62rem) { .hero .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); } }
.hero h1 + .lede { margin-top: 1.4rem; }
.hero .actions { margin-top: 2rem; }
.hero .fine { margin-top: 1rem; color: var(--muted); font-size: 1rem; }

/* The agent session: the one loud element on the page */
.session { background: var(--rind-deep); color: #f4f1de; border-radius: 0.9rem; padding: clamp(1.1rem, 2.5vw, 1.6rem); border: 1px solid rgb(255 255 255 / 0.08); box-shadow: 0 30px 60px -28px rgb(15 53 38 / 0.55), 0 2px 6px rgb(15 53 38 / 0.12); font-size: 0.95rem; }
.session .say { background: rgb(255 255 255 / 0.1); color: white; padding: 0.8rem 1rem; border-radius: 0.75rem 0.75rem 0.2rem 0.75rem; margin-left: 12%; }
.session ol { list-style: none; margin-block: 1.1rem; display: grid; gap: 0.45rem; }
.session li { display: grid; grid-template-columns: 1.4rem minmax(0, auto) minmax(0, 1fr); gap: 0.6rem; align-items: baseline; }
.session li::before { content: ''; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--leaf); align-self: center; justify-self: center; }
.session code { color: #fff; white-space: nowrap; }
.session li span { color: #cfe3c8; font-size: 0.95rem; }
.session .reply { border-top: 1px solid rgb(255 255 255 / 0.15); padding-top: 1rem; }
.session .reply strong { color: white; }
@media (max-width: 30rem) { .session li { grid-template-columns: 1.4rem 1fr; } .session li span { grid-column: 2; } }
@media (prefers-reduced-motion: no-preference) {
  .session li, .session .reply { opacity: 0; animation: step 0.35s ease-out forwards; animation-delay: calc(0.5s + var(--i) * 0.55s); }
  @keyframes step { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head p { margin-top: 1rem; }
.band { background: var(--rind-deep); color: #f4f1de; }
.band h2, .band h3 { color: #fff; }
.band .lede { color: #cfe3c8; }
.tint { background: var(--wash); }

/* How it works: a real sequence, so it is numbered */
.steps { list-style: none; counter-reset: step; display: grid; gap: 2rem 2.5rem; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { counter-increment: step; border-top: 1px solid rgb(255 255 255 / 0.18); padding-top: 1.1rem; }
.steps li::before { content: counter(step); font: 700 0.9rem/1.75rem var(--sans); width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--zest); color: var(--rind-deep); display: block; text-align: center; margin-bottom: 0.9rem; }
.steps p { margin-top: 0.4rem; color: #cfe3c8; font-size: 1rem; }
.steps code { color: #fff; overflow-wrap: anywhere; }

/* Features: a list of plain statements, not a wall of cards */
.features { display: grid; gap: 0 clamp(2rem, 5vw, 4.5rem); }
@media (min-width: 52rem) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.features > div { padding-block: 1.4rem; border-top: 1px solid var(--line); }
.features dt { font: 700 1.15rem/1.3 var(--sans); color: var(--rind); letter-spacing: -0.01em; }
.features dd { margin-top: 0.35rem; color: var(--muted); max-width: 34em; }

/* Code */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 60rem) { .split { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }
.code { background: var(--rind-deep); color: #f4f1de; border-radius: 0.75rem; overflow: hidden; box-shadow: 0 24px 50px -28px rgb(15 53 38 / 0.5); }
.code figcaption { padding: 0.6rem 1.1rem; color: var(--leaf); font-size: 0.9rem; border-bottom: 1px solid rgb(255 255 255 / 0.1); }
.code pre { padding: 1.1rem; overflow-x: auto; line-height: 1.6; font-size: 0.875rem; }
.check-list { list-style: none; display: grid; gap: 0.6rem; margin-top: 1.5rem; }
.check-list li { padding-left: 1.8rem; position: relative; }
.check-list li::before { content: ''; position: absolute; left: 0.2rem; top: 0.45em; width: 0.9rem; height: 0.5rem; border-left: 3px solid var(--leaf); border-bottom: 3px solid var(--leaf); transform: rotate(-45deg); }

/* Pricing */
.price-card { background: white; border: 1px solid var(--line); border-radius: 0.9rem; padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: 2rem; box-shadow: 0 30px 60px -36px rgb(15 53 38 / 0.35), 0 1px 2px rgb(15 53 38 / 0.05); }
@media (min-width: 52rem) { .price-card { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; } }
.price { font: clamp(3.25rem, 7vw, 4.5rem)/1 var(--display); color: var(--rind); letter-spacing: -0.02em; }
.price small { font: 400 1.05rem var(--sans); color: var(--muted); letter-spacing: 0; }
.price-card .btn { margin-top: 1.5rem; }
.price-card .fine { margin-top: 0.9rem; color: var(--muted); font-size: 1rem; }
.price-card .check-list { margin-top: 0; }

/* FAQ */
.faq { max-width: 48rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 700; color: var(--rind); font-size: 1.1rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0.25rem; top: 0.85rem; font-size: 1.6rem; font-weight: 400; color: var(--peel); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding-bottom: 1.25rem; max-width: 40em; color: var(--muted); }

/* Blog */
.post-list { list-style: none; display: grid; gap: 2.5rem; }
@media (min-width: 48rem) { .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .post-list.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post-card a { text-decoration: none; display: block; }
.post-card img { border-radius: 0.6rem; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; margin-bottom: 1rem; background: var(--wash); border: 1px solid var(--line); }
.post-card h2, .post-card h3 { font: 700 1.3rem/1.25 var(--sans); color: var(--rind); letter-spacing: -0.015em; }
.post-card a:hover h2, .post-card a:hover h3 { text-decoration: underline; text-decoration-color: var(--peel); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.post-card p { margin-top: 0.6rem; color: var(--muted); }
.meta { color: var(--muted); font-size: 1rem; }
.post-card .meta { margin-top: 0.7rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; }
.tags a { display: inline-block; text-decoration: none; background: white; border: 1px solid var(--line); color: var(--rind); padding: 0.1rem 0.75rem; border-radius: 99px; font-size: 0.9rem; }
.tags a:hover, .tags a[aria-current='page'] { border-color: var(--rind); }
.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-head h1 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); max-width: 18em; }
.page-head .lede { margin-top: 1rem; }
.crumbs { font-size: 1rem; color: var(--muted); margin-bottom: 1.25rem; }
.crumbs a { color: var(--rind); }
.pager { display: flex; justify-content: space-between; margin-top: 3rem; }

.article-grid { display: grid; gap: 3rem; padding-bottom: clamp(3rem, 7vw, 5rem); }
@media (min-width: 64rem) { .article-grid { grid-template-columns: minmax(0, 1fr) 16rem; } .toc { position: sticky; top: 5.5rem; align-self: start; } }
.cover { border-radius: 0.75rem; width: 100%; margin-bottom: 2.5rem; }
.toc { font-size: 1rem; order: -1; }
@media (min-width: 64rem) { .toc { order: 0; } }
.toc p { font-weight: 700; color: var(--rind); margin-bottom: 0.6rem; }
.toc ol { list-style: none; display: grid; gap: 0.45rem; border-left: 2px solid var(--line); padding-left: 1rem; }
.toc .sub { padding-left: 1rem; }
.toc a { text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--rind); }

.prose { max-width: 42rem; font-size: 1.125rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font-size: 1.7rem; margin-top: 2em; scroll-margin-top: 5.5rem; }
.prose h3 { font-size: 1.25rem; margin-top: 1.8em; scroll-margin-top: 5.5rem; }
.prose a { color: var(--rind); text-decoration-color: var(--peel); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.4em; }
.prose blockquote { border-left: 4px solid var(--zest); padding-left: 1.1em; color: var(--muted); }
.prose img { border-radius: 0.9rem; }
.prose :not(pre) > code { background: var(--wash); border: 1px solid var(--line); border-radius: 0.3rem; padding: 0.1em 0.35em; overflow-wrap: anywhere; }
.prose pre { background: var(--rind-deep); color: #f4f1de; padding: 1.1rem; border-radius: 0.9rem; overflow-x: auto; font-size: 0.9rem; line-height: 1.6; }
.prose table { border-collapse: collapse; width: 100%; font-size: 1.05rem; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 0.6em 0.9em; text-align: left; vertical-align: top; }
.prose th { color: var(--rind); }
.prose hr { border: 0; border-top: 1px solid var(--line); }

.docs-grid { display: grid; gap: 3rem; padding-bottom: 5rem; }
@media (min-width: 64rem) { .docs-grid { grid-template-columns: 14rem minmax(0, 1fr); } .docs-nav { position: sticky; top: 5.5rem; align-self: start; } }
.docs-nav ol { list-style: none; display: grid; gap: 0.5rem; }
.docs-nav a { text-decoration: none; color: var(--rind); }
.docs-nav a:hover { text-decoration: underline; text-decoration-color: var(--peel); }
.tool-list { list-style: none; padding: 0 !important; }
.tool-list li { border-top: 1px solid var(--line); padding-block: 0.9rem; margin: 0 !important; }
.tool-list code { font-weight: 700; color: var(--rind); background: none !important; border: 0 !important; padding: 0 !important; font-size: 1rem; }
.tool-list span { display: block; color: var(--muted); font-size: 1.05rem; }

/* Closing call to action */
.cta { text-align: left; }
.cta .wrap { display: grid; gap: 1.75rem; }
@media (min-width: 56rem) { .cta .wrap { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.cta h2 { max-width: 14em; }

/* Footer */
.site-footer { background: #0b2a1e; color: #cfe3c8; padding-block: 3.5rem 2.5rem; font-size: 1rem; }
.site-footer .cols { display: grid; gap: 2.5rem; }
@media (min-width: 48rem) { .site-footer .cols { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer .brand { color: #fff; font-size: 1.3rem; margin-bottom: 0.9rem; }
.site-footer h2 { font: 700 1rem var(--sans); color: white; margin-bottom: 0.8rem; letter-spacing: 0; }
.site-footer ul { list-style: none; display: grid; gap: 0.5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: white; text-decoration: underline; }
.site-footer .legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / 0.12); font-size: 0.95rem; }

.empty { background: #fff; border: 1.5px dashed color-mix(in srgb, var(--rind) 30%, transparent); border-radius: 1rem; padding: 3rem 1.5rem; text-align: center; color: var(--muted); }

/* Grid children must be allowed to shrink, or wide code blocks push the page sideways on phones. */
.article-grid > *, .docs-grid > *, .split > *, .hero .wrap > * { min-width: 0; }
.prose pre, .prose table { max-width: 100%; }

/* Copy button on code blocks (public/copy.js) */
.copyable { position: relative; }
.copyable pre { padding-right: 3.25rem; }
.copy-btn { position: absolute; top: 0.6rem; right: 0.6rem; display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0; border: 1px solid rgb(255 255 255 / 0.15); border-radius: 0.5rem; background: rgb(255 255 255 / 0.08); color: #f4f1de; cursor: pointer; opacity: 0.75; transition: opacity 0.15s, background 0.15s, color 0.15s; }
.copyable:hover .copy-btn, .copy-btn:focus-visible { opacity: 1; }
.copy-btn:hover { background: rgb(255 255 255 / 0.16); }
.copy-btn.copied { color: var(--leaf); border-color: var(--leaf); opacity: 1; }
