/* Klk IA — landing site. Light marketing theme.
   Brand colors come from brand/palette.css (single source of truth for the
   Klk IA green/orange palette) — do not hand-pick new hex values here.
   Green is primary (buttons, links, structural accents); orange is a
   sparing accent (step numbers, FAQ marker). */

@import url("brand/palette.css");

:root {
  --brand-forest: var(--brand-green);
  --brand-deep: var(--brand-green-deep);      /* passes AA as body-size text */
  --brand-wash: var(--brand-green-wash);
  --brand-line: var(--brand-green-line);

  --ink: #0d1411;
  --ink-soft: #4a5a52;
  --bg: #ffffff;
  --bg-alt: #f7faf8;
  --line: #e2e8e4;

  --radius: 14px;
  --gutter: clamp(1rem, 5vw, 2.5rem);
  --measure: 68rem;

  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; }

a { color: var(--brand-deep); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: 1.125rem; }

p { margin: 0 0 1rem; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-deep);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── Brand mark ─────────────────────────────────────────────── */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex: none;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name b { font-size: 0.95rem; font-weight: 650; letter-spacing: -0.01em; }
.brand-name span {
  margin-top: 0.2rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ── Header ─────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
  flex-wrap: wrap;
}
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 2vw, 1.25rem);
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 550;
}
.site-nav a:hover { color: var(--brand-deep); }

/* ── Buttons ────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
}
.btn.btn-primary { background: var(--brand-deep); color: #fff; }
.btn.btn-primary:hover { background: #0a6440; }
.btn.btn-ghost { border-color: var(--brand-line); background: #fff; color: var(--brand-deep); }
.btn.btn-ghost:hover { background: var(--brand-wash); }
.btn-sm { padding: 0.45rem 1.1rem; font-size: 0.85rem; }

.lang-toggle {
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}
.lang-toggle:hover { color: var(--brand-deep); border-color: var(--brand-line); }

/* ── Sections ───────────────────────────────────────────────── */

section { padding-block: clamp(3rem, 8vw, 5.5rem); }
section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.lede { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--ink-soft); max-width: 40rem; }

.eyebrow {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

/* Hero */
.hero {
  padding-top: clamp(2.5rem, 7vw, 4.5rem);
  background:
    radial-gradient(60rem 30rem at 85% -10%, var(--brand-wash), transparent 70%);
}
.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 62rem) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}
.hero h1 { margin-top: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Lead form */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 4vw, 1.75rem);
  box-shadow: 0 1px 2px rgba(13, 20, 17, 0.04), 0 12px 32px -20px rgba(13, 20, 17, 0.35);
}
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.field input {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
.field input:focus-visible { border-color: var(--brand-forest); }
.form-note { font-size: 0.8rem; color: var(--ink-soft); margin: 0.75rem 0 0; }
.form-status {
  margin-top: 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: var(--brand-wash);
  border: 1px solid var(--brand-line);
  color: var(--brand-deep);
  font-size: 0.85rem;
}
.form-status[hidden] { display: none; }

/* Grids */
.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  margin-top: 2rem;
}
.grid .card h3 { margin-bottom: 0.35rem; }
.grid .card p:last-child { margin-bottom: 0; }

/* Steps */
.steps { counter-reset: step; }
.steps .card::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.9rem;
  border-radius: 999px;
  background: var(--brand-orange-wash);
  color: var(--brand-orange-deep);
  font-weight: 700;
}

/* Not-a-bot callout */
.callout {
  margin-top: 2rem;
  border-left: 4px solid var(--brand-forest);
  background: var(--brand-wash);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: clamp(1.25rem, 4vw, 1.75rem);
}
.callout p:last-child { margin-bottom: 0; }

/* Pricing */
.price-card { max-width: 32rem; margin-top: 2rem; }
.price-card ul { margin: 1rem 0 1.5rem; padding-left: 1.1rem; }
.price-card li { margin-bottom: 0.4rem; }

/* FAQ */
.faq { margin-top: 2rem; max-width: 46rem; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
}
.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ' +'; color: var(--brand-orange); font-weight: 700; }
.faq details[open] summary::after { content: ' –'; }
.faq details p { margin: 0.75rem 0 0; color: var(--ink-soft); }

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

.legal { max-width: 46rem; }
.legal h2 { margin-top: 2.5rem; font-size: 1.4rem; }
.legal h3 { margin-top: 1.5rem; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.4rem; }

.meta { color: var(--ink-soft); font-size: 0.9rem; }

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

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding-block: 2.5rem;
  padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px));
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--brand-deep); text-decoration: underline; }
.site-footer .meta { margin: 1.5rem 0 0; font-size: 0.8rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
