/*
  The landing page's own stylesheet.

  Deliberately NOT public/hr.css. The workbench is a data surface — dense
  tables, no decoration, read at 8am by somebody chasing an exception. This is
  a page somebody reads once while deciding whether to talk to us. Sharing one
  stylesheet between the two would compromise both.

  The palette is the platform's, from docs/branding.md, so the product does not
  look like a different company from chachisoftware.store.
*/

:root {
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-primary-light: #eff6ff;
  --color-cyan: #06b6d4;
  --color-emerald: #10b981;

  --brand-gradient: linear-gradient(135deg, #4f46e5 0%, #2563eb 35%, #06b6d4 70%, #10b981 100%);

  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.85);

  --text-heading: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;

  --border-subtle: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);

  --measure: 68ch;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg-main);
  color: var(--text-body);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { color: var(--text-heading); line-height: 1.25; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -0.02em; font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -0.01em; font-weight: 750; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--color-primary); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

/* ------------------------------------------------------------------ topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-heading);
}
.brand img { border-radius: 8px; }
.brand span { display: flex; flex-direction: column; line-height: 1.2; }
.brand strong { font-size: 1.05rem; letter-spacing: -0.01em; }
.brand small { color: var(--text-muted); font-size: 0.72rem; }

.topbar nav {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
  font-size: 0.92rem;
}
.topbar nav a { color: var(--text-body); text-decoration: none; }
.topbar nav a:hover { color: var(--color-primary); }

.topbar-cta { display: flex; gap: 0.6rem; }

/* -------------------------------------------------------------------- CTAs */

.btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 9px;
  font-weight: 650;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}
.btn-lg { padding: 0.8rem 1.6rem; font-size: 1.02rem; }

.btn-primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-primary-hover); }

.btn-ghost { background: var(--bg-surface); color: var(--text-heading); border-color: var(--border-subtle); }
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }

.btn:focus-visible,
.topbar nav a:focus-visible,
a:focus-visible { outline: 3px solid var(--color-cyan); outline-offset: 2px; }

/* ------------------------------------------------------------------- layout */

main { display: block; }

section {
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 3rem);
  max-width: 1120px;
  margin: 0 auto;
}

.band {
  max-width: none;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.band > h2, .band > .band-foot, .band > .band-lede, .band > .grid-2, .band > .grid-3, .band > .plain {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------- hero */

.hero { padding-top: clamp(3rem, 8vw, 5.5rem); }

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--color-primary-light);
  color: var(--color-primary-hover);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 { max-width: 20ch; }

.hero h1::after {
  content: "";
  display: block;
  width: 96px;
  height: 5px;
  margin-top: 1rem;
  border-radius: 999px;
  background: var(--brand-gradient);
}

.lede {
  max-width: var(--measure);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--text-body);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 1rem; }

.hero-note { max-width: var(--measure); color: var(--text-muted); font-size: 0.9rem; }

/* ------------------------------------------------------------------- notice */

.notice {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2rem);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 5px solid var(--color-cyan);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.notice h2 { font-size: 1.15rem; }
.notice p { max-width: var(--measure); }
.notice p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------------- cards */

.grid-2, .grid-3 { display: grid; gap: 1.25rem; margin-top: 1.75rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }

.card {
  padding: 1.4rem;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}
.band .card { background: var(--bg-main); }
.card p { margin-bottom: 0; font-size: 0.95rem; }

.band-foot, .band-lede { max-width: var(--measure); color: var(--text-muted); }
.band-foot { margin-top: 1.5rem; }

/* -------------------------------------------------------------------- steps */

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.4rem 1.4rem 1.4rem 3.6rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.3rem;
  top: 1.35rem;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}
.steps p { margin-bottom: 0; font-size: 0.95rem; }

/* -------------------------------------------------------------------- plain */

.plain { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.9rem; }
.plain li {
  padding-left: 1.1rem;
  border-left: 3px solid var(--border-subtle);
  max-width: var(--measure);
  font-size: 0.95rem;
}

/* ------------------------------------------------------------------- footer */

.sitefoot {
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 4vw, 3rem);
  background: var(--text-heading);
  color: #cbd5e1;
}
.sitefoot > div { display: flex; align-items: center; gap: 0.75rem; }
.sitefoot img { border-radius: 6px; background: #fff; padding: 2px; }
.sitefoot strong { color: #fff; }
.sitefoot a { color: #93c5fd; }
.sitefoot p { margin: 0.35rem 0; }
.legal { font-size: 0.82rem; color: #94a3b8; }
.legal code { color: #cbd5e1; }

/* --------------------------------------------------------------- narrow, motion */

@media (max-width: 640px) {
  .topbar nav { display: none; }
  .topbar-cta { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
