/* AnalytIQ marketing site. One file, system fonts, no framework. */
:root {
  --ink: #0b1726;
  --ink-2: #13243a;
  --ink-3: #1c3350;
  --text: #1d2939;
  --muted: #5b6b80;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --teal: #0fb5a6;
  --teal-d: #0a8f83;
  --teal-l: #e3f7f5;
  --amber: #f5a524;
  --amber-l: #fff4e0;
  --red: #e5484d;
  --green: #2fb36a;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.65 var(--font); color: var(--text); background: var(--bg); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--teal-d); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--ink); padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
.hp { position: absolute; left: -5000px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.soft { background: var(--bg-soft); }
.section.tight { padding: 40px 0; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head.center { text-align: center; margin-inline: auto; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-d); margin-bottom: .7em; }
.lede { font-size: 1.15rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font: 650 1rem/1.2 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, transform .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-d); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .92rem; }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* header */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.6) blur(10px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.logo b { color: var(--teal-d); font-weight: 800; }
.logo-light { color: #fff; }
.logo-light b { color: var(--teal); }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { color: var(--text); text-decoration: none; font-size: .95rem; font-weight: 550; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current] { color: var(--teal-d); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 2px; background: var(--ink); position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; inset: 68px 0 auto; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 20px; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 14px; }
  .nav-login { padding: 12px 4px; }
}

/* hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(15,181,166,.25), transparent 60%), linear-gradient(180deg, var(--ink), var(--ink-2)); color: #c9d6e5; padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 88px); overflow: hidden; }
.hero h1, .hero h2 { color: #fff; }
.hero .eyebrow { color: var(--teal); }
.hero .lede { color: #b6c5d8; font-size: 1.2rem; max-width: 620px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.hero-proof li::before { content: "✓"; color: var(--teal); font-weight: 800; margin-right: 8px; }
.hero.compact { padding: clamp(48px, 6vw, 80px) 0; }
.hero.compact .hero-grid { grid-template-columns: 1.2fr .8fr; }
@media (max-width: 900px) { .hero-grid, .hero.compact .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

/* product mock */
.mock { background: #0f1f33; border: 1px solid #23405f; border-radius: 16px; padding: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.45); font-size: .8rem; color: #9fb3c8; }
.mock-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a4566; }
.mock-bar span { margin-left: 8px; font-family: var(--mono); font-size: .72rem; }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { background: #142a43; border-radius: 10px; padding: 12px; }
.tile .k { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: #7f97b2; }
.tile .v { display: block; font-size: 1.35rem; font-weight: 750; color: #fff; margin-top: 2px; }
.tile .v small { font-size: .7rem; color: #7f97b2; font-weight: 500; }
.tile.wide { grid-column: span 3; }
.tile.two { grid-column: span 2; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: .68rem; font-weight: 700; }
.pill.ok { background: rgba(47,179,106,.18); color: #5fd894; }
.pill.warn { background: rgba(245,165,36,.18); color: #ffc461; }
.pill.bad { background: rgba(229,72,77,.18); color: #ff8a8d; }
.gauge { display: flex; align-items: center; gap: 12px; }
.gauge svg { width: 64px; height: 64px; flex: none; }

/* logos / stats strip */
.strip { border-bottom: 1px solid var(--line); background: #fff; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 32px 0; }
.stat b { display: block; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* cards + grids */
.cards { display: grid; gap: 22px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .cards.three, .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards.two, .cards.three, .cards.four { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--teal-d); }
.card p:last-child { margin-bottom: 0; }
.card.link-card { position: relative; transition: transform .15s, border-color .15s; }
.card.link-card:hover { transform: translateY(-3px); border-color: var(--teal); }
.card .more { font-weight: 650; text-decoration: none; }
.card .more::after { content: " →"; }
.icon { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; background: var(--teal-l); color: var(--teal-d); margin-bottom: 16px; }
.icon.amber { background: var(--amber-l); color: #b06d00; }
.icon svg { width: 24px; height: 24px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.rev > :first-child { order: 0; } }
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 30px; margin-bottom: .6em; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--teal-l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%230a8f83' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-top: 52px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 800; }
.steps h3 { font-size: 1.08rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.panel { background: var(--ink); color: #c9d6e5; border-radius: 16px; padding: 32px; }
.panel h3, .panel h2 { color: #fff; }

table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 1.4em; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-soft); color: var(--ink); font-weight: 700; }
tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 650; color: var(--ink); padding: 16px 32px 16px 0; list-style: none; position: relative; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; color: var(--teal-d); }
.faq details[open] summary::after { content: "–"; }
.faq-a { padding: 0 0 12px; color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--ink) 0%, var(--ink-3) 100%); color: #c9d6e5; }
.cta-band h2 { color: #fff; }
.cta-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 860px) { .cta-row { grid-template-columns: 1fr; } .cta-actions { justify-content: flex-start; } }

/* forms */
.form-card { padding: 30px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; flex: 1; }
.field-row { display: flex; gap: 16px; }
@media (max-width: 560px) { .field-row { flex-direction: column; gap: 0; } }
label { font-size: .9rem; font-weight: 600; color: var(--ink); }
input, select, textarea { font: inherit; font-size: 1rem; padding: 11px 13px; border: 1.5px solid #cfd8e3; border-radius: 9px; background: #fff; color: var(--text); width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(15,181,166,.2); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--red); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 450; font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--teal); }
.form-msg { margin: 12px 0 0; font-weight: 600; min-height: 1px; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: var(--red); }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-form input[type=email] { flex: 1 1 180px; }
.inline-form .form-msg { flex-basis: 100%; }

/* breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; font-size: .85rem; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: inherit; opacity: .85; }
.hero .crumbs { color: #9fb3c8; }

/* blog */
.post-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 48px 0 36px; margin-bottom: 40px; }
.byline { font-size: .9rem; color: var(--muted); margin: 0; }
.prose { padding-bottom: 64px; }
.prose h2 { margin-top: 1.8em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.5em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.5em 0; padding: 14px 20px; border-left: 4px solid var(--teal); background: var(--teal-l); border-radius: 0 10px 10px 0; }
.prose .callout { background: var(--amber-l); border: 1px solid #f5d79a; border-radius: 12px; padding: 18px 22px; margin: 1.5em 0; }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--bg-soft); padding: 2px 6px; border-radius: 5px; }
.toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin: 0 0 2em; }
.toc strong { display: block; margin-bottom: 6px; color: var(--ink); }
.toc ol { margin: 0; }
.post-card .eyebrow { margin-bottom: .5em; }

/* calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } .result { position: static; } }
.calc fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px 6px; margin: 0 0 18px; background: #fff; }
.calc legend { font-weight: 750; color: var(--ink); padding: 0 6px; }
.calc .hint { font-size: .8rem; color: var(--muted); font-weight: 450; }
.result { position: sticky; top: 90px; }
.result .big { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: #fff; letter-spacing: -.02em; line-height: 1.1; margin: 6px 0 4px; }
.result dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 20px 0; }
.result dt { color: #9fb3c8; }
.result dd { margin: 0; color: #fff; font-weight: 700; text-align: right; }
.result .note { font-size: .8rem; color: #8aa0b8; }

/* footer */
.site-foot { background: var(--ink); color: #9fb3c8; padding: 64px 0 24px; font-size: .94rem; }
.site-foot a { color: #c9d6e5; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr) 1.5fr; gap: 32px; }
.foot-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: 14px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 8px; }
.foot-brand p { margin-top: 14px; }
.foot-news input { background: #13243a; border-color: #2a4566; color: #fff; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid #1f3652; margin-top: 48px; padding-top: 20px; font-size: .85rem; }
.foot-base p { margin: 0; }
@media (max-width: 1040px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand, .foot-news { grid-column: 1 / -1; } }

.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: none; }
.sticky-cta .btn { width: 100%; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
@media (max-width: 760px) { .sticky-cta:not([hidden]) { display: block; } body { padding-bottom: 0; } }

.notfound { text-align: center; padding: 120px 0; }

/* WhatsApp + social + contact details */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 45; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .15s; }
.wa-float:hover { transform: scale(1.06); color: #fff; }
@media (max-width: 760px) { .wa-float { bottom: 80px; right: 14px; width: 52px; height: 52px; } }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: #13243a; color: #c9d6e5; }
.social a:hover { background: var(--teal-d); color: #fff; text-decoration: none; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list strong { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1da851; color: #fff; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
