/* Jhana Labs site styles. One file for company pages and product docs. No JavaScript, no third-party assets. */

@font-face {
  font-family: "Inter";
  src: url("/assets/v/inter-latin.ab12bef319.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --surface: #f6f6fb;
  --card: #ffffff;
  --text: #17142e;
  --muted: #5d5b72;
  --line: #e4e3ee;
  --brand: #4b3bd6;
  --brand-ink: #ffffff;
  --brand-soft: #eeecff;
  --link: #4b3bd6;
  --ok: #0f8a5f;
  --ok-bg: #ddf7ec;
  --mark: #fff1b8;
  --tile: #17142e;
  --tile-ink: #ffffff;
  --tile-dot: #8f83ff;
  --glow: rgba(75, 59, 214, 0.10);
  --shadow: 0 1px 2px rgba(23, 20, 46, 0.06), 0 8px 28px rgba(23, 20, 46, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14131c;
    --surface: #1b1a26;
    --card: #211f2e;
    --text: #ecebf5;
    --muted: #a9a7bd;
    --line: #322f45;
    --brand: #8f83ff;
    --brand-ink: #14131c;
    --brand-soft: #262245;
    --link: #a9a0ff;
    --ok: #5ee6b0;
    --ok-bg: #173a2e;
    --mark: #5a4a00;
    --tile: #ecebf5;
    --tile-ink: #17142e;
    --tile-dot: #4b3bd6;
    --glow: rgba(143, 131, 255, 0.12);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 28px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: light dark; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

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

.skip { position: absolute; left: -9999px; top: 0; background: var(--brand); color: var(--brand-ink); padding: 10px 16px; z-index: 20; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }

/* Site header */
.site-head { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 68px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.logo svg { width: 32px; height: 32px; display: block; flex: none; }
.mark-tile { fill: var(--tile); }
.mark-j { fill: none; stroke: var(--tile-ink); stroke-width: 15; stroke-linecap: round; stroke-linejoin: round; }
.mark-dot { fill: var(--tile-dot); }
.site-nav { display: flex; align-items: center; gap: 6px 26px; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a.nav-cta { color: var(--text); border: 1px solid var(--line); border-radius: 9px; padding: 7px 14px; }
.site-nav a.nav-cta:hover { border-color: var(--brand); }

/* Product sub navigation (docs pages) */
.subnav { border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 5; }
.subnav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 4px 24px; min-height: 52px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.sub-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; color: var(--text); text-decoration: none; }
.sub-brand img { width: 24px; height: 24px; display: block; border-radius: 6px; }
.sub-brand span { font-weight: 500; color: var(--muted); }
.subnav nav { display: flex; gap: 4px 20px; flex-wrap: wrap; }
.subnav nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; padding: 4px 0; }
.subnav nav a:hover, .subnav nav a[aria-current="page"] { color: var(--text); }
.subnav nav a[aria-current="page"] { font-weight: 600; }

/* Buttons */
.cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-block; background: var(--brand); color: var(--brand-ink); text-decoration: none; font-weight: 600; padding: 12px 20px; border-radius: 10px; line-height: 1.4; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--link); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--brand); filter: none; }
.btn.soon { background: var(--surface); color: var(--muted); border: 1px solid var(--line); cursor: default; }
.btn.soon:hover { filter: none; }
.fine { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* Hero (company home and product page) */
.hero { padding: 76px 0 60px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 52px; align-items: center; }
.hero h1 { font-size: 48px; line-height: 1.08; letter-spacing: -0.03em; font-weight: 750; margin: 0 0 20px; text-wrap: balance; }
.hero p.lead { font-size: 20px; line-height: 1.55; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.home-hero { background: radial-gradient(900px 420px at 85% -10%, var(--glow), transparent 70%), radial-gradient(700px 380px at -5% 10%, var(--glow), transparent 70%); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; letter-spacing: 0.07em; text-transform: uppercase; color: var(--link); margin: 0 0 18px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tile-dot); }

/* Product illustration (product page) */
figure { margin: 0; }
.mock { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 18px; font-size: 14px; line-height: 1.45; }
.mock .search { border: 2px solid var(--brand); border-radius: 8px; padding: 9px 12px; margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }
.mock .search span.caret { width: 1px; height: 16px; background: var(--text); display: inline-block; }
.mock .row { display: grid; grid-template-columns: 52px 62px 1fr; gap: 10px; padding: 12px 4px; border-top: 1px solid var(--line); align-items: start; }
.mock .stat { text-align: center; color: var(--muted); font-size: 12px; }
.mock .stat b { display: block; font-size: 17px; color: var(--text); }
.mock .stat.solved b, .mock .stat.solved { color: var(--ok); }
.mock .title { font-weight: 600; color: var(--link); margin-bottom: 3px; }
.mock .excerpt { color: var(--muted); }
.mock mark { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 2px; }
.mock .meta { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--muted); }
.tag { border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; }
.pill { background: var(--ok-bg); color: var(--ok); border-radius: 4px; padding: 1px 6px; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em; }
.mock-note { font-size: 13px; color: var(--muted); text-align: center; margin: 10px 0 0; }

/* Home illustration: a solved question */
.shot { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; font-size: 14.5px; line-height: 1.5; }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 13px; }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: block; }
.shot-bar b { margin-left: 8px; font-weight: 600; }
.shot-body { padding: 18px 20px 8px; }
.shot-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.shot-title { font-size: 18px; font-weight: 650; letter-spacing: -0.01em; margin: 8px 0 14px; line-height: 1.3; }
.answer { display: grid; grid-template-columns: 46px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.answer p { margin: 0; color: var(--muted); }
.answer .votes { text-align: center; color: var(--muted); font-size: 12px; line-height: 1.3; }
.answer .votes b { display: block; font-size: 18px; color: var(--text); }
.answer.accepted { border: 1.5px solid var(--ok); border-radius: 12px; padding: 14px 14px 14px 0; background: var(--ok-bg); margin-bottom: 4px; }
.answer.accepted p { color: var(--text); }
.answer .accepted-label { display: flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.answer .accepted-label svg { width: 15px; height: 15px; flex: none; }
.lozenge { background: var(--ok-bg); color: var(--ok); border-radius: 5px; padding: 2px 8px; font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; }

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: 32px; line-height: 1.18; letter-spacing: -0.022em; font-weight: 720; margin: 0 0 10px; text-wrap: balance; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; margin: 34px 0 8px; }
p.sub { color: var(--muted); margin: 0 0 30px; max-width: 40em; font-size: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid3 + .grid3 { margin-top: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); color: var(--link); display: grid; place-items: center; margin-bottom: 16px; }
.card .icon svg { width: 22px; height: 22px; display: block; }

/* Product card on the home page */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.product-main { padding: 34px 36px; }
.product-side { padding: 34px 36px; background: var(--surface); border-left: 1px solid var(--line); }
.product-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.product-head img { width: 56px; height: 56px; border-radius: 13px; display: block; }
.product-head h3 { margin: 0; font-size: 26px; letter-spacing: -0.02em; line-height: 1.15; }
.product-head p { margin: 2px 0 0; color: var(--muted); font-size: 15.5px; }
.product-main > p { color: var(--muted); margin: 0 0 22px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--link); background: var(--brand-soft); border-radius: 999px; padding: 5px 13px; margin-bottom: 20px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: 0 0 0 30px; margin: 0 0 16px; color: var(--muted); font-size: 16px; }
.checks li:last-child { margin-bottom: 0; }
.checks li strong { color: var(--text); display: block; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 19px; height: 19px; border-radius: 50%; background: var(--ok-bg); }
.checks li::after { content: ""; position: absolute; left: 6px; top: 8.5px; width: 7px; height: 4px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.next { margin: 26px 0 0; color: var(--muted); font-size: 16px; }

/* Facts list (security section) */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; margin: 0; }
.facts div { padding: 18px 0; border-top: 1px solid var(--line); }
.facts dt { font-weight: 650; margin: 0 0 4px; }
.facts dd { margin: 0; color: var(--muted); font-size: 16px; }

/* Contact band and contact cards */
.band { text-align: center; }
.band h2 { margin-bottom: 12px; }
.band p.sub { margin: 0 auto 26px; }
.band .cta { justify-content: center; }
.contact-card h2 { font-size: 20px; margin: 0 0 6px; letter-spacing: -0.01em; }
.contact-card p { margin: 0 0 10px; color: var(--muted); font-size: 16px; }
.contact-card p:last-child { margin-bottom: 0; }
.contact-card a.mail { font-weight: 650; font-size: 18px; }

/* Docs (product page) */
.docs { display: grid; grid-template-columns: 210px 1fr; gap: 48px; align-items: start; }
.toc { position: sticky; top: 76px; font-size: 15px; }
.toc p { margin: 0 0 8px; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.toc a { display: block; padding: 5px 0; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); }
.doc h3:first-child { margin-top: 0; }
.doc h3 { scroll-margin-top: 72px; padding-top: 6px; }
section[id], h2[id] { scroll-margin-top: 60px; }
.doc ol, .doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.note { border-left: 4px solid var(--brand); background: var(--surface); padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 16px 0; font-size: 16px; }
section.alt .note { background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 16px; margin: 14px 0; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.table-scroll { overflow-x: auto; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }
code { font: 0.92em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }

/* Text pages: legal, support, about, contact */
.page { padding: 56px 0 80px; }
.page h1 { font-size: 40px; line-height: 1.12; letter-spacing: -0.028em; font-weight: 740; margin: 0 0 8px; text-wrap: balance; }
.page .updated { color: var(--muted); font-size: 15px; margin: 0 0 28px; }
.page .intro { font-size: 20px; line-height: 1.55; color: var(--muted); margin: 0 0 30px; }
.page h2 { font-size: 22px; letter-spacing: -0.012em; margin: 36px 0 8px; scroll-margin-top: 72px; }
.page li { margin: 6px 0; }
.page .grid2 { margin: 28px 0 8px; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin: 0 0 8px; }
.summary p { margin: 0 0 8px; font-weight: 700; }
.summary ul { margin: 0; padding-left: 20px; }

/* Product overview page (/atlassian/) */
.page .product { margin: 8px 0 12px; }
.page .product + h2 { margin-top: 56px; }
.page .checks li { margin: 0 0 16px; }
.page .checks li:last-child { margin-bottom: 0; }
.page .facts { margin-top: 18px; }
.page .eyebrow { margin-bottom: 12px; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 48px 0 40px; color: var(--muted); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1.1fr 1.1fr 1.1fr; gap: 32px; }
.foot-grid .logo { font-size: 17px; margin-bottom: 12px; }
.foot-grid .logo svg { width: 28px; height: 28px; }
.foot-grid p { margin: 0; max-width: 24em; }
.foot-grid h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text); margin: 4px 0 12px; font-weight: 650; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin: 0 0 8px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--text); text-decoration: underline; }
.legal-note { margin: 36px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13.5px; }

@media (max-width: 860px) {
  body { font-size: 16px; }
  .hero { padding: 44px 0 36px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 34px; }
  .hero h1 { font-size: 35px; }
  .hero p.lead { font-size: 18px; }
  h2 { font-size: 27px; }
  p.sub { font-size: 17px; }
  .grid3, .grid2, .facts { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; }
  .product-main, .product-side { padding: 26px 22px; }
  .product-side { border-left: 0; border-top: 1px solid var(--line); }
  .docs { grid-template-columns: 1fr; gap: 20px; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .toc p { width: 100%; }
  .site-head .wrap { padding-top: 12px; padding-bottom: 10px; }
  .site-nav { gap: 4px 20px; }
  .subnav { position: static; }
  section { padding: 44px 0; }
  .page { padding: 40px 0 56px; }
  .page h1 { font-size: 32px; }
  .mock .row { grid-template-columns: 44px 54px 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
  .wrap { padding: 0 18px; }
  .hero h1 { font-size: 31px; }
  .cta .btn { width: 100%; text-align: center; }
}

@media print {
  .site-head, .subnav, .site-foot, .skip { display: none; }
  body { font-size: 12pt; }
}
