/* Reset, typography, layout helpers, buttons, forms. Depends on tokens.css */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--kc-font);
  font-size: var(--kc-fs-body);
  line-height: 1.6;
  color: var(--kc-ink);
  background: var(--kc-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.kc-lock { overflow: hidden; }
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
img { height: auto; } /* width/height attributes reserve space; CSS keeps the aspect ratio */
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--kc-gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--kc-font); line-height: 1.15; color: var(--kc-green-deep); letter-spacing: -.02em; }
h1 { font-size: var(--kc-fs-h1); font-weight: 800; }
h2 { font-size: var(--kc-fs-h2); font-weight: 800; }
h3 { font-size: var(--kc-fs-h3); font-weight: 700; }
p { color: var(--kc-mute); }

.kc-wrap { max-width: var(--kc-wrap); margin: 0 auto; padding: 0 var(--kc-gutter); }
.kc-section { padding: 64px 0 0; }
.kc-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kc-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--kc-gold); color: var(--kc-green-deep); padding: 10px 16px; border-radius: var(--kc-radius-sm); font-weight: 700; }
.kc-skip:focus { top: 12px; }

/* buttons */
.kc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 24px; border-radius: 12px; font-weight: 700; font-size: 15px;
  border: 2px solid var(--kc-green); background: var(--kc-surface); color: var(--kc-green);
  transition: transform .15s var(--kc-ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.kc-btn:hover { transform: translateY(-2px); }
.kc-btn svg { flex: none; }
.kc-btn:disabled, .kc-btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.kc-btn--fill { background: var(--kc-green); color: #fff; }
.kc-btn--fill:hover { background: var(--kc-green-deep); border-color: var(--kc-green-deep); }
.kc-btn--gold { background: var(--kc-gold); border-color: var(--kc-gold); color: var(--kc-green-deep); }
.kc-btn--ghost { border-color: transparent; background: transparent; }
.kc-btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.kc-btn--block { width: 100%; }

/* forms */
.kc-field { display: grid; gap: 6px; }
.kc-field label { font-weight: 600; font-size: var(--kc-fs-small); color: var(--kc-green-deep); }
.kc-input, .kc-select, .kc-textarea {
  width: 100%; height: 46px; padding: 0 16px; border: 1.5px solid var(--kc-line);
  border-radius: 12px; background: var(--kc-surface); font-size: 15px;
}
.kc-textarea { height: auto; min-height: 130px; padding: 12px 16px; resize: vertical; }
.kc-input:focus, .kc-select:focus, .kc-textarea:focus { outline: 3px solid var(--kc-gold); outline-offset: 1px; border-color: var(--kc-green); }
.kc-error { color: var(--kc-chilli); font-size: 13px; }

.kc-empty { padding: 40px 0; color: var(--kc-mute); text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
