/* Easy Tech Solutions — site styles
   Plain CSS, no build step. Tokens live in :root; dark mode swaps them. */

:root {
  --bg: #ffffff;
  --surface: #f6f7f9;
  --surface-2: #eef1f4;
  --text: #1a1d24;
  --muted: #5b6472;
  --border: #e3e7ec;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-contrast: #ffffff;

  --maxw: 1080px;
  --radius: 12px;
  --gap: 1rem;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #171a21;
    --surface-2: #1e222b;
    --text: #e7e9ee;
    --muted: #9aa4b2;
    --border: #262b36;
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --accent-contrast: #0f1115;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 0 0 0.6em; }
h3 { font-size: 1.15rem; margin: 0 0 0.4em; }
p { margin: 0 0 1em; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand img { display: block; }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a {
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.7rem 0; border-top: 1px solid var(--border); }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { background: var(--surface); }

/* ---------- Sections ---------- */

main { display: block; }

.section { padding: 4rem 0; }
.section-tight { padding: 2.5rem 0; }
.section-surface { background: var(--surface); border-block: 1px solid var(--border); }

.hero { padding: 5rem 0 4rem; }
.hero p.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 40ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Card grids ---------- */

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.section-surface .card { background: var(--bg); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.product-card { display: flex; flex-direction: column; gap: 0.25rem; }
.card-mark { width: 40px; height: 40px; display: block; margin-bottom: 0.6rem; }
.product-mark { width: 52px; height: 52px; display: block; margin-bottom: 0.85rem; }
.product-card .tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  margin-bottom: 0.5rem;
}

/* ---------- Feature lists ---------- */

.feature-list { list-style: none; padding: 0; margin: 1rem 0; }
.feature-list li {
  padding: 0.4rem 0 0.4rem 1.6rem;
  position: relative;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

.meta-row { color: var(--muted); font-size: 0.95rem; }

/* ---------- Prose (privacy / terms / about) ---------- */

.prose { max-width: 68ch; }
.prose h2 { margin-top: 2.5rem; }
.prose h2:first-of-type { margin-top: 1rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin: 0.35rem 0; }
.prose .updated { color: var(--muted); font-size: 0.95rem; }

/* ---------- CTA band ---------- */

.cta {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
}
.cta h2 { margin-bottom: 0.4em; }
.cta .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 2.5rem 0;
  font-size: 0.95rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--text); }
.site-footer .muted { color: var(--muted); margin: 0; }

/* ---------- 404 ---------- */

.notfound { text-align: center; padding: 6rem 0; }
