/* Kivo public site (ridekivo.co). Brand: charcoal #333, signal green #0aa74b, Barlow. */

@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("fonts/barlow-400.b9b596c7d618.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url("fonts/barlow-500.be69dfa36220.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("fonts/barlow-600.862116afc1c2.woff2") format("woff2"); }

:root {
  --bg: #f6f5f2;
  --bg-alt: #ecebe6;
  --surface: #ffffff;
  --ink: #1f2123;
  --ink-soft: #55595e;
  --brand-ink: #333333;
  --line: #d9d7d0;
  --green: #0aa74b;
  --green-text: #067a36;
  --green-hover: #08913f;
  --on-green: #ffffff;
  --panel: #1f2123;
  --panel-ink: #f2f2f0;
  --panel-soft: #9aa0a6;
  --error: #b42318;
  --radius: 14px;
  --wrap: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141516;
    --bg-alt: #1b1c1e;
    --surface: #202224;
    --ink: #ecebe8;
    --ink-soft: #a7abb0;
    --brand-ink: #ecebe8;
    --line: #34373a;
    --green: #16b457;
    --green-text: #3fd07c;
    --green-hover: #1fc865;
    --on-green: #06140b;
    --panel: #0d0e0f;
    --panel-ink: #ecebe8;
    --panel-soft: #8b9096;
    --error: #ff8a80;
  }
}

*, *::before, *::after { box-sizing: border-box; }
:root { --ease: cubic-bezier(0.22, 1, 0.36, 1); }
button, .nav-cta, .site-header nav a, .notify input[type=email] { transition: background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease); }
button:active, .nav-cta:active { transform: scale(0.98); }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.1; margin: 0 0 0.5em; }
h1 { font-weight: 600; font-size: clamp(2.3rem, 5.5vw, 3.9rem); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-weight: 600; font-size: clamp(1.75rem, 3.4vw, 2.5rem); letter-spacing: -0.01em; text-wrap: balance; }
h3 { font-weight: 500; font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--green-text); text-underline-offset: 3px; }
strong { font-weight: 600; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 760px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.visually-hidden, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* Header: see site-header.css */

/* Signup */
.notify { max-width: 520px; }
.notify-row { display: flex; gap: 8px; flex-wrap: wrap; }
.notify input[type=email] {
  flex: 1 1 220px; min-width: 0; font: inherit; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px;
  padding: 12px 16px; min-height: 48px;
}
.notify input[type=email]:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 30%, transparent); }
.notify input[aria-invalid=true] { border-color: var(--error); }
.notify button {
  flex: 0 0 auto; font: 500 1.02rem "Barlow", sans-serif;
  background: var(--green); color: var(--on-green); border: 0; border-radius: 10px;
  padding: 12px 20px; min-height: 48px; cursor: pointer;
}
.notify button:hover { background: var(--green-hover); }
.notify-note { color: var(--ink-soft); font-size: 0.92rem; margin: 12px 0 0; }
.notify-error { color: var(--error); font-weight: 500; font-size: 0.95rem; margin: 12px 0 0; }
.notify-done {
  background: var(--surface); border: 1.5px solid var(--green); border-left-width: 6px;
  border-radius: 10px; padding: 14px 16px; margin: 0;
}
.htmx-request button { opacity: 0.7; cursor: progress; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--ink-soft); font-size: 0.95rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer-row p { margin: 0; }
.footer-brand { color: var(--brand-ink); display: flex; }
.footer-brand svg { height: 20px; width: auto; }
