/* Plugsky shared article + tool styles */
:root {
  --bg: #0a0c10;
  --bg-2: #0f1218;
  --card: #13171f;
  --card-2: #181d27;
  --line: #222836;
  --tx: #e7ecf3;
  --mut: #8b95a7;
  --dim: #5c6678;
  --brand: #ff6b6b;
  --brand-2: #ff5252;
  --acc: #27e0a3;
  --warn: #ffb454;
  --bad: #ff6b6b;
  --rad: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--tx);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea {
  font: inherit; color: inherit; font-family: inherit;
}

/* =================================================================
   HEADER (nav) — bulletproof horizontal layout
   ================================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 12, 16, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 0;
  font-size: 14px;
  line-height: 1;
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: row;          /* explicit row */
  flex-wrap: nowrap;            /* never wrap */
  align-items: center;
  justify-content: flex-start;  /* logo first, nav center, CTAs right */
  min-height: 64px;
  gap: 0;
}

/* ---- Logo ---- */
.nav .logo {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  height: 36px;
  text-decoration: none;
  color: var(--tx);
  margin-right: 28px;
  flex-shrink: 0;
  white-space: nowrap;
}
.nav .logo:hover { color: var(--tx); text-decoration: none; }
.nav .logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #5b8cff 0%, #ff6b6b 100%);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  line-height: 1;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(91, 140, 255, 0.35);
}
.nav .logo-text {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.4px;
  color: var(--tx);
  line-height: 1;
}

/* ---- Nav links (single horizontal list) ---- */
.nav .nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  height: 36px;
}
.nav .nav-links > li {
  list-style: none;
  display: inline-flex;
  align-items: center;
  height: 36px;
  position: relative;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}
.nav .nav-links a,
.nav .nav-dd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--mut);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  line-height: 1;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  position: relative;
  transition: color .15s, background .15s;
}
.nav .nav-links a:hover,
.nav .nav-dd-trigger:hover,
.nav .nav-dd.open .nav-dd-trigger {
  color: var(--tx);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
}
.nav .nav-links a.active,
.nav .nav-dd-trigger.active { color: var(--tx); }
.nav .nav-links a.active::after,
.nav .nav-dd-trigger.active::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 2px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

/* CSS chevron */
.nav .dd-caret {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  opacity: .55;
  margin-top: -3px;
  transition: transform .2s, opacity .15s;
}
.nav .nav-dd.open .dd-caret {
  transform: rotate(-135deg) translate(0, 0);
  opacity: 1;
}

/* ---- Dropdown panel ---- */
.nav-dd-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 320px;
  padding: 8px;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.02);
  display: none;
  z-index: 60;
}
.nav-dd-menu::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  background: var(--card-2);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  transform: translateX(-50%) rotate(45deg);
}
.nav-dd.open .nav-dd-menu {
  display: block;
  animation: ddIn .14s ease-out;
}
@keyframes ddIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-4px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.dd-item {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--tx);
  transition: background .1s;
}
.dd-item:hover {
  background: rgba(91, 140, 255, 0.08);
  text-decoration: none;
}
.dd-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--tx);
  line-height: 1.3;
}
.dd-desc {
  display: block;
  font-size: 11.5px;
  color: var(--mut);
  line-height: 1.3;
  margin-top: 2px;
}

/* ---- Right CTAs ---- */
.nav .nav-cta {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  height: 36px;
  margin-left: 16px;
  flex-shrink: 0;
}
.nav .nav-signin {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--mut);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav .nav-signin:hover {
  color: var(--tx);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
}
.nav .nav-trial {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  background: linear-gradient(135deg, #5b8cff 0%, #4f7ce8 100%);
  box-shadow: 0 2px 10px rgba(91, 140, 255, 0.35);
  text-decoration: none;
  white-space: nowrap;
  transition: filter .15s, box-shadow .15s, transform .15s;
}
.nav .nav-trial:hover {
  filter: brightness(1.08);
  box-shadow: 0 4px 18px rgba(91, 140, 255, 0.5);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.nav-burger {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--tx);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  line-height: 1;
}

/* Footer */
#footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 48px 0 24px;
  color: var(--mut);
  font-size: 13.5px;
}
#footer .inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
#footer .ft-cols {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  margin-bottom: 32px;
}
#footer h5 {
  font-size: 11px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--tx);
  margin: 0 0 14px;
}
#footer .ft-col { display: flex; flex-direction: column; gap: 8px; }
#footer .ft-col a { color: var(--mut); text-decoration: none; font-size: 13px; }
#footer .ft-col a:hover { color: var(--tx); }
#footer .ft-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--dim);
}
#footer .ft-meta { font-style: italic; }

.hero {
  padding: 60px 0 40px;
  background: radial-gradient(ellipse at top, rgba(91, 140, 255, 0.08), transparent 60%);
  border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.kicker {
  display: inline-block;
  font-size: 11px; letter-spacing: 1.4px; font-weight: 800; text-transform: uppercase;
  color: var(--brand); padding: 4px 10px; border: 1px solid rgba(255, 107, 107, 0.4);
  border-radius: 999px; background: rgba(255, 107, 107, 0.08);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(28px, 4.5vw, 44px); font-weight: 800; letter-spacing: -1px;
  line-height: 1.15; margin-bottom: 16px;
  background: linear-gradient(120deg, var(--tx) 0%, var(--brand) 60%, var(--warn) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p.lead { font-size: 17px; color: var(--mut); max-width: 740px; line-height: 1.55; }
.hero .hero-cta { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }

main { padding: 40px 0 80px; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.prose h2 {
  font-size: 26px; font-weight: 800; letter-spacing: -.4px;
  margin: 44px 0 14px; padding-top: 8px;
  scroll-margin-top: 80px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; font-weight: 700; margin: 28px 0 10px; color: var(--tx); }
.prose p { color: var(--mut); margin-bottom: 16px; line-height: 1.7; }
.prose ul, .prose ol { color: var(--mut); margin: 0 0 18px 24px; }
.prose li { padding: 4px 0; }
.prose strong { color: var(--tx); font-weight: 700; }
.prose code { background: var(--card-2); padding: 2px 6px; border-radius: 4px; font-size: 13px; color: var(--brand); font-family: ui-monospace, Menlo, monospace; }
.prose pre {
  background: var(--card-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 18px; margin: 0 0 18px; overflow-x: auto; font-size: 13px; line-height: 1.55;
}
.prose pre code { background: transparent; padding: 0; color: var(--tx); }
.prose blockquote {
  border-left: 3px solid var(--brand); padding: 4px 0 4px 18px;
  margin: 0 0 18px; color: var(--mut); font-style: italic;
}

.prose a { color: var(--brand); }
.prose a:hover { text-decoration: underline; }

.toc {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--rad);
  padding: 18px 22px; margin: 0 0 36px;
}
.toc h4 {
  font-size: 11px; letter-spacing: 1.2px; font-weight: 800; text-transform: uppercase;
  color: var(--mut); margin-bottom: 10px;
}
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { padding: 4px 0; }
.toc a { color: var(--mut); font-size: 13.5px; }
.toc a:hover { color: var(--tx); text-decoration: none; }

.cta-band {
  margin: 40px 0; padding: 32px;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.08), rgba(56, 229, 184, 0.04));
  border: 1px solid rgba(255, 107, 107, 0.3); border-radius: var(--rad);
  text-align: center;
}
.cta-band h3 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.cta-band p { color: var(--mut); margin-bottom: 18px; max-width: 540px; margin-left: auto; margin-right: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--card-2); color: var(--tx);
  border: 1px solid var(--line); border-radius: 9px;
  padding: 10px 16px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background .15s, border-color .15s;
  text-decoration: none; line-height: 1.2; white-space: nowrap;
}
.btn:hover { background: var(--card); border-color: var(--brand); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--mut); }
.btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; color: #fff; }
.btn.primary:hover { filter: brightness(1.1); }
.btn.sm { padding: 6px 12px; font-size: 12.5px; border-radius: 7px; }
.btn.lg { padding: 12px 22px; font-size: 15px; }

.tag {
  display: inline-block; font-size: 10.5px; font-weight: 700;
  padding: 3px 8px; border-radius: 6px; background: var(--card-2);
  border: 1px solid var(--line); color: var(--mut);
  text-transform: uppercase; letter-spacing: .5px; margin-right: 4px;
}
.tag.acc { color: var(--acc); border-color: rgba(39, 224, 163, 0.3); background: rgba(39, 224, 163, 0.08); }
.tag.warn { color: var(--warn); border-color: rgba(255, 180, 84, 0.3); background: rgba(255, 180, 84, 0.08); }
.tag.brand { color: var(--brand); border-color: rgba(255, 107, 107, 0.3); background: rgba(255, 107, 107, 0.08); }

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--rad);
  padding: 22px; transition: .15s;
}
.card:hover { border-color: rgba(255, 107, 107, 0.3); }
.card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.card p { color: var(--mut); font-size: 13px; }

.feature {
  display: inline-block; padding: 3px 8px; border-radius: 6px;
  background: var(--card-2); border: 1px solid var(--line);
  font-size: 11.5px; color: var(--mut); margin: 2px;
}

.faq {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--rad);
  padding: 18px 22px; margin-bottom: 12px;
}
.faq summary { cursor: pointer; font-weight: 700; font-size: 15px; }
.faq p { color: var(--mut); margin-top: 10px; font-size: 14px; }

.related {
  margin-top: 50px; padding-top: 32px; border-top: 1px solid var(--line);
}
.related h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.related-card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--rad); padding: 18px 22px; text-decoration: none; color: inherit;
  transition: border-color .15s, transform .15s;
}
.related-card:hover { border-color: var(--brand); transform: translateY(-1px); text-decoration: none; }
.related-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; color: var(--tx); }
.related-card p { color: var(--mut); font-size: 12.5px; }

footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--mut); font-size: 13px; }
footer .inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--mut); }
footer a:hover { color: var(--tx); }

/* TOOL styles */
.tool-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--rad);
  padding: 28px; margin-bottom: 24px;
}
.tool-panel h2 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.tool-panel p  { color: var(--mut); font-size: 13.5px; margin-bottom: 18px; }
.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 12.5px; font-weight: 700; color: var(--mut);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: .8px;
}
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px; color: var(--tx);
  font-size: 14px; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); }
.field textarea { resize: vertical; min-height: 80px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.output {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 18px; margin-top: 18px; min-height: 100px;
  font-family: ui-monospace, Menlo, monospace; font-size: 13px; color: var(--tx);
  white-space: pre-wrap; word-break: break-word;
}
.output .k { color: var(--acc); }
.output .v { color: var(--warn); }
.output .m { color: var(--mut); }

.bar {
  height: 28px; background: var(--card-2); border-radius: 6px; overflow: hidden;
  margin: 6px 0; position: relative;
}
.bar .fill {
  height: 100%; background: linear-gradient(90deg, var(--brand), var(--warn));
  border-radius: 6px; display: flex; align-items: center; justify-content: flex-end;
  padding-right: 10px; color: #fff; font-size: 11px; font-weight: 700;
  transition: width .4s;
}

.score-circle {
  width: 140px; height: 140px; border-radius: 50%; margin: 0 auto;
  display: grid; place-items: center; font-size: 38px; font-weight: 850;
  background: var(--card-2); border: 4px solid var(--brand);
  color: var(--brand);
}
.score-circle.acc { border-color: var(--acc); color: var(--acc); }
.score-circle.warn { border-color: var(--warn); color: var(--warn); }
.score-circle.bad { border-color: var(--bad); color: var(--bad); }

.checklist { list-style: none; padding: 0; }
.checklist li { padding: 8px 0; display: flex; align-items: flex-start; gap: 10px; }
.checklist input[type=checkbox] { margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--brand); }

.code-block {
  position: relative; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 16px 18px; margin: 0 0 14px;
  font-family: ui-monospace, Menlo, monospace; font-size: 13px; line-height: 1.6;
  overflow-x: auto; color: var(--tx);
}
.code-block .lang {
  position: absolute; top: 8px; right: 12px; font-size: 10px;
  text-transform: uppercase; letter-spacing: 1px; color: var(--mut);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.copy-btn {
  position: absolute; top: 6px; right: 6px;
  background: var(--card-2); border: 1px solid var(--line); color: var(--mut);
  padding: 3px 8px; border-radius: 5px; font-size: 10px; cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  text-transform: uppercase; letter-spacing: .8px;
}
.copy-btn:hover { color: var(--tx); border-color: var(--brand); }

/* Compact mode — smaller fonts + padding for narrow desktops / large tablets */
@media (max-width: 1024px) and (min-width: 721px) {
  .nav .logo-text { font-size: 16px; }
  .nav .logo { margin-right: 18px; }
  .nav .nav-links a, .nav .nav-dd-trigger { padding: 0 10px; font-size: 13px; }
  .nav .nav-signin { padding: 0 10px; font-size: 13px; }
  .nav .nav-trial { padding: 0 14px; font-size: 13px; }
  .nav-cta { margin-left: 10px; }
}

/* Mobile menu — only below 720px */
@media (max-width: 720px) {
  .nav-burger { display: inline-flex; }
  .nav-inner { height: 60px; }
  .nav .logo { margin-right: auto; }
  .nav .nav-links {
    display: none;
    flex-direction: column;
    gap: 2px;
    align-items: stretch;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--card);
    padding: 16px 16px 20px;
    border-bottom: 1px solid var(--line);
    height: auto;
  }
  .nav .nav-links.open { display: flex; }
  .nav .nav-links > li { width: 100%; height: auto; }
  .nav .nav-links a, .nav .nav-dd-trigger { width: 100%; padding: 10px 12px; }
  .nav-dd-menu { position: static; transform: none; min-width: 0; box-shadow: none; border: 0; background: rgba(255,255,255,0.02); margin-top: 4px; padding: 4px; }
  .nav-dd-menu::before { display: none; }
  .nav-dd.open .nav-dd-menu { animation: none; }
  .nav-cta { margin-left: 8px; }
  #footer .ft-cols { grid-template-columns: repeat(2, 1fr); }
  #footer .ft-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 24px; }
  .prose h2 { font-size: 22px; margin-top: 32px; }
}
