/* Wasabil — editorial minimal system */
:root {
  --bg: #f6f3ec;
  --bg-2: #eeeae0;
  --paper: #fbf9f3;
  --ink: #141311;
  --ink-2: #2a2824;
  --muted: #6b6760;
  --rule: #e3ddcf;
  --rule-2: #d4ccb8;
  --accent: oklch(0.64 0.21 135);
  --accent-2: oklch(0.85 0.20 128);
  --accent-wash: oklch(0.95 0.07 132);
  --danger: oklch(0.6 0.18 30);
  --serif: "Instrument Serif", "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 0 rgba(20,19,17,0.04), 0 1px 2px rgba(20,19,17,0.04);
  --shadow: 0 1px 0 rgba(20,19,17,0.06), 0 12px 28px -12px rgba(20,19,17,0.18);
  --shadow-lg: 0 1px 0 rgba(20,19,17,0.05), 0 40px 80px -24px rgba(20,19,17,0.25);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11";
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 32px; }

/* Type */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.mono  { font-family: var(--mono); font-feature-settings: "ss01"; }
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 500;
}
.eyebrow .dot { display:inline-block; width:6px; height:6px; border-radius:50%; background: var(--accent); margin-right:8px; vertical-align: 1px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
.display-1 {
  font-family: var(--serif);
  font-size: clamp(48px, 7.2vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.025em;
}
.display-2 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.display-3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink-2);
  line-height: 1.5;
  max-width: 56ch;
}
.italic { font-style: italic; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.scrolled { border-bottom-color: var(--rule); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  max-width: 1440px; margin: 0 auto;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--ink);
  display: grid; place-items: center;
  color: var(--bg);
  font-family: var(--serif); font-size: 18px;
  position: relative;
}
.logo-mark::after {
  content: ""; position: absolute; inset: 4px;
  background: radial-gradient(circle at 35% 35%, var(--accent-2), var(--accent));
  border-radius: 4px;
}
.logo-mark span { position: relative; z-index: 1; color: var(--ink); font-weight: 500; }
.nav-links {
  display: flex; gap: 4px; align-items: center;
}
.nav-link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-2);
  transition: background 0.15s, color 0.15s;
  position: relative;
}
.nav-link:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); color: var(--ink); }
.nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content:""; position:absolute; left:14px; right:14px; bottom: 2px;
  height: 1px; background: var(--ink);
}
.nav-cta { display: flex; gap: 8px; align-items: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: var(--sans);
  letter-spacing: -0.005em;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: #000; transform: translateY(-1px); box-shadow: 0 6px 16px -6px rgba(0,0,0,0.3); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-2);
}
.btn-ghost:hover { background: var(--paper); border-color: var(--ink); }
.btn-link {
  background: transparent;
  color: var(--ink);
  padding: 11px 0;
}
.btn-link .arrow { transition: transform 0.2s; }
.btn-link:hover .arrow { transform: translateX(4px); }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* Pills / chips */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--rule);
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 500;
}
.pill .pill-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--accent-wash);
  color: oklch(0.32 0.14 135);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* Sections */
.section { padding: 120px 0; }
.section-sm { padding: 72px 0; }
.section-title {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  margin-bottom: 56px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}
.section-title .label { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* Rules */
.hr { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* Product window (macOS chrome) */
.window {
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.window-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #fbf9f3, #f2ede2);
  border-bottom: 1px solid var(--rule);
}
.window-dots { display: flex; gap: 6px; }
.window-dots span { width: 11px; height: 11px; border-radius: 50%; background: #e0d9c8; }
.window-dots span:nth-child(1) { background: #e06c5e; }
.window-dots span:nth-child(2) { background: #e5b046; }
.window-dots span:nth-child(3) { background: #6bbf59; }
.window-title {
  margin: 0 auto; font-size: 12px; color: var(--muted); font-family: var(--mono);
}

/* Little mascot blob — easter egg */
.mascot {
  position: absolute;
  pointer-events: none;
  width: 48px; height: 48px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
  opacity: 0.95;
}

/* Footnote / caption */
.caption {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Utility */
.flex { display: flex; }
.grid { display: grid; }
.gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; } .gap-12 { gap: 48px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-12 { margin-top: 48px; } .mt-16 { margin-top: 64px; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }

/* Hero */
.hero-section {
  position: relative;
  padding: 96px 0 48px;
  overflow-x: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 1120px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 860px) {
  .hero-section { padding: 64px 0 48px; }
  .hero-product-shot-wrap { display: none; }
  .hero-mascot { display: none; }
}

/* Logo cloud */
.logo-cloud-strip {
  display: flex;
  gap: 36px 44px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.01em;
}
.logo-cloud-strip > span { opacity: 0.7; white-space: nowrap; }
@media (max-width: 860px) {
  .logo-cloud-strip { font-size: 17px; gap: 20px 28px; }
}

/* Hamburger menu */
.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--ink);
  border-radius: 8px;
  line-height: 0;
  transition: background 0.15s;
}
.nav-burger:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); }

.nav-mobile-menu {
  position: fixed;
  top: 61px; left: 0; right: 0; bottom: 0;
  z-index: 48;
  background: var(--bg);
  padding: 24px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.nav-mobile-link {
  display: block;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 17px;
  color: var(--ink);
  transition: background 0.15s;
}
.nav-mobile-link:hover,
.nav-mobile-link.active { background: color-mix(in oklab, var(--ink) 6%, transparent); }
.nav-mobile-divider {
  height: 1px;
  background: var(--rule);
  margin: 8px 0;
}

/* Responsive */
@media (max-width: 960px) {
  .container { padding: 0 20px; }
  .container-wide { padding: 0 20px; }
  .section { padding: 64px 0; }
  .nav-inner { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-desktop-only { display: none !important; }
  .nav-burger { display: flex; align-items: center; justify-content: center; }
  .section-title { flex-direction: column; align-items: flex-start; }
  .display-1 { font-size: clamp(42px, 9vw, 72px) !important; }
}

/* Footer */
.footer {
  background: var(--ink);
  color: var(--bg);
  padding: 96px 0 48px;
  margin-top: 48px;
}
.footer a { color: color-mix(in oklab, var(--bg) 70%, transparent); font-size: 14px; }
.footer a:hover { color: var(--bg); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(246,243,236,0.15);
}
.footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 500; color: color-mix(in oklab, var(--bg) 50%, transparent); margin-bottom: 20px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  font-size: 12px;
  color: color-mix(in oklab, var(--bg) 50%, transparent);
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .footer { padding: 64px 0 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ── Pricing page ─────────────────────────────────────────────────────────── */
.pricing-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pricing-card { padding: 36px; }
.pricing-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.pricing-calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 860px) {
  .pricing-plans-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .pricing-card { padding: 28px; }
  .pricing-faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .pricing-calc-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ── Home page ────────────────────────────────────────────────────────────── */
.feature-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background: var(--paper);
}
.feature-row-text { padding: 56px 48px; }
.feature-row-demo { padding: 56px 48px; }

.mcp-demo-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.home-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cta-band-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
}
.clients-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: center;
}
.clients-logos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
}

@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row-text { padding: 36px 28px; border-right: none !important; border-bottom: 1px solid var(--rule); }
  .feature-row-demo { padding: 32px 28px; }

  .mcp-demo-grid { grid-template-columns: 1fr; gap: 40px; }

  .home-plans-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }

  .cta-band-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta-band-grid > div:last-child { display: none; }

  .clients-grid { grid-template-columns: 1fr; gap: 40px; }
  .clients-logos-grid { grid-template-columns: repeat(2, 1fr); }

  /* Testimonials — horizontal scroll carousel */
  .testimonials-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 16px;
    /* hide scrollbar */
    scrollbar-width: none;
  }
  .testimonials-grid::-webkit-scrollbar { display: none; }
  .testimonials-grid > * {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: calc(85vw - 40px);
    max-width: 360px;
  }
}

/* ── Clients logo strip ────────────────────────────────────────────────────── */
.clients-logo-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}
@media (max-width: 860px) {
  .clients-logo-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    background: none;
    border: none;
    border-radius: 0;
    gap: 12px;
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .clients-logo-strip::-webkit-scrollbar { display: none; }
  .clients-logo-strip > * {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 140px;
    border: 1px solid var(--rule);
    border-radius: 12px;
    min-height: 100px !important;
    padding: 24px 20px !important;
  }
}

/* ── Hero demo link ────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero-demo-link { width: 100%; justify-content: center; }
}
