/* Linkwright — public site. No external requests: fonts are self-hosted, no analytics, no trackers.
   Palette taken from the logo: forged green, brass and teal. */

@font-face { font-family: "Plex Sans"; src: url("assets/fonts/plex-sans-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("assets/fonts/plex-sans-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("assets/fonts/plex-sans-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("assets/fonts/plex-mono-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --forest: #14302a;
  --forest-2: #1f4239;
  --forest-line: #2f5449;
  --on-forest: #e6efe9;
  --on-forest-muted: #9fb8ad;
  --brass: #f2b544;
  --brass-deep: #d99a22;
  --teal: #3fd0a4;

  --ink: #14302a;
  --text: #26332f;
  --muted: #5d6b65;
  --paper: #ffffff;
  --paper-2: #f1f4f2;
  --line: #d7dfda;
  --link: #17735a;

  --ok: #17734a;   --ok-soft: #e1f3e9;
  --warn: #8f5c00; --warn-soft: #fcf0d4;
  --bad: #a8281c;  --bad-soft: #fbe8e5;

  --sans: "Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 40rem); margin-inline: auto; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--brass-deep); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3 { color: var(--ink); font-weight: 600; }
h1 { font-size: clamp(2.4rem, 1.2rem + 4.6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 1.5rem; }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.3rem); line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 1rem; text-wrap: balance; }
h3 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.01em; margin: 0 0 0.5rem; }
p { margin: 0 0 1rem; }
strong { font-weight: 600; color: var(--ink); }

/* ---------- header ---------- */

header.site {
  position: sticky; top: 0; z-index: 20;
  background: var(--forest);
  color: var(--on-forest);
  border-bottom: 1px solid var(--forest-line);
}
header.site .wrap { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.brand { display: flex; align-items: center; gap: 0.65rem; font-weight: 600; font-size: 1.05rem; color: #fff; text-decoration: none; letter-spacing: -0.01em; }
.brand img { border-radius: 7px; }
header.site nav { margin-left: auto; display: flex; align-items: center; gap: 1.6rem; font-size: 0.95rem; }
header.site nav a { color: var(--on-forest-muted); text-decoration: none; }
header.site nav a:hover, header.site nav a[aria-current] { color: #fff; }
header.site nav a.nav-cta { color: var(--forest); background: var(--brass); padding: 0.4rem 0.85rem; border-radius: 6px; font-weight: 600; }
header.site nav a.nav-cta:hover { background: #f7c565; color: var(--forest); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block; padding: 0.8rem 1.3rem; border-radius: 6px;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; border: 1px solid transparent;
}
.btn-brass { background: var(--brass); color: var(--forest); }
.btn-brass:hover { background: #f7c565; }
.btn-line { color: var(--on-forest); border-color: var(--forest-line); }
.btn-line:hover { border-color: var(--on-forest-muted); color: #fff; }
.btn-forest { background: var(--forest); color: #fff; }
.btn-forest:hover { background: var(--forest-2); color: #fff; }

/* ---------- hero ---------- */

.hero {
  background: var(--forest);
  color: var(--on-forest);
  padding: 5.5rem 0 0;
  /* The board sits half in the green, half on the page. */
  margin-bottom: 7rem;
}
.hero h1 { color: #fff; max-width: 13ch; }
.hero .lead { font-size: 1.25rem; line-height: 1.55; color: var(--on-forest-muted); max-width: 34rem; margin-bottom: 2rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.status-line { display: flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; color: var(--on-forest-muted); margin-bottom: 2rem; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 4px rgb(242 181 68 / 18%); }

.board {
  position: relative;
  margin: 4rem 0 -7rem;
  background: var(--paper);
  color: var(--text);
  border-radius: 10px;
  box-shadow: 0 24px 48px -24px rgb(8 24 20 / 45%), 0 0 0 1px rgb(20 48 42 / 10%);
  overflow: hidden;
}
.board-title { display: flex; justify-content: space-between; align-items: baseline; padding: 1rem 1.4rem; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.board-project { font-weight: 400; font-size: 0.9rem; color: var(--muted); }
.board table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.board th { text-align: left; font-weight: 400; font-size: 0.85rem; color: var(--muted); padding: 0.6rem 1.4rem; background: var(--paper-2); }
.board td { padding: 0.95rem 1.4rem; border-top: 1px solid var(--line); vertical-align: middle; }
.board .repo { font-family: var(--mono); font-size: 0.9rem; color: var(--ink); white-space: nowrap; }
.board .when { color: var(--muted); font-variant-numeric: tabular-nums; }
.board figcaption { padding: 0.9rem 1.4rem; border-top: 1px solid var(--line); background: var(--paper-2); font-size: 0.92rem; color: var(--muted); }

.chip {
  display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap;
  padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.85rem; font-weight: 600;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }

/* ---------- sticky section nav ---------- */

.sectionnav {
  position: sticky; top: 64px; z-index: 15;
  background: var(--forest);
  border-bottom: 1px solid var(--forest-line);
}
.sectionnav .wrap { display: flex; gap: 1.8rem; overflow-x: auto; scrollbar-width: none; }
.sectionnav .wrap::-webkit-scrollbar { display: none; }
.sectionnav a {
  padding: 0.85rem 0; white-space: nowrap; text-decoration: none;
  font-size: 0.92rem; color: var(--on-forest-muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.sectionnav a:hover { color: #fff; }
.sectionnav a[aria-current="true"] { color: #fff; font-weight: 600; border-bottom-color: var(--brass); }

/* ---------- hero: headline left, measured proof right ---------- */

.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 4rem; align-items: start; }
.hero-grid .hero-text { padding-top: 0.5rem; }

.proof {
  margin: 0; padding: 1.6rem 1.8rem;
  border: 1px solid var(--forest-line); border-radius: 10px;
  background: rgb(255 255 255 / 4%);
}
.proof figcaption {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 0.9rem;
}
.proof-lead { color: var(--on-forest); font-size: 1rem; line-height: 1.6; margin: 0; }
.proof-lead strong { color: #fff; font-weight: 600; }
.proof-stats { margin: 1.5rem 0 0; padding-top: 1.3rem; border-top: 1px solid var(--forest-line); display: grid; gap: 1rem; }
.proof-stats > div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; align-items: baseline; }
.proof-stats dt { font-size: 1.5rem; font-weight: 600; color: var(--brass); letter-spacing: -0.02em; line-height: 1.1; }
.proof-stats dd { margin: 0; font-size: 0.92rem; line-height: 1.45; color: var(--on-forest-muted); }

/* ---------- sections ---------- */

section { padding: 5.5rem 0; scroll-margin-top: 7.5rem; }
section + section { border-top: 1px solid var(--line); }
.hero + section { padding-top: 4rem; }
.sub { color: var(--muted); max-width: 40rem; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4.5rem; align-items: start; }
.split > div > p { max-width: 34rem; }
/* The left column is always the shorter one. Sticking it to the viewport keeps it beside
   its own content instead of leaving half the screen empty. */
@media (min-width: 901px) {
  .pricing .split > div:first-child,
  .limits .split > div:first-child { position: sticky; top: 9.5rem; }
}

/* ratings chart */
.ratings { margin: 0.4rem 0 0; position: relative; padding-bottom: 0.5rem; }
.ratings-head { font-size: 0.95rem; color: var(--muted); margin-bottom: 1.4rem; }
.rating { margin-bottom: 1.4rem; }
.rating-name { font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; }
.rating-name small { display: block; font-weight: 400; font-size: 0.85rem; color: var(--muted); }
.rating-bar { display: flex; align-items: center; gap: 0.8rem; height: 2.2rem; background: var(--paper-2); border-radius: 3px; position: relative; }
.rating-bar span { display: block; height: 100%; width: calc(var(--v) / 5 * 100%); background: var(--bad); opacity: 0.85; border-radius: 3px 0 0 3px; }
.rating-bar b { position: absolute; left: calc(var(--v, 0) / 5 * 100%); }
.rating-bar span + b { position: static; font-size: 1.15rem; font-variant-numeric: tabular-nums; color: var(--ink); }
.median {
  position: absolute; top: 2.9rem; bottom: 2.6rem;
  left: calc(var(--v) / 5 * 100%);
  border-left: 2px solid var(--ink);
}
.median span {
  position: absolute; top: 0; right: 0.6rem; white-space: nowrap;
  font-size: 0.85rem; font-weight: 600; color: var(--ink);
}
.ratings figcaption { margin-top: 2rem; font-size: 0.85rem; color: var(--muted); }

/* features */
.features h2 { margin-bottom: 0.5rem; }
.feature { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 3.5rem; align-items: center; padding-top: 3.5rem; }
.feature + .feature { margin-top: 3.5rem; border-top: 1px solid var(--line); }
.feature-text p { color: var(--muted); margin: 0; }
.feature figure { margin: 0; background: var(--paper-2); border-radius: 10px; padding: 1rem; }
.shot-link { display: block; cursor: zoom-in; }
.feature img { display: block; width: 100%; height: auto; border-radius: 5px; box-shadow: 0 0 0 1px rgb(20 48 42 / 10%), 0 8px 20px -12px rgb(20 48 42 / 30%); }

/* pipeline — a real sequence, so it is numbered */
.pipeline { list-style: none; counter-reset: step; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.pipeline li { counter-increment: step; position: relative; padding-top: 3.1rem; }
.pipeline li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0; z-index: 1;
  width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--forest); color: #fff; font-weight: 600; font-size: 0.9rem;
}
.pipeline li::after { content: ""; position: absolute; top: 1rem; left: 2rem; right: -2rem; border-top: 2px solid var(--line); }
.pipeline li:last-child::after { border-top-style: dashed; border-color: var(--brass-deep); right: 0; }
.pipeline h3 { font-size: 1.05rem; }
.pipeline p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.forge { margin: 3.5rem 0 0; padding: 1.3rem 1.5rem; max-width: 46rem; background: var(--paper-2); border-radius: 8px; }

/* pricing */
table.price { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.price th { text-align: left; font-weight: 400; font-size: 0.9rem; color: var(--muted); padding: 0 0 0.7rem; border-bottom: 2px solid var(--ink); }
table.price td { padding: 1.1rem 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
table.price td:first-child { color: var(--ink); padding-right: 1rem; }
table.price strong { font-size: 1.35rem; letter-spacing: -0.02em; margin-right: 0.6rem; }
table.price small { font-size: 0.9rem; color: var(--muted); }

/* limits */
.limits dl { margin: 0.3rem 0 1.5rem; }
.limits dt { font-weight: 600; color: var(--ink); }
.limits dd { margin: 0.2rem 0 1.3rem; color: var(--muted); }

/* letter */
.letter { background: var(--paper-2); }
.letter .narrow { text-align: center; }
.letter h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); }
.letter p { font-size: 1.1rem; line-height: 1.65; text-align: left; }
.letter .signature { font-size: 1rem; color: var(--muted); font-style: italic; margin: 1.8rem 0 1.5rem; text-align: center; }

footer.site { padding: 2.5rem 0 3rem; font-size: 0.92rem; color: var(--on-forest-muted); background: var(--forest); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; }
footer.site nav { margin-left: auto; display: flex; gap: 1.4rem; flex-wrap: wrap; }
footer.site a { color: var(--on-forest); text-decoration: none; }
footer.site a:hover { text-decoration: underline; }

/* ---------- document pages ---------- */

.doc { padding: 3.5rem 0 5rem; }
.doc h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 2.9rem); line-height: 1.1; letter-spacing: -0.03em; }
.doc h2 { font-size: 1.55rem; margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.doc h3 { margin-top: 2rem; }
.doc blockquote { margin: 1.5rem 0; padding: 0.9rem 1.2rem; border-left: 3px solid var(--brass-deep); background: var(--paper-2); color: var(--muted); }
.doc blockquote p { margin: 0.35rem 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 0.65rem 0.9rem 0.65rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-size: 0.9rem; font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--ink); white-space: nowrap; }
.doc code { font-family: var(--mono); font-size: 0.86em; background: var(--paper-2); border-radius: 4px; padding: 0.1em 0.35em; }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc li { margin: 0.35rem 0; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.doc hr:has(+ h2) { display: none; }

.toc { border-left: 2px solid var(--ink); padding: 0.2rem 0 0.2rem 1.3rem; margin: 2rem 0 2.5rem; }
.toc p { margin: 0 0 0.5rem; font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.toc ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 2rem; }
.toc li { margin: 0.25rem 0; break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ---------- small screens ---------- */

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .feature { grid-template-columns: 1fr; gap: 1.5rem; }
  .pipeline { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .pipeline li:nth-child(2)::after { right: 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  header.site nav { gap: 1rem; font-size: 0.9rem; }
  /* A phone keeps the language switch and the demo button; the other links are in the footer. */
  header.site nav a:not(.nav-cta):not([hreflang]) { display: none; }
  /* "Réserver une démo" broke over two lines next to the language switch (2026-10-02). */
  header.site nav a.nav-cta { white-space: nowrap; padding: 0.4rem 0.7rem; }
  header.site nav a[hreflang] { padding: 0.55rem 0.2rem; }
  /* The median's label ran over "GitHub for Atlassian" on a phone: narrower, on two lines. */
  .median span { white-space: normal; max-width: 6.2rem; text-align: right; line-height: 1.2; font-size: 0.78rem; }
  .hero { padding-top: 3.5rem; margin-bottom: 5rem; }
  .sectionnav { top: 64px; }
  .sectionnav .wrap { width: 100%; padding-inline: 1.25rem; gap: 1.3rem; }
  .proof { padding: 1.3rem 1.4rem; }
  .proof-stats > div { grid-template-columns: 4.5rem 1fr; gap: 0.8rem; }
  .board { margin: 2.5rem 0 -5rem; }
  .board th:nth-child(3), .board td:nth-child(3) { display: none; }
  .board td, .board th, .board-title, .board figcaption { padding-inline: 1rem; }
  .board .repo { font-size: 0.8rem; }
  section { padding: 3.5rem 0; }
  .pipeline { grid-template-columns: 1fr; }
  .pipeline li::after { display: none; }
  .toc ul { columns: 1; }
  table.price strong { display: block; margin: 0; }
}

@media (max-width: 400px) {
  /* 360 px phones: the unbroken button needs the room the gaps used to take. */
  header.site nav { gap: 0.55rem; }
  header.site nav a.nav-cta { font-size: 0.8rem; padding: 0.35rem 0.5rem; }
}

/* demo: four real frames cycling, captions in step */
.demo-lede { color: var(--muted); max-width: 60ch; margin: 0 0 2rem; }
.demo-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.demo-stage { position: relative; aspect-ratio: 1212 / 758; max-width: 100%; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--paper); box-shadow: 0 18px 40px -24px rgba(20, 48, 42, 0.45); }
.demo-frame { position: absolute; inset: 0; margin: 0; opacity: 0; animation: demo-show 16s infinite; }
.demo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.demo-frame.f1 { opacity: 1; }
.demo-frame.f2, .demo-steps .s2 { animation-delay: 4s; }
.demo-frame.f3, .demo-steps .s3 { animation-delay: 8s; }
.demo-frame.f4, .demo-steps .s4 { animation-delay: 12s; }
.demo-mark { position: absolute; width: 13%; height: 5%; transform: translate(-4%, -55%); border: 2px solid var(--brass-deep); border-radius: 6px; }
@keyframes demo-show { 0% { opacity: 0; } 3%, 25% { opacity: 1; } 28%, 100% { opacity: 0; } }
.demo-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.demo-steps li { padding: 0.7rem 0.9rem; border-left: 3px solid var(--line); color: var(--muted); animation: demo-step 16s infinite; }
.demo-steps .t { display: block; font-family: var(--mono); font-size: 0.85rem; color: var(--ink); font-variant-numeric: tabular-nums; margin-bottom: 0.15rem; }
@keyframes demo-step { 0% { border-color: var(--line); color: var(--muted); } 3%, 25% { border-color: var(--brass-deep); color: var(--text); } 28%, 100% { border-color: var(--line); color: var(--muted); } }
@media (max-width: 900px) { .demo-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  .demo-stage { aspect-ratio: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: var(--line); }
  .demo-frame { position: relative; opacity: 1; animation: none; }
  .demo-frame img { height: auto; }
  .demo-steps li { animation: none; color: var(--text); }
}

/* Hero board: a webhook landing flashes its row; chips cross-fade between states. */
.board tbody tr { transition: background-color 0.6s ease; }
.board tr.live-flash { animation: live-flash 1.8s ease-out; }
@keyframes live-flash { 0% { background: var(--ok-soft); } 100% { background: transparent; } }
.chip { transition: background-color 0.5s ease, color 0.5s ease; }
@media (prefers-reduced-motion: reduce) {
  .board tr.live-flash { animation: none; }
  .chip { transition: none; }
}

/* Guides: a query reads as one piece, and a wide table scrolls inside itself on a phone. */
/* A long query wraps inside its block instead of widening the page: jira-jql-development-github
   scrolled sideways at every width, even 1024 px (measured 2026-10-02). */
.doc pre { max-width: 100%; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.doc pre code { white-space: inherit; }
.doc table { display: block; max-width: 100%; overflow-x: auto; }
.doc td code { white-space: nowrap; }
