/* ── Kova AI landing — design tokens mirrored from the app ── */
:root {
  --canvas: #ffffff;
  --ink: #0a0a0a;
  --text2: rgba(0, 0, 0, 0.62);
  --text3: rgba(0, 0, 0, 0.42);
  --card-border: rgba(0, 0, 0, 0.08);
  --chip: #f4f4f5;
  --amber: #f59e0b;
  --radius: 22px;
  --shadow: 0 2px 7px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── nav ── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 22px 24px;
}
.nav-logo img { height: 34px; width: auto; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text2);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-link:hover { color: var(--ink); background: var(--chip); }

/* ── store badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  padding: 10px 18px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.badge:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22); }
.badge-icon { width: 24px; height: 24px; flex: none; }
.badge span { display: flex; flex-direction: column; line-height: 1.15; }
.badge small { font-size: 10px; font-weight: 500; opacity: 0.75; letter-spacing: 0.02em; }
.badge strong { font-size: 16.5px; font-weight: 700; }
.badge-sm { padding: 7px 13px; border-radius: 11px; gap: 8px; }
.badge-sm .badge-icon { width: 18px; height: 18px; }
.badge-sm small { font-size: 8px; }
.badge-sm strong { font-size: 12.5px; }

/* ── hero ── */
.hero {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 56px 24px 40px;
}
.hero-copy { flex: 1.05; min-width: 0; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--chip);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 26px;
}
.chip { gap: 5px; }
.grad {
  background: linear-gradient(90deg, #7C3AED, #3B52E8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

h1 {
  font-size: clamp(40px, 5.6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-bottom: 22px;
}

.sub {
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--text2);
  max-width: 480px;
  margin-bottom: 32px;
}

.badges { display: flex; flex-wrap: wrap; gap: 14px; }
.coming-soon { margin-top: 14px; font-size: 13px; color: var(--text3); font-weight: 500; }

/* ── phones ── */
.hero-phones {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center; /* don't STRETCH the frame taller than its screenshot */
  min-height: 620px;
}
.phone {
  border: 11px solid #101014;
  border-radius: 52px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  width: 272px;
}
.phone img { width: 100%; height: auto; }
.phone-front { position: relative; z-index: 2; }
.phone-front { transform: translateX(-34px); }
.phone-back {
  position: absolute;
  z-index: 1;
  transform: rotate(8deg) translate(158px, 38px);
  opacity: 0.98;
}

/* ── features ── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1160px;
  margin: 30px auto 0;
  padding: 0 24px 72px;
}
.feature {
  background: var(--canvas);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px;
}
.feature h2 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.feature p { font-size: 14px; line-height: 1.6; color: var(--text2); }

/* ── how it works + faq ── */
.about, .faq {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 64px;
}
.about h2, .faq h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.about p { font-size: 15.5px; line-height: 1.75; color: var(--text2); }
.faq-item {
  background: var(--canvas);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 24px;
  margin-bottom: 14px;
}
.faq-item h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.faq-item p { font-size: 14.5px; line-height: 1.7; color: var(--text2); }

/* ── footer ── */
.footer { border-top: 1px solid var(--card-border); }
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 44px 24px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.footer-logo { height: 22px; width: auto; opacity: 0.9; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; }
.footer-links a { font-size: 14px; font-weight: 600; color: var(--text2); }
.footer-links a:hover { color: var(--ink); }
.footer-note { font-size: 12px; color: var(--text3); max-width: 560px; line-height: 1.6; }
.footer-copy { font-size: 12.5px; color: var(--text3); font-weight: 500; }

/* ── legal pages ── */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 24px 80px;
}
.legal h1 { font-size: 34px; margin-bottom: 6px; }
.legal .updated { font-size: 13.5px; color: var(--text3); margin-bottom: 36px; }
.legal h2 { font-size: 19px; font-weight: 700; margin: 34px 0 10px; }
.legal p, .legal li { font-size: 15px; line-height: 1.75; color: var(--text2); }
.legal ul { padding-left: 22px; margin: 10px 0; }
.legal a { color: var(--ink); font-weight: 600; text-decoration: underline; }

/* ── responsive ── */
@media (max-width: 900px) {
  .hero { flex-direction: column; padding-top: 28px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .sub { max-width: 560px; }
  .badges { justify-content: center; }
  .hero-phones { min-height: 0; margin-top: 26px; width: 100%; }
  .phone { width: 232px; }
  .phone-front { transform: translateX(-52px); }
  .phone-back { transform: rotate(8deg) translate(120px, 30px); }
  .features { grid-template-columns: 1fr; }
  .nav-right .badge-sm { display: none; }
}

/* ── contact page ── */
.contact {
  max-width: 620px;
  margin: 0 auto;
  padding: 30px 24px 90px;
}
.contact h1 { font-size: 38px; margin-bottom: 10px; }
.contact .lede { font-size: 16px; color: var(--text2); line-height: 1.65; margin-bottom: 14px; }
.contact .direct {
  font-size: 15px; color: var(--text2); margin-bottom: 34px;
}
.contact .direct a { font-weight: 700; color: var(--ink); text-decoration: underline; }
.contact-extra { margin-top: 46px; }
.contact-extra h2 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; margin: 26px 0 8px; }
.contact-extra p { font-size: 14.5px; line-height: 1.7; color: var(--text2); }
.contact-extra a { font-weight: 700; color: var(--ink); text-decoration: underline; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form label { font-size: 13.5px; font-weight: 700; }
.form input, .form textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 14px 16px;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background: var(--chip);
  outline: none;
  transition: border-color .15s ease, background .15s ease;
  margin-top: 6px;
}
.form input:focus, .form textarea:focus { border-color: rgba(0,0,0,0.3); background: #fff; }
.form textarea { min-height: 150px; resize: vertical; }
.form button {
  font: inherit;
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 16px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.form button:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,0,0,0.22); }

/* ── contact: on-site thank-you (shown via ?sent=1) ── */
.form-sent {
  margin-top: 26px;
  padding: 44px 32px;
  text-align: center;
  background: var(--canvas);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-sent-check {
  width: 58px; height: 58px;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: #10b981;
  color: #fff;
  font-size: 26px; font-weight: 800;
}
.form-sent h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.form-sent p { font-size: 15px; color: var(--text2); max-width: 380px; margin: 0 auto; }
.form-sent-back {
  display: inline-block;
  margin-top: 22px;
  font-size: 14.5px; font-weight: 700;
  color: #fff; background: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 28px;
}
