/* EAV Solutions website. Plain CSS, no build step. Colours follow the system light/dark setting. */
:root {
  --paper: #F3F5F9;
  --sheet: #FFFFFF;
  --ink: #161E2C;
  --muted: #5A6579;
  --rule: #D8DEE7;
  --accent: #2347C5;
  --accent-ink: #FFFFFF;
  --accent-soft: #E4E9FB;
  --c0: #CF7F00; --c1: #0072B2; --c2: #C4609A;
  --shadow: 0 1px 0 rgba(22, 30, 44, .05), 0 10px 28px -14px rgba(22, 30, 44, .28);
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1080px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0D1118; --sheet: #161C26; --ink: #E3E8F1; --muted: #9AA5B8; --rule: #2B3342;
    --accent: #8EA4FF; --accent-ink: #0D1118; --accent-soft: #1E2745;
    --c0: #F0A93A; --c1: #4FA6E6; --c2: #E58BC0;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 12px 30px -14px rgba(0, 0, 0, .75);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--body);
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 740px; }
.muted { color: var(--muted); }
.eyebrow { font: 500 .8rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; display: block; }

/* header */
.site-head { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 1.15rem/1 var(--display); letter-spacing: -.01em; }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand small { font: 500 .72rem/1 var(--mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-left: 2px; }
.site-nav { display: flex; gap: 4px 20px; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .97rem; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* sections */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--rule); }
.hero { padding: 84px 0 76px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: center; }
.hero p.lead { font-size: 1.22rem; color: var(--muted); max-width: 34em; }
.hero-art { justify-self: center; width: min(100%, 300px); }
@media (max-width: 800px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { width: min(70%, 240px); justify-self: start; }
  section { padding: 56px 0; }
  .hero { padding: 56px 0; }
}

/* the home page picture: each app's icon, plus an open space for the next one */
.icon-grid { display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); gap: 18px; padding: 22px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 26px; box-shadow: var(--shadow); }
.icon-grid img, .icon-grid .next { width: 100%; aspect-ratio: 1; border-radius: 22.5%; }
.icon-grid img { box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 6px 14px -8px rgba(0,0,0,.4); }
.icon-grid .next { display: grid; place-items: center; border: 2px dashed var(--rule); color: var(--muted); font: 600 2.4rem/1 var(--display); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1.5px solid var(--accent); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { color: var(--accent); background: transparent; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* project cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 30px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--sheet); border: 1px solid var(--rule); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.card .icon { width: 72px; height: 72px; border-radius: 17px; box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 4px 12px -6px rgba(0,0,0,.35); }
.card h3 { margin: 4px 0 0; }
.card p { margin: 0; color: var(--muted); }
.card .more { margin-top: auto; padding-top: 6px; font-weight: 600; }
.tag { display: inline-block; font: 500 .74rem/1 var(--mono); letter-spacing: .04em; padding: 6px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); align-self: flex-start; }

/* two-column feature rows */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 20px; } }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.points li { padding-left: 30px; position: relative; }
.points li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 4px; background: var(--accent); }
.points li:nth-child(3n+2)::before { background: var(--c0); }
.points li:nth-child(3n+3)::before { background: var(--c2); border-radius: 50%; }

/* app page header */
.app-head { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.app-head img { width: 120px; height: 120px; border-radius: 27px; box-shadow: var(--shadow); }
.app-head h1 { margin: 0 0 6px; }
.app-head p { margin: 0; font-size: 1.2rem; color: var(--muted); }

/* contact block */
.contact { background: var(--sheet); border: 1px solid var(--rule); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.contact .email { font: 700 clamp(1.2rem, 3vw, 1.6rem)/1.2 var(--display); word-break: break-word; }

/* long-form pages (privacy, support) */
.prose h2 { margin-top: 2em; font-size: 1.7rem; scroll-margin-top: 20px; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose .summary { background: var(--accent-soft); border-radius: 14px; padding: 18px 20px; }
.prose .summary p:last-child, .prose .summary ul:last-child { margin-bottom: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 6px 12px; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--sheet); font-size: .93rem; }
details { border: 1px solid var(--rule); border-radius: 12px; background: var(--sheet); padding: 0 18px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 600; padding: 14px 0; }
details[open] summary { border-bottom: 1px solid var(--rule); margin-bottom: 12px; }

/* footer */
.site-foot { border-top: 1px solid var(--rule); padding: 36px 0 44px; font-size: .9rem; color: var(--muted); }
.site-foot .wrap { display: grid; gap: 16px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-links a { color: var(--ink); }
.legal { max-width: 60em; margin: 0; }
