/* ═══════════════════════════════════════════════════════════════════════
   appgnt public site: shared chrome for appgnt.com.

   Light by design. The reader is a business owner reading at a desk in
   daylight, and the apps the studio builds are mostly light-themed
   business tools, so the site and the thing it sells look like one
   object. The studio itself (app.appgnt.com) stays dark; the two share
   the violet mark, the typefaces and the component shapes, not the ground.

   Two accents, with distinct jobs: violet carries actions (buttons, links,
   hovers, the mark), teal carries labels and affirmatives (overlines,
   ticks, kickers). On a light ground the bright cyan of the studio fails
   contrast as text, so it survives only as a glow. Mixing the two roles
   is what makes a two-accent system look accidental.

   Loaded by the landing page and every blog post, so nav, footer, buttons
   and prose stay one system as the site grows.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  color-scheme: light;
  --ground: #f6f6fa;      /* page */
  --raised: #fbfbfd;      /* alternate sections */
  --card: #ffffff;
  --line: #e4e4ee;
  --line-strong: #cdcdde;

  --violet: #6b4cf6;      /* actions: buttons, links, hovers */
  --violet-hot: #5a3be6;
  --violet-deep: #4a2ecf;
  --violet-wash: rgba(124, 92, 255, 0.10);
  --on-violet: #ffffff;
  --teal: #0e7490;        /* labels, ticks, affirmatives */
  --teal-hot: #0b5f76;
  --teal-wash: rgba(14, 116, 144, 0.09);
  --teal-dim: rgba(14, 116, 144, 0.45);
  --cyan-glow: rgba(34, 211, 238, 0.22);   /* ambient only */

  --fg1: #15141f;
  --fg2: #33324a;
  --fg3: #5b5a72;
  --fg4: #85849a;

  --sh-1: 0 1px 2px rgba(20, 18, 40, 0.06);
  --sh-3: 0 10px 30px rgba(20, 18, 40, 0.10);
  --sh-4: 0 24px 60px rgba(20, 18, 40, 0.14);

  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  color: var(--fg2);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--violet); color: var(--on-violet); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 740px; margin: 0 auto; padding: 0 32px; }

h1, h2, h3, h4 { font-family: var(--display); color: var(--fg1);
  letter-spacing: -0.03em; }
.overline { font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); }
.h2 { font-weight: 700; font-size: 38px; line-height: 1.1; margin: 14px 0 10px;
  max-width: 20ch; }
.lead { font-size: 17px; line-height: 1.62; color: var(--fg3); max-width: 60ch; }
code { font-family: var(--mono); }

/* ── buttons ─────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--body); font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent; transition: all .18s; white-space: nowrap; }
.btn-primary { background: var(--violet); color: var(--on-violet);
  box-shadow: 0 1px 2px rgba(74, 46, 207, 0.25); }
.btn-primary:hover { background: var(--violet-hot); }
.btn-ghost { border-color: var(--line-strong); color: var(--fg1);
  background: var(--card); }
.btn-ghost:hover { border-color: var(--violet); background: var(--violet-wash); }

/* ── nav ─────────────────────────────────────────────────────────────── */
nav { position: sticky; top: 0; z-index: 50;
  background: rgba(251, 251, 253, 0.86); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 32px; padding: 14px 0; }
.wordmark { display: flex; align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 700; font-size: 20px;
  letter-spacing: -0.03em; color: var(--fg1); }
.wordmark svg { flex: none; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--fg3);
  white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--fg1); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 16px; }
@media (max-width: 1000px) { .nav-links .nav-compare { display: none; } }

/* ── sections ────────────────────────────────────────────────────────── */
.section { padding: 84px 0; }
.section.raised { background: var(--card);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.grid-bg {
  background-image: radial-gradient(rgba(124, 92, 255, 0.16) 1px, transparent 1px);
  background-size: 22px 22px; }

/* ── ambient backdrop ────────────────────────────────────────────────── */
/* A dot grid that fades toward the bottom, two slow-drifting brand glows,
   and the mark's screens drawing themselves in the left gutter. Decorative
   only, so the markup carries aria-hidden. Sized here for a compact header
   (blog posts, the blog index); the landing hero overrides the geometry.
   Any element hosting one needs position:relative and overflow:hidden. */
.ambient { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ambient .grid { position: absolute; inset: 0;
  background-image: radial-gradient(rgba(124,92,255,0.20) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(125% 92% at 50% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(125% 92% at 50% 0%, #000 0%, transparent 72%); }
.ambient .glow { position: absolute; border-radius: 50%; filter: blur(76px); }
.ambient .glow-a { width: 460px; height: 340px; top: -190px; left: -120px;
  background: radial-gradient(circle, rgba(124,92,255,0.28), transparent 68%);
  animation: drift-a 24s ease-in-out infinite; }
.ambient .glow-b { width: 420px; height: 300px; top: -60px; right: -150px;
  background: radial-gradient(circle, var(--cyan-glow), transparent 68%);
  animation: drift-b 29s ease-in-out infinite; }
.ambient .arcs { position: absolute; top: 10px;
  left: calc(max(20px, 50% - 338px) - 368px); width: 560px; height: 560px;
  opacity: 0.09; }
.ambient .arcs rect { stroke-dasharray: 140; stroke-dashoffset: 140;
  animation: draw 11s ease-in-out infinite; }
.ambient .arcs rect:nth-child(2) { animation-delay: .45s; }
.ambient .arcs rect:nth-child(3) { animation-delay: .9s; }

@keyframes drift-a { 50% { transform: translate(70px, 50px) scale(1.12); } }
@keyframes drift-b { 50% { transform: translate(-60px, 40px) scale(1.08); } }
@keyframes draw {
  0% { stroke-dashoffset: 140; } 22%, 66% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -140; } }

@media (prefers-reduced-motion: reduce) {
  .ambient .glow, .ambient .arcs rect { animation: none; }
  .ambient .arcs rect { stroke-dashoffset: 0; }
}

.index-head { position: relative; overflow: hidden; }
.index-head > .wrap { position: relative; z-index: 1; }
.index-head .ambient .arcs { left: calc(max(20px, 50% - 548px) - 344px); }

/* ── prose (blog posts) ──────────────────────────────────────────────── */
.prose { font-size: 17px; line-height: 1.74; color: var(--fg2); }
.prose > * + * { margin-top: 21px; }
.prose h2 { font-size: 27px; font-weight: 700; margin-top: 50px;
  letter-spacing: -0.026em; scroll-margin-top: 90px; }
.prose h3 { font-size: 20px; font-weight: 700; margin-top: 34px;
  letter-spacing: -0.02em; scroll-margin-top: 90px; }
.prose a { color: var(--violet-deep); font-weight: 500;
  border-bottom: 1px solid rgba(74, 46, 207, 0.35); }
.prose a:hover { border-bottom-color: var(--violet-deep); }
.prose ul, .prose ol { padding-left: 22px; display: flex;
  flex-direction: column; gap: 10px; }
.prose li { line-height: 1.68; }
.prose li::marker { color: var(--teal); }
.prose strong { color: var(--fg1); font-weight: 700; }
.prose em { color: var(--fg1); }
.prose blockquote { border-left: 3px solid var(--teal);
  background: var(--teal-wash); padding: 16px 20px; border-radius: 0 10px 10px 0;
  color: var(--fg2); font-size: 16.5px; }
.prose blockquote p + p { margin-top: 12px; }
.prose code { font-family: var(--mono); font-size: 0.86em;
  background: #ecebf5; padding: 2px 6px; border-radius: 5px; color: var(--violet-deep);
  overflow-wrap: anywhere; }
.prose pre { background: #15141f; border: 1px solid #2a2938;
  color: #e6e5f0; padding: 18px 20px; border-radius: 12px; overflow-x: auto;
  font-family: var(--mono); font-size: 13px; line-height: 1.6; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 42px 0; }
.prose figure { margin: 32px 0; }
.prose figcaption { font-size: 13.5px; color: var(--fg4); margin-top: 10px; }
.prose figure img { display: block; width: 100%; height: auto; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); }

/* Tables scroll inside their own container, so the page never scrolls sideways. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.prose table, .cmp table { border-collapse: collapse; width: 100%; min-width: 560px;
  font-size: 14.5px; }
.prose th, .prose td, .cmp th, .cmp td { text-align: left; padding: 12px 16px;
  border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th, .cmp thead th { background: var(--ground); font-family: var(--display);
  font-weight: 700; color: var(--fg1); font-size: 13.5px; white-space: nowrap; }
.prose tbody tr:last-child td, .cmp tbody tr:last-child td { border-bottom: 0; }

/* Extractable summary at the top of every post (SEO + AI answer engines). */
.takeaways { border: 1px solid var(--line); border-left: 3px solid var(--teal);
  background: var(--card); border-radius: 0 14px 14px 0; padding: 24px 26px;
  margin-bottom: 38px; box-shadow: var(--sh-1); }
.takeaways h2 { font-size: 12px; font-family: var(--mono); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal);
  margin: 0 0 14px; }
.takeaways ul { margin: 0; padding-left: 20px; display: flex;
  flex-direction: column; gap: 11px; }
.takeaways li { font-size: 15.5px; line-height: 1.62; color: var(--fg2); }
.takeaways li::marker { color: var(--teal); }

.post-faq { margin-top: 54px; }
.post-faq h2 { font-family: var(--display); font-size: 27px; font-weight: 700;
  letter-spacing: -0.026em; margin-bottom: 8px; }
.post-faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.post-faq summary { font-family: var(--display); font-weight: 700; font-size: 17.5px;
  color: var(--fg1); cursor: pointer; list-style: none; display: flex;
  justify-content: space-between; gap: 20px; letter-spacing: -0.018em; }
.post-faq summary::-webkit-details-marker { display: none; }
.post-faq summary::after { content: "+"; color: var(--violet); font-weight: 500;
  font-size: 21px; line-height: 1; flex: none; }
.post-faq details[open] summary::after { content: "\2013"; }
.post-faq p { font-size: 15.5px; line-height: 1.68; color: var(--fg3); margin-top: 10px; }

.post-sources { margin-top: 50px; padding-top: 26px;
  border-top: 1px solid var(--line); }
.post-sources h2 { font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal);
  margin-bottom: 10px; }
.post-sources p { font-size: 14px; line-height: 1.6; color: var(--fg4);
  margin-bottom: 14px; max-width: 62ch; }
.post-sources ul { margin: 0; padding-left: 20px; display: flex;
  flex-direction: column; gap: 8px; }
.post-sources li { font-size: 14.5px; line-height: 1.55; color: var(--fg3); }
.post-sources li::marker { color: var(--teal); }
.post-sources a { color: var(--fg2); border-bottom: 1px solid var(--line-strong); }
.post-sources a:hover { color: var(--violet-deep); border-bottom-color: var(--violet-deep); }

/* Ties a post back to the product it is about. */
.try-cta { margin-top: 50px; border: 1px solid var(--line);
  border-radius: 16px; padding: 26px 28px; background: var(--card);
  display: flex; gap: 22px; align-items: center; box-shadow: var(--sh-1); }
.try-cta .body { flex: 1; }
.try-cta h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.try-cta p { font-size: 15px; color: var(--fg3); line-height: 1.55; }

/* ── blog index cards ────────────────────────────────────────────────── */
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  margin-top: 36px; }
.post-card { display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: var(--sh-1); transition: all .18s; }
.post-card .hero { display: block; width: 100%; height: auto;
  aspect-ratio: 40 / 21; object-fit: cover;
  border-bottom: 1px solid var(--line); background: var(--ground); }
.post-card .post-body { display: flex; flex-direction: column; flex: 1;
  padding: 22px 24px 24px; }
.post-card:hover { border-color: var(--violet); box-shadow: var(--sh-3);
  transform: translateY(-2px); }
.post-card .kicker { font-family: var(--mono); font-size: 11px;
  font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--teal); }
.post-card h3 { font-size: 20px; font-weight: 700; margin: 12px 0 8px;
  line-height: 1.25; letter-spacing: -0.022em; }
.post-card p { font-size: 14.5px; color: var(--fg3); line-height: 1.55; flex: 1; }
.post-card .meta { display: flex; gap: 12px; margin-top: 16px;
  padding-top: 14px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 11.5px; color: var(--fg4); }
.post-card.featured { grid-column: 1 / -1; display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.post-card.featured .hero { height: 100%; aspect-ratio: auto;
  border-bottom: 0; border-right: 1px solid var(--line); }
.post-card.featured .post-body { padding: 30px 32px; justify-content: center; }
.post-card.featured h3 { font-size: 27px; }

/* ── post header + breadcrumbs ───────────────────────────────────────── */
.crumbs { font-family: var(--mono); font-size: 12px; color: var(--fg4);
  display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--violet-deep); }
.post-head { position: relative; overflow: hidden; padding: 56px 0 36px;
  border-bottom: 1px solid var(--line); background: var(--raised); }
.post-head > .wrap-narrow { position: relative; z-index: 1; }
.post-head h1 { font-size: 43px; font-weight: 700; line-height: 1.08;
  letter-spacing: -0.036em; margin: 18px 0 0; }
.post-head .standfirst { font-size: 19px; line-height: 1.55; color: var(--fg3);
  margin-top: 18px; }
.post-head .byline { display: flex; gap: 14px; align-items: center;
  flex-wrap: wrap; margin-top: 24px; font-family: var(--mono);
  font-size: 12px; color: var(--fg4); }
.post-head .post-hero { margin-top: 44px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--sh-3); background: var(--card);
  aspect-ratio: 40 / 21; }
.post-head .post-hero-img { display: block; width: 100%; height: 100%;
  object-fit: cover; }
.post-body { padding: 44px 0 76px; }

/* ── footer ──────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); background: var(--card); }
.foot-cols { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px; padding: 48px 0 36px; }
.foot-cols p { font-size: 13.5px; color: var(--fg3); line-height: 1.6;
  margin-top: 14px; max-width: 260px; }
.foot-cols h4 { font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--fg4);
  margin-bottom: 14px; }
.foot-cols .links { display: flex; flex-direction: column; gap: 9px; }
.foot-cols .links a, .foot-cols .links span { font-size: 13.5px; color: var(--fg3); }
.foot-cols .links a:hover { color: var(--violet-deep); }
.foot-bar { border-top: 1px solid var(--line); display: flex;
  justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0;
  font-family: var(--mono); font-size: 12.5px; color: var(--fg4); }

@media (max-width: 1000px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-card.featured { grid-template-columns: 1fr; }
  .post-card.featured .hero { height: auto; aspect-ratio: 40 / 21;
    border-right: 0; border-bottom: 1px solid var(--line); }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .post-head h1 { font-size: 33px; }
}
@media (max-width: 620px) {
  .wrap, .wrap-narrow { padding: 0 20px; }
  .nav-links { display: none; }
  .foot-cols { grid-template-columns: 1fr; }
  .h2 { font-size: 29px; }
  .section { padding: 60px 0; }
  .prose { font-size: 16.5px; }
  .prose h2 { font-size: 23px; }
  .try-cta { flex-direction: column; align-items: flex-start; }
}

/* /mcp/: the assistant setup page. */
.mcp-server { display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-top: 22px; }
.mcp-server code { font-family: var(--mono); font-size: 14px; color: var(--violet-deep);
  background: var(--card); border: 1px solid var(--line-strong);
  border-radius: 8px; padding: 8px 12px; margin-right: 6px; }
.mcp-scope { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--fg3); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 4px 10px; background: var(--card); }
.page-toc { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px;
  font-size: 13.5px; }
.page-toc a { color: var(--fg3); text-decoration: none;
  border-bottom: 1px solid transparent; }
.page-toc a:hover { color: var(--violet-deep); border-bottom-color: var(--violet-deep); }
.setup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.setup { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
  background: var(--card); min-width: 0; box-shadow: var(--sh-1); }
.setup h3 { font-size: 16.5px; margin: 0 0 8px; }
.setup p { font-size: 14px; line-height: 1.6; color: var(--fg3); margin: 0 0 8px; }
.setup p + p { margin-top: 10px; }
.prose .setup pre { margin: 8px 0 0; font-size: 12.5px; padding: 12px 14px;
  white-space: pre-wrap; overflow-wrap: anywhere; }
.prose .setup h3 { margin-top: 0; }
.phrases { list-style: none; padding: 0; margin: 0; display: flex;
  flex-direction: column; gap: 10px; }
.prose .phrases li { border-left: 3px solid var(--teal); background: var(--card);
  border-radius: 0 10px 10px 0; padding: 11px 15px; font-size: 15.5px;
  line-height: 1.55; color: var(--fg1); box-shadow: var(--sh-1); }
.phrases li small { display: block; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.04em; color: var(--fg4); margin-top: 6px; }
.inline-faq { margin-top: 8px; }
.inline-faq p { color: var(--fg3); }
@media (max-width: 720px) {
  .setup-grid { grid-template-columns: 1fr; }
}

/* /compare/<name>/: the comparison pages. */
.verdict { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 34px 0 0; }
.verdict > div { border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px;
  background: var(--card); box-shadow: var(--sh-1); }
.verdict h3 { font-size: 17px; margin: 0 0 8px; }
.verdict h3 .who { font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); display: block;
  margin-bottom: 6px; }
.verdict p { font-size: 15px; line-height: 1.62; color: var(--fg3); }
.cmp { margin-top: 34px; }
.cmp th:first-child, .cmp td:first-child { font-family: var(--mono); font-size: 12px;
  color: var(--fg4); letter-spacing: 0.04em; white-space: nowrap; }
.cmp td.us { color: var(--fg1); }
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 8px; }
.prose .pick ul { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px 18px 38px;
  background: var(--card); gap: 8px; }
.prose .pick h3 { margin: 0 0 10px; font-size: 16px; }
@media (max-width: 720px) {
  .verdict, .pick { grid-template-columns: 1fr; }
}
