/* Jotter Tech — styles.css
   Palette lives here as CSS variables. Swap the wordmark in assets/logo.svg
   or the placeholder <svg> block in index.html — see README.md. */

:root {
  --blue-900: #0b3d91;
  --blue-700: #0b5ed7;
  --blue-600: #1a73e8;
  --blue-100: #e8f1fd;
  --blue-050: #f4f9ff;
  --ink: #14203a;
  --ink-muted: #4a5872;
  --white: #ffffff;
  --border: #d7e3f5;
  --shadow: 0 1px 3px rgba(11, 61, 145, 0.08), 0 8px 24px rgba(11, 61, 145, 0.06);
  --radius: 14px;
  --max-width: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --blue-900: #cfe1ff;
    --blue-700: #6ea8fe;
    --blue-600: #8ab4ff;
    --blue-100: #16233f;
    --blue-050: #0d1730;
    --ink: #eef3fc;
    --ink-muted: #aebcda;
    --white: #0a1226;
    --border: #22335a;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

a { color: var(--blue-700); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 2px; }

img { max-width: 100%; display: block; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue-700);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}
.wordmark { display: inline-flex; align-items: center; text-decoration: none; }
.wordmark img { height: 30px; width: auto; }

.site-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--blue-700); }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--blue-050), var(--white));
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: var(--blue-900);
}
.hero .tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--ink-muted);
  max-width: 46ch;
  margin: 0 0 1.5rem;
}
.hero .cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  border: 2px solid transparent;
}
.btn-primary { background: var(--blue-700); color: var(--white); }
.btn-primary:hover { background: var(--blue-900); }
.btn-secondary { background: transparent; color: var(--blue-700); border-color: var(--blue-700); }
.btn-secondary:hover { background: var(--blue-100); }

/* Products */
.products { padding: 3.5rem 0; }
.products h2 {
  font-size: 1.6rem;
  color: var(--blue-900);
  margin: 0 0 0.5rem;
}
.section-intro {
  color: var(--ink-muted);
  margin: 0 0 2rem;
  max-width: 60ch;
}

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

.card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover, .card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--blue-600);
}
.card .card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--blue-100);
  color: var(--blue-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}
.card h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--blue-900);
}
.card p { margin: 0; color: var(--ink-muted); font-size: 0.95rem; }
.card .card-link {
  margin-top: auto;
  color: var(--blue-700);
  font-weight: 700;
  font-size: 0.9rem;
}

/* About */
.about {
  background: var(--blue-050);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}
.about h2 { color: var(--blue-900); margin-top: 0; }
.about p { color: var(--ink-muted); max-width: 65ch; }

/* Footer */
.site-footer {
  padding: 2rem 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* 404 */
.error-page {
  max-width: 520px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
  text-align: center;
}
.error-page h1 { font-size: 3rem; color: var(--blue-900); margin: 1.5rem 0 0.5rem; }

@media (max-width: 480px) {
  .site-header .wrap { min-height: 60px; }
  .hero { padding: 2.75rem 0 2rem; }
  .products, .about { padding: 2.5rem 0; }
}
