/* Shared across every kuwaredesk.ai marketing page - base reset, buttons,
   header/nav/drawer, and footer. Edit this ONE file to change header/footer
   styling everywhere; page-specific styles (hero, pricing, doc layout, etc)
   stay in each page's own <style> block. */

:root {
  /* Brand (from app theme) */
  --primary: #1155cc;
  --primary-hover: #0e4aa3;
  --primary-light: #e3f2fd;
  --success: #198754;
  --success-light: #e7f4ee;
  /* Extended palette */
  --ink: #0c1a30;
  --ink-soft: #22344f;
  --muted: #5a6a82;
  --line: #e6ecf5;
  --bg: #ffffff;
  --bg-tint: #f4f8ff;
  --amber: #b9770a;
  --amber-light: #fbf1da;
  /* Type */
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(12, 26, 48, .06), 0 1px 3px rgba(12, 26, 48, .04);
  --shadow-md: 0 12px 28px -10px rgba(17, 85, 204, .18), 0 4px 12px rgba(12, 26, 48, .06);
  --shadow-lg: 0 34px 60px -22px rgba(12, 26, 48, .28);
}

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

html {
  scroll-behavior: smooth
}

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none
}

img,
svg {
  display: block
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--ink)
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 18px -6px rgba(17, 85, 204, .5)
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -8px rgba(17, 85, 204, .55)
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm)
}

.btn-ghost:hover {
  border-color: #c9d6ea;
  transform: translateY(-2px)
}

.btn-lg {
  padding: 15px 28px;
  font-size: 16px
}

.btn:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 2px
}

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: border-color .25s ease, box-shadow .25s ease
}

header.scrolled {
  border-color: var(--line);
  box-shadow: 0 6px 20px -14px rgba(12, 26, 48, .3)
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.02em
}

.brand .k {
  color: var(--primary)
}

.brand .d {
  color: var(--success)
}

.logo-img {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto
}

.nav-links a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 4px 0
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width .2s ease
}

.nav-links a:hover {
  color: var(--primary)
}

.nav-links a:hover::after {
  width: 100%
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 25px
}

.nav-cta .signin {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-soft)
}

.nav-cta .signin:hover {
  color: var(--primary)
}

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  color: var(--ink)
}

.mark {
  width: 34px;
  height: 34px;
  flex: none
}

/* ---------- Footer ---------- */
footer {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  background: var(--bg-tint)
}

.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .86rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px
}

/* ---------- Mobile menu drawer ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(12, 26, 48, .4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease
}

.drawer.open {
  opacity: 1;
  pointer-events: auto
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(320px, 84vw);
  background: #fff;
  padding: 24px;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1);
  display: flex;
  flex-direction: column;
  gap: 6px
}

.drawer.open .drawer-panel {
  transform: none
}

.drawer-panel a {
  padding: 13px 8px;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: 10px
}

.drawer-panel a:hover {
  background: var(--bg-tint);
  color: var(--primary)
}

.drawer-panel .btn {
  margin-top: 12px
}

.drawer-close {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 6px
}

/* ---------- Shared mobile breakpoint ---------- */
@media (max-width:720px) {

  .nav-links,
  .nav-cta .signin {
    display: none
  }

  .menu-btn {
    display: inline-flex
  }

  .nav-cta {
    margin-left: 0
  }

  header .nav {
    gap: 12px
  }
}

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