/* VisionQuantech tools site — single shared stylesheet, no frameworks */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --ink: #17202b;
  --ink-soft: #4b5a6a;
  --line: #e4e9f0;
  --brand: #0b6b4f;
  --brand-dark: #08573f;
  --accent: #e8f5ef;
  --warn: #b45309;
  --radius: 12px;
  --max: 1060px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

/* layout */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
main { display: block; }
section.block { padding: 44px 0; }
section.block + section.block { border-top: 1px solid var(--line); }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand span { color: var(--brand); }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: .95rem;
  padding: 10px 12px; border-radius: 8px;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--brand-dark); background: var(--accent); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 1rem; }

/* hero */
.hero { background: linear-gradient(180deg, var(--accent), var(--bg)); padding: 64px 0 48px; }
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); line-height: 1.2; margin: 0 0 16px; letter-spacing: -0.01em; }
.hero p.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 46rem; margin: 0 0 24px; }
.btn {
  display: inline-block; background: var(--brand); color: #fff; font-weight: 700;
  text-decoration: none; padding: 13px 22px; border-radius: 10px; border: 0; cursor: pointer;
  font-size: 1rem; line-height: 1.2;
}
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn.secondary { background: #fff; color: var(--brand-dark); border: 2px solid var(--brand); }
.btn.secondary:hover { background: var(--accent); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  background: #fff; display: flex; flex-direction: column; gap: 10px;
}
.card h3 { margin: 0; font-size: 1.2rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--brand-dark); }
.card p { margin: 0; color: var(--ink-soft); font-size: .98rem; flex: 1; }
.card .tag { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-dark); }
.card .go { font-weight: 700; }

/* prose */
.prose h2 { font-size: 1.55rem; margin: 2.2em 0 .6em; letter-spacing: -0.01em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin: 1.6em 0 .4em; }
.prose p, .prose li { color: var(--ink); }
.prose .answer { font-size: 1.05rem; }
ul.tick { list-style: none; padding: 0; }
ul.tick li { padding-left: 28px; position: relative; margin: 10px 0; }
ul.tick li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }

/* steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
.steps li {
  counter-increment: step; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 18px 64px; position: relative; background: #fff;
}
.steps li::before {
  content: counter(step); position: absolute; left: 18px; top: 16px;
  width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.steps li strong { display: block; margin-bottom: 4px; }

/* forms */
form.tool { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin: 24px 0; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field small { display: block; color: var(--ink-soft); margin-top: 4px; font-size: .88rem; }
.field input[type="text"], .field input[type="tel"], .field input[type="number"],
.field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 1rem; font-family: inherit; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-row label {
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 16px; cursor: pointer;
  font-weight: 600; background: #fff;
}
.radio-row input { accent-color: var(--brand); margin-right: 6px; }

/* results */
.result { border: 2px solid var(--brand); border-radius: var(--radius); padding: 24px; margin: 24px 0; background: #fff; }
.result.hidden { display: none; }
.template { border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin: 14px 0; background: var(--bg-soft); }
.template p.msg { margin: 0 0 10px; font-size: 1.02rem; }
.copy-btn {
  background: #fff; border: 1px solid var(--brand); color: var(--brand-dark); font-weight: 700;
  border-radius: 8px; padding: 8px 14px; cursor: pointer; font-size: .9rem;
}
.copy-btn:hover { background: var(--accent); }
.copy-btn.copied { background: var(--brand); color: #fff; border-color: var(--brand); }
.big-number { font-size: 2.4rem; font-weight: 800; color: var(--brand-dark); margin: 4px 0; }
.calc-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0; }
.calc-cell { border: 1px solid var(--line); border-radius: 10px; padding: 16px; background: var(--bg-soft); }
.calc-cell h4 { margin: 0 0 6px; font-size: .95rem; color: var(--ink-soft); }
.math { background: #0f172a; color: #e2e8f0; border-radius: 10px; padding: 18px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92rem; overflow-x: auto; margin: 18px 0; }
.math .c { color: #94a3b8; }

/* faq */
details.faq { border: 1px solid var(--line); border-radius: 10px; margin: 12px 0; background: #fff; }
details.faq summary { padding: 16px 18px; font-weight: 700; cursor: pointer; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; float: right; color: var(--brand); font-weight: 800; }
details.faq[open] summary::after { content: "–"; }
details.faq .faq-body { padding: 0 18px 18px; color: var(--ink); }
details.faq .faq-body p:first-child { margin-top: 0; }

/* pricing */
.price-box { border: 2px solid var(--brand); border-radius: var(--radius); padding: 28px; margin: 24px 0; background: #fff; }
.price-box .pilot { font-size: 1.6rem; font-weight: 800; color: var(--brand-dark); }

/* tables */
table.data { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .98rem; }
table.data th, table.data td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; }
table.data th { background: var(--bg-soft); }

/* ads placeholders */
.ad-slot { border: 1px dashed #c3ccd6; border-radius: 8px; color: #8a97a5; text-align: center; padding: 18px; margin: 28px 0; font-size: .85rem; background: #fafbfc; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); margin-top: 40px; padding: 40px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.foot-grid h4 { margin: 0 0 10px; font-size: .95rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin: 8px 0; }
.foot-grid a { color: var(--ink-soft); text-decoration: none; font-size: .95rem; }
.foot-grid a:hover { color: var(--brand-dark); }
.foot-note { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .88rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* misc */
.breadcrumb { font-size: .88rem; color: var(--ink-soft); margin: 18px 0 0; }
.breadcrumb a { text-decoration: none; }
.kicker { color: var(--brand-dark); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin: 0 0 10px; }
.note { background: #fffbeb; border: 1px solid #f5d78e; border-radius: 10px; padding: 16px 18px; margin: 20px 0; font-size: .96rem; }
.cta-band { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 36px; margin: 40px 0; text-align: center; }
.cta-band h2 { margin: 0 0 10px; color: #fff; }
.cta-band p { color: #e6f4ec; margin: 0 0 20px; }
.cta-band .btn { background: #fff; color: var(--brand-dark); }
.cta-band .btn:hover { background: var(--accent); }

@media (max-width: 820px) {
  .cards { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .calc-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: inline-block; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; border-bottom: 1px solid var(--line); padding: 10px 20px 16px; }
  .nav-links.open { display: flex; }
  .site-header .wrap { position: relative; }
  section.block { padding: 32px 0; }
}
