/* FlowSnips shared design system: base layout, components, forms, cookie banner */
:root {
  --bg: #0b1420;
  --bg-2: #0a1220;
  --card: #141e30;
  --input: #0f1a29;
  --text: #e5e7eb;
  --muted: #9aa4b2;
  --accent: #3B82F6;
  --accent-2: #6366F1;
  --border: #24324a;
  --success: #10b981;
  --danger: #ef4444;
  --warn: #f59e0b;
  --info: #06b6d4;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body {
  min-height: 100%;
  font-family: ui-sans-serif, system-ui, Inter, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  line-height: 1.6;
}
body { min-width: 320px; }
a { color: inherit; }
p { color: var(--muted); margin-bottom: 10px; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { color: var(--text); line-height: 1.22; }
h1 {
  font-size: clamp(26px, 5vw, 42px);
  margin: 6px 0 8px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 900;
  letter-spacing: -0.02em;
}
h2 { margin: 0 0 10px; }
h3 { line-height: 1.3; }
.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 22px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 900;
}
.logo, .brand img { width: 48px; height: 48px; border-radius: 12px; flex: 0 0 auto; }
.wordmark, .brand span {
  font-weight: 900;
  font-size: 1.25rem;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
nav { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all .2s ease;
  display: inline-block;
}
nav a:hover { color: #fff; border-color: var(--accent); background: rgba(59,130,246,.1); transform: translateY(-1px); }
main { flex: 1 0 auto; }
footer { color: var(--muted); text-align: center; margin-top: auto; padding: 28px 0 8px; font-size: .92rem; }
footer a { color: var(--muted); text-decoration: none; margin: 0 8px; }
footer a:hover { color: var(--accent); }
.footer-links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.intro { color: var(--muted); max-width: 760px; margin-bottom: 18px; font-size: .98rem; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  margin-top: 18px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.3); border-color: rgba(59,130,246,.6); }
label, .field label { display: block; color: var(--muted); font-size: .9rem; margin-bottom: 6px; font-weight: 700; }
input, select, textarea {
  background: var(--input);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 10px;
  width: 100%;
  min-height: 44px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,.2); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #60a5fa; outline-offset: 3px; }
button, .btn-primary, .btn-secondary {
  border-radius: 10px;
  padding: 11px 18px;
  cursor: pointer;
  font-weight: 800;
  min-height: 44px;
  transition: all .2s ease;
}
button, .btn-primary { background: var(--accent); color: white; border: 0; }
button:hover, .btn-primary:hover { background: #2563EB; transform: translateY(-1px); }
button:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-secondary { background: #111827 !important; border: 1px solid var(--border) !important; color: var(--text) !important; }
.btn-secondary:hover { background: #1f2937 !important; border-color: var(--accent) !important; color: var(--accent) !important; }
.grid, .input-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 10px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; margin-top: 14px; }
.col { flex: 1 1 240px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.tiny { color: var(--muted); font-size: .92rem; margin-top: 10px; }
.result { display: none; }
.error-message, #err {
  color: #fecaca;
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.35);
  padding: 10px 12px;
  border-radius: 10px;
  margin-top: 12px;
  display: none;
  font-weight: 700;
}
.breadcrumbs { font-size: 13px; color: var(--muted); margin: 0 0 16px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.kpi { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 14px; }
.k { background: var(--input); border: 1px solid var(--border); border-radius: 12px; padding: 14px; text-align: center; }
.k small { display: block; color: var(--muted); margin-bottom: 6px; font-size: 12px; }
.k b { display: block; font-size: 1.35rem; color: var(--text); }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--border); background: #0e1a2a; color: #c9d3e1; margin-top: 14px; }
.faq details { border-top: 1px solid var(--border); padding: 12px 0; }
.faq details:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; font-weight: 800; color: #cbd5e1; }
.seo-section h2 { margin: 0 0 10px; color: var(--text); font-size: 18px; }
.seo-section h2 + p { margin-bottom: 14px; }
.also-try { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px 24px; margin-top: 32px; }
.also-try h3 { font-size: 16px; color: var(--text); margin-bottom: 12px; font-weight: 700; }
.also-try-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.also-try-link { background: var(--input); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; font-size: 14px; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 8px; transition: all .2s; }
.also-try-link:hover { border-color: var(--accent); color: var(--accent); }
.content-list { margin: 8px 0 0 18px; color: var(--muted); }
.content-list li { margin-bottom: 8px; }
.page-accent-bar { height: 4px; border-radius: 4px 4px 0 0; margin-bottom: 0; background: var(--accent); }
.tool-header-card { border-top: 3px solid var(--accent); }
.cookie-banner { position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 9999; max-width: 760px; margin: 0 auto; background: #101827; border: 1px solid var(--border); color: var(--text); border-radius: 16px; padding: 16px 18px; box-shadow: 0 20px 70px rgba(0,0,0,.35); display: none; }
.cookie-banner p { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: #cbd5e1; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions button { min-height: 40px; border-radius: 999px; padding: 8px 14px; border: 1px solid var(--border); cursor: pointer; width: auto; }
.cookie-accept { background: var(--accent); color: white; }
.cookie-decline { background: transparent; color: var(--text); }
.hero-results-hidden { display: none; }
.feat-pill-blue { background: rgba(59,130,246,.12); }
.feat-pill-green { background: rgba(16,185,129,.12); }
.feat-pill-purple { background: rgba(139,92,246,.12); }
.feat-pill-yellow { background: rgba(245,158,11,.12); }
.feat-pill-red { background: rgba(239,68,68,.12); }
.feat-pill-cyan { background: rgba(6,182,212,.12); }
.feat-pill-orange { background: rgba(249,115,22,.12); }
@media (max-width: 860px) { .grid, .input-grid, .kpi { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .container { padding: 18px; } header { align-items: flex-start; } .also-try-grid { grid-template-columns: 1fr; } nav a { margin: 4px 0 0; } button { width: 100%; } }
