/* Stepwise (eleven apps for Jira and Confluence): one stylesheet for every page. No build step, no external requests. */

@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --bg: #F5F6F9;
  --bg-soft: #ECEEF3;
  --card: #FFFFFF;
  --text: #25282D;
  --text-2: #5B616B;
  --line: rgba(37, 40, 45, 0.10);
  --line-strong: rgba(37, 40, 45, 0.18);

  --emerald: #1FA971;
  --emerald-text: #0E7650;
  --emerald-soft: rgba(31, 169, 113, 0.12);
  --amber-text: #8A4F00;
  --amber-soft: #FFEFD2;
  --gold: #C99A2E;

  --btn-bg: #25282D;
  --btn-bg-hover: #33373E;
  --btn-text: #FFFFFF;
  --btn-sheen: rgba(255, 255, 255, 0.22);

  --edge: linear-gradient(145deg, #FFFFFF 0%, #DFE3EC 38%, #E9ECF2 62%, rgba(31, 169, 113, 0.30) 100%);
  --shadow: 0 1px 2px rgba(37, 40, 45, 0.04), 0 12px 32px -12px rgba(37, 40, 45, 0.14);
  --shadow-lift: 0 2px 4px rgba(37, 40, 45, 0.05), 0 28px 60px -24px rgba(37, 40, 45, 0.24);
  --glow: radial-gradient(60% 55% at 50% 40%, rgba(31, 169, 113, 0.16), rgba(120, 140, 200, 0.10) 55%, transparent 75%);
  --header-bg: rgba(245, 246, 249, 0.82);
  --code-bg: #EEF0F5;

  --font-head: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1160px;
  --pad: clamp(20px, 4vw, 40px);
  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C1324;
    --bg-soft: #101829;
    --card: #141A28;
    --text: #E9ECF2;
    --text-2: #A6AEBD;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.18);

    --emerald: #2CC389;
    --emerald-text: #58D6A4;
    --emerald-soft: rgba(44, 195, 137, 0.14);
    --amber-text: #F3C36A;
    --amber-soft: rgba(243, 180, 70, 0.16);
    --gold: #E2B955;

    --btn-bg: #EEF0F5;
    --btn-bg-hover: #FFFFFF;
    --btn-text: #25282D;
    --btn-sheen: rgba(255, 255, 255, 0.85);

    --edge: linear-gradient(145deg, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0.07) 40%, rgba(255, 255, 255, 0.04) 65%, rgba(44, 195, 137, 0.34) 100%);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.3), 0 32px 70px -24px rgba(0, 0, 0, 0.75);
    --glow: radial-gradient(60% 55% at 50% 40%, rgba(44, 195, 137, 0.16), rgba(90, 120, 220, 0.12) 55%, transparent 75%);
    --header-bg: rgba(12, 19, 36, 0.80);
    --code-bg: #1B2233;
  }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.022em;
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 5.4vw, 3.9rem); font-weight: 750; }
h2 { font-size: clamp(1.65rem, 3.3vw, 2.45rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.25; }
h4 { font-size: 1.05rem; line-height: 1.3; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }

img, svg { max-width: 100%; }
img { height: auto; display: block; }

:focus-visible {
  outline: 3px solid var(--emerald);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: rgba(31, 169, 113, 0.28); }

code, kbd, pre { font-family: var(--font-mono); font-size: 0.9em; }

code {
  background: var(--code-bg);
  border-radius: 6px;
  padding: 0.12em 0.38em;
  overflow-wrap: anywhere;
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 0 0 1.2em;
  overflow-x: auto;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
pre code { background: none; padding: 0; font-size: 1em; }

kbd {
  display: inline-block;
  min-width: 1.7em;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 7px;
  padding: 0.05em 0.42em;
  font-size: 0.84em;
  line-height: 1.5;
  white-space: nowrap;
}

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--btn-bg); color: var(--btn-text);
  padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

.muted { color: var(--text-2); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex; align-items: center; gap: 20px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 750; font-size: 1.18rem; letter-spacing: -0.02em;
  text-decoration: none; color: var(--text);
  margin-right: auto;
}
.brand svg { width: 30px; height: 30px; flex: none; border-radius: 8px; }
.brand .mark-bg { fill: #25282D; }
.brand .mark-tick { stroke: #FFFFFF; }
@media (prefers-color-scheme: dark) {
  .brand .mark-bg { fill: #EEF0F5; }
  .brand .mark-tick { stroke: #25282D; }
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  padding: 8px 12px; border-radius: 10px;
  text-decoration: none; color: var(--text-2); font-weight: 550; font-size: 0.97rem;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav a:not(.btn):hover { color: var(--text); background: var(--line); }
.nav a[aria-current="page"] { color: var(--text); }
.nav .btn { margin-left: 10px; }

.nav-toggle {
  display: none;
  align-items: center; gap: 8px;
  background: transparent; color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 8px 12px; font: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }

@media (max-width: 940px) {
  .site-header .wrap { flex-wrap: wrap; gap: 8px 12px; padding-block: 12px; }
  .nav { order: 3; width: 100%; flex-wrap: wrap; gap: 2px; }
  .nav a:not(.btn) { padding: 8px 10px; }
  .nav .btn { margin-left: auto; }
  .js .nav-toggle { display: inline-flex; }
  .js .nav { display: none; flex-direction: column; align-items: stretch; padding: 4px 0 8px; }
  .js .nav.open { display: flex; }
  .js .nav a:not(.btn) { padding: 12px 10px; font-size: 1.02rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .js .nav .btn { margin: 14px 0 0; }
}

/* ---------- Buttons ---------- */

.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 11px 20px;
  border-radius: 13px; border: 1px solid transparent;
  font-family: var(--font-head); font-weight: 650; font-size: 0.98rem; letter-spacing: -0.005em; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
  background: var(--btn-bg); color: var(--btn-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 24px -12px rgba(37, 40, 45, 0.55);
}
.btn-primary::after {
  /* a slow glint that crosses the button on hover */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, var(--btn-sheen) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 1.1s cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
  mix-blend-mode: soft-light;
}
.btn-primary:hover { background: var(--btn-bg-hover); transform: translateY(-1px); }
.btn-primary:hover::after { transform: translateX(120%); }

.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--card); border-color: var(--text-2); }

.btn-sm { min-height: 40px; padding: 8px 15px; font-size: 0.93rem; border-radius: 11px; }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 1.05rem; border-radius: 15px; }

/* ---------- Cards and frames ---------- */

.card {
  background: linear-gradient(var(--card), var(--card)) padding-box, var(--edge) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.frame {
  margin: 0;
  background: linear-gradient(var(--card), var(--card)) padding-box, var(--edge) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 6px;
}
.frame img, .frame picture { display: block; width: 100%; border-radius: calc(var(--radius) - 6px); }
.frame figcaption { padding: 12px 14px 10px; color: var(--text-2); font-size: 0.93rem; line-height: 1.5; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(56px, 9vw, 112px); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-2); font-size: 1.14rem; margin-top: 16px; }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 650; font-size: 0.95rem;
  color: var(--emerald-text);
  margin-bottom: 14px;
}
.kicker::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--emerald);
  box-shadow: 0 0 0 4px var(--emerald-soft); margin-left: 4px;
}

/* ---------- Hero ---------- */

.hero { position: relative; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(40px, 6vw, 80px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -10% -20% auto -20%; height: 900px;
  background: var(--glow); pointer-events: none; z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }

.hero-copy { max-width: 860px; margin-inline: auto; text-align: center; }
.hero-copy .lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--text-2); max-width: 700px; margin: 22px auto 0; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }

.hero-facts {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
  list-style: none; padding: 0; margin: 26px 0 0;
  color: var(--text-2); font-size: 0.96rem;
}
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts svg, .ticks svg { width: 18px; height: 18px; flex: none; color: var(--emerald); }

.hero-shot { margin-top: clamp(40px, 6vw, 72px); }
.hero-shot .frame { border-radius: 22px; padding: 8px; }
.hero-shot .frame img { border-radius: 15px; }

@media (max-width: 640px) {
  .hero-facts { flex-direction: column; align-items: center; gap: 8px; }
  .hero-actions .btn { width: 100%; max-width: 360px; }
  .hero-shot .frame { max-width: 400px; margin-inline: auto; }
  .hide-sm { display: none; }
  /* On a phone a full desktop screenshot is a postage stamp: show the part that matters, larger. */
  .shot-editor img { aspect-ratio: 1 / 1; object-fit: cover; object-position: 69% 0; }
  .shot-wide img { aspect-ratio: 1.58 / 1; object-fit: cover; object-position: 60% 0; }
  .shot-templates img { aspect-ratio: 1.3 / 1; }
}

.hero-progress {
  max-width: 420px; margin: 26px auto 0;
  display: flex; align-items: center; gap: 12px;
  color: var(--text-2); font-size: 0.92rem;
}
.meter { flex: 1; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.meter > span {
  display: block; height: 100%; width: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--emerald), #5AD3A6);
  transform-origin: left center;
}

/* ---------- Pitch ---------- */

.pitch { text-align: center; }
.pitch blockquote, .pitch .statement {
  margin: 0 auto; max-width: 900px;
  font-family: var(--font-head); font-weight: 650; letter-spacing: -0.02em; line-height: 1.25;
  font-size: clamp(1.45rem, 3.1vw, 2.3rem);
  text-wrap: balance;
}
.pitch .statement em { font-style: normal; color: var(--emerald-text); }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(32px, 5vw, 56px); text-align: left; }
.trio .card { padding: 24px; }
.trio h3 { font-size: 1.12rem; margin-bottom: 8px; }
.trio p { color: var(--text-2); font-size: 0.99rem; }
.trio .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--emerald-soft); color: var(--emerald-text); display: grid; place-items: center; margin-bottom: 16px; }
.trio .ico svg { width: 21px; height: 21px; }

@media (max-width: 820px) { .trio { grid-template-columns: 1fr; } }

/* ---------- Benefit rows ---------- */

.benefit {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
}
.benefit + .benefit { margin-top: clamp(64px, 9vw, 120px); }
.benefit.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.benefit.flip .benefit-copy { order: 2; }
.benefit.flip .benefit-media { order: 1; }

.benefit-copy h3 { font-size: clamp(1.5rem, 2.7vw, 2rem); letter-spacing: -0.024em; line-height: 1.15; }
.benefit-copy > p { color: var(--text-2); margin-top: 14px; font-size: 1.08rem; }

.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; }
.ticks svg { margin-top: 0.3em; }

.benefit-media { min-width: 0; }

.close-up { max-width: 380px; margin-inline: auto; }

.pair { position: relative; padding: 0 0 12% 0; }
.pair .frame:first-child { width: 82%; }
.pair .frame:last-child { position: absolute; right: 0; bottom: 0; width: 82%; }

.jql-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.jql-list code { display: block; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); font-size: 0.86rem; }

@media (max-width: 900px) {
  .benefit, .benefit.flip { grid-template-columns: 1fr; }
  .benefit.flip .benefit-copy { order: 1; }
  .benefit.flip .benefit-media { order: 2; }
}

/* Workflow gate illustration: our own typographic card, not a product screen */
.gate { padding: clamp(20px, 3vw, 30px); }
.gate-rule {
  display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start;
  padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg);
}
.gate-rule + .gate-rule { margin-top: 10px; }
.gate-rule .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; color: var(--text); }
.gate-rule .ico svg { width: 20px; height: 20px; }
.gate-rule strong { display: block; font-family: var(--font-head); font-weight: 650; line-height: 1.3; }
.gate-rule span { color: var(--text-2); font-size: 0.95rem; }
.gate-flow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; font-size: 0.93rem; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 8px; font-weight: 650; font-size: 0.86rem; line-height: 1.3; background: var(--bg); border: 1px solid var(--line); }
.pill-done { background: var(--emerald-soft); color: var(--emerald-text); border-color: transparent; }
.pill-required { background: var(--amber-soft); color: var(--amber-text); border-color: transparent; }
.gate-flow svg { width: 20px; height: 20px; color: var(--text-2); }
.gate-msg {
  margin-top: 14px; padding: 14px 16px; border-radius: 12px;
  background: var(--amber-soft); color: var(--text);
  display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: 0.97rem; line-height: 1.5;
}
.gate-msg svg { width: 20px; height: 20px; color: var(--amber-text); margin-top: 2px; }
.gate-note { margin-top: 12px; color: var(--text-2); font-size: 0.88rem; }

/* ---------- Steps ---------- */

.rail { position: relative; height: 6px; border-radius: 99px; background: var(--line); margin: 0 0 30px; overflow: hidden; }
.rail > span { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--emerald), #5AD3A6); transform-origin: left center; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.steps li { counter-increment: step; padding: 24px; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--emerald-soft); color: var(--emerald-text);
  font-family: var(--font-head); font-weight: 750; margin-bottom: 16px;
}
.steps h3 { font-size: 1.12rem; margin-bottom: 8px; }
.steps p { color: var(--text-2); font-size: 0.98rem; }

@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Trust ---------- */

.trust { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.trust-copy p { color: var(--text-2); font-size: 1.1rem; margin-top: 16px; }
.trust-copy .links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.facts .card { padding: 22px; }
.facts h3 { font-size: 1.05rem; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.facts h3 svg { width: 20px; height: 20px; color: var(--emerald); flex: none; }
.facts p { color: var(--text-2); font-size: 0.97rem; }
.facts .wide { grid-column: 1 / -1; }

@media (max-width: 900px) { .trust { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Crown section ---------- */

.crown-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.crown-head h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.crown-head svg { width: 20px; height: 20px; color: var(--gold); flex: none; }
.crown-lead { color: var(--text-2); font-size: 1.14rem; max-width: 640px; margin-bottom: clamp(28px, 4vw, 44px); }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.three .card { padding: 26px; }
.three h3 { font-size: 1.15rem; margin-bottom: 8px; }
.three p { color: var(--text-2); font-size: 0.99rem; }
.crown-shot { margin-top: 28px; }
.crown-more { margin-top: 22px; color: var(--text-2); }
@media (max-width: 820px) { .three { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { padding: 0; overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px;
  font-family: var(--font-head); font-weight: 650; font-size: 1.06rem; line-height: 1.35; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2);
  transform: rotate(45deg) translateY(-3px); transition: transform 0.3s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq summary:focus-visible { outline-offset: -4px; border-radius: var(--radius); }
.faq .answer { padding: 0 22px 20px; color: var(--text-2); }

/* ---------- CTA band ---------- */

.cta {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(40px, 7vw, 80px) clamp(22px, 5vw, 64px);
  border-radius: 28px;
}
.cta::before { content: ""; position: absolute; inset: 0; background: var(--glow); pointer-events: none; }
.cta > * { position: relative; }
.cta p { color: var(--text-2); font-size: 1.12rem; max-width: 560px; margin: 16px auto 0; }
.cta .hero-actions { margin-top: 28px; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding-block: 44px 36px; margin-top: clamp(40px, 6vw, 80px); color: var(--text-2); font-size: 0.95rem; }
.foot-top { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; padding: 0; margin: 0; }
.foot-links a { text-decoration: none; color: var(--text-2); }
.foot-links a:hover { color: var(--text); text-decoration: underline; }
.small-print { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.86rem; line-height: 1.6; display: grid; gap: 4px; }

/* ---------- Text pages (legal, support, security) ---------- */

.page-head { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(20px, 3vw, 32px); }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.page-head .lead { color: var(--text-2); font-size: 1.16rem; max-width: 720px; margin-top: 16px; }
.page-head .meta { color: var(--text-2); font-size: 0.95rem; margin-top: 14px; }

.prose { max-width: 780px; }
.prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 2.2em 0 0.6em; }
.prose h3 { font-size: 1.14rem; margin: 1.7em 0 0.5em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--text-2); }
.prose a { color: var(--emerald-text); text-decoration-color: currentColor; }
.prose .frame { margin: 1.4em 0; box-shadow: var(--shadow); }

.panel { padding: clamp(20px, 3vw, 28px); margin: 0 0 1.4em; }
.panel h2, .panel h3 { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }

.note {
  border-left: 3px solid var(--emerald); background: var(--emerald-soft);
  border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 0 0 1.2em; font-size: 0.99rem;
}
.note.warn { border-left-color: var(--amber-text); background: var(--amber-soft); }

.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; line-height: 1.5; }
.table-wrap.wide table { min-width: 640px; }
.table-wrap:focus-visible { outline-offset: 2px; border-radius: var(--radius-sm); }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font-family: var(--font-head); font-weight: 650; background: var(--bg-soft); white-space: nowrap; }
th:first-child, td:first-child { min-width: 7.5em; }
td code { white-space: nowrap; overflow-wrap: normal; }
td.wrap-code code { white-space: normal; overflow-wrap: anywhere; }

.contact-card { display: grid; gap: 6px; padding: clamp(22px, 3vw, 30px); margin-bottom: 1.6em; }
.contact-card .big { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.15rem, 2.4vw, 1.5rem); letter-spacing: -0.015em; overflow-wrap: anywhere; }

.split { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 1.6em; }
.split .card { padding: 22px; }
.split h3 { margin: 0 0 6px; }
.split p { color: var(--text-2); font-size: 0.98rem; }
@media (max-width: 640px) { .split { grid-template-columns: 1fr; } }

/* Architecture diagram */
.diagram { padding: clamp(14px, 2.5vw, 26px); margin: 0 0 1.2em; }
.diagram svg { display: block; width: 100%; height: auto; }
.diagram .narrow { display: none; }
@media (max-width: 680px) {
  .diagram .wide { display: none; }
  .diagram .narrow { display: block; max-width: 360px; margin-inline: auto; }
}
.dg-box { fill: var(--card); stroke: var(--line-strong); stroke-width: 1.2; }
.dg-zone { fill: var(--emerald-soft); stroke: var(--emerald); stroke-width: 1.4; stroke-dasharray: 6 6; }
.dg-none { fill: none; stroke: var(--line-strong); stroke-width: 1.2; stroke-dasharray: 4 5; }
.dg-title { font-family: var(--font-head); font-weight: 700; font-size: 16px; fill: var(--text); }
.dg-sub { font-family: var(--font-body); font-size: 13.5px; fill: var(--text-2); }
.dg-code { font-family: var(--font-mono); font-size: 12.5px; fill: var(--text); }
.dg-zone-label { font-family: var(--font-head); font-weight: 700; font-size: 14px; fill: var(--emerald-text); }
.dg-line { fill: none; stroke: var(--text); stroke-width: 1.6; }
.dg-line.dashed { stroke-dasharray: 5 5; }
.dg-head { fill: var(--text); }
.dg-num { fill: var(--text); }
.dg-num-t { font-family: var(--font-head); font-weight: 700; font-size: 12px; fill: var(--bg); text-anchor: middle; }
.legend { counter-reset: lg; list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; }
.legend li { counter-increment: lg; display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.legend li::before {
  content: counter(lg); width: 24px; height: 24px; border-radius: 50%;
  background: var(--text); color: var(--bg);
  font-family: var(--font-head); font-weight: 700; font-size: 0.8rem;
  display: grid; place-items: center; margin-top: 2px;
}

/* ---------- Docs ---------- */

.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding-bottom: 40px; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; padding: 4px 4px 4px 0; }
.toc-title { font-family: var(--font-head); font-weight: 700; font-size: 0.98rem; margin: 0 0 10px; padding-left: 14px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line); }
.toc a {
  display: block; padding: 7px 14px; margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--text-2); text-decoration: none; font-size: 0.95rem; line-height: 1.4;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--text); border-left-color: var(--emerald); font-weight: 600; }

.toc-mobile { display: none; margin-bottom: 28px; }
.toc-mobile summary { cursor: pointer; padding: 14px 18px; font-family: var(--font-head); font-weight: 650; }
.toc-mobile ol { list-style: none; margin: 0; padding: 0 18px 14px; columns: 2; column-gap: 20px; }
.toc-mobile a { display: block; padding: 7px 0; color: var(--text-2); text-decoration: none; font-size: 0.96rem; break-inside: avoid; }

.docs-body { min-width: 0; max-width: 820px; }
.docs-body section { padding-bottom: 12px; }
.docs-body section + section { scroll-margin-top: -24px; }
.docs-body section + section { margin-top: 44px; padding-top: 44px; border-top: 1px solid var(--line); }
.docs-body section > h2 { margin: 0 0 0.6em; }
.docs-body ol > li { margin-bottom: 0.55em; }
.docs-body dl { margin: 0 0 1.2em; }
.docs-body dt { font-family: var(--font-head); font-weight: 650; margin-top: 1.1em; }
.docs-body dd { margin: 0.25em 0 0; color: var(--text-2); }
.crown-inline { width: 15px; height: 15px; color: var(--gold); vertical-align: -1px; margin-right: 4px; }

@media (max-width: 960px) {
  .docs { grid-template-columns: 1fr; }
  .toc { display: none; }
  .toc-mobile { display: block; }
}
@media (max-width: 480px) { .toc-mobile ol { columns: 1; } }

/* ---------- Motion ---------- */

/* The progress fills run once, when scrolled into view (site.js adds .is-in). Without JS they are simply full. */
.js [data-fill] > span { transform: scaleX(0); transition: transform 2.4s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s; }
.js [data-fill].is-in > span { transform: scaleX(var(--to, 1)); }
[data-fill] > span { transform: scaleX(var(--to, 1)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js [data-fill] > span { transform: scaleX(var(--to, 1)); }
  .btn-primary::after { display: none; }
  .btn-primary:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .toc, .toc-mobile, .hero-actions, .skip { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- The whole line: apps menu in the header, footer columns, home block, cross-link block ---------- */

/* Apps menu: every Stepwise app, grouped by platform, next to the brand on every page.
   A plain <details>, so it opens without scripts and from the keyboard. */
.site-header .brand { margin-right: 2px; }
.apps-menu { position: relative; margin-right: auto; }
.apps-menu > summary {
  list-style: none; cursor: pointer; -webkit-user-select: none; user-select: none;
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 3px 12px 3px 3px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px;
  font-family: var(--font-head); font-weight: 650; font-size: 0.88rem; line-height: 1.2; letter-spacing: -0.005em;
  color: var(--text-2); white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.apps-menu > summary::-webkit-details-marker { display: none; }
.apps-menu > summary:hover, .apps-menu[open] > summary { color: var(--text); border-color: var(--line-strong); }
.apps-menu > summary:focus-visible { outline-offset: 2px; border-radius: 12px; }
.apps-menu-k {
  display: inline-flex; align-items: center; align-self: stretch; padding: 0 11px; border-radius: 9px;
  background: var(--card); color: var(--text);
  box-shadow: 0 0 0 1px var(--line), 0 1px 3px rgba(37, 40, 45, 0.10);
}
.apps-menu-now { overflow: hidden; text-overflow: ellipsis; max-width: 30ch; }
.apps-menu-chev { width: 16px; height: 16px; flex: none; transition: transform 0.25s ease; }
.apps-menu[open] .apps-menu-chev { transform: rotate(180deg); }

.apps-panel {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 60;
  width: min(780px, calc(100vw - 210px));
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 4px 14px;
  padding: 12px;
  background: linear-gradient(var(--card), var(--card)) padding-box, var(--edge) border-box;
  border: 1px solid transparent; border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}
.apps-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; align-content: start; }
.apps-jira ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 6px; }
.apps-confluence { padding-left: 14px; border-left: 1px solid var(--line); }
.apps-h { margin: 4px 10px 6px; font-family: var(--font-head); font-weight: 700; font-size: 0.8rem; color: var(--text-2); }
.apps-panel a[data-app] {
  display: grid; gap: 2px; padding: 9px 10px; border-radius: 10px;
  text-decoration: none; color: var(--text);
  transition: background-color 0.2s ease;
}
.apps-panel a[data-app] b { font-family: var(--font-head); font-weight: 650; font-size: 0.95rem; line-height: 1.3; letter-spacing: -0.005em; }
.apps-panel a[data-app] > span { font-size: 0.84rem; line-height: 1.35; color: var(--text-2); }
.apps-panel a[data-app]:hover { background: var(--bg-soft); }
.apps-panel a[aria-current] { background: var(--emerald-soft); }
.apps-panel a[aria-current]:hover { background: var(--emerald-soft); }
.apps-panel a[aria-current] b::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%;
  background: var(--emerald); vertical-align: 2px;
}
.apps-panel a:focus-visible { outline-offset: -2px; border-radius: 10px; }
.apps-all {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 8px;
  margin-top: 6px; padding: 12px 10px 4px; border-top: 1px solid var(--line);
  font-family: var(--font-head); font-weight: 650; font-size: 0.92rem;
  color: var(--emerald-text); text-decoration: none;
}
.apps-all svg { width: 16px; height: 16px; flex: none; transition: transform 0.25s ease; }
.apps-all:hover svg { transform: translateX(3px); }
.nav .nav-apps { display: none; }

@media (min-width: 941px) and (max-width: 1140px) {
  /* Tight desktop widths: the button keeps "Apps" and the arrow. */
  .apps-menu-now { display: none; }
  .apps-menu > summary { gap: 6px; padding-right: 8px; }
}

@media (max-width: 940px) {
  /* On a phone the menu is a strip above the brand row. It scrolls away; the brand row stays stuck,
     and its Menu button carries a link to the whole line. */
  .site-header { top: -52px; }
  .site-header .wrap { row-gap: 10px; }
  .site-header .brand { margin-right: auto; }
  .apps-menu { order: -1; width: 100%; margin-right: 0; }
  .apps-menu > summary { display: flex; }
  .apps-menu-now { flex: 1; max-width: none; }
  .apps-panel {
    position: static; width: auto; margin-top: 8px; box-shadow: none;
    grid-template-columns: minmax(0, 1fr);
    max-height: 60vh; overflow-y: auto; overscroll-behavior: contain;
  }
  .apps-confluence { padding-left: 0; border-left: 0; }
  .apps-confluence ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 6px; }
  .nav .nav-apps { display: block; }
  @supports selector(:has(*)) {
    /* An open list is long: let the page scroll with it instead of a stuck header. */
    .site-header:has(.apps-menu[open]) { position: static; }
    .apps-panel { max-height: none; overflow: visible; }
  }
}
@media (max-width: 520px) {
  .apps-jira ul, .apps-confluence ul { grid-template-columns: minmax(0, 1fr); }
  .apps-panel a[data-app] { padding-block: 8px; }
}
@media (max-width: 400px) {
  /* The longest name ("Secret & PII Scanner for Confluence") still fits the strip at 360 px. */
  .apps-menu > summary { font-size: 0.8rem; gap: 8px; padding-right: 9px; }
  .apps-menu-k { padding: 0 9px; }
}

/* Footer: the apps by platform (product page and its docs in one row) and the shared pages. */
.foot-top { align-items: flex-start; }
.foot-cols {
  flex: 1 1 620px; max-width: 880px;
  display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.15fr) auto; gap: 28px clamp(24px, 4vw, 56px);
}
.foot-h { font-family: var(--font-head); font-weight: 650; font-size: 0.92rem; color: var(--text); margin: 0 0 8px; }
.foot-cols .foot-links { flex-direction: column; gap: 6px; }
.foot-cols .foot-apps { display: grid; gap: 6px 28px; }
.foot-jira .foot-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.foot-apps li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; }
.foot-links .foot-doc { font-size: 0.84rem; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.site-footer .brand { margin-right: 0; }
@media (max-width: 760px) {
  .foot-cols { grid-template-columns: minmax(0, 1fr); flex-basis: 100%; }
  .foot-jira .foot-apps { grid-template-columns: minmax(0, 1fr); }
  .foot-apps li { justify-content: space-between; padding-block: 3px; }
}

/* Home: the whole line as "pain, then benefit" cards. One glance per card. */
.lineup .section-head { max-width: 780px; margin-bottom: clamp(24px, 4vw, 40px); }
.lineup h2 { font-size: clamp(1.55rem, 3.2vw, 2.2rem); }
.apps-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.apps-grid li { margin: 0; }
.app-card {
  display: flex; flex-direction: column; gap: 10px; height: 100%;
  padding: 18px 18px 14px; text-decoration: none; color: var(--text);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.app-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.app-card:focus-visible { outline-offset: 3px; border-radius: var(--radius); }
.app-pain { display: flex; gap: 8px; color: var(--text-2); font-size: 0.93rem; line-height: 1.4; }
.app-pain svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--amber-text); }
.app-gain { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; line-height: 1.3; letter-spacing: -0.012em; }
.app-name {
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 650; font-size: 0.9rem; line-height: 1.3; color: var(--emerald-text);
}
.app-name > svg { width: 16px; height: 16px; flex: none; margin-left: auto; transition: transform 0.25s ease; }
.app-card:hover .app-name > svg { transform: translateX(3px); }
.app-chip {
  flex: none; padding: 2px 7px; border-radius: 6px;
  background: var(--bg-soft); border: 1px solid var(--line);
  font-size: 0.76rem; font-weight: 700; color: var(--text-2);
}
.app-here { margin-left: 4px; font-weight: 550; color: var(--text-2); white-space: nowrap; }
.app-card-help { background: transparent; box-shadow: none; border: 1px dashed var(--line-strong); }
.app-card-help:hover { box-shadow: none; border-color: var(--text-2); }
@media (max-width: 1080px) { .apps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .apps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .apps-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .app-card { padding: 16px 16px 12px; gap: 8px; }
}

/* "Also for Confluence" / "Also for Jira": one quiet card near the end of a product page. */
.also {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(24px, 4vw, 44px); border-radius: 24px;
}
.also h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.also p { color: var(--text-2); margin-top: 12px; }
.also .kicker { margin-top: 0; }
.also .btn { margin-top: 22px; }
.also .frame { box-shadow: var(--shadow); }
@media (max-width: 820px) { .also { grid-template-columns: 1fr; } }

/* Illustration rows that carry a tag (Confluence product page). */
.gate-rule .pill { margin-left: 6px; font-size: 0.8rem; color: var(--text); vertical-align: 1px; }
.gate-rule .pill-required { color: var(--amber-text); }
.gate-rule .pill-done { color: var(--emerald-text); }

/* Phone crop for the Confluence Insights shot: its content column is wider than the Jira one. */
@media (max-width: 640px) {
  .shot-insights-cf img { aspect-ratio: 1.76 / 1; }
}

/* Support page: the three ways into the docs of one product, inside its card. */
.split .help-links { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; font-size: 0.98rem; }
.split .help-links li { margin: 0; }

/* SVG icon sprite: kept out of the layout (no inline style: the server CSP forbids it) */
.sprite { position: absolute; }

/* Page-specific layout of products 7-10 (moved out of inline <style> blocks: the server CSP is style-src 'self') */
/* Poker, Time in Status: three steps instead of four. */
.steps.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .steps.cols-3 { grid-template-columns: 1fr; } }
/* Test Management: a picture about as tall as it is wide keeps a sane height next to its text. */
.frame.tall { max-width: 470px; margin-inline: auto; }
/* Test Management: four Premium cards, two by two. */
.three.two-by-two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .three.two-by-two { grid-template-columns: 1fr; } }
/* Exporter: the picture under the Premium cards (a template and the file filled from it). */
.crown-proof { max-width: 820px; margin: 36px auto 0; }
