/* SKOT Analytics website
   Brand colours are placeholders until Brand/ has the official palette.
   Change them here only: every page reads these tokens. */
:root {
  --brand: #0b3d6e;        /* deep navy */
  --brand-ink: #072a4d;
  --accent: #0fa3a3;       /* teal */
  --accent-soft: #e3f5f5;
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --surface: #ffffff;
  --text: #14202b;
  --muted: #536271;
  --line: #dde4eb;
  --on-brand: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 32, 48, .06), 0 8px 24px rgba(16, 32, 48, .06);
  --max: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #7cb8f0; --brand-ink: #a9d0f5; --accent: #3fd0cf; --accent-soft: #123536;
    --bg: #0d141b; --bg-alt: #121c25; --surface: #16212b; --text: #e6edf3; --muted: #9aabbb;
    --line: #24323f; --on-brand: #0d141b; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #7cb8f0; --brand-ink: #a9d0f5; --accent: #3fd0cf; --accent-soft: #123536;
  --bg: #0d141b; --bg-alt: #121c25; --surface: #16212b; --text: #e6edf3; --muted: #9aabbb;
  --line: #24323f; --on-brand: #0d141b; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 28px; } }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 100; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 750; letter-spacing: -.01em; font-size: 1.1rem; }
.logo svg { width: 32px; height: 32px; }
.logo span b { color: var(--accent); font-weight: 750; }
.nav-links { display: flex; gap: 6px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 550; padding: 8px 12px; border-radius: 8px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--bg-alt); }
.nav-links .btn { margin-left: 8px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; color: var(--text); cursor: pointer; font: inherit; }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .nav-links .btn { margin: 8px 0 0; text-align: center; }
}

/* Buttons */
.btn { display: inline-block; background: var(--brand); color: var(--on-brand) !important; text-decoration: none; font-weight: 600;
  padding: 12px 20px; border-radius: 10px; border: 0; cursor: pointer; font: inherit; font-weight: 600; transition: transform .15s, background .15s; }
.btn:hover { background: var(--brand-ink); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--text) !important; border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--bg-alt); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
section { padding: 72px 0; }
@media (min-width: 900px) { section { padding: 96px 0; } }
.alt { background: var(--bg-alt); }
.eyebrow { display: inline-block; color: var(--accent); font-weight: 650; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.section-head { max-width: 46rem; margin-bottom: 40px; }

/* Hero */
.hero { padding: 80px 0 72px; position: relative; overflow: hidden; }
@media (min-width: 900px) { .hero { padding: 112px 0 96px; } }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 70vw; height: 70vw; max-width: 820px; max-height: 820px;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 70%); z-index: -1; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.hero h1 .hl { color: var(--accent); }
.page-hero { padding: 72px 0 48px; border-bottom: 1px solid var(--line); }

/* Pipeline diagram */
.pipeline { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.pipeline ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pipeline li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 10px; background: var(--bg-alt); }
.pipeline li .n { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; background: var(--accent-soft); color: var(--accent); }
.pipeline li strong { display: block; font-size: .98rem; }
.pipeline li small { color: var(--muted); font-size: .86rem; }
.pipeline .cap { font-size: .8rem; color: var(--muted); margin: 14px 0 0; text-align: center; }

/* Cards and grids */
.grid { display: grid; gap: 20px; }
@media (min-width: 680px) { .grid.two, .grid.three, .grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.four { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card p { color: var(--muted); }
.card .more { margin-top: auto; font-weight: 600; text-decoration: none; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.icon svg { width: 22px; height: 22px; }

/* Stats */
.stats { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); padding: 26px 22px; }
.stat b { display: block; font-size: clamp(1.7rem, 3.4vw, 2.3rem); letter-spacing: -.02em; color: var(--brand); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .92rem; }

/* Solutions detail */
.solution { display: grid; gap: 32px; padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.solution:first-of-type { border-top: 0; }
@media (min-width: 900px) { .solution { grid-template-columns: .9fr 1.1fr; gap: 56px; } }
.tag { display: inline-block; font-size: .76rem; font-weight: 650; padding: 4px 10px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); color: var(--muted); margin: 0 6px 6px 0; }
.tag.status { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
ul.checks { list-style: none; padding: 0; margin: 0 0 1em; }
ul.checks li { position: relative; padding-left: 28px; margin-bottom: 10px; }
ul.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230fa3a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.note { font-size: .88rem; color: var(--muted); border-left: 3px solid var(--accent); padding: 6px 0 6px 14px; }
.subnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.subnav a { text-decoration: none; font-size: .9rem; font-weight: 550; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.subnav a:hover { color: var(--text); border-color: var(--accent); }

/* Steps */
.steps { counter-reset: s; display: grid; gap: 20px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps .card::before { counter-increment: s; content: "0" counter(s); font-weight: 700; color: var(--accent); margin-bottom: 10px; }

/* CTA band */
.cta { background: var(--brand); color: var(--on-brand); border-radius: calc(var(--radius) + 6px); padding: 48px 28px; text-align: center; }
.cta h2 { color: var(--on-brand); }
.cta p { opacity: .85; max-width: 38rem; margin: 0 auto 24px; }
.cta .btn { background: var(--on-brand); color: var(--brand) !important; }
.cta .btn:hover { background: var(--accent-soft); }

/* Forms */
form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-status { font-size: .92rem; color: var(--muted); min-height: 1.4em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; color: var(--muted); font-size: .92rem; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h4 { color: var(--text); font-size: .9rem; margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.theme-toggle { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: 4px 10px; font: inherit; font-size: .85rem; cursor: pointer; }
