/* Clavis landing — reuse-oriented site for municipalities.
   Brand: Clavis CI (M3 tokens). Light surfaces only; the deep blue is ink and
   accent, never a page background. Font: Noto Sans. */

:root {
  /* Brand — primary ramp */
  --primary: #1D47A4;      /* primary/40 — main */
  --primary-dark: #0F3E99; /* primary/30 */
  --primary-deep: #002378; /* primary/10 — headline ink */
  --primary-wash: #E6E9F4; /* primary/95 — tinted surface */
  --primary-line: #C1C9E5; /* primary/90 — hairlines on tint */

  /* Brand — accent */
  --secondary: #FBD916;    /* secondary/40 */

  /* Neutrals */
  --ink: #1D1B20;          /* neutral/10 */
  --muted: #605D64;        /* neutral/40 */
  --line: #E6E0E9;         /* neutral/90 */
  --surface: #FFFFFF;
  --bg: #FFFBFF;           /* neutral/99 */

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(29, 27, 32, .06), 0 8px 24px rgba(29, 71, 164, .07);
  --shadow-lift: 0 2px 4px rgba(29, 27, 32, .07), 0 18px 44px rgba(29, 71, 164, .12);

  --measure: 68ch;
  --wrap: 1120px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  font-family: 'Noto Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { color: var(--primary); }
a:hover { color: var(--primary-dark); }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; color: #fff; }

/* ── Topbar ─────────────────────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 48px);
  background: rgba(255, 251, 255, .88);
  backdrop-filter: blur(10px);
  border-block-end: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary-deep);
  text-decoration: none;
  letter-spacing: -.01em;
}

.topbar nav {
  display: flex;
  gap: clamp(14px, 3vw, 30px);
  font-size: .95rem;
  font-weight: 500;
}
.topbar nav a {
  color: var(--muted);
  text-decoration: none;
  padding-block: 4px;
  border-block-end: 2px solid transparent;
}
.topbar nav a:hover {
  color: var(--primary);
  border-block-end-color: var(--secondary);
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(48px, 8vw, 88px) clamp(20px, 5vw, 48px) clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-wash);
  padding: 6px 12px;
  border-radius: 999px;
  margin-block-end: 20px;
}

h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -.02em;
  font-weight: 700;
  color: var(--primary-deep);
  margin-block-end: 22px;
  text-wrap: balance;
}

.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: var(--muted);
  max-width: var(--measure);
  margin-block-end: 30px;
}
.lead strong { color: var(--ink); font-weight: 600; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lift);
}
.btn-ghost {
  border: 1.5px solid var(--primary-line);
  color: var(--primary);
  background: var(--surface);
}
.btn-ghost:hover { border-color: var(--primary); background: var(--primary-wash); }

/* Phone frame — crops the screenshot to its filled area (object-position: top). */
.hero-shot { display: flex; justify-content: center; }
.phone {
  width: min(300px, 78vw);
  aspect-ratio: 390 / 620;
  border-radius: 32px;
  padding: 10px;
  background: linear-gradient(160deg, var(--primary-deep), var(--primary));
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 24px;
  background: var(--surface);
}

/* ── Bands ──────────────────────────────────────────────────────────────── */

.band {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(48px, 7vw, 80px) clamp(20px, 5vw, 48px);
}
.band-tint {
  max-width: none;
  background: var(--primary-wash);
  border-block: 1px solid var(--primary-line);
}
.band-tint > * { max-width: var(--wrap); margin-inline: auto; }

h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -.015em;
  color: var(--primary-deep);
  margin-block-end: 14px;
  text-wrap: balance;
}

.section-lead {
  color: var(--muted);
  max-width: var(--measure);
  font-size: 1.05rem;
  margin-block-end: 34px;
}

h2 + .cards-3,
h2 + .cards-2,
h2 + .shots,
h2 + .steps { margin-block-start: 36px; }

/* ── Cards ──────────────────────────────────────────────────────────────── */

.cards-3, .cards-2 { display: grid; gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.band-tint .card { border-color: transparent; }
.card-plain { box-shadow: none; background: transparent; border-color: var(--line); }

.card h3 {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink);
  margin-block-end: 10px;
}
.card p { color: var(--muted); font-size: .97rem; }
.card ul { list-style: none; display: grid; gap: 9px; margin-block-end: 16px; }
.card li {
  color: var(--muted);
  font-size: .97rem;
  padding-inline-start: 26px;
  position: relative;
}
.card li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: .58em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--secondary);
}
.card-note {
  border-block-start: 1px solid var(--line);
  padding-block-start: 14px;
  font-size: .9rem !important;
}

/* ── Steps ──────────────────────────────────────────────────────────────── */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.steps li { padding-block-start: 6px; }
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  margin-block-end: 14px;
}
.steps h3 {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
  margin-block-end: 8px;
}
.steps p { color: var(--muted); font-size: .95rem; }

/* ── Screenshots ────────────────────────────────────────────────────────── */

/* One screenshot per row — at two-up they shrink below legibility. */
.shots { display: grid; gap: 34px; }
.shots figure {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lift);
}
.shots img {
  width: 100%;
  height: auto;
  border-block-end: 1px solid var(--line);
}
.shots figcaption {
  padding: 16px 20px;
  font-size: .95rem;
  color: var(--muted);
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-foot {
  border-block-start: 1px solid var(--line);
  background: var(--surface);
  padding: clamp(32px, 5vw, 48px) clamp(20px, 5vw, 48px);
}
.foot-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
  justify-content: space-between;
}
.foot-brand { display: flex; gap: 14px; align-items: center; }
.foot-brand p { font-size: .88rem; color: var(--muted); line-height: 1.55; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: .93rem; font-weight: 500; }
.foot-nav a { color: var(--primary); text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }

/* ── Legal pages ────────────────────────────────────────────────────────── */

.legal {
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 48px);
}
.legal h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-block-end: 28px; }
.legal h2 {
  font-size: 1.2rem;
  color: var(--ink);
  margin-block: 32px 10px;
}
.legal p, .legal li { color: var(--muted); margin-block-end: 12px; }
.legal ul { padding-inline-start: 22px; }
.legal .back { display: inline-block; margin-block-end: 26px; font-weight: 500; }

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-shot { order: -1; }
  .phone { width: min(250px, 66vw); }
  .cards-3, .cards-2, .shots { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .topbar nav a:not(:last-child) { display: none; }
  .steps { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .foot-inner { flex-direction: column; align-items: flex-start; }
}
