/* htmlformbuilders.com — developer dark + lime accent */

:root {
  --bg: #1a1d21;
  --bg-soft: #22262b;
  --surface: #2a2f36;
  --surface-2: #323840;
  --border: #3d444d;
  --border-light: #4a525c;
  --text: #e8eaed;
  --text-body: #b8bcc4;
  --muted: #8b929a;
  --lime: #a3e635;
  --lime-dark: #84cc16;
  --lime-muted: rgba(163, 230, 53, 0.15);
  --lime-glow: rgba(163, 230, 53, 0.25);
  --code-bg: #14171a;
  --pros-bg: rgba(163, 230, 53, 0.08);
  --pros-border: rgba(163, 230, 53, 0.35);
  --cons-bg: rgba(248, 113, 113, 0.08);
  --cons-border: rgba(248, 113, 113, 0.35);
  --cons-fg: #fca5a5;
  --content-max: 44rem;
  --wide-max: 76rem;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.3;
  margin: 0 0 0.65em;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.85rem, 4.2vw, 2.55rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 2.8vw, 1.65rem); margin-top: 2.25rem; }
h3 { font-size: clamp(1.05rem, 2vw, 1.2rem); margin-top: 1.5rem; }

p { margin: 0 0 1em; }

a {
  color: var(--lime);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(163, 230, 53, 0.4);
  transition: color 0.15s, text-decoration-color 0.15s;
}

a:hover { color: var(--lime-dark); text-decoration-color: var(--lime); }

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

.skip-link {
  position: absolute; left: -999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  left: 16px; top: 16px; width: auto; height: auto;
  padding: 10px 16px; background: var(--lime); color: var(--bg);
  border-radius: var(--radius); z-index: 1000; text-decoration: none;
  font-family: var(--font-mono); font-size: 0.875rem;
}

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  background: var(--surface); z-index: 200; pointer-events: none;
}
.scroll-progress__bar {
  display: block; height: 100%; width: 0;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime-glow);
  transition: width 0.08s linear;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(26, 29, 33, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-accent {
  height: 2px;
  background: linear-gradient(90deg, var(--lime) 0%, transparent 70%);
}

.header-inner {
  max-width: var(--wide-max);
  margin: 0 auto;
  padding: 0.8rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: inline-flex; text-decoration: none; flex-shrink: 0; }
.brand-logo { height: 34px; width: auto; }

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem 0.5rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: var(--font-mono);
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover,
.nav-links a.nav-active {
  color: var(--lime);
  background: var(--lime-muted);
  text-decoration: none;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1rem;
  }
  .nav-links.is-open { display: flex; }
  .site-header { position: relative; }
}

main { flex: 1; }

.page-main {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.container {
  width: 100%;
  max-width: var(--wide-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Hero */
.hero {
  padding: 2.5rem 0 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.article-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lime);
  margin: 0 0 0.85rem;
}

.hero h1 em,
.hero h1 .accent { color: var(--lime); font-style: normal; }

.article-meta {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.lede { font-size: 1.125rem; color: var(--text-body); }

/* Code blocks */
pre, .code-block {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.15rem;
  overflow-x: auto;
  margin: 1.25rem 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text);
}

pre code, .code-block code {
  font-family: inherit;
  background: none;
  padding: 0;
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--surface);
  color: var(--lime);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.code-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

/* Tool cards */
.tool-grid {
  display: grid;
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

@media (min-width: 640px) {
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.tool-card:hover {
  border-color: var(--lime);
  box-shadow: 0 0 0 1px var(--lime-muted);
}

.tool-card__rank {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--lime);
  margin-bottom: 0.5rem;
}

.tool-card h3 { margin-top: 0; font-size: 1.1rem; }
.tool-card h3 a { color: var(--text); text-decoration: none; }
.tool-card h3 a:hover { color: var(--lime); }

.tool-card__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: var(--lime-muted);
  color: var(--lime);
  margin-bottom: 0.65rem;
}

.tool-card p { font-size: 0.95rem; margin-bottom: 0.75rem; }

.tool-card__meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

/* Comparison table */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.compare-table th,
.compare-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--surface);
}

.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: rgba(163, 230, 53, 0.04); }

.compare-table td:first-child { font-weight: 500; color: var(--text); }

/* Pros / cons */
.pros-cons {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0;
}

@media (min-width: 560px) {
  .pros-cons { grid-template-columns: 1fr 1fr; }
}

.pros-cons__col {
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.pros-cons__col--pros {
  background: var(--pros-bg);
  border: 1px solid var(--pros-border);
}

.pros-cons__col--cons {
  background: var(--cons-bg);
  border: 1px solid var(--cons-border);
}

.pros-cons__col h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.65rem;
}

.pros-cons__col--pros h4 { color: var(--lime); }
.pros-cons__col--cons h4 { color: var(--cons-fg); }

.pros-cons__col ul { margin: 0; padding-left: 1.2rem; }
.pros-cons__col li { margin-bottom: 0.35rem; }

/* Callout */
.callout {
  background: var(--surface);
  border-left: 3px solid var(--lime);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.callout strong { color: var(--text); }

/* Guide links */
.guide-cards {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}

@media (min-width: 600px) {
  .guide-cards { grid-template-columns: repeat(2, 1fr); }
}

.guide-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.15s;
}

.guide-card:hover {
  border-color: var(--lime);
  transform: translateY(-2px);
  text-decoration: none;
}

.guide-card__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.guide-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--text);
}

.guide-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* FAQ */
.faq-list { margin: 1.5rem 0; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.15rem 0;
}

.faq-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.faq-item p { margin: 0; font-size: 0.95rem; }

/* TOC */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.35rem;
  margin: 1.5rem 0 2rem;
}

.toc h2 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.95rem;
}

.toc li { margin-bottom: 0.35rem; }

/* Content sections */
.content-section { padding: 2.5rem 0 3rem; }

.prose h2:first-child { margin-top: 0; }

.prose ul, .prose ol {
  margin: 0 0 1em;
  padding-left: 1.35rem;
}

.prose li { margin-bottom: 0.4rem; }

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--lime); }

/* Footer */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.footer-brand { display: inline-block; text-decoration: none; margin-bottom: 0.75rem; }
.footer-logo { height: 30px; width: auto; }

.footer-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  max-width: 28rem;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { color: var(--text-body); text-decoration: none; }
.footer-links a:hover { color: var(--lime); }

.footer-sisters {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 0.75rem;
}

.footer-sisters-label {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text-body);
}

.footer-sisters a {
  color: var(--muted);
  text-decoration: none;
}

.footer-sisters a:hover { color: var(--lime); }

.footer-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer-bottom p { margin: 0; }

.footer-util a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.footer-util a:hover { color: var(--lime); }
.footer-util-sep { margin: 0 0.4rem; color: var(--border); }
