@font-face {
  font-family: 'Gadey';
  src: url('../fonts/Gadey-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #FAF7F0;
  --surface: #FFFFFF;
  --border: #E8E1D3;
  --ink: #1B241C;
  --ink-soft: #566056;
  --ink-faint: #8C9488;
  --primary: #24332A;
  --primary-2: #3C5443;
  --sage: #E3EFE4;
  --sage-2: #CFE3D2;
  --accent: #E8B04B;
  --danger: #B3453C;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 18px 50px -24px rgba(36, 51, 42, 0.35);
  --display: 'Gadey', 'Fraunces', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
main.narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }
main { padding-bottom: 72px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 247, 240, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(232, 225, 211, 0.7);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 30px; display: block; }
.brand-tag {
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--primary-2); background: var(--sage); padding: 4px 10px; border-radius: 999px;
}
.nav { display: flex; align-items: center; gap: 4px; font-size: 14.5px; }
.nav a, .nav button.link {
  all: unset; cursor: pointer; text-decoration: none; color: var(--ink-soft); font: inherit;
  padding: 8px 14px; border-radius: 999px; transition: background .15s, color .15s;
}
.nav a:hover, .nav button.link:hover { background: rgba(36, 51, 42, 0.07); color: var(--ink); }
.nav a.active { background: var(--sage); color: var(--primary); font-weight: 600; }
.nav a.cta { background: var(--primary); color: #fff; margin-left: 8px; font-weight: 600; }
.nav a.cta:hover { background: var(--primary-2); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  margin-top: 24px; border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 4% 0%, rgba(232, 176, 75, 0.30), rgba(232, 176, 75, 0) 34%),
    radial-gradient(circle at 100% 100%, rgba(154, 199, 160, 0.28), rgba(154, 199, 160, 0) 34%),
    linear-gradient(180deg, rgba(36, 51, 42, 0.86), rgba(27, 40, 32, 0.95)),
    url('../img/hero.jpg') center / cover no-repeat;
  padding: 84px 32px 96px; text-align: center;
}
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: #EFD9A8; background: rgba(255, 255, 255, 0.1); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 6vw, 60px); line-height: 1.05; margin: 0 0 14px; letter-spacing: -0.01em; }
.hero p { margin: 0 auto 32px; max-width: 480px; color: rgba(255, 255, 255, 0.78); font-size: 17px; }
.search { position: relative; max-width: 520px; margin: 0 auto; z-index: 10; }
.search svg { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; stroke: var(--ink-faint); fill: none; stroke-width: 2; stroke-linecap: round; }
.search input[type=text] {
  width: 100%; border: none; border-radius: 999px; padding: 18px 24px 18px 52px; font-size: 16px; font-family: inherit;
  background: #fff; color: var(--ink); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.5);
}
.search input[type=text]:focus { outline: 3px solid rgba(232, 176, 75, 0.7); }

/* live search dropdown + compact variant */
.search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 10px); text-align: left; overflow: hidden; z-index: 30;
  background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 30px 60px -20px rgba(20, 30, 23, 0.45);
}
.search-results[hidden] { display: none; }
.sr-item { display: block; padding: 14px 18px; text-decoration: none; border-bottom: 1px solid var(--border); }
.sr-item:hover, .sr-item.active { background: #F6F3EA; }
.sr-title { font-weight: 600; font-size: 15px; }
.sr-cat { margin-left: 8px; font-size: 11.5px; font-weight: 600; color: var(--primary-2); background: var(--sage); padding: 2px 9px; border-radius: 999px; vertical-align: 1px; }
.sr-snippet { color: var(--ink-soft); font-size: 13.5px; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr-all { display: block; padding: 12px 18px; font-size: 13.5px; font-weight: 600; color: var(--primary); text-decoration: none; background: #FDFBF6; }
.sr-all:hover { background: #F6F3EA; }
.sr-empty { padding: 20px 18px; color: var(--ink-soft); font-size: 14px; }
mark { background: #FBE7B2; color: inherit; border-radius: 3px; padding: 0 1px; }
.search.compact { max-width: none; }
.search.compact svg { left: 18px; }
.search.compact input[type=text] { padding: 14px 20px 14px 46px; box-shadow: none; border: 1.5px solid var(--border); font-size: 15px; }
.search.compact input[type=text]:focus { outline: none; border-color: var(--primary-2); box-shadow: 0 0 0 4px rgba(60, 84, 67, 0.12); }

/* ---------- Article pages ---------- */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 36px 0 18px; font-size: 13.5px; color: var(--ink-faint); }
.crumbs a { text-decoration: none; color: var(--ink-soft); }
.crumbs a:hover { color: var(--ink); }
.crumbs svg { width: 14px; height: 14px; stroke: var(--ink-faint); fill: none; }
.article-meta { display: flex; align-items: center; gap: 12px; color: var(--ink-faint); font-size: 13.5px; margin: 0 0 28px; }
.help-cta { display: flex; align-items: center; gap: 16px; margin-top: 40px; padding: 20px 22px; }
.help-cta .tile-icon { margin: 0; flex-shrink: 0; }
.help-cta div:not(.tile-icon) { flex: 1; }
.help-cta strong { display: block; }
.help-cta span { color: var(--ink-soft); font-size: 14px; }
.read-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--primary); text-decoration: none; }
.read-more:hover { text-decoration: underline; }
.read-more svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }

/* rendered Markdown */
.prose { color: var(--ink-soft); font-size: 16.5px; line-height: 1.7; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); line-height: 1.25; }
.prose h2 { font-family: var(--display); font-weight: 400; font-size: 26px; margin: 36px 0 12px; }
.prose h3 { font-size: 19px; margin: 28px 0 8px; }
.prose h4 { font-size: 16px; margin: 22px 0 6px; }
.prose p, .prose ul, .prose ol, .prose pre, .prose blockquote { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin: 4px 0; }
.prose li > ul, .prose li > ol { margin: 4px 0 0; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.prose code { background: #F1EEE6; padding: 2px 6px; border-radius: 6px; font-size: .88em; color: var(--ink); }
.prose pre { background: var(--primary); color: #E9F0EA; padding: 16px 18px; border-radius: 14px; overflow-x: auto; }
.prose pre code { background: none; color: inherit; padding: 0; }
.prose blockquote { background: var(--sage); border-left: 4px solid var(--primary-2); border-radius: 0 14px 14px 0; padding: 12px 18px; color: var(--primary); }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose img { max-width: 100%; border-radius: 14px; margin: 8px 0; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 28px 0; }
details.article .answer .prose { font-size: 15px; line-height: 1.65; }
details.article .answer { white-space: normal; }

/* ---------- Quick tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: -44px 24px 0; position: relative; z-index: 2; }
.tile {
  display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: transform .2s, border-color .2s;
}
.tile:hover { transform: translateY(-3px); border-color: var(--sage-2); }
.tile-icon { width: 44px; height: 44px; border-radius: 14px; background: var(--sage); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.tile-icon svg { width: 22px; height: 22px; stroke: var(--primary); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tile strong { display: block; font-size: 16px; margin-bottom: 2px; }
.tile span { color: var(--ink-soft); font-size: 14px; }

/* ---------- Sections ---------- */
.section { margin-top: 64px; }
.section-title { font-family: var(--display); font-weight: 400; font-size: 32px; margin: 0 0 6px; letter-spacing: -0.01em; }
.section-sub { color: var(--ink-soft); margin: 0 0 28px; }
h1.page-title { font-family: var(--display); font-weight: 400; font-size: 40px; letter-spacing: -0.01em; margin: 48px 0 8px; line-height: 1.1; }
p.lede { color: var(--ink-soft); font-size: 17px; margin: 0 0 32px; }
h2.group-title { font-family: var(--display); font-weight: 400; font-size: 22px; margin: 32px 0 14px; color: var(--primary); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; align-items: start; }
.article-category { margin-bottom: 8px; }
.article-category h3 { font-size: 15px; font-weight: 700; color: var(--primary-2); margin: 24px 0 12px; }
details.article { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; margin-bottom: 10px; overflow: hidden; transition: border-color .2s; }
details.article[open] { border-color: var(--sage-2); box-shadow: 0 10px 30px -22px rgba(36, 51, 42, 0.5); }
details.article summary { list-style: none; cursor: pointer; padding: 17px 52px 17px 20px; font-weight: 600; position: relative; }
details.article summary::-webkit-details-marker { display: none; }
details.article summary::after {
  content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; background: var(--sage); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 500; line-height: 1;
  transition: transform .2s, background .2s;
}
details.article[open] summary::after { content: '–'; background: var(--primary); color: #fff; }
details.article .answer { padding: 0 20px 18px; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.contact-side { background: var(--primary); color: #fff; padding: 40px 34px; position: relative; overflow: hidden; }
.contact-side::after { content: ''; position: absolute; width: 300px; height: 300px; right: -120px; bottom: -130px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 176, 75, 0.35), rgba(232, 176, 75, 0) 68%); }
.contact-side h2 { font-family: var(--display); font-weight: 400; font-size: 32px; margin: 0 0 12px; line-height: 1.1; }
.contact-side p { color: rgba(255, 255, 255, 0.78); margin: 0 0 22px; }
.contact-side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; position: relative; z-index: 1; }
.contact-side li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; color: rgba(255, 255, 255, 0.9); }
.contact-side li svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.contact-form { padding: 36px 34px; }

/* ---------- Forms ---------- */
form .row { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
input[type=text], input[type=email], input[type=password], textarea {
  border: 1.5px solid var(--border); border-radius: 14px; padding: 13px 15px; font-size: 15px; font-family: inherit;
  background: #FDFCF9; color: var(--ink); width: 100%; transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus { outline: none; border-color: var(--primary-2); box-shadow: 0 0 0 4px rgba(60, 84, 67, 0.12); background: #fff; }
textarea { resize: vertical; min-height: 130px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
button[type=submit], a.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--primary); color: #fff; border: none;
  border-radius: 999px; padding: 14px 26px; font-size: 15px; font-weight: 600; font-family: inherit; cursor: pointer; text-decoration: none;
  transition: background .15s, transform .15s;
}
button[type=submit]:hover, a.btn:hover { background: var(--primary-2); transform: translateY(-1px); }
button[type=submit].block { width: 100%; }
.error { color: var(--danger); font-size: 13px; margin-top: 2px; }
.alert { background: #FBECE9; color: var(--danger); border: 1px solid #F0CFC9; padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; }

/* ---------- Cards / lists ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.badge { display: inline-block; font-size: 12px; padding: 4px 11px; border-radius: 999px; background: var(--sage); color: var(--primary); font-weight: 600; }
.badge.closed { background: #EFEBE2; color: var(--ink-faint); }
.muted { color: var(--ink-faint); font-size: 13px; }
.ticket-list { padding: 0; overflow: hidden; }
.ticket-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--border); text-decoration: none; transition: background .15s; }
.ticket-row:last-child { border-bottom: none; }
.ticket-row:hover { background: #FDFBF6; }
.ticket-row strong { display: block; font-weight: 600; }
.back-link { display: inline-block; margin-top: 32px; color: var(--ink-soft); text-decoration: none; font-size: 14px; }
.back-link:hover { color: var(--ink); }
.msg { max-width: 88%; margin-bottom: 14px; padding: 14px 18px; border-radius: 20px 20px 20px 6px; background: var(--surface); border: 1px solid var(--border); }
.msg.staff { margin-left: auto; background: var(--sage); border-color: var(--sage-2); border-radius: 20px 20px 6px 20px; }
.msg .who { font-size: 12px; color: var(--ink-faint); margin-bottom: 4px; font-weight: 600; }
.msg .body { white-space: pre-wrap; }
.empty { text-align: center; padding: 44px 24px; color: var(--ink-soft); }
.success-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--sage); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; box-shadow: 0 0 0 8px rgba(227, 239, 228, 0.5); }
.success-mark svg { width: 30px; height: 30px; stroke: var(--primary); fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.center-card { text-align: center; padding: 48px 32px; margin-top: 56px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.center-card h1 { font-family: var(--display); font-weight: 400; font-size: 36px; margin: 0 0 8px; }

/* ---------- Changelog ---------- */
.changelog-entry { position: relative; }
.changelog-entry .date { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--primary-2); background: var(--sage); padding: 4px 11px; border-radius: 999px; margin-bottom: 10px; }
.changelog-entry h2 { font-family: var(--display); font-weight: 400; font-size: 26px; margin: 0 0 10px; color: var(--ink); }
.changelog-entry img.changelog-image { width: 100%; border-radius: 14px; margin: 8px 0 14px; display: block; }
.changelog-body { color: var(--ink-soft); white-space: pre-wrap; }

/* ---------- Login (full page) ---------- */
body.login-body { min-height: 100vh; }
.login-page { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 100vh; }
.login-art {
  position: relative; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(20, 30, 23, 0.55) 0%, rgba(20, 30, 23, 0) 34%, rgba(20, 30, 23, 0) 70%, rgba(20, 30, 23, 0.35) 100%),
    url('../img/login-back.jpg') center 38% / cover no-repeat;
}
.login-art a.icon { position: absolute; top: 40px; left: 44px; display: block; }
.login-art img { width: 64px; height: 64px; display: block; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.3)); }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 48px 40px; background: var(--bg); }
.login-box { width: 100%; max-width: 380px; }
.login-box h1 { font-family: var(--display); font-weight: 400; font-size: 44px; line-height: 1.05; margin: 0 0 10px; letter-spacing: -0.01em; }
.login-box .sub { color: var(--ink-soft); margin: 0 0 32px; font-size: 16px; }
.login-box .back { display: inline-block; margin-top: 26px; color: var(--ink-soft); text-decoration: none; font-size: 14px; }
.login-box .back:hover { color: var(--ink); }

/* ---------- Status page ---------- */
.status-hero { text-align: center; margin: 48px 0 36px; }
.status-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 8px var(--status-soft); background: var(--status-color); }
.status-icon svg { width: 30px; height: 30px; stroke: #fff; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.status-hero h1 { font-family: 'Inter', -apple-system, Helvetica, Arial, sans-serif; font-weight: 800; font-size: 30px; letter-spacing: -0.02em; margin: 0; }
.status-operational { --status-color: #3F9165; --status-soft: #E1EFE7; }
.status-degraded { --status-color: #D9A441; --status-soft: #F7EBD0; }
.status-outage, .status-unreachable { --status-color: #B1503A; --status-soft: #F3DDD6; }
.status-card { padding: 0; overflow: hidden; border-radius: var(--radius-lg); }
.status-group { padding: 22px 24px; border-bottom: 1px solid var(--border); }
.status-group:last-child { border-bottom: none; }
.status-group-head { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; user-select: none; }
.status-group-head::-webkit-details-marker { display: none; }
.status-group[open] > .status-group-head { margin-bottom: 18px; }
.status-group-head .head-end { display: flex; align-items: center; gap: 12px; }
.status-group-head .head-end svg { width: 20px; height: 20px; stroke: var(--ink-faint); fill: none; transition: transform .2s; }
.status-group[open] > .status-group-head .head-end svg { transform: rotate(180deg); }
.status-group-head:hover .head-end svg { stroke: var(--ink); }
.bars span { cursor: default; transition: opacity .12s; }
.bars span:hover { opacity: .75; }
.bar-tip { display: none; position: fixed; z-index: 50; pointer-events: none; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.35; white-space: nowrap; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5); }
.bar-tip strong { display: block; font-weight: 600; }
.bar-tip span { color: rgba(255, 255, 255, 0.75); }
.status-group-head strong { font-weight: 500; font-size: 15px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 8px; border-radius: 999px; background: #F1EEE8; font-size: 13px; font-weight: 500; }
.pill i { width: 16px; height: 16px; border-radius: 50%; background: var(--status-color); display: inline-block; }
.component-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.component-name { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.component-name i { width: 14px; height: 14px; border-radius: 50%; background: var(--status-color); display: inline-block; }
.uptime { font-size: 13px; font-weight: 500; color: var(--status-color); }
.bars { display: flex; gap: 2px; height: 28px; }
.bars span { flex: 1; border-radius: 3px; background: #E3DED4; }
.bars span.up { background: #3F9165; }
.bars span.degraded { background: #D9A441; }
.bars span.down { background: #B1503A; }
.bars-scale { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--ink-faint); }
.incident { border-left: 4px solid var(--status-color); }
.incident h3 { margin: 0 0 4px; font-size: 15px; }
.incident p { margin: 6px 0 0; color: var(--ink-soft); white-space: pre-wrap; }
.incident-info { --status-color: #6B8FB1; }
.incident-warning { --status-color: #D9A441; }
.incident-error { --status-color: #B1503A; }
.incident-meta { font-size: 12.5px; color: var(--ink-faint); }

/* ---------- Tabler icon helpers ---------- */
.back svg, .back-link svg { width: 16px; height: 16px; vertical-align: -3px; stroke: currentColor; fill: none; margin-right: 4px; }
.ticket-row .row-end { display: flex; align-items: center; gap: 10px; }
.ticket-row .row-end svg { width: 18px; height: 18px; stroke: var(--ink-faint); fill: none; }
.empty-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--sage); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.empty-icon svg { width: 26px; height: 26px; stroke: var(--primary); fill: none; }
.success-mark svg, .status-icon svg { stroke-width: 2.6; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary); color: rgba(255, 255, 255, 0.72); padding: 48px 0 32px; margin-top: 24px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.site-footer .logo-inv { height: 28px; filter: brightness(0) invert(1); margin-bottom: 12px; }
.site-footer p { margin: 0; font-size: 14px; max-width: 280px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-cols h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); font-weight: 600; }
.footer-cols a { display: block; text-decoration: none; color: rgba(255, 255, 255, 0.85); font-size: 14.5px; padding: 4px 0; }
.footer-cols a:hover { color: #fff; }
.footer-legal { width: 100%; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 22px; font-size: 13px; color: rgba(255, 255, 255, 0.5); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .tiles { grid-template-columns: 1fr; margin: -36px 16px 0; }
  .faq-grid { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .login-page { grid-template-columns: 1fr; grid-template-rows: 260px auto; }
  .login-art a.icon { top: 22px; left: 24px; }
  .login-art img { width: 48px; height: 48px; }
  .login-panel { padding: 36px 24px 56px; align-items: flex-start; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 60px 20px 76px; margin-top: 16px; }
  .brand-tag { display: none; }
  .nav a, .nav button.link { padding: 8px 10px; }
}
@media (max-width: 520px) {
  .nav a:not(.cta):not(.keep) { display: none; }
}

/* Articles section + browse page */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 4px; }
.section-head .section-sub { margin-bottom: 24px; }
.section-head .read-more { margin-bottom: 26px; white-space: nowrap; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px 18px; transition: border-color .2s, box-shadow .2s; }
.cat-card:hover { border-color: var(--sage-2); box-shadow: 0 14px 34px -24px rgba(36, 51, 42, 0.5); }
.cat-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cat-head h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--primary); }
.cat-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); text-decoration: none; color: var(--ink); font-size: 15px; }
.cat-link:hover { color: var(--primary-2); }
.cat-link svg { width: 16px; height: 16px; stroke: var(--ink-faint); fill: none; flex-shrink: 0; }
.cat-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 12px; font-size: 13.5px; font-weight: 600; color: var(--primary); text-decoration: none; }
.cat-more svg { width: 15px; height: 15px; stroke: currentColor; fill: none; }
.badge.type-faq { background: #F7EBD0; color: #8A6417; }
.sr-cat.sr-faq { background: #F7EBD0; color: #8A6417; margin-left: 4px; }
#faq, #articles { scroll-margin-top: 90px; }
@media (max-width: 1000px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) { .cat-grid { grid-template-columns: 1fr; } .section-head { flex-direction: column; align-items: flex-start; gap: 0; } .section-head .read-more { margin: -12px 0 20px; } }

@media (max-width: 1000px) and (min-width: 821px) { .tiles { grid-template-columns: repeat(2, 1fr); } }

/* FAQ: category list + one category's questions */
.faq-layout { display: grid; grid-template-columns: 250px 1fr; gap: 32px; align-items: start; }
.faq-cats { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; }
.faq-cat { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 12px; color: var(--ink-soft); font-size: 15px; font-weight: 500; transition: background .15s, color .15s; }
.faq-cat:hover { background: rgba(36, 51, 42, 0.06); color: var(--ink); }
.faq-cat em { font-style: normal; font-size: 12px; font-weight: 600; min-width: 24px; text-align: center; padding: 2px 8px; border-radius: 999px; background: #EFEBE2; color: var(--ink-faint); }
.faq-cat.active { background: var(--primary); color: #fff; }
.faq-cat.active em { background: rgba(255, 255, 255, 0.18); color: #fff; }
.faq-cat:focus-visible { outline: 3px solid rgba(232, 176, 75, 0.7); }
.faq-panels { min-width: 0; }
.faq-panel + .faq-panel { margin-top: 36px; }
.faq-panel-title { margin: 0 0 14px; font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--ink); }
.faq-js .faq-panel-title { display: none; }
.faq-panel[hidden] { display: none; }
@media (max-width: 820px) {
  .faq-layout { grid-template-columns: 1fr; gap: 18px; }
  .faq-cats { position: static; flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 4px; }
  .faq-cat { flex-shrink: 0; border: 1.5px solid var(--border); background: var(--surface); }
  .faq-cat.active { border-color: var(--primary); }
}
/* ---------- Changelog timeline ---------- */
.timeline { position: relative; margin-top: 8px; padding-left: 34px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--sage-2), rgba(207, 227, 210, 0)); border-radius: 2px; }
.tl-month { margin: 34px 0 14px; }
.tl-month:first-child { margin-top: 0; }
.tl-month span { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.tl-entry { position: relative; margin-bottom: 18px; }
.tl-dot { position: absolute; left: -34px; top: 26px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--sage-2); box-sizing: border-box; }
.tl-entry.latest .tl-dot { border-color: var(--primary); background: var(--accent); box-shadow: 0 0 0 5px rgba(232, 176, 75, 0.22); }
.tl-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px; }
.tl-entry.latest .tl-card { border-color: var(--sage-2); box-shadow: var(--shadow); }
.tl-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; font-size: 13px; color: var(--ink-faint); }
.tl-version { font-weight: 700; font-size: 12.5px; color: var(--primary); background: var(--sage); padding: 3px 11px; border-radius: 999px; }
.tl-latest { font-weight: 700; font-size: 12px; color: #8A6417; background: #F7EBD0; padding: 3px 10px; border-radius: 999px; }
.tl-card h2 { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.15; margin: 0 0 12px; color: var(--ink); }
.tl-card .changelog-image { width: 100%; border-radius: 14px; margin: 4px 0 16px; display: block; }
.tl-card .prose { font-size: 15.5px; }
.tl-card .prose h2 { font-size: 22px; }
.tl-card .prose h3 { font-size: 13.5px; font-weight: 700; color: var(--primary-2); margin: 20px 0 8px; letter-spacing: .01em; }
.tl-card .prose h3:first-child { margin-top: 4px; }
.tl-card .prose ul { padding-left: 20px; }
@media (max-width: 520px) { .timeline { padding-left: 26px; } .tl-dot { left: -26px; } .tl-card { padding: 20px 18px; } }

/* ---------- Live chat widget ---------- */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat[hidden], .chat [hidden] { display: none !important; }
.chat-launcher { position: relative; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; background: var(--primary); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); transition: transform .15s ease, background .15s ease; }
.chat-launcher:hover { transform: translateY(-2px); background: var(--primary-2); }
.chat-launcher svg { width: 26px; height: 26px; }
.chat-dot { position: absolute; top: 4px; right: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); }
.chat-panel { width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px)); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 18px; background: var(--primary); color: #fff; }
.chat-head strong { display: block; font-family: var(--display); font-weight: 400; font-size: 20px; }
.chat-presence { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: rgba(255,255,255,.75); }
.chat-presence i { width: 8px; height: 8px; border-radius: 50%; background: #9aa39a; }
.chat-presence.on i { background: #7fd39a; box-shadow: 0 0 0 3px rgba(127,211,154,.25); }
.chat-head-actions { display: flex; align-items: center; gap: 4px; }
.chat-link, .chat-icon { background: none; border: 0; color: rgba(255,255,255,.85); cursor: pointer; font: inherit; font-size: 13px; padding: 6px 8px; border-radius: 10px; }
.chat-link:hover, .chat-icon:hover { background: rgba(255,255,255,.12); color: #fff; }
.chat-icon svg { width: 20px; height: 20px; display: block; }
.chat-start { display: flex; flex-direction: column; gap: 10px; padding: 18px; overflow: auto; }
.chat-intro { margin: 0 0 4px; color: var(--ink-soft); font-size: 14.5px; }
.chat-start input, .chat-start textarea, .chat-compose textarea { font: inherit; font-size: 14.5px; color: var(--ink); background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 11px 14px; width: 100%; resize: none; }
.chat-start input:focus, .chat-start textarea:focus, .chat-compose textarea:focus { outline: 2px solid var(--sage-2); border-color: var(--primary-2); }
.chat-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; }
.chat-error { margin: 0; color: var(--danger); font-size: 13.5px; }
.chat-primary { font: inherit; font-weight: 600; font-size: 14.5px; border: 0; cursor: pointer; background: var(--primary); color: #fff; border-radius: 999px; padding: 12px 20px; }
.chat-primary:hover { background: var(--primary-2); }
.chat-primary:disabled { opacity: .6; cursor: default; }
.chat-thread { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.chat-msg { display: flex; flex-direction: column; max-width: 82%; }
.chat-msg small { margin-top: 3px; font-size: 11.5px; color: var(--ink-faint); }
.chat-bubble { padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg.visitor { align-self: flex-end; align-items: flex-end; }
.chat-msg.visitor .chat-bubble { background: var(--primary); color: #fff; border-bottom-right-radius: 6px; }
.chat-msg.agent { align-self: flex-start; }
.chat-msg.agent .chat-bubble { background: var(--sage); color: var(--ink); border-bottom-left-radius: 6px; }
.chat-msg.system { align-self: center; max-width: 92%; text-align: center; }
.chat-msg.system .chat-bubble { background: none; color: var(--ink-faint); font-size: 13px; padding: 4px 8px; }
.chat-compose { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: var(--surface); }
.chat-compose textarea { height: 42px; min-height: 42px; max-height: 110px; border-radius: 21px; padding: 10px 16px; line-height: 20px; }
.chat-send { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; background: var(--primary); color: #fff; display: grid; place-items: center; }
.chat-send:hover { background: var(--primary-2); }
.chat-send svg { width: 20px; height: 20px; }
.chat-closed { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px; border-top: 1px solid var(--border); color: var(--ink-soft); font-size: 14px; }
@media (max-width: 520px) {
  .chat { right: 12px; bottom: 12px; }
  .chat-panel { height: min(600px, calc(100vh - 96px)); }
}
.chat-start textarea { min-height: 84px; }

/* WhatsApp-style composer: tinted bar, white pill, round send button that wakes up once there's text. */
.chat-compose { align-items: flex-end; gap: 8px; padding: 8px 10px 10px; border-top: 0; background: var(--sage); }
.chat-compose textarea { background: #fff; border: 0; box-shadow: 0 1px 1px rgba(36,51,42,.08); border-radius: 22px; padding: 11px 16px; height: 44px; min-height: 44px; max-height: 120px; line-height: 22px; overflow-y: auto; }
.chat-compose textarea:focus { outline: 0; box-shadow: 0 1px 1px rgba(36,51,42,.08), 0 0 0 2px var(--sage-2); }
.chat-send { width: 44px; height: 44px; transition: transform .15s ease, opacity .15s ease, background .15s ease; }
.chat-send svg { margin-left: -2px; }
.chat-send:disabled { opacity: .45; cursor: default; }
.chat-send:not(:disabled):hover { transform: scale(1.06); }
.chat-log { background: #f3efe5; }

/* ---------- Live chat motion ---------- */
.chat-launcher { transition: transform .2s cubic-bezier(.34,1.56,.64,1), background .15s ease, box-shadow .2s ease; }
.chat-launcher:active { transform: scale(.92); }
.chat-launcher .chat-ico { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .2s ease; }
.chat-launcher .chat-ico-close { opacity: 0; transform: rotate(-90deg) scale(.4); }
.chat-launcher.is-open .chat-ico-open { opacity: 0; transform: rotate(90deg) scale(.4); }
.chat-launcher.is-open .chat-ico-close { opacity: 1; transform: none; }

.chat-panel { transform-origin: bottom right; animation: chatIn .28s cubic-bezier(.22,1.2,.36,1) both; }
.chat-panel.leaving { animation: chatOut .18s ease-in both; }
@keyframes chatIn { from { opacity: 0; transform: translateY(16px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes chatOut { to { opacity: 0; transform: translateY(12px) scale(.94); } }

.chat-msg { animation: chatPop .25s cubic-bezier(.22,1.2,.36,1) both; }
.chat-msg.visitor { transform-origin: bottom right; }
.chat-msg.agent { transform-origin: bottom left; }
@keyframes chatPop { from { opacity: 0; transform: translateY(8px) scale(.94); } to { opacity: 1; transform: none; } }

.chat-launcher.nudge { animation: chatNudge .8s ease both; }
@keyframes chatNudge { 0%,100% { transform: none; } 15% { transform: rotate(-14deg) scale(1.1); } 30% { transform: rotate(12deg) scale(1.1); } 45% { transform: rotate(-8deg); } 60% { transform: rotate(6deg); } }
.chat-dot { animation: chatPulse 1.8s ease-out infinite; }
@keyframes chatPulse { 0% { box-shadow: 0 0 0 0 rgba(232,176,75,.65); } 70%,100% { box-shadow: 0 0 0 10px rgba(232,176,75,0); } }

@media (prefers-reduced-motion: reduce) {
  .chat-panel, .chat-panel.leaving, .chat-msg, .chat-launcher.nudge, .chat-dot { animation: none !important; }
  .chat-launcher, .chat-launcher .chat-ico { transition: none; }
}
.chat-send, .chat-icon, .chat-launcher { padding: 0; }
.chat-send svg { flex: none; }
.chat button[type=submit].chat-send { padding: 0; width: 44px; height: 44px; border-radius: 50%; box-shadow: none; background: var(--primary); }
.chat button[type=submit].chat-send:hover { background: var(--primary-2); }
.chat button[type=submit].chat-primary { border-radius: 999px; }

/* Teaser next to the launcher for visitors who haven't started a chat */
.chat-hint { position: relative; max-width: 260px; margin-right: 4px; animation: chatHintIn .4s cubic-bezier(.22,1.3,.36,1) both; transform-origin: bottom right; }
.chat-hint.leaving { animation: chatOut .18s ease-in both; }
.chat .chat-hint-body { display: block; text-align: left; width: 100%; font: inherit; cursor: pointer; background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-radius: 20px 20px 6px 20px; padding: 12px 34px 12px 16px; box-shadow: var(--shadow); }
.chat-hint-body strong { display: block; font-size: 14.5px; }
.chat-hint-body span { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-soft); line-height: 1.4; }
.chat-hint-body:hover { border-color: var(--sage-2); }
.chat .chat-hint-x { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-faint); cursor: pointer; display: grid; place-items: center; }
.chat-hint-x:hover { background: var(--sage); color: var(--ink); }
.chat-hint-x svg { width: 14px; height: 14px; }
@keyframes chatHintIn { from { opacity: 0; transform: translateY(10px) scale(.9); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .chat-hint, .chat-hint.leaving { animation: none !important; } }

/* Single-column "still need a hand" call-to-action on the home page */
.contact.contact-cta { grid-template-columns: 1fr; }
.contact-cta .contact-side { padding: 44px 40px; }
.contact-cta .contact-side p { max-width: 520px; }
.btn-light, a.btn.btn-light { position: relative; z-index: 1; background: #fff; color: var(--primary); }
.btn-light:hover, a.btn.btn-light:hover { background: var(--sage); }

/* Loading state for buttons (see buttons.js) */
.is-loading { position: relative; color: transparent !important; pointer-events: none; cursor: progress; }
.is-loading svg { opacity: 0; }
.is-loading::after { content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: btnSpin .7s linear infinite; }
.btn-light.is-loading::after { border-color: rgba(36,51,42,.2); border-top-color: var(--primary); }
button.link.is-loading::after { border-color: var(--sage-2); border-top-color: var(--primary); width: 14px; height: 14px; margin: -7px 0 0 -7px; }
.is-loading:disabled { opacity: 1; }
@keyframes btnSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .is-loading::after { animation-duration: 1.6s; } }
