/* =========================================================
   Kervo Marketing Site Styles
   - Organized by section
   - Dedupe removed
   - Pricing header + spacing tightened (desktop)
   - Mobile menu slide-in retained
========================================================= */

/* ---------------------------
   Theme tokens
--------------------------- */
:root {
  --bg: #f8faff;
  --text: #0b1320;
  --muted: #64748b;
  --blue: #1f6feb;
  --blue2: #2b78ff;
  --sky: #22c1ee;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.8);
  --border: rgba(31, 111, 235, 0.12);
  --shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}

/* ---------------------------
   Base / layout
--------------------------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Sora", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 5% 5%, rgba(34, 193, 238, 0.1), transparent 30%),
    radial-gradient(circle at 95% 95%, rgba(31, 111, 235, 0.1), transparent 30%);
}

/* ---------------------------
   Utilities
--------------------------- */
.center {
  text-align: center;
}

.mb-40 {
  margin-bottom: 40px;
}

.mb-50 {
  margin-bottom: 50px;
}

.mt-24 {
  margin-top: 24px;
}

.note {
  color: var(--muted);
  font-size: 14px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------
   Typography / section headings
--------------------------- */
.section-label {
  display: block;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  color: var(--blue2);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.h1 {
  font-size: 64px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0 0 24px;
}

.h1 span {
  background: linear-gradient(90deg, var(--blue2), var(--sky));
  -webkit-background-clip: text;
  color: transparent;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  margin: 0;
}

.section-title-sm {
  font-size: 32px;
  font-weight: 800;
  margin: 0;
}

/* ---------------------------
   Buttons
--------------------------- */
.btn {
  padding: 16px 32px;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.btn-block {
  width: 100%;
}

.btn-basic {
  background: #eee;
  color: #000;
}

.btn-pro {
  background: var(--blue2);
}

/* ---------------------------
   Navigation (desktop)
--------------------------- */
nav {
  height: 72px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  text-decoration: none;
  font-size: 22px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10%;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s;
}

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

/* Active states */
.nav-links a.is-active {
  color: var(--text);
}

.nav-links a.is-active::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue2), var(--sky));
}

/* Nav CTA */
.nav-cta {
  padding: 10px 20px;
  font-size: 14px;
}

/* ---------------------------
   Hero
--------------------------- */
.hero {
  padding: 80px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero p {
  font-size: 19px;
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 480px;
}

/* Hero mock content cleanup (replaces inline) */
.hero-kicker {
  font-weight: 800;
  margin-bottom: 20px;
  font-size: 14px;
}

.app-card-status {
  color: var(--blue2);
  font-size: 10px;
}

.app-card-meta {
  color: var(--muted);
  font-size: 10px;
}

.app-card-sky {
  border-left: 3px solid var(--sky);
}

/* Mockup */
.mockup-container {
  /* background: white;
  padding: 40px;
  border-radius: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border); */
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 240px;
  height: 480px;
  background: #000;
  border-radius: 36px;
  border: 8px solid #1a1a1a;
  position: relative;
  overflow: hidden;
}

.phone-screen {
  background: #f0f4f9;
  height: 100%;
  padding: 20px 15px;
}

.app-card {
  background: white;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid #eee;
  font-size: 11px;
}

/* ---------------------------
   Features (bento)
--------------------------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: 20px;
  margin: 50px 0;
}

.bento-item {
  background: var(--white);
  border-radius: 24px;
  padding: 32px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: 0.3s;
}

.bento-item.wide {
  grid-column: span 2;
  background: linear-gradient(135deg, #fff 0%, #f0f7ff 100%);
}

.bento-item h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
}

.bento-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------------------------
   Testimonials
--------------------------- */
.testimonials {
  padding: 80px 0;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  animation: scroll 40s linear infinite;
  width: max-content;
}

.testimonial-card {
  background: var(--white);
  padding: 32px;
  border-radius: 24px;
  border: 1px solid var(--border);
  width: 350px;
  box-shadow: var(--shadow);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-350px * 4 - 24px * 4));
  }
}

/* ---------------------------
   Pricing
--------------------------- */
.pricing {
  padding: 100px 0;
  background: var(--white);
  border-radius: 60px 60px 0 0;
}

/* Pricing header aligned to card width + tighter spacing (desktop) */
.pricing-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto 36px;
}

.pricing-head-main {
  flex: 1;
  min-width: 0;
}

/* Make pricing title feel less "floating" on desktop */
.pricing .section-label {
  margin-bottom: 10px;
}

.pricing .section-title {
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 720px;
}

.pricing-save {
  color: var(--blue2);
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
  padding-top: 6px;
  opacity: 0.95;
}

/* Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 800px;
  margin: 28px auto 0;
  gap: 30px;
}

.price-card {
  padding: 40px;
  border-radius: 32px;
  border: 1px solid var(--border);
  position: relative;
  transition: 0.3s;
}

.price-card.popular {
  border: 2.5px solid var(--blue2);
  transform: scale(1.05);
  background: var(--bg);
}

.badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: var(--blue2);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
}

.price-val {
  font-size: 48px;
  font-weight: 800;
  margin: 20px 0;
}

.price-val span {
  font-size: 16px;
  color: var(--muted);
  font-weight: 400;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.feature-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.feature-list li::before {
  content: "✓";
  color: var(--blue2);
  font-weight: 900;
}

/* ---------------------------
   FAQ
--------------------------- */
.faq {
  padding: 100px 0;
  max-width: 800px;
  margin: 0 auto;
}

details {
  background: var(--white);
  margin-bottom: 16px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  cursor: pointer;
}

summary {
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary::after {
  content: "+";
  font-size: 20px;
  color: var(--blue2);
}

details[open] summary::after {
  content: "−";
}

details p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------------------------
   Footer
--------------------------- */
footer {
  background: #0b1320;
  color: white;
  padding: 80px 0 40px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 40px 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
}

.footer-links a.is-active {
  color: rgba(255, 255, 255, 0.9);
}

/* ---------------------------
   Legal pages (privacy/terms)
--------------------------- */
.legal-wrap {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 60px;
}

.legal-card {
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.legal-card h1 {
  margin: 0 0 8px;
  font-size: 34px;
}

.legal-card h2 {
  margin-top: 26px;
  font-size: 20px;
}

.legal-card p,
.legal-card li {
  line-height: 1.7;
}

.legal-muted {
  color: var(--muted);
}

.legal-card a {
  color: var(--text);
}

/* ---------------------------
   Mobile menu + hamburger
--------------------------- */

/* Hamburger button hidden on desktop */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  cursor: pointer;
  position: relative;
}

/* Hamburger lines (gradient) */
.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue2), var(--sky));
  border-radius: 999px;
  transform: translateX(-50%);
}

.nav-toggle span:nth-child(1) {
  top: 14px;
}

.nav-toggle span:nth-child(2) {
  top: 21px;
}

.nav-toggle span:nth-child(3) {
  top: 28px;
}

.nav-toggle:hover span:nth-child(1) {
  transform: translateX(-50%) translateY(-1px);
}

.nav-toggle:hover span:nth-child(3) {
  transform: translateX(-50%) translateY(1px);
}

/* Mobile menu wrapper (animatable: no display toggling) */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Backdrop fades */
.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 19, 32, 0.35);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 180ms ease;
}

.mobile-menu.is-open .mobile-menu__backdrop {
  opacity: 1;
}

/* Panel slides in */
.mobile-menu__panel {
  position: absolute;
  top: 12px;
  right: 12px;
  left: 12px;
  max-width: 520px;
  margin-left: auto;

  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 18px;

  transform: translateY(-10px) scale(0.98);
  opacity: 0;
  transition:
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 220ms ease;
}

.mobile-menu.is-open .mobile-menu__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.mobile-menu__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Close button (CSS X) */
.mobile-menu__close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 12px;
  cursor: pointer;
  position: relative;
}

.mobile-menu__close::before,
.mobile-menu__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transform-origin: center;
}

.mobile-menu__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-menu__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-menu__links a {
  display: block;
  padding: 12px 12px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  color: var(--text);
}

.mobile-menu__links a:hover {
  background: rgba(31, 111, 235, 0.08);
}

.mobile-menu__divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0;
}

.mobile-menu__cta {
  margin-top: 12px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .mobile-menu,
  .mobile-menu__backdrop,
  .mobile-menu__panel {
    transition: none !important;
  }
}

/* ---------------------------
   Responsive
--------------------------- */
@media (max-width: 960px) {
  /* Nav */
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-cta {
    display: none;
  }

  .nav-inner {
    gap: 12px;
  }

  .nav-toggle {
    margin-left: auto;
  }

  /* Hero */
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero p {
    margin: 0 auto 40px;
  }

  .h1 {
    font-size: 44px;
  }

  /* Bento */
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .bento-item.wide {
    grid-column: span 1;
  }

  /* Pricing */
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
  }

  .pricing-save {
    padding-top: 0;
  }

  .pricing .section-title {
    font-size: 36px;
  }
}
