/* MunkeeyWorks — shared design system */

:root {
  --bg: #fbf8f5;
  --ink: #1f1b18;
  --muted: #6b5e63;
  --primary: #4a2540;
  --primary-ink: #fbf8f5;
  --accent: #9b5c86;
  --accent-tint: rgba(155, 92, 134, 0.12);
  --accent-border: rgba(155, 92, 134, 0.22);
  --dark-bg: #26122a;
  --stats-bg: #4a2540;
  --green: #1fa463;
  --card-bg: #fbf8f5;
  --card-border: rgba(74, 37, 64, 0.08);
  --line: rgba(31, 27, 24, 0.08);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 12px;
  --font-head: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.08;
}

h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 700; }
h2 { font-size: clamp(28px, 4vw, 38px); }
h3 { font-size: 20px; }

p { color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-tint);
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  border-radius: var(--radius-sm);
  padding: 13px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 8px 20px rgba(74, 37, 64, 0.22); }
.btn-primary:hover { box-shadow: 0 12px 26px rgba(74, 37, 64, 0.3); }
.btn-ghost { background: transparent; color: var(--primary); border-color: rgba(74, 37, 64, 0.16); }
.btn-ghost:hover { background: rgba(74, 37, 64, 0.05); }
.btn[disabled] { opacity: 0.6; cursor: default; transform: none; }

/* Header */
.site-header {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.site-header .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
}
.logo svg { flex-shrink: 0; }
.logo .logo-text { display: block; }
.logo .accent { color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { font-size: 15px; font-weight: 600; color: var(--muted); transition: color 0.15s ease; }
.site-nav a:hover, .site-nav a.is-active { color: var(--primary); }
.site-nav .btn { padding: 10px 18px; font-size: 14px; }
.site-nav .btn-primary, .site-nav .btn-primary:hover { color: var(--primary-ink); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}
.nav-toggle .bar {
  position: relative;
  width: 22px; height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle .bar::before, .nav-toggle .bar::after {
  content: "";
  position: absolute; left: 0;
  width: 22px; height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle .bar::before { transform: translateY(-7px); }
.nav-toggle .bar::after { transform: translateY(7px); }
.nav-toggle.is-active .bar { background: transparent; }
.nav-toggle.is-active .bar::before { transform: translateY(0) rotate(45deg); }
.nav-toggle.is-active .bar::after { transform: translateY(0) rotate(-45deg); }

/* Sections */
section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-dark { background: var(--dark-bg); color: var(--primary-ink); }
.section-dark p { color: rgba(251, 248, 245, 0.72); }
.section-dark h2 { color: var(--primary-ink); }
.section-white { background: #fff; }
.section-stats { background: var(--stats-bg); color: var(--primary-ink); }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }

/* Hero */
.hero { padding-top: 64px; }
.hero .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero.hero-single .container { display: block; }
.hero-copy { max-width: 640px; }
.hero-copy p { font-size: 19px; margin: 20px 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 60px rgba(74, 37, 64, 0.16); }

/* Card grid */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 44px; }
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 30px;
}
.card-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  background: var(--accent-tint);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 15px; }
.card.card-link { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.card.card-link:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(74, 37, 64, 0.1); }

/* Products teaser */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 44px; }
.product-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.product-card .status {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
}
.status-live { background: rgba(31, 164, 99, 0.12); color: var(--green); }
.status-soon { background: rgba(155, 92, 134, 0.14); color: var(--accent); }
.product-card h3 { font-size: 24px; }
.product-card .btn { margin-top: auto; align-self: flex-start; }

/* Process */
.process-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 60px; margin-top: 48px; }
.process-step { border-top: 1px solid var(--line); padding-top: 18px; }
.process-step .num { font-family: var(--font-head); font-weight: 800; color: var(--accent); font-size: 14px; display: block; margin-bottom: 10px; }
.process-step h3 { margin-bottom: 8px; }
.process-step p { font-size: 15px; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.stat b {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  line-height: 1;
}
.stat span { display: block; margin-top: 8px; color: rgba(251, 248, 245, 0.72); font-size: 15px; }

/* Testimonial */
.testimonial { max-width: 720px; margin: 0 auto; text-align: center; }
.testimonial .quote-mark { font-family: var(--font-head); font-size: 48px; color: var(--accent); line-height: 1; margin-bottom: 12px; }
.testimonial blockquote { font-family: var(--font-head); font-size: clamp(22px, 3vw, 28px); font-weight: 600; line-height: 1.35; color: var(--ink); }
.testimonial .author { margin-top: 28px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.testimonial .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-tint); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700;
}
.testimonial .author-name { font-weight: 700; font-size: 15px; }
.testimonial .author-role { font-size: 14px; color: var(--muted); }

/* Contact form */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-note { display: flex; align-items: center; gap: 12px; margin: 16px 0; font-weight: 600; font-family: var(--font-head); font-size: 15px; }
.contact-note:last-of-type { margin-bottom: 36px; }
.contact-note .icon { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--accent-tint); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-note a, .footer-bottom a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.form-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-lg); padding: 36px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(74, 37, 64, 0.18);
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.field textarea { resize: vertical; min-height: 110px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.form-msg { font-size: 14px; margin-top: 14px; font-weight: 600; }
.form-msg.error { color: #b3261e; }
.form-msg.success { color: var(--green); }

.success-state { text-align: center; padding: 20px 0; }
.success-state .check {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--primary); color: var(--primary-ink);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.success-state h3 { margin-bottom: 6px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 28px; }
.site-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { font-size: 14px; font-weight: 600; color: var(--muted); }
.footer-nav a:hover { color: var(--primary); }
.footer-bottom { margin-top: 24px; font-size: 13px; color: var(--muted); }

/* Phone mockup (shared by homepage teaser + MunkeeyLogs product page) */
.flow-wrap { padding: 80px 0; }
.flow-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.flow-header .pill { margin-bottom: 20px; }
.flow-header h2 { color: var(--primary-ink); }
.flow-screens { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.phone {
  background: #fff;
  border-radius: 30px;
  border: 6px solid #0c0510;
  overflow: hidden;
  aspect-ratio: 9 / 18;
  position: relative;
  padding: 28px 16px 16px;
}
.phone::before {
  content: "";
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 40%; height: 16px; background: #0c0510; border-radius: 10px;
}
.phone.dark { background: var(--accent); color: #fff; }
.phone.dark.deep { background: var(--primary); }
.phone-label { text-align: center; margin-top: 14px; font-size: 13px; color: rgba(251, 248, 245, 0.7); }
.phone-caption { text-align: center; margin-top: 44px; font-size: 16px; color: rgba(251, 248, 245, 0.85); }
.phone-caption b { color: #fff; }

.mock-brand { font-family: var(--font-head); font-weight: 700; font-size: 15px; margin-bottom: 18px; text-align: center; }
.mock-brand .accent { color: var(--accent); }
.phone.dark .mock-brand .accent, .phone.dark .mock-brand { color: #fff; }
.mock-field-label { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.mock-field { background: #f4ece6; border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px; color: var(--ink); }
.mock-field.focus { border: 1.5px solid var(--accent); }
.mock-btn { background: var(--primary); color: #fff; text-align: center; border-radius: 8px; padding: 10px; font-size: 13px; font-weight: 700; margin-top: 6px; }
.mock-check { width: 56px; height: 56px; border-radius: 50%; border: 2.5px solid var(--green); color: var(--green); display: flex; align-items: center; justify-content: center; margin: 30% auto 14px; font-size: 24px; }
.mock-center { text-align: center; }
.mock-qr { width: 100px; height: 100px; background: #fff; border-radius: 14px; margin: 22% auto 16px; display: flex; align-items: center; justify-content: center; color: var(--primary); font-weight: 800; }
.mock-chat-head { background: var(--green); color: #fff; padding: 12px; border-radius: 10px 10px 0 0; font-size: 12px; display: flex; align-items: center; gap: 8px; }
.mock-chat-head .av { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 11px; }
.mock-chat-body { background: #ece1d5; padding: 12px; border-radius: 0 0 10px 10px; height: 100%; }
.mock-bubble { background: #fff; border-radius: 8px; padding: 10px; font-size: 11px; margin-bottom: 8px; color: var(--ink); }
.mock-bubble b { display: block; color: var(--green); font-size: 10px; margin-bottom: 3px; }

/* Feature checklist */
.check-list { list-style: none; margin: 28px 0 32px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; font-weight: 600; font-size: 15px; }
.check-list .tick { width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 12px; margin-top: 1px; }

/* Coming soon */
.coming-soon-hero { text-align: center; max-width: 620px; margin: 0 auto; padding: 90px 24px; }

@media (max-width: 860px) {
  section { padding: 64px 0; }
  .card-grid, .product-grid, .process-grid, .contact-layout { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-image { order: 2; }
  .flow-screens { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 24px;
    box-shadow: 0 16px 24px rgba(31, 27, 24, 0.08);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 12px; justify-content: center; }
}
@media (max-width: 520px) {
  .stats-grid { grid-template-columns: 1fr; }
  .flow-screens { grid-template-columns: 1fr; max-width: 260px; margin: 0 auto; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
