/* Gridwattle local site styles — no external CDNs or font services. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("./fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("./fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("./fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("./fonts/inter-latin-700-normal.woff2") format("woff2");
}

:root {
  --navy: #0b1c2e;
  --navy-2: #123456;
  --blue: #2563eb;
  --blue-lt: #60a5fa;
  --ink: #0f172a;
  --text: #1e293b;
  --muted: #475569;
  --line: #e2e8f0;
  --paper: #f8fafc;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 16px 40px rgba(11, 28, 46, 0.12);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand {
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 13px;
  text-decoration: none;
}
.brand:hover { text-decoration: none; color: var(--blue-lt); }
.nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.nav a { color: #cbd5e1; font-size: 14px; font-weight: 500; }
.nav a[aria-current="page"] { color: var(--white); }

.hero {
  background: linear-gradient(105deg, var(--navy) 0%, #0f3f6c 55%, #1d4ed8 140%);
  color: var(--white);
  padding: 72px 0 80px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.03em; }
.hero .lede { font-size: 1.15rem; max-width: 40rem; color: #e2e8f0; margin: 0 0 28px; }
.kicker { color: var(--blue-lt); font-weight: 600; letter-spacing: 0.08em; font-size: 12px; text-transform: uppercase; margin: 0 0 12px; }
.btn {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.ghost { background: transparent; border: 1px solid #93c5fd; color: #dbeafe; margin-left: 8px; }

.section { padding: 64px 0; }
.section h2 { font-size: 1.7rem; letter-spacing: -0.02em; margin: 0 0 16px; color: var(--ink); }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.card h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--ink); }
.card p { margin: 0; color: var(--muted); }

.product {
  display: grid;
  gap: 32px;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}
.product ul { margin: 12px 0 0; padding-left: 1.15rem; color: var(--muted); }
.placeholder-shot {
  background: linear-gradient(180deg, #0b1c2e, #163a5f);
  border-radius: 20px;
  min-height: 240px;
  color: #cbd5e1;
  padding: 24px;
  box-shadow: var(--shadow);
}
.placeholder-shot strong { color: var(--white); display: block; margin-bottom: 8px; }

.doc { padding: 48px 0 80px; }
.doc-body {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 48px);
}
.doc-body h1 { margin-top: 0; letter-spacing: -0.03em; }
.doc-body h2 { margin-top: 2em; font-size: 1.25rem; }
.doc-body h3 { margin-top: 1.4em; font-size: 1.05rem; }
.doc-body p, .doc-body li { color: var(--text); }
.meta { color: var(--muted); font-size: 14px; }
.placeholder { background: #f1f5f9; padding: 0 4px; border-radius: 4px; font-family: ui-monospace, monospace; font-size: 0.92em; }

.site-footer {
  background: var(--navy);
  color: #94a3b8;
  padding: 28px 0;
  font-size: 14px;
}
.site-footer a { color: #cbd5e1; }
.site-footer .bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 800px) {
  .product { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 56px; }
  .btn.ghost { margin: 8px 0 0; }
}
