/* Curacheck marketing + developer site — brand theme.
   Clean white/mist base with deep teal-ink headings; emerald (#17b890 family) as the action +
   accent color, spread across buttons, icons, badges, and links — lively, not monochrome, and not
   all-teal. Self-hosted brand type, no CDN. Follows assets/brand/README.md: no emojis, no left-side
   border accents, sentence case, line-icon SVGs. */

/* Hanken Grotesk (brand type) — self-hosted variable font, latin subset. When editing this file,
   bump the ?v= on every page's stylesheet <link> so the change beats the CDN/browser cache. */
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/hanken-grotesk-latin.woff2") format("woff2");
}

:root {
  --dark: #14393f;          /* deep teal-ink: headings, wordmark "cura" */
  --ink: #33474b;           /* body text — readable slate, softer than the headings */
  --muted: #63727a;
  --faint: #9aa6ab;
  --bg: #ffffff;
  --mist: #f2faf7;          /* soft surface tint (barely-green) */
  --line: #e2ece9;
  --emerald: #17b890;       /* bright brand green: logo check, icon accents, highlights */
  --emerald-btn: #0f9d78;   /* action fill (white text) */
  --emerald-btn-h: #0b8465; /* action hover */
  --emerald-ink: #0a7357;   /* colored text: links, eyebrows (AA on white) */
  --emerald-soft: #e6f6f0;  /* tinted surface: icon tiles, pill */
  --radius: 12px;
  --maxw: 1080px;
  --font: "Hanken Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--emerald-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; color: var(--dark); }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1rem; color: var(--muted); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; font-weight: 700; color: var(--emerald-ink); margin: 0 0 0.75rem; }
.lucide { width: 20px; height: 20px; display: block; }

/* ── Header / nav ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; display: block; }
.brand-word { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.brand-word .w-cura { color: var(--dark); }
.brand-word .w-check { color: var(--emerald); }
.nav-links { display: flex; gap: 1.35rem; margin-left: auto; align-items: center; }
/* :not(.btn) so the plain nav links stay muted, but the Sign-in button keeps its
   own white-on-emerald fill — `.nav-links a` would otherwise outrank `.btn-primary`
   on specificity and paint the button text grey. */
.nav-links a:not(.btn) { color: var(--muted); font-weight: 550; font-size: 0.94rem; }
.nav-links a:not(.btn):hover { color: var(--emerald-ink); text-decoration: none; }
.nav-cta { margin-left: 0.25rem; }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 650; font-size: 0.95rem; padding: 0.7rem 1.15rem; border-radius: 10px; border: 1px solid transparent; cursor: pointer; transition: background .15s ease, transform .04s ease; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--emerald-btn); color: #fff; }
.btn-primary:hover { background: var(--emerald-btn-h); color: #fff; }
.btn-ghost { background: #fff; color: var(--dark); border-color: var(--line); }
.btn-ghost:hover { background: var(--mist); border-color: var(--emerald); color: var(--emerald-ink); }
.btn-lg { padding: 0.85rem 1.4rem; font-size: 1rem; }

/* ── Sections ─────────────────────────────────────────────────── */
section { padding: 72px 0; }
.section-soft { background: var(--mist); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head p { font-size: 1.05rem; }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero { padding: 88px 0 64px; text-align: center; }
.hero p.lead { font-size: 1.2rem; max-width: 620px; margin: 0 auto 1.75rem; color: var(--muted); }
.hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 0.45rem; background: var(--emerald-soft); color: var(--emerald-ink); font-weight: 650; font-size: 0.8rem; padding: 0.32rem 0.85rem; border-radius: 999px; margin-bottom: 1.25rem; }
.pill .lucide { width: 14px; height: 14px; }

/* ── Cards / grids ────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: border-color .15s ease, box-shadow .15s ease; }
.card:hover { border-color: var(--emerald); box-shadow: 0 6px 22px rgba(20, 57, 63, 0.06); }
.card h3 { margin-bottom: 0.35rem; }
.card p { margin: 0; font-size: 0.96rem; }
.card .ico { width: 42px; height: 42px; border-radius: 11px; background: var(--emerald-soft); color: var(--emerald-ink); display: grid; place-items: center; margin-bottom: 14px; }

/* Numbered badges (steps / primitives) */
.numbadge { width: 38px; height: 38px; border-radius: 999px; background: var(--emerald-btn); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 14px; }
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.step .num { counter-increment: step; width: 40px; height: 40px; border-radius: 999px; background: var(--emerald-btn); color: #fff; display: grid; place-items: center; font-weight: 700; }
.step .num::before { content: counter(step); }
.step h3 { margin-bottom: 0.15rem; }
.step p { margin: 0; }

/* ── Code blocks ──────────────────────────────────────────────── */
/* Terminal / code blocks: a neutral near-black box with white text — a real terminal, not a
   brand-tinted surface. Inline `code` chips stay emerald; only these full blocks are black. */
pre { background: #0d0e11; color: #f4f5f6; border-radius: var(--radius); padding: 18px 20px; overflow-x: auto; font-family: var(--mono); font-size: 0.86rem; line-height: 1.6; margin: 0 0 1.25rem; }
pre code { background: none; border: 0; padding: 0; color: inherit; }
code { font-family: var(--mono); font-size: 0.88em; }
p code, li code, td code { background: var(--emerald-soft); border: 1px solid var(--line); border-radius: 6px; padding: 0.05rem 0.35rem; color: var(--emerald-ink); }

/* ── Tables ───────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); }
th { background: var(--mist); font-weight: 650; color: var(--dark); }
tr:last-child td { border-bottom: 0; }

/* ── Prose (legal / docs) ─────────────────────────────────────── */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 2rem; font-size: 1.4rem; }
.prose h3 { margin-top: 1.5rem; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }

/* ── Footer ───────────────────────────────────────────────────── */
.site-footer { background: var(--mist); border-top: 1px solid var(--line); padding: 48px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 24px; margin-bottom: 32px; }
.footer-grid h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); margin: 0 0 0.9rem; }
.footer-grid a { display: block; color: var(--muted); font-size: 0.92rem; margin-bottom: 0.5rem; }
.footer-grid a:hover { color: var(--emerald-ink); text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--faint); font-size: 0.85rem; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 860px) {
  .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}
