/* =====================================================================
   Shared site footer + the simple content pages (help, changelog,
   pricing, status).
   ===================================================================== */

/* ------------------------------------------------------------ site footer */

.site-foot {
  margin-top: 72px;
  padding: 46px 0 28px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.sf-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 34px;
}

.sf-col { display: flex; flex-direction: column; gap: 11px; }

.sf-title {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.015em;
  color: var(--text);
  margin-bottom: 3px;
}

.sf-col a {
  font-size: 13.5px;
  color: var(--text-dim);
  transition: color .15s;
  width: fit-content;
}
.sf-col a:hover { color: var(--text); }

.sf-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.sf-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.sf-mark {
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: 8px;
  font-size: 14px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
}
.sf-copy { font-size: 12.5px; color: var(--text-faint); }

@media (max-width: 780px) {
  .sf-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
}
@media (max-width: 420px) {
  .sf-cols { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------- doc shell */

.doc { max-width: 780px; padding: 46px 0 0; }
.doc-wide { max-width: 1000px; }

.doc-head { margin-bottom: 38px; }
.doc-kicker {
  display: inline-block; margin-bottom: 11px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
}
.doc-head h1 {
  font-size: clamp(29px, 4.4vw, 40px);
  line-height: 1.1; letter-spacing: -.04em;
}
.doc-lede {
  margin-top: 11px; font-size: 16px; line-height: 1.6; color: var(--text-dim);
}

/* jump links */
.doc-nav {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding-bottom: 30px; margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.doc-nav a {
  padding: 7px 13px;
  font-size: 13px; color: var(--text-dim);
  border: 1px solid var(--line); border-radius: 99px; background: var(--panel);
  transition: border-color .15s, color .15s;
}
.doc-nav a:hover { color: var(--text); border-color: var(--accent-line, #7c5cff40); }

.doc-section { padding: 34px 0; }
.doc-section h2 {
  font-size: 21px; letter-spacing: -.025em; margin-bottom: 20px;
}
.doc-qa { display: grid; gap: 20px; }
.doc-item h3 {
  font-size: 15px; font-weight: 600; margin-bottom: 6px; color: var(--text);
}
.doc-item p { font-size: 14px; line-height: 1.68; color: var(--text-dim); }

.doc-cta {
  margin: 26px 0 0;
  padding: 26px;
  text-align: center;
  border: 1px solid var(--accent-line, #7c5cff40);
  border-radius: var(--radius);
  background: var(--accent-soft, #7c5cff0f);
}
.doc-cta strong { display: block; font-size: 17px; margin-bottom: 6px; }
.doc-cta p { font-size: 14px; color: var(--text-dim); margin-bottom: 16px; }

/* -------------------------------------------------------------- changelog */

.cl-release {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 26px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.cl-release:first-child { border-top: 0; padding-top: 0; }

.cl-side { display: flex; flex-direction: column; gap: 6px; }
.cl-version {
  font-family: var(--mono); font-size: 16px; font-weight: 650; color: var(--text);
}
.cl-date { font-size: 12.5px; color: var(--text-faint); }
.cl-status {
  width: fit-content;
  padding: 3px 9px;
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  color: #fbbf24;
  border: 1px solid #fbbf2440; border-radius: 99px; background: #fbbf2414;
}

.cl-summary { font-size: 15px; color: var(--text); margin-bottom: 14px; }
.cl-list { display: grid; gap: 9px; }
.cl-list li {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 13.8px; line-height: 1.55; color: var(--text-dim); list-style: none;
}
.cl-tag {
  flex: none;
  min-width: 62px; padding: 2px 8px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .05em;
  text-align: center; text-transform: uppercase;
  border-radius: 5px;
}
.cl-added    { color: #34d399; background: #34d39914; border: 1px solid #34d39933; }
.cl-fixed    { color: #4dabff; background: #4dabff14; border: 1px solid #4dabff33; }
.cl-security { color: #f87171; background: #f8717114; border: 1px solid #f8717133; }
.cl-changed  { color: #a78bfa; background: #a78bfa14; border: 1px solid #a78bfa33; }
.cl-soon     { color: #8b8b96; background: #8b8b9614; border: 1px solid #8b8b9633; }

@media (max-width: 640px) {
  .cl-release { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .cl-side { flex-direction: row; align-items: center; gap: 10px; }
}

/* ---------------------------------------------------------------- pricing */

.pr-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
}
.pr-plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: 28px 24px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel);
}
.pr-featured {
  border-color: var(--accent-line, #7c5cff40);
  background:
    radial-gradient(600px 200px at 50% 0%, #7c5cff1f, transparent 70%),
    var(--panel);
}
.pr-flag {
  position: absolute; top: 16px; right: 16px;
  padding: 4px 10px;
  font-size: 11px; font-weight: 600; letter-spacing: .05em;
  color: var(--accent);
  border: 1px solid var(--accent-line, #7c5cff40); border-radius: 99px;
  background: var(--accent-soft, #7c5cff14);
}
.pr-name { font-size: 15px; font-weight: 600; color: var(--text-dim); margin-bottom: 12px; }
.pr-price { display: flex; align-items: baseline; gap: 7px; }
.pr-price b { font-size: 40px; font-weight: 700; letter-spacing: -.045em; }
.pr-price span { font-size: 14px; color: var(--text-faint); }
.pr-note { font-size: 13px; color: var(--text-dim); margin: 10px 0 20px; }

.pr-list { display: grid; gap: 10px; margin-bottom: 24px; flex: 1; }
.pr-list li {
  position: relative; padding-left: 25px;
  font-size: 13.8px; line-height: 1.5; color: var(--text-dim); list-style: none;
}
.pr-list li::before {
  content: ""; position: absolute; left: 3px; top: 6px;
  width: 5px; height: 9px;
  border-right: 1.8px solid var(--accent); border-bottom: 1.8px solid var(--accent);
  transform: rotate(42deg);
}

.pr-disabled {
  text-align: center; cursor: not-allowed;
  color: var(--text-faint) !important;
  background: var(--panel-2) !important;
  border-color: var(--line) !important;
}

.pr-promise {
  margin-top: 26px; padding: 26px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
}
.pr-promise h2 { font-size: 18px; letter-spacing: -.025em; margin-bottom: 9px; }
.pr-promise p { font-size: 14px; line-height: 1.68; color: var(--text-dim); }

@media (max-width: 720px) {
  .pr-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ----------------------------------------------------------------- status */

.st-banner {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 20px;
  margin-bottom: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}
.st-banner.ok   { border-color: #34d39940; background: #34d3990f; }
.st-banner.bad  { border-color: #f8717159; background: #f8717114; }
.st-banner.warn { border-color: #fbbf2440; background: #fbbf240f; }
.st-banner strong { display: block; font-size: 16px; margin-bottom: 4px; }
.st-banner p { font-size: 13.5px; line-height: 1.6; color: var(--text-dim); }

.st-dot {
  flex: none; margin-top: 5px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--text-faint);
}
.st-banner.ok .st-dot {
  background: #34d399;
  box-shadow: 0 0 0 4px #34d3992e;
  animation: st-pulse 2.4s ease-in-out infinite;
}
.st-banner.bad .st-dot  { background: #f87171; box-shadow: 0 0 0 4px #f871712e; }
.st-banner.warn .st-dot { background: #fbbf24; box-shadow: 0 0 0 4px #fbbf242e; }

@keyframes st-pulse {
  0%, 100% { box-shadow: 0 0 0 4px #34d3992e; }
  50%      { box-shadow: 0 0 0 8px #34d39914; }
}

.st-list {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); overflow: hidden;
}
.st-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 17px;
  border-top: 1px solid var(--line);
}
.st-row:first-child { border-top: 0; }
.st-name { flex: 1; font-size: 14px; font-weight: 550; }
.st-detail { font-family: var(--mono); font-size: 12px; color: var(--text-faint); }
.st-pill {
  padding: 4px 10px;
  font-size: 11.5px; font-weight: 600;
  border-radius: 99px;
}
.st-pill.ok  { color: #34d399; background: #34d39914; border: 1px solid #34d39933; }
.st-pill.bad { color: #f87171; background: #f8717114; border: 1px solid #f8717133; }

.st-facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px; margin-top: 22px;
}
.st-facts div {
  display: grid; gap: 3px; padding: 18px;
  text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel);
}
.st-facts b { font-size: 23px; font-weight: 700; letter-spacing: -.03em; }
.st-facts span { font-size: 12px; color: var(--text-faint); }

.st-note {
  margin-top: 20px; font-size: 12.5px; line-height: 1.6; color: var(--text-faint);
}

@media (max-width: 560px) {
  .st-facts { grid-template-columns: minmax(0, 1fr); }
  .st-row { flex-wrap: wrap; gap: 8px; }
  .st-name { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .st-banner.ok .st-dot { animation: none; }
}
